diff --git a/assets/index-RklVRP8u.js b/assets/index-dSRMhWlw.js similarity index 58% rename from assets/index-RklVRP8u.js rename to assets/index-dSRMhWlw.js index 15a5177f..be0293c6 100644 --- a/assets/index-RklVRP8u.js +++ b/assets/index-dSRMhWlw.js @@ -1,4 +1,4 @@ -var $ie=Object.defineProperty;var Fie=(e,t,n)=>t in e?$ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Wo=(e,t,n)=>(Fie(e,typeof t!="symbol"?t+"":t,n),n),Ux=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var we=(e,t,n)=>(Ux(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)=>(Ux(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var PO=(e,t,n,r)=>({set _(i){Bt(e,t,i,n)},get _(){return we(e,t,r)}}),Tn=(e,t,n)=>(Ux(e,t,"access private method"),n);var CJe=Bie((UJe,rS)=>{function mV(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 iS=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 Uie(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:{}},KT={},bV={exports:{}},Hn={};/** +var Wie=Object.defineProperty;var Qie=(e,t,n)=>t in e?Wie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Yie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Wo=(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 PO=(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 BJe=Yie((KJe,nS)=>{function bV(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var rS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gie(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 yV={exports:{}},KT={},OV={exports:{}},Hn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var $ie=Object.defineProperty;var Fie=(e,t,n)=>t in e?$ie(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 p1=Symbol.for("react.element"),jie=Symbol.for("react.portal"),zie=Symbol.for("react.fragment"),Vie=Symbol.for("react.strict_mode"),Hie=Symbol.for("react.profiler"),Wie=Symbol.for("react.provider"),Qie=Symbol.for("react.context"),Yie=Symbol.for("react.forward_ref"),Gie=Symbol.for("react.suspense"),qie=Symbol.for("react.memo"),Zie=Symbol.for("react.lazy"),_F=Symbol.iterator;function Xie(e){return e===null||typeof e!="object"?null:(e=_F&&e[_F]||e["@@iterator"],typeof e=="function"?e:null)}var yV={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},OV=Object.assign,vV={};function tg(e,t,n){this.props=e,this.context=t,this.refs=vV,this.updater=n||yV}tg.prototype.isReactComponent={};tg.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")};tg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function EV(){}EV.prototype=tg.prototype;function UI(e,t,n){this.props=e,this.context=t,this.refs=vV,this.updater=n||yV}var jI=UI.prototype=new EV;jI.constructor=UI;OV(jI,tg.prototype);jI.isPureReactComponent=!0;var RF=Array.isArray,SV=Object.prototype.hasOwnProperty,zI={current:null},TV={key:!0,ref:!0,__self:!0,__source:!0};function wV(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)SV.call(t,r)&&!TV.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?$ie(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 noe=N,roe=Symbol.for("react.element"),ioe=Symbol.for("react.fragment"),ooe=Object.prototype.hasOwnProperty,aoe=noe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,soe={key:!0,ref:!0,__self:!0,__source:!0};function kV(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)ooe.call(t,r)&&!soe.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:roe,type:e,key:o,ref:a,props:i,_owner:aoe.current}}KT.Fragment=ioe;KT.jsx=kV;KT.jsxs=kV;gV.exports=KT;var $=gV.exports,u2={},xV={exports:{}},ps={},CV={exports:{}},AV={};/** + */var coe=N,doe=Symbol.for("react.element"),foe=Symbol.for("react.fragment"),poe=Object.prototype.hasOwnProperty,hoe=coe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,moe={key:!0,ref:!0,__self:!0,__source:!0};function CV(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)poe.call(t,r)&&!moe.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:doe,type:e,key:o,ref:a,props:i,_owner:hoe.current}}KT.Fragment=foe;KT.jsx=CV;KT.jsxs=CV;yV.exports=KT;var $=yV.exports,c2={},AV={exports:{}},ps={},_V={exports:{}},RV={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var $ie=Object.defineProperty;var Fie=(e,t,n)=>t in e?$ie(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(A);else{var q=n(u);q!==null&&Z(k,q.startTime-Y)}}function A(Y,q){m=!1,y&&(y=!1,b(M),M=-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,M=-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(M),M=-1):y=!0,Z(k,j-le))):(Y.sortIndex=Ee,t(l,Y),m||h||(m=!0,X(A))),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}}}})(AV);CV.exports=AV;var loe=CV.exports;/** + */(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,v=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,O=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(A);else{var q=n(u);q!==null&&Z(k,q.startTime-Y)}}function A(Y,q){m=!1,y&&(y=!1,b(M),M=-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,M=-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(M),M=-1):y=!0,Z(k,j-le))):(Y.sortIndex=Ee,t(l,Y),m||h||(m=!0,X(A))),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}}}})(RV);_V.exports=RV;var goe=_V.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var $ie=Object.defineProperty;var Fie=(e,t,n)=>t in e?$ie(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 _V=N,ls=loe;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"),c2=Object.prototype.hasOwnProperty,uoe=/^[: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]*$/,NF={},DF={};function coe(e){return c2.call(DF,e)?!0:c2.call(NF,e)?!1:uoe.test(e)?DF[e]=!0:(NF[e]=!0,!1)}function doe(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 foe(e,t,n,r){if(t===null||typeof t>"u"||doe(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 ta(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 mo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mo[e]=new ta(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];mo[t]=new ta(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){mo[e]=new ta(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mo[e]=new ta(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){mo[e]=new ta(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){mo[e]=new ta(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){mo[e]=new ta(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){mo[e]=new ta(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){mo[e]=new ta(e,5,!1,e.toLowerCase(),null,!1,!1)});var HI=/[\-:]([a-z])/g;function WI(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(HI,WI);mo[t]=new ta(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(HI,WI);mo[t]=new ta(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(HI,WI);mo[t]=new ta(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){mo[e]=new ta(e,1,!1,e.toLowerCase(),null,!1,!1)});mo.xlinkHref=new ta("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){mo[e]=new ta(e,1,!1,e.toLowerCase(),null,!0,!0)});function QI(e,t,n,r){var i=mo.hasOwnProperty(t)?mo[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d2=Object.prototype.hasOwnProperty,boe=/^[: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]*$/,DF={},PF={};function yoe(e){return d2.call(PF,e)?!0:d2.call(DF,e)?!1:boe.test(e)?PF[e]=!0:(DF[e]=!0,!1)}function Ooe(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 voe(e,t,n,r){if(t===null||typeof t>"u"||Ooe(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 ta(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 go={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){go[e]=new ta(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];go[t]=new ta(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){go[e]=new ta(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){go[e]=new ta(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){go[e]=new ta(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){go[e]=new ta(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){go[e]=new ta(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){go[e]=new ta(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){go[e]=new ta(e,5,!1,e.toLowerCase(),null,!1,!1)});var HI=/[\-:]([a-z])/g;function WI(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(HI,WI);go[t]=new ta(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(HI,WI);go[t]=new ta(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(HI,WI);go[t]=new ta(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){go[e]=new ta(e,1,!1,e.toLowerCase(),null,!1,!1)});go.xlinkHref=new ta("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){go[e]=new ta(e,1,!1,e.toLowerCase(),null,!0,!0)});function QI(e,t,n,r){var i=go.hasOwnProperty(t)?go[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{Vx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N0(e):""}function poe(e){switch(e.tag){case 5:return N0(e.type);case 16:return N0("Lazy");case 13:return N0("Suspense");case 19:return N0("SuspenseList");case 0:case 2:case 15:return e=Hx(e.type,!1),e;case 11:return e=Hx(e.type.render,!1),e;case 1:return e=Hx(e.type,!0),e;default:return""}}function h2(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 bh:return"Fragment";case gh:return"Portal";case d2:return"Profiler";case YI:return"StrictMode";case f2:return"Suspense";case p2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NV:return(e.displayName||"Context")+".Consumer";case IV:return(e._context.displayName||"Context")+".Provider";case GI:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qI:return t=e.displayName||null,t!==null?t:h2(e.type)||"Memo";case Hc:t=e._payload,e=e._init;try{return h2(e(t))}catch{}}return null}function hoe(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 h2(t);case 8:return t===YI?"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 PV(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function moe(e){var t=PV(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 $O(e){e._valueTracker||(e._valueTracker=moe(e))}function LV(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=PV(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oS(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 m2(e,t){var n=t.checked;return qr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function LF(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 MV(e,t){t=t.checked,t!=null&&QI(e,"checked",t,!1)}function g2(e,t){MV(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")?b2(e,t.type,n):t.hasOwnProperty("defaultValue")&&b2(e,t.type,Id(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function MF(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"||oS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var D0=Array.isArray;function Bh(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=FO.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bb(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Z0={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},goe=["Webkit","ms","Moz","O"];Object.keys(Z0).forEach(function(e){goe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Z0[t]=Z0[e]})});function UV(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Z0.hasOwnProperty(e)&&Z0[e]?(""+t).trim():t+"px"}function jV(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=UV(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var boe=qr({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 v2(e,t){if(t){if(boe[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 E2(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 S2=null;function ZI(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var T2=null,Uh=null,jh=null;function BF(e){if(e=g1(e)){if(typeof T2!="function")throw Error(St(280));var t=e.stateNode;t&&(t=rw(t),T2(e.stateNode,e.type,t))}}function zV(e){Uh?jh?jh.push(e):jh=[e]:Uh=e}function VV(){if(Uh){var e=Uh,t=jh;if(jh=Uh=null,BF(e),t)for(e=0;e>>=0,e===0?32:31-(Aoe(e)/_oe|0)|0}var BO=64,UO=4194304;function P0(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 uS(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=P0(s):(o&=a,o!==0&&(r=P0(o)))}else a=n&~i,a!==0?r=P0(a):o!==0&&(r=P0(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 h1(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 Doe(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=K0),GF=" ",qF=!1;function uH(e,t){switch(e){case"keyup":return sae.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cH(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yh=!1;function uae(e,t){switch(e){case"compositionend":return cH(t);case"keypress":return t.which!==32?null:(qF=!0,GF);case"textInput":return e=t.data,e===GF&&qF?null:e;default:return null}}function cae(e,t){if(yh)return e==="compositionend"||!iN&&uH(e,t)?(e=sH(),aE=tN=ad=null,yh=!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=JF(n)}}function hH(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hH(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mH(){for(var e=window,t=oS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oS(e.document)}return t}function oN(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 Oae(e){var t=mH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hH(n.ownerDocument.documentElement,n)){if(r!==null&&oN(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=e6(n,o);var a=e6(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,Oh=null,_2=null,eb=null,R2=!1;function t6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;R2||Oh==null||Oh!==oS(r)||(r=Oh,"selectionStart"in r&&oN(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}),eb&&Wb(eb,r)||(eb=r,r=fS(_2,"onSelect"),0Sh||(e.current=M2[Sh],M2[Sh]=null,Sh--)}function wr(e,t){Sh++,M2[Sh]=e.current,e.current=t}var Nd={},Po=Wd(Nd),va=Wd(!1),Zf=Nd;function xm(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 Ea(e){return e=e.childContextTypes,e!=null}function hS(){Nr(va),Nr(Po)}function l6(e,t,n){if(Po.current!==Nd)throw Error(St(168));wr(Po,t),wr(va,n)}function wH(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,hoe(e)||"Unknown",i));return qr({},n,r)}function mS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nd,Zf=Po.current,wr(Po,e),wr(va,va.current),!0}function u6(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=wH(e,t,Zf),r.__reactInternalMemoizedMergedChildContext=e,Nr(va),Nr(Po),wr(Po,e)):Nr(va),wr(va,n)}var Zu=null,iw=!1,iC=!1;function kH(e){Zu===null?Zu=[e]:Zu.push(e)}function Iae(e){iw=!0,kH(e)}function Qd(){if(!iC&&Zu!==null){iC=!0;var e=0,t=cr;try{var n=Zu;for(cr=1;e>=a,i-=a,tc=1<<32-wl(t)+i|n<M?(D=E,E=null):D=E.sibling;var R=p(b,E,S[M],k);if(R===null){E===null&&(E=D);break}e&&E&&R.alternate===null&&t(b,E),v=o(R,v,M),w===null?A=R:w.sibling=R,w=R,E=D}if(M===S.length)return n(b,E),zr&&mf(b,M),A;if(E===null){for(;MM?(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,M),w===null?A=B:w.sibling=B,w=B,E=D}if(R.done)return n(b,E),zr&&mf(b,M),A;if(E===null){for(;!R.done;M++,R=S.next())R=d(b,R.value,k),R!==null&&(v=o(R,v,M),w===null?A=R:w.sibling=R,w=R);return zr&&mf(b,M),A}for(E=r(b,E);!R.done;M++,R=S.next())R=h(E,b,M,R.value,k),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?M:R.key),v=o(R,v,M),w===null?A=R:w.sibling=R,w=R);return e&&E.forEach(function(U){return t(b,U)}),zr&&mf(b,M),A}function O(b,v,S,k){if(typeof S=="object"&&S!==null&&S.type===bh&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case MO:e:{for(var A=S.key,w=v;w!==null;){if(w.key===A){if(A=S.type,A===bh){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===A||typeof A=="object"&&A!==null&&A.$$typeof===Hc&&g6(A)===w.type){n(b,w.sibling),v=i(w,S.props),v.ref=Gg(b,w,S),v.return=b,b=v;break e}n(b,w);break}else t(b,w);w=w.sibling}S.type===bh?(v=Qf(S.props.children,b.mode,k,S.key),v.return=b,b=v):(k=hE(S.type,S.key,S.props,null,b.mode,k),k.ref=Gg(b,v,S),k.return=b,b=k)}return a(b);case gh: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=fC(S,b.mode,k),v.return=b,b=v}return a(b);case Hc:return w=S._init,O(b,v,w(S._payload),k)}if(D0(S))return m(b,v,S,k);if(Vg(S))return y(b,v,S,k);YO(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=dC(S,b.mode,k),v.return=b,b=v),a(b)):n(b,v)}return O}var Am=DH(!0),PH=DH(!1),b1={},vu=Wd(b1),qb=Wd(b1),Zb=Wd(b1);function xf(e){if(e===b1)throw Error(St(174));return e}function hN(e,t){switch(wr(Zb,t),wr(qb,e),wr(vu,b1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:O2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=O2(t,e)}Nr(vu),wr(vu,t)}function _m(){Nr(vu),Nr(qb),Nr(Zb)}function LH(e){xf(Zb.current);var t=xf(vu.current),n=O2(t,e.type);t!==n&&(wr(qb,e),wr(vu,n))}function mN(e){qb.current===e&&(Nr(vu),Nr(qb))}var Yr=Wd(0);function ES(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 oC=[];function gN(){for(var e=0;en?n:4,e(!0);var r=aC.transition;aC.transition={};try{e(!1),t()}finally{cr=n,aC.transition=r}}function XH(){return Zs().memoizedState}function Lae(e,t,n){var r=Ed(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},KH(e))JH(t,n);else if(n=_H(e,t,n,r),n!==null){var i=Xo();kl(n,e,r,i),eW(n,t,r)}}function Mae(e,t,n){var r=Ed(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(KH(e))JH(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,fN(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=_H(e,t,i,r),n!==null&&(i=Xo(),kl(n,e,r,i),eW(n,t,r))}}function KH(e){var t=e.alternate;return e===Gr||t!==null&&t===Gr}function JH(e,t){tb=SS=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function eW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,KI(e,n)}}var TS={readContext:qs,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useInsertionEffect:So,useLayoutEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useMutableSource:So,useSyncExternalStore:So,useId:So,unstable_isNewReconciler:!1},$ae={readContext:qs,useCallback:function(e,t){return Jl().memoizedState=[e,t===void 0?null:t],e},useContext:qs,useEffect:y6,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cE(4194308,4,QH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cE(4194308,4,e,t)},useInsertionEffect:function(e,t){return cE(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=Lae.bind(null,Gr,e),[r.memoizedState,e]},useRef:function(e){var t=Jl();return e={current:e},t.memoizedState=e},useState:b6,useDebugValue:EN,useDeferredValue:function(e){return Jl().memoizedState=e},useTransition:function(){var e=b6(!1),t=e[0];return e=Pae.bind(null,e[1]),Jl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Gr,i=Jl();if(zr){if(n===void 0)throw Error(St(407));n=n()}else{if(n=t(),Gi===null)throw Error(St(349));Kf&30||FH(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,y6(UH.bind(null,r,o,e),[e]),r.flags|=2048,Jb(9,BH.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=Xb++,0")&&(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:"")?D0(e):""}function Eoe(e){switch(e.tag){case 5:return D0(e.type);case 16:return D0("Lazy");case 13:return D0("Suspense");case 19:return D0("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 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 yh:return"Fragment";case bh:return"Portal";case f2:return"Profiler";case YI:return"StrictMode";case p2:return"Suspense";case h2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case PV:return(e.displayName||"Context")+".Consumer";case DV:return(e._context.displayName||"Context")+".Provider";case GI:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qI:return t=e.displayName||null,t!==null?t:m2(e.type)||"Memo";case Hc:t=e._payload,e=e._init;try{return m2(e(t))}catch{}}return null}function Soe(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===YI?"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 MV(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Toe(e){var t=MV(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 $O(e){e._valueTracker||(e._valueTracker=Toe(e))}function $V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=MV(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function iS(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function g2(e,t){var n=t.checked;return qr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function MF(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 FV(e,t){t=t.checked,t!=null&&QI(e,"checked",t,!1)}function b2(e,t){FV(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")?y2(e,t.type,n):t.hasOwnProperty("defaultValue")&&y2(e,t.type,Id(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $F(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 y2(e,t,n){(t!=="number"||iS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var P0=Array.isArray;function Uh(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=FO.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jb(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var K0={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},woe=["Webkit","ms","Moz","O"];Object.keys(K0).forEach(function(e){woe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),K0[t]=K0[e]})});function zV(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||K0.hasOwnProperty(e)&&K0[e]?(""+t).trim():t+"px"}function VV(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=zV(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var koe=qr({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 E2(e,t){if(t){if(koe[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 S2(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 T2=null;function ZI(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var w2=null,jh=null,zh=null;function UF(e){if(e=y1(e)){if(typeof w2!="function")throw Error(St(280));var t=e.stateNode;t&&(t=rw(t),w2(e.stateNode,e.type,t))}}function HV(e){jh?zh?zh.push(e):zh=[e]:jh=e}function WV(){if(jh){var e=jh,t=zh;if(zh=jh=null,UF(e),t)for(e=0;e>>=0,e===0?32:31-(Moe(e)/$oe|0)|0}var BO=64,UO=4194304;function L0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lS(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=L0(s):(o&=a,o!==0&&(r=L0(o)))}else a=n&~i,a!==0?r=L0(a):o!==0&&(r=L0(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 g1(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 joe(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=eb),qF=" ",ZF=!1;function dH(e,t){switch(e){case"keyup":return mae.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fH(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oh=!1;function bae(e,t){switch(e){case"compositionend":return fH(t);case"keypress":return t.which!==32?null:(ZF=!0,qF);case"textInput":return e=t.data,e===qF&&ZF?null:e;default:return null}}function yae(e,t){if(Oh)return e==="compositionend"||!iN&&dH(e,t)?(e=uH(),aE=tN=ad=null,Oh=!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=e6(n)}}function gH(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gH(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bH(){for(var e=window,t=iS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=iS(e.document)}return t}function oN(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 Cae(e){var t=bH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gH(n.ownerDocument.documentElement,n)){if(r!==null&&oN(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=t6(n,o);var a=t6(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,vh=null,R2=null,nb=null,I2=!1;function n6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;I2||vh==null||vh!==iS(r)||(r=vh,"selectionStart"in r&&oN(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}),nb&&Yb(nb,r)||(nb=r,r=dS(R2,"onSelect"),0Th||(e.current=$2[Th],$2[Th]=null,Th--)}function wr(e,t){Th++,$2[Th]=e.current,e.current=t}var Nd={},Po=Wd(Nd),va=Wd(!1),Zf=Nd;function Cm(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 Ea(e){return e=e.childContextTypes,e!=null}function pS(){Nr(va),Nr(Po)}function u6(e,t,n){if(Po.current!==Nd)throw Error(St(168));wr(Po,t),wr(va,n)}function xH(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,Soe(e)||"Unknown",i));return qr({},n,r)}function hS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nd,Zf=Po.current,wr(Po,e),wr(va,va.current),!0}function c6(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=xH(e,t,Zf),r.__reactInternalMemoizedMergedChildContext=e,Nr(va),Nr(Po),wr(Po,e)):Nr(va),wr(va,n)}var Zu=null,iw=!1,oC=!1;function CH(e){Zu===null?Zu=[e]:Zu.push(e)}function Bae(e){iw=!0,CH(e)}function Qd(){if(!oC&&Zu!==null){oC=!0;var e=0,t=cr;try{var n=Zu;for(cr=1;e>=a,i-=a,tc=1<<32-wl(t)+i|n<M?(D=E,E=null):D=E.sibling;var R=p(b,E,S[M],k);if(R===null){E===null&&(E=D);break}e&&E&&R.alternate===null&&t(b,E),O=o(R,O,M),w===null?A=R:w.sibling=R,w=R,E=D}if(M===S.length)return n(b,E),zr&&mf(b,M),A;if(E===null){for(;MM?(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),O=o(B,O,M),w===null?A=B:w.sibling=B,w=B,E=D}if(R.done)return n(b,E),zr&&mf(b,M),A;if(E===null){for(;!R.done;M++,R=S.next())R=d(b,R.value,k),R!==null&&(O=o(R,O,M),w===null?A=R:w.sibling=R,w=R);return zr&&mf(b,M),A}for(E=r(b,E);!R.done;M++,R=S.next())R=h(E,b,M,R.value,k),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?M:R.key),O=o(R,O,M),w===null?A=R:w.sibling=R,w=R);return e&&E.forEach(function(U){return t(b,U)}),zr&&mf(b,M),A}function v(b,O,S,k){if(typeof S=="object"&&S!==null&&S.type===yh&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case MO:e:{for(var A=S.key,w=O;w!==null;){if(w.key===A){if(A=S.type,A===yh){if(w.tag===7){n(b,w.sibling),O=i(w,S.props.children),O.return=b,b=O;break e}}else if(w.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Hc&&b6(A)===w.type){n(b,w.sibling),O=i(w,S.props),O.ref=Zg(b,w,S),O.return=b,b=O;break e}n(b,w);break}else t(b,w);w=w.sibling}S.type===yh?(O=Qf(S.props.children,b.mode,k,S.key),O.return=b,b=O):(k=hE(S.type,S.key,S.props,null,b.mode,k),k.ref=Zg(b,O,S),k.return=b,b=k)}return a(b);case bh:e:{for(w=S.key;O!==null;){if(O.key===w)if(O.tag===4&&O.stateNode.containerInfo===S.containerInfo&&O.stateNode.implementation===S.implementation){n(b,O.sibling),O=i(O,S.children||[]),O.return=b,b=O;break e}else{n(b,O);break}else t(b,O);O=O.sibling}O=pC(S,b.mode,k),O.return=b,b=O}return a(b);case Hc:return w=S._init,v(b,O,w(S._payload),k)}if(P0(S))return m(b,O,S,k);if(Wg(S))return y(b,O,S,k);YO(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,O!==null&&O.tag===6?(n(b,O.sibling),O=i(O,S),O.return=b,b=O):(n(b,O),O=fC(S,b.mode,k),O.return=b,b=O),a(b)):n(b,O)}return v}var _m=LH(!0),MH=LH(!1),O1={},vu=Wd(O1),Xb=Wd(O1),Kb=Wd(O1);function xf(e){if(e===O1)throw Error(St(174));return e}function hN(e,t){switch(wr(Kb,t),wr(Xb,e),wr(vu,O1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:v2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=v2(t,e)}Nr(vu),wr(vu,t)}function Rm(){Nr(vu),Nr(Xb),Nr(Kb)}function $H(e){xf(Kb.current);var t=xf(vu.current),n=v2(t,e.type);t!==n&&(wr(Xb,e),wr(vu,n))}function mN(e){Xb.current===e&&(Nr(vu),Nr(Xb))}var Yr=Wd(0);function vS(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 gN(){for(var e=0;en?n:4,e(!0);var r=sC.transition;sC.transition={};try{e(!1),t()}finally{cr=n,sC.transition=r}}function JH(){return Zs().memoizedState}function Vae(e,t,n){var r=Ed(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eW(e))tW(t,n);else if(n=IH(e,t,n,r),n!==null){var i=Xo();kl(n,e,r,i),nW(n,t,r)}}function Hae(e,t,n){var r=Ed(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eW(e))tW(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,fN(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=IH(e,t,i,r),n!==null&&(i=Xo(),kl(n,e,r,i),nW(n,t,r))}}function eW(e){var t=e.alternate;return e===Gr||t!==null&&t===Gr}function tW(e,t){rb=ES=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,KI(e,n)}}var SS={readContext:qs,useCallback:To,useContext:To,useEffect:To,useImperativeHandle:To,useInsertionEffect:To,useLayoutEffect:To,useMemo:To,useReducer:To,useRef:To,useState:To,useDebugValue:To,useDeferredValue:To,useTransition:To,useMutableSource:To,useSyncExternalStore:To,useId:To,unstable_isNewReconciler:!1},Wae={readContext:qs,useCallback:function(e,t){return Jl().memoizedState=[e,t===void 0?null:t],e},useContext:qs,useEffect:O6,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cE(4194308,4,GH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cE(4194308,4,e,t)},useInsertionEffect:function(e,t){return cE(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=Vae.bind(null,Gr,e),[r.memoizedState,e]},useRef:function(e){var t=Jl();return e={current:e},t.memoizedState=e},useState:y6,useDebugValue:EN,useDeferredValue:function(e){return Jl().memoizedState=e},useTransition:function(){var e=y6(!1),t=e[0];return e=zae.bind(null,e[1]),Jl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Gr,i=Jl();if(zr){if(n===void 0)throw Error(St(407));n=n()}else{if(n=t(),Gi===null)throw Error(St(349));Kf&30||UH(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,O6(zH.bind(null,r,o,e),[e]),r.flags|=2048,ty(9,jH.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=Jb++,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[Gb]=r,uW(e,t,!1,!1),t.stateNode=e;e:{switch(a=E2(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;iIm&&(t.flags|=128,r=!0,qg(o,!1),t.lanes=4194304)}else{if(!r)if(e=ES(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qg(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!zr)return To(t),null}else 2*pi()-o.renderingStartTime>Im&&n!==1073741824&&(t.flags|=128,r=!0,qg(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=pi(),t.sibling=null,n=Yr.current,wr(Yr,r?n&1|2:n&1),t):(To(t),null);case 22:case 23:return CN(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ha&1073741824&&(To(t),t.subtreeFlags&6&&(t.flags|=8192)):To(t),null;case 24:return null;case 25:return null}throw Error(St(156,t.tag))}function Wae(e,t){switch(sN(t),t.tag){case 1:return Ea(t.type)&&hS(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _m(),Nr(va),Nr(Po),gN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mN(t),null;case 13:if(Nr(Yr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(St(340));Cm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nr(Yr),null;case 4:return _m(),null;case 10:return dN(t.type._context),null;case 22:case 23:return CN(),null;case 24:return null;default:return null}}var qO=!1,Co=!1,Qae=typeof WeakSet=="function"?WeakSet:Set,Yt=null;function xh(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ii(e,t,r)}else n.current=null}function G2(e,t,n){try{n()}catch(r){ii(e,t,r)}}var C6=!1;function Yae(e,t){if(I2=cS,e=mH(),oN(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(N2={focusedElem:e,selectionRange:n},cS=!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){ii(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Yt=e;break}Yt=t.return}return m=C6,C6=!1,m}function nb(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&&G2(t,n,o)}i=i.next}while(i!==r)}}function sw(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 q2(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 fW(e){var t=e.alternate;t!==null&&(e.alternate=null,fW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lu],delete t[Gb],delete t[L2],delete t[_ae],delete t[Rae])),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 pW(e){return e.tag===5||e.tag===3||e.tag===4}function A6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pW(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 Z2(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=pS));else if(r!==4&&(e=e.child,e!==null))for(Z2(e,t,n),e=e.sibling;e!==null;)Z2(e,t,n),e=e.sibling}function X2(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(X2(e,t,n),e=e.sibling;e!==null;)X2(e,t,n),e=e.sibling}var ao=null,dl=!1;function Pc(e,t,n){for(n=n.child;n!==null;)hW(e,t,n),n=n.sibling}function hW(e,t,n){if(Ou&&typeof Ou.onCommitFiberUnmount=="function")try{Ou.onCommitFiberUnmount(JT,n)}catch{}switch(n.tag){case 5:Co||xh(n,t);case 6:var r=ao,i=dl;ao=null,Pc(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?rC(e.parentNode,n):e.nodeType===1&&rC(e,n),Vb(e)):rC(ao,n.stateNode));break;case 4:r=ao,i=dl,ao=n.stateNode.containerInfo,dl=!0,Pc(e,t,n),ao=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Co&&(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)&&G2(n,t,a),i=i.next}while(i!==r)}Pc(e,t,n);break;case 1:if(!Co&&(xh(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ii(n,t,s)}Pc(e,t,n);break;case 21:Pc(e,t,n);break;case 22:n.mode&1?(Co=(r=Co)||n.memoizedState!==null,Pc(e,t,n),Co=r):Pc(e,t,n);break;default:Pc(e,t,n)}}function _6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qae),t.forEach(function(r){var i=nse.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=pi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qae(r/1960))-r,10e?16:e,sd===null)var r=!1;else{if(e=sd,sd=null,xS=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;lpi()-kN?Wf(e,0):wN|=n),Sa(e,t)}function SW(e,t){t===0&&(e.mode&1?(t=UO,UO<<=1,!(UO&130023424)&&(UO=4194304)):t=1);var n=Xo();e=fc(e,t),e!==null&&(h1(e,t,n),Sa(e,n))}function tse(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),SW(e,n)}function nse(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),SW(e,n)}var TW;TW=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||va.current)ya=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ya=!1,Vae(e,t,n);ya=!!(e.flags&131072)}else ya=!1,zr&&t.flags&1048576&&xH(t,bS,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;dE(e,t),e=t.pendingProps;var i=xm(t,Po.current);Vh(t,n),i=yN(null,t,r,e,i,n);var o=ON();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,Ea(r)?(o=!0,mS(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,pN(t),i.updater=ow,t.stateNode=i,i._reactInternals=t,j2(t,r,e,n),t=H2(null,t,r,!0,o,n)):(t.tag=0,zr&&o&&aN(t),Go(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(dE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ise(r),e=ul(r,e),i){case 0:t=V2(null,t,r,e,n);break e;case 1:t=w6(null,t,r,e,n);break e;case 11:t=S6(null,t,r,e,n);break e;case 14:t=T6(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),V2(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),w6(e,t,r,i,n);case 3:e:{if(aW(t),e===null)throw Error(St(387));r=t.pendingProps,o=t.memoizedState,i=o.element,RH(e,t),vS(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=Rm(Error(St(423)),t),t=k6(e,t,r,n,i);break e}else if(r!==i){i=Rm(Error(St(424)),t),t=k6(e,t,r,n,i);break e}else for(es=yd(t.stateNode.containerInfo.firstChild),is=t,zr=!0,pl=null,n=PH(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cm(),r===i){t=pc(e,t,n);break e}Go(e,t,r,n)}t=t.child}return t;case 5:return LH(t),e===null&&F2(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,D2(r,i)?a=null:o!==null&&D2(r,o)&&(t.flags|=32),oW(e,t),Go(e,t,a,n),t.child;case 6:return e===null&&F2(t),null;case 13:return sW(e,t,n);case 4:return hN(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Am(t,null,r,n):Go(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),S6(e,t,r,i,n);case 7:return Go(e,t,t.pendingProps,n),t.child;case 8:return Go(e,t,t.pendingProps.children,n),t.child;case 12:return Go(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(yS,r._currentValue),r._currentValue=a,o!==null)if(Al(o.value,a)){if(o.children===i.children&&!va.current){t=pc(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=oc(-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),B2(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),B2(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}Go(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vh(t,n),i=qs(i),r=r(i),t.flags|=1,Go(e,t,r,n),t.child;case 14:return r=t.type,i=ul(r,t.pendingProps),i=ul(r.type,i),T6(e,t,r,i,n);case 15:return rW(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),dE(e,t),t.tag=1,Ea(r)?(e=!0,mS(t)):e=!1,Vh(t,n),NH(t,r,i),j2(t,r,i,n),H2(null,t,r,!0,e,n);case 19:return lW(e,t,n);case 22:return iW(e,t,n)}throw Error(St(156,t.tag))};function wW(e,t){return ZV(e,t)}function rse(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 $s(e,t,n,r){return new rse(e,t,n,r)}function _N(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ise(e){if(typeof e=="function")return _N(e)?1:0;if(e!=null){if(e=e.$$typeof,e===GI)return 11;if(e===qI)return 14}return 2}function Sd(e,t){var n=e.alternate;return n===null?(n=$s(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 hE(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")_N(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case bh:return Qf(n.children,i,o,t);case YI:a=8,i|=8;break;case d2:return e=$s(12,n,t,i|2),e.elementType=d2,e.lanes=o,e;case f2:return e=$s(13,n,t,i),e.elementType=f2,e.lanes=o,e;case p2:return e=$s(19,n,t,i),e.elementType=p2,e.lanes=o,e;case DV:return uw(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case IV:a=10;break e;case NV:a=9;break e;case GI:a=11;break e;case qI:a=14;break e;case Hc:a=16,r=null;break e}throw Error(St(130,e==null?e:typeof e,""))}return t=$s(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Qf(e,t,n,r){return e=$s(7,e,r,t),e.lanes=n,e}function uw(e,t,n,r){return e=$s(22,e,r,t),e.elementType=DV,e.lanes=n,e.stateNode={isHidden:!1},e}function dC(e,t,n){return e=$s(6,e,null,t),e.lanes=n,e}function fC(e,t,n){return t=$s(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ose(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=Qx(0),this.expirationTimes=Qx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qx(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function RN(e,t,n,r,i,o,a,s,l){return e=new ose(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=$s(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pN(o),e}function ase(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AW)}catch(e){console.error(e)}}AW(),xV.exports=ps;var y1=xV.exports;const M0=Vd(y1),dse=mV({__proto__:null,default:M0},[y1]);var $6=y1;u2.createRoot=$6.createRoot,u2.hydrateRoot=$6.hydrateRoot;const fse={black:"#000",white:"#fff"},ty=fse,pse={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"},Wp=pse,hse={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"},Qp=hse,mse={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"},Yp=mse,gse={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"},Gp=gse,bse={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"},qp=bse,yse={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"},Xg=yse,Ose={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"},vse=Ose;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 _W(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ese=/^((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)-.*))$/,Sse=_W(function(e){return Ese.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Tse(e){if(e.sheet)return e.sheet;for(var t=0;t0?lo(ig,--ka):0,Nm--,vi===10&&(Nm=1,mw--),vi}function os(){return vi=ka2||ry(vi)>3?"":" "}function Mse(e,t){for(;--t&&os()&&!(vi<48||vi>102||vi>57&&vi<65||vi>70&&vi<97););return O1(e,mE()+(t<6&&Eu()==32&&os()==32))}function r_(e){for(;os();)switch(vi){case e:return ka;case 34:case 39:e!==34&&e!==39&&r_(vi);break;case 40:e===41&&r_(e);break;case 92:os();break}return ka}function $se(e,t){for(;os()&&e+vi!==57;)if(e+vi===84&&Eu()===47)break;return"/*"+O1(t,ka-1)+"*"+hw(e===47?e:os())}function Fse(e){for(;!ry(Eu());)os();return O1(e,ka)}function Bse(e){return LW(bE("",null,null,null,[""],e=PW(e),0,[0],e))}function bE(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,A=o,w=r,E=S;O;)switch(m=v,v=os()){case 40:if(m!=108&&lo(E,d-1)==58){n_(E+=lr(gE(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:E+=gE(v);break;case 9:case 10:case 13:case 32:E+=Lse(m);break;case 92:E+=Mse(mE()-1,7);continue;case 47:switch(Eu()){case 42:case 47:KO(Use($se(os(),mE()),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&&KO(h>32?B6(E+";",r,n,d-1):B6(lr(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(KO(w=F6(E,t,n,u,c,i,s,S,k=[],A=[],d),o),v===123)if(c===0)bE(E,t,w,w,k,o,d,s,A);else switch(p===99&&lo(E,3)===110?100:p){case 100:case 108:case 109:case 115:bE(e,w,w,r&&KO(F6(e,w,w,0,0,i,s,S,i,k=[],d),A),i,A,d,s,r?k:A);break;default:bE(E,w,w,w,[""],A,0,s,A)}}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&&Pse()==125)continue}switch(E+=hw(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+=gE(os())),p=Eu(),c=d=au(S=E+=Fse(mE())),v++;break;case 45:m===45&&au(E)==2&&(y=0)}}return o}function F6(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=i===0?o:[""],h=MN(p),m=0,y=0,O=0;m0?p[b]+" "+v:lr(v,/&\f/g,p[b])))&&(l[O++]=S);return gw(e,t,n,i===0?PN:s,l,u,c)}function Use(e,t,n){return gw(e,t,n,RW,hw(Dse()),ny(e,2,-2),0)}function B6(e,t,n,r){return gw(e,t,n,LN,ny(e,0,r),ny(e,r+1,-1),r)}function Wh(e,t){for(var n="",r=MN(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"+_S+(lo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~n_(e,"stretch")?MW(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-(~n_(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"+ko+"$2box$3")+e}break;case 5936:switch(lo(e,t+11)){case 114:return sr+e+ko+lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sr+e+ko+lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sr+e+ko+lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sr+e+ko+e+e}return e}var qse=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case LN:t.return=MW(t.value,t.length);break;case IW:return Wh([Kg(t,{value:lr(t.value,"@","@"+sr)})],i);case PN:if(t.length)return Nse(t.props,function(o){switch(Ise(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wh([Kg(t,{props:[lr(o,/:(read-\w+)/,":"+_S+"$1")]})],i);case"::placeholder":return Wh([Kg(t,{props:[lr(o,/:(plac\w+)/,":"+sr+"input-$1")]}),Kg(t,{props:[lr(o,/:(plac\w+)/,":"+_S+"$1")]}),Kg(t,{props:[lr(o,/:(plac\w+)/,ko+"input-$1")]})],i)}return""})}},Zse=[qse],Xse=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||Zse,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[lu]=t,e[Zb]=r,dW(e,t,!1,!1),t.stateNode=e;e:{switch(a=S2(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;iNm&&(t.flags|=128,r=!0,Xg(o,!1),t.lanes=4194304)}else{if(!r)if(e=vS(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xg(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!zr)return wo(t),null}else 2*pi()-o.renderingStartTime>Nm&&n!==1073741824&&(t.flags|=128,r=!0,Xg(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=pi(),t.sibling=null,n=Yr.current,wr(Yr,r?n&1|2:n&1),t):(wo(t),null);case 22:case 23:return CN(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ha&1073741824&&(wo(t),t.subtreeFlags&6&&(t.flags|=8192)):wo(t),null;case 24:return null;case 25:return null}throw Error(St(156,t.tag))}function Jae(e,t){switch(sN(t),t.tag){case 1:return Ea(t.type)&&pS(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rm(),Nr(va),Nr(Po),gN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mN(t),null;case 13:if(Nr(Yr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(St(340));Am()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nr(Yr),null;case 4:return Rm(),null;case 10:return dN(t.type._context),null;case 22:case 23:return CN(),null;case 24:return null;default:return null}}var qO=!1,Ao=!1,ese=typeof WeakSet=="function"?WeakSet:Set,Yt=null;function Ch(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ii(e,t,r)}else n.current=null}function q2(e,t,n){try{n()}catch(r){ii(e,t,r)}}var A6=!1;function tse(e,t){if(N2=uS,e=bH(),oN(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(D2={focusedElem:e,selectionRange:n},uS=!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,v=m.memoizedState,b=t.stateNode,O=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:ul(t.type,y),v);b.__reactInternalSnapshotBeforeUpdate=O}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){ii(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Yt=e;break}Yt=t.return}return m=A6,A6=!1,m}function ib(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&&q2(t,n,o)}i=i.next}while(i!==r)}}function sw(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 Z2(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[lu],delete t[Zb],delete t[M2],delete t[$ae],delete t[Fae])),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 mW(e){return e.tag===5||e.tag===3||e.tag===4}function _6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mW(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 X2(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=fS));else if(r!==4&&(e=e.child,e!==null))for(X2(e,t,n),e=e.sibling;e!==null;)X2(e,t,n),e=e.sibling}function K2(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(K2(e,t,n),e=e.sibling;e!==null;)K2(e,t,n),e=e.sibling}var ao=null,dl=!1;function Pc(e,t,n){for(n=n.child;n!==null;)gW(e,t,n),n=n.sibling}function gW(e,t,n){if(Ou&&typeof Ou.onCommitFiberUnmount=="function")try{Ou.onCommitFiberUnmount(JT,n)}catch{}switch(n.tag){case 5:Ao||Ch(n,t);case 6:var r=ao,i=dl;ao=null,Pc(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),Wb(e)):iC(ao,n.stateNode));break;case 4:r=ao,i=dl,ao=n.stateNode.containerInfo,dl=!0,Pc(e,t,n),ao=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Ao&&(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)&&q2(n,t,a),i=i.next}while(i!==r)}Pc(e,t,n);break;case 1:if(!Ao&&(Ch(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ii(n,t,s)}Pc(e,t,n);break;case 21:Pc(e,t,n);break;case 22:n.mode&1?(Ao=(r=Ao)||n.memoizedState!==null,Pc(e,t,n),Ao=r):Pc(e,t,n);break;default:Pc(e,t,n)}}function R6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ese),t.forEach(function(r){var i=cse.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=pi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rse(r/1960))-r,10e?16:e,sd===null)var r=!1;else{if(e=sd,sd=null,kS=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;lpi()-kN?Wf(e,0):wN|=n),Sa(e,t)}function wW(e,t){t===0&&(e.mode&1?(t=UO,UO<<=1,!(UO&130023424)&&(UO=4194304)):t=1);var n=Xo();e=fc(e,t),e!==null&&(g1(e,t,n),Sa(e,n))}function use(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wW(e,n)}function cse(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),wW(e,n)}var kW;kW=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||va.current)ya=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ya=!1,Xae(e,t,n);ya=!!(e.flags&131072)}else ya=!1,zr&&t.flags&1048576&&AH(t,gS,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;dE(e,t),e=t.pendingProps;var i=Cm(t,Po.current);Hh(t,n),i=yN(null,t,r,e,i,n);var o=ON();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,Ea(r)?(o=!0,hS(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,pN(t),i.updater=ow,t.stateNode=i,i._reactInternals=t,z2(t,r,e,n),t=W2(null,t,r,!0,o,n)):(t.tag=0,zr&&o&&aN(t),Go(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(dE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=fse(r),e=ul(r,e),i){case 0:t=H2(null,t,r,e,n);break e;case 1:t=k6(null,t,r,e,n);break e;case 11:t=T6(null,t,r,e,n);break e;case 14:t=w6(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),H2(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),k6(e,t,r,i,n);case 3:e:{if(lW(t),e===null)throw Error(St(387));r=t.pendingProps,o=t.memoizedState,i=o.element,NH(e,t),OS(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=Im(Error(St(423)),t),t=x6(e,t,r,n,i);break e}else if(r!==i){i=Im(Error(St(424)),t),t=x6(e,t,r,n,i);break e}else for(es=yd(t.stateNode.containerInfo.firstChild),os=t,zr=!0,pl=null,n=MH(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Am(),r===i){t=pc(e,t,n);break e}Go(e,t,r,n)}t=t.child}return t;case 5:return $H(t),e===null&&B2(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,P2(r,i)?a=null:o!==null&&P2(r,o)&&(t.flags|=32),sW(e,t),Go(e,t,a,n),t.child;case 6:return e===null&&B2(t),null;case 13:return uW(e,t,n);case 4:return hN(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_m(t,null,r,n):Go(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),T6(e,t,r,i,n);case 7:return Go(e,t,t.pendingProps,n),t.child;case 8:return Go(e,t,t.pendingProps.children,n),t.child;case 12:return Go(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(bS,r._currentValue),r._currentValue=a,o!==null)if(Al(o.value,a)){if(o.children===i.children&&!va.current){t=pc(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=oc(-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),U2(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),U2(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}Go(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hh(t,n),i=qs(i),r=r(i),t.flags|=1,Go(e,t,r,n),t.child;case 14:return r=t.type,i=ul(r,t.pendingProps),i=ul(r.type,i),w6(e,t,r,i,n);case 15:return oW(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),dE(e,t),t.tag=1,Ea(r)?(e=!0,hS(t)):e=!1,Hh(t,n),PH(t,r,i),z2(t,r,i,n),W2(null,t,r,!0,e,n);case 19:return cW(e,t,n);case 22:return aW(e,t,n)}throw Error(St(156,t.tag))};function xW(e,t){return KV(e,t)}function dse(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 $s(e,t,n,r){return new dse(e,t,n,r)}function _N(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fse(e){if(typeof e=="function")return _N(e)?1:0;if(e!=null){if(e=e.$$typeof,e===GI)return 11;if(e===qI)return 14}return 2}function Sd(e,t){var n=e.alternate;return n===null?(n=$s(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 hE(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")_N(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case yh:return Qf(n.children,i,o,t);case YI:a=8,i|=8;break;case f2:return e=$s(12,n,t,i|2),e.elementType=f2,e.lanes=o,e;case p2:return e=$s(13,n,t,i),e.elementType=p2,e.lanes=o,e;case h2:return e=$s(19,n,t,i),e.elementType=h2,e.lanes=o,e;case LV:return uw(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case DV:a=10;break e;case PV:a=9;break e;case GI:a=11;break e;case qI:a=14;break e;case Hc:a=16,r=null;break e}throw Error(St(130,e==null?e:typeof e,""))}return t=$s(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Qf(e,t,n,r){return e=$s(7,e,r,t),e.lanes=n,e}function uw(e,t,n,r){return e=$s(22,e,r,t),e.elementType=LV,e.lanes=n,e.stateNode={isHidden:!1},e}function fC(e,t,n){return e=$s(6,e,null,t),e.lanes=n,e}function pC(e,t,n){return t=$s(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pse(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 RN(e,t,n,r,i,o,a,s,l){return e=new pse(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=$s(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pN(o),e}function hse(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(RW)}catch(e){console.error(e)}}RW(),AV.exports=ps;var v1=AV.exports;const $0=Vd(v1),Ose=bV({__proto__:null,default:$0},[v1]);var F6=v1;c2.createRoot=F6.createRoot,c2.hydrateRoot=F6.hydrateRoot;const vse={black:"#000",white:"#fff"},ry=vse,Ese={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"},Wp=Ese,Sse={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"},Qp=Sse,Tse={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"},Yp=Tse,wse={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"},Gp=wse,kse={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"},qp=kse,xse={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"},Jg=xse,Cse={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"},Ase=Cse;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 IW(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _se=/^((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)-.*))$/,Rse=IW(function(e){return _se.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Ise(e){if(e.sheet)return e.sheet;for(var t=0;t0?lo(og,--ka):0,Dm--,vi===10&&(Dm=1,mw--),vi}function as(){return vi=ka2||oy(vi)>3?"":" "}function Hse(e,t){for(;--t&&as()&&!(vi<48||vi>102||vi>57&&vi<65||vi>70&&vi<97););return E1(e,mE()+(t<6&&Eu()==32&&as()==32))}function i_(e){for(;as();)switch(vi){case e:return ka;case 34:case 39:e!==34&&e!==39&&i_(vi);break;case 40:e===41&&i_(e);break;case 92:as();break}return ka}function Wse(e,t){for(;as()&&e+vi!==57;)if(e+vi===84&&Eu()===47)break;return"/*"+E1(t,ka-1)+"*"+hw(e===47?e:as())}function Qse(e){for(;!oy(Eu());)as();return E1(e,ka)}function Yse(e){return $W(bE("",null,null,null,[""],e=MW(e),0,[0],e))}function bE(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,v=1,b=1,O=0,S="",k=i,A=o,w=r,E=S;v;)switch(m=O,O=as()){case 40:if(m!=108&&lo(E,d-1)==58){r_(E+=lr(gE(O),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:E+=gE(O);break;case 9:case 10:case 13:case 32:E+=Vse(m);break;case 92:E+=Hse(mE()-1,7);continue;case 47:switch(Eu()){case 42:case 47:KO(Gse(Wse(as(),mE()),t,n),l);break;default:E+="/"}break;case 123*y:s[u++]=au(E)*b;case 125*y:case 59:case 0:switch(O){case 0:case 125:v=0;case 59+c:b==-1&&(E=lr(E,/\f/g,"")),h>0&&au(E)-d&&KO(h>32?U6(E+";",r,n,d-1):U6(lr(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(KO(w=B6(E,t,n,u,c,i,s,S,k=[],A=[],d),o),O===123)if(c===0)bE(E,t,w,w,k,o,d,s,A);else switch(p===99&&lo(E,3)===110?100:p){case 100:case 108:case 109:case 115:bE(e,w,w,r&&KO(B6(e,w,w,0,0,i,s,S,i,k=[],d),A),i,A,d,s,r?k:A);break;default:bE(E,w,w,w,[""],A,0,s,A)}}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(O==123)--y;else if(O==125&&y++==0&&zse()==125)continue}switch(E+=hw(O),O*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+=gE(as())),p=Eu(),c=d=au(S=E+=Qse(mE())),O++;break;case 45:m===45&&au(E)==2&&(y=0)}}return o}function B6(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=i===0?o:[""],h=MN(p),m=0,y=0,v=0;m0?p[b]+" "+O:lr(O,/&\f/g,p[b])))&&(l[v++]=S);return gw(e,t,n,i===0?PN:s,l,u,c)}function Gse(e,t,n){return gw(e,t,n,NW,hw(jse()),iy(e,2,-2),0)}function U6(e,t,n,r){return gw(e,t,n,LN,iy(e,0,r),iy(e,r+1,-1),r)}function Qh(e,t){for(var n="",r=MN(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"+AS+(lo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r_(e,"stretch")?FW(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-(~r_(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"+xo+"$2box$3")+e}break;case 5936:switch(lo(e,t+11)){case 114:return sr+e+xo+lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sr+e+xo+lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sr+e+xo+lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sr+e+xo+e+e}return e}var rle=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case LN:t.return=FW(t.value,t.length);break;case DW:return Qh([e0(t,{value:lr(t.value,"@","@"+sr)})],i);case PN:if(t.length)return Use(t.props,function(o){switch(Bse(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qh([e0(t,{props:[lr(o,/:(read-\w+)/,":"+AS+"$1")]})],i);case"::placeholder":return Qh([e0(t,{props:[lr(o,/:(plac\w+)/,":"+sr+"input-$1")]}),e0(t,{props:[lr(o,/:(plac\w+)/,":"+AS+"$1")]}),e0(t,{props:[lr(o,/:(plac\w+)/,xo+"input-$1")]})],i)}return""})}},ile=[rle],ole=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 v=y.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||ile,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var v=y.getAttribute("data-emotion").split(" "),b=1;b=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 ule={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},cle=/[A-Z]|^ms/g,dle=/_EMO_([^_]+?)_([^]*?)_EMO_/g,VW=function(t){return t.charCodeAt(1)===45},j6=function(t){return t!=null&&typeof t!="boolean"},pC=_W(function(e){return VW(e)?e:e.replace(cle,"-$&").toLowerCase()}),z6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(dle,function(r,i,o){return su={name:i,styles:o,next:su},i})}return ule[t]!==1&&!VW(t)&&typeof n=="number"&&n!==0?n+"px":n};function iy(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 fle(e,t,n)}case"function":{if(e!==void 0){var o=su,a=n(e);return su=o,iy(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function fle(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?gle:ble},Q6=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},yle=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return jW(n,r,i),hle(function(){return zW(n,r,i)}),null},Ole=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=Q6(t,n,r),l=s||W6(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(xle(i)?n:i):t;return $.jsx(mle,{styles:r})}function ZW(e,t){return i_(e,t)}const Ale=(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 XW(e){if(!ec(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=XW(e[n])}),t}function Io(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]=Io(e[i],t[i],n):n.clone?r[i]=ec(t[i])?XW(t[i]):t[i]:r[i]=t[i])}),r}var pr={};/** + */var Zi=typeof Symbol=="function"&&Symbol.for,$N=Zi?Symbol.for("react.element"):60103,FN=Zi?Symbol.for("react.portal"):60106,bw=Zi?Symbol.for("react.fragment"):60107,yw=Zi?Symbol.for("react.strict_mode"):60108,Ow=Zi?Symbol.for("react.profiler"):60114,vw=Zi?Symbol.for("react.provider"):60109,Ew=Zi?Symbol.for("react.context"):60110,BN=Zi?Symbol.for("react.async_mode"):60111,Sw=Zi?Symbol.for("react.concurrent_mode"):60111,Tw=Zi?Symbol.for("react.forward_ref"):60112,ww=Zi?Symbol.for("react.suspense"):60113,ale=Zi?Symbol.for("react.suspense_list"):60120,kw=Zi?Symbol.for("react.memo"):60115,xw=Zi?Symbol.for("react.lazy"):60116,sle=Zi?Symbol.for("react.block"):60121,lle=Zi?Symbol.for("react.fundamental"):60117,ule=Zi?Symbol.for("react.responder"):60118,cle=Zi?Symbol.for("react.scope"):60119;function ms(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $N:switch(e=e.type,e){case BN:case Sw:case bw:case Ow:case yw:case ww:return e;default:switch(e=e&&e.$$typeof,e){case Ew:case Tw:case xw:case kw:case vw:return e;default:return t}}case FN:return t}}}function UW(e){return ms(e)===Sw}fr.AsyncMode=BN;fr.ConcurrentMode=Sw;fr.ContextConsumer=Ew;fr.ContextProvider=vw;fr.Element=$N;fr.ForwardRef=Tw;fr.Fragment=bw;fr.Lazy=xw;fr.Memo=kw;fr.Portal=FN;fr.Profiler=Ow;fr.StrictMode=yw;fr.Suspense=ww;fr.isAsyncMode=function(e){return UW(e)||ms(e)===BN};fr.isConcurrentMode=UW;fr.isContextConsumer=function(e){return ms(e)===Ew};fr.isContextProvider=function(e){return ms(e)===vw};fr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$N};fr.isForwardRef=function(e){return ms(e)===Tw};fr.isFragment=function(e){return ms(e)===bw};fr.isLazy=function(e){return ms(e)===xw};fr.isMemo=function(e){return ms(e)===kw};fr.isPortal=function(e){return ms(e)===FN};fr.isProfiler=function(e){return ms(e)===Ow};fr.isStrictMode=function(e){return ms(e)===yw};fr.isSuspense=function(e){return ms(e)===ww};fr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bw||e===Sw||e===Ow||e===yw||e===ww||e===ale||typeof e=="object"&&e!==null&&(e.$$typeof===xw||e.$$typeof===kw||e.$$typeof===vw||e.$$typeof===Ew||e.$$typeof===Tw||e.$$typeof===lle||e.$$typeof===ule||e.$$typeof===cle||e.$$typeof===sle)};fr.typeOf=ms;BW.exports=fr;var dle=BW.exports,jW=dle,fle={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ple={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zW={};zW[jW.ForwardRef]=fle;zW[jW.Memo]=ple;var hle=!0;function mle(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var VW=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||hle===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},HW=function(t,n,r){VW(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 gle(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 ble={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},yle=/[A-Z]|^ms/g,Ole=/_EMO_([^_]+?)_([^]*?)_EMO_/g,WW=function(t){return t.charCodeAt(1)===45},z6=function(t){return t!=null&&typeof t!="boolean"},hC=IW(function(e){return WW(e)?e:e.replace(yle,"-$&").toLowerCase()}),V6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ole,function(r,i,o){return su={name:i,styles:o,next:su},i})}return ble[t]!==1&&!WW(t)&&typeof n=="number"&&n!==0?n+"px":n};function ay(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 vle(e,t,n)}case"function":{if(e!==void 0){var o=su,a=n(e);return su=o,ay(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function vle(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?wle:kle},Y6=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},xle=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return VW(n,r,i),Sle(function(){return HW(n,r,i)}),null},Cle=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=Y6(t,n,r),l=s||Q6(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(Ple(i)?n:i):t;return $.jsx(Tle,{styles:r})}function KW(e,t){return o_(e,t)}const Mle=(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 JW(e){if(!ec(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=JW(e[n])}),t}function Io(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]=Io(e[i],t[i],n):n.clone?r[i]=ec(t[i])?JW(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 zN=Symbol.for("react.element"),VN=Symbol.for("react.portal"),Aw=Symbol.for("react.fragment"),_w=Symbol.for("react.strict_mode"),Rw=Symbol.for("react.profiler"),Iw=Symbol.for("react.provider"),Nw=Symbol.for("react.context"),_le=Symbol.for("react.server_context"),Dw=Symbol.for("react.forward_ref"),Pw=Symbol.for("react.suspense"),Lw=Symbol.for("react.suspense_list"),Mw=Symbol.for("react.memo"),$w=Symbol.for("react.lazy"),Rle=Symbol.for("react.offscreen"),KW;KW=Symbol.for("react.module.reference");function el(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zN:switch(e=e.type,e){case Aw:case Rw:case _w:case Pw:case Lw:return e;default:switch(e=e&&e.$$typeof,e){case _le:case Nw:case Dw:case $w:case Mw:case Iw:return e;default:return t}}case VN:return t}}}pr.ContextConsumer=Nw;pr.ContextProvider=Iw;pr.Element=zN;pr.ForwardRef=Dw;pr.Fragment=Aw;pr.Lazy=$w;pr.Memo=Mw;pr.Portal=VN;pr.Profiler=Rw;pr.StrictMode=_w;pr.Suspense=Pw;pr.SuspenseList=Lw;pr.isAsyncMode=function(){return!1};pr.isConcurrentMode=function(){return!1};pr.isContextConsumer=function(e){return el(e)===Nw};pr.isContextProvider=function(e){return el(e)===Iw};pr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zN};pr.isForwardRef=function(e){return el(e)===Dw};pr.isFragment=function(e){return el(e)===Aw};pr.isLazy=function(e){return el(e)===$w};pr.isMemo=function(e){return el(e)===Mw};pr.isPortal=function(e){return el(e)===VN};pr.isProfiler=function(e){return el(e)===Rw};pr.isStrictMode=function(e){return el(e)===_w};pr.isSuspense=function(e){return el(e)===Pw};pr.isSuspenseList=function(e){return el(e)===Lw};pr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Aw||e===Rw||e===_w||e===Pw||e===Lw||e===Rle||typeof e=="object"&&e!==null&&(e.$$typeof===$w||e.$$typeof===Mw||e.$$typeof===Iw||e.$$typeof===Nw||e.$$typeof===Dw||e.$$typeof===KW||e.getModuleId!==void 0)};pr.typeOf=el;const Ile=W.oneOfType([W.func,W.object]),og=Ile;function tt(e){if(typeof e!="string")throw new Error(Dd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function RS(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function ag(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 Nle(e,t){return()=>null}function ob(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 Dle(e,t){return()=>null}function oy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Zr=typeof window<"u"?N.useLayoutEffect:N.useEffect;let Y6=0;function Ple(e){const[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t==null&&(Y6+=1,n(`mui-${Y6}`))},[t]),r}const G6=wm.useId;function Pl(e){if(G6!==void 0){const t=G6();return e??t}return Ple(e)}function Lle(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 Zr(()=>{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=>{oy(n,t)})},e)}let Fw=!0,o_=!1,q6;const Mle={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 $le(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Mle[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Fle(e){e.metaKey||e.altKey||e.ctrlKey||(Fw=!0)}function hC(){Fw=!1}function Ble(){this.visibilityState==="hidden"&&o_&&(Fw=!0)}function Ule(e){e.addEventListener("keydown",Fle,!0),e.addEventListener("mousedown",hC,!0),e.addEventListener("pointerdown",hC,!0),e.addEventListener("touchstart",hC,!0),e.addEventListener("visibilitychange",Ble,!0)}function jle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Fw||$le(t)}function Bw(){const e=N.useCallback(i=>{i!=null&&Ule(i.ownerDocument)},[]),t=N.useRef(!1);function n(){return t.current?(o_=!0,window.clearTimeout(q6),q6=window.setTimeout(()=>{o_=!1},100),t.current=!1,!0):!1}function r(i){return jle(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function JW(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Zp;function eQ(){if(Zp)return Zp;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),Zp="reverse",e.scrollLeft>0?Zp="default":(e.scrollLeft=1,e.scrollLeft===0&&(Zp="negative")),document.body.removeChild(e),Zp}function zle(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(eQ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Vle=e=>{const t=N.useRef({});return N.useEffect(()=>{t.current=e}),t.current};function Hle(e){return N.Children.toArray(e).filter(t=>N.isValidElement(t))}const Wle={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Qle=Wle;function Uw(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]=Uw(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 Z6=e=>e,Yle=()=>{let e=Z6;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Z6}}},HN=Yle(),Gle={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=Gle[t];return r?`${n}-${r}`:`${HN.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=At(e,i,n)}),r}const qle=["values","unit","step"],Zle=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 Xle(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ge(e,qle),o=Zle(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:${WN[e]}px)`};function xa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||X6;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||X6;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||WN).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 tQ(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function nQ(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function eue(e,...t){const n=tQ(e),r=[n,...t].reduce((i,o)=>Io(i,o),{});return nQ(Object.keys(n),r)}function tue(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||tue(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 jw(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 IS(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=jw(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=jw(l,r)||{};return xa(a,s,d=>{let p=IS(u,i,d);return d===p&&typeof d=="string"&&(p=IS(u,i,`${t}${d==="default"?"":tt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function nue(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const rue={m:"margin",p:"padding"},iue={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},K6={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oue=nue(e=>{if(e.length>2)if(K6[e])e=K6[e];else return[e];const[t,n]=e.split(""),r=rue[t],i=iue[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),QN=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],YN=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...QN,...YN];function E1(e,t,n,r){var i;const o=(i=jw(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 E1(e,"spacing",8)}function np(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 aue(e,t){return n=>e.reduce((r,i)=>(r[i]=np(t,n),r),{})}function sue(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=oue(n),o=aue(i,r),a=e[n];return xa(e,a,o)}function rQ(e,t){const n=GN(e.theme);return Object.keys(e).map(r=>sue(e,t,r,n)).reduce(ab,{})}function ti(e){return rQ(e,QN)}ti.propTypes={};ti.filterProps=QN;function ni(e){return rQ(e,YN)}ni.propTypes={};ni.filterProps=YN;function lue(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 zw(...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]?ab(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ds(e){return typeof e!="number"?e:`${e}px solid`}function tl(e,t){return gi({prop:e,themeKey:"borders",transform:t})}const uue=tl("border",Ds),cue=tl("borderTop",Ds),due=tl("borderRight",Ds),fue=tl("borderBottom",Ds),pue=tl("borderLeft",Ds),hue=tl("borderColor"),mue=tl("borderTopColor"),gue=tl("borderRightColor"),bue=tl("borderBottomColor"),yue=tl("borderLeftColor"),Oue=tl("outline",Ds),vue=tl("outlineColor"),Vw=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=E1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:np(t,r)});return xa(e,e.borderRadius,n)}return null};Vw.propTypes={};Vw.filterProps=["borderRadius"];zw(uue,cue,due,fue,pue,hue,mue,gue,bue,yue,Vw,Oue,vue);const Hw=e=>{if(e.gap!==void 0&&e.gap!==null){const t=E1(e.theme,"spacing",8),n=r=>({gap:np(t,r)});return xa(e,e.gap,n)}return null};Hw.propTypes={};Hw.filterProps=["gap"];const Ww=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=E1(e.theme,"spacing",8),n=r=>({columnGap:np(t,r)});return xa(e,e.columnGap,n)}return null};Ww.propTypes={};Ww.filterProps=["columnGap"];const Qw=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=E1(e.theme,"spacing",8),n=r=>({rowGap:np(t,r)});return xa(e,e.rowGap,n)}return null};Qw.propTypes={};Qw.filterProps=["rowGap"];const Eue=gi({prop:"gridColumn"}),Sue=gi({prop:"gridRow"}),Tue=gi({prop:"gridAutoFlow"}),wue=gi({prop:"gridAutoColumns"}),kue=gi({prop:"gridAutoRows"}),xue=gi({prop:"gridTemplateColumns"}),Cue=gi({prop:"gridTemplateRows"}),Aue=gi({prop:"gridTemplateAreas"}),_ue=gi({prop:"gridArea"});zw(Hw,Ww,Qw,Eue,Sue,Tue,wue,kue,xue,Cue,Aue,_ue);function Qh(e,t){return t==="grey"?t:e}const Rue=gi({prop:"color",themeKey:"palette",transform:Qh}),Iue=gi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qh}),Nue=gi({prop:"backgroundColor",themeKey:"palette",transform:Qh});zw(Rue,Iue,Nue);function Xa(e){return e<=1&&e!==0?`${e*100}%`:e}const Due=gi({prop:"width",transform:Xa}),qN=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])||WN[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:Xa(n)}};return xa(e,e.maxWidth,t)}return null};qN.filterProps=["maxWidth"];const Pue=gi({prop:"minWidth",transform:Xa}),Lue=gi({prop:"height",transform:Xa}),Mue=gi({prop:"maxHeight",transform:Xa}),$ue=gi({prop:"minHeight",transform:Xa});gi({prop:"size",cssProperty:"width",transform:Xa});gi({prop:"size",cssProperty:"height",transform:Xa});const Fue=gi({prop:"boxSizing"});zw(Due,qN,Pue,Lue,Mue,$ue,Fue);const Bue={border:{themeKey:"borders",transform:Ds},borderTop:{themeKey:"borders",transform:Ds},borderRight:{themeKey:"borders",transform:Ds},borderBottom:{themeKey:"borders",transform:Ds},borderLeft:{themeKey:"borders",transform:Ds},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ds},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vw},color:{themeKey:"palette",transform:Qh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qh},backgroundColor:{themeKey:"palette",transform:Qh},p:{style:ni},pt:{style:ni},pr:{style:ni},pb:{style:ni},pl:{style:ni},px:{style:ni},py:{style:ni},padding:{style:ni},paddingTop:{style:ni},paddingRight:{style:ni},paddingBottom:{style:ni},paddingLeft:{style:ni},paddingX:{style:ni},paddingY:{style:ni},paddingInline:{style:ni},paddingInlineStart:{style:ni},paddingInlineEnd:{style:ni},paddingBlock:{style:ni},paddingBlockStart:{style:ni},paddingBlockEnd:{style:ni},m:{style:ti},mt:{style:ti},mr:{style:ti},mb:{style:ti},ml:{style:ti},mx:{style:ti},my:{style:ti},margin:{style:ti},marginTop:{style:ti},marginRight:{style:ti},marginBottom:{style:ti},marginLeft:{style:ti},marginX:{style:ti},marginY:{style:ti},marginInline:{style:ti},marginInlineStart:{style:ti},marginInlineEnd:{style:ti},marginBlock:{style:ti},marginBlockStart:{style:ti},marginBlockEnd:{style:ti},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:Hw},rowGap:{style:Qw},columnGap:{style:Ww},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xa},maxWidth:{style:qN},minWidth:{transform:Xa},height:{transform:Xa},maxHeight:{transform:Xa},minHeight:{transform:Xa},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Yw=Bue;function Uue(...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 jue(e,t){return typeof e=="function"?e(t):e}function zue(){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=jw(i,u)||{};return d?d(a):xa(a,r,m=>{let y=IS(p,c,m);return m===y&&typeof m=="string"&&(y=IS(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:Yw;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=tQ(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const m=jue(u[h],o);if(m!=null)if(typeof m=="object")if(a[h])p=ab(p,e(h,m,o,a));else{const y=xa({theme:o},m,O=>({[h]:O}));Uue(y,m)?p[h]=t({sx:m,theme:o}):p=ab(p,y)}else p=ab(p,e(h,m,o,a))}),nQ(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const S1=zue();S1.filterProps=["sx"];const Vue=["breakpoints","palette","spacing","shape"];function T1(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ge(e,Vue),s=Xle(n),l=lue(i);let u=Io({breakpoints:s,direction:"ltr",components:{},palette:L({mode:"light"},r),spacing:l,shape:L({},Jle,o)},a);return u=t.reduce((c,d)=>Io(c,d),u),u.unstable_sxConfig=L({},Yw,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return S1({sx:d,theme:this})},u}function Hue(e){return Object.keys(e).length===0}function Gw(e=null){const t=N.useContext(Cw);return!t||Hue(t)?e:t}const Wue=T1();function sg(e=Wue){return Gw(e)}function Que({styles:e,themeId:t,defaultTheme:n={}}){const r=sg(n),i=typeof e=="function"?e(t&&r[t]||r):e;return $.jsx(Cle,{styles:i})}const Yue=["sx"],Gue=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Yw;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function qw(e){const{sx:t}=e,n=Ge(e,Yue),{systemProps:r,otherProps:i}=Gue(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 iQ(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"})(S1);return N.forwardRef(function(l,u){const c=sg(n),d=qw(l),{className:p,component:h="div"}=d,m=Ge(d,que);return $.jsx(o,L({as:h,ref:u,className:et(p,i?i(r):r),theme:t&&c[t]||c},m))})}const Xue=["variant"];function J6(e){return e.length===0}function oQ(e){const{variant:t}=e,n=Ge(e,Xue);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=J6(r)?e[i]:tt(e[i]):r+=`${J6(r)?i:tt(i)}${tt(e[i].toString())}`}),r}const Kue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Jue(e){return Object.keys(e).length===0}function ece(e){return typeof e=="string"&&e.charCodeAt(0)>96}const tce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,NS=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=oQ(r.props),n[i]=r.style}),n},nce=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),NS(n)},DS=(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[oQ(a.props)])),typeof a.props=="function"&&(o+=1)}),i},rce=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return DS(e,t,o)};function sb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ice=T1(),oce=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yE({defaultTheme:e,theme:t,themeId:n}){return Jue(t)?e:t[n]||t}function ace(e){return e?(t,n)=>n[e]:null}const eB=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(L({},t,{theme:yE(L({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=DS(t,NS(o),o);return[i,...a]}return i};function aQ(e={}){const{themeId:t,defaultTheme:n=ice,rootShouldForwardProp:r=sb,slotShouldForwardProp:i=sb}=e,o=a=>S1(L({},a,{theme:yE(L({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Ale(a,k=>k.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=ace(oce(u))}=s,h=Ge(s,Kue),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let O,b=sb;u==="Root"||u==="root"?b=r:u?b=i:ece(a)&&(b=void 0);const v=ZW(a,L({shouldForwardProp:b,label:O},h)),S=(k,...A)=>{const w=A?A.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return B=>eB({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 DS(V,NS(U),U).forEach(X=>{z=Io(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 DS(B,NS(R),R).forEach(z=>{U=Io(U,z)}),U})}else typeof k=="function"&&k.__emotion_real!==k&&(E=R=>eB({styledArg:k,props:R,defaultTheme:n,themeId:t}));l&&p&&w.push(R=>{const B=yE(L({},R,{defaultTheme:n,themeId:t})),U=tce(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=yE(L({},R,{defaultTheme:n,themeId:t}));return rce(R,nce(l,B),B,l)}),y||w.push(o);const M=w.length-A.length;if(Array.isArray(k)&&M>0){const R=new Array(M).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 sQ=aQ();function lQ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Uw(t.components[n].defaultProps,r)}function ZN({props:e,name:t,defaultTheme:n,themeId:r}){let i=sg(n);return r&&(i=i[r]||i),lQ({theme:i,name:t,props:e})}function XN(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function sce(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 rp(e){if(e.type)return e;if(e.charAt(0)==="#")return rp(sce(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 Zw(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 lce(e){e=rp(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])),Zw({type:s,values:l})}function tB(e){e=rp(e);let t=e.type==="hsl"||e.type==="hsla"?rp(lce(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 uce(e,t){const n=tB(e),r=tB(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function un(e,t){return e=rp(e),t=XN(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Zw(e)}function KN(e,t){if(e=rp(e),t=XN(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 Zw(e)}function JN(e,t){if(e=rp(e),t=XN(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 Zw(e)}const cce=N.createContext(null),uQ=cce;function cQ(){return N.useContext(uQ)}const dce=typeof Symbol=="function"&&Symbol.for,fce=dce?Symbol.for("mui.nested"):"__THEME_NESTED__";function pce(e,t){return typeof t=="function"?t(e):L({},e,t)}function hce(e){const{children:t,theme:n}=e,r=cQ(),i=N.useMemo(()=>{const o=r===null?n:pce(r,n);return o!=null&&(o[fce]=r!==null),o},[n,r]);return $.jsx(uQ.Provider,{value:i,children:t})}const nB={};function rB(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 mce(e){const{children:t,theme:n,themeId:r}=e,i=Gw(nB),o=cQ()||nB,a=rB(r,i,n),s=rB(r,o,n,!0);return $.jsx(hce,{theme:s,children:$.jsx(Cw.Provider,{value:a,children:t})})}const gce=["className","component","disableGutters","fixed","maxWidth","classes"],bce=T1(),yce=sQ("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]}}),Oce=e=>ZN({props:e,name:"MuiContainer",defaultTheme:bce}),vce=(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 Ece(e={}){const{createStyledComponent:t=yce,useThemeProps:n=Oce,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,gce),O=L({},u,{component:d,disableGutters:p,fixed:h,maxWidth:m}),b=vce(O,r);return $.jsx(i,L({as:d,ownerState:O,className:et(b.root,c),ref:l},y))})}const Sce=["component","direction","spacing","divider","children","className","useFlexGap"],Tce=T1(),wce=sQ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function kce(e){return ZN({props:e,name:"MuiStack",defaultTheme:Tce})}function xce(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],Ace=({ownerState:e,theme:t})=>{let n=L({display:"flex",flexDirection:"column"},xa({theme:t},Yf({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=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=Io(n,xa({theme:t},a,(l,u)=>e.useFlexGap?{gap:np(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Cce(u?o[u]:e.direction)}`]:np(r,l)}}))}return n=eue(t.breakpoints,n),n};function _ce(e={}){const{createStyledComponent:t=wce,useThemeProps:n=kce,componentName:r="MuiStack"}=e,i=()=>Ct({root:["root"]},l=>At(r,l),{}),o=t(Ace);return N.forwardRef(function(l,u){const c=n(l),d=qw(c),{component:p="div",direction:h="column",spacing:m=0,divider:y,children:O,className:b,useFlexGap:v=!1}=d,S=Ge(d,Sce),k={direction:h,spacing:m,useFlexGap:v},A=i();return $.jsx(o,L({as:p,ownerState:k,ref:u,className:et(A.root,b)},S,{children:y?xce(O,y):O}))})}function Rce(e,t){return L({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Ice=["mode","contrastThreshold","tonalOffset"],iB={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ty.white,default:ty.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},mC={text:{primary:ty.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ty.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function oB(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=JN(e.main,i):t==="dark"&&(e.dark=KN(e.main,o)))}function Nce(e="light"){return e==="dark"?{main:Yp[200],light:Yp[50],dark:Yp[400]}:{main:Yp[700],light:Yp[400],dark:Yp[800]}}function Dce(e="light"){return e==="dark"?{main:Qp[200],light:Qp[50],dark:Qp[400]}:{main:Qp[500],light:Qp[300],dark:Qp[700]}}function Pce(e="light"){return e==="dark"?{main:Wp[500],light:Wp[300],dark:Wp[700]}:{main:Wp[700],light:Wp[400],dark:Wp[800]}}function Lce(e="light"){return e==="dark"?{main:Gp[400],light:Gp[300],dark:Gp[700]}:{main:Gp[700],light:Gp[500],dark:Gp[900]}}function Mce(e="light"){return e==="dark"?{main:qp[400],light:qp[300],dark:qp[700]}:{main:qp[800],light:qp[500],dark:qp[900]}}function $ce(e="light"){return e==="dark"?{main:Xg[400],light:Xg[300],dark:Xg[700]}:{main:"#ed6c02",light:Xg[500],dark:Xg[900]}}function Fce(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ge(e,Ice),o=e.primary||Nce(t),a=e.secondary||Dce(t),s=e.error||Pce(t),l=e.info||Lce(t),u=e.success||Mce(t),c=e.warning||$ce(t);function d(y){return uce(y,mC.text.primary)>=n?mC.text.primary:iB.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 oB(y,"light",v,r),oB(y,"dark",S,r),y.contrastText||(y.contrastText=d(y.main)),y},h={dark:mC,light:iB};return Io(L({common:L({},ty),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:vse,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const Bce=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Uce(e){return Math.round(e*1e5)/1e5}const aB={textTransform:"uppercase"},sB='"Roboto", "Helvetica", "Arial", sans-serif';function jce(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=sB,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,Bce),h=i/14,m=d||(b=>`${b/u*h}rem`),y=(b,v,S,k,A)=>L({fontFamily:r,fontWeight:b,fontSize:m(v),lineHeight:S},r===sB?{letterSpacing:`${Uce(k/v)}em`}:{},A,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,aB),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,aB),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Io(L({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},O),p,{clone:!1})}const zce=.2,Vce=.14,Hce=.12;function Fr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${zce})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Vce})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Hce})`].join(",")}const Wce=["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)],Qce=["duration","easing","delay"],Yce={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)"},Gce={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lB(e){return`${Math.round(e)}ms`}function qce(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Zce(e){const t=L({},Yce,e.easing),n=L({},Gce,e.duration);return L({getAutoHeightDuration:qce,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ge(o,Qce),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:lB(a)} ${s} ${typeof l=="string"?l:lB(l)}`).join(",")}},e,{easing:t,duration:n})}const Xce={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Kce=Xce,Jce=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function eD(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ge(e,Jce);if(e.vars)throw new Error(Dd(18));const s=Fce(r),l=T1(e);let u=Io(l,{mixins:Rce(l.breakpoints,n),palette:s,shadows:Wce.slice(),typography:jce(s,o),transitions:Zce(i),zIndex:L({},Kce)});return u=Io(u,a),u=t.reduce((c,d)=>Io(c,d),u),u.unstable_sxConfig=L({},Yw,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return S1({sx:d,theme:this})},u}const ede=eD(),Xw=ede;function bi(){const e=sg(Xw);return e[tp]||e}function gt({props:e,name:t}){return ZN({props:e,name:t,defaultTheme:Xw,themeId:tp})}const Xi=e=>sb(e)&&e!=="classes",tD=sb,ke=aQ({themeId:tp,defaultTheme:Xw,rootShouldForwardProp:Xi}),tde=["theme"];function nde(e){let{theme:t}=e,n=Ge(e,tde);const r=t[tp];return $.jsx(mce,L({},n,{themeId:r?tp:void 0,theme:r||t}))}const uB=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function rde(e){return At("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ide=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ode=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${tt(t)}`,`fontSize${tt(n)}`]};return Ct(i,rde,r)},ade=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]}}),PS=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,ide),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=ode(y);return $.jsxs(ade,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?$.jsx("title",{children:d}):null]}))});PS.muiName="SvgIcon";function Si(e,t){function n(r,i){return $.jsx(PS,L({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=PS.muiName,N.memo(N.forwardRef(n))}const sde={configure:e=>{HN.configure(e)}},lde=Object.freeze(Object.defineProperty({__proto__:null,capitalize:tt,createChainedFunction:RS,createSvgIcon:Si,debounce:ag,deprecatedPropType:Nle,isMuiElement:ob,ownerDocument:Hr,ownerWindow:Xs,requirePropFactory:Dle,setRef:oy,unstable_ClassNameGenerator:sde,unstable_useEnhancedEffect:Zr,unstable_useId:Pl,unsupportedProp:Lle,useControlled:qi,useEventCallback:jt,useForkRef:yn,useIsFocusVisible:Bw},Symbol.toStringTag,{value:"Module"}));function a_(e,t){return a_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},a_(e,t)}function nD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a_(e,t)}function ude(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function cde(e,t){e.classList?e.classList.add(t):ude(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function cB(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function dde(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=cB(e.className,t):e.setAttribute("class",cB(e.className&&e.className.baseVal||"",t))}const dB={disabled:!1},LS=vn.createContext(null);var dQ=function(t){return t.scrollTop},$0="unmounted",bf="exited",yf="entering",oh="entered",s_="exiting",Sc=function(e){nD(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=oh:r.unmountOnExit||r.mountOnEnter?l=$0:l=bf,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===$0?{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!==oh&&(o=yf):(a===yf||a===oh)&&(o=s_)}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:M0.findDOMNode(this);a&&dQ(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bf&&this.setState({status:$0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[M0.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||dB.disabled){this.safeSetState({status:oh},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:oh},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:M0.findDOMNode(this);if(!o||dB.disabled){this.safeSetState({status:bf},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:s_},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:M0.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===$0)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(LS.Provider,{value:null},typeof a=="function"?a(i,s):vn.cloneElement(vn.Children.only(a),s))},t}(vn.Component);Sc.contextType=LS;Sc.propTypes={};function Xp(){}Sc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xp,onEntering:Xp,onEntered:Xp,onExit:Xp,onExiting:Xp,onExited:Xp};Sc.UNMOUNTED=$0;Sc.EXITED=bf;Sc.ENTERING=yf;Sc.ENTERED=oh;Sc.EXITING=s_;const Kw=Sc;var fde=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return cde(t,r)})},gC=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return dde(t,r)})},rD=function(e){nD(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function Dm(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 vde(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 Ede=["className","component","elevation","square","variant"],Sde=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ct(o,vde,i)},Tde=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",uB(t.elevation))}, ${un("#fff",uB(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),wde=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,Ede),c=L({},r,{component:o,elevation:a,square:s,variant:l}),d=Sde(c);return $.jsx(Tde,L({as:o,ownerState:c,className:et(d.root,i),ref:n},u))}),gs=wde;function kde(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]),$.jsx("span",{className:p,style:h,children:$.jsx("span",{className:m})})}const Rs=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xde=["center","classes","className"];let Jw=e=>e,fB,pB,hB,mB;const l_=550,Cde=80,Ade=v1(fB||(fB=Jw` + */var zN=Symbol.for("react.element"),VN=Symbol.for("react.portal"),Aw=Symbol.for("react.fragment"),_w=Symbol.for("react.strict_mode"),Rw=Symbol.for("react.profiler"),Iw=Symbol.for("react.provider"),Nw=Symbol.for("react.context"),$le=Symbol.for("react.server_context"),Dw=Symbol.for("react.forward_ref"),Pw=Symbol.for("react.suspense"),Lw=Symbol.for("react.suspense_list"),Mw=Symbol.for("react.memo"),$w=Symbol.for("react.lazy"),Fle=Symbol.for("react.offscreen"),eQ;eQ=Symbol.for("react.module.reference");function el(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zN:switch(e=e.type,e){case Aw:case Rw:case _w:case Pw:case Lw:return e;default:switch(e=e&&e.$$typeof,e){case $le:case Nw:case Dw:case $w:case Mw:case Iw:return e;default:return t}}case VN:return t}}}pr.ContextConsumer=Nw;pr.ContextProvider=Iw;pr.Element=zN;pr.ForwardRef=Dw;pr.Fragment=Aw;pr.Lazy=$w;pr.Memo=Mw;pr.Portal=VN;pr.Profiler=Rw;pr.StrictMode=_w;pr.Suspense=Pw;pr.SuspenseList=Lw;pr.isAsyncMode=function(){return!1};pr.isConcurrentMode=function(){return!1};pr.isContextConsumer=function(e){return el(e)===Nw};pr.isContextProvider=function(e){return el(e)===Iw};pr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zN};pr.isForwardRef=function(e){return el(e)===Dw};pr.isFragment=function(e){return el(e)===Aw};pr.isLazy=function(e){return el(e)===$w};pr.isMemo=function(e){return el(e)===Mw};pr.isPortal=function(e){return el(e)===VN};pr.isProfiler=function(e){return el(e)===Rw};pr.isStrictMode=function(e){return el(e)===_w};pr.isSuspense=function(e){return el(e)===Pw};pr.isSuspenseList=function(e){return el(e)===Lw};pr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Aw||e===Rw||e===_w||e===Pw||e===Lw||e===Fle||typeof e=="object"&&e!==null&&(e.$$typeof===$w||e.$$typeof===Mw||e.$$typeof===Iw||e.$$typeof===Nw||e.$$typeof===Dw||e.$$typeof===eQ||e.getModuleId!==void 0)};pr.typeOf=el;const Ble=W.oneOfType([W.func,W.object]),ag=Ble;function tt(e){if(typeof e!="string")throw new Error(Dd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function _S(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function sg(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 Ule(e,t){return()=>null}function sb(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 jle(e,t){return()=>null}function sy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Zr=typeof window<"u"?N.useLayoutEffect:N.useEffect;let G6=0;function zle(e){const[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t==null&&(G6+=1,n(`mui-${G6}`))},[t]),r}const q6=km.useId;function Pl(e){if(q6!==void 0){const t=q6();return e??t}return zle(e)}function Vle(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 Zr(()=>{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=>{sy(n,t)})},e)}let Fw=!0,a_=!1,Z6;const Hle={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 Wle(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Hle[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Qle(e){e.metaKey||e.altKey||e.ctrlKey||(Fw=!0)}function mC(){Fw=!1}function Yle(){this.visibilityState==="hidden"&&a_&&(Fw=!0)}function Gle(e){e.addEventListener("keydown",Qle,!0),e.addEventListener("mousedown",mC,!0),e.addEventListener("pointerdown",mC,!0),e.addEventListener("touchstart",mC,!0),e.addEventListener("visibilitychange",Yle,!0)}function qle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Fw||Wle(t)}function Bw(){const e=N.useCallback(i=>{i!=null&&Gle(i.ownerDocument)},[]),t=N.useRef(!1);function n(){return t.current?(a_=!0,window.clearTimeout(Z6),Z6=window.setTimeout(()=>{a_=!1},100),t.current=!1,!0):!1}function r(i){return qle(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function tQ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Zp;function nQ(){if(Zp)return Zp;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),Zp="reverse",e.scrollLeft>0?Zp="default":(e.scrollLeft=1,e.scrollLeft===0&&(Zp="negative")),document.body.removeChild(e),Zp}function Zle(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(nQ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Xle=e=>{const t=N.useRef({});return N.useEffect(()=>{t.current=e}),t.current};function Kle(e){return N.Children.toArray(e).filter(t=>N.isValidElement(t))}const Jle={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},eue=Jle;function Uw(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]=Uw(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 X6=e=>e,tue=()=>{let e=X6;return{configure(t){e=t},generate(t){return e(t)},reset(){e=X6}}},HN=tue(),rQ={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=rQ[t];return r?`${n}-${r}`:`${HN.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=At(e,i,n)}),r}function oh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const nue=["values","unit","step"],rue=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 iue(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ge(e,nue),o=rue(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:${WN[e]}px)`};function xa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||K6;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||K6;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||WN).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 iQ(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function oQ(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function sue(e,...t){const n=iQ(e),r=[n,...t].reduce((i,o)=>Io(i,o),{});return oQ(Object.keys(n),r)}function lue(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||lue(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 jw(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 RS(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=jw(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=jw(l,r)||{};return xa(a,s,d=>{let p=RS(u,i,d);return d===p&&typeof d=="string"&&(p=RS(u,i,`${t}${d==="default"?"":tt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function uue(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const cue={m:"margin",p:"padding"},due={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},J6={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fue=uue(e=>{if(e.length>2)if(J6[e])e=J6[e];else return[e];const[t,n]=e.split(""),r=cue[t],i=due[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),QN=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],YN=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...QN,...YN];function T1(e,t,n,r){var i;const o=(i=jw(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 T1(e,"spacing",8)}function np(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 pue(e,t){return n=>e.reduce((r,i)=>(r[i]=np(t,n),r),{})}function hue(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=fue(n),o=pue(i,r),a=e[n];return xa(e,a,o)}function aQ(e,t){const n=GN(e.theme);return Object.keys(e).map(r=>hue(e,t,r,n)).reduce(lb,{})}function ti(e){return aQ(e,QN)}ti.propTypes={};ti.filterProps=QN;function ni(e){return aQ(e,YN)}ni.propTypes={};ni.filterProps=YN;function mue(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 zw(...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]?lb(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ds(e){return typeof e!="number"?e:`${e}px solid`}function tl(e,t){return gi({prop:e,themeKey:"borders",transform:t})}const gue=tl("border",Ds),bue=tl("borderTop",Ds),yue=tl("borderRight",Ds),Oue=tl("borderBottom",Ds),vue=tl("borderLeft",Ds),Eue=tl("borderColor"),Sue=tl("borderTopColor"),Tue=tl("borderRightColor"),wue=tl("borderBottomColor"),kue=tl("borderLeftColor"),xue=tl("outline",Ds),Cue=tl("outlineColor"),Vw=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=T1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:np(t,r)});return xa(e,e.borderRadius,n)}return null};Vw.propTypes={};Vw.filterProps=["borderRadius"];zw(gue,bue,yue,Oue,vue,Eue,Sue,Tue,wue,kue,Vw,xue,Cue);const Hw=e=>{if(e.gap!==void 0&&e.gap!==null){const t=T1(e.theme,"spacing",8),n=r=>({gap:np(t,r)});return xa(e,e.gap,n)}return null};Hw.propTypes={};Hw.filterProps=["gap"];const Ww=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=T1(e.theme,"spacing",8),n=r=>({columnGap:np(t,r)});return xa(e,e.columnGap,n)}return null};Ww.propTypes={};Ww.filterProps=["columnGap"];const Qw=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=T1(e.theme,"spacing",8),n=r=>({rowGap:np(t,r)});return xa(e,e.rowGap,n)}return null};Qw.propTypes={};Qw.filterProps=["rowGap"];const Aue=gi({prop:"gridColumn"}),_ue=gi({prop:"gridRow"}),Rue=gi({prop:"gridAutoFlow"}),Iue=gi({prop:"gridAutoColumns"}),Nue=gi({prop:"gridAutoRows"}),Due=gi({prop:"gridTemplateColumns"}),Pue=gi({prop:"gridTemplateRows"}),Lue=gi({prop:"gridTemplateAreas"}),Mue=gi({prop:"gridArea"});zw(Hw,Ww,Qw,Aue,_ue,Rue,Iue,Nue,Due,Pue,Lue,Mue);function Yh(e,t){return t==="grey"?t:e}const $ue=gi({prop:"color",themeKey:"palette",transform:Yh}),Fue=gi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yh}),Bue=gi({prop:"backgroundColor",themeKey:"palette",transform:Yh});zw($ue,Fue,Bue);function Xa(e){return e<=1&&e!==0?`${e*100}%`:e}const Uue=gi({prop:"width",transform:Xa}),qN=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])||WN[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:Xa(n)}};return xa(e,e.maxWidth,t)}return null};qN.filterProps=["maxWidth"];const jue=gi({prop:"minWidth",transform:Xa}),zue=gi({prop:"height",transform:Xa}),Vue=gi({prop:"maxHeight",transform:Xa}),Hue=gi({prop:"minHeight",transform:Xa});gi({prop:"size",cssProperty:"width",transform:Xa});gi({prop:"size",cssProperty:"height",transform:Xa});const Wue=gi({prop:"boxSizing"});zw(Uue,qN,jue,zue,Vue,Hue,Wue);const Que={border:{themeKey:"borders",transform:Ds},borderTop:{themeKey:"borders",transform:Ds},borderRight:{themeKey:"borders",transform:Ds},borderBottom:{themeKey:"borders",transform:Ds},borderLeft:{themeKey:"borders",transform:Ds},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ds},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vw},color:{themeKey:"palette",transform:Yh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yh},backgroundColor:{themeKey:"palette",transform:Yh},p:{style:ni},pt:{style:ni},pr:{style:ni},pb:{style:ni},pl:{style:ni},px:{style:ni},py:{style:ni},padding:{style:ni},paddingTop:{style:ni},paddingRight:{style:ni},paddingBottom:{style:ni},paddingLeft:{style:ni},paddingX:{style:ni},paddingY:{style:ni},paddingInline:{style:ni},paddingInlineStart:{style:ni},paddingInlineEnd:{style:ni},paddingBlock:{style:ni},paddingBlockStart:{style:ni},paddingBlockEnd:{style:ni},m:{style:ti},mt:{style:ti},mr:{style:ti},mb:{style:ti},ml:{style:ti},mx:{style:ti},my:{style:ti},margin:{style:ti},marginTop:{style:ti},marginRight:{style:ti},marginBottom:{style:ti},marginLeft:{style:ti},marginX:{style:ti},marginY:{style:ti},marginInline:{style:ti},marginInlineStart:{style:ti},marginInlineEnd:{style:ti},marginBlock:{style:ti},marginBlockStart:{style:ti},marginBlockEnd:{style:ti},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:Hw},rowGap:{style:Qw},columnGap:{style:Ww},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xa},maxWidth:{style:qN},minWidth:{transform:Xa},height:{transform:Xa},maxHeight:{transform:Xa},minHeight:{transform:Xa},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Yw=Que;function Yue(...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 Gue(e,t){return typeof e=="function"?e(t):e}function que(){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=jw(i,u)||{};return d?d(a):xa(a,r,m=>{let y=RS(p,c,m);return m===y&&typeof m=="string"&&(y=RS(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:Yw;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=iQ(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const m=Gue(u[h],o);if(m!=null)if(typeof m=="object")if(a[h])p=lb(p,e(h,m,o,a));else{const y=xa({theme:o},m,v=>({[h]:v}));Yue(y,m)?p[h]=t({sx:m,theme:o}):p=lb(p,y)}else p=lb(p,e(h,m,o,a))}),oQ(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const w1=que();w1.filterProps=["sx"];const Zue=["breakpoints","palette","spacing","shape"];function k1(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ge(e,Zue),s=iue(n),l=mue(i);let u=Io({breakpoints:s,direction:"ltr",components:{},palette:L({mode:"light"},r),spacing:l,shape:L({},aue,o)},a);return u=t.reduce((c,d)=>Io(c,d),u),u.unstable_sxConfig=L({},Yw,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return w1({sx:d,theme:this})},u}function Xue(e){return Object.keys(e).length===0}function Gw(e=null){const t=N.useContext(Cw);return!t||Xue(t)?e:t}const Kue=k1();function lg(e=Kue){return Gw(e)}function Jue({styles:e,themeId:t,defaultTheme:n={}}){const r=lg(n),i=typeof e=="function"?e(t&&r[t]||r):e;return $.jsx(Lle,{styles:i})}const ece=["sx"],tce=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Yw;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function qw(e){const{sx:t}=e,n=Ge(e,ece),{systemProps:r,otherProps:i}=tce(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 sQ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(w1);return N.forwardRef(function(l,u){const c=lg(n),d=qw(l),{className:p,component:h="div"}=d,m=Ge(d,nce);return $.jsx(o,L({as:h,ref:u,className:et(p,i?i(r):r),theme:t&&c[t]||c},m))})}const ice=["variant"];function eB(e){return e.length===0}function lQ(e){const{variant:t}=e,n=Ge(e,ice);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=eB(r)?e[i]:tt(e[i]):r+=`${eB(r)?i:tt(i)}${tt(e[i].toString())}`}),r}const oce=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ace(e){return Object.keys(e).length===0}function sce(e){return typeof e=="string"&&e.charCodeAt(0)>96}const lce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,IS=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=lQ(r.props),n[i]=r.style}),n},uce=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),IS(n)},NS=(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[lQ(a.props)])),typeof a.props=="function"&&(o+=1)}),i},cce=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return NS(e,t,o)};function ub(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dce=k1(),fce=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yE({defaultTheme:e,theme:t,themeId:n}){return ace(t)?e:t[n]||t}function pce(e){return e?(t,n)=>n[e]:null}const tB=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(L({},t,{theme:yE(L({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=NS(t,IS(o),o);return[i,...a]}return i};function uQ(e={}){const{themeId:t,defaultTheme:n=dce,rootShouldForwardProp:r=ub,slotShouldForwardProp:i=ub}=e,o=a=>w1(L({},a,{theme:yE(L({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Mle(a,k=>k.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=pce(fce(u))}=s,h=Ge(s,oce),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let v,b=ub;u==="Root"||u==="root"?b=r:u?b=i:sce(a)&&(b=void 0);const O=KW(a,L({shouldForwardProp:b,label:v},h)),S=(k,...A)=>{const w=A?A.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return B=>tB({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 NS(V,IS(U),U).forEach(X=>{z=Io(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 NS(B,IS(R),R).forEach(z=>{U=Io(U,z)}),U})}else typeof k=="function"&&k.__emotion_real!==k&&(E=R=>tB({styledArg:k,props:R,defaultTheme:n,themeId:t}));l&&p&&w.push(R=>{const B=yE(L({},R,{defaultTheme:n,themeId:t})),U=lce(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=yE(L({},R,{defaultTheme:n,themeId:t}));return cce(R,uce(l,B),B,l)}),y||w.push(o);const M=w.length-A.length;if(Array.isArray(k)&&M>0){const R=new Array(M).fill("");E=[...k,...R],E.raw=[...k.raw,...R]}const D=O(E,...w);return a.muiName&&(D.muiName=a.muiName),D};return O.withConfig&&(S.withConfig=O.withConfig),S}}const cQ=uQ();function dQ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Uw(t.components[n].defaultProps,r)}function ZN({props:e,name:t,defaultTheme:n,themeId:r}){let i=lg(n);return r&&(i=i[r]||i),dQ({theme:i,name:t,props:e})}function XN(e,t=0,n=1){return oh(e,t,n)}function hce(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 rp(e){if(e.type)return e;if(e.charAt(0)==="#")return rp(hce(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 Zw(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 mce(e){e=rp(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])),Zw({type:s,values:l})}function nB(e){e=rp(e);let t=e.type==="hsl"||e.type==="hsla"?rp(mce(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 gce(e,t){const n=nB(e),r=nB(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function un(e,t){return e=rp(e),t=XN(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Zw(e)}function KN(e,t){if(e=rp(e),t=XN(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 Zw(e)}function JN(e,t){if(e=rp(e),t=XN(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 Zw(e)}const bce=N.createContext(null),fQ=bce;function pQ(){return N.useContext(fQ)}const yce=typeof Symbol=="function"&&Symbol.for,Oce=yce?Symbol.for("mui.nested"):"__THEME_NESTED__";function vce(e,t){return typeof t=="function"?t(e):L({},e,t)}function Ece(e){const{children:t,theme:n}=e,r=pQ(),i=N.useMemo(()=>{const o=r===null?n:vce(r,n);return o!=null&&(o[Oce]=r!==null),o},[n,r]);return $.jsx(fQ.Provider,{value:i,children:t})}const rB={};function iB(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 Sce(e){const{children:t,theme:n,themeId:r}=e,i=Gw(rB),o=pQ()||rB,a=iB(r,i,n),s=iB(r,o,n,!0);return $.jsx(Ece,{theme:s,children:$.jsx(Cw.Provider,{value:a,children:t})})}const Tce=["className","component","disableGutters","fixed","maxWidth","classes"],wce=k1(),kce=cQ("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]}}),xce=e=>ZN({props:e,name:"MuiContainer",defaultTheme:wce}),Cce=(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 Ace(e={}){const{createStyledComponent:t=kce,useThemeProps:n=xce,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,Tce),v=L({},u,{component:d,disableGutters:p,fixed:h,maxWidth:m}),b=Cce(v,r);return $.jsx(i,L({as:d,ownerState:v,className:et(b.root,c),ref:l},y))})}const _ce=["component","direction","spacing","divider","children","className","useFlexGap"],Rce=k1(),Ice=cQ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Nce(e){return ZN({props:e,name:"MuiStack",defaultTheme:Rce})}function Dce(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],Lce=({ownerState:e,theme:t})=>{let n=L({display:"flex",flexDirection:"column"},xa({theme:t},Yf({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=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=Io(n,xa({theme:t},a,(l,u)=>e.useFlexGap?{gap:np(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Pce(u?o[u]:e.direction)}`]:np(r,l)}}))}return n=sue(t.breakpoints,n),n};function Mce(e={}){const{createStyledComponent:t=Ice,useThemeProps:n=Nce,componentName:r="MuiStack"}=e,i=()=>Ct({root:["root"]},l=>At(r,l),{}),o=t(Lce);return N.forwardRef(function(l,u){const c=n(l),d=qw(c),{component:p="div",direction:h="column",spacing:m=0,divider:y,children:v,className:b,useFlexGap:O=!1}=d,S=Ge(d,_ce),k={direction:h,spacing:m,useFlexGap:O},A=i();return $.jsx(o,L({as:p,ownerState:k,ref:u,className:et(A.root,b)},S,{children:y?Dce(v,y):v}))})}function $ce(e,t){return L({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Fce=["mode","contrastThreshold","tonalOffset"],oB={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:ry.white,default:ry.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:ry.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:ry.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 aB(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=JN(e.main,i):t==="dark"&&(e.dark=KN(e.main,o)))}function Bce(e="light"){return e==="dark"?{main:Yp[200],light:Yp[50],dark:Yp[400]}:{main:Yp[700],light:Yp[400],dark:Yp[800]}}function Uce(e="light"){return e==="dark"?{main:Qp[200],light:Qp[50],dark:Qp[400]}:{main:Qp[500],light:Qp[300],dark:Qp[700]}}function jce(e="light"){return e==="dark"?{main:Wp[500],light:Wp[300],dark:Wp[700]}:{main:Wp[700],light:Wp[400],dark:Wp[800]}}function zce(e="light"){return e==="dark"?{main:Gp[400],light:Gp[300],dark:Gp[700]}:{main:Gp[700],light:Gp[500],dark:Gp[900]}}function Vce(e="light"){return e==="dark"?{main:qp[400],light:qp[300],dark:qp[700]}:{main:qp[800],light:qp[500],dark:qp[900]}}function Hce(e="light"){return e==="dark"?{main:Jg[400],light:Jg[300],dark:Jg[700]}:{main:"#ed6c02",light:Jg[500],dark:Jg[900]}}function Wce(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ge(e,Fce),o=e.primary||Bce(t),a=e.secondary||Uce(t),s=e.error||jce(t),l=e.info||zce(t),u=e.success||Vce(t),c=e.warning||Hce(t);function d(y){return gce(y,gC.text.primary)>=n?gC.text.primary:oB.text.primary}const p=({color:y,name:v,mainShade:b=500,lightShade:O=300,darkShade:S=700})=>{if(y=L({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(Dd(11,v?` (${v})`:"",b));if(typeof y.main!="string")throw new Error(Dd(12,v?` (${v})`:"",JSON.stringify(y.main)));return aB(y,"light",O,r),aB(y,"dark",S,r),y.contrastText||(y.contrastText=d(y.main)),y},h={dark:gC,light:oB};return Io(L({common:L({},ry),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:Ase,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const Qce=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Yce(e){return Math.round(e*1e5)/1e5}const sB={textTransform:"uppercase"},lB='"Roboto", "Helvetica", "Arial", sans-serif';function Gce(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=lB,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,O,S,k,A)=>L({fontFamily:r,fontWeight:b,fontSize:m(O),lineHeight:S},r===lB?{letterSpacing:`${Yce(k/O)}em`}:{},A,c),v={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,sB),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,sB),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Io(L({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},v),p,{clone:!1})}const qce=.2,Zce=.14,Xce=.12;function Fr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qce})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zce})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Xce})`].join(",")}const Kce=["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)],Jce=["duration","easing","delay"],ede={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)"},tde={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function uB(e){return`${Math.round(e)}ms`}function nde(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function rde(e){const t=L({},ede,e.easing),n=L({},tde,e.duration);return L({getAutoHeightDuration:nde,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ge(o,Jce),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:uB(a)} ${s} ${typeof l=="string"?l:uB(l)}`).join(",")}},e,{easing:t,duration:n})}const ide={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ode=ide,ade=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function eD(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ge(e,ade);if(e.vars)throw new Error(Dd(18));const s=Wce(r),l=k1(e);let u=Io(l,{mixins:$ce(l.breakpoints,n),palette:s,shadows:Kce.slice(),typography:Gce(s,o),transitions:rde(i),zIndex:L({},ode)});return u=Io(u,a),u=t.reduce((c,d)=>Io(c,d),u),u.unstable_sxConfig=L({},Yw,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return w1({sx:d,theme:this})},u}const sde=eD(),Xw=sde;function bi(){const e=lg(Xw);return e[tp]||e}function gt({props:e,name:t}){return ZN({props:e,name:t,defaultTheme:Xw,themeId:tp})}const Xi=e=>ub(e)&&e!=="classes",tD=ub,ke=uQ({themeId:tp,defaultTheme:Xw,rootShouldForwardProp:Xi}),lde=["theme"];function ude(e){let{theme:t}=e,n=Ge(e,lde);const r=t[tp];return $.jsx(Sce,L({},n,{themeId:r?tp:void 0,theme:r||t}))}const cB=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function cde(e){return At("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dde=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fde=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${tt(t)}`,`fontSize${tt(n)}`]};return Ct(i,cde,r)},pde=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]}}),DS=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,dde),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}),v={};c||(v.viewBox=p);const b=fde(y);return $.jsxs(pde,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},v,h,m&&i.props,{ownerState:y,children:[m?i.props.children:i,d?$.jsx("title",{children:d}):null]}))});DS.muiName="SvgIcon";function Ti(e,t){function n(r,i){return $.jsx(DS,L({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=DS.muiName,N.memo(N.forwardRef(n))}const hde={configure:e=>{HN.configure(e)}},mde=Object.freeze(Object.defineProperty({__proto__:null,capitalize:tt,createChainedFunction:_S,createSvgIcon:Ti,debounce:sg,deprecatedPropType:Ule,isMuiElement:sb,ownerDocument:Hr,ownerWindow:Xs,requirePropFactory:jle,setRef:sy,unstable_ClassNameGenerator:hde,unstable_useEnhancedEffect:Zr,unstable_useId:Pl,unsupportedProp:Vle,useControlled:qi,useEventCallback:jt,useForkRef:yn,useIsFocusVisible:Bw},Symbol.toStringTag,{value:"Module"}));function s_(e,t){return s_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},s_(e,t)}function nD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s_(e,t)}function gde(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function bde(e,t){e.classList?e.classList.add(t):gde(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function dB(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yde(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=dB(e.className,t):e.setAttribute("class",dB(e.className&&e.className.baseVal||"",t))}const fB={disabled:!1},PS=vn.createContext(null);var hQ=function(t){return t.scrollTop},F0="unmounted",bf="exited",yf="entering",ah="entered",l_="exiting",Sc=function(e){nD(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=ah:r.unmountOnExit||r.mountOnEnter?l=F0:l=bf,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===F0?{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!==ah&&(o=yf):(a===yf||a===ah)&&(o=l_)}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:$0.findDOMNode(this);a&&hQ(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bf&&this.setState({status:F0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[$0.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||fB.disabled){this.safeSetState({status:ah},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:ah},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:$0.findDOMNode(this);if(!o||fB.disabled){this.safeSetState({status:bf},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:l_},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:$0.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===F0)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(PS.Provider,{value:null},typeof a=="function"?a(i,s):vn.cloneElement(vn.Children.only(a),s))},t}(vn.Component);Sc.contextType=PS;Sc.propTypes={};function Xp(){}Sc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xp,onEntering:Xp,onEntered:Xp,onExit:Xp,onExiting:Xp,onExited:Xp};Sc.UNMOUNTED=F0;Sc.EXITED=bf;Sc.ENTERING=yf;Sc.ENTERED=ah;Sc.EXITING=l_;const Kw=Sc;var Ode=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return bde(t,r)})},bC=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return yde(t,r)})},rD=function(e){nD(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function Pm(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 Cde(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 Ade=["className","component","elevation","square","variant"],_de=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ct(o,Cde,i)},Rde=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",cB(t.elevation))}, ${un("#fff",cB(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Ide=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,Ade),c=L({},r,{component:o,elevation:a,square:s,variant:l}),d=_de(c);return $.jsx(Rde,L({as:o,ownerState:c,className:et(d.root,i),ref:n},u))}),gs=Ide;function Su(e){return typeof e=="string"}function B0(e,t,n){return e===void 0||Su(e)?t:L({},t,{ownerState:L({},t.ownerState,n)})}function Nde(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const Dde={disableDefaultClasses:!1},Pde=N.createContext(Dde);function Lde(e){const{disableDefaultClasses:t}=N.useContext(Pde);return n=>t?"":e(n)}function cb(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 pB(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 Mde(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=cb(L({},i,r)),s=pB(r),l=pB(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 $de=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ge(e,$de),s=o?{}:Yd(r,i),{props:l,internalRef:u}=Mde(L({},a,{externalSlotProps:s})),c=yn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return B0(n,L({},l,{ref:c}),i)}function Fde(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]),$.jsx("span",{className:p,style:h,children:$.jsx("span",{className:m})})}const Rs=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Bde=["center","classes","className"];let Jw=e=>e,hB,mB,gB,bB;const u_=550,Ude=80,jde=S1(hB||(hB=Jw` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),_de=v1(pB||(pB=Jw` +`)),zde=S1(mB||(mB=Jw` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),Rde=v1(hB||(hB=Jw` +`)),Vde=S1(gB||(gB=Jw` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),Ide=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Nde=ke(kde,{name:"MuiTouchRipple",slot:"Ripple"})(mB||(mB=Jw` +`)),Hde=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Wde=ke(Fde,{name:"MuiTouchRipple",slot:"Ripple"})(bB||(bB=Jw` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Rs.rippleVisible,Ade,l_,({theme:e})=>e.transitions.easing.easeInOut,Rs.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Rs.child,Rs.childLeaving,_de,l_,({theme:e})=>e.transitions.easing.easeInOut,Rs.childPulsate,Rde,({theme:e})=>e.transitions.easing.easeInOut),Dde=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ge(r,xde),[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:A,rippleX:w,rippleY:E,rippleSize:M,cb:D}=k;u(R=>[...R,$.jsx(Nde,{classes:{ripple:et(o.ripple,Rs.ripple),rippleVisible:et(o.rippleVisible,Rs.rippleVisible),ripplePulsate:et(o.ripplePulsate,Rs.ripplePulsate),child:et(o.child,Rs.child),childLeaving:et(o.childLeaving,Rs.childLeaving),childPulsate:et(o.childPulsate,Rs.childPulsate)},timeout:l_,pulsate:A,rippleX:w,rippleY:E,rippleSize:M},c.current)]),c.current+=1,d.current=D},[o]),b=N.useCallback((k={},A={},w=()=>{})=>{const{pulsate:E=!1,center:M=i||A.pulsate,fakeElement:D=!1}=A;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(M||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(M)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)},Cde)):O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},[i,O]),v=N.useCallback(()=>{b({},{pulsate:!0})},[b]),S=N.useCallback((k,A)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&m.current){m.current(),m.current=null,h.current=setTimeout(()=>{S(k,A)});return}m.current=null,u(w=>w.length>0?w.slice(1):w),d.current=A},[]);return N.useImperativeHandle(n,()=>({pulsate:v,start:b,stop:S}),[v,b,S]),$.jsx(Ide,L({className:et(Rs.root,o.root,a),ref:y},s,{children:$.jsx(aD,{component:null,exit:!0,children:l})}))}),Pde=Dde;function Lde(e){return At("MuiButtonBase",e)}const Mde=_t("MuiButtonBase",["root","disabled","focusVisible"]),$de=["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"],Fde=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Ct({root:["root",t&&"disabled",n&&"focusVisible"]},Lde,i);return n&&r&&(a.root+=` ${r}`),a},Bde=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"},[`&.${Mde.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ude=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:A,onMouseDown:w,onMouseLeave:E,onMouseUp:M,onTouchEnd:D,onTouchMove:R,onTouchStart:B,tabIndex:U=0,TouchRippleProps:V,touchRippleRef:z,type:Q}=r,X=Ge(r,$de),Z=N.useRef(null),Y=N.useRef(null),q=yn(Y,z),{isFocusVisibleRef:j,onFocus:le,onBlur:Ee,ref:G}=Bw(),[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),We=qe("stop",b),ye=qe("stop",M),ze=qe("stop",Se=>{ue&&Se.preventDefault(),E&&E(Se)}),$e=qe("start",B),Ve=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)})),A&&A(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=Fde(ce);return $.jsxs(Bde,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:We,onTouchEnd:Ve,onTouchMove:dt,onTouchStart:$e,ref:de,tabIndex:u?-1:U,type:Q},ie,X,{children:[a,Le?$.jsx(Pde,L({ref:q,center:o},V)):null]}))}),us=Ude;function jde(e){return At("MuiIconButton",e)}const zde=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Vde=["edge","children","className","color","disabled","disableFocusRipple","size"],Hde=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,jde,t)},Wde=ke(us,{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)},{[`&.${zde.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Qde=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,Vde),p=L({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Hde(p);return $.jsx(Wde,L({className:et(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),bs=Qde,Yde=Si($.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 Gde(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 qde=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Zde=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,Gde,a)},Xde=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})),gB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Kde={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Jde=e=>Kde[e]||e,efe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTypography"}),i=Jde(r.color),o=qw(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=gB}=o,m=Ge(o,qde),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]||gB[p])||"span",b=Zde(y);return $.jsx(Xde,L({as:O,ref:n,ownerState:y,className:et(b.root,s)},m))}),mi=efe;function tfe(e){return At("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const nfe=["className","color","enableColorOnDark","position"],rfe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${tt(t)}`,`position${tt(n)}`]};return Ct(i,tfe,r)},JO=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,ife=ke(gs,{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:JO(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:JO(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:JO(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:JO(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"}))}),ofe=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,nfe),u=L({},r,{color:o,position:s,enableColorOnDark:a}),c=rfe(u);return $.jsx(ife,L({square:!0,component:"header",ownerState:u,elevation:4,className:et(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),afe=ofe;function Su(e){return typeof e=="string"}function F0(e,t,n){return e===void 0||Su(e)?t:L({},t,{ownerState:L({},t.ownerState,n)})}function sfe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const lfe={disableDefaultClasses:!1},ufe=N.createContext(lfe);function cfe(e){const{disableDefaultClasses:t}=N.useContext(ufe);return n=>t?"":e(n)}function lb(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 bB(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 dfe(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=lb(L({},i,r)),s=bB(r),l=bB(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 ffe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ge(e,ffe),s=o?{}:Yd(r,i),{props:l,internalRef:u}=dfe(L({},a,{externalSlotProps:s})),c=yn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return F0(n,L({},l,{ref:c}),i)}const pfe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hfe(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 mfe(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 gfe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mfe(e))}function bfe(e){const t=[],n=[];return Array.from(e.querySelectorAll(pfe)).forEach((r,i)=>{const o=hfe(r);o===-1||!gfe(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 yfe(){return!0}function fQ(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=bfe,isEnabled:a=yfe,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())},A=()=>{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 M=[];if((S.activeElement===u.current||S.activeElement===c.current)&&(M=o(m.current)),M.length>0){var D,R;const B=!!((D=O.current)!=null&&D.shiftKey&&((R=O.current)==null?void 0:R.key)==="Tab"),U=M[0],V=M[M.length-1];typeof U!="string"&&typeof V!="string"&&(B?V.focus():U.focus())}else E.focus()};S.addEventListener("focusin",A),S.addEventListener("keydown",k,!0);const w=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(w),S.removeEventListener("focusin",A),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 $.jsxs(N.Fragment,{children:[$.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:y,onFocus:b}),$.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var Ta="top",Ks="bottom",Js="right",wa="left",lD="auto",w1=[Ta,Ks,Js,wa],Pm="start",ay="end",Ofe="clippingParents",pQ="viewport",Jg="popper",vfe="reference",yB=w1.reduce(function(e,t){return e.concat([t+"-"+Pm,t+"-"+ay])},[]),hQ=[].concat(w1,[lD]).reduce(function(e,t){return e.concat([t,t+"-"+Pm,t+"-"+ay])},[]),Efe="beforeRead",Sfe="read",Tfe="afterRead",wfe="beforeMain",kfe="main",xfe="afterMain",Cfe="beforeWrite",Afe="write",_fe="afterWrite",Rfe=[Efe,Sfe,Tfe,wfe,kfe,xfe,Cfe,Afe,_fe];function Cu(e){return e?(e.nodeName||"").toLowerCase():null}function cs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ip(e){var t=cs(e).Element;return e instanceof t||e instanceof Element}function Vs(e){var t=cs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uD(e){if(typeof ShadowRoot>"u")return!1;var t=cs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ife(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 Nfe(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 Dfe={name:"applyStyles",enabled:!0,phase:"write",fn:Ife,effect:Nfe,requires:["computeStyles"]};function Tu(e){return e.split("-")[0]}var Gf=Math.max,MS=Math.min,Lm=Math.round;function u_(){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 mQ(){return!/^((?!chrome|android).)*safari/i.test(u_())}function Mm(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&&Lm(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Lm(r.height)/e.offsetHeight||1);var a=ip(e)?cs(e):window,s=a.visualViewport,l=!mQ()&&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 cD(e){var t=Mm(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 gQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uD(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hc(e){return cs(e).getComputedStyle(e)}function Pfe(e){return["table","td","th"].indexOf(Cu(e))>=0}function Gd(e){return((ip(e)?e.ownerDocument:e.document)||window.document).documentElement}function ek(e){return Cu(e)==="html"?e:e.assignedSlot||e.parentNode||(uD(e)?e.host:null)||Gd(e)}function OB(e){return!Vs(e)||hc(e).position==="fixed"?null:e.offsetParent}function Lfe(e){var t=/firefox/i.test(u_()),n=/Trident/i.test(u_());if(n&&Vs(e)){var r=hc(e);if(r.position==="fixed")return null}var i=ek(e);for(uD(i)&&(i=i.host);Vs(i)&&["html","body"].indexOf(Cu(i))<0;){var o=hc(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 k1(e){for(var t=cs(e),n=OB(e);n&&Pfe(n)&&hc(n).position==="static";)n=OB(n);return n&&(Cu(n)==="html"||Cu(n)==="body"&&hc(n).position==="static")?t:n||Lfe(e)||t}function dD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ub(e,t,n){return Gf(e,MS(t,n))}function Mfe(e,t,n){var r=ub(e,t,n);return r>n?n:r}function bQ(){return{top:0,right:0,bottom:0,left:0}}function yQ(e){return Object.assign({},bQ(),e)}function OQ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $fe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,yQ(typeof t!="number"?t:OQ(t,w1))};function Ffe(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=dD(s),u=[wa,Js].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=$fe(i.padding,n),p=cD(o),h=l==="y"?Ta:wa,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=k1(o),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-O/2,k=d[h],A=v-p[c]-d[m],w=v/2-p[c]/2+S,E=ub(k,w,A),M=l;n.modifiersData[r]=(t={},t[M]=E,t.centerOffset=E-w,t)}}function Bfe(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)||gQ(t.elements.popper,i)&&(t.elements.arrow=i))}const Ufe={name:"arrow",enabled:!0,phase:"main",fn:Ffe,effect:Bfe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $m(e){return e.split("-")[1]}var jfe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zfe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Lm(n*i)/i||0,y:Lm(r*i)/i||0}}function vB(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=wa,k=Ta,A=window;if(u){var w=k1(n),E="clientHeight",M="clientWidth";if(w===cs(n)&&(w=Gd(n),hc(w).position!=="static"&&s==="absolute"&&(E="scrollHeight",M="scrollWidth")),w=w,i===Ta||(i===wa||i===Js)&&o===ay){k=Ks;var D=d&&w===A&&A.visualViewport?A.visualViewport.height:w[E];y-=D-r.height,y*=l?1:-1}if(i===wa||(i===Ta||i===Ks)&&o===ay){S=Js;var R=d&&w===A&&A.visualViewport?A.visualViewport.width:w[M];h-=R-r.width,h*=l?1:-1}}var B=Object.assign({position:s},u&&jfe),U=c===!0?zfe({x:h,y},cs(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=(A.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 Vfe(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:$m(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,vB(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,vB(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 Hfe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vfe,data:{}};var ev={passive:!0};function Wfe(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=cs(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,ev)}),s&&l.addEventListener("resize",n.update,ev),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ev)}),s&&l.removeEventListener("resize",n.update,ev)}}const Qfe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wfe,data:{}};var Yfe={left:"right",right:"left",bottom:"top",top:"bottom"};function OE(e){return e.replace(/left|right|bottom|top/g,function(t){return Yfe[t]})}var Gfe={start:"end",end:"start"};function EB(e){return e.replace(/start|end/g,function(t){return Gfe[t]})}function fD(e){var t=cs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pD(e){return Mm(Gd(e)).left+fD(e).scrollLeft}function qfe(e,t){var n=cs(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=mQ();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+pD(e),y:l}}function Zfe(e){var t,n=Gd(e),r=fD(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+pD(e),l=-r.scrollTop;return hc(i||n).direction==="rtl"&&(s+=Gf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function hD(e){var t=hc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vQ(e){return["html","body","#document"].indexOf(Cu(e))>=0?e.ownerDocument.body:Vs(e)&&hD(e)?e:vQ(ek(e))}function cb(e,t){var n;t===void 0&&(t=[]);var r=vQ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=cs(r),a=i?[o].concat(o.visualViewport||[],hD(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(cb(ek(a)))}function c_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xfe(e,t){var n=Mm(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 SB(e,t,n){return t===pQ?c_(qfe(e,n)):ip(t)?Xfe(t,n):c_(Zfe(Gd(e)))}function Kfe(e){var t=cb(ek(e)),n=["absolute","fixed"].indexOf(hc(e).position)>=0,r=n&&Vs(e)?k1(e):e;return ip(r)?t.filter(function(i){return ip(i)&&gQ(i,r)&&Cu(i)!=="body"}):[]}function Jfe(e,t,n,r){var i=t==="clippingParents"?Kfe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=SB(e,u,r);return l.top=Gf(c.top,l.top),l.right=MS(c.right,l.right),l.bottom=MS(c.bottom,l.bottom),l.left=Gf(c.left,l.left),l},SB(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 EQ(e){var t=e.reference,n=e.element,r=e.placement,i=r?Tu(r):null,o=r?$m(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Ta: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 wa:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?dD(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Pm:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ay:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function sy(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?Ofe:s,u=n.rootBoundary,c=u===void 0?pQ:u,d=n.elementContext,p=d===void 0?Jg:d,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,O=y===void 0?0:y,b=yQ(typeof O!="number"?O:OQ(O,w1)),v=p===Jg?vfe:Jg,S=e.rects.popper,k=e.elements[m?v:p],A=Jfe(ip(k)?k:k.contextElement||Gd(e.elements.popper),l,c,a),w=Mm(e.elements.reference),E=EQ({reference:w,element:S,strategy:"absolute",placement:i}),M=c_(Object.assign({},S,E)),D=p===Jg?M:w,R={top:A.top-D.top+b.top,bottom:D.bottom-A.bottom+b.bottom,left:A.left-D.left+b.left,right:D.right-A.right+b.right},B=e.modifiersData.offset;if(p===Jg&&B){var U=B[i];Object.keys(R).forEach(function(V){var z=[Js,Ks].indexOf(V)>=0?1:-1,Q=[Ta,Ks].indexOf(V)>=0?"y":"x";R[V]+=U[Q]*z})}return R}function epe(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?hQ:l,c=$m(r),d=c?s?yB:yB.filter(function(m){return $m(m)===c}):w1,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]=sy(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 tpe(e){if(Tu(e)===lD)return[];var t=OE(e);return[EB(e),t,EB(t)]}function npe(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?[OE(O)]:tpe(O)),k=[O].concat(S).reduce(function(ue,ge){return ue.concat(Tu(ge)===lD?epe(t,{placement:ge,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:y}):ge)},[]),A=t.rects.reference,w=t.rects.popper,E=new Map,M=!0,D=k[0],R=0;R=0,Q=z?"width":"height",X=sy(t,{placement:B,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Z=z?V?Js:wa:V?Ks:Ta;A[Q]>w[Q]&&(Z=OE(Z));var Y=OE(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,M=!1;break}E.set(B,q)}if(M)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 rpe={name:"flip",enabled:!0,phase:"main",fn:npe,requiresIfExists:["offset"],data:{_skip:!1}};function TB(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 wB(e){return[Ta,Js,Ks,wa].some(function(t){return e[t]>=0})}function ipe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=sy(t,{elementContext:"reference"}),s=sy(t,{altBoundary:!0}),l=TB(a,r),u=TB(s,i,o),c=wB(l),d=wB(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 ope={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ipe};function ape(e,t,n){var r=Tu(e),i=[wa,Ta].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,[wa,Js].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function spe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=hQ.reduce(function(c,d){return c[d]=ape(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 lpe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:spe};function upe(e){var t=e.state,n=e.name;t.modifiersData[n]=EQ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const cpe={name:"popperOffsets",enabled:!0,phase:"read",fn:upe,data:{}};function dpe(e){return e==="x"?"y":"x"}function fpe(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=sy(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Tu(t.placement),v=$m(t.placement),S=!v,k=dD(b),A=dpe(k),w=t.modifiersData.popperOffsets,E=t.rects.reference,M=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"?Ta:wa,Q=k==="y"?Ks:Js,X=k==="y"?"height":"width",Z=w[k],Y=Z+O[z],q=Z-O[Q],j=h?-M[X]/2:0,le=v===Pm?E[X]:M[X],Ee=v===Pm?-M[X]:-E[X],G=t.elements.arrow,ue=h&&G?cD(G):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bQ(),he=ge[z],Ne=ge[Q],Le=ub(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&&k1(t.elements.arrow),We=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-We,$e=Z+rt-ye,Ve=ub(h?MS(Y,ze):Y,Z,h?Gf(q,$e):q);w[k]=Ve,U[k]=Ve-Z}if(s){var dt,Be=k==="x"?Ta:wa,re=k==="x"?Ks:Js,ee=w[A],J=A==="y"?"height":"width",_e=ee+O[Be],Pe=ee-O[re],Ie=[Ta,wa].indexOf(b)!==-1,ie=(dt=B==null?void 0:B[A])!=null?dt:0,de=Ie?_e:ee-E[J]-M[J]-ie+R.altAxis,ce=Ie?ee+E[J]+M[J]-ie-R.altAxis:Pe,Oe=h&&Ie?Mfe(de,ee,ce):ub(h?de:_e,ee,h?ce:Pe);w[A]=Oe,U[A]=Oe-ee}t.modifiersData[r]=U}}const ppe={name:"preventOverflow",enabled:!0,phase:"main",fn:fpe,requiresIfExists:["offset"]};function hpe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mpe(e){return e===cs(e)||!Vs(e)?fD(e):hpe(e)}function gpe(e){var t=e.getBoundingClientRect(),n=Lm(t.width)/e.offsetWidth||1,r=Lm(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bpe(e,t,n){n===void 0&&(n=!1);var r=Vs(t),i=Vs(t)&&gpe(t),o=Gd(t),a=Mm(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Cu(t)!=="body"||hD(o))&&(s=mpe(t)),Vs(t)?(l=Mm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=pD(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ype(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 Ope(e){var t=ype(e);return Rfe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vpe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Epe(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 xB(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(kpe(i)||document.body)},[i,o]),Zr(()=>{if(a&&!o)return oy(n,a),()=>{oy(n,null)}},[n,a,o]),o){if(N.isValidElement(r)){const u={ref:l};return N.cloneElement(r,u)}return $.jsx(N.Fragment,{children:r})}return $.jsx(N.Fragment,{children:a&&y1.createPortal(r,a)})});function xpe(e){return At("MuiPopper",e)}_t("MuiPopper",["root"]);const Cpe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ape=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function _pe(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 d_(e){return typeof e=="function"?e():e}function Rpe(e){return e.nodeType!==void 0}const Ipe=()=>Ct({root:["root"]},cfe(xpe)),Npe={},Dpe=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,Cpe),b=N.useRef(null),v=yn(b,n),S=N.useRef(null),k=yn(S,p),A=N.useRef(k);Zr(()=>{A.current=k},[k]),N.useImperativeHandle(p,()=>S.current,[]);const w=_pe(c,a),[E,M]=N.useState(w),[D,R]=N.useState(d_(i));N.useEffect(()=>{S.current&&S.current.forceUpdate()}),N.useEffect(()=>{i&&R(d_(i))},[i]),Zr(()=>{if(!D||!u)return;const Q=Y=>{M(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=wpe(D,b.current,L({placement:w},d,{modifiers:X}));return A.current(Z),()=>{Z.destroy(),A.current(null)}},[D,s,l,u,d,w]);const B={placement:E};y!==null&&(B.TransitionProps=y);const U=Ipe(),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 $.jsx(V,L({},z,{children:typeof o=="function"?o(B):o}))}),Ppe=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=Npe,popperRef:h,style:m,transition:y=!1,slotProps:O={},slots:b={}}=t,v=Ge(t,Ape),[S,k]=N.useState(!0),A=()=>{k(!1)},w=()=>{k(!0)};if(!l&&!c&&(!y||S))return null;let E;if(o)E=o;else if(r){const R=d_(r);E=R&&Rpe(R)?Hr(R).body:Hr(null).body}const M=!c&&l&&(!y||S)?"none":void 0,D=y?{in:c,onEnter:A,onExited:w}:void 0;return $.jsx(SQ,{disablePortal:s,container:E,children:$.jsx(Dpe,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},m),TransitionProps:D,children:i}))})});function Lpe(e){const t=Hr(e);return t.body===e?Xs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function db(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function CB(e){return parseInt(Xs(e).getComputedStyle(e).paddingRight,10)||0}function Mpe(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 AB(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!Mpe(a);s&&l&&db(a,i)})}function bC(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function $pe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Lpe(r)){const a=JW(Hr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${CB(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=`${CB(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 Fpe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Bpe{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&&db(t.modalRef,!1);const i=Fpe(n);AB(n,t.mount,t.modalRef,i,!0);const o=bC(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=bC(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=$pe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=bC(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&&db(t.modalRef,n),AB(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&&db(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Upe(e){return typeof e=="function"?e():e}function jpe(e){return e?e.props.hasOwnProperty("in"):!1}const zpe=new Bpe;function Vpe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=zpe,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=jpe(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>Hr(h.current),A=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{i.mount(A(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=jt(()=>{const X=Upe(t)||k().body;i.add(A(),X),m.current&&w()}),M=N.useCallback(()=>i.isTopModal(A()),[i]),D=jt(X=>{h.current=X,X&&(c&&M()?w():m.current&&db(m.current,S))}),R=N.useCallback(()=>{i.remove(A(),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||!M())&&(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=lb(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:RS(X,l==null?void 0:l.props.onEnter),onExited:RS(Z,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:D,isTopModal:M,exited:O,hasTransition:v}}const Hpe=2;function TQ(e,t){return e-t}function e0(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function _B(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}%`})}},qpe=e=>e;let iv;function IB(){return iv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?iv=CSS.supports("touch-action","none"):iv=!0),iv}function Zpe(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=qpe,step:y=1,tabIndex:O,value:b}=e,v=N.useRef(),[S,k]=N.useState(-1),[A,w]=N.useState(-1),[E,M]=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(TQ):[R];z=z.map(ie=>e0(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}=Bw(),[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)};Zr(()=>{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=Wpe(kt,l,s),y)Ke=Ype(Ke,y,l);else{const Ye=_B(X,Ke);Ke=X[Ye]}Ke=e0(Ke,l,s);let Ot=0;if(V){de?Ot=qe.current:Ot=_B(z,Ke),i&&(Ke=e0(Ke,z[Ot-1]||-1/0,z[Ot+1]||1/0));const Ye=Ke;Ke=RB({values:z,newValue:Ke,index:Ot}),i&&de||(Ot=Ke.indexOf(Ye),qe.current=Ot)}return{newValue:Ke,activeIndex:Ot}},We=jt(ie=>{const de=tv(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});nv({sliderRef:G,activeIndex:Oe,setActive:k}),B(ce),!E&&D.current>Hpe&&M(!0),U&&!rv(ce,R)&&U(ie,ce,Oe)}),ye=jt(ie=>{const de=tv(ie,v);if(M(!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;IB()||ie.preventDefault();const de=ie.changedTouches[0];de!=null&&(v.current=de.identifier);const ce=tv(ie,v);if(ce!==!1){const{newValue:Se,activeIndex:nt}=Me({finger:ce});nv({sliderRef:G,activeIndex:nt,setActive:k}),B(Se),U&&!rv(Se,R)&&U(ie,Se,nt)}D.current=0;const Oe=Hr(G.current);Oe.addEventListener("touchmove",We,{passive:!0}),Oe.addEventListener("touchend",ye,{passive:!0})}),$e=N.useCallback(()=>{const ie=Hr(G.current);ie.removeEventListener("mousemove",We),ie.removeEventListener("mouseup",ye),ie.removeEventListener("touchmove",We),ie.removeEventListener("touchend",ye)},[ye,We]);N.useEffect(()=>{const{current:ie}=G;return ie.addEventListener("touchstart",ze,{passive:IB()}),()=>{ie.removeEventListener("touchstart",ze),$e()}},[$e,ze]),N.useEffect(()=>{r&&$e()},[r,$e]);const Ve=ie=>de=>{var ce;if((ce=ie.onMouseDown)==null||ce.call(ie,de),r||de.defaultPrevented||de.button!==0)return;de.preventDefault();const Oe=tv(de,v);if(Oe!==!1){const{newValue:nt,activeIndex:pt}=Me({finger:Oe});nv({sliderRef:G,activeIndex:pt,setActive:k}),B(nt),U&&!rv(nt,R)&&U(de,nt,pt)}D.current=0;const Se=Hr(G.current);Se.addEventListener("mousemove",We,{passive:!0}),Se.addEventListener("mouseup",ye)},dt=$S(V?z[0]:l,l,s),Be=$S(z[z.length-1],l,s)-dt,re=(ie={})=>{const de=lb(ie),ce={onMouseDown:Ve(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:Gpe,dragging:E,focusedThumbIndex:le,getHiddenInputProps:(ie={})=>{var de;const ce=lb(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({},Qle,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:re,getThumbProps:(ie={})=>{const de=lb(ie),ce={onMouseOver:ee(de||{}),onMouseLeave:J(de||{})};return L({},ie,de,ce)},marks:Q,open:A,range:V,rootRef:ge,trackLeap:Be,trackOffset:dt,values:z,getThumbStyle:ie=>({pointerEvents:S!==-1&&S!==ie?"none":void 0})}}const Xpe=["onChange","maxRows","minRows","style","value"];function ov(e){return parseInt(e,10)||0}const Kpe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function NB(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const wQ=N.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ge(t,Xpe),{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 M=w.boxSizing,D=ov(w.paddingBottom)+ov(w.paddingTop),R=ov(w.borderBottomWidth)+ov(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+(M==="border-box"?D+R:0),Q=Math.abs(V-B)<=1;return{outerHeightStyle:z,overflow:Q}},[i,o,t.placeholder]),b=(k,A)=>{const{outerHeightStyle:w,overflow:E}=A;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();NB(k)||y(A=>b(A,k))},[O]);Zr(()=>{const k=()=>{const B=O();NB(B)||y1.flushSync(()=>{y(U=>b(U,B))})},A=()=>{h.current=0,k()};let w;const E=ag(A),M=c.current,D=Xs(M);D.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(A),R.observe(M)),()=>{E.clear(),cancelAnimationFrame(w),D.removeEventListener("resize",E),R&&R.disconnect()}},[O]),Zr(()=>{v()}),N.useEffect(()=>{h.current=0},[s]);const S=k=>{h.current=0,u||v(),r&&r(k)};return $.jsxs(N.Fragment,{children:[$.jsx("textarea",L({value:s,onChange:S,ref:d,rows:o,style:L({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),$.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:L({},Kpe.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function DB(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Jpe(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=DB(c));const d=c?s.filter(p=>{let h=(o||u)(p);return n&&(h=h.toLowerCase()),t&&(h=DB(h)),i==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function yC(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function nhe(e){const{unstable_isActiveElementInListbox:t=the,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=ehe,filterSelectedOptions:b=!1,freeSolo:v=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:A=Ue=>{var xe;return(xe=Ue.label)!=null?xe:Ue},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:M,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(M);let ge=A;ge=Ue=>{const xe=A(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),[We,ye]=N.useState(-1),ze=i?0:-1,$e=N.useRef(ze),[Ve,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?Ve.length!(b&&(U?Ve:[Ve]).some(xe=>xe!==null&&B(Ue,xe)))),{inputValue:ce&&ie?"":Be,getOptionLabel:ge}):[],nt=Vle({filteredOptions:Se,value:Ve,inputValue:Be});N.useEffect(()=>{const Ue=Ve!==nt.value;ee&&!Ue||v&&!Ue||_e(null,Ve)},[Ve,_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&&We>Ve.length-1&&(ye(-1),kt(-1))},[Ve,U,We,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 Ot=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(Ot({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?Ve.length===nt.value.length&&nt.value.every((xe,mt)=>ge(Ve[mt])===ge(xe)):Ue(nt.value,Ve))){const xe=nt.filteredOptions[$e.current];if(xe&&Se.some(Nt=>ge(Nt)===ge(xe)))return!0}return!1},vt=N.useCallback(()=>{if(!Oe||it())return;const Ue=U?Ve[0]:Ve;if(Se.length===0||Ue==null){Ye({diff:"reset"});return}if(qe.current){if(Ue!=null){const xe=Se[$e.current];if(U&&xe&&yC(Ve,Nt=>B(xe,Nt))!==-1)return;const mt=yC(Se,Nt=>B(Nt,Ue));mt===-1?Ye({diff:"reset"}):Ot({index:mt});return}if($e.current>=Se.length-1){Ot({index:Se.length-1});return}Ot({index:$e.current})}},[Se.length,U?!1:Ve,b,Ye,Ot,Oe,Be,U]),Dt=jt(Ue=>{oy(qe,Ue),Ue&&vt()});N.useEffect(()=>{vt()},[vt]);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(Ve.length===xe.length&&Ve.every((en,Mn)=>en===xe[Mn]))return}else if(Ve===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(Ve)?Ve.slice():[];const Nn=yC(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 Ce(Ue,xe){if(Ue===-1)return-1;let mt=Ue;for(;;){if(xe==="next"&&mt===Ve.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=We;We===-1?Be===""&&xe==="previous"&&(mt=Ve.length-1):(mt+=xe==="next"?1:-1,mt<0&&(mt=0),mt===Ve.length&&(mt=-1)),mt=Ce(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&&(We!==-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:-PB,direction:"previous",reason:"keyboard",event:xe}),rn(xe);break;case"PageDown":xe.preventDefault(),Ye({diff:PB,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&&Ve.length>0)&&(xe.preventDefault(),xe.stopPropagation(),lt(xe));break;case"Backspace":if(U&&!le&&Be===""&&Ve.length>0){const mt=We===-1?Ve.length-1:We,Nt=Ve.slice();Nt.splice(mt,1),fn(xe,Nt,"removeOption",{option:Ve[mt]})}break;case"Delete":if(U&&!le&&Be===""&&Ve.length>0&&We!==-1){const mt=We,Nt=Ve.slice();Nt.splice(mt,1),fn(xe,Nt,"removeOption",{option:Ve[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,Ve),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&&Ot({event:Ue,index:xe,reason:"mouse"})},qt=Ue=>{Ot({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=Ve.slice();mt.splice(Ue,1),fn(xe,mt,"removeOption",{option:Ve[Ue]})},He=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)&&He(Ue)};let hn=v&&Be.length>0;hn=hn||(U?Ve.length>0:Ve!==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:He}),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?Ve:[Ve]).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:Ve,dirty:hn,expanded:Oe&&rt,popupOpen:Oe,focused:ee||We!==-1,anchorEl:rt,setAnchorEl:Me,focusedTag:We,groupedOptions:tr}}const rhe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ihe=ke(Ppe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ohe=N.forwardRef(function(t,n){var r;const i=Gw(),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,A=Ge(o,rhe),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},A);return $.jsx(ihe,L({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:k??u},E,{ref:n}))}),x1=ohe;function ahe(e){return At("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const she=["className","color","component","disableGutters","disableSticky","inset"],lhe=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,ahe,t)},uhe=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})),kQ=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,she),d=L({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=lhe(d);return $.jsx(uhe,L({as:a,className:et(p.root,i),ref:n,ownerState:d},c))});kQ.muiSkipListHighlight=!0;const che=kQ,dhe=Si($.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 fhe(e){return At("MuiChip",e)}const phe=_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=phe,hhe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],mhe=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,fhe,t)},ghe=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}}})),bhe=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 LB(e){return e.key==="Backspace"||e.key==="Delete"}const yhe=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,A=Ge(r,hhe),w=N.useRef(null),E=yn(w,n),M=q=>{q.stopPropagation(),m&&m(q)},D=q=>{q.currentTarget===q.target&&LB(q)&&q.preventDefault(),y&&y(q)},R=q=>{q.currentTarget===q.target&&(m&&LB(q)?m(q):q.key==="Escape"&&w.current&&w.current.blur()),O&&O(q)},B=a!==!1&&h?!0:a,U=B||m?us: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=mhe(V),Q=U===us?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(dhe,{className:et(z.deleteIcon),onClick:M}));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)})),$.jsxs(ghe,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,A,{children:[Z||Y,$.jsx(bhe,{className:et(z.label),ownerState:V,children:p}),X]}))}),mD=yhe;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 Ohe=N.createContext(void 0),tk=Ohe;function _u(){return N.useContext(tk)}function xQ(e){return $.jsx(Que,L({},e,{defaultTheme:Xw,themeId:tp}))}function MB(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function FS(e,t=!1){return e&&(MB(e.value)&&e.value!==""||t&&MB(e.defaultValue)&&e.defaultValue!=="")}function vhe(e){return e.startAdornment}function Ehe(e){return At("MuiInputBase",e)}const She=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ya=She,The=["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"],nk=(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]},rk=(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]},whe=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,Ehe,t)},ik=ke("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nk})(({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",[`&.${Ya.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%"})),ok=ke("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rk})(({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] + .${Ya.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},[`&.${Ya.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"})}),khe=$.jsx(xQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),xhe=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:A,multiline:w=!1,name:E,onBlur:M,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,The),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(),We=qd({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});We.focused=Me?Me.focused:qe,N.useEffect(()=>{!Me&&p&&qe&&(rt(!1),M&&M())},[Me,p,qe,M]);const ye=Me&&Me.onFilled,ze=Me&&Me.onEmpty,$e=N.useCallback(Oe=>{FS(Oe)?ye&&ye():ze&&ze()},[ye,ze]);Zr(()=>{ge&&$e({value:ue})},[ue,$e,ge]);const Ve=Oe=>{if(We.disabled){Oe.stopPropagation();return}B&&B(Oe),v.onFocus&&v.onFocus(Oe),Me&&Me.onFocus?Me.onFocus(Oe):rt(!0)},dt=Oe=>{M&&M(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:A},J),ee=wQ);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:We.color||"primary",disabled:We.disabled,endAdornment:m,error:We.error,focused:We.focused,formControl:Me,fullWidth:y,hiddenLabel:We.hiddenLabel,multiline:w,size:We.size,startAdornment:j,type:le}),Ie=whe(Pe),ie=q.root||u.Root||ik,de=Y.root||c.root||{},ce=q.input||u.Input||ok;return J=L({},J,(r=Y.input)!=null?r:c.input),$.jsxs(N.Fragment,{children:[!h&&khe,$.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,$.jsx(tk.Provider,{value:null,children:$.jsx(ce,L({ownerState:Pe,"aria-invalid":We.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:We.disabled,id:O,onAnimationStart:_e,name:E,placeholder:z,readOnly:Q,required:We.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:Ve}))}),m,X?X(L({},We,{startAdornment:j})):null]}))]})}),gD=xhe;function Che(e){return At("MuiInput",e)}const Ahe=L({},Ya,_t("MuiInput",["root","underline","input"])),Zc=Ahe;function _he(e){return At("MuiOutlinedInput",e)}const Rhe=L({},Ya,_t("MuiOutlinedInput",["root","notchedOutline","input"])),eu=Rhe;function Ihe(e){return At("MuiFilledInput",e)}const Nhe=L({},Ya,_t("MuiFilledInput",["root","underline","input"])),Ga=Nhe,CQ=Si($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Dhe(e){return At("MuiAutocomplete",e)}const Phe=_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=Phe;var $B,FB;const Lhe=["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"],Mhe=["ref"],$he=["key"],Fhe=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,Dhe,t)},Bhe=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}},[`& .${Zc.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Zc.root}.${Ya.sizeSmall}`]:{[`& .${Zc.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}.${Ya.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ga.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${Ga.input}`]:{padding:"7px 4px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${Ga.root}.${Ya.sizeSmall}`]:{paddingBottom:1,[`& .${Ga.input}`]:{padding:"2.5px 4px"}},[`& .${Ya.hiddenLabel}`]:{paddingTop:8},[`& .${Ga.root}.${Ya.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ga.root}.${Ya.hiddenLabel}.${Ya.sizeSmall}`]:{[`& .${Fn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fn.input}`]:L({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Uhe=ke("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),jhe=ke(bs,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zhe=ke(bs,{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)"})),Vhe=ke(x1,{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"})),Hhe=ke(gs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>L({},e.typography.body1,{overflow:"auto"})),Whe=ke("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Qhe=ke("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Yhe=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)}}}})),Ghe=ke(che,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qhe=ke("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fn.option}`]:{paddingLeft:24}}),Zhe=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=$B||($B=$.jsx(Yde,{fontSize:"small"})),clearOnBlur:y=!s.freeSolo,clearOnEscape:O=!1,clearText:b="Clear",closeText:v="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:A=!1,disableCloseOnSelect:w=!1,disabled:E=!1,disabledItemsFocusable:M=!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=gs,PopperComponent:rt=x1,popupIcon:Me=FB||(FB=$.jsx(CQ,{})),readOnly:We=!1,renderGroup:ye,renderInput:ze,renderOption:$e,renderTags:Ve,selectOnFocus:dt=!s.freeSolo,size:Be="medium",slotProps:re={}}=s,ee=Ge(s,Lhe),{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:Ot,focusedTag:Ye,anchorEl:it,setAnchorEl:vt,inputValue:Dt,groupedOptions:rn}=nhe(L({},s,{componentName:"Autocomplete"})),cn=!A&&!E&&nt&&!We,fn=(!V||U===!0)&&U!==!1,{onMouseDown:zn}=_e(),{ref:ve}=Ee??{},Ce=ce(),{ref:fe}=Ce,lt=Ge(Ce,Mhe),at=yn(fe,ve),$t=X||(xe=>{var mt;return(mt=xe.label)!=null?mt:xe}),It=L({},s,{disablePortal:R,expanded:pt,focused:Ot,fullWidth:z,getOptionLabel:$t,hasClearIcon:cn,hasPopupIcon:fn,inputFocused:Ye===-1,popupOpen:Ke,size:Be}),xt=Fhe(It);let qt;if(ge&&Se.length>0){const xe=mt=>L({className:xt.tag,disabled:E},de(mt));Ve?qt=Ve(Se,xe,It):qt=Se.map((mt,Nt)=>$.jsx(mD,L({label:$t(mt),size:Be},xe({index:Nt}),p)))}if(j>-1&&Array.isArray(qt)){const xe=qt.length-j;!Ot&&xe>0&&(qt=qt.splice(0,j),qt.push($.jsx("span",{className:xt.tag,children:Q(xe)},qt.length)))}const Te=ye||(xe=>$.jsxs("li",{children:[$.jsx(Ghe,{className:xt.groupLabel,ownerState:It,component:"div",children:xe.group}),$.jsx(qhe,{className:xt.groupUl,ownerState:It,children:xe.children})]},xe.key)),ot=$e||((xe,mt)=>{const{key:Nt}=xe,en=Ge(xe,$he);return $.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 $.jsxs(N.Fragment,{children:[$.jsx(Bhe,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:vt,className:xt.inputRoot,startAdornment:qt,onClick:xe=>{xe.target===xe.currentTarget&&zn(xe)}},(cn||fn)&&{endAdornment:$.jsxs(Uhe,{className:xt.endAdornment,ownerState:It,children:[cn?$.jsx(jhe,L({},ie(),{"aria-label":b,title:b,ownerState:It},Wt,{className:et(xt.clearIndicator,Wt==null?void 0:Wt.className),children:m})):null,fn?$.jsx(zhe,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:We},_e())})})),it?$.jsx(Vhe,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:$.jsxs(Hhe,L({ownerState:It,as:qe},hn,{className:et(xt.paper,hn==null?void 0:hn.className),children:[G&&rn.length===0?$.jsx(Whe,{className:xt.loading,ownerState:It,children:ue}):null,rn.length===0&&!V&&!G?$.jsx(Qhe,{className:xt.noOptions,ownerState:It,role:"presentation",onMouseDown:xe=>{xe.preventDefault()},children:he}):null,rn.length>0?$.jsx(Yhe,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]})}),Xhe=Zhe,Khe=Si($.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 Jhe(e){return At("MuiAvatar",e)}_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const eme=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],tme=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ct({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Jhe,t)},nme=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]}))),rme=ke("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ime=ke(Khe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function ome({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 ame=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,eme);let m=null;const y=ome(L({},l,{src:c,srcSet:d})),O=c||d,b=O&&y!=="error",v=L({},r,{colorDefault:!b,component:s,variant:p}),S=tme(v);return b?m=$.jsx(rme,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=$.jsx(ime,{ownerState:v,className:S.fallback}),$.jsx(nme,L({as:s,ownerState:v,className:et(S.root,a),ref:n},h,{children:m}))}),sme=ame,lme=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ume={entering:{opacity:1},entered:{opacity:1}},cme=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=Kw}=t,S=Ge(t,lme),k=N.useRef(null),A=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),M=w((z,Q)=>{sD(z);const X=Dm({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=Dm({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 $.jsx(v,L({appear:a,in:u,nodeRef:k,onEnter:M,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},ume[z],O,s.props.style),ref:A},Q))}))}),lg=cme;function dme(e){return At("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const fme=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],pme=e=>{const{classes:t,invisible:n}=e;return Ct({root:["root",n&&"invisible"]},dme,t)},hme=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"})),mme=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=lg,transitionDuration:b}=a,v=Ge(a,fme),S=L({},a,{component:u,invisible:p}),k=pme(S),A=(r=m.root)!=null?r:d.root;return $.jsx(O,L({in:h,timeout:b},v,{children:$.jsx(hme,L({"aria-hidden":!0},A,{as:(i=(o=y.root)!=null?o:c.Root)!=null?i:u,className:et(k.root,l,A==null?void 0:A.className),ownerState:L({},S,A==null?void 0:A.ownerState),classes:k,ref:n,children:s}))}))}),bD=mme,gme=_t("MuiBox",["root"]),bme=gme,yme=eD(),Ome=Zue({themeId:tp,defaultTheme:yme,defaultClassName:bme.root,generateClassName:HN.generate}),as=Ome;function vme(e){return At("MuiButton",e)}const Eme=_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"]),av=Eme,Sme=N.createContext({}),Tme=Sme,wme=N.createContext(void 0),kme=wme,xme=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Cme=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,vme,a);return L({},a,l)},AQ=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}}),Ame=ke(us,{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]}),[`&.${av.focusVisible}`]:L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${av.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"},[`&.${av.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${av.disabled}`]:{boxShadow:"none"}}),_me=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},AQ(e))),Rme=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},AQ(e))),Ime=N.forwardRef(function(t,n){const r=N.useContext(Tme),i=N.useContext(kme),o=Uw(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,A=Ge(a,xme),w=L({},a,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:O,size:b,type:S,variant:k}),E=Cme(w),M=v&&$.jsx(_me,{className:E.startIcon,ownerState:w,children:v}),D=m&&$.jsx(Rme,{className:E.endIcon,ownerState:w,children:m}),R=i||"";return $.jsxs(Ame,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},A,{classes:E,children:[M,s,D]}))}),Af=Ime;function Nme(e){return At("MuiCard",e)}_t("MuiCard",["root"]);const Dme=["className","raised"],Pme=e=>{const{classes:t}=e;return Ct({root:["root"]},Nme,t)},Lme=ke(gs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Mme=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ge(r,Dme),s=L({},r,{raised:o}),l=Pme(s);return $.jsx(Lme,L({className:et(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),$me=Mme;function Fme(e){return At("MuiCardActionArea",e)}const Bme=_t("MuiCardActionArea",["root","focusVisible","focusHighlight"]),OC=Bme,Ume=["children","className","focusVisibleClassName"],jme=e=>{const{classes:t}=e;return Ct({root:["root"],focusHighlight:["focusHighlight"]},Fme,t)},zme=ke(us,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${OC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${OC.focusVisible} .${OC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),Vme=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})})),Hme=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ge(r,Ume),l=r,u=jme(l);return $.jsxs(zme,L({className:et(u.root,o),focusVisibleClassName:et(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,$.jsx(Vme,{className:u.focusHighlight,ownerState:l})]}))}),Wme=Hme;function Qme(e){return At("MuiCardContent",e)}_t("MuiCardContent",["root"]);const Yme=["className","component"],Gme=e=>{const{classes:t}=e;return Ct({root:["root"]},Qme,t)},qme=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Zme=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ge(r,Yme),s=L({},r,{component:o}),l=Gme(s);return $.jsx(qme,L({as:o,className:et(l.root,i),ownerState:s,ref:n},a))}),Xme=Zme;function Kme(e){return At("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Jme=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ege=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,Kme,t)},tge=ke(us)(({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})),nge=ke("input",{shouldForwardProp:Xi})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),rge=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:A,type:w,value:E}=t,M=Ge(t,Jme),[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=ege(Z);return $.jsxs(tge,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},M,{children:[$.jsx(nge,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:A,type:w},w==="checkbox"&&E===void 0?{}:{value:E},h)),D?o:d]}))}),yD=rge,ige=Si($.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"),oge=Si($.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"),age=Si($.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 sge(e){return At("MuiCheckbox",e)}const lge=_t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),vC=lge,uge=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],cge=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,sge,t);return L({},t,a)},dge=ke(yD,{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"&&{[`&.${vC.checked}, &.${vC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${vC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),fge=$.jsx(oge,{}),pge=$.jsx(ige,{}),hge=$.jsx(age,{}),mge=N.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=fge,color:s="primary",icon:l=pge,indeterminate:u=!1,indeterminateIcon:c=hge,inputProps:d,size:p="medium",className:h}=o,m=Ge(o,uge),y=u?c:l,O=u?c:a,b=L({},o,{color:s,indeterminate:u,size:p}),v=cge(b);return $.jsx(dge,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}))}),ak=mge;function gge(e){return At("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const bge=["className","color","disableShrink","size","style","thickness","value","variant"];let sk=e=>e,BB,UB,jB,zB;const Lc=44,yge=v1(BB||(BB=sk` +`),Rs.rippleVisible,jde,u_,({theme:e})=>e.transitions.easing.easeInOut,Rs.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Rs.child,Rs.childLeaving,zde,u_,({theme:e})=>e.transitions.easing.easeInOut,Rs.childPulsate,Vde,({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,Bde),[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 v=N.useCallback(k=>{const{pulsate:A,rippleX:w,rippleY:E,rippleSize:M,cb:D}=k;u(R=>[...R,$.jsx(Wde,{classes:{ripple:et(o.ripple,Rs.ripple),rippleVisible:et(o.rippleVisible,Rs.rippleVisible),ripplePulsate:et(o.ripplePulsate,Rs.ripplePulsate),child:et(o.child,Rs.child),childLeaving:et(o.childLeaving,Rs.childLeaving),childPulsate:et(o.childPulsate,Rs.childPulsate)},timeout:u_,pulsate:A,rippleX:w,rippleY:E,rippleSize:M},c.current)]),c.current+=1,d.current=D},[o]),b=N.useCallback((k={},A={},w=()=>{})=>{const{pulsate:E=!1,center:M=i||A.pulsate,fakeElement:D=!1}=A;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(M||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(M)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=()=>{v({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},h.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},Ude)):v({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},[i,v]),O=N.useCallback(()=>{b({},{pulsate:!0})},[b]),S=N.useCallback((k,A)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&m.current){m.current(),m.current=null,h.current=setTimeout(()=>{S(k,A)});return}m.current=null,u(w=>w.length>0?w.slice(1):w),d.current=A},[]);return N.useImperativeHandle(n,()=>({pulsate:O,start:b,stop:S}),[O,b,S]),$.jsx(Hde,L({className:et(Rs.root,o.root,a),ref:y},s,{children:$.jsx(aD,{component:null,exit:!0,children:l})}))}),Yde=Qde;function Gde(e){return At("MuiButtonBase",e)}const qde=_t("MuiButtonBase",["root","disabled","focusVisible"]),Zde=["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"],Xde=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Ct({root:["root",t&&"disabled",n&&"focusVisible"]},Gde,i);return n&&r&&(a.root+=` ${r}`),a},Kde=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"},[`&.${qde.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jde=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:v,onDragLeave:b,onFocus:O,onFocusVisible:S,onKeyDown:k,onKeyUp:A,onMouseDown:w,onMouseLeave:E,onMouseUp:M,onTouchEnd:D,onTouchMove:R,onTouchStart:B,tabIndex:U=0,TouchRippleProps:V,touchRippleRef:z,type:Q}=r,X=Ge(r,Zde),Z=N.useRef(null),Y=N.useRef(null),q=yn(Y,z),{isFocusVisibleRef:j,onFocus:le,onBlur:Ee,ref:G}=Bw(),[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",v),Qe=qe("stop",b),ye=qe("stop",M),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)),O&&O(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)})),A&&A(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=Xde(ce);return $.jsxs(Kde,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?$.jsx(Yde,L({ref:q,center:o},V)):null]}))}),us=Jde;function efe(e){return At("MuiIconButton",e)}const tfe=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nfe=["edge","children","className","color","disabled","disableFocusRipple","size"],rfe=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,efe,t)},ife=ke(us,{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)},{[`&.${tfe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ofe=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,nfe),p=L({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=rfe(p);return $.jsx(ife,L({className:et(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),bs=ofe,afe=Ti($.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 sfe(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 lfe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ufe=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,sfe,a)},cfe=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})),yB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dfe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ffe=e=>dfe[e]||e,pfe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTypography"}),i=ffe(r.color),o=qw(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=yB}=o,m=Ge(o,lfe),y=L({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:h}),v=l||(d?"p":h[p]||yB[p])||"span",b=ufe(y);return $.jsx(cfe,L({as:v,ref:n,ownerState:y,className:et(b.root,s)},m))}),mi=pfe;function hfe(e){return At("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const mfe=["className","color","enableColorOnDark","position"],gfe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${tt(t)}`,`position${tt(n)}`]};return Ct(i,hfe,r)},JO=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,bfe=ke(gs,{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:JO(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:JO(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:JO(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:JO(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"}))}),yfe=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,mfe),u=L({},r,{color:o,position:s,enableColorOnDark:a}),c=gfe(u);return $.jsx(bfe,L({square:!0,component:"header",ownerState:u,elevation:4,className:et(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),Ofe=yfe,mQ="base";function vfe(e){return`${mQ}--${e}`}function Efe(e,t){return`${mQ}-${e}-${t}`}function gQ(e,t){const n=rQ[t];return n?vfe(n):Efe(e,t)}function Sfe(e,t){const n={};return t.forEach(r=>{n[r]=gQ(e,r)}),n}const Tfe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wfe(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 kfe(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 xfe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kfe(e))}function Cfe(e){const t=[],n=[];return Array.from(e.querySelectorAll(Tfe)).forEach((r,i)=>{const o=wfe(r);o===-1||!xfe(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 Afe(){return!0}function bQ(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Cfe,isEnabled:a=Afe,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),v=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=>{v.current=E,!(r||!a()||E.key!=="Tab")&&S.activeElement===m.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},A=()=>{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 M=[];if((S.activeElement===u.current||S.activeElement===c.current)&&(M=o(m.current)),M.length>0){var D,R;const B=!!((D=v.current)!=null&&D.shiftKey&&((R=v.current)==null?void 0:R.key)==="Tab"),U=M[0],V=M[M.length-1];typeof U!="string"&&typeof V!="string"&&(B?V.focus():U.focus())}else E.focus()};S.addEventListener("focusin",A),S.addEventListener("keydown",k,!0);const w=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(w),S.removeEventListener("focusin",A),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)},O=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0};return $.jsxs(N.Fragment,{children:[$.jsx("div",{tabIndex:s?0:-1,onFocus:O,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:y,onFocus:b}),$.jsx("div",{tabIndex:s?0:-1,onFocus:O,ref:c,"data-testid":"sentinelEnd"})]})}var Ta="top",Ks="bottom",Js="right",wa="left",lD="auto",x1=[Ta,Ks,Js,wa],Lm="start",ly="end",_fe="clippingParents",yQ="viewport",t0="popper",Rfe="reference",OB=x1.reduce(function(e,t){return e.concat([t+"-"+Lm,t+"-"+ly])},[]),OQ=[].concat(x1,[lD]).reduce(function(e,t){return e.concat([t,t+"-"+Lm,t+"-"+ly])},[]),Ife="beforeRead",Nfe="read",Dfe="afterRead",Pfe="beforeMain",Lfe="main",Mfe="afterMain",$fe="beforeWrite",Ffe="write",Bfe="afterWrite",Ufe=[Ife,Nfe,Dfe,Pfe,Lfe,Mfe,$fe,Ffe,Bfe];function Cu(e){return e?(e.nodeName||"").toLowerCase():null}function cs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ip(e){var t=cs(e).Element;return e instanceof t||e instanceof Element}function zs(e){var t=cs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uD(e){if(typeof ShadowRoot>"u")return!1;var t=cs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function jfe(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];!zs(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 zfe(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},{});!zs(i)||!Cu(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Vfe={name:"applyStyles",enabled:!0,phase:"write",fn:jfe,effect:zfe,requires:["computeStyles"]};function Tu(e){return e.split("-")[0]}var Gf=Math.max,LS=Math.min,Mm=Math.round;function c_(){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 vQ(){return!/^((?!chrome|android).)*safari/i.test(c_())}function $m(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&zs(e)&&(i=e.offsetWidth>0&&Mm(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Mm(r.height)/e.offsetHeight||1);var a=ip(e)?cs(e):window,s=a.visualViewport,l=!vQ()&&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 cD(e){var t=$m(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 EQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uD(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hc(e){return cs(e).getComputedStyle(e)}function Hfe(e){return["table","td","th"].indexOf(Cu(e))>=0}function Gd(e){return((ip(e)?e.ownerDocument:e.document)||window.document).documentElement}function ek(e){return Cu(e)==="html"?e:e.assignedSlot||e.parentNode||(uD(e)?e.host:null)||Gd(e)}function vB(e){return!zs(e)||hc(e).position==="fixed"?null:e.offsetParent}function Wfe(e){var t=/firefox/i.test(c_()),n=/Trident/i.test(c_());if(n&&zs(e)){var r=hc(e);if(r.position==="fixed")return null}var i=ek(e);for(uD(i)&&(i=i.host);zs(i)&&["html","body"].indexOf(Cu(i))<0;){var o=hc(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 C1(e){for(var t=cs(e),n=vB(e);n&&Hfe(n)&&hc(n).position==="static";)n=vB(n);return n&&(Cu(n)==="html"||Cu(n)==="body"&&hc(n).position==="static")?t:n||Wfe(e)||t}function dD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function db(e,t,n){return Gf(e,LS(t,n))}function Qfe(e,t,n){var r=db(e,t,n);return r>n?n:r}function SQ(){return{top:0,right:0,bottom:0,left:0}}function TQ(e){return Object.assign({},SQ(),e)}function wQ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Yfe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,TQ(typeof t!="number"?t:wQ(t,x1))};function Gfe(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=dD(s),u=[wa,Js].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=Yfe(i.padding,n),p=cD(o),h=l==="y"?Ta:wa,m=l==="y"?Ks:Js,y=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],v=a[l]-n.rects.reference[l],b=C1(o),O=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-v/2,k=d[h],A=O-p[c]-d[m],w=O/2-p[c]/2+S,E=db(k,w,A),M=l;n.modifiersData[r]=(t={},t[M]=E,t.centerOffset=E-w,t)}}function qfe(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)||EQ(t.elements.popper,i)&&(t.elements.arrow=i))}const Zfe={name:"arrow",enabled:!0,phase:"main",fn:Gfe,effect:qfe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fm(e){return e.split("-")[1]}var Xfe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kfe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Mm(n*i)/i||0,y:Mm(r*i)/i||0}}function EB(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,v=typeof c=="function"?c({x:h,y}):{x:h,y};h=v.x,y=v.y;var b=a.hasOwnProperty("x"),O=a.hasOwnProperty("y"),S=wa,k=Ta,A=window;if(u){var w=C1(n),E="clientHeight",M="clientWidth";if(w===cs(n)&&(w=Gd(n),hc(w).position!=="static"&&s==="absolute"&&(E="scrollHeight",M="scrollWidth")),w=w,i===Ta||(i===wa||i===Js)&&o===ly){k=Ks;var D=d&&w===A&&A.visualViewport?A.visualViewport.height:w[E];y-=D-r.height,y*=l?1:-1}if(i===wa||(i===Ta||i===Ks)&&o===ly){S=Js;var R=d&&w===A&&A.visualViewport?A.visualViewport.width:w[M];h-=R-r.width,h*=l?1:-1}}var B=Object.assign({position:s},u&&Xfe),U=c===!0?Kfe({x:h,y},cs(n)):{x:h,y};if(h=U.x,y=U.y,l){var V;return Object.assign({},B,(V={},V[k]=O?"0":"",V[S]=b?"0":"",V.transform=(A.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",V))}return Object.assign({},B,(t={},t[k]=O?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function Jfe(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:Fm(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,EB(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,EB(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 epe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jfe,data:{}};var ev={passive:!0};function tpe(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=cs(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,ev)}),s&&l.addEventListener("resize",n.update,ev),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ev)}),s&&l.removeEventListener("resize",n.update,ev)}}const npe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tpe,data:{}};var rpe={left:"right",right:"left",bottom:"top",top:"bottom"};function OE(e){return e.replace(/left|right|bottom|top/g,function(t){return rpe[t]})}var ipe={start:"end",end:"start"};function SB(e){return e.replace(/start|end/g,function(t){return ipe[t]})}function fD(e){var t=cs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pD(e){return $m(Gd(e)).left+fD(e).scrollLeft}function ope(e,t){var n=cs(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=vQ();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+pD(e),y:l}}function ape(e){var t,n=Gd(e),r=fD(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+pD(e),l=-r.scrollTop;return hc(i||n).direction==="rtl"&&(s+=Gf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function hD(e){var t=hc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function kQ(e){return["html","body","#document"].indexOf(Cu(e))>=0?e.ownerDocument.body:zs(e)&&hD(e)?e:kQ(ek(e))}function fb(e,t){var n;t===void 0&&(t=[]);var r=kQ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=cs(r),a=i?[o].concat(o.visualViewport||[],hD(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(fb(ek(a)))}function d_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function spe(e,t){var n=$m(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 TB(e,t,n){return t===yQ?d_(ope(e,n)):ip(t)?spe(t,n):d_(ape(Gd(e)))}function lpe(e){var t=fb(ek(e)),n=["absolute","fixed"].indexOf(hc(e).position)>=0,r=n&&zs(e)?C1(e):e;return ip(r)?t.filter(function(i){return ip(i)&&EQ(i,r)&&Cu(i)!=="body"}):[]}function upe(e,t,n,r){var i=t==="clippingParents"?lpe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=TB(e,u,r);return l.top=Gf(c.top,l.top),l.right=LS(c.right,l.right),l.bottom=LS(c.bottom,l.bottom),l.left=Gf(c.left,l.left),l},TB(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 xQ(e){var t=e.reference,n=e.element,r=e.placement,i=r?Tu(r):null,o=r?Fm(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Ta: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 wa:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?dD(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Lm:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ly:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function uy(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?_fe:s,u=n.rootBoundary,c=u===void 0?yQ:u,d=n.elementContext,p=d===void 0?t0:d,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,v=y===void 0?0:y,b=TQ(typeof v!="number"?v:wQ(v,x1)),O=p===t0?Rfe:t0,S=e.rects.popper,k=e.elements[m?O:p],A=upe(ip(k)?k:k.contextElement||Gd(e.elements.popper),l,c,a),w=$m(e.elements.reference),E=xQ({reference:w,element:S,strategy:"absolute",placement:i}),M=d_(Object.assign({},S,E)),D=p===t0?M:w,R={top:A.top-D.top+b.top,bottom:D.bottom-A.bottom+b.bottom,left:A.left-D.left+b.left,right:D.right-A.right+b.right},B=e.modifiersData.offset;if(p===t0&&B){var U=B[i];Object.keys(R).forEach(function(V){var z=[Js,Ks].indexOf(V)>=0?1:-1,Q=[Ta,Ks].indexOf(V)>=0?"y":"x";R[V]+=U[Q]*z})}return R}function cpe(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?OQ:l,c=Fm(r),d=c?s?OB:OB.filter(function(m){return Fm(m)===c}):x1,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]=uy(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 dpe(e){if(Tu(e)===lD)return[];var t=OE(e);return[SB(e),t,SB(t)]}function fpe(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,v=t.options.placement,b=Tu(v),O=b===v,S=l||(O||!m?[OE(v)]:dpe(v)),k=[v].concat(S).reduce(function(ue,ge){return ue.concat(Tu(ge)===lD?cpe(t,{placement:ge,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:y}):ge)},[]),A=t.rects.reference,w=t.rects.popper,E=new Map,M=!0,D=k[0],R=0;R=0,Q=z?"width":"height",X=uy(t,{placement:B,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Z=z?V?Js:wa:V?Ks:Ta;A[Q]>w[Q]&&(Z=OE(Z));var Y=OE(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,M=!1;break}E.set(B,q)}if(M)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 ppe={name:"flip",enabled:!0,phase:"main",fn:fpe,requiresIfExists:["offset"],data:{_skip:!1}};function wB(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 kB(e){return[Ta,Js,Ks,wa].some(function(t){return e[t]>=0})}function hpe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=uy(t,{elementContext:"reference"}),s=uy(t,{altBoundary:!0}),l=wB(a,r),u=wB(s,i,o),c=kB(l),d=kB(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 mpe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hpe};function gpe(e,t,n){var r=Tu(e),i=[wa,Ta].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,[wa,Js].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function bpe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=OQ.reduce(function(c,d){return c[d]=gpe(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 ype={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bpe};function Ope(e){var t=e.state,n=e.name;t.modifiersData[n]=xQ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const vpe={name:"popperOffsets",enabled:!0,phase:"read",fn:Ope,data:{}};function Epe(e){return e==="x"?"y":"x"}function Spe(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,v=uy(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Tu(t.placement),O=Fm(t.placement),S=!O,k=dD(b),A=Epe(k),w=t.modifiersData.popperOffsets,E=t.rects.reference,M=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"?Ta:wa,Q=k==="y"?Ks:Js,X=k==="y"?"height":"width",Z=w[k],Y=Z+v[z],q=Z-v[Q],j=h?-M[X]/2:0,le=O===Lm?E[X]:M[X],Ee=O===Lm?-M[X]:-E[X],G=t.elements.arrow,ue=h&&G?cD(G):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:SQ(),he=ge[z],Ne=ge[Q],Le=db(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&&C1(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=db(h?LS(Y,ze):Y,Z,h?Gf(q,$e):q);w[k]=He,U[k]=He-Z}if(s){var dt,Be=k==="x"?Ta:wa,re=k==="x"?Ks:Js,ee=w[A],J=A==="y"?"height":"width",_e=ee+v[Be],Pe=ee-v[re],Ie=[Ta,wa].indexOf(b)!==-1,ie=(dt=B==null?void 0:B[A])!=null?dt:0,de=Ie?_e:ee-E[J]-M[J]-ie+R.altAxis,ce=Ie?ee+E[J]+M[J]-ie-R.altAxis:Pe,Oe=h&&Ie?Qfe(de,ee,ce):db(h?de:_e,ee,h?ce:Pe);w[A]=Oe,U[A]=Oe-ee}t.modifiersData[r]=U}}const Tpe={name:"preventOverflow",enabled:!0,phase:"main",fn:Spe,requiresIfExists:["offset"]};function wpe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kpe(e){return e===cs(e)||!zs(e)?fD(e):wpe(e)}function xpe(e){var t=e.getBoundingClientRect(),n=Mm(t.width)/e.offsetWidth||1,r=Mm(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Cpe(e,t,n){n===void 0&&(n=!1);var r=zs(t),i=zs(t)&&xpe(t),o=Gd(t),a=$m(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Cu(t)!=="body"||hD(o))&&(s=kpe(t)),zs(t)?(l=$m(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=pD(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ape(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 _pe(e){var t=Ape(e);return Ufe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Rpe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ipe(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 xB={placement:"bottom",modifiers:[],strategy:"absolute"};function CB(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(Lpe(i)||document.body)},[i,o]),Zr(()=>{if(a&&!o)return sy(n,a),()=>{sy(n,null)}},[n,a,o]),o){if(N.isValidElement(r)){const u={ref:l};return N.cloneElement(r,u)}return $.jsx(N.Fragment,{children:r})}return $.jsx(N.Fragment,{children:a&&v1.createPortal(r,a)})}),AQ="Popper";function Mpe(e){return gQ(AQ,e)}Sfe(AQ,["root"]);const $pe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Fpe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Bpe(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 f_(e){return typeof e=="function"?e():e}function Upe(e){return e.nodeType!==void 0}const jpe=()=>Ct({root:["root"]},Lde(Mpe)),zpe={},Vpe=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,v=Ge(t,$pe),b=N.useRef(null),O=yn(b,n),S=N.useRef(null),k=yn(S,p),A=N.useRef(k);Zr(()=>{A.current=k},[k]),N.useImperativeHandle(p,()=>S.current,[]);const w=Bpe(c,a),[E,M]=N.useState(w),[D,R]=N.useState(f_(i));N.useEffect(()=>{S.current&&S.current.forceUpdate()}),N.useEffect(()=>{i&&R(f_(i))},[i]),Zr(()=>{if(!D||!u)return;const Q=Y=>{M(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=Ppe(D,b.current,L({placement:w},d,{modifiers:X}));return A.current(Z),()=>{Z.destroy(),A.current(null)}},[D,s,l,u,d,w]);const B={placement:E};y!==null&&(B.TransitionProps=y);const U=jpe(),V=(r=m.root)!=null?r:"div",z=kn({elementType:V,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:U.root});return $.jsx(V,L({},z,{children:typeof o=="function"?o(B):o}))}),Hpe=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=zpe,popperRef:h,style:m,transition:y=!1,slotProps:v={},slots:b={}}=t,O=Ge(t,Fpe),[S,k]=N.useState(!0),A=()=>{k(!1)},w=()=>{k(!0)};if(!l&&!c&&(!y||S))return null;let E;if(o)E=o;else if(r){const R=f_(r);E=R&&Upe(R)?Hr(R).body:Hr(null).body}const M=!c&&l&&(!y||S)?"none":void 0,D=y?{in:c,onEnter:A,onExited:w}:void 0;return $.jsx(CQ,{disablePortal:s,container:E,children:$.jsx(Vpe,L({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:y?!S:c,placement:d,popperOptions:p,popperRef:h,slotProps:v,slots:b},O,{style:L({position:"fixed",top:0,left:0,display:M},m),TransitionProps:D,children:i}))})});function Wpe(e){const t=Hr(e);return t.body===e?Xs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function AB(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 _B(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&&pb(a,i)})}function yC(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Ype(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Wpe(r)){const a=tQ(Hr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${AB(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=`${AB(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 Gpe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class qpe{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&&pb(t.modalRef,!1);const i=Gpe(n);_B(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=Ype(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&&pb(t.modalRef,n),_B(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&&pb(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Zpe(e){return typeof e=="function"?e():e}function Xpe(e){return e?e.props.hasOwnProperty("in"):!1}const Kpe=new qpe;function Jpe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=Kpe,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),[v,b]=N.useState(!c),O=Xpe(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>Hr(h.current),A=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{i.mount(A(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=jt(()=>{const X=Zpe(t)||k().body;i.add(A(),X),m.current&&w()}),M=N.useCallback(()=>i.isTopModal(A()),[i]),D=jt(X=>{h.current=X,X&&(c&&M()?w():m.current&&pb(m.current,S))}),R=N.useCallback(()=>{i.remove(A(),S)},[S,i]);N.useEffect(()=>()=>{R()},[R]),N.useEffect(()=>{c?E():(!O||!o)&&R()},[c,R,O,o,E]);const B=X=>Z=>{var Y;(Y=X.onKeyDown)==null||Y.call(X,Z),!(Z.key!=="Escape"||Z.which===229||!M())&&(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=cb(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:_S(X,l==null?void 0:l.props.onEnter),onExited:_S(Z,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:D,isTopModal:M,exited:v,hasTransition:O}}const ehe=2;function _Q(e,t){return e-t}function RB(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}%`})}},ohe=e=>e;let iv;function NB(){return iv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?iv=CSS.supports("touch-action","none"):iv=!0),iv}function ahe(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=ohe,step:y=1,tabIndex:v,value:b}=e,O=N.useRef(),[S,k]=N.useState(-1),[A,w]=N.useState(-1),[E,M]=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(_Q):[R];z=z.map(ie=>ie==null?l:oh(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}=Bw(),[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)};Zr(()=>{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=the(kt,l,s),y)Ke=rhe(Ke,y,l);else{const Ye=RB(X,Ke);Ke=X[Ye]}Ke=oh(Ke,l,s);let vt=0;if(V){de?vt=qe.current:vt=RB(z,Ke),i&&(Ke=oh(Ke,z[vt-1]||-1/0,z[vt+1]||1/0));const Ye=Ke;Ke=IB({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=tv(ie,O);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});nv({sliderRef:G,activeIndex:Oe,setActive:k}),B(ce),!E&&D.current>ehe&&M(!0),U&&!rv(ce,R)&&U(ie,ce,Oe)}),ye=jt(ie=>{const de=tv(ie,O);if(M(!1),!de)return;const{newValue:ce}=Me({finger:de,move:!0});k(-1),ie.type==="touchend"&&w(-1),d&&d(ie,ce),O.current=void 0,$e()}),ze=jt(ie=>{if(r)return;NB()||ie.preventDefault();const de=ie.changedTouches[0];de!=null&&(O.current=de.identifier);const ce=tv(ie,O);if(ce!==!1){const{newValue:Se,activeIndex:nt}=Me({finger:ce});nv({sliderRef:G,activeIndex:nt,setActive:k}),B(Se),U&&!rv(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:NB()}),()=>{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=tv(de,O);if(Oe!==!1){const{newValue:nt,activeIndex:pt}=Me({finger:Oe});nv({sliderRef:G,activeIndex:pt,setActive:k}),B(nt),U&&!rv(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=MS(V?z[0]:l,l,s),Be=MS(z[z.length-1],l,s)-dt,re=(ie={})=>{const de=cb(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:ihe,dragging:E,focusedThumbIndex:le,getHiddenInputProps:(ie={})=>{var de;const ce=cb(ie),Oe={onChange:Le(ce||{}),onFocus:he(ce||{}),onBlur:Ne(ce||{})},Se=L({},ce,Oe);return L({tabIndex:v,"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({},eue,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:re,getThumbProps:(ie={})=>{const de=cb(ie),ce={onMouseOver:ee(de||{}),onMouseLeave:J(de||{})};return L({},ie,de,ce)},marks:Q,open:A,range:V,rootRef:ge,trackLeap:Be,trackOffset:dt,values:z,getThumbStyle:ie=>({pointerEvents:S!==-1&&S!==ie?"none":void 0})}}const she=["onChange","maxRows","minRows","style","value"];function ov(e){return parseInt(e,10)||0}const lhe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function DB(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const RQ=N.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ge(t,she),{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}),v=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 M=w.boxSizing,D=ov(w.paddingBottom)+ov(w.paddingTop),R=ov(w.borderBottomWidth)+ov(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+(M==="border-box"?D+R:0),Q=Math.abs(V-B)<=1;return{outerHeightStyle:z,overflow:Q}},[i,o,t.placeholder]),b=(k,A)=>{const{outerHeightStyle:w,overflow:E}=A;return h.current<20&&(w>0&&Math.abs((k.outerHeightStyle||0)-w)>1||k.overflow!==E)?(h.current+=1,{overflow:E,outerHeightStyle:w}):k},O=N.useCallback(()=>{const k=v();DB(k)||y(A=>b(A,k))},[v]);Zr(()=>{const k=()=>{const B=v();DB(B)||v1.flushSync(()=>{y(U=>b(U,B))})},A=()=>{h.current=0,k()};let w;const E=sg(A),M=c.current,D=Xs(M);D.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(A),R.observe(M)),()=>{E.clear(),cancelAnimationFrame(w),D.removeEventListener("resize",E),R&&R.disconnect()}},[v]),Zr(()=>{O()}),N.useEffect(()=>{h.current=0},[s]);const S=k=>{h.current=0,u||O(),r&&r(k)};return $.jsxs(N.Fragment,{children:[$.jsx("textarea",L({value:s,onChange:S,ref:d,rows:o,style:L({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),$.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:L({},lhe.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function PB(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function uhe(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=PB(c));const d=c?s.filter(p=>{let h=(o||u)(p);return n&&(h=h.toLowerCase()),t&&(h=PB(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 fhe(e){const{unstable_isActiveElementInListbox:t=dhe,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:v=che,filterSelectedOptions:b=!1,freeSolo:O=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:A=Ue=>{var xe;return(xe=Ue.label)!=null?xe:Ue},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:M,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(M);let ge=A;ge=Ue=>{const xe=A(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=Xle({filteredOptions:Se,value:He,inputValue:Be});N.useEffect(()=>{const Ue=He!==nt.value;ee&&!Ue||O&&!Ue||_e(null,He)},[He,_e,ee,nt.value,O]);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=>{sy(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:-LB,direction:"previous",reason:"keyboard",event:xe}),rn(xe);break;case"PageDown":xe.preventDefault(),Ye({diff:LB,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 O&&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&&O&&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=O&&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 phe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hhe=ke(Hpe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mhe=N.forwardRef(function(t,n){var r;const i=Gw(),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:v,popperRef:b,transition:O,slots:S,slotProps:k}=o,A=Ge(o,phe),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:v,popperRef:b,transition:O},A);return $.jsx(hhe,L({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:k??u},E,{ref:n}))}),A1=mhe;function ghe(e){return At("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const bhe=["className","color","component","disableGutters","disableSticky","inset"],yhe=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,ghe,t)},Ohe=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})),IQ=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,bhe),d=L({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=yhe(d);return $.jsx(Ohe,L({as:a,className:et(p.root,i),ref:n,ownerState:d},c))});IQ.muiSkipListHighlight=!0;const vhe=IQ,Ehe=Ti($.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 She(e){return At("MuiChip",e)}const The=_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=The,whe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],khe=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,She,t)},xhe=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}}})),Che=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 MB(e){return e.key==="Backspace"||e.key==="Delete"}const Ahe=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:v,size:b="medium",variant:O="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,A=Ge(r,whe),w=N.useRef(null),E=yn(w,n),M=q=>{q.stopPropagation(),m&&m(q)},D=q=>{q.currentTarget===q.target&&MB(q)&&q.preventDefault(),y&&y(q)},R=q=>{q.currentTarget===q.target&&(m&&MB(q)?m(q):q.key==="Escape"&&w.current&&w.current.blur()),v&&v(q)},B=a!==!1&&h?!0:a,U=B||m?us: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:O}),z=khe(V),Q=U===us?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(Ehe,{className:et(z.deleteIcon),onClick:M}));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)})),$.jsxs(xhe,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,A,{children:[Z||Y,$.jsx(Che,{className:et(z.label),ownerState:V,children:p}),X]}))}),mD=Ahe;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 _he=N.createContext(void 0),tk=_he;function _u(){return N.useContext(tk)}function NQ(e){return $.jsx(Jue,L({},e,{defaultTheme:Xw,themeId:tp}))}function $B(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function $S(e,t=!1){return e&&($B(e.value)&&e.value!==""||t&&$B(e.defaultValue)&&e.defaultValue!=="")}function Rhe(e){return e.startAdornment}function Ihe(e){return At("MuiInputBase",e)}const Nhe=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ya=Nhe,Dhe=["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"],nk=(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]},rk=(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]},Phe=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,Ihe,t)},ik=ke("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nk})(({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",[`&.${Ya.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%"})),ok=ke("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rk})(({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] + .${Ya.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},[`&.${Ya.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"})}),Lhe=$.jsx(NQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Mhe=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:v,inputComponent:b="input",inputProps:O={},inputRef:S,maxRows:k,minRows:A,multiline:w=!1,name:E,onBlur:M,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,Dhe),ue=O.value!=null?O.value:Ee,{current:ge}=N.useRef(ue!=null),he=N.useRef(),Ne=N.useCallback(Oe=>{},[]),Le=yn(he,S,O.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),M&&M())},[Me,p,qe,M]);const ye=Me&&Me.onFilled,ze=Me&&Me.onEmpty,$e=N.useCallback(Oe=>{$S(Oe)?ye&&ye():ze&&ze()},[ye,ze]);Zr(()=>{ge&&$e({value:ue})},[ue,$e,ge]);const He=Oe=>{if(Qe.disabled){Oe.stopPropagation();return}B&&B(Oe),O.onFocus&&O.onFocus(Oe),Me&&Me.onFocus?Me.onFocus(Oe):rt(!0)},dt=Oe=>{M&&M(Oe),O.onBlur&&O.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})}O.onChange&&O.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=O;w&&ee==="input"&&(Z?J=L({type:void 0,minRows:Z,maxRows:Z},J):J=L({type:void 0,maxRows:k,minRows:A},J),ee=RQ);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=Phe(Pe),ie=q.root||u.Root||ik,de=Y.root||c.root||{},ce=q.input||u.Input||ok;return J=L({},J,(r=Y.input)!=null?r:c.input),$.jsxs(N.Fragment,{children:[!h&&Lhe,$.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,$.jsx(tk.Provider,{value:null,children:$.jsx(ce,L({ownerState:Pe,"aria-invalid":Qe.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Qe.disabled,id:v,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]}))]})}),gD=Mhe;function $he(e){return At("MuiInput",e)}const Fhe=L({},Ya,_t("MuiInput",["root","underline","input"])),Zc=Fhe;function Bhe(e){return At("MuiOutlinedInput",e)}const Uhe=L({},Ya,_t("MuiOutlinedInput",["root","notchedOutline","input"])),eu=Uhe;function jhe(e){return At("MuiFilledInput",e)}const zhe=L({},Ya,_t("MuiFilledInput",["root","underline","input"])),Ga=zhe,DQ=Ti($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Vhe(e){return At("MuiAutocomplete",e)}const Hhe=_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=Hhe;var FB,BB;const Whe=["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"],Yhe=["key"],Ghe=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,Vhe,t)},qhe=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}},[`& .${Zc.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Zc.root}.${Ya.sizeSmall}`]:{[`& .${Zc.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}.${Ya.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ga.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${Ga.input}`]:{padding:"7px 4px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${Ga.root}.${Ya.sizeSmall}`]:{paddingBottom:1,[`& .${Ga.input}`]:{padding:"2.5px 4px"}},[`& .${Ya.hiddenLabel}`]:{paddingTop:8},[`& .${Ga.root}.${Ya.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ga.root}.${Ya.hiddenLabel}.${Ya.sizeSmall}`]:{[`& .${Fn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fn.input}`]:L({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Zhe=ke("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Xhe=ke(bs,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Khe=ke(bs,{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)"})),Jhe=ke(A1,{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"})),eme=ke(gs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>L({},e.typography.body1,{overflow:"auto"})),tme=ke("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),nme=ke("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),rme=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)}}}})),ime=ke(vhe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),ome=ke("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fn.option}`]:{paddingLeft:24}}),ame=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=FB||(FB=$.jsx(afe,{fontSize:"small"})),clearOnBlur:y=!s.freeSolo,clearOnEscape:v=!1,clearText:b="Clear",closeText:O="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:A=!1,disableCloseOnSelect:w=!1,disabled:E=!1,disabledItemsFocusable:M=!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=gs,PopperComponent:rt=A1,popupIcon:Me=BB||(BB=$.jsx(DQ,{})),readOnly:Qe=!1,renderGroup:ye,renderInput:ze,renderOption:$e,renderTags:He,selectOnFocus:dt=!s.freeSolo,size:Be="medium",slotProps:re={}}=s,ee=Ge(s,Whe),{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}=fhe(L({},s,{componentName:"Autocomplete"})),cn=!A&&!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=Ghe(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)=>$.jsx(mD,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($.jsx("span",{className:xt.tag,children:Q(xe)},qt.length)))}const Te=ye||(xe=>$.jsxs("li",{children:[$.jsx(ime,{className:xt.groupLabel,ownerState:It,component:"div",children:xe.group}),$.jsx(ome,{className:xt.groupUl,ownerState:It,children:xe.children})]},xe.key)),ot=$e||((xe,mt)=>{const{key:Nt}=xe,en=Ge(xe,Yhe);return $.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 $.jsxs(N.Fragment,{children:[$.jsx(qhe,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:$.jsxs(Zhe,{className:xt.endAdornment,ownerState:It,children:[cn?$.jsx(Xhe,L({},ie(),{"aria-label":b,title:b,ownerState:It},Wt,{className:et(xt.clearIndicator,Wt==null?void 0:Wt.className),children:m})):null,fn?$.jsx(Khe,L({},Ie(),{disabled:E,"aria-label":Ke?O:Le,title:Ke?O: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?$.jsx(Jhe,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:$.jsxs(eme,L({ownerState:It,as:qe},hn,{className:et(xt.paper,hn==null?void 0:hn.className),children:[G&&rn.length===0?$.jsx(tme,{className:xt.loading,ownerState:It,children:ue}):null,rn.length===0&&!V&&!G?$.jsx(nme,{className:xt.noOptions,ownerState:It,role:"presentation",onMouseDown:xe=>{xe.preventDefault()},children:he}):null,rn.length>0?$.jsx(rme,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]})}),sme=ame,lme=Ti($.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 ume(e){return At("MuiAvatar",e)}_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const cme=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],dme=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ct({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ume,t)},fme=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]}))),pme=ke("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),hme=ke(lme,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function mme({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 gme=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,cme);let m=null;const y=mme(L({},l,{src:c,srcSet:d})),v=c||d,b=v&&y!=="error",O=L({},r,{colorDefault:!b,component:s,variant:p}),S=dme(O);return b?m=$.jsx(pme,L({alt:i,srcSet:d,src:c,sizes:u,ownerState:O,className:S.img},l)):o!=null?m=o:v&&i?m=i[0]:m=$.jsx(hme,{ownerState:O,className:S.fallback}),$.jsx(fme,L({as:s,ownerState:O,className:et(S.root,a),ref:n},h,{children:m}))}),bme=gme,yme=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ome={entering:{opacity:1},entered:{opacity:1}},vme=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:v,timeout:b=i,TransitionComponent:O=Kw}=t,S=Ge(t,yme),k=N.useRef(null),A=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),M=w((z,Q)=>{sD(z);const X=Pm({style:v,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=Pm({style:v,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 $.jsx(O,L({appear:a,in:u,nodeRef:k,onEnter:M,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},Ome[z],v,s.props.style),ref:A},Q))}))}),ug=vme;function Eme(e){return At("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const Sme=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Tme=e=>{const{classes:t,invisible:n}=e;return Ct({root:["root",n&&"invisible"]},Eme,t)},wme=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"})),kme=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:v=ug,transitionDuration:b}=a,O=Ge(a,Sme),S=L({},a,{component:u,invisible:p}),k=Tme(S),A=(r=m.root)!=null?r:d.root;return $.jsx(v,L({in:h,timeout:b},O,{children:$.jsx(wme,L({"aria-hidden":!0},A,{as:(i=(o=y.root)!=null?o:c.Root)!=null?i:u,className:et(k.root,l,A==null?void 0:A.className),ownerState:L({},S,A==null?void 0:A.ownerState),classes:k,ref:n,children:s}))}))}),bD=kme,xme=_t("MuiBox",["root"]),Cme=xme,Ame=eD(),_me=rce({themeId:tp,defaultTheme:Ame,defaultClassName:Cme.root,generateClassName:HN.generate}),Vs=_me;function Rme(e){return At("MuiButton",e)}const Ime=_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"]),av=Ime,Nme=N.createContext({}),Dme=Nme,Pme=N.createContext(void 0),Lme=Pme,Mme=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$me=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,Rme,a);return L({},a,l)},PQ=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}}),Fme=ke(us,{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]}),[`&.${av.focusVisible}`]:L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${av.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"},[`&.${av.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${av.disabled}`]:{boxShadow:"none"}}),Bme=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},PQ(e))),Ume=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},PQ(e))),jme=N.forwardRef(function(t,n){const r=N.useContext(Dme),i=N.useContext(Lme),o=Uw(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:v=!1,size:b="medium",startIcon:O,type:S,variant:k="text"}=a,A=Ge(a,Mme),w=L({},a,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:v,size:b,type:S,variant:k}),E=$me(w),M=O&&$.jsx(Bme,{className:E.startIcon,ownerState:w,children:O}),D=m&&$.jsx(Ume,{className:E.endIcon,ownerState:w,children:m}),R=i||"";return $.jsxs(Fme,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},A,{classes:E,children:[M,s,D]}))}),Af=jme;function zme(e){return At("MuiCard",e)}_t("MuiCard",["root"]);const Vme=["className","raised"],Hme=e=>{const{classes:t}=e;return Ct({root:["root"]},zme,t)},Wme=ke(gs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Qme=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ge(r,Vme),s=L({},r,{raised:o}),l=Hme(s);return $.jsx(Wme,L({className:et(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),Yme=Qme;function Gme(e){return At("MuiCardActionArea",e)}const qme=_t("MuiCardActionArea",["root","focusVisible","focusHighlight"]),vC=qme,Zme=["children","className","focusVisibleClassName"],Xme=e=>{const{classes:t}=e;return Ct({root:["root"],focusHighlight:["focusHighlight"]},Gme,t)},Kme=ke(us,{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}})),Jme=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})})),ege=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ge(r,Zme),l=r,u=Xme(l);return $.jsxs(Kme,L({className:et(u.root,o),focusVisibleClassName:et(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,$.jsx(Jme,{className:u.focusHighlight,ownerState:l})]}))}),tge=ege;function nge(e){return At("MuiCardContent",e)}_t("MuiCardContent",["root"]);const rge=["className","component"],ige=e=>{const{classes:t}=e;return Ct({root:["root"]},nge,t)},oge=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),age=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ge(r,rge),s=L({},r,{component:o}),l=ige(s);return $.jsx(oge,L({as:o,className:et(l.root,i),ownerState:s,ref:n},a))}),sge=age;function lge(e){return At("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const uge=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],cge=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,lge,t)},dge=ke(us)(({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})),fge=ke("input",{shouldForwardProp:Xi})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),pge=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:v,onChange:b,onFocus:O,readOnly:S,required:k=!1,tabIndex:A,type:w,value:E}=t,M=Ge(t,uge),[D,R]=qi({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),B=_u(),U=q=>{O&&O(q),B&&B.onFocus&&B.onFocus(q)},V=q=>{v&&v(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=cge(Z);return $.jsxs(dge,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},M,{children:[$.jsx(fge,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:A,type:w},w==="checkbox"&&E===void 0?{}:{value:E},h)),D?o:d]}))}),yD=pge,hge=Ti($.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"),mge=Ti($.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"),gge=Ti($.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 bge(e){return At("MuiCheckbox",e)}const yge=_t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),EC=yge,Oge=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],vge=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,bge,t);return L({},t,a)},Ege=ke(yD,{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}})),Sge=$.jsx(mge,{}),Tge=$.jsx(hge,{}),wge=$.jsx(gge,{}),kge=N.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=Sge,color:s="primary",icon:l=Tge,indeterminate:u=!1,indeterminateIcon:c=wge,inputProps:d,size:p="medium",className:h}=o,m=Ge(o,Oge),y=u?c:l,v=u?c:a,b=L({},o,{color:s,indeterminate:u,size:p}),O=vge(b);return $.jsx(Ege,L({type:"checkbox",inputProps:L({"data-indeterminate":u},d),icon:N.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:N.cloneElement(v,{fontSize:(i=v.props.fontSize)!=null?i:p}),ownerState:b,ref:n,className:et(O.root,h)},m,{classes:O}))}),ak=kge;function xge(e){return At("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Cge=["className","color","disableShrink","size","style","thickness","value","variant"];let sk=e=>e,UB,jB,zB,VB;const Lc=44,Age=S1(UB||(UB=sk` 0% { transform: rotate(0deg); } @@ -134,7 +134,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),Oge=v1(UB||(UB=sk` +`)),_ge=S1(jB||(jB=sk` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -149,11 +149,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),vge=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,gge,t)},Ege=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"&&jN(jB||(jB=sk` +`)),Rge=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,xge,t)},Ige=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"&&jN(zB||(zB=sk` animation: ${0} 1.4s linear infinite; - `),yge)),Sge=ke("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Tge=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&&jN(zB||(zB=sk` + `),Age)),Nge=ke("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Dge=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&&jN(VB||(VB=sk` animation: ${0} 1.4s ease-in-out infinite; - `),Oge)),wge=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,bge),h=L({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),m=vge(h),y={},O={},b={};if(d==="determinate"){const v=2*Math.PI*((Lc-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 $.jsx(Ege,L({className:et(m.root,i),style:L({width:s,height:s},O,l),ownerState:h,ref:n,role:"progressbar"},b,p,{children:$.jsx(Sge,{className:m.svg,ownerState:h,viewBox:`${Lc/2} ${Lc/2} ${Lc} ${Lc}`,children:$.jsx(Tge,{className:m.circle,style:y,ownerState:h,cx:Lc,cy:Lc,r:(Lc-u)/2,fill:"none",strokeWidth:u})})}))}),C1=wge,kge=Ece({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"})}),xge=kge,Cge=(e,t)=>L({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Age=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}}),_ge=(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:Cge(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:L({margin:0},Age(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 Rge(e){const t=gt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return $.jsxs(N.Fragment,{children:[$.jsx(xQ,{styles:i=>_ge(i,r)}),n]})}function Ige(e){return At("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const Nge=["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"],Dge=e=>{const{open:t,exited:n,classes:r}=e;return Ct({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ige,r)},Pge=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"})),Lge=ke(bD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Mge=N.forwardRef(function(t,n){var r,i,o,a,s,l;const u=gt({name:"MuiModal",props:t}),{BackdropComponent:c=Lge,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:y,component:O,components:b={},componentsProps:v={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:A=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:M=!1,hideBackdrop:D=!1,keepMounted:R=!1,onBackdropClick:B,open:U,slotProps:V,slots:z}=u,Q=Ge(u,Nge),X=L({},u,{closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:A,disablePortal:w,disableRestoreFocus:E,disableScrollLock:M,hideBackdrop:D,keepMounted:R}),{getRootProps:Z,getBackdropProps:Y,getTransitionProps:q,portalRef:j,isTopModal:le,exited:Ee,hasTransition:G}=Vpe(L({},X,{rootRef:n})),ue=L({},X,{exited:Ee}),ge=Dge(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:Pge,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))}),We=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:$.jsx(SQ,{ref:j,container:y,disablePortal:w,children:$.jsxs(Ne,L({},Me,{children:[!D&&c?$.jsx(Le,L({},We)):null,$.jsx(fQ,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:le,open:U,children:N.cloneElement(m,he)})]}))})}),lk=Mge;function $ge(e){return At("MuiDialog",e)}const fb=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Fge=N.createContext({}),Bge=Fge,Uge=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],jge=ke(bD,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),zge=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,$ge,t)},Vge=ke(lk,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Hge=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"}})),Wge=ke(gs,{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)`,[`&.${fb.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}`,[`&.${fb.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,[`&.${fb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Qge=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=gs,PaperProps:k={},scroll:A="paper",TransitionComponent:w=lg,transitionDuration:E=o,TransitionProps:M}=r,D=Ge(r,Uge),R=L({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:y,scroll:A}),B=zge(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 $.jsx(Vge,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:$.jsx(w,L({appear:!0,in:v,timeout:E,role:"presentation"},M,{children:$.jsx(Hge,{className:et(B.container),onMouseDown:V,ownerState:R,children:$.jsx(Wge,L({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Q},k,{className:et(B.paper,k.className),ownerState:R,children:$.jsx(Bge.Provider,{value:X,children:c})}))})}))}))}),Yge=Qge;function Gge(e){return At("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const qge=["className","disableSpacing"],Zge=e=>{const{classes:t,disableSpacing:n}=e;return Ct({root:["root",!n&&"spacing"]},Gge,t)},Xge=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}})),Kge=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Ge(r,qge),s=L({},r,{disableSpacing:o}),l=Zge(s);return $.jsx(Xge,L({className:et(l.root,i),ownerState:s,ref:n},a))}),Jge=Kge;function e0e(e){return At("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);const t0e=_t("MuiDialogTitle",["root"]),n0e=t0e,r0e=["className","dividers"],i0e=e=>{const{classes:t,dividers:n}=e;return Ct({root:["root",n&&"dividers"]},e0e,t)},o0e=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}`}:{[`.${n0e.root} + &`]:{paddingTop:0}})),a0e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Ge(r,r0e),s=L({},r,{dividers:o}),l=i0e(s);return $.jsx(o0e,L({className:et(l.root,i),ownerState:s,ref:n},a))}),s0e=a0e;function l0e(e){return At("MuiDivider",e)}const u0e=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),VB=u0e,c0e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],d0e=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"]},l0e,r)},f0e=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%"}})),p0e=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)`})),_Q=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,c0e),y=L({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:h}),O=d0e(y);return $.jsx(f0e,L({as:s,className:et(O.root,a),role:d,ref:n,ownerState:y},m,{children:o?$.jsx(p0e,{className:O.wrapper,ownerState:y,children:o}):null}))});_Q.muiSkipListHighlight=!0;const Td=_Q,h0e=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function m0e(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 g0e(e){return typeof e=="function"?e():e}function sv(e,t,n){const r=g0e(n),i=m0e(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const b0e=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:A=Kw}=t,w=Ge(t,h0e),E=N.useRef(null),M=yn(l.ref,E,n),D=Y=>q=>{Y&&(q===void 0?Y(E.current):Y(E.current,q))},R=D((Y,q)=>{sv(c,Y,u),sD(Y),h&&h(Y,q)}),B=D((Y,q)=>{const j=Dm({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=Dm({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),sv(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&&sv(c,E.current,u)},[c,u]);return N.useEffect(()=>{if(p||c==="down"||c==="right")return;const Y=ag(()=>{E.current&&sv(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]),$.jsx(A,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:M,style:L({visibility:Y==="exited"&&!p?"hidden":void 0},S,l.props.style)},q))}))}),y0e=b0e;function O0e(e){return At("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const v0e=["BackdropProps"],E0e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],RQ=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},S0e=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,O0e,t)},T0e=ke(lk,{name:"MuiDrawer",slot:"Root",overridesResolver:RQ})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),HB=ke("div",{shouldForwardProp:Xi,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:RQ})({flex:"0 0 auto"}),w0e=ke(gs,{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}`})),IQ={left:"right",right:"left",top:"down",bottom:"up"};function k0e(e){return["left","right"].indexOf(e)!==-1}function x0e(e,t){return e.direction==="rtl"&&k0e(t)?IQ[t]:t}const C0e=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=y0e,transitionDuration:v=o,variant:S="temporary"}=r,k=Ge(r.ModalProps,v0e),A=Ge(r,E0e),w=N.useRef(!1);N.useEffect(()=>{w.current=!0},[]);const E=x0e(i,a),D=L({},r,{anchor:a,elevation:c,open:m,variant:S},A),R=S0e(D),B=$.jsx(w0e,L({elevation:S==="temporary"?c:0,square:!0},y,{className:et(R.paper,y.className),ownerState:D,children:l}));if(S==="permanent")return $.jsx(HB,L({className:et(R.root,R.docked,u),ownerState:D,ref:n},A,{children:B}));const U=$.jsx(b,L({in:m,direction:IQ[E],timeout:v,appear:w.current},O,{children:B}));return S==="persistent"?$.jsx(HB,L({className:et(R.root,R.docked,u),ownerState:D,ref:n},A,{children:U})):$.jsx(T0e,L({BackdropProps:L({},s,p,{transitionDuration:v}),className:et(R.root,R.modal,u),open:m,ownerState:D,onClose:h,hideBackdrop:d,ref:n},A,k,{children:U}))}),A0e=C0e,_0e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],R0e=e=>{const{classes:t,disableUnderline:n}=e,i=Ct({root:["root",!n&&"underline"],input:["input"]},Ihe,t);return L({},t,i)},I0e=ke(ik,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nk(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}},[`&.${Ga.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ga.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"},[`&.${Ga.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ga.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(.${Ga.disabled}, .${Ga.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ga.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}))}),N0e=ke(ok,{name:"MuiFilledInput",slot:"Input",overridesResolver:rk})(({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})),NQ=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,_0e),b=L({},s,{fullWidth:c,inputComponent:d,multiline:p,type:y}),v=R0e(s),S={root:{ownerState:b},input:{ownerState:b}},k=h??u?Io(S,h??u):S,A=(r=(i=m.root)!=null?i:l.Root)!=null?r:I0e,w=(o=(a=m.input)!=null?a:l.Input)!=null?o:N0e;return $.jsx(gD,L({slots:{root:A,input:w},componentsProps:k,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:y},O,{classes:v}))});NQ.muiName="Input";const DQ=NQ;function D0e(e){return At("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const P0e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],L0e=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${tt(n)}`,r&&"fullWidth"]};return Ct(i,D0e,t)},M0e=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%"})),$0e=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,P0e),v=L({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:y,variant:O}),S=L0e(v),[k,A]=N.useState(()=>{let V=!1;return i&&N.Children.forEach(i,z=>{if(!ob(z,["Input","Select"]))return;const Q=ob(z,["Select"])?z.props.input:z;Q&&vhe(Q.props)&&(V=!0)}),V}),[w,E]=N.useState(()=>{let V=!1;return i&&N.Children.forEach(i,z=>{ob(z,["Input","Select"])&&(FS(z.props,!0)||FS(z.props.inputProps,!0))&&(V=!0)}),V}),[M,D]=N.useState(!1);l&&M&&D(!1);const R=c!==void 0&&!l?c:M;let B;const U=N.useMemo(()=>({adornedStart:k,setAdornedStart:A,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 $.jsx(tk.Provider,{value:U,children:$.jsx(M0e,L({as:s,ownerState:v,className:et(S.root,o),ref:n},b,{children:i}))})}),Op=$0e,F0e=_ce({createStyledComponent:ke("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>gt({props:e,name:"MuiStack"})}),Fs=F0e;function B0e(e){return At("MuiFormControlLabel",e)}const U0e=_t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),B0=U0e,j0e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],z0e=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,B0e,t)},V0e=ke("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${B0.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,[`&.${B0.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},{[`& .${B0.label}`]:{[`&.${B0.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),H0e=ke("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${B0.error}`]:{color:(e.vars||e).palette.error.main}})),W0e=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"]}),A=L({},o,{disabled:b,labelPlacement:p,required:v,error:k.error}),w=z0e(A),E=(i=m.typography)!=null?i:s.typography;let M=d;return M!=null&&M.type!==mi&&!c&&(M=$.jsx(mi,L({component:"span"},E,{className:et(w.label,E==null?void 0:E.className),children:M}))),$.jsxs(V0e,L({className:et(w.root,a),ownerState:A,ref:n},y,{children:[N.cloneElement(l,S),v?$.jsxs(Fs,{display:"block",children:[M,$.jsxs(H0e,{ownerState:A,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):M]}))}),ly=W0e;function Q0e(e){return At("MuiFormGroup",e)}_t("MuiFormGroup",["root","row","error"]);const Y0e=["className","row"],G0e=e=>{const{classes:t,row:n,error:r}=e;return Ct({root:["root",n&&"row",r&&"error"]},Q0e,t)},q0e=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"})),Z0e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=Ge(r,Y0e),s=_u(),l=qd({props:r,muiFormControl:s,states:["error"]}),u=L({},r,{row:o,error:l.error}),c=G0e(u);return $.jsx(q0e,L({className:et(c.root,i),ownerState:u,ref:n},a))}),OD=Z0e;function X0e(e){return At("MuiFormHelperText",e)}const K0e=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),WB=K0e;var QB;const J0e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],ebe=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,X0e,t)},tbe=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,[`&.${WB.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${WB.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),nbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Ge(r,J0e),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=ebe(c);return $.jsx(tbe,L({as:a,ownerState:c,className:et(d.root,o),ref:n},s,{children:i===" "?QB||(QB=$.jsx("span",{className:"notranslate",children:"​"})):i}))}),ug=nbe;function rbe(e){return At("MuiFormLabel",e)}const pb=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ibe=["children","className","color","component","disabled","error","filled","focused","required"],obe=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,rbe,t)},abe=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",[`&.${pb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pb.error}`]:{color:(e.vars||e).palette.error.main}})),sbe=ke("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pb.error}`]:{color:(e.vars||e).palette.error.main}})),lbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Ge(r,ibe),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=obe(c);return $.jsxs(abe,L({as:a,ownerState:c,className:et(d.root,o),ref:n},s,{children:[i,u.required&&$.jsxs(sbe,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),uk=lbe,ube=N.createContext(),YB=ube;function cbe(e){return At("MuiGrid",e)}const dbe=[0,1,2,3,4,5,6,7,8,9,10],fbe=["column-reverse","column","row-reverse","row"],pbe=["nowrap","wrap-reverse","wrap"],t0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],uy=_t("MuiGrid",["root","container","item","zeroMinWidth",...dbe.map(e=>`spacing-xs-${e}`),...fbe.map(e=>`direction-xs-${e}`),...pbe.map(e=>`wrap-xs-${e}`),...t0.map(e=>`grid-xs-${e}`),...t0.map(e=>`grid-sm-${e}`),...t0.map(e=>`grid-md-${e}`),...t0.map(e=>`grid-lg-${e}`),...t0.map(e=>`grid-xl-${e}`)]),hbe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Yh(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function mbe({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} + ${Yh(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 gbe({theme:e,ownerState:t}){const n=Yf({values:t.direction,breakpoints:e.breakpoints.values});return xa({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${uy.item}`]={maxWidth:"none"}),i})}function PQ({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 bbe({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=PQ({breakpoints:e.breakpoints.values,values:o})),i=xa({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${Yh(c)}`,[`& > .${uy.item}`]:{paddingTop:Yh(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${uy.item}`]:{paddingTop:0}}})}return i}function ybe({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=PQ({breakpoints:e.breakpoints.values,values:o})),i=xa({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${Yh(c)})`,marginLeft:`-${Yh(c)}`,[`& > .${uy.item}`]:{paddingLeft:Yh(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${uy.item}`]:{paddingLeft:0}}})}return i}function Obe(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 vbe=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=Obe(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}),gbe,bbe,ybe,mbe);function Ebe(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 Sbe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=Ebe(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,cbe,t)},Tbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiGrid"}),{breakpoints:i}=bi(),o=qw(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,hbe),v=h||m,S=l||m,k=N.useContext(YB),A=c?s||12:k,w={},E=L({},b);i.keys.forEach(R=>{b[R]!=null&&(w[R]=b[R],delete E[R])});const M=L({},o,{columns:A,container:c,direction:d,item:p,rowSpacing:v,columnSpacing:S,wrap:y,zeroMinWidth:O,spacing:m},w,{breakpoints:i.keys}),D=Sbe(M);return $.jsx(YB.Provider,{value:A,children:$.jsx(vbe,L({ownerState:M,className:et(D.root,a),as:u,ref:n},E))})}),Ah=Tbe,wbe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function f_(e){return`scale(${e}, ${e**2})`}const kbe={entering:{opacity:1,transform:f_(1)},entered:{opacity:1,transform:"none"}},EC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),LQ=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=Kw}=t,b=Ge(t,wbe),v=N.useRef(),S=N.useRef(),k=bi(),A=N.useRef(null),w=yn(A,o.ref,n),E=Q=>X=>{if(Q){const Z=A.current;X===void 0?Q(Z):Q(Z,X)}},M=E(c),D=E((Q,X)=>{sD(Q);const{duration:Z,delay:Y,easing:q}=Dm({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:EC?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}=Dm({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:EC?q:q*.666,delay:EC?Z:Z||q*.333,easing:Y})].join(","),Q.style.opacity=0,Q.style.transform=f_(.75),d&&d(Q)}),V=E(p),z=Q=>{y==="auto"&&(v.current=setTimeout(Q,S.current||0)),r&&r(A.current,Q)};return N.useEffect(()=>()=>{clearTimeout(v.current)},[]),$.jsx(O,L({appear:i,in:s,nodeRef:A,onEnter:D,onEntered:R,onEntering:M,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:f_(.75),visibility:Q==="exited"&&!s?"hidden":void 0},kbe[Q],m,o.props.style),ref:w},X))}))});LQ.muiSupportAuto=!0;const BS=LQ;function xbe(e,t,n,r,i){const[o,a]=N.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Zr(()=>{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 MQ=N.useSyncExternalStore;function Cbe(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 MQ(l,s,a)}function cg(e,t={}){const n=Gw(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=lQ({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(MQ!==void 0?Cbe:xbe)(l,i,o,a,s)}const Abe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],_be=e=>{const{classes:t,disableUnderline:n}=e,i=Ct({root:["root",!n&&"underline"],input:["input"]},Che,t);return L({},t,i)},Rbe=ke(ik,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nk(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"},[`&.${Zc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zc.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(.${Zc.disabled}, .${Zc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Zc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Ibe=ke(ok,{name:"MuiInput",slot:"Input",overridesResolver:rk})({}),$Q=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,Abe),v=_be(s),k={root:{ownerState:{disableUnderline:l}}},A=m??c?Io(m??c,k):k,w=(r=(i=y.root)!=null?i:u.Root)!=null?r:Rbe,E=(o=(a=y.input)!=null?a:u.Input)!=null?o:Ibe;return $.jsx(gD,L({slots:{root:w,input:E},slotProps:A,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:O},b,{classes:v}))});$Q.muiName="Input";const FQ=$Q;function Nbe(e){return At("MuiInputAdornment",e)}const Dbe=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),GB=Dbe;var qB;const Pbe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Lbe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${tt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Mbe=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,Nbe,t)},$be=ke("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Lbe})(({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"&&{[`&.${GB.positionStart}&:not(.${GB.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Fbe=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,Pbe),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=Mbe(m);return $.jsx(tk.Provider,{value:null,children:$.jsx($be,L({as:a,ownerState:m,className:et(y.root,o),ref:n},d,{children:typeof i=="string"&&!l?$.jsx(mi,{color:"text.secondary",children:i}):$.jsxs(N.Fragment,{children:[u==="start"?qB||(qB=$.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),vD=Fbe;function Bbe(e){return At("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Ube=["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,Bbe,t);return L({},t,u)},zbe=ke(uk,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pb.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)"}))),Vbe=N.forwardRef(function(t,n){const r=gt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Ge(r,Ube),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 $.jsx(zbe,L({"data-shrink":u,ownerState:d,ref:n,className:et(p.root,a)},s,{classes:p}))}),BQ=Vbe,Hbe=N.createContext({}),Hs=Hbe;function Wbe(e){return At("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const Qbe=["children","className","component","dense","disablePadding","subheader"],Ybe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ct({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Wbe,t)},Gbe=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})),qbe=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,Qbe),d=N.useMemo(()=>({dense:s}),[s]),p=L({},r,{component:a,dense:s,disablePadding:l}),h=Ybe(p);return $.jsx(Hs.Provider,{value:d,children:$.jsxs(Gbe,L({as:a,className:et(h.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),UQ=qbe;function Zbe(e){return At("MuiListItem",e)}const Xbe=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ah=Xbe;function Kbe(e){return At("MuiListItemButton",e)}const Jbe=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),sh=Jbe,eye=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],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]},nye=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"]},Kbe,n);return L({},n,u)},rye=ke(us,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:tye})(({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"}},[`&.${sh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sh.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)}},[`&.${sh.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)}},[`&.${sh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sh.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})),iye=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,eye),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);Zr(()=>{o&&b.current&&b.current.focus()},[o]);const v=L({},r,{alignItems:i,dense:O.dense,disableGutters:u,divider:c,selected:p}),S=nye(v),k=yn(b,n);return $.jsx(Hs.Provider,{value:O,children:$.jsx(rye,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}))})}),ZB=iye;function oye(e){return At("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const aye=["className"],sye=e=>{const{disableGutters:t,classes:n}=e;return Ct({root:["root",t&&"disableGutters"]},oye,n)},lye=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,aye),a=N.useContext(Hs),s=L({},r,{disableGutters:a.disableGutters}),l=sye(s);return $.jsx(lye,L({className:et(l.root,i),ownerState:s,ref:n},o))});jQ.muiName="ListItemSecondaryAction";const US=jQ,uye=["className"],cye=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],dye=(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]},fye=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"]},Zbe,r)},pye=ke("div",{name:"MuiListItem",slot:"Root",overridesResolver:dye})(({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&&{[`& > .${sh.root}`]:{paddingRight:48}},{[`&.${ah.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ah.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ah.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)}},[`&.${ah.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"}},[`&.${ah.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})),hye=ke("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),mye=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:A=!1,slotProps:w={},slots:E={}}=r,M=Ge(r.ContainerProps,uye),D=Ge(r,cye),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);Zr(()=>{o&&U.current&&U.current.focus()},[o]);const V=N.Children.toArray(s),z=V.length&&ob(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:A}),X=fye(Q),Z=yn(U,n),Y=E.root||c.Root||pye,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(ah.focusVisible,S),le=us),z?(le=!j.component&&!u?"div":le,p==="li"&&(le==="li"?le="div":j.component==="li"&&(j.component="div")),$.jsx(Hs.Provider,{value:B,children:$.jsxs(hye,L({as:p,className:et(X.container,h),ref:Z,ownerState:Q},M,{children:[$.jsx(Y,L({},q,!Su(Y)&&{as:le,ownerState:L({},Q,q.ownerState)},j,{children:V})),V.pop()]}))})):$.jsx(Hs.Provider,{value:B,children:$.jsxs(Y,L({},q,{as:le,ref:Z},!Su(Y)&&{ownerState:L({},Q,q.ownerState)},j,{children:[V,k&&$.jsx(US,{children:k})]}))})}),vE=mye;function gye(e){return At("MuiListItemAvatar",e)}_t("MuiListItemAvatar",["root","alignItemsFlexStart"]);const bye=["className"],yye=e=>{const{alignItems:t,classes:n}=e;return Ct({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},gye,n)},Oye=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})),vye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ge(r,bye),a=N.useContext(Hs),s=L({},r,{alignItems:a.alignItems}),l=yye(s);return $.jsx(Oye,L({className:et(l.root,i),ownerState:s,ref:n},o))}),Eye=vye;function Sye(e){return At("MuiListItemIcon",e)}const Tye=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),XB=Tye,wye=["className"],kye=e=>{const{alignItems:t,classes:n}=e;return Ct({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Sye,n)},xye=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})),Cye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ge(r,wye),a=N.useContext(Hs),s=L({},r,{alignItems:a.alignItems}),l=kye(s);return $.jsx(xye,L({className:et(l.root,i),ownerState:s,ref:n},o))}),zQ=Cye;function Aye(e){return At("MuiListItemText",e)}const _ye=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jS=_ye,Rye=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Iye=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"]},Aye,t)},Nye=ke("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jS.primary}`]:t.primary},{[`& .${jS.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})),Dye=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,Rye),{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=Iye(O);return m!=null&&m.type!==mi&&!a&&(m=$.jsx(mi,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!==mi&&!a&&(y=$.jsx(mi,L({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:y}))),$.jsxs(Nye,L({className:et(b.root,o),ownerState:O,ref:n},p,{children:[m,y]}))}),Fm=Dye,Pye=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function SC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function KB(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function VQ(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 n0(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")||!VQ(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const Lye=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,Pye),h=N.useRef(null),m=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zr(()=>{i&&h.current.focus()},[i]),N.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const A=!h.current.style.width;if(S.clientHeight{const k=h.current,A=S.key,w=Hr(k).activeElement;if(A==="ArrowDown")S.preventDefault(),n0(k,w,u,l,SC);else if(A==="ArrowUp")S.preventDefault(),n0(k,w,u,l,KB);else if(A==="Home")S.preventDefault(),n0(k,null,u,l,SC);else if(A==="End")S.preventDefault(),n0(k,null,u,l,KB);else if(A.length===1){const E=m.current,M=A.toLowerCase(),D=performance.now();E.keys.length>0&&(D-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&M!==E.keys[0]&&(E.repeating=!1)),E.lastTime=D,E.keys.push(M);const R=w&&!E.repeating&&VQ(w,E);E.previousKeyMatched&&(R||n0(k,w,!1,l,SC,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 A={};return o&&(A.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(A.tabIndex=0),N.cloneElement(S,A)}return S});return $.jsx(UQ,L({role:"menu",ref:O,className:s,onKeyDown:y,tabIndex:i?0:-1},p,{children:v}))}),A1=Lye;function Mye(e){return At("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const $ye=["onEntering"],Fye=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Bye=["slotProps"];function JB(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function e8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function t8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function TC(e){return typeof e=="function"?e():e}const Uye=e=>{const{classes:t}=e;return Ct({root:["root"],paper:["paper"]},Mye,t)},jye=ke(lk,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HQ=ke(gs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),zye=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:A={vertical:"top",horizontal:"left"},TransitionComponent:w=BS,transitionDuration:E="auto",TransitionProps:{onEntering:M}={},disableScrollLock:D=!1}=a,R=Ge(a.TransitionProps,$ye),B=Ge(a,Fye),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:A,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),X=Uye(Q),Z=N.useCallback(()=>{if(d==="anchorPosition")return c;const ye=TC(l),$e=(ye&&ye.nodeType===1?ye:Hr(V.current).body).getBoundingClientRect();return{top:$e.top+JB($e,u.vertical),left:$e.left+e8($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),Y=N.useCallback(ye=>({vertical:JB(ye,A.vertical),horizontal:e8(ye,A.horizontal)}),[A.horizontal,A.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:t8($e)};const Ve=Z();let dt=Ve.top-$e.vertical,Be=Ve.left-$e.horizontal;const re=dt+ze.height,ee=Be+ze.width,J=Xs(TC(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:t8($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)=>{M&&M(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=ag(()=>{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(TC(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:HQ,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,We=Ge(rt,Bye);return $.jsx(Ne,L({},We,!Su(Ne)&&{slotProps:Me,disableScrollLock:D},{children:$.jsx(w,L({appear:!0,in:b,onEntering:G,onExited:ue,timeout:ge},R,{children:$.jsx(Le,L({},qe,{children:p}))}))}))}),ED=zye;function Vye(e){return At("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const Hye=["onEntering"],Wye=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Qye={vertical:"top",horizontal:"right"},Yye={vertical:"top",horizontal:"left"},Gye=e=>{const{classes:t}=e;return Ct({root:["root"],paper:["paper"],list:["list"]},Vye,t)},qye=ke(ED,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zye=ke(HQ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Xye=ke(A1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Kye=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,Hye),A=Ge(o,Wye),w=bi(),E=w.direction==="rtl",M=L({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:O,PaperProps:h,transitionDuration:y,TransitionProps:k,variant:b}),D=Gye(M),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:Zye,X=(i=S.paper)!=null?i:h,Z=kn({elementType:v.root,externalSlotProps:S.root,ownerState:M,className:[D.root,l]}),Y=kn({elementType:Q,externalSlotProps:X,ownerState:M,className:D.paper});return $.jsx(qye,L({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Qye:Yye,slots:{paper:Q,root:v.root},slotProps:{root:Z,paper:Y},open:p,ref:n,transitionDuration:y,TransitionProps:L({onEntering:U},k),ownerState:M},A,{classes:m,children:$.jsx(Xye,L({onKeyDown:V,actions:B,autoFocus:a&&(z===-1||u),autoFocusItem:R,variant:b},c,{className:et(D.list,c.className),children:s}))}))}),Jye=Kye;function e1e(e){return At("MuiMenuItem",e)}const t1e=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),r0=t1e,n1e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],r1e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},i1e=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"]},e1e,a);return L({},a,l)},o1e=ke(us,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:r1e})(({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"}},[`&.${r0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${r0.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)}},[`&.${r0.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)}},[`&.${r0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${r0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VB.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VB.inset}`]:{marginLeft:52},[`& .${jS.root}`]:{marginTop:0,marginBottom:0},[`& .${jS.inset}`]:{paddingLeft:36},[`& .${XB.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&L({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${XB.root} svg`]:{fontSize:"1.25rem"}}))),a1e=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,n1e),m=N.useContext(Hs),y=N.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),O=N.useRef(null);Zr(()=>{i&&O.current&&O.current.focus()},[i]);const b=L({},r,{dense:y.dense,divider:s,disableGutters:l}),v=i1e(r),S=yn(O,n);let k;return r.disabled||(k=d!==void 0?d:-1),$.jsx(Hs.Provider,{value:y,children:$.jsx(o1e,L({ref:S,role:c,tabIndex:k,component:o,focusVisibleClassName:et(v.focusVisible,u),className:et(v.root,p)},h,{ownerState:b,classes:v}))})}),op=a1e;function s1e(e){return At("MuiNativeSelect",e)}const l1e=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),SD=l1e,u1e=["className","disabled","error","IconComponent","inputRef","variant"],c1e=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,s1e,t)},WQ=({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"},[`&.${SD.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}}),d1e=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,{[`&.${SD.multiple}`]:t.multiple}]}})(WQ),QQ=({ownerState:e,theme:t})=>L({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${SD.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),f1e=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]}})(QQ),p1e=N.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Ge(t,u1e),c=L({},t,{disabled:i,variant:l,error:o}),d=c1e(c);return $.jsxs(N.Fragment,{children:[$.jsx(d1e,L({ownerState:c,className:et(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:$.jsx(f1e,{as:a,ownerState:c,className:d.icon})]})}),h1e=p1e;var n8;const m1e=["children","classes","className","label","notched"],g1e=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%"}),b1e=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 y1e(e){const{className:t,label:n,notched:r}=e,i=Ge(e,m1e),o=n!=null&&n!=="",a=L({},e,{notched:r,withLabel:o});return $.jsx(g1e,L({"aria-hidden":!0,className:t,ownerState:a},i,{children:$.jsx(b1e,{ownerState:a,children:o?$.jsx("span",{children:n}):n8||(n8=$.jsx("span",{className:"notranslate",children:"​"}))})}))}const O1e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],v1e=e=>{const{classes:t}=e,r=Ct({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_he,t);return L({},t,r)},E1e=ke(ik,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nk})(({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"}))}),S1e=ke(y1e,{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}}),T1e=ke(ok,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rk})(({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})),YQ=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,O1e),v=v1e(l),S=_u(),k=qd({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A=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:E1e,E=(o=(a=y.input)!=null?a:u.Input)!=null?o:T1e;return $.jsx(gD,L({slots:{root:w,input:E},renderSuffix:M=>$.jsx(S1e,{ownerState:A,className:v.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=$.jsxs(N.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:O},b,{classes:L({},v,{notchedOutline:null})}))});YQ.muiName="Input";const GQ=YQ,w1e=Si($.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"),k1e=Si($.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"),x1e=ke("span",{shouldForwardProp:Xi})({position:"relative",display:"flex"}),C1e=ke(w1e)({transform:"scale(1)"}),A1e=ke(k1e)(({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 qQ(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=L({},e,{checked:t});return $.jsxs(x1e,{className:n.root,ownerState:i,children:[$.jsx(C1e,{fontSize:r,className:n.background,ownerState:i}),$.jsx(A1e,{fontSize:r,className:n.dot,ownerState:i})]})}const _1e=N.createContext(void 0),ZQ=_1e;function R1e(){return N.useContext(ZQ)}function I1e(e){return At("MuiRadio",e)}const r8=_t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),N1e=["checked","checkedIcon","color","icon","name","onChange","size","className"],D1e=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,I1e,t))},P1e=ke(yD,{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"&&{[`&.${r8.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${r8.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function L1e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const i8=$.jsx(qQ,{checked:!0}),o8=$.jsx(qQ,{}),M1e=N.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=i8,color:l="primary",icon:u=o8,name:c,onChange:d,size:p="medium",className:h}=o,m=Ge(o,N1e),y=L({},o,{color:l,size:p}),O=D1e(y),b=R1e();let v=a;const S=RS(d,b&&b.onChange);let k=c;return b&&(typeof v>"u"&&(v=L1e(b.value,o.value)),typeof k>"u"&&(k=b.name)),$.jsx(P1e,L({type:"radio",icon:N.cloneElement(u,{fontSize:(r=o8.props.fontSize)!=null?r:p}),checkedIcon:N.cloneElement(s,{fontSize:(i=i8.props.fontSize)!=null?i:p}),ownerState:y,classes:O,name:k,checked:v,onChange:S,ref:n,className:et(O.root,h)},m))}),a8=M1e,$1e=["actions","children","defaultValue","name","onChange","value"],F1e=N.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=Ge(t,$1e),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 $.jsx(ZQ.Provider,{value:y,children:$.jsx(OD,L({role:"radiogroup",ref:h},u,{children:i}))})}),B1e=F1e;function U1e(e){return At("MuiSelect",e)}const i0=_t("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var s8;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"],z1e=ke("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${i0.select}`]:t.select},{[`&.${i0.select}`]:t[n.variant]},{[`&.${i0.error}`]:t.error},{[`&.${i0.multiple}`]:t.multiple}]}})(WQ,{[`&.${i0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),V1e=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]}})(QQ),H1e=ke("input",{shouldForwardProp:e=>tD(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 l8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function W1e(e){return e==null||typeof e=="string"&&!e.trim()}const Q1e=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,U1e,t)},Y1e=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:A,onChange:w,onClose:E,onFocus:M,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 Ot=()=>{getSelection().isCollapsed&&G.current.focus()};return Ke.addEventListener("click",Ot),()=>{Ke.removeEventListener("click",Ot)}}},[b]);const We=(Ke,Ot)=>{Ke?D&&D(Ot):E&&E(Ot),he||(Le(s?null:Me.clientWidth),le(Ke))},ye=Ke=>{Ke.button===0&&(Ke.preventDefault(),G.current.focus(),We(!0,Ke))},ze=Ke=>{We(!1,Ke)},$e=N.Children.toArray(l),Ve=Ke=>{const Ot=$e.find(Ye=>Ye.props.value===Ke.target.value);Ot!==void 0&&(q(Ot.props.value),w&&w(Ke,Ot))},dt=Ke=>Ot=>{let Ye;if(Ot.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(Ot),Y!==Ye&&(q(Ye),w)){const it=Ot.nativeEvent||Ot,vt=new it.constructor(it.type,it);Object.defineProperty(vt,"target",{writable:!0,value:{value:Ye,name:k}}),w(vt,Ke)}S||We(!1,Ot)}},Be=Ke=>{B||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ke.key)!==-1&&(Ke.preventDefault(),We(!0,Ke))},re=ue!==null&&j,ee=Ke=>{!re&&A&&(Object.defineProperty(Ke,"target",{writable:!0,value:{value:Y,name:k}}),A(Ke))};delete Z["aria-invalid"];let J,_e;const Pe=[];let Ie=!1;(FS({value:Y})||h)&&(U?J=U(Y):Ie=!0);const ie=$e.map(Ke=>{if(!N.isValidElement(Ke))return null;let Ot;if(S){if(!Array.isArray(Y))throw new Error(Dd(2));Ot=Y.some(Ye=>l8(Ye,Ke.props.value)),Ot&&Ie&&Pe.push(Ke.props.children)}else Ot=l8(Y,Ke.props.value),Ot&&Ie&&(_e=Ke.props.children);return N.cloneElement(Ke,{"aria-selected":Ot?"true":"false",onClick:dt(Ke),onKeyUp:Ye=>{Ye.key===" "&&Ye.preventDefault(),Ke.props.onKeyUp&&Ke.props.onKeyUp(Ye)},role:"option",selected:Ot,value:void 0,"data-value":Ke.props.value})});Ie&&(S?Pe.length===0?J=null:J=Pe.reduce((Ke,Ot,Ye)=>(Ke.push(Ot),Ye{const{classes:t}=e;return t},TD={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Xi(e)&&e!=="variant",slot:"Root"},K1e=ke(FQ,TD)(""),J1e=ke(GQ,TD)(""),eOe=ke(DQ,TD)(""),XQ=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=CQ,id:d,input:p,inputProps:h,label:m,labelId:y,MenuProps:O,multiple:b=!1,native:v=!1,onClose:S,onOpen:k,open:A,renderValue:w,SelectDisplayProps:E,variant:M="outlined"}=r,D=Ge(r,q1e),R=v?h1e:G1e,B=_u(),U=qd({props:r,muiFormControl:B,states:["variant","error"]}),V=U.variant||M,z=L({},r,{variant:V,classes:a}),Q=X1e(z),X=Ge(Q,Z1e),Z=p||{standard:$.jsx(K1e,{ownerState:z}),outlined:$.jsx(J1e,{label:m,ownerState:z}),filled:$.jsx(eOe,{ownerState:z})}[V],Y=yn(n,Z.ref);return $.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:A,renderValue:w,SelectDisplayProps:L({id:d},E)},h,{classes:h?Io(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))})});XQ.muiName="Select";const KQ=XQ,tOe=e=>!e||!Su(e);function nOe(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"]),rOe=e=>{const{open:t}=e;return{offset:et(t&&El.valueLabelOpen),circle:El.valueLabelCircle,label:El.valueLabelLabel}};function iOe(e){const{children:t,className:n,value:r}=e,i=rOe(e);return t?N.cloneElement(t,{className:et(t.props.className)},$.jsxs(N.Fragment,{children:[t.props.children,$.jsx("span",{className:et(i.offset,n),"aria-hidden":!0,children:$.jsx("span",{className:i.circle,children:$.jsx("span",{className:i.label,children:r})})})]})):null}const oOe=["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 u8(e){return e}const aOe=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"}}})),sOe=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})),lOe=ke("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?JN(e.palette[t.color].main,.62):KN(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})}),uOe=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"}}})),cOe=ke(iOe,{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"})),dOe=ke("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>tD(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})),fOe=ke("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>tD(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})),pOe=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,nOe,a)},hOe=({children:e})=>e,mOe=N.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,y,O,b,v,S,k,A,w,E,M,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:We=1,scale:ye=u8,slotProps:ze,slots:$e,track:Ve="normal",valueLabelDisplay:dt="off",valueLabelFormat:Be=u8}=B,re=Ge(B,oOe),ee=L({},B,{isRtl:V,max:Le,min:qe,classes:le,disabled:ue,disableSwap:G,orientation:rt,marks:Ne,color:j,size:Me,step:We,scale:ye,track:Ve,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:Ot,getThumbStyle:Ye}=Zpe(L({},ee,{rootRef:n}));ee.marked=pt.length>0&&pt.some(Ue=>Ue.label),ee.dragging=nt,ee.focusedThumbIndex=Oe;const it=pOe(ee),vt=(r=(i=$e==null?void 0:$e.root)!=null?i:Y.Root)!=null?r:aOe,Dt=(o=(a=$e==null?void 0:$e.rail)!=null?a:Y.Rail)!=null?o:sOe,rn=(s=(l=$e==null?void 0:$e.track)!=null?l:Y.Track)!=null?s:lOe,cn=(u=(c=$e==null?void 0:$e.thumb)!=null?c:Y.Thumb)!=null?u:uOe,fn=(d=(p=$e==null?void 0:$e.valueLabel)!=null?p:Y.ValueLabel)!=null?d:cOe,zn=(h=(m=$e==null?void 0:$e.mark)!=null?m:Y.Mark)!=null?h:dOe,ve=(y=(O=$e==null?void 0:$e.markLabel)!=null?O:Y.MarkLabel)!=null?y:fOe,Ce=(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=(A=ze==null?void 0:ze.track)!=null?A: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=(M=ze==null?void 0:ze.mark)!=null?M: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:vt,getSlotProps:_e,externalSlotProps:fe,externalForwardedProps:re,additionalProps:L({},tOe(vt)&&{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}),He=kn({elementType:rn,externalSlotProps:at,additionalProps:{style:L({},J[ce].offset(Ke),J[ce].leap(Ot))},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:Ce,getSlotProps:Pe,externalSlotProps:qt,ownerState:ee});return $.jsxs(vt,L({},Re,{children:[$.jsx(Dt,L({},Te)),$.jsx(rn,L({},He)),pt.filter(Ue=>Ue.value>=qe&&Ue.value<=Le).map((Ue,xe)=>{const mt=$S(Ue.value,qe,Le),Nt=J[ce].offset(mt);let en;return Ve===!1?en=kt.indexOf(Ue.value)!==-1:en=Ve==="normal"&&(Se?Ue.value>=kt[0]&&Ue.value<=kt[kt.length-1]:Ue.value<=kt[0])||Ve==="inverted"&&(Se?Ue.value<=kt[0]||Ue.value>=kt[kt.length-1]:Ue.value>=kt[0]),$.jsxs(N.Fragment,{children:[$.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?$.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=$S(Ue,qe,Le),Nt=J[ce].offset(mt),en=dt==="off"?hOe:fn;return $.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:$.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:$.jsx(Ce,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)})]}))}),gOe=mOe;function bOe(e){return At("MuiTooltip",e)}const yOe=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ld=yOe,OOe=["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 vOe(e){return Math.round(e*1e5)/1e5}const EOe=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,bOe,t)},SOe=ke(x1,{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"] .${ld.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ld.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ld.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"] .${ld.arrow}`]:L({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),TOe=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:`${vOe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ld.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"})),[`.${ld.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"})),[`.${ld.popper}[data-popper-placement*="top"] &`]:L({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ld.popper}[data-popper-placement*="bottom"] &`]:L({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),wOe=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 lv=!1,wC=null,o0={x:0,y:0};function uv(e,t){return n=>{t&&t(n),e(n)}}const kOe=N.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,y,O,b,v,S,k,A;const w=gt({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:M,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:We=BS,TransitionProps:ye}=w,ze=Ge(w,OOe),$e=N.isValidElement(M)?M:$.jsx("span",{children:M}),Ve=bi(),dt=Ve.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 Ot=Xt=>{clearTimeout(wC),lv=!0,Se(!0),ue&&!nt&&ue(Xt)},Ye=jt(Xt=>{clearTimeout(wC),wC=setTimeout(()=>{lv=!1},800+le),Se(!1),G&&nt&&G(Xt),clearTimeout(Ie.current),Ie.current=setTimeout(()=>{_e.current=!1},Ve.transitions.duration.shortest)}),it=Xt=>{_e.current&&Xt.type!=="touchstart"||(Be&&Be.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(de.current),X||lv&&Z?ie.current=setTimeout(()=>{Ot(Xt)},lv?Z:X):Ot(Xt))},vt=Xt=>{clearTimeout(ie.current),clearTimeout(de.current),de.current=setTimeout(()=>{Ye(Xt)},le)},{isFocusVisibleRef:Dt,onBlur:rn,onFocus:cn,ref:fn}=Bw(),[,zn]=N.useState(!1),ve=Xt=>{rn(Xt),Dt.current===!1&&(zn(!1),vt(Xt))},Ce=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=vt,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),o0={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 He=L({},Re,ze,$e.props,{className:et(ze.className,$e.props.className),onTouchStart:fe,ref:It},q?{onMouseMove:qt}:{}),ot={};Q||(He.onTouchStart=Mt,He.onTouchEnd=$t),V||(He.onMouseOver=uv(lt,He.onMouseOver),He.onMouseLeave=uv(at,He.onMouseLeave),Pe||(ot.onMouseOver=lt,ot.onMouseLeave=at)),U||(He.onFocus=uv(Ce,He.onFocus),He.onBlur=uv(ve,He.onBlur),Pe||(ot.onFocus=Ce,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=EOe(Wt),tr=(r=(i=rt.popper)!=null?i:D.Popper)!=null?r:SOe,Ue=(o=(a=(s=rt.transition)!=null?s:D.Transition)!=null?a:We)!=null?o:BS,xe=(l=(u=rt.tooltip)!=null?u:D.Tooltip)!=null?l:TOe,mt=(c=(d=rt.arrow)!=null?d:D.Arrow)!=null?c:wOe,Nt=F0(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=F0(Ue,L({},ye,(y=qe.transition)!=null?y:R.transition),Wt),Mn=F0(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=F0(mt,L({},(S=qe.arrow)!=null?S:R.arrow,{className:et(hn.arrow,(k=(A=qe.arrow)!=null?A:R.arrow)==null?void 0:k.className)}),Wt);return $.jsxs(N.Fragment,{children:[N.cloneElement($e,He),$.jsx(tr,L({as:Ne??x1,placement:he,anchorEl:q?{getBoundingClientRect:()=>({top:o0.y,left:o0.x,right:o0.x,bottom:o0.y,width:0,height:0})}:Be,popperRef:xt,open:Be?nt:!1,id:pt,transition:!0},ot,Nt,{popperOptions:nn,children:({TransitionProps:Xt})=>$.jsx(Ue,L({timeout:Ve.transitions.duration.shorter},Xt,en,{children:$.jsxs(xe,L({},Mn,{children:[Me,E?$.jsx(mt,L({},Nn,{ref:J})):null]}))}))}))]})}),cv=kOe;function xOe(e){return At("MuiSwitch",e)}const COe=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Qo=COe,AOe=["className","color","edge","size","sx"],_Oe=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,xOe,t);return L({},t,l)},ROe=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)"}}})),IOe=ke(yD,{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"?JN(e.palette[t.color].main,.62):KN(e.palette[t.color].main,.55)}`}},[`&.${Qo.checked} + .${Qo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),NOe=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}`})),DOe=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%"})),POe=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,AOe),c=L({},r,{color:o,edge:a,size:s}),d=_Oe(c),p=$.jsx(DOe,{className:d.thumb,ownerState:c});return $.jsxs(ROe,{className:et(d.root,i),sx:l,ownerState:c,children:[$.jsx(IOe,L({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:L({},d,{root:d.switchBase})})),$.jsx(NOe,{className:d.track,ownerState:c})]})}),LOe=POe;function MOe(e){return At("MuiTab",e)}const $Oe=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),lf=$Oe,FOe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],BOe=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,MOe,t)},UOe=ke(us,{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,FOe),A=L({},r,{disabled:o,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:b,wrapped:S}),w=BOe(A),E=l&&d&&N.isValidElement(l)?N.cloneElement(l,{className:et(w.iconWrapper,l.props.className)}):l,M=R=>{!y&&p&&p(R,v),h&&h(R)},D=R=>{O&&!y&&p&&p(R,v),m&&m(R)};return $.jsxs(UOe,L({focusRipple:!a,className:et(w.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:M,onFocus:D,ownerState:A,tabIndex:y?0:-1},k,{children:[u==="top"||u==="start"?$.jsxs(N.Fragment,{children:[E,d]}):$.jsxs(N.Fragment,{children:[d,E]}),c]}))}),c8=jOe;function zOe(e){return At("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const VOe=["className","component","disableGutters","variant"],HOe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ct({root:["root",!n&&"gutters",r]},zOe,t)},WOe=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),QOe=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,VOe),u=L({},r,{component:o,disableGutters:a,variant:s}),c=HOe(u);return $.jsx(WOe,L({as:o,className:et(c.root,i),ref:n,ownerState:u},l))}),YOe=QOe,GOe=Si($.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qOe=Si($.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ZOe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function XOe(e,t,n,r={},i=()=>{}){const{ease:o=ZOe,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 KOe=["onChange"],JOe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function eve(e){const{onChange:t}=e,n=Ge(e,KOe),r=N.useRef(),i=N.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Zr(()=>{const a=ag(()=>{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]),$.jsx("div",L({style:JOe,ref:i},n))}function tve(e){return At("MuiTabScrollButton",e)}const nve=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),rve=nve,ive=["className","slots","slotProps","direction","orientation","disabled"],ove=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ct({root:["root",n,r&&"disabled"]},tve,t)},ave=ke(us,{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,[`&.${rve.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),sve=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,ive),p=bi().direction==="rtl",h=L({isRtl:p},o),m=ove(h),y=(r=s.StartScrollButtonIcon)!=null?r:GOe,O=(i=s.EndScrollButtonIcon)!=null?i:qOe,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 $.jsx(ave,L({component:"div",className:et(m.root,a),ref:n,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?$.jsx(y,L({},b)):$.jsx(O,L({},v))}))}),lve=sve;function uve(e){return At("MuiTabs",e)}const cve=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),EE=cve,dve=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],d8=(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,dv=(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}}},fve=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"]},uve,l)},pve=ke("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${EE.scrollButtons}`]:t.scrollButtons},{[`& .${EE.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&&{[`& .${EE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),hve=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"})),mve=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"})),gve=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})),bve=ke(eve)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),p8={},yve=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=lve,scrollButtons:v="auto",selectionFollowsFocus:S,slots:k={},slotProps:A={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:M="primary",value:D,variant:R="standard",visibleScrollbar:B=!1}=r,U=Ge(r,dve),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:M,variant:R,visibleScrollbar:B,fixed:!V,hideScrollbar:V&&!B,scrollableX:V&&!z,scrollableY:V&&z,centered:u&&!V,scrollButtonsHideMobile:!h}),le=fve(j),Ee=kn({elementType:k.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:j}),G=kn({elementType:k.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:j}),[ue,ge]=N.useState(!1),[he,Ne]=N.useState(p8),[Le,qe]=N.useState(!1),[rt,Me]=N.useState(!1),[We,ye]=N.useState(!1),[ze,$e]=N.useState({overflow:"hidden",scrollbarWidth:0}),Ve=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:zle(Ye,i.direction),scrollWidth:Ye.scrollWidth,top:Dt.top,bottom:Dt.bottom,left:Dt.left,right:Dt.right}}let vt;if(Ye&&D!==!1){const Dt=Be.current.children;if(Dt.length>0){const rn=Dt[Ve.get(D)];vt=rn?rn.getBoundingClientRect():null}}return{tabsMeta:it,tabMeta:vt}},ee=jt(()=>{const{tabsMeta:Ye,tabMeta:it}=re();let vt=0,Dt;if(z)Dt="top",it&&Ye&&(vt=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;vt=(o?-1:1)*(it[Dt]-Ye[Dt]+cn)}const rn={[Dt]:vt,[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?XOe(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&&eQ()==="reverse"?-1:1),J(it)},Pe=()=>{const Ye=dt.current[Y];let it=0;const vt=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?$.jsx(bve,{onChange:de,className:et(le.scrollableX,le.hideScrollbar)}):null;const vt=V&&(v==="auto"&&(Le||rt)||v===!0);return Ye.scrollButtonStart=vt?$.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=vt?$.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:vt}=re();if(!(!vt||!it)){if(vt[X]it[Z]){const Dt=it[Q]+(vt[Z]-it[Z]);J(Dt,{animation:Ye})}}}),Se=jt(()=>{V&&v!==!1&&ye(!We)});N.useEffect(()=>{const Ye=ag(()=>{dt.current&&ee()});let it;const vt=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(vt),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 vt=Ye[0],Dt=Ye[it-1],rn={root:dt.current,threshold:.99},cn=Ce=>{qe(!Ce[0].isIntersecting)},fn=new IntersectionObserver(cn,rn);fn.observe(vt);const zn=Ce=>{Me(!Ce[0].isIntersecting)},ve=new IntersectionObserver(zn,rn);return ve.observe(Dt),()=>{fn.disconnect(),ve.disconnect()}}},[V,v,We,c==null?void 0:c.length]),N.useEffect(()=>{ge(!0)},[]),N.useEffect(()=>{ee()}),N.useEffect(()=>{Oe(p8!==he)},[Oe,he]),N.useImperativeHandle(l,()=>({updateIndicator:ee,updateScrollButtons:Se}),[ee,Se]);const nt=$.jsx(gve,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;Ve.set(it,pt);const vt=it===D;return pt+=1,N.cloneElement(Ye,L({fullWidth:R==="fullWidth",indicator:vt&&!ue&&nt,selected:vt,selectionFollowsFocus:S,onChange:y,textColor:M,value:it},pt===1&&D===!1&&!Ye.props.tabIndex?{tabIndex:0}:{}))}),Ke=Ye=>{const it=Be.current,vt=Hr(it).activeElement;if(vt.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(),dv(it,vt,f8);break;case cn:Ye.preventDefault(),dv(it,vt,d8);break;case"Home":Ye.preventDefault(),dv(it,null,d8);break;case"End":Ye.preventDefault(),dv(it,null,f8);break}},Ot=ce();return $.jsxs(pve,L({className:et(le.root,d),ownerState:j,ref:n,as:p},U,{children:[Ot.scrollButtonStart,Ot.scrollbarSizeListener,$.jsxs(hve,{className:le.scroller,ownerState:j,style:{overflow:ze.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:B?void 0:-ze.scrollbarWidth},ref:dt,children:[$.jsx(mve,{"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]}),Ot.scrollButtonEnd]}))}),Ove=yve;function vve(e){return At("MuiTextField",e)}_t("MuiTextField",["root"]);const Eve=["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"],Sve={standard:FQ,filled:DQ,outlined:GQ},Tve=e=>{const{classes:t}=e;return Ct({root:["root"]},vve,t)},wve=ke(Op,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kve=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:A,minRows:w,multiline:E=!1,name:M,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,Eve),le=L({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:V,select:Q,variant:q}),Ee=Tve(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=Sve[q],Le=$.jsx(Ne,L({"aria-describedby":ge,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:h,multiline:E,name:M,rows:z,maxRows:A,minRows:w,type:Z,value:Y,id:ue,inputRef:S,onBlur:D,onChange:R,onFocus:B,placeholder:U,inputProps:b},G,v));return $.jsxs(wve,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!==""&&$.jsx(BQ,L({htmlFor:ue,id:he},O,{children:k})),Q?$.jsx(KQ,L({"aria-describedby":ge,id:ue,labelId:he,value:Y,input:Le},X,{children:a})):Le,m&&$.jsx(ug,L({id:ge},p,{children:m}))]}))}),vp=kve;function xve(e){return At("MuiToggleButton",e)}const Cve=_t("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),_h=Cve,Ave=N.createContext({}),JQ=Ave,_ve=N.createContext(void 0),eY=_ve;function Rve(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const Ive=["value"],Nve=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],Dve=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,xve,t)},Pve=ke(us,{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%"},{[`&.${_h.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"}},[`&.${_h.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)})}),Lve=N.forwardRef(function(t,n){const r=N.useContext(JQ),{value:i}=r,o=Ge(r,Ive),a=N.useContext(eY),s=Uw(L({},o,{selected:Rve(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,Nve),A=L({},l,{color:d,disabled:p,disableFocusRipple:h,fullWidth:m,size:v}),w=Dve(A),E=D=>{O&&(O(D,S),D.defaultPrevented)||y&&y(D,S)},M=a||"";return $.jsx(Pve,L({className:et(o.className,w.root,c,M),disabled:p,focusRipple:!h,ref:n,onClick:E,onChange:y,value:S,ownerState:A,"aria-pressed":b},k,{children:u}))}),kC=Lve;function Mve(e){return At("MuiToggleButtonGroup",e)}const $ve=_t("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Br=$ve,Fve=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Bve=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,Mve,t)},Uve=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}.${_h.disabled},& .${Br.middleButton}.${_h.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Br.lastButton}.${_h.disabled},& .${Br.middleButton}.${_h.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,Fve),y=L({},r,{disabled:s,fullWidth:u,orientation:d,size:p}),O=Bve(y),b=N.useCallback((E,M)=>{if(!c)return;const D=h&&h.indexOf(M);let R;h&&D>=0?(R=h.slice(),R.splice(D,1)):R=h?h.concat(M):[M],c(E,R)},[c,h]),v=N.useCallback((E,M)=>{c&&c(E,h===M?null:M)},[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=Hle(i),A=k.length,w=E=>{const M=E===0,D=E===A-1;return M&&D?"":M?O.firstButton:D?O.lastButton:O.middleButton};return $.jsx(Uve,L({role:"group",className:et(O.root,o),ref:n,ownerState:y},m,{children:$.jsx(JQ.Provider,{value:S,children:k.map((E,M)=>$.jsx(eY.Provider,{value:w(M),children:E},M))})}))}),zve=jve;var tY={exports:{}},nY={};/** + `),_ge)),Pge=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,Cge),h=L({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),m=Rge(h),y={},v={},b={};if(d==="determinate"){const O=2*Math.PI*((Lc-u)/2);y.strokeDasharray=O.toFixed(3),b["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*O).toFixed(3)}px`,v.transform="rotate(-90deg)"}return $.jsx(Ige,L({className:et(m.root,i),style:L({width:s,height:s},v,l),ownerState:h,ref:n,role:"progressbar"},b,p,{children:$.jsx(Nge,{className:m.svg,ownerState:h,viewBox:`${Lc/2} ${Lc/2} ${Lc} ${Lc}`,children:$.jsx(Dge,{className:m.circle,style:y,ownerState:h,cx:Lc,cy:Lc,r:(Lc-u)/2,fill:"none",strokeWidth:u})})}))}),_1=Pge,Lge=Ace({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"})}),Mge=Lge,$ge=(e,t)=>L({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Fge=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}}),Bge=(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:$ge(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:L({margin:0},Fge(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 Uge(e){const t=gt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return $.jsxs(N.Fragment,{children:[$.jsx(NQ,{styles:i=>Bge(i,r)}),n]})}function jge(e){return At("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const zge=["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"],Vge=e=>{const{open:t,exited:n,classes:r}=e;return Ct({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},jge,r)},Hge=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"})),Wge=ke(bD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Qge=N.forwardRef(function(t,n){var r,i,o,a,s,l;const u=gt({name:"MuiModal",props:t}),{BackdropComponent:c=Wge,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:y,component:v,components:b={},componentsProps:O={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:A=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:M=!1,hideBackdrop:D=!1,keepMounted:R=!1,onBackdropClick:B,open:U,slotProps:V,slots:z}=u,Q=Ge(u,zge),X=L({},u,{closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:A,disablePortal:w,disableRestoreFocus:E,disableScrollLock:M,hideBackdrop:D,keepMounted:R}),{getRootProps:Z,getBackdropProps:Y,getTransitionProps:q,portalRef:j,isTopModal:le,exited:Ee,hasTransition:G}=Jpe(L({},X,{rootRef:n})),ue=L({},X,{exited:Ee}),ge=Vge(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:Hge,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:O.root,rt=(l=V==null?void 0:V.backdrop)!=null?l:O.backdrop,Me=kn({elementType:Ne,externalSlotProps:qe,externalForwardedProps:Q,getSlotProps:Z,additionalProps:{ref:n,as:v},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:$.jsx(CQ,{ref:j,container:y,disablePortal:w,children:$.jsxs(Ne,L({},Me,{children:[!D&&c?$.jsx(Le,L({},Qe)):null,$.jsx(bQ,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:le,open:U,children:N.cloneElement(m,he)})]}))})}),lk=Qge;function Yge(e){return At("MuiDialog",e)}const hb=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Gge=N.createContext({}),qge=Gge,Zge=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Xge=ke(bD,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Kge=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,Yge,t)},Jge=ke(lk,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),e0e=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"}})),t0e=ke(gs,{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)`,[`&.${hb.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}`,[`&.${hb.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,[`&.${hb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),n0e=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:v,onClose:b,open:O,PaperComponent:S=gs,PaperProps:k={},scroll:A="paper",TransitionComponent:w=ug,transitionDuration:E=o,TransitionProps:M}=r,D=Ge(r,Zge),R=L({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:y,scroll:A}),B=Kge(R),U=N.useRef(),V=Z=>{U.current=Z.target===Z.currentTarget},z=Z=>{U.current&&(U.current=null,v&&v(Z),b&&b(Z,"backdropClick"))},Q=Pl(s),X=N.useMemo(()=>({titleId:Q}),[Q]);return $.jsx(Jge,L({className:et(B.root,d),closeAfterTransition:!0,components:{Backdrop:Xge},componentsProps:{backdrop:L({transitionDuration:E,as:l},u)},disableEscapeKeyDown:p,onClose:b,open:O,ref:n,onClick:z,ownerState:R},D,{children:$.jsx(w,L({appear:!0,in:O,timeout:E,role:"presentation"},M,{children:$.jsx(e0e,{className:et(B.container),onMouseDown:V,ownerState:R,children:$.jsx(t0e,L({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Q},k,{className:et(B.paper,k.className),ownerState:R,children:$.jsx(qge.Provider,{value:X,children:c})}))})}))}))}),r0e=n0e;function i0e(e){return At("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const o0e=["className","disableSpacing"],a0e=e=>{const{classes:t,disableSpacing:n}=e;return Ct({root:["root",!n&&"spacing"]},i0e,t)},s0e=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}})),l0e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Ge(r,o0e),s=L({},r,{disableSpacing:o}),l=a0e(s);return $.jsx(s0e,L({className:et(l.root,i),ownerState:s,ref:n},a))}),u0e=l0e;function c0e(e){return At("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);const d0e=_t("MuiDialogTitle",["root"]),f0e=d0e,p0e=["className","dividers"],h0e=e=>{const{classes:t,dividers:n}=e;return Ct({root:["root",n&&"dividers"]},c0e,t)},m0e=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}`}:{[`.${f0e.root} + &`]:{paddingTop:0}})),g0e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Ge(r,p0e),s=L({},r,{dividers:o}),l=h0e(s);return $.jsx(m0e,L({className:et(l.root,i),ownerState:s,ref:n},a))}),b0e=g0e;function y0e(e){return At("MuiDivider",e)}const O0e=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),HB=O0e,v0e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],E0e=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"]},y0e,r)},S0e=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%"}})),T0e=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)`})),LQ=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,v0e),y=L({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:h}),v=E0e(y);return $.jsx(S0e,L({as:s,className:et(v.root,a),role:d,ref:n,ownerState:y},m,{children:o?$.jsx(T0e,{className:v.wrapper,ownerState:y,children:o}):null}))});LQ.muiSkipListHighlight=!0;const Td=LQ,w0e=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function k0e(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 x0e(e){return typeof e=="function"?e():e}function sv(e,t,n){const r=x0e(n),i=k0e(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const C0e=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:v,onExited:b,onExiting:O,style:S,timeout:k=o,TransitionComponent:A=Kw}=t,w=Ge(t,w0e),E=N.useRef(null),M=yn(l.ref,E,n),D=Y=>q=>{Y&&(q===void 0?Y(E.current):Y(E.current,q))},R=D((Y,q)=>{sv(c,Y,u),sD(Y),h&&h(Y,q)}),B=D((Y,q)=>{const j=Pm({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(O),z=D(Y=>{const q=Pm({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),sv(c,Y,u),v&&v(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&&sv(c,E.current,u)},[c,u]);return N.useEffect(()=>{if(p||c==="down"||c==="right")return;const Y=sg(()=>{E.current&&sv(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]),$.jsx(A,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:M,style:L({visibility:Y==="exited"&&!p?"hidden":void 0},S,l.props.style)},q))}))}),A0e=C0e;function _0e(e){return At("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const R0e=["BackdropProps"],I0e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],MQ=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},N0e=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,_0e,t)},D0e=ke(lk,{name:"MuiDrawer",slot:"Root",overridesResolver:MQ})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),WB=ke("div",{shouldForwardProp:Xi,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:MQ})({flex:"0 0 auto"}),P0e=ke(gs,{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}`})),$Q={left:"right",right:"left",top:"down",bottom:"up"};function L0e(e){return["left","right"].indexOf(e)!==-1}function M0e(e,t){return e.direction==="rtl"&&L0e(t)?$Q[t]:t}const $0e=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:v,TransitionComponent:b=A0e,transitionDuration:O=o,variant:S="temporary"}=r,k=Ge(r.ModalProps,R0e),A=Ge(r,I0e),w=N.useRef(!1);N.useEffect(()=>{w.current=!0},[]);const E=M0e(i,a),D=L({},r,{anchor:a,elevation:c,open:m,variant:S},A),R=N0e(D),B=$.jsx(P0e,L({elevation:S==="temporary"?c:0,square:!0},y,{className:et(R.paper,y.className),ownerState:D,children:l}));if(S==="permanent")return $.jsx(WB,L({className:et(R.root,R.docked,u),ownerState:D,ref:n},A,{children:B}));const U=$.jsx(b,L({in:m,direction:$Q[E],timeout:O,appear:w.current},v,{children:B}));return S==="persistent"?$.jsx(WB,L({className:et(R.root,R.docked,u),ownerState:D,ref:n},A,{children:U})):$.jsx(D0e,L({BackdropProps:L({},s,p,{transitionDuration:O}),className:et(R.root,R.modal,u),open:m,ownerState:D,onClose:h,hideBackdrop:d,ref:n},A,k,{children:U}))}),F0e=$0e,B0e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],U0e=e=>{const{classes:t,disableUnderline:n}=e,i=Ct({root:["root",!n&&"underline"],input:["input"]},jhe,t);return L({},t,i)},j0e=ke(ik,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nk(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}},[`&.${Ga.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ga.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"},[`&.${Ga.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ga.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(.${Ga.disabled}, .${Ga.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ga.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}))}),z0e=ke(ok,{name:"MuiFilledInput",slot:"Input",overridesResolver:rk})(({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})),FQ=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,v=Ge(s,B0e),b=L({},s,{fullWidth:c,inputComponent:d,multiline:p,type:y}),O=U0e(s),S={root:{ownerState:b},input:{ownerState:b}},k=h??u?Io(S,h??u):S,A=(r=(i=m.root)!=null?i:l.Root)!=null?r:j0e,w=(o=(a=m.input)!=null?a:l.Input)!=null?o:z0e;return $.jsx(gD,L({slots:{root:A,input:w},componentsProps:k,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:y},v,{classes:O}))});FQ.muiName="Input";const BQ=FQ;function V0e(e){return At("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const H0e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],W0e=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${tt(n)}`,r&&"fullWidth"]};return Ct(i,V0e,t)},Q0e=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%"})),Y0e=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:v="outlined"}=r,b=Ge(r,H0e),O=L({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:y,variant:v}),S=W0e(O),[k,A]=N.useState(()=>{let V=!1;return i&&N.Children.forEach(i,z=>{if(!sb(z,["Input","Select"]))return;const Q=sb(z,["Select"])?z.props.input:z;Q&&Rhe(Q.props)&&(V=!0)}),V}),[w,E]=N.useState(()=>{let V=!1;return i&&N.Children.forEach(i,z=>{sb(z,["Input","Select"])&&($S(z.props,!0)||$S(z.props.inputProps,!0))&&(V=!0)}),V}),[M,D]=N.useState(!1);l&&M&&D(!1);const R=c!==void 0&&!l?c:M;let B;const U=N.useMemo(()=>({adornedStart:k,setAdornedStart:A,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:v}),[k,a,l,u,w,R,d,p,B,m,y,v]);return $.jsx(tk.Provider,{value:U,children:$.jsx(Q0e,L({as:s,ownerState:O,className:et(S.root,o),ref:n},b,{children:i}))})}),Op=Y0e,G0e=Mce({createStyledComponent:ke("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>gt({props:e,name:"MuiStack"})}),ts=G0e;function q0e(e){return At("MuiFormControlLabel",e)}const Z0e=_t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),U0=Z0e,X0e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],K0e=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,q0e,t)},J0e=ke("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${U0.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,[`&.${U0.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},{[`& .${U0.label}`]:{[`&.${U0.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),ebe=ke("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${U0.error}`]:{color:(e.vars||e).palette.error.main}})),tbe=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,X0e),v=_u(),b=(r=u??l.props.disabled)!=null?r:v==null?void 0:v.disabled,O=h??l.props.required,S={disabled:b,required:O};["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:v,states:["error"]}),A=L({},o,{disabled:b,labelPlacement:p,required:O,error:k.error}),w=K0e(A),E=(i=m.typography)!=null?i:s.typography;let M=d;return M!=null&&M.type!==mi&&!c&&(M=$.jsx(mi,L({component:"span"},E,{className:et(w.label,E==null?void 0:E.className),children:M}))),$.jsxs(J0e,L({className:et(w.root,a),ownerState:A,ref:n},y,{children:[N.cloneElement(l,S),O?$.jsxs(ts,{display:"block",children:[M,$.jsxs(ebe,{ownerState:A,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):M]}))}),cy=tbe;function nbe(e){return At("MuiFormGroup",e)}_t("MuiFormGroup",["root","row","error"]);const rbe=["className","row"],ibe=e=>{const{classes:t,row:n,error:r}=e;return Ct({root:["root",n&&"row",r&&"error"]},nbe,t)},obe=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"})),abe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=Ge(r,rbe),s=_u(),l=qd({props:r,muiFormControl:s,states:["error"]}),u=L({},r,{row:o,error:l.error}),c=ibe(u);return $.jsx(obe,L({className:et(c.root,i),ownerState:u,ref:n},a))}),OD=abe;function sbe(e){return At("MuiFormHelperText",e)}const lbe=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),QB=lbe;var YB;const ube=["children","className","component","disabled","error","filled","focused","margin","required","variant"],cbe=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,sbe,t)},dbe=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,[`&.${QB.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${QB.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),fbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Ge(r,ube),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=cbe(c);return $.jsx(dbe,L({as:a,ownerState:c,className:et(d.root,o),ref:n},s,{children:i===" "?YB||(YB=$.jsx("span",{className:"notranslate",children:"​"})):i}))}),cg=fbe;function pbe(e){return At("MuiFormLabel",e)}const mb=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hbe=["children","className","color","component","disabled","error","filled","focused","required"],mbe=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,pbe,t)},gbe=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",[`&.${mb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mb.error}`]:{color:(e.vars||e).palette.error.main}})),bbe=ke("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${mb.error}`]:{color:(e.vars||e).palette.error.main}})),ybe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Ge(r,hbe),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=mbe(c);return $.jsxs(gbe,L({as:a,ownerState:c,className:et(d.root,o),ref:n},s,{children:[i,u.required&&$.jsxs(bbe,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),uk=ybe,Obe=N.createContext(),GB=Obe;function vbe(e){return At("MuiGrid",e)}const Ebe=[0,1,2,3,4,5,6,7,8,9,10],Sbe=["column-reverse","column","row-reverse","row"],Tbe=["nowrap","wrap-reverse","wrap"],n0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],dy=_t("MuiGrid",["root","container","item","zeroMinWidth",...Ebe.map(e=>`spacing-xs-${e}`),...Sbe.map(e=>`direction-xs-${e}`),...Tbe.map(e=>`wrap-xs-${e}`),...n0.map(e=>`grid-xs-${e}`),...n0.map(e=>`grid-sm-${e}`),...n0.map(e=>`grid-md-${e}`),...n0.map(e=>`grid-lg-${e}`),...n0.map(e=>`grid-xl-${e}`)]),wbe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Gh(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function kbe({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} + ${Gh(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 xbe({theme:e,ownerState:t}){const n=Yf({values:t.direction,breakpoints:e.breakpoints.values});return xa({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${dy.item}`]={maxWidth:"none"}),i})}function UQ({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 Cbe({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=UQ({breakpoints:e.breakpoints.values,values:o})),i=xa({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${Gh(c)}`,[`& > .${dy.item}`]:{paddingTop:Gh(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${dy.item}`]:{paddingTop:0}}})}return i}function Abe({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=UQ({breakpoints:e.breakpoints.values,values:o})),i=xa({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${Gh(c)})`,marginLeft:`-${Gh(c)}`,[`& > .${dy.item}`]:{paddingLeft:Gh(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${dy.item}`]:{paddingLeft:0}}})}return i}function _be(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 Rbe=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=_be(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}),xbe,Cbe,Abe,kbe);function Ibe(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 Nbe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=Ibe(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,vbe,t)},Dbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiGrid"}),{breakpoints:i}=bi(),o=qw(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:v=!1}=o,b=Ge(o,wbe),O=h||m,S=l||m,k=N.useContext(GB),A=c?s||12:k,w={},E=L({},b);i.keys.forEach(R=>{b[R]!=null&&(w[R]=b[R],delete E[R])});const M=L({},o,{columns:A,container:c,direction:d,item:p,rowSpacing:O,columnSpacing:S,wrap:y,zeroMinWidth:v,spacing:m},w,{breakpoints:i.keys}),D=Nbe(M);return $.jsx(GB.Provider,{value:A,children:$.jsx(Rbe,L({ownerState:M,className:et(D.root,a),as:u,ref:n},E))})}),_h=Dbe,Pbe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p_(e){return`scale(${e}, ${e**2})`}const Lbe={entering:{opacity:1,transform:p_(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),jQ=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:v=Kw}=t,b=Ge(t,Pbe),O=N.useRef(),S=N.useRef(),k=bi(),A=N.useRef(null),w=yn(A,o.ref,n),E=Q=>X=>{if(Q){const Z=A.current;X===void 0?Q(Z):Q(Z,X)}},M=E(c),D=E((Q,X)=>{sD(Q);const{duration:Z,delay:Y,easing:q}=Pm({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}=Pm({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=p_(.75),d&&d(Q)}),V=E(p),z=Q=>{y==="auto"&&(O.current=setTimeout(Q,S.current||0)),r&&r(A.current,Q)};return N.useEffect(()=>()=>{clearTimeout(O.current)},[]),$.jsx(v,L({appear:i,in:s,nodeRef:A,onEnter:D,onEntered:R,onEntering:M,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:p_(.75),visibility:Q==="exited"&&!s?"hidden":void 0},Lbe[Q],m,o.props.style),ref:w},X))}))});jQ.muiSupportAuto=!0;const FS=jQ;function Mbe(e,t,n,r,i){const[o,a]=N.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Zr(()=>{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 zQ=N.useSyncExternalStore;function $be(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 zQ(l,s,a)}function dg(e,t={}){const n=Gw(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=dQ({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(zQ!==void 0?$be:Mbe)(l,i,o,a,s)}const Fbe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Bbe=e=>{const{classes:t,disableUnderline:n}=e,i=Ct({root:["root",!n&&"underline"],input:["input"]},$he,t);return L({},t,i)},Ube=ke(ik,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nk(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"},[`&.${Zc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zc.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(.${Zc.disabled}, .${Zc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Zc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),jbe=ke(ok,{name:"MuiInput",slot:"Input",overridesResolver:rk})({}),VQ=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:v="text"}=s,b=Ge(s,Fbe),O=Bbe(s),k={root:{ownerState:{disableUnderline:l}}},A=m??c?Io(m??c,k):k,w=(r=(i=y.root)!=null?i:u.Root)!=null?r:Ube,E=(o=(a=y.input)!=null?a:u.Input)!=null?o:jbe;return $.jsx(gD,L({slots:{root:w,input:E},slotProps:A,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:v},b,{classes:O}))});VQ.muiName="Input";const HQ=VQ;function zbe(e){return At("MuiInputAdornment",e)}const Vbe=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),qB=Vbe;var ZB;const Hbe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Wbe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${tt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Qbe=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,zbe,t)},Ybe=ke("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Wbe})(({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"&&{[`&.${qB.positionStart}&:not(.${qB.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Gbe=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,Hbe),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=Qbe(m);return $.jsx(tk.Provider,{value:null,children:$.jsx(Ybe,L({as:a,ownerState:m,className:et(y.root,o),ref:n},d,{children:typeof i=="string"&&!l?$.jsx(mi,{color:"text.secondary",children:i}):$.jsxs(N.Fragment,{children:[u==="start"?ZB||(ZB=$.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),vD=Gbe;function qbe(e){return At("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Zbe=["disableAnimation","margin","shrink","variant","className"],Xbe=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,qbe,t);return L({},t,u)},Kbe=ke(uk,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mb.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)"}))),Jbe=N.forwardRef(function(t,n){const r=gt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Ge(r,Zbe),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=Xbe(d);return $.jsx(Kbe,L({"data-shrink":u,ownerState:d,ref:n,className:et(p.root,a)},s,{classes:p}))}),WQ=Jbe,eye=N.createContext({}),Hs=eye;function tye(e){return At("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const nye=["children","className","component","dense","disablePadding","subheader"],rye=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ct({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},tye,t)},iye=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})),oye=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,nye),d=N.useMemo(()=>({dense:s}),[s]),p=L({},r,{component:a,dense:s,disablePadding:l}),h=rye(p);return $.jsx(Hs.Provider,{value:d,children:$.jsxs(iye,L({as:a,className:et(h.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),QQ=oye;function aye(e){return At("MuiListItem",e)}const sye=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),sh=sye;function lye(e){return At("MuiListItemButton",e)}const uye=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),lh=uye,cye=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],dye=(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]},fye=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"]},lye,n);return L({},n,u)},pye=ke(us,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:dye})(({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"}},[`&.${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.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)}},[`&.${lh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lh.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})),hye=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,cye),y=N.useContext(Hs),v=N.useMemo(()=>({dense:l||y.dense||!1,alignItems:i,disableGutters:u}),[i,y.dense,l,u]),b=N.useRef(null);Zr(()=>{o&&b.current&&b.current.focus()},[o]);const O=L({},r,{alignItems:i,dense:v.dense,disableGutters:u,divider:c,selected:p}),S=fye(O),k=yn(b,n);return $.jsx(Hs.Provider,{value:v,children:$.jsx(pye,L({ref:k,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:et(S.focusVisible,d),ownerState:O,className:et(S.root,h)},m,{classes:S,children:s}))})}),XB=hye;function mye(e){return At("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const gye=["className"],bye=e=>{const{disableGutters:t,classes:n}=e;return Ct({root:["root",t&&"disableGutters"]},mye,n)},yye=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})),YQ=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ge(r,gye),a=N.useContext(Hs),s=L({},r,{disableGutters:a.disableGutters}),l=bye(s);return $.jsx(yye,L({className:et(l.root,i),ownerState:s,ref:n},o))});YQ.muiName="ListItemSecondaryAction";const BS=YQ,Oye=["className"],vye=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Eye=(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]},Sye=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"]},aye,r)},Tye=ke("div",{name:"MuiListItem",slot:"Root",overridesResolver:Eye})(({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&&{[`& > .${lh.root}`]:{paddingRight:48}},{[`&.${sh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sh.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)}},[`&.${sh.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"}},[`&.${sh.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})),wye=ke("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),kye=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:v=!1,disablePadding:b=!1,divider:O=!1,focusVisibleClassName:S,secondaryAction:k,selected:A=!1,slotProps:w={},slots:E={}}=r,M=Ge(r.ContainerProps,Oye),D=Ge(r,vye),R=N.useContext(Hs),B=N.useMemo(()=>({dense:m||R.dense||!1,alignItems:i,disableGutters:v}),[i,R.dense,m,v]),U=N.useRef(null);Zr(()=>{o&&U.current&&U.current.focus()},[o]);const V=N.Children.toArray(s),z=V.length&&sb(V[V.length-1],["ListItemSecondaryAction"]),Q=L({},r,{alignItems:i,autoFocus:o,button:a,dense:B.dense,disabled:y,disableGutters:v,disablePadding:b,divider:O,hasSecondaryAction:z,selected:A}),X=Sye(Q),Z=yn(U,n),Y=E.root||c.Root||Tye,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(sh.focusVisible,S),le=us),z?(le=!j.component&&!u?"div":le,p==="li"&&(le==="li"?le="div":j.component==="li"&&(j.component="div")),$.jsx(Hs.Provider,{value:B,children:$.jsxs(wye,L({as:p,className:et(X.container,h),ref:Z,ownerState:Q},M,{children:[$.jsx(Y,L({},q,!Su(Y)&&{as:le,ownerState:L({},Q,q.ownerState)},j,{children:V})),V.pop()]}))})):$.jsx(Hs.Provider,{value:B,children:$.jsxs(Y,L({},q,{as:le,ref:Z},!Su(Y)&&{ownerState:L({},Q,q.ownerState)},j,{children:[V,k&&$.jsx(BS,{children:k})]}))})}),j0=kye;function xye(e){return At("MuiListItemAvatar",e)}_t("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Cye=["className"],Aye=e=>{const{alignItems:t,classes:n}=e;return Ct({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},xye,n)},_ye=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})),Rye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ge(r,Cye),a=N.useContext(Hs),s=L({},r,{alignItems:a.alignItems}),l=Aye(s);return $.jsx(_ye,L({className:et(l.root,i),ownerState:s,ref:n},o))}),Iye=Rye;function Nye(e){return At("MuiListItemIcon",e)}const Dye=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),KB=Dye,Pye=["className"],Lye=e=>{const{alignItems:t,classes:n}=e;return Ct({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Nye,n)},Mye=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})),$ye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ge(r,Pye),a=N.useContext(Hs),s=L({},r,{alignItems:a.alignItems}),l=Lye(s);return $.jsx(Mye,L({className:et(l.root,i),ownerState:s,ref:n},o))}),GQ=$ye;function Fye(e){return At("MuiListItemText",e)}const Bye=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),US=Bye,Uye=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],jye=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"]},Fye,t)},zye=ke("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${US.primary}`]:t.primary},{[`& .${US.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})),Vye=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,Uye),{dense:h}=N.useContext(Hs);let m=l??i,y=c;const v=L({},r,{disableTypography:a,inset:s,primary:!!m,secondary:!!y,dense:h}),b=jye(v);return m!=null&&m.type!==mi&&!a&&(m=$.jsx(mi,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!==mi&&!a&&(y=$.jsx(mi,L({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:y}))),$.jsxs(zye,L({className:et(b.root,o),ownerState:v,ref:n},p,{children:[m,y]}))}),Bm=Vye,Hye=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function TC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function JB(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function qQ(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 r0(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")||!qQ(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const Wye=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,Hye),h=N.useRef(null),m=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zr(()=>{i&&h.current.focus()},[i]),N.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const A=!h.current.style.width;if(S.clientHeight{const k=h.current,A=S.key,w=Hr(k).activeElement;if(A==="ArrowDown")S.preventDefault(),r0(k,w,u,l,TC);else if(A==="ArrowUp")S.preventDefault(),r0(k,w,u,l,JB);else if(A==="Home")S.preventDefault(),r0(k,null,u,l,TC);else if(A==="End")S.preventDefault(),r0(k,null,u,l,JB);else if(A.length===1){const E=m.current,M=A.toLowerCase(),D=performance.now();E.keys.length>0&&(D-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&M!==E.keys[0]&&(E.repeating=!1)),E.lastTime=D,E.keys.push(M);const R=w&&!E.repeating&&qQ(w,E);E.previousKeyMatched&&(R||r0(k,w,!1,l,TC,E))?S.preventDefault():E.previousKeyMatched=!1}c&&c(S)},v=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 O=N.Children.map(a,(S,k)=>{if(k===b){const A={};return o&&(A.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(A.tabIndex=0),N.cloneElement(S,A)}return S});return $.jsx(QQ,L({role:"menu",ref:v,className:s,onKeyDown:y,tabIndex:i?0:-1},p,{children:O}))}),R1=Wye;function Qye(e){return At("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const Yye=["onEntering"],Gye=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],qye=["slotProps"];function e8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function t8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function n8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function wC(e){return typeof e=="function"?e():e}const Zye=e=>{const{classes:t}=e;return Ct({root:["root"],paper:["paper"]},Qye,t)},Xye=ke(lk,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZQ=ke(gs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Kye=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:v=16,open:b,PaperProps:O={},slots:S,slotProps:k,transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:w=FS,transitionDuration:E="auto",TransitionProps:{onEntering:M}={},disableScrollLock:D=!1}=a,R=Ge(a.TransitionProps,Yye),B=Ge(a,Gye),U=(r=k==null?void 0:k.paper)!=null?r:O,V=N.useRef(),z=yn(V,U.ref),Q=L({},a,{anchorOrigin:u,anchorReference:d,elevation:y,marginThreshold:v,externalPaperSlotProps:U,transformOrigin:A,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),X=Zye(Q),Z=N.useCallback(()=>{if(d==="anchorPosition")return c;const ye=wC(l),$e=(ye&&ye.nodeType===1?ye:Hr(V.current).body).getBoundingClientRect();return{top:$e.top+e8($e,u.vertical),left:$e.left+t8($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),Y=N.useCallback(ye=>({vertical:e8(ye,A.vertical),horizontal:t8(ye,A.horizontal)}),[A.horizontal,A.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:n8($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(wC(l)),_e=J.innerHeight-v,Pe=J.innerWidth-v;if(v!==null&&dt_e){const Ie=re-_e;dt-=Ie,$e.vertical+=Ie}if(v!==null&&BePe){const Ie=ee-Pe;Be-=Ie,$e.horizontal+=Ie}return{top:`${Math.round(dt)}px`,left:`${Math.round(Be)}px`,transformOrigin:n8($e)}},[l,d,Z,Y,v]),[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)=>{M&&M(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=sg(()=>{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(wC(l)).body:void 0),Ne=(i=S==null?void 0:S.root)!=null?i:Xye,Le=(o=S==null?void 0:S.paper)!=null?o:ZQ,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,qye);return $.jsx(Ne,L({},Qe,!Su(Ne)&&{slotProps:Me,disableScrollLock:D},{children:$.jsx(w,L({appear:!0,in:b,onEntering:G,onExited:ue,timeout:ge},R,{children:$.jsx(Le,L({},qe,{children:p}))}))}))}),ED=Kye;function Jye(e){return At("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const e1e=["onEntering"],t1e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],n1e={vertical:"top",horizontal:"right"},r1e={vertical:"top",horizontal:"left"},i1e=e=>{const{classes:t}=e;return Ct({root:["root"],paper:["paper"],list:["list"]},Jye,t)},o1e=ke(ED,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),a1e=ke(ZQ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),s1e=ke(R1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),l1e=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:v}={},variant:b="selectedMenu",slots:O={},slotProps:S={}}=o,k=Ge(o.TransitionProps,e1e),A=Ge(o,t1e),w=bi(),E=w.direction==="rtl",M=L({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:v,PaperProps:h,transitionDuration:y,TransitionProps:k,variant:b}),D=i1e(M),R=a&&!u&&p,B=N.useRef(null),U=(q,j)=>{B.current&&B.current.adjustStyleForScrollbar(q,w),v&&v(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=O.paper)!=null?r:a1e,X=(i=S.paper)!=null?i:h,Z=kn({elementType:O.root,externalSlotProps:S.root,ownerState:M,className:[D.root,l]}),Y=kn({elementType:Q,externalSlotProps:X,ownerState:M,className:D.paper});return $.jsx(o1e,L({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?n1e:r1e,slots:{paper:Q,root:O.root},slotProps:{root:Z,paper:Y},open:p,ref:n,transitionDuration:y,TransitionProps:L({onEntering:U},k),ownerState:M},A,{classes:m,children:$.jsx(s1e,L({onKeyDown:V,actions:B,autoFocus:a&&(z===-1||u),autoFocusItem:R,variant:b},c,{className:et(D.list,c.className),children:s}))}))}),u1e=l1e;function c1e(e){return At("MuiMenuItem",e)}const d1e=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),i0=d1e,f1e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],p1e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},h1e=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"]},c1e,a);return L({},a,l)},m1e=ke(us,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:p1e})(({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"}},[`&.${i0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${i0.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)}},[`&.${i0.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)}},[`&.${i0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${i0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${HB.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${HB.inset}`]:{marginLeft:52},[`& .${US.root}`]:{marginTop:0,marginBottom:0},[`& .${US.inset}`]:{paddingLeft:36},[`& .${KB.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&L({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${KB.root} svg`]:{fontSize:"1.25rem"}}))),g1e=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,f1e),m=N.useContext(Hs),y=N.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),v=N.useRef(null);Zr(()=>{i&&v.current&&v.current.focus()},[i]);const b=L({},r,{dense:y.dense,divider:s,disableGutters:l}),O=h1e(r),S=yn(v,n);let k;return r.disabled||(k=d!==void 0?d:-1),$.jsx(Hs.Provider,{value:y,children:$.jsx(m1e,L({ref:S,role:c,tabIndex:k,component:o,focusVisibleClassName:et(O.focusVisible,u),className:et(O.root,p)},h,{ownerState:b,classes:O}))})}),op=g1e;function b1e(e){return At("MuiNativeSelect",e)}const y1e=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),SD=y1e,O1e=["className","disabled","error","IconComponent","inputRef","variant"],v1e=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,b1e,t)},XQ=({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"},[`&.${SD.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}}),E1e=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,{[`&.${SD.multiple}`]:t.multiple}]}})(XQ),KQ=({ownerState:e,theme:t})=>L({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${SD.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),S1e=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]}})(KQ),T1e=N.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Ge(t,O1e),c=L({},t,{disabled:i,variant:l,error:o}),d=v1e(c);return $.jsxs(N.Fragment,{children:[$.jsx(E1e,L({ownerState:c,className:et(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:$.jsx(S1e,{as:a,ownerState:c,className:d.icon})]})}),w1e=T1e;var r8;const k1e=["children","classes","className","label","notched"],x1e=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%"}),C1e=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 A1e(e){const{className:t,label:n,notched:r}=e,i=Ge(e,k1e),o=n!=null&&n!=="",a=L({},e,{notched:r,withLabel:o});return $.jsx(x1e,L({"aria-hidden":!0,className:t,ownerState:a},i,{children:$.jsx(C1e,{ownerState:a,children:o?$.jsx("span",{children:n}):r8||(r8=$.jsx("span",{className:"notranslate",children:"​"}))})}))}const _1e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],R1e=e=>{const{classes:t}=e,r=Ct({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bhe,t);return L({},t,r)},I1e=ke(ik,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nk})(({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"}))}),N1e=ke(A1e,{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}}),D1e=ke(ok,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rk})(({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})),JQ=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:v="text"}=l,b=Ge(l,_1e),O=R1e(l),S=_u(),k=qd({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A=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:v}),w=(r=(i=y.root)!=null?i:u.Root)!=null?r:I1e,E=(o=(a=y.input)!=null?a:u.Input)!=null?o:D1e;return $.jsx(gD,L({slots:{root:w,input:E},renderSuffix:M=>$.jsx(N1e,{ownerState:A,className:O.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=$.jsxs(N.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:v},b,{classes:L({},O,{notchedOutline:null})}))});JQ.muiName="Input";const eY=JQ,P1e=Ti($.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"),L1e=Ti($.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"),M1e=ke("span",{shouldForwardProp:Xi})({position:"relative",display:"flex"}),$1e=ke(P1e)({transform:"scale(1)"}),F1e=ke(L1e)(({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 tY(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=L({},e,{checked:t});return $.jsxs(M1e,{className:n.root,ownerState:i,children:[$.jsx($1e,{fontSize:r,className:n.background,ownerState:i}),$.jsx(F1e,{fontSize:r,className:n.dot,ownerState:i})]})}const B1e=N.createContext(void 0),nY=B1e;function U1e(){return N.useContext(nY)}function j1e(e){return At("MuiRadio",e)}const i8=_t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),z1e=["checked","checkedIcon","color","icon","name","onChange","size","className"],V1e=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,j1e,t))},H1e=ke(yD,{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"&&{[`&.${i8.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${i8.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function W1e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const o8=$.jsx(tY,{checked:!0}),a8=$.jsx(tY,{}),Q1e=N.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=o8,color:l="primary",icon:u=a8,name:c,onChange:d,size:p="medium",className:h}=o,m=Ge(o,z1e),y=L({},o,{color:l,size:p}),v=V1e(y),b=U1e();let O=a;const S=_S(d,b&&b.onChange);let k=c;return b&&(typeof O>"u"&&(O=W1e(b.value,o.value)),typeof k>"u"&&(k=b.name)),$.jsx(H1e,L({type:"radio",icon:N.cloneElement(u,{fontSize:(r=a8.props.fontSize)!=null?r:p}),checkedIcon:N.cloneElement(s,{fontSize:(i=o8.props.fontSize)!=null?i:p}),ownerState:y,classes:v,name:k,checked:O,onChange:S,ref:n,className:et(v.root,h)},m))}),s8=Q1e,Y1e=["actions","children","defaultValue","name","onChange","value"],G1e=N.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=Ge(t,Y1e),c=N.useRef(null),[d,p]=qi({controlled:l,default:o,name:"RadioGroup"});N.useImperativeHandle(r,()=>({focus:()=>{let v=c.current.querySelector("input:not(:disabled):checked");v||(v=c.current.querySelector("input:not(:disabled)")),v&&v.focus()}}),[]);const h=yn(n,c),m=Pl(a),y=N.useMemo(()=>({name:m,onChange(v){p(v.target.value),s&&s(v,v.target.value)},value:d}),[m,s,p,d]);return $.jsx(nY.Provider,{value:y,children:$.jsx(OD,L({role:"radiogroup",ref:h},u,{children:i}))})}),q1e=G1e;function Z1e(e){return At("MuiSelect",e)}const o0=_t("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var l8;const X1e=["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"],K1e=ke("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${o0.select}`]:t.select},{[`&.${o0.select}`]:t[n.variant]},{[`&.${o0.error}`]:t.error},{[`&.${o0.multiple}`]:t.multiple}]}})(XQ,{[`&.${o0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),J1e=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]}})(KQ),eOe=ke("input",{shouldForwardProp:e=>tD(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 u8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tOe(e){return e==null||typeof e=="string"&&!e.trim()}const nOe=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,Z1e,t)},rOe=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:v,labelId:b,MenuProps:O={},multiple:S,name:k,onBlur:A,onChange:w,onClose:E,onFocus:M,onOpen:D,open:R,readOnly:B,renderValue:U,SelectDisplayProps:V={},tabIndex:z,value:Q,variant:X="standard"}=t,Z=Ge(t,X1e),[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,v),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&&A&&(Object.defineProperty(Ke,"target",{writable:!0,value:{value:Y,name:k}}),A(Ke))};delete Z["aria-invalid"];let J,_e;const Pe=[];let Ie=!1;($S({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=>u8(Ye,Ke.props.value)),vt&&Ie&&Pe.push(Ke.props.children)}else vt=u8(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},TD={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Xi(e)&&e!=="variant",slot:"Root"},lOe=ke(HQ,TD)(""),uOe=ke(eY,TD)(""),cOe=ke(BQ,TD)(""),rY=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=DQ,id:d,input:p,inputProps:h,label:m,labelId:y,MenuProps:v,multiple:b=!1,native:O=!1,onClose:S,onOpen:k,open:A,renderValue:w,SelectDisplayProps:E,variant:M="outlined"}=r,D=Ge(r,oOe),R=O?w1e:iOe,B=_u(),U=qd({props:r,muiFormControl:B,states:["variant","error"]}),V=U.variant||M,z=L({},r,{variant:V,classes:a}),Q=sOe(z),X=Ge(Q,aOe),Z=p||{standard:$.jsx(lOe,{ownerState:z}),outlined:$.jsx(uOe,{label:m,ownerState:z}),filled:$.jsx(cOe,{ownerState:z})}[V],Y=yn(n,Z.ref);return $.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},O?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:v,onClose:S,onOpen:k,open:A,renderValue:w,SelectDisplayProps:L({id:d},E)},h,{classes:h?Io(X,h.classes):X},p?p.props.inputProps:{})},b&&O&&V==="outlined"?{notched:!0}:{},{ref:Y,className:et(Z.props.className,s,Q.root)},!p&&{variant:V},D))})});rY.muiName="Select";const iY=rY,dOe=e=>!e||!Su(e);function fOe(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"]),pOe=e=>{const{open:t}=e;return{offset:et(t&&El.valueLabelOpen),circle:El.valueLabelCircle,label:El.valueLabelLabel}};function hOe(e){const{children:t,className:n,value:r}=e,i=pOe(e);return t?N.cloneElement(t,{className:et(t.props.className)},$.jsxs(N.Fragment,{children:[t.props.children,$.jsx("span",{className:et(i.offset,n),"aria-hidden":!0,children:$.jsx("span",{className:i.circle,children:$.jsx("span",{className:i.label,children:r})})})]})):null}const mOe=["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 c8(e){return e}const gOe=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"}}})),bOe=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})),yOe=ke("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?JN(e.palette[t.color].main,.62):KN(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})}),OOe=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"}}})),vOe=ke(hOe,{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"})),EOe=ke("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>tD(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})),SOe=ke("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>tD(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})),TOe=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,fOe,a)},wOe=({children:e})=>e,kOe=N.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,y,v,b,O,S,k,A,w,E,M,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=c8,slotProps:ze,slots:$e,track:He="normal",valueLabelDisplay:dt="off",valueLabelFormat:Be=c8}=B,re=Ge(B,mOe),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}=ahe(L({},ee,{rootRef:n}));ee.marked=pt.length>0&&pt.some(Ue=>Ue.label),ee.dragging=nt,ee.focusedThumbIndex=Oe;const it=TOe(ee),Et=(r=(i=$e==null?void 0:$e.root)!=null?i:Y.Root)!=null?r:gOe,Dt=(o=(a=$e==null?void 0:$e.rail)!=null?a:Y.Rail)!=null?o:bOe,rn=(s=(l=$e==null?void 0:$e.track)!=null?l:Y.Track)!=null?s:yOe,cn=(u=(c=$e==null?void 0:$e.thumb)!=null?c:Y.Thumb)!=null?u:OOe,fn=(d=(p=$e==null?void 0:$e.valueLabel)!=null?p:Y.ValueLabel)!=null?d:vOe,zn=(h=(m=$e==null?void 0:$e.mark)!=null?m:Y.Mark)!=null?h:EOe,ve=(y=(v=$e==null?void 0:$e.markLabel)!=null?v:Y.MarkLabel)!=null?y:SOe,Ae=(b=(O=$e==null?void 0:$e.input)!=null?O: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=(A=ze==null?void 0:ze.track)!=null?A: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=(M=ze==null?void 0:ze.mark)!=null?M: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({},dOe(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 $.jsxs(Et,L({},Re,{children:[$.jsx(Dt,L({},Te)),$.jsx(rn,L({},We)),pt.filter(Ue=>Ue.value>=qe&&Ue.value<=Le).map((Ue,xe)=>{const mt=MS(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]),$.jsxs(N.Fragment,{children:[$.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?$.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=MS(Ue,qe,Le),Nt=J[ce].offset(mt),en=dt==="off"?wOe:fn;return $.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:$.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:$.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)})]}))}),xOe=kOe;function COe(e){return At("MuiTooltip",e)}const AOe=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ld=AOe,_Oe=["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 ROe(e){return Math.round(e*1e5)/1e5}const IOe=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,COe,t)},NOe=ke(A1,{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"] .${ld.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ld.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ld.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"] .${ld.arrow}`]:L({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),DOe=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:`${ROe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ld.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"})),[`.${ld.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"})),[`.${ld.popper}[data-popper-placement*="top"] &`]:L({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ld.popper}[data-popper-placement*="bottom"] &`]:L({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),POe=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 lv=!1,kC=null,a0={x:0,y:0};function uv(e,t){return n=>{t&&t(n),e(n)}}const LOe=N.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,y,v,b,O,S,k,A;const w=gt({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:M,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=FS,TransitionProps:ye}=w,ze=Ge(w,_Oe),$e=N.isValidElement(M)?M:$.jsx("span",{children:M}),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(kC),lv=!0,Se(!0),ue&&!nt&&ue(Xt)},Ye=jt(Xt=>{clearTimeout(kC),kC=setTimeout(()=>{lv=!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||lv&&Z?ie.current=setTimeout(()=>{vt(Xt)},lv?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}=Bw(),[,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),a0={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=uv(lt,We.onMouseOver),We.onMouseLeave=uv(at,We.onMouseLeave),Pe||(ot.onMouseOver=lt,ot.onMouseLeave=at)),U||(We.onFocus=uv(Ae,We.onFocus),We.onBlur=uv(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=IOe(Wt),tr=(r=(i=rt.popper)!=null?i:D.Popper)!=null?r:NOe,Ue=(o=(a=(s=rt.transition)!=null?s:D.Transition)!=null?a:Qe)!=null?o:FS,xe=(l=(u=rt.tooltip)!=null?u:D.Tooltip)!=null?l:DOe,mt=(c=(d=rt.arrow)!=null?d:D.Arrow)!=null?c:POe,Nt=B0(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=B0(Ue,L({},ye,(y=qe.transition)!=null?y:R.transition),Wt),Mn=B0(xe,L({},(v=qe.tooltip)!=null?v:R.tooltip,{className:et(hn.tooltip,(b=(O=qe.tooltip)!=null?O:R.tooltip)==null?void 0:b.className)}),Wt),Nn=B0(mt,L({},(S=qe.arrow)!=null?S:R.arrow,{className:et(hn.arrow,(k=(A=qe.arrow)!=null?A:R.arrow)==null?void 0:k.className)}),Wt);return $.jsxs(N.Fragment,{children:[N.cloneElement($e,We),$.jsx(tr,L({as:Ne??A1,placement:he,anchorEl:q?{getBoundingClientRect:()=>({top:a0.y,left:a0.x,right:a0.x,bottom:a0.y,width:0,height:0})}:Be,popperRef:xt,open:Be?nt:!1,id:pt,transition:!0},ot,Nt,{popperOptions:nn,children:({TransitionProps:Xt})=>$.jsx(Ue,L({timeout:He.transitions.duration.shorter},Xt,en,{children:$.jsxs(xe,L({},Mn,{children:[Me,E?$.jsx(mt,L({},Nn,{ref:J})):null]}))}))}))]})}),cv=LOe;function MOe(e){return At("MuiSwitch",e)}const $Oe=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Qo=$Oe,FOe=["className","color","edge","size","sx"],BOe=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,MOe,t);return L({},t,l)},UOe=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)"}}})),jOe=ke(yD,{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"?JN(e.palette[t.color].main,.62):KN(e.palette[t.color].main,.55)}`}},[`&.${Qo.checked} + .${Qo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),zOe=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}`})),VOe=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%"})),HOe=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,FOe),c=L({},r,{color:o,edge:a,size:s}),d=BOe(c),p=$.jsx(VOe,{className:d.thumb,ownerState:c});return $.jsxs(UOe,{className:et(d.root,i),sx:l,ownerState:c,children:[$.jsx(jOe,L({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:L({},d,{root:d.switchBase})})),$.jsx(zOe,{className:d.track,ownerState:c})]})}),WOe=HOe;function QOe(e){return At("MuiTab",e)}const YOe=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),lf=YOe,GOe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],qOe=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,QOe,t)},ZOe=ke(us,{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)})),XOe=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:v,textColor:b="inherit",value:O,wrapped:S=!1}=r,k=Ge(r,GOe),A=L({},r,{disabled:o,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:b,wrapped:S}),w=qOe(A),E=l&&d&&N.isValidElement(l)?N.cloneElement(l,{className:et(w.iconWrapper,l.props.className)}):l,M=R=>{!y&&p&&p(R,O),h&&h(R)},D=R=>{v&&!y&&p&&p(R,O),m&&m(R)};return $.jsxs(ZOe,L({focusRipple:!a,className:et(w.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:M,onFocus:D,ownerState:A,tabIndex:y?0:-1},k,{children:[u==="top"||u==="start"?$.jsxs(N.Fragment,{children:[E,d]}):$.jsxs(N.Fragment,{children:[d,E]}),c]}))}),d8=XOe;function KOe(e){return At("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const JOe=["className","component","disableGutters","variant"],eve=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ct({root:["root",!n&&"gutters",r]},KOe,t)},tve=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),nve=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,JOe),u=L({},r,{component:o,disableGutters:a,variant:s}),c=eve(u);return $.jsx(tve,L({as:o,className:et(c.root,i),ref:n,ownerState:u},l))}),rve=nve,ive=Ti($.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ove=Ti($.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ave(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function sve(e,t,n,r={},i=()=>{}){const{ease:o=ave,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 lve=["onChange"],uve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function cve(e){const{onChange:t}=e,n=Ge(e,lve),r=N.useRef(),i=N.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Zr(()=>{const a=sg(()=>{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]),$.jsx("div",L({style:uve,ref:i},n))}function dve(e){return At("MuiTabScrollButton",e)}const fve=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),pve=fve,hve=["className","slots","slotProps","direction","orientation","disabled"],mve=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ct({root:["root",n,r&&"disabled"]},dve,t)},gve=ke(us,{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,[`&.${pve.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),bve=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,hve),p=bi().direction==="rtl",h=L({isRtl:p},o),m=mve(h),y=(r=s.StartScrollButtonIcon)!=null?r:ive,v=(i=s.EndScrollButtonIcon)!=null?i:ove,b=kn({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),O=kn({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return $.jsx(gve,L({component:"div",className:et(m.root,a),ref:n,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?$.jsx(y,L({},b)):$.jsx(v,L({},O))}))}),yve=bve;function Ove(e){return At("MuiTabs",e)}const vve=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),vE=vve,Eve=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],f8=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,p8=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,dv=(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}}},Sve=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"]},Ove,l)},Tve=ke("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vE.scrollButtons}`]:t.scrollButtons},{[`& .${vE.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&&{[`& .${vE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),wve=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"})),kve=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"})),xve=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})),Cve=ke(cve)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),h8={},Ave=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:v="horizontal",ScrollButtonComponent:b=yve,scrollButtons:O="auto",selectionFollowsFocus:S,slots:k={},slotProps:A={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:M="primary",value:D,variant:R="standard",visibleScrollbar:B=!1}=r,U=Ge(r,Eve),V=R==="scrollable",z=v==="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:v,vertical:z,scrollButtons:O,textColor:M,variant:R,visibleScrollbar:B,fixed:!V,hideScrollbar:V&&!B,scrollableX:V&&!z,scrollableY:V&&z,centered:u&&!V,scrollButtonsHideMobile:!h}),le=Sve(j),Ee=kn({elementType:k.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:j}),G=kn({elementType:k.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:j}),[ue,ge]=N.useState(!1),[he,Ne]=N.useState(h8),[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:Zle(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?sve(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&&nQ()==="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?$.jsx(Cve,{onChange:de,className:et(le.scrollableX,le.hideScrollbar)}):null;const Et=V&&(O==="auto"&&(Le||rt)||O===!0);return Ye.scrollButtonStart=Et?$.jsx(b,L({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ee},orientation:v,direction:o?"right":"left",onClick:Ie,disabled:!Le},E,{className:et(le.scrollButtons,E.className)})):null,Ye.scrollButtonEnd=Et?$.jsx(b,L({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:G},orientation:v,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&&O!==!1&&ye(!Qe)});N.useEffect(()=>{const Ye=sg(()=>{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&&O!==!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,O,Qe,c==null?void 0:c.length]),N.useEffect(()=>{ge(!0)},[]),N.useEffect(()=>{ee()}),N.useEffect(()=>{Oe(h8!==he)},[Oe,he]),N.useImperativeHandle(l,()=>({updateIndicator:ee,updateScrollButtons:Se}),[ee,Se]);const nt=$.jsx(xve,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:M,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=v==="horizontal"?"ArrowLeft":"ArrowUp",cn=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&o&&(rn="ArrowRight",cn="ArrowLeft"),Ye.key){case rn:Ye.preventDefault(),dv(it,Et,p8);break;case cn:Ye.preventDefault(),dv(it,Et,f8);break;case"Home":Ye.preventDefault(),dv(it,null,f8);break;case"End":Ye.preventDefault(),dv(it,null,p8);break}},vt=ce();return $.jsxs(Tve,L({className:et(le.root,d),ownerState:j,ref:n,as:p},U,{children:[vt.scrollButtonStart,vt.scrollbarSizeListener,$.jsxs(wve,{className:le.scroller,ownerState:j,style:{overflow:ze.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:B?void 0:-ze.scrollbarWidth},ref:dt,children:[$.jsx(kve,{"aria-label":a,"aria-labelledby":s,"aria-orientation":v==="vertical"?"vertical":null,className:le.flexContainer,ownerState:j,onKeyDown:Ke,ref:Be,role:"tablist",children:kt}),ue&&nt]}),vt.scrollButtonEnd]}))}),_ve=Ave;function Rve(e){return At("MuiTextField",e)}_t("MuiTextField",["root"]);const Ive=["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"],Nve={standard:HQ,filled:BQ,outlined:eY},Dve=e=>{const{classes:t}=e;return Ct({root:["root"]},Rve,t)},Pve=ke(Op,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lve=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:v,inputProps:b,InputProps:O,inputRef:S,label:k,maxRows:A,minRows:w,multiline:E=!1,name:M,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,Ive),le=L({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:V,select:Q,variant:q}),Ee=Dve(le),G={};q==="outlined"&&(v&&typeof v.shrink<"u"&&(G.notched=v.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=Nve[q],Le=$.jsx(Ne,L({"aria-describedby":ge,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:h,multiline:E,name:M,rows:z,maxRows:A,minRows:w,type:Z,value:Y,id:ue,inputRef:S,onBlur:D,onChange:R,onFocus:B,placeholder:U,inputProps:b},G,O));return $.jsxs(Pve,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!==""&&$.jsx(WQ,L({htmlFor:ue,id:he},v,{children:k})),Q?$.jsx(iY,L({"aria-describedby":ge,id:ue,labelId:he,value:Y,input:Le},X,{children:a})):Le,m&&$.jsx(cg,L({id:ge},p,{children:m}))]}))}),vp=Lve;function Mve(e){return At("MuiToggleButton",e)}const $ve=_t("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Rh=$ve,Fve=N.createContext({}),oY=Fve,Bve=N.createContext(void 0),aY=Bve;function Uve(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const jve=["value"],zve=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],Vve=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,Mve,t)},Hve=ke(us,{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%"},{[`&.${Rh.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"}},[`&.${Rh.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)})}),Wve=N.forwardRef(function(t,n){const r=N.useContext(oY),{value:i}=r,o=Ge(r,jve),a=N.useContext(aY),s=Uw(L({},o,{selected:Uve(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:v,selected:b,size:O="medium",value:S}=l,k=Ge(l,zve),A=L({},l,{color:d,disabled:p,disableFocusRipple:h,fullWidth:m,size:O}),w=Vve(A),E=D=>{v&&(v(D,S),D.defaultPrevented)||y&&y(D,S)},M=a||"";return $.jsx(Hve,L({className:et(o.className,w.root,c,M),disabled:p,focusRipple:!h,ref:n,onClick:E,onChange:y,value:S,ownerState:A,"aria-pressed":b},k,{children:u}))}),xC=Wve;function Qve(e){return At("MuiToggleButtonGroup",e)}const Yve=_t("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Br=Yve,Gve=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],qve=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,Qve,t)},Zve=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}.${Rh.disabled},& .${Br.middleButton}.${Rh.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Br.lastButton}.${Rh.disabled},& .${Br.middleButton}.${Rh.disabled}`]:{borderTop:"1px solid transparent"}})),Xve=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,Gve),y=L({},r,{disabled:s,fullWidth:u,orientation:d,size:p}),v=qve(y),b=N.useCallback((E,M)=>{if(!c)return;const D=h&&h.indexOf(M);let R;h&&D>=0?(R=h.slice(),R.splice(D,1)):R=h?h.concat(M):[M],c(E,R)},[c,h]),O=N.useCallback((E,M)=>{c&&c(E,h===M?null:M)},[c,h]),S=N.useMemo(()=>({className:v.grouped,onChange:l?O:b,value:h,size:p,fullWidth:u,color:a,disabled:s}),[v.grouped,l,O,b,h,p,u,a,s]),k=Kle(i),A=k.length,w=E=>{const M=E===0,D=E===A-1;return M&&D?"":M?v.firstButton:D?v.lastButton:v.middleButton};return $.jsx(Zve,L({role:"group",className:et(v.root,o),ref:n,ownerState:y},m,{children:$.jsx(oY.Provider,{value:S,children:k.map((E,M)=>$.jsx(aY.Provider,{value:w(M),children:E},M))})}))}),Kve=Xve;var sY={exports:{}},lY={};/** * @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 _1=N;function Vve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hve=typeof Object.is=="function"?Object.is:Vve,Wve=_1.useSyncExternalStore,Qve=_1.useRef,Yve=_1.useEffect,Gve=_1.useMemo,qve=_1.useDebugValue;nY.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Qve(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Gve(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,Hve(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=Wve(e,o[0],o[1]);return Yve(function(){a.hasValue=!0,a.value=s},[s]),qve(s),s};tY.exports=nY;var Zve=tY.exports,ts="default"in wm?vn:wm,h8=Symbol.for("react-redux-context"),m8=typeof globalThis<"u"?globalThis:{};function Xve(){if(!ts.createContext)return{};const e=m8[h8]??(m8[h8]=new Map);let t=e.get(ts.createContext);return t||(t=ts.createContext(null),e.set(ts.createContext,t)),t}var Pd=Xve(),Kve=()=>{throw new Error("uSES not initialized!")};function wD(e=Pd){return function(){return ts.useContext(e)}}var rY=wD(),iY=Kve,Jve=e=>{iY=e},eEe=(e,t)=>e===t;function tEe(e=Pd){const t=e===Pd?rY:wD(e);return function(r,i={}){const{equalityFn:o=eEe,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();ts.useRef(!0);const p=ts.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,a.stabilityCheck]),h=iY(l.addNestedSub,s.getState,u||s.getState,p,o);return ts.useDebugValue(h),h}}var Tc=tEe();function nEe(e){e()}function rEe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){nEe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){let n=[],r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0,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 g8={notify(){},get:()=>[]};function iEe(e,t){let n,r=g8,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=rEe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=g8)}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 oEe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aEe=oEe?ts.useLayoutEffect:ts.useEffect;function sEe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ts.useMemo(()=>{const u=iEe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=ts.useMemo(()=>e.getState(),[e]);aEe(()=>{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 ts.createElement(l.Provider,{value:a},n)}var lEe=sEe;function oY(e=Pd){const t=e===Pd?rY:wD(e);return function(){const{store:r}=t();return r}}var uEe=oY();function cEe(e=Pd){const t=e===Pd?uEe:oY(e);return function(){return t().dispatch}}var dg=cEe();Jve(Zve.useSyncExternalStoreWithSelector);/** + */var I1=N;function Jve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eEe=typeof Object.is=="function"?Object.is:Jve,tEe=I1.useSyncExternalStore,nEe=I1.useRef,rEe=I1.useEffect,iEe=I1.useMemo,oEe=I1.useDebugValue;lY.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=nEe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=iEe(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,eEe(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=tEe(e,o[0],o[1]);return rEe(function(){a.hasValue=!0,a.value=s},[s]),oEe(s),s};sY.exports=lY;var aEe=sY.exports,ns="default"in km?vn:km,m8=Symbol.for("react-redux-context"),g8=typeof globalThis<"u"?globalThis:{};function sEe(){if(!ns.createContext)return{};const e=g8[m8]??(g8[m8]=new Map);let t=e.get(ns.createContext);return t||(t=ns.createContext(null),e.set(ns.createContext,t)),t}var Pd=sEe(),lEe=()=>{throw new Error("uSES not initialized!")};function wD(e=Pd){return function(){return ns.useContext(e)}}var uY=wD(),cY=lEe,uEe=e=>{cY=e},cEe=(e,t)=>e===t;function dEe(e=Pd){const t=e===Pd?uY:wD(e),n=(r,i={})=>{const{equalityFn:o=cEe,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();ns.useRef(!0);const p=ns.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,a.stabilityCheck]),h=cY(l.addNestedSub,s.getState,u||s.getState,p,o);return ns.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var Tc=dEe();function fEe(e){e()}function pEe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){fEe(()=>{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 b8={notify(){},get:()=>[]};function hEe(e,t){let n,r=b8,i=0,o=!1;function a(y){c();const v=r.subscribe(y);let b=!1;return()=>{b||(b=!0,v(),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=pEe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=b8)}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 mEe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gEe=mEe?ns.useLayoutEffect:ns.useEffect;function bEe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ns.useMemo(()=>{const u=hEe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=ns.useMemo(()=>e.getState(),[e]);gEe(()=>{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 ns.createElement(l.Provider,{value:a},n)}var yEe=bEe;function dY(e=Pd){const t=e===Pd?uY:wD(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var OEe=dY();function vEe(e=Pd){const t=e===Pd?OEe:dY(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var fg=vEe();uEe(aEe.useSyncExternalStoreWithSelector);/** * @remix-run/router v1.14.2 * * Copyright (c) Remix Software Inc. @@ -170,9 +170,9 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ap(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fEe(){return Math.random().toString(36).substr(2,8)}function y8(e,t){return{usr:e.state,key:e.key,idx:t}}function cy(e,t,n,r){return n===void 0&&(n=null),oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wc(t):t,{state:n,key:t&&t.key||r||fEe()})}function R1(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 wc(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 pEe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=ci.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(oi({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=ci.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=ci.Push;let v=cy(y.location,O,b);n&&n(v,O),u=c()+1;let S=y8(v,u),k=y.createHref(v);try{a.pushState(S,"",k)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(k)}o&&l&&l({action:s,location:y.location,delta:1})}function h(O,b){s=ci.Replace;let v=cy(y.location,O,b);n&&n(v,O),u=c();let S=y8(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:R1(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(b8,d),l=O,()=>{i.removeEventListener(b8,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 ri;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ri||(ri={}));const hEe=new Set(["lazy","caseSensitive","path","id","index","children"]);function mEe(e){return e.index===!0}function p_(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`),mEe(i)){let l=oi({},i,t(i),{id:s});return r[s]=l,l}else{let l=oi({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=p_(i.children,t,a,r)),l}})}function Rh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?wc(t):t,i=I1(r.pathname||"/",n);if(i==null)return null;let o=aY(e);bEe(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+'".')),aY(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:wEe(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 sY(o.path))i(o,a,l)}),t}function sY(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=sY(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 bEe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:kEe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const yEe=/^:[\w-]+$/,OEe=3,vEe=2,EEe=1,SEe=10,TEe=-2,O8=e=>e==="*";function wEe(e,t){let n=e.split("/"),r=n.length;return n.some(O8)&&(r+=TEe),t&&(r+=vEe),n.filter(i=>!O8(i)).reduce((i,o)=>i+(yEe.test(o)?OEe:o===""?EEe:SEe),r)}function kEe(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 xEe(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]=REe(m||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function AEe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ap(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 _Ee(e){try{return decodeURI(e)}catch(t){return ap(!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 REe(e,t){try{return decodeURIComponent(e)}catch(n){return ap(!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 I1(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 IEe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?wc(e):e;return{pathname:n?n.startsWith("/")?n:NEe(n,t):t,search:PEe(r),hash:LEe(i)}}function NEe(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 xC(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 lY(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kD(e,t){let n=lY(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xD(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=wc(e):(i=oi({},e),Bn(!i.pathname||!i.pathname.includes("?"),xC("?","pathname","search",i)),Bn(!i.pathname||!i.pathname.includes("#"),xC("#","pathname","hash",i)),Bn(!i.search||!i.search.includes("#"),xC("#","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=IEe(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,"/"),DEe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PEe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,LEe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class CD{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 uY(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cY=["post","put","patch","delete"],MEe=new Set(cY),$Ee=["get",...cY],FEe=new Set($Ee),BEe=new Set([301,302,303,307,308]),UEe=new Set([307,308]),CC={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},a0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},dY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zEe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),fY="remix-router-transitions";function VEe(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=Ce=>({hasErrorBoundary:ve(Ce)})}else i=zEe;let o={},a=p_(e.routes,i,void 0,o),s,l=e.basename||"/",u=oi({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=Rh(a,e.history.location,l),b=null;if(O==null){let ve=Cs(404,{pathname:e.history.location.pathname}),{matches:Ce,route:fe}=C8(a);O=Ce,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,Ce=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||Ce&&Ce[fe.route.id]!==void 0))}else v=e.hydrationData!=null;let A,w={historyAction:e.history.action,location:e.history.location,matches:O,initialized:v,navigation:CC,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=ci.Pop,M=!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:Ce,location:fe,delta:lt}=ve;if(Ne){Ne=!1;return}ap(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:Ce});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,a0),Me({blockers:Mt})}});return}return $e(Ce,fe)}),n){eSe(t,B);let ve=()=>tSe(t,B);t.addEventListener("pagehide",ve),U=()=>t.removeEventListener("pagehide",ve)}return w.initialized||$e(ci.Pop,w.location,{initialHydration:!0}),A}function qe(){c&&c(),U&&U(),d.clear(),D&&D.abort(),w.fetchers.forEach((ve,Ce)=>ce(Ce)),w.blockers.forEach((ve,Ce)=>Ot(Ce))}function rt(ve){return d.add(ve),()=>d.delete(ve)}function Me(ve,Ce){Ce===void 0&&(Ce={}),w=oi({},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:Ce.viewTransitionOpts,unstable_flushSync:Ce.flushSync===!0})),u.v7_fetcherPersist&&(fe.forEach(at=>w.fetchers.delete(at)),lt.forEach(at=>ce(at)))}function We(ve,Ce,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;Ce.actionData?Object.keys(Ce.actionData).length>0?It=Ce.actionData:It=null:$t?It=w.actionData:It=null;let xt=Ce.loaderData?x8(w.loaderData,Ce.loaderData,Ce.matches||[],Ce.errors):w.loaderData,qt=w.blockers;qt.size>0&&(qt=new Map(qt),qt.forEach((He,ot)=>qt.set(ot,a0)));let Re=M===!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===ci.Pop||(E===ci.Push?e.history.push(ve,ve.state):E===ci.Replace&&e.history.replace(ve,ve.state));let Te;if(E===ci.Pop){let He=B.get(w.location.pathname);He&&He.has(ve.pathname)?Te={currentLocation:w.location,nextLocation:ve}:B.has(ve.pathname)&&(Te={currentLocation:ve,nextLocation:w.location})}else if(R){let He=B.get(w.location.pathname);He?He.add(ve.pathname):(He=new Set([ve.pathname]),B.set(w.location.pathname,He)),Te={currentLocation:w.location,nextLocation:ve}}Me(oi({},Ce,{actionData:It,loaderData:xt,historyAction:E,location:ve,initialized:!0,navigation:CC,revalidation:"idle",restoreScrollPosition:fn(ve,Ce.matches||w.matches),preventScrollReset:Re,blockers:qt}),{viewTransitionOpts:Te,flushSync:Mt===!0}),E=ci.Pop,M=!1,R=!1,V=!1,z=!1,Q=[],X=[]}async function ye(ve,Ce){if(typeof ve=="number"){e.history.go(ve);return}let fe=h_(w.location,w.matches,l,u.v7_prependBasename,ve,u.v7_relativeSplatPath,Ce==null?void 0:Ce.fromRouteId,Ce==null?void 0:Ce.relative),{path:lt,submission:at,error:Mt}=v8(u.v7_normalizeFormMethod,!1,fe,Ce),$t=w.location,It=cy(w.location,lt,Ce&&Ce.state);It=oi({},It,e.history.encodeLocation(It));let xt=Ce&&Ce.replace!=null?Ce.replace:void 0,qt=ci.Push;xt===!0?qt=ci.Replace:xt===!1||at!=null&&fl(at.formMethod)&&at.formAction===w.location.pathname+w.location.search&&(qt=ci.Replace);let Re=Ce&&"preventScrollReset"in Ce?Ce.preventScrollReset===!0:void 0,Te=(Ce&&Ce.unstable_flushSync)===!0,He=it({currentLocation:$t,nextLocation:It,historyAction:qt});if(He){Ye(He,{state:"blocked",location:It,proceed(){Ye(He,{state:"proceeding",proceed:void 0,reset:void 0,location:It}),ye(ve,Ce)},reset(){let ot=new Map(w.blockers);ot.set(He,a0),Me({blockers:ot})}});return}return await $e(qt,It,{submission:at,pendingError:Mt,preventScrollReset:Re,replace:Ce&&Ce.replace,enableViewTransition:Ce&&Ce.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,Ce,fe){D&&D.abort(),D=null,E=ve,V=(fe&&fe.startUninterruptedRevalidation)===!0,cn(w.location,w.matches),M=(fe&&fe.preventScrollReset)===!0,R=(fe&&fe.enableViewTransition)===!0;let lt=s||a,at=fe&&fe.overrideNavigation,Mt=Rh(lt,Ce,l),$t=(fe&&fe.flushSync)===!0;if(!Mt){let ot=Cs(404,{pathname:Ce.pathname}),{matches:nn,route:Wt}=C8(lt);vt(),We(Ce,{matches:nn,loaderData:{},errors:{[Wt.id]:ot}},{flushSync:$t});return}if(w.initialized&&!z&&GEe(w.location,Ce)&&!(fe&&fe.submission&&fl(fe.submission.formMethod))){We(Ce,{matches:Mt},{flushSync:$t});return}D=new AbortController;let It=l0(e.history,Ce,D.signal,fe&&fe.submission),xt,qt;if(fe&&fe.pendingError)qt={[hb(Mt).route.id]:fe.pendingError};else if(fe&&fe.submission&&fl(fe.submission.formMethod)){let ot=await Ve(It,Ce,fe.submission,Mt,{replace:fe.replace,flushSync:$t});if(ot.shortCircuited)return;xt=ot.pendingActionData,qt=ot.pendingActionError,at=AC(Ce,fe.submission),$t=!1,It=new Request(It.url,{signal:It.signal})}let{shortCircuited:Re,loaderData:Te,errors:He}=await dt(It,Ce,Mt,at,fe&&fe.submission,fe&&fe.fetcherSubmission,fe&&fe.replace,fe&&fe.initialHydration===!0,$t,xt,qt);Re||(D=null,We(Ce,oi({matches:Mt},xt?{actionData:xt}:{},{loaderData:Te,errors:He})))}async function Ve(ve,Ce,fe,lt,at){at===void 0&&(at={}),Pe();let Mt=KEe(Ce,fe);Me({navigation:Mt},{flushSync:at.flushSync===!0});let $t,It=g_(lt,Ce);if(!It.route.action&&!It.route.lazy)$t={type:ri.error,error:Cs(405,{method:ve.method,pathname:Ce.pathname,routeId:It.route.id})};else if($t=await s0("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(Ih($t)){let xt=hb(lt,It.route.id);return(at&&at.replace)!==!0&&(E=ci.Push),{pendingActionData:{},pendingActionError:{[xt.route.id]:$t.error}}}if(_f($t))throw Cs(400,{type:"defer-action"});return{pendingActionData:{[It.route.id]:$t.data}}}async function dt(ve,Ce,fe,lt,at,Mt,$t,It,xt,qt,Re){let Te=lt||AC(Ce,at),He=at||Mt||R8(Te),ot=s||a,[nn,Wt]=E8(e.history,w,fe,He,Ce,u.v7_partialHydration&&It===!0,z,Q,X,ue,Ee,le,ot,l,qt,Re);if(vt(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 We(Ce,oi({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=u0(void 0,Qn?Qn.data:void 0);w.fetchers.set(Wn.key,ht)});let gn=qt||w.actionData;Me(oi({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=A8(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}=k8(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 oi({loaderData:Nt,errors:en},Xt?{fetchers:new Map(w.fetchers)}:{})}function Be(ve,Ce,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=h_(w.location,w.matches,l,u.v7_prependBasename,fe,u.v7_relativeSplatPath,Ce,lt==null?void 0:lt.relative),It=Rh(Mt,$t,l);if(!It){ie(ve,Ce,Cs(404,{pathname:$t}),{flushSync:at});return}let{path:xt,submission:qt,error:Re}=v8(u.v7_normalizeFormMethod,!0,$t,lt);if(Re){ie(ve,Ce,Re,{flushSync:at});return}let Te=g_(It,xt);if(M=(lt&<.preventScrollReset)===!0,qt&&fl(qt.formMethod)){re(ve,Ce,xt,Te,It,at,qt);return}Ee.set(ve,{routeId:Ce,path:xt}),ee(ve,Ce,xt,Te,It,at,qt)}async function re(ve,Ce,fe,lt,at,Mt,$t){if(Pe(),Ee.delete(ve),!lt.route.action&&!lt.route.lazy){let Wn=Cs(405,{method:$t.formMethod,pathname:fe,routeId:Ce});ie(ve,Ce,Wn,{flushSync:Mt});return}let It=w.fetchers.get(ve);Ie(ve,JEe($t,It),{flushSync:Mt});let xt=new AbortController,qt=l0(e.history,fe,xt.signal,$t);Z.set(ve,xt);let Re=Y,Te=await s0("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)||Ih(Te)){Ie(ve,Bc(void 0));return}}else{if(Rf(Te))if(Z.delete(ve),q>Re){Ie(ve,Bc(void 0));return}else return le.add(ve),Ie(ve,u0($t)),J(w,Te,{fetcherSubmission:$t});if(Ih(Te)){ie(ve,Ce,Te.error);return}}if(_f(Te))throw Cs(400,{type:"defer-action"});let He=w.navigation.location||w.location,ot=l0(e.history,He,xt.signal),nn=s||a,Wt=w.navigation.state!=="idle"?Rh(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=u0($t,Te.data);w.fetchers.set(ve,tr);let[Ue,xe]=E8(e.history,w,Wt,$t,He,!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=u0(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=A8(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}=k8(w,w.matches,Ue,en,void 0,xe,Mn,ge);if(w.fetchers.has(ve)){let Wn=Bc(Te.data);w.fetchers.set(ve,Wn)}kt(hn),w.navigation.state==="loading"&&hn>q?(Bn(E,"Expected pending action"),D&&D.abort(),We(w.navigation.location,{matches:Wt,loaderData:Xt,errors:gn,fetchers:new Map(w.fetchers)})):(Me({errors:gn,loaderData:x8(w.loaderData,Xt,Wt,gn),fetchers:new Map(w.fetchers)}),z=!1)}async function ee(ve,Ce,fe,lt,at,Mt,$t){let It=w.fetchers.get(ve);Ie(ve,u0($t,It?It.data:void 0),{flushSync:Mt});let xt=new AbortController,qt=l0(e.history,fe,xt.signal);Z.set(ve,xt);let Re=Y,Te=await s0("loader",qt,lt,at,o,i,l,u.v7_relativeSplatPath);if(_f(Te)&&(Te=await mY(Te,qt.signal,!0)||Te),Z.get(ve)===xt&&Z.delete(ve),!qt.signal.aborted){if(ue.has(ve)){Ie(ve,Bc(void 0));return}if(Rf(Te))if(q>Re){Ie(ve,Bc(void 0));return}else{le.add(ve),await J(w,Te);return}if(Ih(Te)){ie(ve,Ce,Te.error);return}Bn(!_f(Te),"Unhandled fetcher deferred data"),Ie(ve,Bc(Te.data))}}async function J(ve,Ce,fe){let{submission:lt,fetcherSubmission:at,replace:Mt}=fe===void 0?{}:fe;Ce.revalidate&&(z=!0);let $t=cy(ve.location,Ce.location,{_isRedirect:!0});if(Bn($t,"Expected a location on the redirect navigation"),n){let He=!1;if(Ce.reloadDocument)He=!0;else if(dY.test(Ce.location)){const ot=e.history.createURL(Ce.location);He=ot.origin!==t.location.origin||I1(ot.pathname,l)==null}if(He){Mt?t.location.replace(Ce.location):t.location.assign(Ce.location);return}}D=null;let It=Mt===!0?ci.Replace:ci.Push,{formMethod:xt,formAction:qt,formEncType:Re}=ve.navigation;!lt&&!at&&xt&&qt&&Re&&(lt=R8(ve.navigation));let Te=lt||at;if(UEe.has(Ce.status)&&Te&&fl(Te.formMethod))await $e(It,$t,{submission:oi({},Te,{formAction:Ce.location}),preventScrollReset:M});else{let He=AC($t,lt);await $e(It,$t,{overrideNavigation:He,fetcherSubmission:at,preventScrollReset:M})}}async function _e(ve,Ce,fe,lt,at){let Mt=await Promise.all([...fe.map(xt=>s0("loader",at,xt,Ce,o,i,l,u.v7_relativeSplatPath)),...lt.map(xt=>xt.matches&&xt.match&&xt.controller?s0("loader",l0(e.history,xt.path,xt.controller.signal),xt.match,xt.matches,o,i,l,u.v7_relativeSplatPath):{type:ri.error,error:Cs(404,{pathname:xt.path})})]),$t=Mt.slice(0,fe.length),It=Mt.slice(fe.length);return await Promise.all([_8(ve,fe,$t,$t.map(()=>at.signal),!1,w.loaderData),_8(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(...vt()),Ee.forEach((ve,Ce)=>{Z.has(Ce)&&(X.push(Ce),Se(Ce))})}function Ie(ve,Ce,fe){fe===void 0&&(fe={}),w.fetchers.set(ve,Ce),Me({fetchers:new Map(w.fetchers)},{flushSync:(fe&&fe.flushSync)===!0})}function ie(ve,Ce,fe,lt){lt===void 0&&(lt={});let at=hb(w.matches,Ce);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 Ce=w.fetchers.get(ve);Z.has(ve)&&!(Ce&&Ce.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 Ce=(G.get(ve)||0)-1;Ce<=0?(G.delete(ve),ue.add(ve)):G.set(ve,Ce)}else ce(ve);Me({fetchers:new Map(w.fetchers)})}function Se(ve){let Ce=Z.get(ve);Bn(Ce,"Expected fetch controller: "+ve),Ce.abort(),Z.delete(ve)}function nt(ve){for(let Ce of ve){let fe=de(Ce),lt=Bc(fe.data);w.fetchers.set(Ce,lt)}}function pt(){let ve=[],Ce=!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),Ce=!0)}return nt(ve),Ce}function kt(ve){let Ce=[];for(let[fe,lt]of j)if(lt0}function Ke(ve,Ce){let fe=w.blockers.get(ve)||a0;return he.get(ve)!==Ce&&he.set(ve,Ce),fe}function Ot(ve){w.blockers.delete(ve),he.delete(ve)}function Ye(ve,Ce){let fe=w.blockers.get(ve)||a0;Bn(fe.state==="unblocked"&&Ce.state==="blocked"||fe.state==="blocked"&&Ce.state==="blocked"||fe.state==="blocked"&&Ce.state==="proceeding"||fe.state==="blocked"&&Ce.state==="unblocked"||fe.state==="proceeding"&&Ce.state==="unblocked","Invalid blocker state transition: "+fe.state+" -> "+Ce.state);let lt=new Map(w.blockers);lt.set(ve,Ce),Me({blockers:lt})}function it(ve){let{currentLocation:Ce,nextLocation:fe,historyAction:lt}=ve;if(he.size===0)return;he.size>1&&ap(!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:Ce,nextLocation:fe,historyAction:lt}))return Mt}function vt(ve){let Ce=[];return ge.forEach((fe,lt)=>{(!ve||ve(lt))&&(fe.cancel(),Ce.push(lt),ge.delete(lt))}),Ce}function Dt(ve,Ce,fe){if(p=ve,m=Ce,h=fe||null,!y&&w.navigation===CC){y=!0;let lt=fn(w.location,w.matches);lt!=null&&Me({restoreScrollPosition:lt})}return()=>{p=null,m=null,h=null}}function rn(ve,Ce){return h&&h(ve,Ce.map(lt=>gEe(lt,w.loaderData)))||ve.key}function cn(ve,Ce){if(p&&m){let fe=rn(ve,Ce);p[fe]=m()}}function fn(ve,Ce){if(p){let fe=rn(ve,Ce),lt=p[fe];if(typeof lt=="number")return lt}return null}function zn(ve){o={},s=p_(ve,i,void 0,o)}return A={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:Ot,_internalFetchControllers:Z,_internalActiveDeferreds:ge,_internalSetRoutes:zn},A}function HEe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function h_(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=xD(i||".",kD(l,o),I1(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&&!AD(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:wd([n,c.pathname])),R1(c)}function v8(e,t,n,r){if(!r||!HEe(r))return{path:n};if(r.formMethod&&!XEe(r.formMethod))return{path:n,error:Cs(405,{method:r.formMethod})};let i=()=>({path:n,error:Cs(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=hY(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=m_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=m_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=w8(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=w8(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=wc(n);return t&&d.search&&AD(d.search)&&l.append("index",""),d.search="?"+l,{path:R1(d),submission:c}}function WEe(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 E8(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,A=WEe(n,S).filter((E,M)=>{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(QEe(t.loaderData,t.matches[M],E)||s.some(U=>U===E.route.id))return!0;let R=t.matches[M],B=E;return S8(E,oi({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||pY(R,B)}))}),w=[];return c.forEach((E,M)=>{if(o||!n.some(V=>V.route.id===E.routeId)||u.has(M))return;let D=Rh(p,E.path,h);if(!D){w.push({key:M,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get(M),B=g_(D,E.path),U=!1;d.has(M)?U=!1:l.includes(M)?U=!0:R&&R.state!=="idle"&&R.data===void 0?U=a:U=S8(B,oi({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:M,routeId:E.routeId,path:E.path,matches:D,match:B,controller:new AbortController})}),[A,w]}function QEe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function pY(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function S8(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function T8(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";ap(!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&&!hEe.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,oi({},t(i),{lazy:void 0}))}async function s0(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}),T8(n.route,o,i)]);if(O)throw O;c=b[0]}else if(await T8(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 Cs(405,{method:t.method,pathname:b,routeId:n.route.id})}else return{type:ri.data,data:void 0};else if(y)c=await p(y);else{let O=new URL(t.url),b=O.pathname+O.search;throw Cs(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=ri.error,c=y}finally{d&&t.signal.removeEventListener("abort",d)}if(ZEe(c)){let y=c.status;if(BEe.has(y)){let b=c.headers.get("Location");if(Bn(b,"Redirects returned/thrown from loaders/actions must have a Location header"),!dY.test(b))b=h_(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=I1(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:ri.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===ri.error?ri.error:ri.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:ri.error,error:b}}return u===ri.error?{type:u,error:new CD(y,c.statusText,O),headers:c.headers}:{type:ri.data,data:O,statusCode:c.status,headers:c.headers}}if(u===ri.error)return{type:u,error:c};if(qEe(c)){var h,m;return{type:ri.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:ri.data,data:c}}function l0(e,t,n,r){let i=e.createURL(hY(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=m_(r.formData):o.body=r.formData}return new Request(i,o)}function m_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function w8(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function YEe(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"),Ih(c)){let h=hb(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=uY(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 k8(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=YEe(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 C8(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 Cs(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 CD(e||500,a,new Error(s),!0)}function A8(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Rf(n))return{result:n,idx:t}}}function hY(e){let t=typeof e=="string"?wc(e):e;return R1(oi({},t,{hash:""}))}function GEe(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===ri.deferred}function Ih(e){return e.type===ri.error}function Rf(e){return(e&&e.type)===ri.redirect}function qEe(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 ZEe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XEe(e){return FEe.has(e.toLowerCase())}function fl(e){return MEe.has(e.toLowerCase())}async function _8(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!pY(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 mY(s,d,i).then(p=>{p&&(n[a]=p||n[a])})}}}async function mY(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ri.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ri.error,error:i}}return{type:ri.data,data:e.deferredData.data}}}function AD(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function g_(e,t){let n=typeof t=="string"?wc(t).search:t.search;if(e[e.length-1].route.index&&AD(n||""))return e[e.length-1];let r=lY(e);return r[r.length-1]}function R8(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 AC(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 KEe(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 u0(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 JEe(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 Bc(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 eSe(e,t){try{let n=e.sessionStorage.getItem(fY);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 tSe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(fY,JSON.stringify(n))}catch(r){ap(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.21.2 + */function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ap(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SEe(){return Math.random().toString(36).substr(2,8)}function O8(e,t){return{usr:e.state,key:e.key,idx:t}}function fy(e,t,n,r){return n===void 0&&(n=null),oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wc(t):t,{state:n,key:t&&t.key||r||SEe()})}function N1(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 wc(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 TEe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=ci.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(oi({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=ci.Pop;let v=c(),b=v==null?null:v-u;u=v,l&&l({action:s,location:y.location,delta:b})}function p(v,b){s=ci.Push;let O=fy(y.location,v,b);n&&n(O,v),u=c()+1;let S=O8(O,u),k=y.createHref(O);try{a.pushState(S,"",k)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(k)}o&&l&&l({action:s,location:y.location,delta:1})}function h(v,b){s=ci.Replace;let O=fy(y.location,v,b);n&&n(O,v),u=c();let S=O8(O,u),k=y.createHref(O);a.replaceState(S,"",k),o&&l&&l({action:s,location:y.location,delta:0})}function m(v){let b=i.location.origin!=="null"?i.location.origin:i.location.href,O=typeof v=="string"?v:N1(v);return Bn(b,"No window.location.(origin|href) available to create URL for href: "+O),new URL(O,b)}let y={get action(){return s},get location(){return e(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(y8,d),l=v,()=>{i.removeEventListener(y8,d),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let b=m(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:h,go(v){return a.go(v)}};return y}var ri;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ri||(ri={}));const wEe=new Set(["lazy","caseSensitive","path","id","index","children"]);function kEe(e){return e.index===!0}function h_(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`),kEe(i)){let l=oi({},i,t(i),{id:s});return r[s]=l,l}else{let l=oi({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=h_(i.children,t,a,r)),l}})}function Ih(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?wc(t):t,i=D1(r.pathname||"/",n);if(i==null)return null;let o=fY(e);CEe(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+'".')),fY(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:PEe(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 pY(o.path))i(o,a,l)}),t}function pY(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=pY(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 CEe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:LEe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const AEe=/^:[\w-]+$/,_Ee=3,REe=2,IEe=1,NEe=10,DEe=-2,v8=e=>e==="*";function PEe(e,t){let n=e.split("/"),r=n.length;return n.some(v8)&&(r+=DEe),t&&(r+=REe),n.filter(i=>!v8(i)).reduce((i,o)=>i+(AEe.test(o)?_Ee:o===""?IEe:NEe),r)}function LEe(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 MEe(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]=UEe(m||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function FEe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ap(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 BEe(e){try{return decodeURI(e)}catch(t){return ap(!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 UEe(e,t){try{return decodeURIComponent(e)}catch(n){return ap(!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 D1(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 jEe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?wc(e):e;return{pathname:n?n.startsWith("/")?n:zEe(n,t):t,search:HEe(r),hash:WEe(i)}}function zEe(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 CC(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 hY(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kD(e,t){let n=hY(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xD(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=wc(e):(i=oi({},e),Bn(!i.pathname||!i.pathname.includes("?"),CC("?","pathname","search",i)),Bn(!i.pathname||!i.pathname.includes("#"),CC("#","pathname","hash",i)),Bn(!i.search||!i.search.includes("#"),CC("#","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=jEe(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,"/"),VEe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),HEe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,WEe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class CD{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 mY(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"],QEe=new Set(gY),YEe=["get",...gY],GEe=new Set(YEe),qEe=new Set([301,302,303,307,308]),ZEe=new Set([307,308]),AC={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},XEe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},s0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},bY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,KEe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),yY="remix-router-transitions";function JEe(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=KEe;let o={},a=h_(e.routes,i,void 0,o),s,l=e.basename||"/",u=oi({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,v=Ih(a,e.history.location,l),b=null;if(v==null){let ve=Cs(404,{pathname:e.history.location.pathname}),{matches:Ae,route:fe}=A8(a);v=Ae,b={[fe.id]:ve}}let O,S=v.some(ve=>ve.route.lazy),k=v.some(ve=>ve.route.loader);if(S)O=!1;else if(!k)O=!0;else if(u.v7_partialHydration){let ve=e.hydrationData?e.hydrationData.loaderData:null,Ae=e.hydrationData?e.hydrationData.errors:null;O=v.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 O=e.hydrationData!=null;let A,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:O,navigation:AC,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=ci.Pop,M=!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}ap(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,s0),Me({blockers:Mt})}});return}return $e(Ae,fe)}),n){cSe(t,B);let ve=()=>dSe(t,B);t.addEventListener("pagehide",ve),U=()=>t.removeEventListener("pagehide",ve)}return w.initialized||$e(ci.Pop,w.location,{initialHydration:!0}),A}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=oi({},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?C8(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,s0)));let Re=M===!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===ci.Pop||(E===ci.Push?e.history.push(ve,ve.state):E===ci.Replace&&e.history.replace(ve,ve.state));let Te;if(E===ci.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(oi({},Ae,{actionData:It,loaderData:xt,historyAction:E,location:ve,initialized:!0,navigation:AC,revalidation:"idle",restoreScrollPosition:fn(ve,Ae.matches||w.matches),preventScrollReset:Re,blockers:qt}),{viewTransitionOpts:Te,flushSync:Mt===!0}),E=ci.Pop,M=!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=m_(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}=E8(u.v7_normalizeFormMethod,!1,fe,Ae),$t=w.location,It=fy(w.location,lt,Ae&&Ae.state);It=oi({},It,e.history.encodeLocation(It));let xt=Ae&&Ae.replace!=null?Ae.replace:void 0,qt=ci.Push;xt===!0?qt=ci.Replace:xt===!1||at!=null&&fl(at.formMethod)&&at.formAction===w.location.pathname+w.location.search&&(qt=ci.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,s0),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),M=(fe&&fe.preventScrollReset)===!0,R=(fe&&fe.enableViewTransition)===!0;let lt=s||a,at=fe&&fe.overrideNavigation,Mt=Ih(lt,Ae,l),$t=(fe&&fe.flushSync)===!0;if(!Mt){let ot=Cs(404,{pathname:Ae.pathname}),{matches:nn,route:Wt}=A8(lt);Et(),Qe(Ae,{matches:nn,loaderData:{},errors:{[Wt.id]:ot}},{flushSync:$t});return}if(w.initialized&&!z&&iSe(w.location,Ae)&&!(fe&&fe.submission&&fl(fe.submission.formMethod))){Qe(Ae,{matches:Mt},{flushSync:$t});return}D=new AbortController;let It=u0(e.history,Ae,D.signal,fe&&fe.submission),xt,qt;if(fe&&fe.pendingError)qt={[gb(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=_C(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,oi({matches:Mt},xt?{actionData:xt}:{},{loaderData:Te,errors:We})))}async function He(ve,Ae,fe,lt,at){at===void 0&&(at={}),Pe();let Mt=lSe(Ae,fe);Me({navigation:Mt},{flushSync:at.flushSync===!0});let $t,It=b_(lt,Ae);if(!It.route.action&&!It.route.lazy)$t={type:ri.error,error:Cs(405,{method:ve.method,pathname:Ae.pathname,routeId:It.route.id})};else if($t=await l0("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(Nh($t)){let xt=gb(lt,It.route.id);return(at&&at.replace)!==!0&&(E=ci.Push),{pendingActionData:{},pendingActionError:{[xt.route.id]:$t.error}}}if(_f($t))throw Cs(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||_C(Ae,at),We=at||Mt||I8(Te),ot=s||a,[nn,Wt]=S8(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,oi({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=c0(void 0,Qn?Qn.data:void 0);w.fetchers.set(Wn.key,ht)});let gn=qt||w.actionData;Me(oi({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=_8(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}=x8(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 oi({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=m_(w.location,w.matches,l,u.v7_prependBasename,fe,u.v7_relativeSplatPath,Ae,lt==null?void 0:lt.relative),It=Ih(Mt,$t,l);if(!It){ie(ve,Ae,Cs(404,{pathname:$t}),{flushSync:at});return}let{path:xt,submission:qt,error:Re}=E8(u.v7_normalizeFormMethod,!0,$t,lt);if(Re){ie(ve,Ae,Re,{flushSync:at});return}let Te=b_(It,xt);if(M=(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=Cs(405,{method:$t.formMethod,pathname:fe,routeId:Ae});ie(ve,Ae,Wn,{flushSync:Mt});return}let It=w.fetchers.get(ve);Ie(ve,uSe($t,It),{flushSync:Mt});let xt=new AbortController,qt=u0(e.history,fe,xt.signal,$t);Z.set(ve,xt);let Re=Y,Te=await l0("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)||Nh(Te)){Ie(ve,Bc(void 0));return}}else{if(Rf(Te))if(Z.delete(ve),q>Re){Ie(ve,Bc(void 0));return}else return le.add(ve),Ie(ve,c0($t)),J(w,Te,{fetcherSubmission:$t});if(Nh(Te)){ie(ve,Ae,Te.error);return}}if(_f(Te))throw Cs(400,{type:"defer-action"});let We=w.navigation.location||w.location,ot=u0(e.history,We,xt.signal),nn=s||a,Wt=w.navigation.state!=="idle"?Ih(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=c0($t,Te.data);w.fetchers.set(ve,tr);let[Ue,xe]=S8(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=c0(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=_8(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}=x8(w,w.matches,Ue,en,void 0,xe,Mn,ge);if(w.fetchers.has(ve)){let Wn=Bc(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:C8(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,c0($t,It?It.data:void 0),{flushSync:Mt});let xt=new AbortController,qt=u0(e.history,fe,xt.signal);Z.set(ve,xt);let Re=Y,Te=await l0("loader",qt,lt,at,o,i,l,u.v7_relativeSplatPath);if(_f(Te)&&(Te=await EY(Te,qt.signal,!0)||Te),Z.get(ve)===xt&&Z.delete(ve),!qt.signal.aborted){if(ue.has(ve)){Ie(ve,Bc(void 0));return}if(Rf(Te))if(q>Re){Ie(ve,Bc(void 0));return}else{le.add(ve),await J(w,Te);return}if(Nh(Te)){ie(ve,Ae,Te.error);return}Bn(!_f(Te),"Unhandled fetcher deferred data"),Ie(ve,Bc(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=fy(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(bY.test(Ae.location)){const ot=e.history.createURL(Ae.location);We=ot.origin!==t.location.origin||D1(ot.pathname,l)==null}if(We){Mt?t.location.replace(Ae.location):t.location.assign(Ae.location);return}}D=null;let It=Mt===!0?ci.Replace:ci.Push,{formMethod:xt,formAction:qt,formEncType:Re}=ve.navigation;!lt&&!at&&xt&&qt&&Re&&(lt=I8(ve.navigation));let Te=lt||at;if(ZEe.has(Ae.status)&&Te&&fl(Te.formMethod))await $e(It,$t,{submission:oi({},Te,{formAction:Ae.location}),preventScrollReset:M});else{let We=_C($t,lt);await $e(It,$t,{overrideNavigation:We,fetcherSubmission:at,preventScrollReset:M})}}async function _e(ve,Ae,fe,lt,at){let Mt=await Promise.all([...fe.map(xt=>l0("loader",at,xt,Ae,o,i,l,u.v7_relativeSplatPath)),...lt.map(xt=>xt.matches&&xt.match&&xt.controller?l0("loader",u0(e.history,xt.path,xt.controller.signal),xt.match,xt.matches,o,i,l,u.v7_relativeSplatPath):{type:ri.error,error:Cs(404,{pathname:xt.path})})]),$t=Mt.slice(0,fe.length),It=Mt.slice(fe.length);return await Promise.all([R8(ve,fe,$t,$t.map(()=>at.signal),!1,w.loaderData),R8(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=gb(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)||XEe}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=Bc(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)||s0;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)||s0;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&&ap(!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===AC){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=>xEe(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=h_(ve,i,void 0,o)}return A={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},A}function eSe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function m_(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=xD(i||".",kD(l,o),D1(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&&!AD(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:wd([n,c.pathname])),N1(c)}function E8(e,t,n,r){if(!r||!eSe(r))return{path:n};if(r.formMethod&&!sSe(r.formMethod))return{path:n,error:Cs(405,{method:r.formMethod})};let i=()=>({path:n,error:Cs(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=vY(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,v]=m;return""+h+y+"="+v+` +`},""):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=g_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=g_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=k8(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=k8(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=wc(n);return t&&d.search&&AD(d.search)&&l.append("index",""),d.search="?"+l,{path:N1(d),submission:c}}function tSe(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 S8(e,t,n,r,i,o,a,s,l,u,c,d,p,h,m,y){let v=y?Object.values(y)[0]:m?Object.values(m)[0]:void 0,b=e.createURL(t.location),O=e.createURL(i),S=y?Object.keys(y)[0]:void 0,A=tSe(n,S).filter((E,M)=>{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(nSe(t.loaderData,t.matches[M],E)||s.some(U=>U===E.route.id))return!0;let R=t.matches[M],B=E;return T8(E,oi({currentUrl:b,currentParams:R.params,nextUrl:O,nextParams:B.params},r,{actionResult:v,defaultShouldRevalidate:a||b.pathname+b.search===O.pathname+O.search||b.search!==O.search||OY(R,B)}))}),w=[];return c.forEach((E,M)=>{if(o||!n.some(V=>V.route.id===E.routeId)||u.has(M))return;let D=Ih(p,E.path,h);if(!D){w.push({key:M,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get(M),B=b_(D,E.path),U=!1;d.has(M)?U=!1:l.includes(M)?U=!0:R&&R.state!=="idle"&&R.data===void 0?U=a:U=T8(B,oi({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:O,nextParams:n[n.length-1].params},r,{actionResult:v,defaultShouldRevalidate:a})),U&&w.push({key:M,routeId:E.routeId,path:E.path,matches:D,match:B,controller:new AbortController})}),[A,w]}function nSe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function OY(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function T8(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function w8(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";ap(!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&&!wEe.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,oi({},t(i),{lazy:void 0}))}async function l0(e,t,n,r,i,o,a,s,l){l===void 0&&(l={});let u,c,d,p=y=>{let v,b=new Promise((O,S)=>v=S);return d=()=>v(),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 v,b=await Promise.all([p(y).catch(O=>{v=O}),w8(n.route,o,i)]);if(v)throw v;c=b[0]}else if(await w8(n.route,o,i),y=n.route[e],y)c=await p(y);else if(e==="action"){let v=new URL(t.url),b=v.pathname+v.search;throw Cs(405,{method:t.method,pathname:b,routeId:n.route.id})}else return{type:ri.data,data:void 0};else if(y)c=await p(y);else{let v=new URL(t.url),b=v.pathname+v.search;throw Cs(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=ri.error,c=y}finally{d&&t.signal.removeEventListener("abort",d)}if(aSe(c)){let y=c.status;if(qEe.has(y)){let b=c.headers.get("Location");if(Bn(b,"Redirects returned/thrown from loaders/actions must have a Location header"),!bY.test(b))b=m_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,b,s);else if(!l.isStaticRequest){let O=new URL(t.url),S=b.startsWith("//")?new URL(O.protocol+b):new URL(b),k=D1(S.pathname,a)!=null;S.origin===O.origin&&k&&(b=S.pathname+S.search+S.hash)}if(l.isStaticRequest)throw c.headers.set("Location",b),c;return{type:ri.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===ri.error?ri.error:ri.data,response:c};let v;try{let b=c.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?c.body==null?v=null:v=await c.json():v=await c.text()}catch(b){return{type:ri.error,error:b}}return u===ri.error?{type:u,error:new CD(y,c.statusText,v),headers:c.headers}:{type:ri.data,data:v,statusCode:c.status,headers:c.headers}}if(u===ri.error)return{type:u,error:c};if(oSe(c)){var h,m;return{type:ri.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:ri.data,data:c}}function u0(e,t,n,r){let i=e.createURL(vY(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=g_(r.formData):o.body=r.formData}return new Request(i,o)}function g_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function k8(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function rSe(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"),Nh(c)){let h=gb(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=mY(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 x8(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=rSe(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 A8(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 Cs(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 CD(e||500,a,new Error(s),!0)}function _8(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Rf(n))return{result:n,idx:t}}}function vY(e){let t=typeof e=="string"?wc(e):e;return N1(oi({},t,{hash:""}))}function iSe(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===ri.deferred}function Nh(e){return e.type===ri.error}function Rf(e){return(e&&e.type)===ri.redirect}function oSe(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 aSe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function sSe(e){return GEe.has(e.toLowerCase())}function fl(e){return QEe.has(e.toLowerCase())}async function R8(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!OY(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 EY(s,d,i).then(p=>{p&&(n[a]=p||n[a])})}}}async function EY(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ri.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ri.error,error:i}}return{type:ri.data,data:e.deferredData.data}}}function AD(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function b_(e,t){let n=typeof t=="string"?wc(t).search:t.search;if(e[e.length-1].route.index&&AD(n||""))return e[e.length-1];let r=hY(e);return r[r.length-1]}function I8(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 _C(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 lSe(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 c0(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 uSe(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 Bc(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 cSe(e,t){try{let n=e.sessionStorage.getItem(yY);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 dSe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(yY,JSON.stringify(n))}catch(r){ap(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.21.3 * * Copyright (c) Remix Software Inc. * @@ -180,8 +180,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function dy(){return dy=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=xD(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 rSe=N.createContext(null);function iSe(e){let t=N.useContext(kc).outlet;return t&&N.createElement(rSe.Provider,{value:e},t)}function L1(){let{matches:e}=N.useContext(kc),t=e[e.length-1];return t?t.params:{}}function oSe(e,t,n,r){D1()||Bn(!1);let{navigator:i}=N.useContext(N1),{matches:o}=N.useContext(kc),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=fg(),c;if(t){var d;let O=typeof t=="string"?wc(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=Rh(e,{pathname:h}),y=cSe(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(dk.Provider,{value:{location:dy({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ci.Pop}},y):y}function aSe(){let e=hSe(),t=uY(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 sSe=N.createElement(aSe,null);class lSe 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(kc.Provider,{value:this.props.routeContext},N.createElement(bY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uSe(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(ck);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(kc.Provider,{value:t},r)}function cSe(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||sSe,l&&(u<0&&p===0?(gSe("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(uSe,{match:d,routeContext:{outlet:c,matches:b,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?N.createElement(lSe,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:v(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):v()},null)}var OY=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(OY||{}),zS=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}(zS||{});function dSe(e){let t=N.useContext(ck);return t||Bn(!1),t}function fSe(e){let t=N.useContext(gY);return t||Bn(!1),t}function pSe(e){let t=N.useContext(kc);return t||Bn(!1),t}function vY(e){let t=pSe(),n=t.matches[t.matches.length-1];return n.route.id||Bn(!1),n.route.id}function hSe(){var e;let t=N.useContext(bY),n=fSe(zS.UseRouteError),r=vY(zS.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mSe(){let{router:e}=dSe(OY.UseNavigateStable),t=vY(zS.UseNavigateStable),n=N.useRef(!1);return yY(()=>{n.current=!0}),N.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,dy({fromRouteId:t},o)))},[e,t])}const I8={};function gSe(e,t,n){!t&&!I8[e]&&(I8[e]=!0)}function EY(e){let{to:t,replace:n,state:r,relative:i}=e;D1()||Bn(!1);let{future:o,static:a}=N.useContext(N1),{matches:s}=N.useContext(kc),{pathname:l}=fg(),u=P1(),c=xD(t,kD(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 _D(e){return iSe(e.context)}function bSe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ci.Pop,navigator:o,static:a=!1,future:s}=e;D1()&&Bn(!1);let l=t.replace(/^\/*/,"/"),u=N.useMemo(()=>({basename:l,navigator:o,static:a,future:dy({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=wc(r));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=r,y=N.useMemo(()=>{let O=I1(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(N1.Provider,{value:u},N.createElement(dk.Provider,{children:n,value:y}))}new Promise(()=>{});function ySe(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}/** - * React Router DOM v6.21.2 + */function py(){return py=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=xD(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 pSe=N.createContext(null);function hSe(e){let t=N.useContext(kc).outlet;return t&&N.createElement(pSe.Provider,{value:e},t)}function fk(){let{matches:e}=N.useContext(kc),t=e[e.length-1];return t?t.params:{}}function mSe(e,t,n,r){L1()||Bn(!1);let{navigator:i}=N.useContext(P1),{matches:o}=N.useContext(kc),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=pg(),c;if(t){var d;let v=typeof t=="string"?wc(t):t;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||Bn(!1),c=v}else c=u;let p=c.pathname||"/",h=l==="/"?p:p.slice(l.length)||"/",m=Ih(e,{pathname:h}),y=vSe(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:wd([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:wd([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n,r);return t&&y?N.createElement(dk.Provider,{value:{location:py({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ci.Pop}},y):y}function gSe(){let e=wSe(),t=mY(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 bSe=N.createElement(gSe,null);class ySe 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(kc.Provider,{value:this.props.routeContext},N.createElement(TY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OSe(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(ck);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(kc.Provider,{value:t},r)}function vSe(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,v=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||bSe,l&&(u<0&&p===0?(xSe("route-fallback",!1),m=!0,v=null):u===p&&(m=!0,v=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),O=()=>{let S;return h?S=y:m?S=v:d.route.Component?S=N.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=c,N.createElement(OSe,{match:d,routeContext:{outlet:c,matches:b,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?N.createElement(ySe,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:O(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):O()},null)}var kY=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kY||{}),jS=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}(jS||{});function ESe(e){let t=N.useContext(ck);return t||Bn(!1),t}function SSe(e){let t=N.useContext(SY);return t||Bn(!1),t}function TSe(e){let t=N.useContext(kc);return t||Bn(!1),t}function xY(e){let t=TSe(),n=t.matches[t.matches.length-1];return n.route.id||Bn(!1),n.route.id}function wSe(){var e;let t=N.useContext(TY),n=SSe(jS.UseRouteError),r=xY(jS.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function kSe(){let{router:e}=ESe(kY.UseNavigateStable),t=xY(jS.UseNavigateStable),n=N.useRef(!1);return wY(()=>{n.current=!0}),N.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,py({fromRouteId:t},o)))},[e,t])}const N8={};function xSe(e,t,n){!t&&!N8[e]&&(N8[e]=!0)}function CY(e){let{to:t,replace:n,state:r,relative:i}=e;L1()||Bn(!1);let{future:o,static:a}=N.useContext(P1),{matches:s}=N.useContext(kc),{pathname:l}=pg(),u=hg(),c=xD(t,kD(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 _D(e){return hSe(e.context)}function CSe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ci.Pop,navigator:o,static:a=!1,future:s}=e;L1()&&Bn(!1);let l=t.replace(/^\/*/,"/"),u=N.useMemo(()=>({basename:l,navigator:o,static:a,future:py({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=wc(r));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=r,y=N.useMemo(()=>{let v=D1(c,l);return v==null?null:{location:{pathname:v,search:d,hash:p,state:h,key:m},navigationType:i}},[l,c,d,p,h,m,i]);return y==null?null:N.createElement(P1.Provider,{value:u},N.createElement(dk.Provider,{children:n,value:y}))}new Promise(()=>{});function ASe(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}/** + * React Router DOM v6.21.3 * * Copyright (c) Remix Software Inc. * @@ -189,26 +189,26 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function VS(){return VS=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 OSe(e,t){let n=b_(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}function vSe(e,t){return VEe({basename:t==null?void 0:t.basename,future:VS({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:dEe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||ESe(),routes:e,mapRouteProperties:ySe,window:t==null?void 0:t.window}).initialize()}function ESe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=VS({},t,{errors:SSe(t.errors)})),t}function SSe(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 CD(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 TSe=N.createContext({isTransitioning:!1}),wSe=N.createContext(new Map),kSe="startTransition",N8=wm[kSe],xSe="flushSync",D8=dse[xSe];function CSe(e){N8?N8(e):e()}function c0(e){D8?D8(e):e()}class ASe{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 _Se(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?CSe(E):E()},[b]),S=N.useCallback((E,M)=>{let{deletedFetchers:D,unstable_flushSync:R,unstable_viewTransitionOpts:B}=M;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?c0(()=>o(E)):v(()=>o(E));return}if(R){c0(()=>{p&&(c&&c.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let V=n.window.document.startViewTransition(()=>{c0(()=>o(E))});V.finished.finally(()=>{c0(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})})}),c0(()=>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 ASe)},[l]),N.useEffect(()=>{if(c&&a&&n.window){let E=a,M=c.promise,D=n.window.document.startViewTransition(async()=>{v(()=>o(E)),await M});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,M,D)=>n.navigate(E,{state:M,preventScrollReset:D==null?void 0:D.preventScrollReset}),replace:(E,M,D)=>n.navigate(E,{replace:!0,state:M,preventScrollReset:D==null?void 0:D.preventScrollReset})}),[n]),A=n.basename||"/",w=N.useMemo(()=>({router:n,navigator:k,static:!1,basename:A}),[n,k,A]);return N.createElement(N.Fragment,null,N.createElement(ck.Provider,{value:w},N.createElement(gY.Provider,{value:i},N.createElement(wSe.Provider,{value:O.current},N.createElement(TSe.Provider,{value:l},N.createElement(bSe,{basename:A,location:i.location,navigationType:i.historyAction,navigator:k,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?N.createElement(RSe,{routes:n.routes,future:n.future,state:i}):t))))),null)}function RSe(e){let{routes:t,future:n,state:r}=e;return oSe(t,void 0,r,n)}var P8;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(P8||(P8={}));var L8;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(L8||(L8={}));function ISe(e){let t=N.useRef(b_(e)),n=N.useRef(!1),r=fg(),i=N.useMemo(()=>OSe(r.search,n.current?null:t.current),[r.search]),o=P1(),a=N.useCallback((s,l)=>{const u=b_(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 NSe=typeof Symbol=="function"&&Symbol.observable||"@@observable",M8=NSe,_C=()=>Math.random().toString(36).substring(7).split("").join("."),DSe={INIT:`@@redux/INIT${_C()}`,REPLACE:`@@redux/REPLACE${_C()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${_C()}`},HS=DSe;function RD(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 ID(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(ID)(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(!RD(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:HS.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)}},[M8](){return this}}}return p({type:HS.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:h,[M8]:m}}function PSe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:HS.INIT})>"u")throw new Error(oo(12));if(typeof n(void 0,{type:HS.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oo(13))})}function SY(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 WS(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function LSe(...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=WS(...s)(i.dispatch),{...i,dispatch:o}}}function MSe(e){return RD(e)&&"type"in e&&typeof e.type=="string"}var TY=Symbol.for("immer-nothing"),$8=Symbol.for("immer-draftable"),ds=Symbol.for("immer-state");function Ol(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Bm=Object.getPrototypeOf;function Ld(e){return!!e&&!!e[ds]}function mc(e){var t;return e?wY(e)||Array.isArray(e)||!!e[$8]||!!((t=e.constructor)!=null&&t[$8])||pk(e)||hk(e):!1}var $Se=Object.prototype.constructor.toString();function wY(e){if(!e||typeof e!="object")return!1;const t=Bm(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)===$Se}function fy(e,t){fk(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function fk(e){const t=e[ds];return t?t.type_:Array.isArray(e)?1:pk(e)?2:hk(e)?3:0}function y_(e,t){return fk(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function kY(e,t,n){const r=fk(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function FSe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function pk(e){return e instanceof Map}function hk(e){return e instanceof Set}function Of(e){return e.copy_||e.base_}function O_(e,t){if(pk(e))return new Map(e);if(hk(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&wY(e))return Bm(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[ds];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=BSe),Object.freeze(e),t&&fy(e,(n,r)=>ND(r,!0))),e}function BSe(){Ol(2)}function mk(e){return Object.isFrozen(e)}var USe={};function sp(e){const t=USe[e];return t||Ol(0,e),t}var py;function xY(){return py}function jSe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function F8(e,t){t&&(sp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function v_(e){E_(e),e.drafts_.forEach(zSe),e.drafts_=null}function E_(e){e===py&&(py=e.parent_)}function B8(e){return py=jSe(py,e)}function zSe(e){const t=e[ds];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function U8(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ds].modified_&&(v_(t),Ol(4)),mc(e)&&(e=QS(t,e),t.parent_||YS(t,e)),t.patches_&&sp("Patches").generateReplacementPatches_(n[ds].base_,e,t.patches_,t.inversePatches_)):e=QS(t,n,[]),v_(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==TY?e:void 0}function QS(e,t,n){if(mk(t))return t;const r=t[ds];if(!r)return fy(t,(i,o)=>j8(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return YS(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),fy(o,(s,l)=>j8(e,r,i,s,l,n,a)),YS(e,i,!1),n&&e.patches_&&sp("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function j8(e,t,n,r,i,o,a){if(Ld(i)){const s=o&&t&&t.type_!==3&&!y_(t.assigned_,r)?o.concat(r):void 0,l=QS(e,i,s);if(kY(n,r,l),Ld(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(mc(i)&&!mk(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;QS(e,i),(!t||!t.scope_.parent_)&&YS(e,i)}}function YS(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ND(t,n)}function VSe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:xY(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=DD;n&&(i=[r],o=hy);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var DD={get(e,t){if(t===ds)return e;const n=Of(e);if(!y_(n,t))return HSe(e,n,t);const r=n[t];return e.finalized_||!mc(r)?r:r===RC(e.base_,t)?(IC(e),e.copy_[t]=T_(r,e)):r},has(e,t){return t in Of(e)},ownKeys(e){return Reflect.ownKeys(Of(e))},set(e,t,n){const r=CY(Of(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=RC(Of(e),t),o=i==null?void 0:i[ds];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(FSe(n,i)&&(n!==void 0||y_(e.base_,t)))return!0;IC(e),S_(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 RC(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,IC(e),S_(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 Bm(e.base_)},setPrototypeOf(){Ol(12)}},hy={};fy(DD,(e,t)=>{hy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});hy.deleteProperty=function(e,t){return hy.set.call(this,e,t,void 0)};hy.set=function(e,t,n){return DD.set.call(this,e[0],t,n,e[0])};function RC(e,t){const n=e[ds];return(n?Of(n):e)[t]}function HSe(e,t,n){var i;const r=CY(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function CY(e,t){if(!(t in e))return;let n=Bm(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Bm(n)}}function S_(e){e.modified_||(e.modified_=!0,e.parent_&&S_(e.parent_))}function IC(e){e.copy_||(e.copy_=O_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var WSe=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(mc(t)){const o=B8(this),a=T_(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?v_(o):E_(o)}return F8(o,r),U8(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===TY&&(i=void 0),this.autoFreeze_&&ND(i,!0),r){const o=[],a=[];sp("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){mc(e)||Ol(8),Ld(e)&&(e=AY(e));const t=B8(this),n=T_(e,void 0);return n[ds].isManual_=!0,E_(t),n}finishDraft(e,t){const n=e&&e[ds];(!n||!n.isManual_)&&Ol(9);const{scope_:r}=n;return F8(r,t),U8(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=sp("Patches").applyPatches_;return Ld(e)?r(e,t):this.produce(e,i=>r(i,t))}};function T_(e,t){const n=pk(e)?sp("MapSet").proxyMap_(e,t):hk(e)?sp("MapSet").proxySet_(e,t):VSe(e,t);return(t?t.scope_:xY()).drafts_.push(n),n}function AY(e){return Ld(e)||Ol(10,e),_Y(e)}function _Y(e){if(!mc(e)||mk(e))return e;const t=e[ds];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=O_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=O_(e,!0);return fy(n,(r,i)=>{kY(n,r,_Y(i))}),t&&(t.finalized_=!1),n}var fs=new WSe,RY=fs.produce;fs.produceWithPatches.bind(fs);fs.setAutoFreeze.bind(fs);fs.setUseStrictShallowCopy.bind(fs);fs.applyPatches.bind(fs);fs.createDraft.bind(fs);fs.finishDraft.bind(fs);function QSe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function YSe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function GSe(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 z8=e=>Array.isArray(e)?e:[e];function qSe(e){const t=Array.isArray(e[0])?e[0]:e;return GSe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ZSe(e,t){const n=[],{length:r}=e;for(let i=0;i{n=fv(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function IY(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()),QSe(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=PD,argsMemoizeOptions:m=[],devModeChecks:y={}}=c,O=z8(p),b=z8(m),v=qSe(i),S=d(function(){return o++,u.apply(null,arguments)},...O),k=h(function(){a++;const w=ZSe(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 eTe=IY(PD),tTe=Object.assign((e,t=eTe)=>{YSe(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:()=>tTe});function NY(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var nTe=NY(),rTe=NY,iTe=(...e)=>{const t=IY(...e);return(...n)=>{const r=t(...n),i=(o,...a)=>r(Ld(o)?AY(o):o,...a);return Object.assign(i,r),i}};iTe(PD);var oTe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?WS:WS.apply(null,arguments)};function my(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=>MSe(r)&&r.type===e,n}var DY=class U0 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,U0.prototype)}static get[Symbol.species](){return U0}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new U0(...t[0].concat(this)):new U0(...t.concat(this))}};function H8(e){return mc(e)?RY(e,()=>{}):e}function W8(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 aTe(e){return typeof e=="boolean"}var sTe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new DY;return n&&(aTe(n)?a.push(nTe):a.push(rTe(n.extraArgument))),a},lTe="RTK_autoBatch",PY=e=>t=>{setTimeout(t,e)},uTe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:PY(10),cTe=(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"?uTe:e.type==="callback"?e.queueNotification:PY(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[lTe]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},dTe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new DY(e);return r&&i.push(cTe(typeof r=="object"?r:void 0)),i},fTe=!0;function pTe(e){const t=sTe(),{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(RD(n))s=SY(n);else throw new Error(xl(1));let l;typeof r=="function"?l=r(t):l=t();let u=WS;i&&(u=oTe({trace:!fTe,...typeof i=="object"&&i}));const c=LSe(...l),d=dTe(c);let p=typeof a=="function"?a(d):d();const h=u(...p);return ID(s,o,h)}function LY(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 hTe(e){return typeof e=="function"}function mTe(e,t){let[n,r,i]=LY(t),o;if(hTe(e))o=()=>H8(e());else{const s=H8(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(mc(c))return RY(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 gTe=Symbol.for("rtk-slice-createasyncthunk");function bTe(e,t){return`${e}/${t}`}function yTe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[gTe];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(vTe()):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:bTe(o,O),createNotation:typeof i.reducers=="function"};STe(b)?wTe(v,b,c,t):ETe(v,b,c)});function d(){const[O={},b=[],v=void 0]=typeof i.extraReducers=="function"?LY(i.extraReducers):[i.extraReducers],S={...O,...u.sliceCaseReducersByType};return mTe(i.initialState,k=>{for(let A in S)k.addCase(A,S[A]);for(let A of u.sliceMatchers)k.addMatcher(A.matcher,A.reducer);for(let A of b)k.addMatcher(A.matcher,A.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=W8(h,this,{insert:()=>new WeakMap});return W8(b,O,{insert:()=>{const v={};for(const[S,k]of Object.entries(i.selectors??{}))v[S]=OTe(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 OTe(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 gk=yTe();function vTe(){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 ETe({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!TTe(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?my(e,a):my(e))}function STe(e){return e._reducerDefinitionType==="asyncThunk"}function TTe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function wTe({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||pv,pending:s||pv,rejected:l||pv,settled:u||pv})}function pv(){}var LD="listenerMiddleware";my(`${LD}/add`);my(`${LD}/removeAll`);my(`${LD}/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 kTe={theme:"default"},MY=gk({name:"editor",initialState:kTe,reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:xTe}=MY.actions,$Y=e=>e.config,CTe=MY.reducer;function FY(e,t){return function(){return e.apply(t,arguments)}}const{toString:ATe}=Object.prototype,{getPrototypeOf:MD}=Object,bk=(e=>t=>{const n=ATe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ru=e=>(e=e.toLowerCase(),t=>bk(t)===e),yk=e=>t=>typeof t===e,{isArray:pg}=Array,gy=yk("undefined");function _Te(e){return e!==null&&!gy(e)&&e.constructor!==null&&!gy(e.constructor)&&Ws(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const BY=Ru("ArrayBuffer");function RTe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&BY(e.buffer),t}const ITe=yk("string"),Ws=yk("function"),UY=yk("number"),Ok=e=>e!==null&&typeof e=="object",NTe=e=>e===!0||e===!1,SE=e=>{if(bk(e)!=="object")return!1;const t=MD(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},DTe=Ru("Date"),PTe=Ru("File"),LTe=Ru("Blob"),MTe=Ru("FileList"),$Te=e=>Ok(e)&&Ws(e.pipe),FTe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ws(e.append)&&((t=bk(e))==="formdata"||t==="object"&&Ws(e.toString)&&e.toString()==="[object FormData]"))},BTe=Ru("URLSearchParams"),UTe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),pg(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const zY=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,VY=e=>!gy(e)&&e!==zY;function w_(){const{caseless:e}=VY(this)&&this||{},t={},n=(r,i)=>{const o=e&&jY(t,i)||i;SE(t[o])&&SE(r)?t[o]=w_(t[o],r):SE(r)?t[o]=w_({},r):pg(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(M1(t,(i,o)=>{n&&Ws(i)?e[o]=FY(i,n):e[o]=i},{allOwnKeys:r}),e),zTe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),VTe=(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)},HTe=(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&&MD(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WTe=(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},QTe=e=>{if(!e)return null;if(pg(e))return e;let t=e.length;if(!UY(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},YTe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&MD(Uint8Array)),GTe=(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])}},qTe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ZTe=Ru("HTMLFormElement"),XTe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Q8=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KTe=Ru("RegExp"),HY=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};M1(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},JTe=e=>{HY(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+"'")})}})},ewe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return pg(e)?r(e):r(String(e).split(t)),n},twe=()=>{},nwe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),NC="abcdefghijklmnopqrstuvwxyz",Y8="0123456789",WY={DIGIT:Y8,ALPHA:NC,ALPHA_DIGIT:NC+NC.toUpperCase()+Y8},rwe=(e=16,t=WY.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function iwe(e){return!!(e&&Ws(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const owe=e=>{const t=new Array(10),n=(r,i)=>{if(Ok(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=pg(r)?[]:{};return M1(r,(a,s)=>{const l=n(a,i+1);!gy(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},awe=Ru("AsyncFunction"),swe=e=>e&&(Ok(e)||Ws(e))&&Ws(e.then)&&Ws(e.catch),ut={isArray:pg,isArrayBuffer:BY,isBuffer:_Te,isFormData:FTe,isArrayBufferView:RTe,isString:ITe,isNumber:UY,isBoolean:NTe,isObject:Ok,isPlainObject:SE,isUndefined:gy,isDate:DTe,isFile:PTe,isBlob:LTe,isRegExp:KTe,isFunction:Ws,isStream:$Te,isURLSearchParams:BTe,isTypedArray:YTe,isFileList:MTe,forEach:M1,merge:w_,extend:jTe,trim:UTe,stripBOM:zTe,inherits:VTe,toFlatObject:HTe,kindOf:bk,kindOfTest:Ru,endsWith:WTe,toArray:QTe,forEachEntry:GTe,matchAll:qTe,isHTMLForm:ZTe,hasOwnProperty:Q8,hasOwnProp:Q8,reduceDescriptors:HY,freezeMethods:JTe,toObjectSet:ewe,toCamelCase:XTe,noop:twe,toFiniteNumber:nwe,findKey:jY,global:zY,isContextDefined:VY,ALPHABET:WY,generateString:rwe,isSpecCompliantForm:iwe,toJSONObject:owe,isAsyncFn:awe,isThenable:swe};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 QY=Zn.prototype,YY={};["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=>{YY[e]={value:e}});Object.defineProperties(Zn,YY);Object.defineProperty(QY,"isAxiosError",{value:!0});Zn.from=(e,t,n,r,i,o)=>{const a=Object.create(QY);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 lwe=null;function k_(e){return ut.isPlainObject(e)||ut.isArray(e)}function GY(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function G8(e,t,n){return e?e.concat(t).map(function(i,o){return i=GY(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function uwe(e){return ut.isArray(e)&&!e.some(k_)}const cwe=ut.toFlatObject(ut,{},null,function(t){return/^is[A-Z]/.test(t)});function vk(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)&&uwe(m)||(ut.isFileList(m)||ut.endsWith(y,"[]"))&&(b=ut.toArray(m)))return y=GY(y),b.forEach(function(S,k){!(ut.isUndefined(S)||S===null)&&t.append(a===!0?G8([y],k,o):a===null?y:y+"[]",u(S))}),!1}return k_(m)?!0:(t.append(G8(O,y,o),u(m)),!1)}const d=[],p=Object.assign(cwe,{defaultVisitor:c,convertValue:u,isVisitable:k_});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 q8(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $D(e,t){this._pairs=[],e&&vk(e,this,t)}const qY=$D.prototype;qY.append=function(t,n){this._pairs.push([t,n])};qY.toString=function(t){const n=t?function(r){return t.call(this,r,q8)}:q8;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function dwe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ZY(e,t,n){if(!t)return e;const r=n&&n.encode||dwe,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ut.isURLSearchParams(t)?t.toString():new $D(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Z8{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 XY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fwe=typeof URLSearchParams<"u"?URLSearchParams:$D,pwe=typeof FormData<"u"?FormData:null,hwe=typeof Blob<"u"?Blob:null,mwe={isBrowser:!0,classes:{URLSearchParams:fwe,FormData:pwe,Blob:hwe},protocols:["http","https","file","blob","url","data"]},KY=typeof window<"u"&&typeof document<"u",gwe=(e=>KY&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),bwe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ywe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:KY,hasStandardBrowserEnv:gwe,hasStandardBrowserWebWorkerEnv:bwe},Symbol.toStringTag,{value:"Module"})),pu={...ywe,...mwe};function Owe(e,t){return vk(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 vwe(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ewe(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]=Ewe(i[a])),!s)}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,(r,i)=>{t(vwe(r),i,n,0)}),n}return null}function Swe(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 FD={transitional:XY,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(JY(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 Owe(t,this.formSerializer).toString();if((s=ut.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return vk(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Swe(t)):t}],transformResponse:[function(t){const n=this.transitional||FD.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=>{FD.headers[e]={}});const BD=FD,Twe=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"]),wwe=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]&&Twe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},X8=Symbol("internals");function d0(e){return e&&String(e).trim().toLowerCase()}function TE(e){return e===!1||e==null?e:ut.isArray(e)?e.map(TE):String(e)}function kwe(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 xwe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function DC(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 Cwe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Awe(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 Ek{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=d0(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]=TE(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())&&!xwe(t)?a(wwe(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=d0(t),t){const r=ut.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return kwe(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=d0(t),t){const r=ut.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||DC(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=d0(a),a){const s=ut.findKey(r,a);s&&(!n||DC(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||DC(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]=TE(i),delete n[o];return}const s=t?Cwe(o):String(o).trim();s!==o&&delete n[o],n[s]=TE(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[X8]=this[X8]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=d0(a);r[s]||(Awe(i,a),r[s]=!0)}return ut.isArray(t)?t.forEach(o):o(t),this}}Ek.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ut.reduceDescriptors(Ek.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ut.freezeMethods(Ek);const ac=Ek;function PC(e,t){const n=this||BD,r=t||n,i=ac.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 eG(e){return!!(e&&e.__CANCEL__)}function $1(e,t,n){Zn.call(this,e??"canceled",Zn.ERR_CANCELED,t,n),this.name="CanceledError"}ut.inherits($1,Zn,{__CANCEL__:!0});function _we(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 Rwe=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 Iwe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nwe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tG(e,t){return e&&!Iwe(t)?Nwe(e,t):t}const Dwe=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 Pwe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lwe(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 Mwe=typeof XMLHttpRequest<"u",$we=Mwe&&function(e){return new Promise(function(n,r){let i=e.data;const o=ac.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=tG(e.baseURL,e.url);d.open(e.method.toUpperCase(),ZY(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const y=ac.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};_we(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||XY;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&&Dwe(p))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&Rwe.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",K8(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",K8(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=y=>{d&&(r(!y||y.type?new $1(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=Pwe(p);if(m&&pu.protocols.indexOf(m)===-1){r(new Zn("Unsupported protocol "+m+":",Zn.ERR_BAD_REQUEST,e));return}d.send(i||null)})},x_={http:lwe,xhr:$we};ut.forEach(x_,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const J8=e=>`- ${e}`,Fwe=e=>ut.isFunction(e)||e===null||e===!1,nG={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(J8).join(` -`):" "+J8(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:x_};function LC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $1(null,e)}function eU(e){return LC(e),e.headers=ac.from(e.headers),e.data=PC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nG.getAdapter(e.adapter||BD.adapter)(e).then(function(r){return LC(e),r.data=PC.call(e,e.transformResponse,r),r.headers=ac.from(r.headers),r},function(r){return eG(r)||(LC(e),r&&r.response&&(r.response.data=PC.call(e,e.transformResponse,r.response),r.response.headers=ac.from(r.response.headers))),Promise.reject(r)})}const tU=e=>e instanceof ac?e.toJSON():e;function Um(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(tU(u),tU(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 rG="1.6.5",UD={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{UD[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const nU={};UD.transitional=function(t,n,r){function i(o,a){return"[Axios v"+rG+"] 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&&!nU[a]&&(nU[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 Bwe(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 C_={assertOptions:Bwe,validators:UD},Mc=C_.validators;class GS{constructor(t){this.defaults=t,this.interceptors={request:new Z8,response:new Z8}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Um(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&C_.assertOptions(r,{silentJSONParsing:Mc.transitional(Mc.boolean),forcedJSONParsing:Mc.transitional(Mc.boolean),clarifyTimeoutError:Mc.transitional(Mc.boolean)},!1),i!=null&&(ut.isFunction(i)?n.paramsSerializer={serialize:i}:C_.assertOptions(i,{encode:Mc.function,serialize:Mc.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=ac.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=[eU.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 $1(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 jD(function(i){t=i}),cancel:t}}}const Uwe=jD;function jwe(e){return function(n){return e.apply(null,n)}}function zwe(e){return ut.isObject(e)&&e.isAxiosError===!0}const A_={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(A_).forEach(([e,t])=>{A_[t]=e});const Vwe=A_;function iG(e){const t=new wE(e),n=FY(wE.prototype.request,t);return ut.extend(n,wE.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return iG(Um(e,i))},n}const fr=iG(BD);fr.Axios=wE;fr.CanceledError=$1;fr.CancelToken=Uwe;fr.isCancel=eG;fr.VERSION=rG;fr.toFormData=vk;fr.AxiosError=Zn;fr.Cancel=fr.CanceledError;fr.all=function(t){return Promise.all(t)};fr.spread=jwe;fr.isAxiosError=zwe;fr.mergeConfig=Um;fr.AxiosHeaders=ac;fr.formToJSON=e=>JY(ut.isHTMLForm(e)?new FormData(e):e);fr.getAdapter=nG.getAdapter;fr.HttpStatusCode=Vwe;fr.default=fr;var zD={},oG={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})(oG);var na=oG.exports,MC={};const Hwe=Uie(lde);var rU;function ra(){return rU||(rU=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Hwe}(MC)),MC}var Wwe=na;Object.defineProperty(zD,"__esModule",{value:!0});var aG=zD.default=void 0,Qwe=Wwe(ra()),Ywe=$;aG=zD.default=(0,Qwe.default)((0,Ywe.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 VD={},Gwe=na;Object.defineProperty(VD,"__esModule",{value:!0});var sG=VD.default=void 0,qwe=Gwe(ra()),Zwe=$;sG=VD.default=(0,qwe.default)((0,Zwe.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var HD={},Xwe=na;Object.defineProperty(HD,"__esModule",{value:!0});var WD=HD.default=void 0,Kwe=Xwe(ra()),Jwe=$;WD=HD.default=(0,Kwe.default)((0,Jwe.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 QD={},eke=na;Object.defineProperty(QD,"__esModule",{value:!0});var Sk=QD.default=void 0,tke=eke(ra()),nke=$;Sk=QD.default=(0,tke.default)((0,nke.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const rke={mode:"both",doc:null,client:null},lG=gk({name:"editor",initialState:rke,reducers:{setMode:(e,t)=>{e.mode=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload}}}),{setMode:ike,setDoc:iU,setClient:oU}=lG.actions,Tk=e=>e.editor,oke=lG.reducer;var YD={},ake=na;Object.defineProperty(YD,"__esModule",{value:!0});var uG=YD.default=void 0,ske=ake(ra()),lke=$;uG=YD.default=(0,ske.default)((0,lke.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 GD={},uke=na;Object.defineProperty(GD,"__esModule",{value:!0});var cG=GD.default=void 0,cke=uke(ra()),dke=$;cG=GD.default=(0,cke.default)((0,dke.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 qD(){const e=cg("(prefers-color-scheme: dark)"),t=Tc($Y);return N.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function fke(){const e=dg(),t=qD(),n=()=>{e(xTe(t=="light"?"dark":"light"))};return $.jsx(bs,{onClick:n,color:"inherit",children:t==="light"?$.jsx(cG,{}):$.jsx(uG,{})})}function pke(){return Math.random().toString(36).substring(7)}function hke(){const e=dg(),t=Tc(Tk),n=P1(),r=o=>{e(ike(o))},i=()=>{n(`/${pke()}`)};return $.jsx(afe,{position:"static",sx:{zIndex:100},children:$.jsx(YOe,{children:$.jsxs(Fs,{width:"100%",direction:"row",justifyContent:"space-between",children:[$.jsxs(Fs,{direction:"row",spacing:1,children:[$.jsx(gs,{children:$.jsxs(zve,{value:t.mode,exclusive:!0,onChange:(o,a)=>r(a),size:"small",children:[$.jsx(kC,{value:"edit","aria-label":"edit",children:$.jsx(cv,{title:"Edit Mode",children:$.jsx(aG,{})})}),$.jsx(kC,{value:"both","aria-label":"both",children:$.jsx(cv,{title:"Both Mode",children:$.jsx(sG,{})})}),$.jsx(kC,{value:"read","aria-label":"read",children:$.jsx(cv,{title:"Read Mode",children:$.jsx(WD,{})})})]})}),$.jsx(cv,{title:"Create New Note",children:$.jsx(bs,{color:"inherit",onClick:i,children:$.jsx(Sk,{})})})]}),$.jsx(fke,{})]})})})}function mke(){return $.jsxs(as,{sx:{flexGrow:1},height:"100vh",children:[$.jsx(hke,{}),$.jsx(_D,{})]})}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]=jm(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]=jm(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 mb(this),o=new mb(t);for(let a=n,s=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(t=1){return new mb(this,t)}iterRange(t,n=this.length){return new dG(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 fG(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 fi(t):uu.from(fi.split(t,[]))}}class fi extends rr{constructor(t,n=gke(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 bke(i,s,r,a);i=s+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new fi(aU(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let a=r.pop(),s=kE(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new fi(s,a.length+o.length));else{let l=s.length>>1;r.push(new fi(s.slice(0,l)),new fi(s.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof fi))return super.replace(t,n,r);[t,n]=jm(this,t,n);let i=kE(this.text,kE(r.text,aU(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new fi(i,o):uu.from(fi.split(i,[]),o)}sliceString(t,n=this.length,r=` -`){[t,n]=jm(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 fi(r,i)),r=[],i=-1);return i>-1&&n.push(new fi(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]=jm(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]=jm(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 fi(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 fi&&l&&(m=c[c.length-1])instanceof fi&&h.lines+m.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new fi(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 fi([""],0);function gke(e){let t=-1;for(let n of e)t+=n.length+1;return t}function kE(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(t instanceof fi?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 fi?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 fi){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 fi?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 dG{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new mb(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class fG{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()},mb.prototype[Symbol.iterator]=dG.prototype[Symbol.iterator]=fG.prototype[Symbol.iterator]=function(){return this});let bke=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 jm(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let Gh="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 Gh[t-1]<=e;return!1}function sU(e){return e>=127462&&e<=127487}const lU=8205;function po(e,t,n=!0,r=!0){return(n?pG:Oke)(e,t,r)}function pG(e,t,n){if(t==e.length)return t;t&&hG(e.charCodeAt(t))&&mG(e.charCodeAt(t-1))&&t--;let r=uo(e,t);for(t+=Ms(r);t=0&&sU(uo(e,a));)o++,a-=2;if(o%2==0)break;t+=2}else break}return t}function Oke(e,t,n){for(;t>0;){let r=pG(e,t-2,n);if(r=56320&&e<57344}function mG(e){return e>=55296&&e<56320}function uo(e,t){let n=e.charCodeAt(t);if(!mG(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return hG(r)?(n-55296<<10)+(r-56320)+65536:n}function ZD(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Ms(e){return e<65536?1:2}const __=/\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 Ri 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 R_(this,(n,r,i,o,a)=>t=t.replace(i,i+(r-n),a),!1),t}mapDesc(t,n=!1){return I_(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&&ud(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||__)):h:rr.empty,y=m.length;if(d==p&&y==0)return;da&&xo(i,d-a,-1),xo(i,p-d,y),ud(o,i,m),a=p}}return u(t),l(!s),s}static empty(t){return new Ri(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 ud(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 I_(e,t,n,r=!1){let i=[],o=r?[]:null,a=new by(e),s=new by(t);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);xo(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 by{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 bG(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let XD=0;class Gt{constructor(t,n,r,i,o){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=XD++,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:KD),!!t.static,t.enables)}of(t){return new xE([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new xE(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new xE(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function KD(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class xE{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=XD++}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)||N_(d,c)){let h=r(d);if(s?!uU(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=ZS(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?uU(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 uU(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(cU).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,cU.of({field:this,create:t})]}get extension(){return this}}const vf={lowest:4,low:3,default:2,high:1,highest:0};function f0(e){return t=>new yG(t,e)}const Zd={highest:f0(vf.highest),high:f0(vf.high),default:f0(vf.default),low:f0(vf.low),lowest:f0(vf.lowest)};class yG{constructor(t,n){this.inner=t,this.prec=n}}class wk{of(t){return new D_(this,t)}reconfigure(t){return wk.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class D_{constructor(t,n){this.compartment=t,this.inner=n}}class qS{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 Eke(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,KD(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=>vke(O,m,h))}}let d=u.map(p=>p(s));return new qS(t,a,d,s,l,o)}}function Eke(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 D_&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof D_){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 yG)o(a.inner,a.prec);else if(a instanceof Ki)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof xE)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 gb(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 ZS(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const OG=Gt.define(),P_=Gt.define({combine:e=>e.some(t=>t),static:!0}),vG=Gt.define({combine:e=>e.length?e[0]:void 0,static:!0}),EG=Gt.define(),SG=Gt.define(),TG=Gt.define(),wG=Gt.define({combine:e=>e.length?e[0]:!1});class Ll{constructor(t,n){this.type=t,this.value=n}static define(){return new Ske}}class Ske{of(t){return new Ll(this,t)}}class Tke{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 Tke(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 Di{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&&bG(r,n.newLength),o.some(s=>s.type==Di.time)||(this.annotations=o.concat(Di.time.of(Date.now())))}static create(t,n,r,i,o,a){return new Di(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(Di.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}Di.time=Ll.define();Di.userEvent=Ll.define();Di.addToHistory=Ll.define();Di.remote=Ll.define();function wke(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 Di?e=o:Array.isArray(o)&&o.length==1&&o[0]instanceof Di?e=o[0]:e=xG(t,qh(o),!1)}return e}function xke(e){let t=e.startState,n=t.facet(TG),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=kG(r,L_(t,o,e.changes.newLength),!0))}return r==e?e:Di.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const Cke=[];function qh(e){return e==null?Cke: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 Ake=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let M_;try{M_=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function _ke(e){if(M_)return M_.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||Ake.test(n)))return!0}return!1}function Rke(e){return t=>{if(!/\S/.test(t))return Vr.Space;if(_ke(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=qh(r).concat(s.value));let o;n?o=t.startState.values.slice():(n=qS.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(P_)?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=qh(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=qS.resolve(t.extensions||[],new Map),r=t.doc instanceof rr?t.doc:rr.of((t.doc||"").split(n.staticFacet(qn.lineSeparator)||__)),i=t.selection?t.selection instanceof Je?t.selection:Je.single(t.selection.anchor,t.selection.head):Je.single(0);return bG(i,r.length),n.staticFacet(P_)||(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(wG)}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(OG))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&i.push(a[t]);return i}charCategorizer(t){return Rke(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=po(n,a,!1);if(o(n.slice(l,a))!=Vr.Word)break;a=l}for(;se.length?e[0]:4});qn.lineSeparator=vG;qn.readOnly=wG;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=OG;qn.changeFilter=EG;qn.transactionFilter=SG;qn.transactionExtender=TG;wk.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 lp{eq(t){return this==t}range(t,n=t){return $_.create(t,n,this)}}lp.prototype.startSide=lp.prototype.endSide=0;lp.prototype.point=!1;lp.prototype.mapMode=fo.TrackDel;let $_=class CG{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new CG(t,n,r)}};function F_(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class JD{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 JD(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(F_)),this.isEmpty)return n.length?Xn.of(n):this;let s=new AG(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 yy.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return yy.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=dU(a,s,r),u=new p0(a,l,o),c=new p0(s,l,o);r.iterGaps((d,p,h)=>fU(u,d,c,p,h,i)),r.empty&&r.length==0&&fU(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=dU(o,a),l=new p0(o,s,0).goto(r),u=new p0(a,s,0).goto(r);for(;;){if(l.to!=u.to||!B_(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 p0(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 $_?[t]:n?Ike(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 Ike(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(F_);t=r}return e}Xn.empty.nextLayer=Xn.empty;class Md{finishChunk(t){this.chunks.push(new JD(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 dU(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 AG(a,n,r,o));return i.length==1?i[0]:new yy(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--)$C(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--)$C(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(),$C(this.heap,0)}}}function $C(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 p0{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=yy.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){hv(this.active,t),hv(this.activeTo,t),hv(this.activeRank,t),this.minActive=pU(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n0;)n++;mv(this.active,n,r),mv(this.activeTo,n,i),mv(this.activeRank,n,o),t&&mv(t,n,this.cursor.from),this.minActive=pU(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&&hv(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 fU(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))&&B_(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,d,e.point,n.point):d>s&&!B_(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 B_(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 pU(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=po(e,i)}return r===!0?-1:e.length}const j_="ͼ",hU=typeof Symbol>"u"?"__"+j_:Symbol.for(j_),z_=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),mU=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=mU[hU]||1;return mU[hU]=t+1,j_+t.toString(36)}static mount(t,n,r){let i=t[z_],o=r&&r.nonce;i?o&&i.setNonce(o):i=new Nke(t,o),i.mount(Array.isArray(n)?n:[n])}}let gU=new Map;class Nke{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let o=gU.get(r);if(o)return t.adoptedStyleSheets=[o.sheet,...t.adoptedStyleSheets],t[z_]=o;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],gU.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[z_]=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:'"'},Dke=typeof navigator<"u"&&/Mac/.test(navigator.platform),Pke=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),Oy[co]=String.fromCharCode(co);for(var FC in Fd)Oy.hasOwnProperty(FC)||(Oy[FC]=Fd[FC]);function Lke(e){var t=Dke&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Pke&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Oy: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 XS(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function V_(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function Mke(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function CE(e,t){if(!t.anchorNode)return!1;try{return V_(e,t.anchorNode)}catch{return!1}}function vy(e){return e.nodeType==3?up(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function bb(e,t,n,r){return n?bU(e,t,n,r,-1)||bU(e,t,n,r,1):!1}function Ey(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function bU(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:gc(e))){if(e.nodeName=="DIV")return!1;let o=e.parentNode;if(!o||o.nodeType!=1)return!1;t=Ey(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?gc(e):0}else return!1}}function gc(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function eP(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function $ke(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function _G(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 Fke(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=$ke(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}=_G(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 Uke{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?gc(n):0),r,Math.min(t.focusOffset,r?gc(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Kp=null;function RG(e){if(e.setActive)return e.setActive();if(Kp)return e.focus(Kp);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Kp==null?{get preventScroll(){return Kp={preventScroll:!0},!0}}:void 0),!Kp){Kp=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class Ao{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new Ao(t.parentNode,Ey(t),n)}static after(t,n){return new Ao(t.parentNode,Ey(t)+1,n)}}const tP=[];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=OU(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=OU(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=gc(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=tP){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 PG(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:SU||/Mac/.test(Ka.platform),windows:/Win/.test(Ka.platform),linux:/Linux|X11/.test(Ka.platform),ie:kk,ie_version:MG?H_.documentMode||6:Q_?+Q_[1]:W_?+W_[1]:0,gecko:vU,gecko_version:vU?+(/Firefox\/(\d+)/.exec(Ka.userAgent)||[0,0])[1]:0,chrome:!!BC,chrome_version:BC?+BC[1]:0,ios:SU,android:/Android\b/.test(Ka.userAgent),webkit:EU,safari:$G,webkit_version:EU?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:H_.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Vke=256;class bc 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 bc)||this.length-(n-t)+r.length>Vke||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 bc(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 Ao(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 Hke(this.dom,t,n)}}class yc 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(IG(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 yc&&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 yc(this.mark,n,a)}domAtPos(t){return FG(this,t)}coordsAt(t,n){return UG(this,t,n)}}function Hke(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?eP(l,a<0):l||null}class cd extends Ir{static create(t,n,r){return new cd(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=cd.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 cd)||!this.widget.compare(r.widget)||t>0&&o<=0||n0)?Ao.before(this.dom):Ao.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?Ao.before(this.dom):Ao.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return rr.empty}get isHidden(){return!0}}bc.prototype.children=cd.prototype.children=zm.prototype.children=tP;function FG(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 yc&&i.length&&(r=i[i.length-1])instanceof yc&&r.mark.eq(t.mark)?BG(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function UG(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 G_(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 Qke(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){nP(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){BG(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=Y_(n,this.attrs||{})),r&&(this.attrs=Y_({class:r},this.attrs||{}))}domAtPos(t){return FG(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(IG(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&&(G_(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 yc;)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 bc))){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 bc)||/[^ -~]/.test(r.text))return null;let i=vy(r.dom);if(i.length!=1)return null;t+=i[0].width,n=i[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=UG(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 Ai)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 Ko=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Ko||(Ko={}));class sn extends lp{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 F1(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 B1(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 F1 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 F1&&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))&&nP(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)}}F1.prototype.point=!1;class B1 extends sn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof B1&&this.spec.class==t.spec.class&&nP(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)}}B1.prototype.mapMode=fo.TrackBefore;B1.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?Ko.WidgetRange:this.startSide<=0?Ko.WidgetBefore:Ko.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Bd&&Yke(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 Yke(e,t){return e==t||!!(e&&t&&e.compare(t))}function q_(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 yb{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 Ai),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(gv(new zm(-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(gv(new bc(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 wU("div"),s,r));else{let l=cd.create(r.widget||new wU("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(gv(new zm(1),i),o),o=i.length+Math.max(0,o-i.length)),d.append(gv(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 yb(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 gv(e,t){for(let n of t)e=new yc(n,[e],e.length);return e}class wU 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 cp=Dr.LTR,rP=Dr.RTL;function zG(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 HG(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 Jke(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 X_(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 dd(l,y.from,h));let O=y.direction==cp!=!(h%2);K_(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?X_(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==cp?0:1;return K_(e,i,i,n,0,e.length,r),r}function WG(e){return[new dd(0,e,0)]}let QG="";function txe(e,t,n,r,i){var o;let a=r.head-e.from,s=dd.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=po(e.text,a,l.forward(i,n));(cl.to)&&(c=u),QG=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)}),eq=Gt.define({combine:e=>e.some(t=>t)});class Xh{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 Xh(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 Xh(Je.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const bv=xn.define({map:(e,t)=>e.map(t)});function Qs(e,t,n){let r=e.facet(ZG);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 xk=Gt.define({combine:e=>e.length?e[0]:!0});let rxe=0;const j0=Gt.define();class Xr{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 Xr(rxe++,t,r,i,s=>{let l=[j0.of(s)];return a&&l.push(Sy.of(u=>{let c=u.plugin(s);return c?a(c):sn.none})),o&&l.push(o(s)),l})}static fromClass(t,n){return Xr.define(r=>new t(r),n)}}class UC{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 tq=Gt.define(),iP=Gt.define(),Sy=Gt.define(),nq=Gt.define(),oP=Gt.define(),rq=Gt.define();function kU(e,t){let n=e.state.facet(rq);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=nxe(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 iq=Gt.define();function oq(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(iq)){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 z0=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 KS{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Ri.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 KS(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 xU 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 Ai],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:!cxe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let o=i>-1?oxe(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=lxe(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=yb.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),A=yb.build(this.view.state.doc,r.range.toB,d,this.decorations,this.dynamicDecorationMap);h=k.breakAtStart,m=k.openStart,y=A.openEnd;let w=this.compositionView(r);A.breakAtStart?w.breakAfter=1:A.content.length&&w.merge(w.length,w.length,A.content[0],!1,A.openStart,0)&&(w.breakAfter=A.content[0].breakAfter,A.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(A.content)}else({content:p,breakAtStart:h,openStart:m,openEnd:y}=yb.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);PG(this,v,S,O,b,p,h,m,y)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new bc(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new yc(i,[n],n.length);let r=new Ai;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&&CE(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&&ixe(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=u=new Ao(d,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!bb(l.node,l.offset,c.anchorNode,c.anchorOffset)||!bb(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)&&uxe(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=XS(this.view.root);if(d)if(s.empty){if(Jt.gecko){let p=axe(l.node,l.offset);if(p&&p!=3){let h=sq(l.node,l.offset,p==1?1:-1);h&&(l=new Ao(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 Ao(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new Ao(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&bb(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=XS(t.root),{anchorNode:i,anchorOffset:o}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=Ai.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 Ai&&(r=o.domAtPos(o.length))}return r?new Ao(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 Ai&&!(r instanceof Ai&&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 Ai))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 bc))return null;let o=po(i.text,r);if(o==r)return null;let a=up(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?vy(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 Ai){let a=o.measureTextSize();if(a)return a}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let o=vy(t.firstChild)[0];n=t.getBoundingClientRect().height,r=o?o.width/27:7,i=o?o.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new DG(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 CU(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(Sy).map((i,o)=>(this.dynamicDecorationMap[o]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(nq).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=oq(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;Fke(this.view.scrollDOM,a,n.head0)r=r.childNodes[i-1],i=gc(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 axe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function dxe(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=po(i.text,o,!1):s=po(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let u=po(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 pxe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function jC(e,t){return e.topt.top+1}function AU(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function eR(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=vy(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&&jC(c,b)?c=_U(c,b.bottom):d&&jC(d,b)&&(d=AU(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 RU(r,p,n);if(s&&r.contentEditable!="false")return eR(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 RU(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)&&up(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 lq(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,A=!1;l=e.elementAtHeight(p),l.type!=Ko.Text;)for(;p=r>0?l.bottom+k:l.top-k,!(p>=0&&p<=u);){if(A)return n?null:0;A=!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:IU(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&&hxe(b,v,c)||Jt.chrome&&mxe(b,v,c))&&(b=void 0))}}if(!b||!e.docView.dom.contains(b)){let k=Ai.find(e.docView,h);if(!k)return p>l.top+l.height/2?l.to:l.from;({node:b,offset:v}=eR(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+U_(a,o,e.state.tabSize)}function hxe(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 up(e,r-1,r).getBoundingClientRect().left>n}function mxe(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():up(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function tR(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==Ko.Text))return r}return n}function gxe(e,t,n,r){let i=tR(e,t.head),o=!r||i.type!=Ko.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 NU(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=txe(i,o,a,s,n),c=QG;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 bxe(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 yxe(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=lq(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&&Lxe(t.contentDOM.ownerDocument)}handleEvent(t){!Cxe(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=vxe(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||Exe.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,Zh(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 DU(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Qs(n.state,i)}}}function vxe(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(DU(r.value,a))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let a=i.domEventObservers[o];a&&n(o).observers.push(DU(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 uq=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Exe="dthko",cq=[16,17,18,20,91,92,224,225],yv=6;function Ov(e){return Math.max(0,e)*.7+8}function Sxe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class Txe{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=Bke(t.contentDOM),this.atoms=t.state.facet(oP).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)&&wxe(t,n),this.dragging=xxe(t,n)&&hq(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&&Sxe(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=oq(this.view);t.clientX-a.left<=o.left+yv?r=-Ov(o.left-t.clientX):t.clientX+a.right>=o.right-yv&&(r=Ov(t.clientX-o.right)),t.clientY-a.top<=o.top+yv?i=-Ov(o.top-t.clientY):t.clientY+a.bottom>=o.bottom-yv&&(i=Ov(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 wxe(e,t){let n=e.state.facet(YG);return n.length?n[0](t):Jt.mac?t.metaKey:t.ctrlKey}function kxe(e,t){let n=e.state.facet(GG);return n.length?n[0](t):Jt.mac?!t.altKey:!t.ctrlKey}function xxe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=XS(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 Cxe(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),dq=Jt.ie&&Jt.ie_version<15||Jt.ios&&Jt.webkit_version<604;function Axe(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(),fq(e,n.value)},50)}function fq(e,t){let{state:n}=e,r,i=1,o=n.toText(t),a=o.lines==n.selection.ranges.length;if(nR!=null&&n.selection.ranges.every(l=>l.empty)&&nR==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(qG))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=Ixe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new Txe(e,t,n,r)),r&&e.observer.ignore(()=>RG(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function PU(e,t,n,r){if(r==1)return Je.cursor(t,n);if(r==2)return dxe(e.state,t,n);{let i=Ai.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,LU=(e,t,n)=>pq(t,n)&&e>=n.left&&e<=n.right;function _xe(e,t,n,r){let i=Ai.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&&LU(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&LU(n,r,s)?1:a&&pq(r,a)?-1:1}function MU(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:_xe(e,n,t.clientX,t.clientY)}}const Rxe=Jt.ie&&Jt.ie_version<=11;let $U=null,FU=0,BU=0;function hq(e){if(!Rxe)return e.detail;let t=$U,n=BU;return $U=e,BU=Date.now(),FU=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(FU+1)%3:1}function Ixe(e,t){let n=MU(e,t),r=hq(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=MU(e,o),u,c=PU(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let d=PU(e,n.pos,n.bias,r),p=Math.min(d.from,c.from),h=Math.max(d.to,c.to);c=p1&&(u=Nxe(i,l.pos))?u:s?i.addRange(c):Je.create([c])}}}function Nxe(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 UU(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&&kxe(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&&UU(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 UU(e,t,r,!0),!0}return!1};Rl.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=dq?null:t.clipboardData;return n?(fq(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(Axe(e),!1)};function Dxe(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 Pxe(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 nR=null;Rl.copy=Rl.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=Pxe(e.state);if(!n&&!i)return!1;nR=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=dq?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(Dxe(e,n),!1)};const mq=Ll.define();function gq(e,t){let n=[];for(let r of e.facet(KG)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:mq.of(!0)}):null}function bq(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=gq(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),bq(e)};Il.blur=e=>{e.observer.clearSelectionRange(),bq(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=uq.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 jU=new Set;function Lxe(e){jU.has(e)||(jU.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const zU=["pre-wrap","normal","pre-line","break-spaces"];class Mxe{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 zU.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)>_E&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return Jo.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 Wa extends yq{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 Wa||i instanceof so&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof so?i=new Wa(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Jo.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 Jo{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 Jo.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)>=_E&&(l=-2);let p=new Wa(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=Jo.of(a);return(l<0||Math.abs(u.height-this.height)>=_E||Math.abs(l-this.heightMetrics(t,n).perLine)>=_E)&&(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 Fxe extends Jo{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&&VU(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?Jo.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 VU(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 Bxe=5;class aP{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 Wa?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Wa(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=Bxe)&&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 Wa(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 Wa)return t;let n=new Wa(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 Wa)&&!this.isCovered?this.nodes.push(new Wa(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 Vxe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class VC{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 Mxe(n),this.stateDeco=t.facet(Sy).filter(r=>typeof r!="function"),this.heightMap=Jo.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 vv(o,a))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?WU:new Yxe(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:V0(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Sy).filter(c=>typeof c!="function");let i=t.changedRanges,o=Ys.extendWithRanges(i,Uxe(r,this.stateDeco,t?t.changes:Ri.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(eq)&&(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:A}=_G(n,s);(this.scaleX!=k||this.scaleY!=A)&&(this.scaleX=k,this.scaleY=A,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=NG(t.scrollDOM);let m=(this.printing?Vxe:zxe)(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:A,charWidth:w,textHeight:E}=t.docView.measureTextSize();a=A>0&&i.refresh(o,A,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 A of this.viewports){let w=A.from==this.viewport.from?k:t.docView.measureVisibleLineHeights(A);this.heightMap=(a?Jo.empty().applyChanges(this.stateDeco,rr.empty,this.heightOracle,[new Ys(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new $xe(A.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 vv(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 VC(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)||V0(this.heightMap.lineAt(t,Rr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return V0(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 V0(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 vv{constructor(t,n){this.from=t,this.to=n}}function Wxe(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 Sv(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 Qxe(e,t){for(let n of e)if(t(n))return n}const WU={toDOM(e){return e},fromDOM(e){return e},scale:1};class Yxe{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=nV0(i,t)):e._content)}const Tv=Gt.define({combine:e=>e.join(" ")}),rR=Gt.define({combine:e=>e.indexOf(!0)>-1}),iR=$d.newName(),Oq=$d.newName(),vq=$d.newName(),Eq={"&light":"."+Oq,"&dark":"."+vq};function oR(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 Gxe=oR("."+iR,{"&":{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"}},Eq),H0="￿";class qxe{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(qn.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=H0}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:QU(i))||QU(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+(Zxe(t,r.node,r.offset)?n:0))}}function Zxe(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?[]:eCe(t),l=new qxe(s,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=tCe(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!V_(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||!V_(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&&Zh(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||o==8&&n.insert.lengthi.head)&&Zh(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&Zh(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=Kxe(e,n,r));return e.state.facet(XG).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 Kxe(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&&aq(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 Jxe(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 eCe(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 YU(n,r)),(i!=n||o!=r)&&t.push(new YU(i,o))),t}function tCe(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 nCe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},HC=Jt.ie&&Jt.ie_version<=11;class rCe{constructor(t){this.view=t,this.active=!1,this.selectionRange=new Uke,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()}),HC&&(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(xk)?r.root.activeElement!=this.dom:!CE(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&&bb(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&&Mke(this.dom.ownerDocument)==this.dom&&iCe(this.view)||XS(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=CE(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&&Zh(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&&CE(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 Xxe(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=Sq(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=GU(n,t.previousSibling||t.target.previousSibling,-1),i=GU(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 GU(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 iCe(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 bb(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||jke(t.parent)||document,this.viewState=new HU(t.state||qn.create(t)),t.scrollTo&&t.scrollTo.is(bv)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(j0).map(r=>new UC(r));for(let r of this.plugins)r.update(this);this.observer=new rCe(this),this.inputState=new Oxe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new xU(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof Di?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(mq))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=gq(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=KS.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 Xh(h.empty?h:Je.cursor(h.head,h.head>h.anchor?-1:1))}for(let h of p.effects)h.is(bv)&&(d=h.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=JS.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(z0)!=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(Tv)!=i.state.facet(Tv)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let p of this.state.facet(J_))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&&!Sq(this,c)&&u.force&&Zh(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 HU(t),this.plugins=t.facet(j0).map(r=>new UC(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new xU(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(j0),r=t.state.facet(j0);if(n!=r){let i=[];for(let o of r){let a=n.indexOf(o);if(a<0)i.push(new UC(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(NG(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),qU}}),d=KS.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(J_))s(n)}get themeClasses(){return iR+" "+(this.state.facet(rR)?vq:Oq)+" "+this.state.facet(Tv)}updateAttrs(){let t=ZU(this,tq,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(xk)?"true":"false",class:"cm-content",style:`${Jt.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),ZU(this,iP,n);let r=this.observer.ignore(()=>{let i=G_(this.contentDOM,this.contentAttrs,n),o=G_(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(z0);let t=this.state.facet(Vt.cspNonce);$d.mount(this.root,this.styleModules.concat(Gxe).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 zC(this,t,NU(this,t,n,r))}moveByGroup(t,n){return zC(this,t,NU(this,t,n,r=>bxe(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 gxe(this,t,n,r)}moveVertically(t,n,r){return zC(this,t,yxe(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(),lq(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[dd.find(o,t-i.from,-1,n)];return eP(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(JG)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>oCe)return WG(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||HG(o.isolates,r=kU(this,t))))return o.order;r||(r=kU(this,t));let i=exe(t.text,n,r);return this.bidiCache.push(new JS(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(()=>{RG(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 bv.of(new Xh(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 bv.of(new Xh(Je.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return Xr.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Xr.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=$d.newName(),i=[Tv.of(r),z0.of(oR(`.${r}`,t))];return n&&n.dark&&i.push(rR.of(!0)),i}static baseTheme(t){return Zd.lowest(z0.of(oR("."+iR,t,Eq)))}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=z0;Vt.inputHandler=XG;Vt.focusChangeEffect=KG;Vt.perLineTextDirection=JG;Vt.exceptionSink=ZG;Vt.updateListener=J_;Vt.editable=xk;Vt.mouseSelectionStyle=qG;Vt.dragMovesSelection=GG;Vt.clickAddsSelectionRange=YG;Vt.decorations=Sy;Vt.outerDecorations=nq;Vt.atomicRanges=oP;Vt.bidiIsolatedRanges=rq;Vt.scrollMargins=iq;Vt.darkTheme=rR;Vt.cspNonce=Gt.define({combine:e=>e.length?e[0]:""});Vt.contentAttributes=iP;Vt.editorAttributes=tq;Vt.lineWrapping=Vt.contentAttributes.of({class:"cm-lineWrapping"});Vt.announce=xn.define();const oCe=4096,qU={};class JS{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&&Y_(a,n)}return n}const aCe=Jt.mac?"mac":Jt.windows?"win":Jt.linux?"linux":"key";function sCe(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 uCe(e,t,n){return wq(Tq(e.state),t,e,n)}let Xc=null;const cCe=4e3;function dCe(e,t=aCe){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=>sCe(b,t));for(let b=1;b{let k=Xc={view:S,prefix:v,scope:a};return setTimeout(()=>{Xc==k&&(Xc=null)},cCe),!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 wq(e,t,n,r){let i=Lke(t),o=uo(i,0),a=Ms(o)==i.length&&i!=" ",s="",l=!1,u=!1,c=!1;Xc&&Xc.view==n&&Xc.scope==r&&(s=Xc.prefix+" ",cq.indexOf(t.keyCode)<0&&(u=!0,Xc=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+wv(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+wv(m,t,!0)])||t.shiftKey&&(y=Oy[t.keyCode])!=i&&y!=m&&p(h[s+wv(y,t,!1)]))&&(l=!0):a&&t.shiftKey&&p(h[s+wv(i,t,!0)])&&(l=!0),!l&&p(h._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),l}class U1{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=kq(t);return[new U1(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return fCe(t,n,r)}}function kq(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 KU(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:Ko.Text}}function fCe(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=kq(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=tR(e,r),m=tR(e,i),y=h.type==Ko.Text?h:null,O=m.type==Ko.Text?m:null;if(y&&(e.lineWrapping||h.widgetLineBreaks)&&(y=KU(e,r,y)),O&&(e.lineWrapping||m.widgetLineBreaks)&&(O=KU(e,i,O)),y&&O&&y.from==O.from)return v(S(n.from,n.to,y));{let A=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&&A.bottom+e.defaultLineHeight/2U&&z.from=X)break;j>Q&&B(Math.max(q,Q),A==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,A==null,V,w==null,e.textDirection),{top:M,bottom:D,horizontal:R}}function k(A,w){let E=s.top+(w?A.top:A.bottom);return{top:E,bottom:E,horizontal:[]}}}function pCe(e,t){return e.constructor==t.constructor&&e.eq(t)}class hCe{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(RE)!=t.state.facet(RE)&&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(RE);for(;n!pCe(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 RE=Gt.define();function xq(e){return[Xr.define(t=>new hCe(t,e)),RE.of(e)]}const Cq=!Jt.ios,Ty=Gt.define({combine(e){return Iu(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function mCe(e={}){return[Ty.of(e),gCe,bCe,yCe,eq.of(!0)]}function Aq(e){return e.startState.facet(Ty)!=e.state.facet(Ty)}const gCe=xq({above:!0,markers(e){let{state:t}=e,n=t.facet(Ty),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty?!o||Cq: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 U1.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=Aq(e);return n&&JU(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){JU(t.state,e)},class:"cm-cursorLayer"});function JU(e,t){t.style.animationDuration=e.facet(Ty).cursorBlinkRate+"ms"}const bCe=xq({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:U1.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||Aq(e)},class:"cm-selectionLayer"}),aR={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Cq&&(aR[".cm-line"].caretColor="transparent !important",aR[".cm-content"]={caretColor:"transparent !important"});const yCe=Zd.highest(Vt.theme(aR)),_q=xn.define({map(e,t){return e==null?null:t.mapPos(e)}}),W0=Ki.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(_q)?r.value:n,e)}}),OCe=Xr.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(W0);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(W0)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(W0),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(W0)!=e&&this.view.dispatch({effects:_q.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 vCe(){return[W0,OCe]}function e7(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 ECe(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 SCe{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 ECe(t,this.maxLength))e7(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 sR=/x/.unicode!=null?"gu":"g",TCe=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,sR),wCe={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 WC=null;function kCe(){var e;if(WC==null&&typeof document<"u"&&document.body){let t=document.body.style;WC=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return WC||!1}const IE=Gt.define({combine(e){let t=Iu(e,{render:null,specialChars:TCe,addSpecialChars:null});return(t.replaceTabs=!kCe())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,sR)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,sR)),t}});function xCe(e={}){return[IE.of(e),CCe()]}let t7=null;function CCe(){return t7||(t7=Xr.fromClass(class{constructor(e){this.view=e,this.decorations=sn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(IE)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new SCe({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 ICe((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=sn.replace({widget:new RCe(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(IE);e.startState.facet(IE)!=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 ACe="•";function _Ce(e){return e>=32?ACe:e==10?"␤":String.fromCharCode(9216+e)}class RCe extends Nu{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=_Ce(this.code),r=t.state.phrase("Control character")+" "+(wCe[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 ICe 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 NCe(){return PCe}const DCe=sn.line({class:"cm-activeLine"}),PCe=Xr.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(DCe.range(i.from)),t=i.from)}return sn.set(n)}},{decorations:e=>e.decorations}),lR=2e3;function LCe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>lR||n.off>lR||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=U_(u.text,a,e.tabSize,!0);if(c<0)o.push(Je.cursor(u.to));else{let d=U_(u.text,s,e.tabSize);o.push(Je.range(u.from+c,u.from+d))}}}return o}function MCe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function n7(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>lR?-1:i==r.length?MCe(e,t.clientX):_l(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function $Ce(e,t){let n=n7(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=n7(e,i);if(!s)return r;let l=LCe(e.state,n,s);return l.length?a?Je.create(l.concat(r.ranges)):Je.create(l):r}}:null}function FCe(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return Vt.mouseSelectionStyle.of((n,r)=>t(r)?$Ce(n,r):null)}const BCe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},UCe={style:"cursor: crosshair"};function jCe(e={}){let[t,n]=BCe[e.key||"Alt"],r=Xr.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?UCe:null})]}const h0="-10000px";class Rq{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 zCe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const QC=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)||zCe}}}),r7=new WeakMap,sP=Xr.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(QC);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 Rq(e,lP,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(QC);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=h0,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==h0&&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(QC).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=h0;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,m=h?7:0,y=p.right-p.left,O=(t=r7.get(u))!==null&&t!==void 0?t:p.bottom-p.top,b=u.offset||HCe,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 A=(k?d.top-r.top:r.bottom-d.bottom)-m;if(AS&&M.topw&&(w=k?M.top-O-2-m: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 M=d.left+(v?b.x:-b.x)-(S+14-7);h.style.left=M/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=h0}},{eventObservers:{scroll(){this.maybeMeasure()}}}),VCe=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"}}}),HCe={x:0,y:0},lP=Gt.define({enables:[sP,VCe]}),eT=Gt.define();class Ck{static create(t){return new Ck(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Rq(t,eT,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 WCe=lP.compute([eT],e=>{let t=e.facet(eT).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:Ck.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class QCe{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(sP),n=t?t.manager.tooltips.findIndex(r=>r.create==Ck.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&&!YCe(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:!GCe(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 kv=4;function YCe(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-kv&&t.clientX<=n.right+kv&&t.clientY>=n.top-kv&&t.clientY<=n.bottom+kv}function GCe(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 qCe(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(ZCe)&&(i=null);return i},provide:i=>eT.from(i)});return[r,Xr.define(i=>new QCe(i,e,r,n,t.hoverTime||300)),WCe]}function Iq(e,t){let n=e.plugin(sP);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const ZCe=xn.define(),i7=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 wy(e,t){let n=e.plugin(Nq),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Nq=Xr.fromClass(class{constructor(e){this.input=e.state.facet(ky),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(i7);this.top=new xv(e,!0,t.topContainer),this.bottom=new xv(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(i7);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new xv(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new xv(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(ky);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 xv{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=o7(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=o7(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 o7(e){let t=e.nextSibling;return e.remove(),t}const ky=Gt.define({enables:Nq});class Oc extends lp{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Oc.prototype.elementClass="";Oc.prototype.toDOM=void 0;Oc.prototype.mapMode=fo.TrackBefore;Oc.prototype.startSide=Oc.prototype.endSide=-1;Oc.prototype.point=!0;const NE=Gt.define(),XCe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Xn.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Ob=Gt.define();function KCe(e){return[Dq(),Ob.of(Object.assign(Object.assign({},XCe),e))]}const uR=Gt.define({combine:e=>e.some(t=>t)});function Dq(e){let t=[JCe];return e&&e.fixed===!1&&t.push(uR.of(!0)),t}const JCe=Xr.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(Ob).map(t=>new s7(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(uR),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(uR)!=!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(NE),this.view.viewport.from),r=[],i=this.gutters.map(o=>new eAe(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==Ko.Text&&a){cR(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==Ko.Text){cR(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(Ob),n=e.state.facet(Ob),r=e.docChanged||e.heightChanged||e.viewportChanged||!Xn.eq(e.startState.facet(NE),e.state.facet(NE),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 s7(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 a7(e){return Array.isArray(e)?e:[e]}function cR(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class eAe{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 Pq(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=[];cR(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 s7{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=a7(n.markers(t)),n.initialSpacer&&(this.spacer=new Pq(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=a7(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 Pq{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":""),tAe(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 YC extends Oc{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function GC(e,t){return e.state.facet(Nh).formatNumber(t,e.state)}const rAe=Ob.compute([Nh],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(nAe)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new YC(GC(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Nh)!=t.state.facet(Nh),initialSpacer(t){return new YC(GC(t,l7(t.state.doc.lines)))},updateSpacer(t,n){let r=GC(n.view,l7(n.view.state.doc.lines));return r==t.number?t:new YC(r)},domEventHandlers:e.facet(Nh).domEventHandlers}));function iAe(e={}){return[Nh.of(e),Dq(),rAe]}function l7(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(oAe.range(i)))}return Xn.of(t)});function sAe(){return aAe}const Lq=1024;let lAe=0;class Bs{constructor(t,n){this.from=t,this.to=n}}class On{constructor(t={}){this.id=lAe++,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 xy{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 uAe=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):uAe,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 j1{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:dP(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 pAe(t)}}ur.empty=new ur(Li.none,[],[],0);class uP{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 uP(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 Cy(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(Mq(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 cAe(a,c,t,d),null,p)}else if(o&Tr.IncludeAnonymous||!c.type.isAnonymous||cP(c)){let p;if(!(o&Tr.IgnoreMounts)&&(p=xy.get(c))&&!p.overlay)return new No(p.tree,d,t,a);let h=new No(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=xy.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 No(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 c7(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(;!i.type.is(n);)if(!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 dR(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 cAe{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class hu extends $q{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 Fq(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;on.from||a.to=t){let s=new No(a.tree,a.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(Cy(s,t,n,!1))}}return i?Fq(i):r}class tT{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 No)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 No?(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||cP(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 dR(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 cP(e){return e.children.some(t=>t instanceof Ud||!t.type.isAnonymous||cP(t))}function pAe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Lq,reused:o=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new uP(n,n.length):n,l=r.types,u=0,c=0;function d(A,w,E,M,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),M.push(U-A);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-A;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-A}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=dP(X,le,Ee,0,le.length,0,V-U,he,he)}else Z=y(X,le,Ee,V-U,Q-V)}E.push(Z),M.push(q)}function p(A,w,E,M){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)),M.push(V-A)}}function h(A){return(w,E,M)=>{let D=0,R=w.length-1,B,U;if(R>=0&&(B=w[R])instanceof ur){if(!R&&B.type==A&&B.length==M)return B;(U=B.prop(On.lookAhead))&&(D=E[R]+B.length+U)}return y(A,w,E,M,D)}}function m(A,w,E,M,D,R,B,U){let V=[],z=[];for(;A.length>M;)V.push(A.pop()),z.push(w.pop()+E-D);A.push(y(r.types[B],V,z,R-D,U-R)),w.push(D-E)}function y(A,w,E,M,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(A,w,E,M,R)}function O(A,w){let E=s.fork(),M=0,D=0,R=0,B=E.end-i,U={size:0,start:0,skip:0};e:for(let V=E.pos-A;E.pos>V;){let z=E.size;if(E.id==w&&z>=0){U.size=M,U.start=D,U.skip=R,R+=4,M+=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,M+=z,R+=X}return(w<0||M==A)&&(U.size=M,U.start=D,U.skip=R),U.size>4?U:void 0}function b(A,w,E){let{id:M,start:D,end:R,size:B}=s;if(s.next(),B>=0&&M4){let V=s.pos-(B-4);for(;s.pos>V;)E=b(A,w,E)}w[--E]=U,w[--E]=R-A,w[--E]=D-A,w[--E]=M}else B==-3?u=M:B==-4&&(c=M);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 d7=new WeakMap;function DE(e,t){if(!e.isAnonymous||t instanceof Ud||t.type!=e)return 1;let n=d7.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof ur)){n=1;break}n+=DE(e,r)}d7.set(t,n)}return n}function dP(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-A;d.push(dP(e,m,y,k,S,A,E,null,l))}p.push(A+v-o)}}return h(t,n,r,i,0),(s||l)(d,p,a)}class Bq{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 No&&this.map.set(t.tree,n)}get(t){return t instanceof hu?this.getBuffer(t.context.buffer,t.index):t instanceof No?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 sc{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 sc(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 sc(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 hAe{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 Uq(e){return(t,n,r,i)=>new gAe(t,e,n,r,i)}class f7{constructor(t,n,r,i,o){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=o}}function p7(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class mAe{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 fR=new On({perNode:!0});class gAe{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([[fR,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 xy(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=bAe(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 bAe(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 h7(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 OAe=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(fR))!==null&&n!==void 0?n:r.to,this.inner=new m7(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(fR))!==null&&t!==void 0?t:n.to,this.inner=new m7(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 g7(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 vAe(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=vAe(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 sc(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 sc(l,u,i.tree,-a,o.from>=a||o.openStart,o.to<=s||o.openEnd))}return n}let EAe=0;class hl{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=EAe++}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 nT;return n=>n.modified.indexOf(t)>-1?n:nT.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}}let SAe=0;class nT{constructor(){this.instances=[],this.id=SAe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&TAe(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=wAe(n);for(let s of t.set)if(!s.modified.length)for(let l of a)i.push(nT.get(s,l));return o}}function TAe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function wAe(e){let t=[[]];for(let n=0;nr.length-n.length)}function mg(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let o=[],a=2,s=i;for(let d=0;;){if(s=="..."&&d>0&&d+3==i.length){a=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!p)throw new RangeError("Invalid path: "+i);if(o.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),d+=p[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){a=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);s=i.slice(d)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new rT(r,a,l>0?o.slice(0,l):null);t[u]=c.sort(t[u])}}return jq.add(t)}const jq=new On;class rT{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 kAe(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function xAe(e,t,n,r=0,i=e.length){let o=new CAe(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class CAe{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=AAe(t)||rT.empty,d=kAe(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 AAe(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,Av=Lt(),Qc=Lt(),y7=Lt(Qc),O7=Lt(Qc),Yc=Lt(),_v=Lt(Yc),qC=Lt(Yc),Kl=Lt(),uf=Lt(Kl),Zl=Lt(),Xl=Lt(),pR=Lt(),m0=Lt(pR),Rv=Lt(),pe={comment:Av,lineComment:Lt(Av),blockComment:Lt(Av),docComment:Lt(Av),name:Qc,variableName:Lt(Qc),typeName:y7,tagName:Lt(y7),propertyName:O7,attributeName:Lt(O7),className:Lt(Qc),labelName:Lt(Qc),namespace:Lt(Qc),macroName:Lt(Qc),literal:Yc,string:_v,docString:Lt(_v),character:Lt(_v),attributeValue:Lt(_v),number:qC,integer:Lt(qC),float:Lt(qC),bool:Lt(Yc),regexp:Lt(Yc),escape:Lt(Yc),color:Lt(Yc),url:Lt(Yc),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:pR,separator:Lt(pR),bracket:m0,angleBracket:Lt(m0),squareBracket:Lt(m0),paren:Lt(m0),brace:Lt(m0),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:Rv,documentMeta:Lt(Rv),annotation:Lt(Rv),processingInstruction:Lt(Rv),definition:hl.defineModifier(),constant:hl.defineModifier(),function:hl.defineModifier(),standard:hl.defineModifier(),local:hl.defineModifier(),special:hl.defineModifier()};zq([{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 ZC;const Nf=new On;function pP(e){return Gt.define({combine:e?t=>t.concat(e):void 0})}const hP=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=v7(o,a,s),u=l.type.prop(Nf);if(!u)return[];let c=o.facet(u),d=l.type.prop(hP);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 v7(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 Vm(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 _Ae{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 g0=null;class Ay{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 Ay(t,n,[],ur.empty,0,r,[],null)}startParse(){return this.parser.startParse(new _Ae(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(sc.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=g0;g0=this;try{return t()}finally{g0=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=E7(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=sc.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=E7(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 fP{createParse(n,r,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let l=g0;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 g0}}function E7(e,t,n){return sc.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Hm{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 Hm(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Ay.create(t.facet(jd).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Hm(r)}}Us.state=Ki.define({create:Hm.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)?Hm.init(t.state):e.apply(t)}});let Vq=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(Vq=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const XC=typeof navigator<"u"&&(!((ZC=navigator.scheduling)===null||ZC===void 0)&&ZC.isInputPending)?()=>navigator.scheduling.isInputPending():null,RAe=Xr.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=Vq(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=o.context.work(()=>XC&&XC()||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 Hm(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,RAe,Vt.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class _y{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class iT{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 iT(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 IAe=Gt.define(),z1=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 oT(e){let t=e.facet(z1);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Ry(e,t){let n="",r=e.tabSize,i=e.facet(z1)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let o=0;o=t?NAe(e,n,t):null}class Ak{constructor(t,n={}){this.state=t,this.options=n,this.unit=oT(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 V1=new On;function NAe(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 Hq(r,e,n)}function Hq(e,t,n){for(let r=e;r;r=r.next){let i=PAe(r.node);if(i)return i(gP.create(t,n,r))}return 0}function DAe(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function PAe(e){let t=e.type.prop(V1);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=>Wq(a,!0,1,void 0,o&&!DAe(a)?i.from:void 0)}return e.parent==null?LAe:null}function LAe(){return 0}class gP extends Ak{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 gP(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(MAe(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return Hq(this.context.next,this.base,this.pos)}}function MAe(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function $Ae(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.fromWq(r,t,n,e)}function Wq(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?$Ae(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const BAe=e=>e.baseIndent;function PE({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const UAe=200;function jAe(){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+UAe)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=mP(a,c.from);if(d==null)continue;let p=/^\s*/.exec(c.text)[0],h=Ry(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 Qq=Gt.define(),gg=new On;function Yq(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 VAe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function aT(e,t,n){for(let r of e.facet(Qq)){let i=r(e,t,n);if(i)return i}return zAe(e,t,n)}function Gq(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 _k=xn.define({map:Gq}),H1=xn.define({map:Gq});function qq(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 dp=Ki.define({create(){return sn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(_k)&&!HAe(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(bP),i=r?sn.replace({widget:new XAe(r(t.state,n.value))}):S7;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(H1)&&(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 HAe(e,t,n){let r=!1;return e.between(t,t,(i,o)=>{i==t&&o==n&&(r=!0)}),r}function Zq(e,t){return e.field(dp,!1)?t:t.concat(xn.appendConfig.of(Kq()))}const WAe=e=>{for(let t of qq(e)){let n=aT(e.state,t.from,t.to);if(n)return e.dispatch({effects:Zq(e.state,[_k.of(n),Xq(e,n)])}),!0}return!1},QAe=e=>{if(!e.state.field(dp,!1))return!1;let t=[];for(let n of qq(e)){let r=sT(e.state,n.from,n.to);r&&t.push(H1.of(r),Xq(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function Xq(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 YAe=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(dp,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(H1.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},qAe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:WAe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:QAe},{key:"Ctrl-Alt-[",run:YAe},{key:"Ctrl-Alt-]",run:GAe}],ZAe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},bP=Gt.define({combine(e){return Iu(e,ZAe)}});function Kq(e){let t=[dp,e2e];return e&&t.push(bP.of(e)),t}function Jq(e,t){let{state:n}=e,r=n.facet(bP),i=a=>{let s=e.lineBlockAt(e.posAtDOM(a.target)),l=sT(e.state,s.from,s.to);l&&e.dispatch({effects:H1.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 S7=sn.replace({widget:new class extends Nu{toDOM(e){return Jq(e,null)}}});class XAe extends Nu{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Jq(t,this.value)}}const KAe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class KC extends Oc{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 JAe(e={}){let t=Object.assign(Object.assign({},KAe),e),n=new KC(t,!0),r=new KC(t,!1),i=Xr.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(dp,!1)!=a.state.field(dp,!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=sT(a.state,l.from,l.to)?r:aT(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:o}=t;return[i,KCe({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 KC(t,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(a,s,l)=>{if(o.click&&o.click(a,s,l))return!0;let u=sT(a.state,s.from,s.to);if(u)return a.dispatch({effects:H1.of(u)}),!0;let c=aT(a.state,s.from,s.to);return c?(a.dispatch({effects:_k.of(c)}),!0):!1}})}),Kq()]}const e2e=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 W1{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=zq(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 W1(t,n||{})}}const hR=Gt.define(),eZ=Gt.define({combine(e){return e.length?[e[0]]:null}});function JC(e){let t=e.facet(hR);return t.length?t:e.facet(eZ)}function tZ(e,t){let n=[n2e],r;return e instanceof W1&&(e.module&&n.push(Vt.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(eZ.of(e)):r?n.push(hR.computeN([Vt.darkTheme],i=>i.facet(Vt.darkTheme)==(r=="dark")?[e]:[])):n.push(hR.of(e)),n}class t2e{constructor(t){this.markCache=Object.create(null),this.tree=kr(t.state),this.decorations=this.buildDeco(t,JC(t.state))}update(t){let n=kr(t.state),r=JC(t.state),i=r!=JC(t.startState);n.length{r.add(a,s,this.markCache[l]||(this.markCache[l]=sn.mark({class:l})))},i,o);return r.finish()}}const n2e=Zd.high(Xr.fromClass(t2e,{decorations:e=>e.decorations})),r2e=W1.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"}]),i2e=Vt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),nZ=1e4,rZ="()[]{}",iZ=Gt.define({combine(e){return Iu(e,{afterCursor:!0,brackets:rZ,maxScanDistance:nZ,renderMatch:s2e})}}),o2e=sn.mark({class:"cm-matchingBracket"}),a2e=sn.mark({class:"cm-nonmatchingBracket"});function s2e(e){let t=[],n=e.matched?o2e:a2e;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 l2e=Ki.define({create(){return sn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(iZ);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)}),u2e=[l2e,i2e];function c2e(e={}){return[iZ.of(e),u2e]}const oZ=new On;function mR(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 gR(e){let t=e.type.prop(oZ);return t?t(e.node):e}function mu(e,t,n,r={}){let i=r.maxScanDistance||nZ,o=r.brackets||rZ,a=kr(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let u=mR(l.type,n,o);if(u&&l.from0?t>=c.from&&tc.from&&t<=c.to))return d2e(e,t,n,l,c,u,o)}}return f2e(e,t,n,a,s.type,i,o)}function d2e(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 p2e=Object.create(null),T7=[Li.none],w7=[],k7=Object.create(null),h2e=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"]])h2e[e]=m2e(p2e,t);function eA(e,t){w7.indexOf(e)>-1||(w7.push(e),console.warn(t))}function m2e(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):eA(u,`Modifier ${u} used at start of tag`):l.length?eA(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:eA(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=k7[i];if(o)return o.id;let a=k7[i]=Li.define({id:T7.length,name:r,props:[mg({[r]:n})]});return T7.push(a),a.id}Dr.RTL,Dr.LTR;const g2e=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=OP(e.state,n.from);return r.line?b2e(e):r.block?O2e(e):!1};function yP(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 b2e=yP(S2e,0),y2e=yP(aZ,0),O2e=yP((e,t)=>aZ(e,t,E2e(t)),0);function OP(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const b0=50;function v2e(e,{open:t,close:n},r,i){let o=e.sliceDoc(r-b0,r),a=e.sliceDoc(i,i+b0),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*b0?c=d=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+b0),d=e.sliceDoc(i-b0,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 E2e(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 aZ(e,t,n=t.selection.ranges){let r=n.map(o=>OP(t,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,a)=>v2e(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 bR=Ll.define(),T2e=Ll.define(),w2e=Gt.define(),sZ=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)})}}),lZ=Ki.define({create(){return gu.empty},update(e,t){let n=t.state.facet(sZ),r=t.annotation(bR);if(r){let l=Oa.fromTransaction(t,r.selection),u=r.side,c=u==0?e.undone:e.done;return l?c=lT(c,c.length,n.minDepth,l):c=dZ(c,t.startState.selection),new gu(u==0?r.rest:c,u==0?c:r.rest)}let i=t.annotation(T2e);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(Di.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Oa.fromTransaction(t),a=t.annotation(Di.time),s=t.annotation(Di.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(Oa.fromJSON),e.undone.map(Oa.fromJSON))}});function k2e(e={}){return[lZ,sZ.of(e),Vt.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?uZ:t.inputType=="historyRedo"?yR:null;return r?(t.preventDefault(),r(n)):!1}})]}function Rk(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(lZ,!1);if(!i)return!1;let o=i.pop(e,n,t);return o?(r(o),!0):!1}}const uZ=Rk(0,!1),yR=Rk(1,!1),x2e=Rk(0,!0),C2e=Rk(1,!0);class Oa{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 Oa(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 Oa(t.changes&&Ri.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(w2e)){let o=i(t);o.length&&(r=r.concat(o))}return!r.length&&t.changes.empty?null:new Oa(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,js)}static selection(t){return new Oa(void 0,js,void 0,void 0,t)}}function lT(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 A2e(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 _2e(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function cZ(e,t){return e.length?t.length?e.concat(t):e:t}const js=[],R2e=200;function dZ(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-R2e));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),lT(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Oa.selection([t])]}function I2e(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 tA(e,t){if(!e.length)return e;let n=e.length,r=js;for(;n;){let i=N2e(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?[Oa.selection(r)]:js}function N2e(e,t,n){let r=cZ(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):js,n);if(!e.changes)return Oa.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new Oa(i,xn.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const D2e=/^(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||D2e.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):Ik(n,t))}function Mo(e){return e.textDirectionAt(e.state.selection.main.head)==Dr.LTR}const pZ=e=>fZ(e,!Mo(e)),hZ=e=>fZ(e,Mo(e));function mZ(e,t){return Ml(e,n=>n.empty?e.moveByGroup(n,t):Ik(n,t))}const L2e=e=>mZ(e,!Mo(e)),M2e=e=>mZ(e,Mo(e));function $2e(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 Nk(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;$2e(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 F2e=e=>Ml(e,t=>Nk(e.state,t,!Mo(e))),B2e=e=>Ml(e,t=>Nk(e.state,t,Mo(e)));function gZ(e,t){return Ml(e,n=>{if(!n.empty)return Ik(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const bZ=e=>gZ(e,!1),yZ=e=>gZ(e,!0);function OZ(e){let t=e.scrollDOM.clientHeighta.empty?e.moveVertically(a,t,n.height):Ik(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.bottomvZ(e,!1),OR=e=>vZ(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 U2e=e=>Ml(e,t=>Xd(e,t,!0)),j2e=e=>Ml(e,t=>Xd(e,t,!1)),z2e=e=>Ml(e,t=>Xd(e,t,!Mo(e))),V2e=e=>Ml(e,t=>Xd(e,t,Mo(e))),H2e=e=>Ml(e,t=>Je.cursor(e.lineBlockAt(t.head).from,1)),W2e=e=>Ml(e,t=>Je.cursor(e.lineBlockAt(t.head).to,-1));function Q2e(e,t,n){let r=!1,i=bg(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.headQ2e(e,t,!1);function nl(e,t){let n=bg(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 EZ(e,t){return nl(e,n=>e.moveByChar(n,t))}const SZ=e=>EZ(e,!Mo(e)),TZ=e=>EZ(e,Mo(e));function wZ(e,t){return nl(e,n=>e.moveByGroup(n,t))}const G2e=e=>wZ(e,!Mo(e)),q2e=e=>wZ(e,Mo(e)),Z2e=e=>nl(e,t=>Nk(e.state,t,!Mo(e))),X2e=e=>nl(e,t=>Nk(e.state,t,Mo(e)));function kZ(e,t){return nl(e,n=>e.moveVertically(n,t))}const xZ=e=>kZ(e,!1),CZ=e=>kZ(e,!0);function AZ(e,t){return nl(e,n=>e.moveVertically(n,t,OZ(e).height))}const C7=e=>AZ(e,!1),A7=e=>AZ(e,!0),K2e=e=>nl(e,t=>Xd(e,t,!0)),J2e=e=>nl(e,t=>Xd(e,t,!1)),e_e=e=>nl(e,t=>Xd(e,t,!Mo(e))),t_e=e=>nl(e,t=>Xd(e,t,Mo(e))),n_e=e=>nl(e,t=>Je.cursor(e.lineBlockAt(t.head).from)),r_e=e=>nl(e,t=>Je.cursor(e.lineBlockAt(t.head).to)),_7=({state:e,dispatch:t})=>(t(Du(e,{anchor:0})),!0),R7=({state:e,dispatch:t})=>(t(Du(e,{anchor:e.doc.length})),!0),I7=({state:e,dispatch:t})=>(t(Du(e,{anchor:e.selection.main.anchor,head:0})),!0),N7=({state:e,dispatch:t})=>(t(Du(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),i_e=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),o_e=({state:e,dispatch:t})=>{let n=Dk(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},a_e=({state:e,dispatch:t})=>{let n=bg(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},s_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=Iv(e,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=Iv(e,a,!1),s=Iv(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 _Z=(e,t)=>Q1(e,n=>{let r=n.from,{state:i}=e,o=i.doc.lineAt(r),a,s;if(!t&&r>o.from&&r_Z(e,!1),RZ=e=>_Z(e,!0),IZ=(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=po(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}),NZ=e=>IZ(e,!1),l_e=e=>IZ(e,!0),u_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)}),d_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},p_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:po(o.text,i-o.from,!1)+o.from,s=i==o.to?i+1:po(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 Dk(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 DZ(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of Dk(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 h_e=({state:e,dispatch:t})=>DZ(e,t,!1),m_e=({state:e,dispatch:t})=>DZ(e,t,!0);function PZ(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of Dk(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 g_e=({state:e,dispatch:t})=>PZ(e,t,!1),b_e=({state:e,dispatch:t})=>PZ(e,t,!0),y_e=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Dk(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 O_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 v_e=LZ(!1),E_e=LZ(!0);function LZ(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&&O_e(t,o);e&&(o=a=(a<=s.to?s:t.doc.lineAt(a)).to);let u=new Ak(t,{simulateBreak:o,simulateDoubleBreak:!!l}),c=mP(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 S_e=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Ak(e,{overrideIndentation:o=>{let a=n[o];return a??-1}}),i=vP(e,(o,a,s)=>{let l=mP(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=Ry(e,l);(u!=c||s.frome.readOnly?!1:(t(e.update(vP(e,(n,r)=>{r.push({from:n.from,insert:e.facet(z1)})}),{userEvent:"input.indent"})),!0),$Z=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(vP(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=_l(i,e.tabSize),a=0,s=Ry(e,Math.max(0,o-oT(e)));for(;a({mac:e.key,run:e.run,shift:e.shift}))),k_e=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:F2e,shift:Z2e},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:B2e,shift:X2e},{key:"Alt-ArrowUp",run:h_e},{key:"Shift-Alt-ArrowUp",run:g_e},{key:"Alt-ArrowDown",run:m_e},{key:"Shift-Alt-ArrowDown",run:b_e},{key:"Escape",run:s_e},{key:"Mod-Enter",run:E_e},{key:"Alt-l",mac:"Ctrl-l",run:o_e},{key:"Mod-i",run:a_e,preventDefault:!0},{key:"Mod-[",run:$Z},{key:"Mod-]",run:MZ},{key:"Mod-Alt-\\",run:S_e},{key:"Shift-Mod-k",run:y_e},{key:"Shift-Mod-\\",run:Y2e},{key:"Mod-/",run:g2e},{key:"Alt-A",run:y2e}].concat(w_e),x_e={key:"Tab",run:MZ,shift:$Z};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 Wm{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(D7(s)):D7,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=ZD(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=Ms(t);let i=this.normalize(n);for(let o=0,a=r;;o++){let s=i.charCodeAt(o),l=this.match(s,a);if(o==i.length-1){if(l)return this.value=l,this;break}a==r&&othis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=uT(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let s=new Kh(n,t.sliceString(n,r));return nA.set(t,s),s}if(i.from==n&&i.to==r)return i;let{text:o,from:a}=i;return a>n&&(o=t.sliceString(n,a)+o,a=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=uT(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Kh.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(UZ.prototype[Symbol.iterator]=jZ.prototype[Symbol.iterator]=function(){return this});function C_e(e){try{return new RegExp(e,EP),!0}catch{return!1}}function uT(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function ER(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:cT.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:[cT.of(!1),Vt.scrollIntoView(y.from,{y:"center"})],selection:y}),e.focus()}return{dom:r}}const cT=xn.define(),P7=Ki.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(cT)&&(e=n.value);return e},provide:e=>ky.from(e,t=>t?ER:null)}),A_e=e=>{let t=wy(e,ER);if(!t){let n=[cT.of(!0)];e.state.field(P7,!1)==null&&n.push(xn.appendConfig.of([P7,__e])),e.dispatch({effects:n}),t=wy(e,ER)}return t&&t.dom.querySelector("input").select(),!0},__e=Vt.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),R_e={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},zZ=Gt.define({combine(e){return Iu(e,R_e,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function I_e(e){let t=[M_e,L_e];return e&&t.push(zZ.of(e)),t}const N_e=sn.mark({class:"cm-selectionMatch"}),D_e=sn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function L7(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 P_e(e,t,n,r){return e(t.sliceDoc(n,n+1))==Vr.Word&&e(t.sliceDoc(r-1,r))==Vr.Word}const L_e=Xr.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(zZ),{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),!(L7(a,n,i.from,i.to)&&P_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 Wm(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:c,to:d}=u.value;if((!a||L7(a,n,c,d))&&(i.empty&&c<=i.from&&d>=i.to?s.push(D_e.range(c,d)):(c>=i.to||d<=i.from)&&s.push(N_e.range(c,d)),s.length>t.maxMatches))return sn.none}}return sn.set(s)}},{decorations:e=>e.decorations}),M_e=Vt.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),$_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 F_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 Wm(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new Wm(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 B_e=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(o=>o.from===o.to))return $_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=F_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},yg=Gt.define({combine(e){return Iu(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new X_e(t),scrollToMatch:t=>Vt.scrollIntoView(t)})}});class VZ{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||C_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 V_e(this):new j_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?uh(this,i,n,r):lh(this,i,n,r)}}class HZ{constructor(t){this.spec=t}}function lh(e,t,n,r){return new Wm(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?U_e(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function U_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=lh(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 uh(e,t,n,r){return new UZ(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?z_e(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function dT(e,t){return e.slice(po(e,t,!1),t)}function fT(e,t){return e.slice(t,po(e,t))}function z_e(e){return(t,n,r)=>!r[0].length||(e(dT(r.input,r.index))!=Vr.Word||e(fT(r.input,r.index))!=Vr.Word)&&(e(fT(r.input,r.index+r[0].length))!=Vr.Word||e(dT(r.input,r.index+r[0].length))!=Vr.Word)}class V_e extends HZ{nextMatch(t,n,r){let i=uh(this.spec,t,r,t.doc.length).next();return i.done&&(i=uh(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=uh(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=uh(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 Iy=xn.define(),SP=xn.define(),xd=Ki.define({create(e){return new rA(SR(e).create(),null)},update(e,t){for(let n of t.effects)n.is(Iy)?e=new rA(n.value.create(),e.panel):n.is(SP)&&(e=new rA(e.query,n.value?TP:null));return e},provide:e=>ky.from(e,t=>t.panel)});class rA{constructor(t,n){this.query=t,this.panel=n}}const H_e=sn.mark({class:"cm-searchMatch"}),W_e=sn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Q_e=Xr.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?W_e:H_e)})}return r.finish()}},{decorations:e=>e.decorations});function Y1(e){return t=>{let n=t.state.field(xd,!1);return n&&n.query.spec.valid?e(t,n):YZ(t)}}const pT=Y1((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(yg);return e.dispatch({selection:i,effects:[wP(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),QZ(e),!0}),hT=Y1((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(yg);return e.dispatch({selection:o,effects:[wP(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),QZ(e),!0}),Y_e=Y1((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)}),G_e=({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 Wm(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},M7=Y1((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(wP(e,o)),u.push(n.facet(yg).scrollToMatch(s.main,e))}return e.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),q_e=Y1((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 TP(e){return e.state.facet(yg).createPanel(e)}function SR(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(yg);return new VZ({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 WZ(e){let t=wy(e,TP);return t&&t.dom.querySelector("[main-field]")}function QZ(e){let t=WZ(e);t&&t==e.root.activeElement&&t.select()}const YZ=e=>{let t=e.state.field(xd,!1);if(t&&t.panel){let n=WZ(e);if(n&&n!=e.root.activeElement){let r=SR(e.state,t.query.spec);r.valid&&e.dispatch({effects:Iy.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[SP.of(!0),t?Iy.of(SR(e.state,t.query.spec)):xn.appendConfig.of(J_e)]});return!0},GZ=e=>{let t=e.state.field(xd,!1);if(!t||!t.panel)return!1;let n=wy(e,TP);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:SP.of(!1)}),!0},Z_e=[{key:"Mod-f",run:YZ,scope:"editor search-panel"},{key:"F3",run:pT,shift:hT,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:pT,shift:hT,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:GZ,scope:"editor search-panel"},{key:"Mod-Shift-l",run:G_e},{key:"Mod-Alt-g",run:A_e},{key:"Mod-d",run:B_e,preventDefault:!0}];class X_e{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:Fa(t,"Find"),"aria-label":Fa(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:Fa(t,"Replace"),"aria-label":Fa(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",()=>pT(t),[Fa(t,"next")]),r("prev",()=>hT(t),[Fa(t,"previous")]),r("select",()=>Y_e(t),[Fa(t,"all")]),Sr("label",null,[this.caseField,Fa(t,"match case")]),Sr("label",null,[this.reField,Fa(t,"regexp")]),Sr("label",null,[this.wordField,Fa(t,"by word")]),...t.state.readOnly?[]:[Sr("br"),this.replaceField,r("replace",()=>M7(t),[Fa(t,"replace")]),r("replaceAll",()=>q_e(t),[Fa(t,"replace all")])],Sr("button",{name:"close",onclick:()=>GZ(t),"aria-label":Fa(t,"close"),type:"button"},["×"])])}commit(){let t=new VZ({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:Iy.of(t)}))}keydown(t){uCe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?hT:pT)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),M7(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(Iy)&&!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(yg).top}}function Fa(e,t){return e.state.phrase(t)}const Nv=30,Dv=/[\s\.,:;?!]/;function wP(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-Nv),a=Math.min(i,n+Nv),s=e.state.sliceDoc(o,a);if(o!=r.from){for(let l=0;ls.length-Nv;l--)if(!Dv.test(s[l-1])&&Dv.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 K_e=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"}}),J_e=[xd,Zd.low(Q_e),K_e];class kP{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(ZZ(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 $7(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 eRe(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+$/]:eRe(t);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:t,validFor:n}:null}}function tRe(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 F7{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 ZZ(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 XZ=Ll.define();function nRe(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 B7=new WeakMap;function rRe(e){if(!Array.isArray(e))return e;let t=B7.get(e);return t||B7.set(e,t=qZ(e)),t}const xP=xn.define(),Ny=xn.define();class iRe{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&&A<=57||A>=97&&A<=122?2:A>=65&&A<=90?1:0:(w=ZD(A))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!v||E==1&&O||k==0&&E!=0)&&(n[d]==A||r[d]==A&&(p=!0)?a[d++]=v:a.length&&(b=!1)),k=E,v+=Ms(A)}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?Ms(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 _o=Gt.define({combine(e){return Iu(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:oRe,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=>U7(t(r),n(r)),optionClass:(t,n)=>r=>U7(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function U7(e,t){return e?t?e+" "+t:e:t}function oRe(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 aRe(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 iA(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 sRe{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(_o);this.optionContent=aRe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=iA(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(_o).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:Ny.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=iA(o.length,a,t.state.facet(_o).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=iA(n.options.length,n.selected,this.view.state.facet(_o).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&&uRe(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 sRe(n,e,t)}function uRe(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 j7(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function cRe(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 F7(c,l.source,u?u(c):[],1e9-n.length));else{let c=new iRe(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 F7(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):j7(l.completion)>j7(a)&&(o[o.length-1]=l),a=l.completion}return o}class Dh{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 Dh(this.options,z7(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,o){let a=cRe(t,n);if(!a.length)return i&&t.some(l=>l.state==1)?new Dh(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=n.facet(_o).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:mRe,above:o.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(t){return new Dh(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class mT{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new mT(pRe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(_o),o=(r.override||n.languageDataAt("autocomplete",Cd(n)).map(rRe)).map(s=>(this.active.find(u=>u.source==s)||new ga(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))||!dRe(o,this.active)?a=Dh.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 ga(s.source,0):s));for(let s of t.effects)s.is(JZ)&&(a=a&&a.setSelected(s.value,this.id));return o==this.active&&a==this.open?this:new mT(o,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:fRe}}function dRe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const pRe=[];function TR(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class ga{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=TR(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new ga(i.source,0));for(let o of t.effects)if(o.is(xP))i=new ga(i.source,1,o.value?Cd(t.state):-1);else if(o.is(Ny))i=new ga(i.source,0);else if(o.is(KZ))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 ga(this.source,1)}handleChange(t){return t.changes.touchesRange(Cd(t.startState))?new ga(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new ga(this.source,this.state,t.mapPos(this.explicitPos))}}class Jh extends ga{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 ga(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return hRe(this.result.validFor,t.state,o,a)?new Jh(this.source,l,this.result,o,a):this.result.update&&(u=this.result.update(this.result,o,a,new kP(t.state,s,l>=0)))?new Jh(this.source,l,u,u.from,(i=u.to)!==null&&i!==void 0?i:Cd(t.state)):new ga(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new ga(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new Jh(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function hRe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):ZZ(e,!0).test(i)}const KZ=xn.define({map(e,t){return e.map(n=>n.map(t))}}),JZ=xn.define(),qa=Ki.define({create(){return mT.start()},update(e,t){return e.update(t)},provide:e=>[lP.from(e,t=>t.tooltip),Vt.contentAttributes.from(e,t=>t.attrs)]});function eX(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(qa).active.find(i=>i.source==t.source);return r instanceof Jh?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},nRe(e.state,n,r.from,r.to)),{annotations:XZ.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const mRe=lRe(qa,eX);function Pv(e,t="option"){return n=>{let r=n.state.field(qa,!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:JZ.of(s)}),!0}}const gRe=e=>{let t=e.state.field(qa,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(qa,!1)?(e.dispatch({effects:xP.of(!0)}),!0):!1,yRe=e=>{let t=e.state.field(qa,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:Ny.of(null)}),!0)};class ORe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const vRe=50,ERe=1e3,SRe=Xr.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(qa).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(qa);if(!e.selectionSet&&!e.docChanged&&e.startState.field(qa)==t)return;let n=e.transactions.some(r=>(r.selection||r.docChanged)&&!TR(r));for(let r=0;rvRe&&Date.now()-i.time>ERe){for(let o of i.context.abortListeners)try{o()}catch(a){Qs(this.view.state,a)}i.context.abortListeners=null,this.running.splice(r--,1)}else i.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(r=>r.state==1&&!this.running.some(i=>i.active.source==r.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let r of e.transactions)TR(r)=="input"?this.composing=2:this.composing==2&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(qa);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 kP(t,n,e.explicitPos==n),i=new ORe(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:Ny.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(_o).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(_o);for(let r=0;ra.source==i.active.source);if(o&&o.state==1)if(i.done==null){let a=new ga(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:KZ.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(qa,!1);if(t&&t.tooltip&&this.view.state.facet(_o).closeOnBlur){let n=t.open&&Iq(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&this.view.dispatch({effects:Ny.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:xP.of(!1)}),20),this.composing=0}}}),tX=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 TRe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class CP{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 CP(this.field,n,r)}}class AP{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 CP(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 TRe(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 AP(r,i)}}let wRe=sn.widget({widget:new class extends Nu{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),kRe=sn.mark({class:"cm-snippetField"});class Og{constructor(t,n){this.ranges=t,this.active=n,this.deco=sn.set(t.map(r=>(r.from==r.to?wRe:kRe).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 Og(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 G1=xn.define({map(e,t){return e&&e.map(t)}}),xRe=xn.define(),Dy=Ki.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(G1))return n.value;if(n.is(xRe)&&e)return new Og(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 _P(e,t){return Je.create(e.filter(n=>n.field==t).map(n=>Je.range(n.from,n.to)))}function CRe(e){let t=AP.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?XZ.of(r):void 0};if(s.length&&(l.selection=_P(s,0)),s.length>1){let u=new Og(s,0),c=l.effects=[G1.of(u)];n.state.field(Dy,!1)===void 0&&c.push(xn.appendConfig.of([Dy,NRe,DRe,tX]))}n.dispatch(n.state.update(l))}}function nX(e){return({state:t,dispatch:n})=>{let r=t.field(Dy,!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:_P(r.ranges,i),effects:G1.of(o?null:new Og(r.ranges,i)),scrollIntoView:!0})),!0}}const ARe=({state:e,dispatch:t})=>e.field(Dy,!1)?(t(e.update({effects:G1.of(null)})),!0):!1,_Re=nX(1),RRe=nX(-1),IRe=[{key:"Tab",run:_Re,shift:RRe},{key:"Escape",run:ARe}],V7=Gt.define({combine(e){return e.length?e[0]:IRe}}),NRe=Zd.highest(hg.compute([V7],e=>e.facet(V7)));function da(e,t){return Object.assign(Object.assign({},t),{apply:CRe(e)})}const DRe=Vt.domEventHandlers({mousedown(e,t){let n=t.state.field(Dy,!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:_P(n.ranges,i.field),effects:G1.of(n.ranges.some(o=>o.field>i.field)?new Og(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Py={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Df=xn.define({map(e,t){let n=t.mapPos(e,-1,fo.TrackAfter);return n??void 0}}),RP=new class extends lp{};RP.startSide=1;RP.endSide=-1;const rX=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:[RP.range(n.value,n.value+1)]}));return e}});function PRe(){return[MRe,rX]}const oA="()[]{}<>";function iX(e){for(let t=0;t{if((LRe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&Ms(uo(r,0))==1||t!=i.from||n!=i.to)return!1;let o=BRe(e.state,r);return o?(e.dispatch(o),!0):!1}),$Re=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=oX(e,e.selection.main.head).brackets||Py.brackets,i=null,o=e.changeByRange(a=>{if(a.empty){let s=URe(e.doc,a.head);for(let l of r)if(l==s&&Pk(e.doc,a.head)==iX(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},FRe=[{key:"Backspace",run:$Re}];function BRe(e,t){let n=oX(e,e.selection.main.head),r=n.brackets||Py.brackets;for(let i of r){let o=iX(uo(i,0));if(t==i)return o==i?VRe(e,i,r.indexOf(i+i+i)>-1,n):jRe(e,i,o,n.before||Py.before);if(t==o&&aX(e,e.selection.main.from))return zRe(e,i,o)}return null}function aX(e,t){let n=!1;return e.field(rX).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function Pk(e,t){let n=e.sliceString(t,t+2);return n.slice(0,Ms(uo(n,0)))}function URe(e,t){let n=e.sliceString(t-2,t);return Ms(uo(n,0))==n.length?n:n.slice(1)}function jRe(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=Pk(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 zRe(e,t,n){let r=null,i=e.changeByRange(o=>o.empty&&Pk(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 VRe(e,t,n,r){let i=r.stringPrefixes||Py.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=Pk(e.doc,l),c;if(u==t){if(H7(e,l))return{changes:{insert:t+t,from:l},effects:Df.of(l+t.length),range:Je.cursor(l+t.length)};if(aX(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=W7(e,l-2*t.length,i))>-1&&H7(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&&W7(e,l,i)>-1&&!HRe(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 H7(e,t){let n=kr(e).resolveInner(t+1);return n.parent&&n.from==t}function HRe(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 W7(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 WRe(e={}){return[qa,_o.of(e),SRe,QRe,tX]}const sX=[{key:"Ctrl-Space",run:bRe},{key:"Escape",run:yRe},{key:"ArrowDown",run:Pv(!0)},{key:"ArrowUp",run:Pv(!1)},{key:"PageDown",run:Pv(!0,"page")},{key:"PageUp",run:Pv(!1,"page")},{key:"Enter",run:gRe}],QRe=Zd.highest(hg.computeN([_o],e=>e.facet(_o).defaultKeymap?[sX]:[]));class YRe{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(cX).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 nIe(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,Qm(a))}}function Qm(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 YRe(i,o,a.diagnostic),!1}),r}function GRe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(lX))||e.changes.touchesRange(n.from,n.to))}function qRe(e,t){return e.field(ns,!1)?t:t.concat(xn.appendConfig.of(oIe))}const lX=xn.define(),IP=xn.define(),uX=xn.define(),ns=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=Qm(n,e.selected.diagnostic,i)||Qm(n,null,i)}e=new Ef(n,e.panel,r)}for(let n of t.effects)n.is(lX)?e=Ef.init(n.value,e.panel,t.state):n.is(IP)?e=new Ef(e.diagnostics,n.value?Lk.open:null,e.selected):n.is(uX)&&(e=new Ef(e.diagnostics,e.panel,n.value));return e},provide:e=>[ky.from(e,t=>t.panel),Vt.decorations.from(e,t=>t.diagnostics)]}),ZRe=sn.mark({class:"cm-lintRange cm-lintRange-active"});function XRe(e,t,n){let{diagnostics:r}=e.state.field(ns),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)&&(tfX(e,n,!1)))}const JRe=e=>{let t=e.state.field(ns,!1);(!t||!t.panel)&&e.dispatch({effects:qRe(e.state,[IP.of(!0)])});let n=wy(e,Lk.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},Q7=e=>{let t=e.state.field(ns,!1);return!t||!t.panel?!1:(e.dispatch({effects:IP.of(!1)}),!0)},eIe=e=>{let t=e.state.field(ns,!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)},tIe=[{key:"Mod-Shift-m",run:JRe,preventDefault:!0},{key:"F8",run:eIe}],cX=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 dX(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 fX(e,t,n){var r;let i=n?dX(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=Qm(e.state.field(ns).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 nIe 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 Y7{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=fX(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Lk{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)Q7(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=dX(o.actions);for(let s=0;s{for(let o=0;oQ7(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(ns).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(ns),r=Qm(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:uX.of(r)})}static open(t){return new Lk(t)}}function rIe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function Lv(e){return rIe(``,'width="6" height="3"')}const iIe=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:Lv("#d11")},".cm-lintRange-warning":{backgroundImage:Lv("orange")},".cm-lintRange-info":{backgroundImage:Lv("#999")},".cm-lintRange-hint":{backgroundImage:Lv("#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}}}),oIe=[ns,Vt.decorations.compute([ns],e=>{let{selected:t,panel:n}=e.field(ns);return!t||!n||t.from==t.to?sn.none:sn.set([ZRe.range(t.from,t.to)])}),qCe(XRe,{hideOn:GRe}),iIe],aIe=[iAe(),sAe(),xCe(),k2e(),JAe(),mCe(),vCe(),qn.allowMultipleSelections.of(!0),jAe(),tZ(r2e,{fallback:!0}),c2e(),PRe(),WRe(),FCe(),jCe(),NCe(),I_e(),hg.of([...FRe,...k_e,...Z_e,...P2e,...qAe,...sX,...tIe])];class gT{static create(t,n,r,i,o){let a=i+(i<<8)+t+(n<<4)|0;return new gT(t,n,r,a,o,[],[])}constructor(t,n,r,i,o,a,s){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=o,this.children=a,this.positions=s,this.hashProp=[[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 sIe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class lIe{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 vb(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?PP:DP)(n,t,!1);return r>0&&(e.type!=Rt.BulletList||NP(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const pX={[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]:G7,[Rt.BulletList]:G7,[Rt.Document](){return!0}};function rl(e){return e==32||e==9||e==10||e==13}function vb(e,t=0){for(;tn&&rl(e.charCodeAt(t-1));)t--;return t}function hX(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 gX(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function DP(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||gX(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 bX(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function yX(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,vX=/\?>/,kR=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,CX=/\?>/,xR=[[/^<(?: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=My.test(i),s=My.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?xX:CX,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(O0,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new ml(X7,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==O0||i.type==X7)){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]=mIe(e,o,i.type==O0?Rt.Link:Rt.Image,i.from,n+1);if(i.type==O0)for(let s=0;st?Gn(Rt.URL,t+n,o+n):o==e.length?null:!1}}function _X(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 vb(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 kX(t,n)}}function CR(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=IX(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")&&(bIe.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 IX(e,t){let n=e;for(let r=1;rMv[e]),Object.keys(Mv).map(e=>dIe[e]),Object.keys(Mv),fIe,pX,Object.keys(sA).map(e=>sA[e]),Object.keys(sA),[]);function EIe(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 SIe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:Uq((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:EIe(i.node,i.from,i.to)};return null})}}const TIe={resolve:"Strikethrough",mark:"StrikethroughMark"},wIe={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=My.test(r),l=My.test(i);return e.addDelimiter(TIe,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function Eb(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 J7(e,t){for(let n=t;ni instanceof e9)||!J7(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return NX.test(r)&&Eb(e,t.text,t.basePos)==Eb(e,r,t.basePos)},before:"SetextHeading"}]};class xIe{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 CIe={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 xIe:null},after:"SetextHeading"}]},t9=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,n9=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,AIe=/[\w-]+\.[\w-]+($|\/)/,r9=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,i9=/\/[a-zA-Z\d@.]+/gy;function o9(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==")"&&o9(e,t,r,")")>o9(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 a9(e,t){r9.lastIndex=t;let n=r9.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 RIe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;t9.lastIndex=r;let i=t9.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=_Ie(e.text,r+i[0].length):i[3]?o=a9(e.text,r):(o=a9(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(i9.lastIndex=o,i=i9.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)}}]},IIe=[kIe,CIe,wIe,RIe];function DX(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 bT(t,[],n,r,r,0,[],0,i?new l9(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 bT(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 LIe(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 l9{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class LIe{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 yT{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 yT(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 yT(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 LE{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const u9=new LE;class MIe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=u9,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=u9,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class em{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;PX(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}em.prototype.contextual=em.prototype.fallback=em.prototype.extend=!1;class OT{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(PX(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))}}OT.prototype.contextual=em.prototype.fallback=em.prototype.extend=!1;class $l{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function PX(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||$Ie(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 c9(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function $Ie(e,t,n,r){let i=c9(n,r,t);return i<0||c9(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 FIe{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?d9(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?d9(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 BIe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new LE)}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 LE,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 LE,{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 FIe(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&&zIe(i);if(a)return Ba&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Ba&&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 Ba&&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),Ba&&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),Ba&&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(),Ba&&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&&(Ba&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));h++)Ba&&(p=this.stackID(d)+" -> ");for(let h of s.recoverByInsert(l))Ba&&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),Ba&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),f9(s,r)):(!i||i.scoree;class LX{constructor(t){this.start=t.start,this.shift=t.shift||uA,this.reduce=t.reduce||uA,this.reuse=t.reuse||uA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Gm extends fP{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 j1(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=Lq;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 em(a,s):s),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new UIe(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(Gm.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]=p9(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 VIe=54,HIe=1,WIe=55,QIe=2,YIe=56,GIe=3,h9=4,qIe=5,vT=6,MX=7,$X=8,FX=9,BX=10,ZIe=11,XIe=12,KIe=13,cA=57,JIe=14,m9=58,UX=20,eNe=22,jX=23,tNe=24,AR=26,zX=27,nNe=28,rNe=31,iNe=34,oNe=36,aNe=37,sNe=0,lNe=1,uNe={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},cNe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},g9={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 dNe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function VX(e){return e==9||e==10||e==13||e==32}let b9=null,y9=null,O9=0;function _R(e,t){let n=e.pos+t;if(O9==n&&y9==e)return b9;let r=e.peek(t);for(;VX(r);)r=e.peek(++t);let i="";for(;dNe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return y9=e,O9=n,b9=i?i.toLowerCase():r==fNe||r==pNe?void 0:null}const HX=60,ET=62,LP=47,fNe=63,pNe=33,hNe=45;function v9(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new v9(_R(r,1)||"",e):e},reduce(e,t){return t==UX&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==vT||i==oNe?new v9(_R(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),bNe=new $l((e,t)=>{if(e.next!=HX){e.next<0&&t.context&&e.acceptToken(cA);return}e.advance();let n=e.next==LP;n&&e.advance();let r=_R(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?JIe:vT);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(ZIe);if(i&&cNe[i])return e.acceptToken(cA,-2);if(t.dialectEnabled(sNe))return e.acceptToken(XIe);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(KIe)}else{if(r=="script")return e.acceptToken(MX);if(r=="style")return e.acceptToken($X);if(r=="textarea")return e.acceptToken(FX);if(uNe.hasOwnProperty(r))return e.acceptToken(BX);i&&g9[i]&&g9[i][r]?e.acceptToken(cA,-1):e.acceptToken(vT)}},{contextual:!0}),yNe=new $l(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(m9);break}if(e.next==hNe)t++;else if(e.next==ET&&t>=2){n>=3&&e.acceptToken(m9,-2);break}else t=0;e.advance()}});function ONe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const vNe=new $l((e,t)=>{if(e.next==LP&&e.peek(1)==ET){let n=t.dialectEnabled(lNe)||ONe(t.context);e.acceptToken(n?qIe:h9,2)}else e.next==ET&&e.acceptToken(h9,1)});function MP(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==HX||o==1&&i.next==LP||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 ENe=MP("script",VIe,HIe),SNe=MP("style",WIe,QIe),TNe=MP("textarea",YIe,GIe),wNe=mg({"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}),kNe=Gm.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:gNe,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:[wNe],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==nNe)return dA(s,l,n);if(u==rNe)return dA(s,l,r);if(u==iNe)return dA(s,l,i);if(u==UX&&o.length){let c=s.node,d=c.firstChild,p=d&&E9(d,l),h;if(p){for(let m of o)if(m.tag==p&&(!m.attrs||m.attrs(h||(h=WX(c,l))))){let y=c.lastChild,O=y.type.id==aNe?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!=E9(c.parent,l))continue;let m=c.lastChild;if(m.type.id==AR){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==zX)return{parser:h.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const xNe=99,S9=1,CNe=100,ANe=101,T9=2,YX=[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],_Ne=58,RNe=40,GX=95,INe=91,ME=45,NNe=46,DNe=35,PNe=37,LNe=38,MNe=92,$Ne=10;function $y(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function FNe(e){return e>=48&&e<=57}const BNe=new $l((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if($y(o)||o==ME||o==GX||n&&FNe(o))!n&&(o!=ME||i>0)&&(n=!0),r===i&&o==ME&&r++,e.advance();else if(o==MNe&&e.peek(1)!=$Ne)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==RNe?CNe:r==2&&t.canShift(T9)?T9:ANe);break}}}),UNe=new $l(e=>{if(YX.includes(e.peek(-1))){let{next:t}=e;($y(t)||t==GX||t==DNe||t==NNe||t==INe||t==_Ne&&$y(e.peek(1))||t==ME||t==LNe)&&e.acceptToken(xNe)}}),jNe=new $l(e=>{if(!YX.includes(e.peek(-1))){let{next:t}=e;if(t==PNe&&(e.advance(),e.acceptToken(S9)),$y(t)){do e.advance();while($y(e.next));e.acceptToken(S9)}}}),zNe=mg({"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}),VNe={__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},HNe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},WNe={__proto__:null,not:132,only:132},QNe=Gm.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:[UNe,jNe,BNe,1,2,3,4,new OT("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>VNe[e]||-1},{term:58,get:e=>HNe[e]||-1},{term:101,get:e=>WNe[e]||-1}],tokenPrec:1200});let fA=null;function pA(){if(!fA&&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)));fA=t.sort().map(r=>({type:"property",label:r}))}return fA||[]}const w9=["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})),k9=["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}))),YNe=["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})),$c=/^(\w[\w-]*|-\w[\w-]*|)$/,GNe=/^-(-[\w-]*)?$/;function qNe(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 x9=new Bq,ZNe=["Declaration"];function XNe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function qX(e,t,n){if(t.to-t.from>4096){let r=x9.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(Tr.IncludeAnonymous);if(a.firstChild())do for(let s of qX(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return x9.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(ZNe)&&((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 KNe=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:pA(),validFor:$c};if(i.name=="ValueName")return{from:i.from,options:k9,validFor:$c};if(i.name=="PseudoClassName")return{from:i.from,options:w9,validFor:$c};if(e(i)||(t.explicit||o)&&qNe(i,n.doc))return{from:e(i)||o?i.from:r,options:qX(n.doc,XNe(i),e),validFor:GNe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:pA(),validFor:$c};return{from:i.from,options:YNe,validFor:$c}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:w9,validFor:$c}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:k9,validFor:$c}:a.name=="Block"||a.name=="Styles"?{from:r,options:pA(),validFor:$c}:null},JNe=KNe(e=>e.name=="VariableName"),ST=Vm.define({name:"css",parser:QNe.configure({props:[V1.add({Declaration:PE()}),gg.add({"Block KeyframeList":Yq})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function eDe(){return new _y(ST,ST.data.of({autocomplete:JNe}))}const tDe=309,C9=1,nDe=2,rDe=3,iDe=310,oDe=312,aDe=313,sDe=4,lDe=5,uDe=0,RR=[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],ZX=125,cDe=59,IR=47,dDe=42,fDe=43,pDe=45,hDe=60,mDe=44,gDe=new LX({start:!1,shift(e,t){return t==sDe||t==lDe||t==oDe?e:t==aDe},strict:!1}),bDe=new $l((e,t)=>{let{next:n}=e;(n==ZX||n==-1||t.context)&&e.acceptToken(iDe)},{contextual:!0,fallback:!0}),yDe=new $l((e,t)=>{let{next:n}=e,r;RR.indexOf(n)>-1||n==IR&&((r=e.peek(1))==IR||r==dDe)||n!=ZX&&n!=cDe&&n!=-1&&!t.context&&e.acceptToken(tDe)},{contextual:!0}),ODe=new $l((e,t)=>{let{next:n}=e;if((n==fDe||n==pDe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(C9);e.acceptToken(r?C9:nDe)}},{contextual:!0});function hA(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const vDe=new $l((e,t)=>{if(e.next!=hDe||!t.dialectEnabled(uDe)||(e.advance(),e.next==IR))return;let n=0;for(;RR.indexOf(e.next)>-1;)e.advance(),n++;if(hA(e.next,!0)){for(e.advance(),n++;hA(e.next,!1);)e.advance(),n++;for(;RR.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==mDe)return;for(let r=0;;r++){if(r==7){if(!hA(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(rDe,-n)}),EDe=mg({"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)}),SDe={__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},TDe={__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},wDe={__proto__:null,"<":143},kDe=Gm.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-EpQ08SO1G0{O#>wQ08SO1G0{O#@oQ08SO1G0{O#CoQ(CYO'#ChO#EmQ(CYO1G1^O#EtQ(CYO'#JjO!,lQWO1G1dO#FUQ08SO,5?TOOQ07`-EkQWO1G3lO$2^Q^O1G3nO$6bQ^O'#HmOOQU1G3q1G3qO$6oQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6wQ^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;OQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;TQ(CYO,5:UOOQO,5;[,5;[O$;_Q`O'#I^O$;uQWO,5@WOOQ07b1G/o1G/oO$;}Q`O'#IdO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$wO$>TQWO1G5qO$>]QWO1G6OO$>eQrO1G6PO9ZQWO,5>}O$>oQ08SO1G5|O%[Q^O1G5|O$?PQ07hO1G5|O$?bQWO1G5{O$?bQWO1G5{O9ZQWO1G5{O$?jQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@OQWO,5?QO$'TQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7^QWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7cQ`O1G5sO%7wQ(CYO1G0vO%8RQWO1G0vOOQO1G/p1G/pO%8^Q(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$=gQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8hQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8sQ07hO7+&TO%9RQ08SO7++hO%[Q^O7++hO%9cQWO7++gO%9cQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9kQWO1G4lOOQO7+%|7+%|O#%sQWO<tQ08SO1G2ZO%AVQ08SO1G2mO%CbQ08SO1G2oO%EmQ7[O,5>yOOQO-E<]-E<]O%EwQrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FRQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5cQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5hQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&gQWO<}AN>}O%[Q^OAN?ZOOQO<eQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@ZQrO'#JiO!*fQ^O'#DqO'@bQ^O'#D}O'@iQrO'#ChO'CPQrO'#ChO!*fQ^O'#EPO'CaQ^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'EdQWO,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:gDe,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:[EDe],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#SDe[e]||-1},{term:334,get:e=>TDe[e]||-1},{term:70,get:e=>wDe[e]||-1}],tokenPrec:14626}),XX=[da("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),da("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),da("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),da("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),da("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),da(`try { +`);r=i<0?n:n.slice(0,i)}return t+r.length>this.to?r.slice(0,this.to-t):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,n,r=0){this.block=gT.create(t,r,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,n,r=0){this.startContext(this.parser.getNodeType(t),n,r)}addNode(t,n,r){typeof t=="number"&&(t=new ur(this.parser.nodeSet.types[t],Gm,Gm,(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(AR(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?_X(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=AR(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 NX(t,n)}get buffer(){return new IX(this.parser.nodeSet)}}function _X(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=_X(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 $k extends fP{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 TIe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}configure(t){let n=CR(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(O0(n.defineNodes)){i=Object.assign({},i);let p=r.types.slice(),h;for(let m of n.defineNodes){let{name:y,block:v,composite:b,style:O}=typeof m=="string"?{name:m}:m;if(p.some(A=>A.name==y))continue;b&&(i[p.length]=(A,w,E)=>b(w,E,A.value));let S=p.length,k=b?["Block","BlockContext"]:v?S>=Rt.ATXHeading1&&S<=Rt.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;p.push(Li.define({id:S,name:y,props:k&&[[On.group,k]]})),O&&(h||(h={}),Array.isArray(O)||O instanceof hl?h[y]=O:Object.assign(h,O))}r=new j1(p),h&&(r=r.extend(bg(h)))}if(O0(n.props)&&(r=r.extend(...n.props)),O0(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(O0(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?$v(s,p.before):p.after?$v(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(O0(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?$v(u,p.before):p.after?$v(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 $k(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 kIe(this,t,n);e:for(let i=n;i=0){i=s;continue e}}i++}return r.resolveMarkers(0)}}function O0(e){return e!=null&&e.length>0}function CR(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=CR(e[0]);if(e.length==1)return t;let n=CR(e.slice(1));if(!n||!t)return t||n;let r=(a,s)=>(a||Gm).concat(s||Gm),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 $v(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let RX=[Li.none];for(let e=1,t;t=Rt[e];e++)RX[e]=Li.define({id:e,name:t,props:e>=Rt.Escape?[]:[[On.group,e in vX?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const Gm=[];let IX=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})}},$y=class{constructor(t,n,r,i=Gm){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 IX(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class NX{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 Gm}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 $y(e,t,n,r)}const DX={resolve:"Emphasis",mark:"EmphasisMark"},PX={resolve:"Emphasis",mark:"EmphasisMark"},v0={},K7={};class ml{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const J7="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Fy=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Fy=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const lA={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=Fy.test(i),s=Fy.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?DX:PX,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(v0,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new ml(K7,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==v0||i.type==K7)){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]=wIe(e,o,i.type==v0?Rt.Link:Rt.Image,i.from,n+1);if(i.type==v0)for(let s=0;st?Gn(Rt.URL,t+n,o+n):o==e.length?null:!1}}function MX(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 Sb(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 NX(t,n)}}function AR(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=FX(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")&&(xIe.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 FX(e,t){let n=e;for(let r=1;rMv[e]),Object.keys(Mv).map(e=>vIe[e]),Object.keys(Mv),EIe,vX,Object.keys(lA).map(e=>lA[e]),Object.keys(lA),[]);function RIe(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 IIe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:Yq((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:RIe(i.node,i.from,i.to)};return null})}}const NIe={resolve:"Strikethrough",mark:"StrikethroughMark"},DIe={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=Fy.test(r),l=Fy.test(i);return e.addDelimiter(NIe,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function Tb(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 e9(e,t){for(let n=t;ni instanceof t9)||!e9(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return BX.test(r)&&Tb(e,t.text,t.basePos)==Tb(e,r,t.basePos)},before:"SetextHeading"}]};class LIe{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 MIe={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 LIe:null},after:"SetextHeading"}]},n9=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,r9=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,$Ie=/[\w-]+\.[\w-]+($|\/)/,i9=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,o9=/\/[a-zA-Z\d@.]+/gy;function a9(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==")"&&a9(e,t,r,")")>a9(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 s9(e,t){i9.lastIndex=t;let n=i9.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 BIe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;n9.lastIndex=r;let i=n9.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=FIe(e.text,r+i[0].length):i[3]?o=s9(e.text,r):(o=s9(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(o9.lastIndex=o,i=o9.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)}}]},UIe=[PIe,MIe,DIe,BIe];function UX(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 bT(t,[],n,r,r,0,[],0,i?new u9(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 bT(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 HIe(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 u9{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class HIe{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 yT{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 yT(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 yT(this.stack,this.pos,this.index)}}function G0(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 PE{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const c9=new PE;class WIe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=c9,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=c9,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 tm{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;jX(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}tm.prototype.contextual=tm.prototype.fallback=tm.prototype.extend=!1;class OT{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?G0(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(jX(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))}}OT.prototype.contextual=tm.prototype.fallback=tm.prototype.extend=!1;class $l{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function jX(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||QIe(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],v=e[m+1]||65536;if(c=v)d=h+1;else{a=e[m+2],t.advance();continue e}}break}}function d9(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function QIe(e,t,n,r){let i=d9(n,r,t);return i<0||d9(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 YIe{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?f9(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?f9(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 GIe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new PE)}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 PE,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 PE,{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 YIe(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&&XIe(i);if(a)return Ba&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Ba&&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 Ba&&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),Ba&&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),Ba&&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 p9(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(),Ba&&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&&(Ba&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));h++)Ba&&(p=this.stackID(d)+" -> ");for(let h of s.recoverByInsert(l))Ba&&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),Ba&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),p9(s,r)):(!i||i.scoree;class zX{constructor(t){this.start=t.start,this.shift=t.shift||cA,this.reduce=t.reduce||cA,this.reuse=t.reuse||cA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class qm extends fP{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 j1(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=zq;let a=G0(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 tm(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 qIe(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(qm.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]=h9(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 KIe=54,JIe=1,eNe=55,tNe=2,nNe=56,rNe=3,m9=4,iNe=5,vT=6,VX=7,HX=8,WX=9,QX=10,oNe=11,aNe=12,sNe=13,dA=57,lNe=14,g9=58,YX=20,uNe=22,GX=23,cNe=24,_R=26,qX=27,dNe=28,fNe=31,pNe=34,hNe=36,mNe=37,gNe=0,bNe=1,yNe={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},ONe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},b9={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 vNe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function ZX(e){return e==9||e==10||e==13||e==32}let y9=null,O9=null,v9=0;function RR(e,t){let n=e.pos+t;if(v9==n&&O9==e)return y9;let r=e.peek(t);for(;ZX(r);)r=e.peek(++t);let i="";for(;vNe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return O9=e,v9=n,y9=i?i.toLowerCase():r==ENe||r==SNe?void 0:null}const XX=60,ET=62,PP=47,ENe=63,SNe=33,TNe=45;function E9(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new E9(RR(r,1)||"",e):e},reduce(e,t){return t==YX&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==vT||i==hNe?new E9(RR(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),xNe=new $l((e,t)=>{if(e.next!=XX){e.next<0&&t.context&&e.acceptToken(dA);return}e.advance();let n=e.next==PP;n&&e.advance();let r=RR(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?lNe:vT);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(oNe);if(i&&ONe[i])return e.acceptToken(dA,-2);if(t.dialectEnabled(gNe))return e.acceptToken(aNe);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(sNe)}else{if(r=="script")return e.acceptToken(VX);if(r=="style")return e.acceptToken(HX);if(r=="textarea")return e.acceptToken(WX);if(yNe.hasOwnProperty(r))return e.acceptToken(QX);i&&b9[i]&&b9[i][r]?e.acceptToken(dA,-1):e.acceptToken(vT)}},{contextual:!0}),CNe=new $l(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(g9);break}if(e.next==TNe)t++;else if(e.next==ET&&t>=2){n>=3&&e.acceptToken(g9,-2);break}else t=0;e.advance()}});function ANe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const _Ne=new $l((e,t)=>{if(e.next==PP&&e.peek(1)==ET){let n=t.dialectEnabled(bNe)||ANe(t.context);e.acceptToken(n?iNe:m9,2)}else e.next==ET&&e.acceptToken(m9,1)});function LP(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==XX||o==1&&i.next==PP||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 RNe=LP("script",KIe,JIe),INe=LP("style",eNe,tNe),NNe=LP("textarea",nNe,rNe),DNe=bg({"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}),PNe=qm.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:kNe,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:[DNe],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==dNe)return fA(s,l,n);if(u==fNe)return fA(s,l,r);if(u==pNe)return fA(s,l,i);if(u==YX&&o.length){let c=s.node,d=c.firstChild,p=d&&S9(d,l),h;if(p){for(let m of o)if(m.tag==p&&(!m.attrs||m.attrs(h||(h=KX(c,l))))){let y=c.lastChild,v=y.type.id==mNe?y.from:c.to;if(v>d.to)return{parser:m.parser,overlay:[{from:d.to,to:v}]}}}}if(a&&u==GX){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!=S9(c.parent,l))continue;let m=c.lastChild;if(m.type.id==_R){let y=m.from+1,v=m.lastChild,b=m.to-(v&&v.isError?0:1);if(b>y)return{parser:h.parser,overlay:[{from:y,to:b}]}}else if(m.type.id==qX)return{parser:h.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const LNe=99,T9=1,MNe=100,$Ne=101,w9=2,eK=[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],FNe=58,BNe=40,tK=95,UNe=91,LE=45,jNe=46,zNe=35,VNe=37,HNe=38,WNe=92,QNe=10;function By(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function YNe(e){return e>=48&&e<=57}const GNe=new $l((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(By(o)||o==LE||o==tK||n&&YNe(o))!n&&(o!=LE||i>0)&&(n=!0),r===i&&o==LE&&r++,e.advance();else if(o==WNe&&e.peek(1)!=QNe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==BNe?MNe:r==2&&t.canShift(w9)?w9:$Ne);break}}}),qNe=new $l(e=>{if(eK.includes(e.peek(-1))){let{next:t}=e;(By(t)||t==tK||t==zNe||t==jNe||t==UNe||t==FNe&&By(e.peek(1))||t==LE||t==HNe)&&e.acceptToken(LNe)}}),ZNe=new $l(e=>{if(!eK.includes(e.peek(-1))){let{next:t}=e;if(t==VNe&&(e.advance(),e.acceptToken(T9)),By(t)){do e.advance();while(By(e.next));e.acceptToken(T9)}}}),XNe=bg({"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}),KNe={__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},JNe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},eDe={__proto__:null,not:132,only:132},tDe=qm.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:[qNe,ZNe,GNe,1,2,3,4,new OT("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>KNe[e]||-1},{term:58,get:e=>JNe[e]||-1},{term:101,get:e=>eDe[e]||-1}],tokenPrec:1200});let pA=null;function hA(){if(!pA&&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)));pA=t.sort().map(r=>({type:"property",label:r}))}return pA||[]}const k9=["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}))),nDe=["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})),$c=/^(\w[\w-]*|-\w[\w-]*|)$/,rDe=/^-(-[\w-]*)?$/;function iDe(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 C9=new Qq,oDe=["Declaration"];function aDe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function nK(e,t,n){if(t.to-t.from>4096){let r=C9.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(Tr.IncludeAnonymous);if(a.firstChild())do for(let s of nK(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return C9.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(oDe)&&((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 sDe=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:hA(),validFor:$c};if(i.name=="ValueName")return{from:i.from,options:x9,validFor:$c};if(i.name=="PseudoClassName")return{from:i.from,options:k9,validFor:$c};if(e(i)||(t.explicit||o)&&iDe(i,n.doc))return{from:e(i)||o?i.from:r,options:nK(n.doc,aDe(i),e),validFor:rDe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:hA(),validFor:$c};return{from:i.from,options:nDe,validFor:$c}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:k9,validFor:$c}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:x9,validFor:$c}:a.name=="Block"||a.name=="Styles"?{from:r,options:hA(),validFor:$c}:null},lDe=sDe(e=>e.name=="VariableName"),ST=Hm.define({name:"css",parser:tDe.configure({props:[V1.add({Declaration:DE()}),yg.add({"Block KeyframeList":eZ})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function uDe(){return new Iy(ST,ST.data.of({autocomplete:lDe}))}const cDe=309,A9=1,dDe=2,fDe=3,pDe=310,hDe=312,mDe=313,gDe=4,bDe=5,yDe=0,IR=[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],rK=125,ODe=59,NR=47,vDe=42,EDe=43,SDe=45,TDe=60,wDe=44,kDe=new zX({start:!1,shift(e,t){return t==gDe||t==bDe||t==hDe?e:t==mDe},strict:!1}),xDe=new $l((e,t)=>{let{next:n}=e;(n==rK||n==-1||t.context)&&e.acceptToken(pDe)},{contextual:!0,fallback:!0}),CDe=new $l((e,t)=>{let{next:n}=e,r;IR.indexOf(n)>-1||n==NR&&((r=e.peek(1))==NR||r==vDe)||n!=rK&&n!=ODe&&n!=-1&&!t.context&&e.acceptToken(cDe)},{contextual:!0}),ADe=new $l((e,t)=>{let{next:n}=e;if((n==EDe||n==SDe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(A9);e.acceptToken(r?A9:dDe)}},{contextual:!0});function mA(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const _De=new $l((e,t)=>{if(e.next!=TDe||!t.dialectEnabled(yDe)||(e.advance(),e.next==NR))return;let n=0;for(;IR.indexOf(e.next)>-1;)e.advance(),n++;if(mA(e.next,!0)){for(e.advance(),n++;mA(e.next,!1);)e.advance(),n++;for(;IR.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==wDe)return;for(let r=0;;r++){if(r==7){if(!mA(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(fDe,-n)}),RDe=bg({"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)}),IDe={__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},NDe={__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},DDe={__proto__:null,"<":143},PDe=qm.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:kDe,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:[RDe],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#IDe[e]||-1},{term:334,get:e=>NDe[e]||-1},{term:70,get:e=>DDe[e]||-1}],tokenPrec:14638}),iK=[da("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),da("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),da("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),da("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),da("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),da(`try { \${} } catch (\${error}) { \${} @@ -220,11 +220,11 @@ Error generating stack: `+o.message+` constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),da('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),da('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],xDe=XX.concat([da("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),da("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),da("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),A9=new Bq,KX=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function v0(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const CDe=["FunctionDeclaration"],ADe={FunctionDeclaration:v0("function"),ClassDeclaration:v0("class"),ClassExpression:()=>!0,EnumDeclaration:v0("constant"),TypeAliasDeclaration:v0("type"),NamespaceDeclaration:v0("namespace"),VariableDefinition(e,t){e.matchContext(CDe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function JX(e,t){let n=A9.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=ADe[a.name];if(s&&s(a,o)||KX.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of JX(e,a.node))r.push(s);return!1}}),A9.set(t,r),r}const _9=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,eK=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function _De(e){let t=kr(e.state).resolveInner(e.pos,-1);if(eK.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&_9.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)KX.has(i.name)&&(r=r.concat(JX(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:_9}}const ku=Vm.define({name:"javascript",parser:kDe.configure({props:[V1.add({IfStatement:PE({except:/^\s*({|else\b)/}),TryStatement:PE({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:BAe,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:FAe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":PE({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}}),gg.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Yq,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),tK={test:e=>/^JSX/.test(e.name),facet:pP({commentTokens:{block:{open:"{/*",close:"*/}"}}})},nK=ku.configure({dialect:"ts"},"typescript"),rK=ku.configure({dialect:"jsx",props:[hP.add(e=>e.isTop?[tK]:void 0)]}),iK=ku.configure({dialect:"jsx ts",props:[hP.add(e=>e.isTop?[tK]:void 0)]},"typescript");let oK=e=>({label:e,type:"keyword"});const aK="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(oK),RDe=aK.concat(["declare","implements","private","protected","public"].map(oK));function IDe(e={}){let t=e.jsx?e.typescript?iK:rK:e.typescript?nK:ku,n=e.typescript?xDe.concat(RDe):XX.concat(aK);return new _y(t,[ku.data.of({autocomplete:tRe(eK,qZ(n))}),ku.data.of({autocomplete:_De}),e.jsx?PDe:[]])}function NDe(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 R9(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 DDe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),PDe=Vt.inputHandler.of((e,t,n,r,i)=>{if((DDe?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=R9(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=NDe(d);if(h&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(p=R9(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)}),E0=["_blank","_self","_top","_parent"],mA=["ascii","utf-8","utf-16","latin1","latin1"],gA=["get","post","put","delete"],bA=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ua=["true","false"],on={},LDe={a:{attrs:{href:null,ping:null,type:null,media:null,target:E0,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:E0}},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:bA,formmethod:gA,formnovalidate:["novalidate"],formtarget:E0,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":mA,autocomplete:["on","off"],enctype:bA,method:gA,novalidate:["novalidate"],target:E0}},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:bA,formmethod:gA,formnovalidate:["novalidate"],formtarget:E0,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:mA,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:mA}},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},sK={accesskey:null,class:null,contenteditable:Ua,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:Ua,autocorrect:Ua,autocapitalize:Ua,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":Ua,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ua,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ua,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ua,"aria-hidden":Ua,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ua,"aria-multiselectable":Ua,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ua,"aria-relevant":null,"aria-required":Ua,"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},lK="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 lK)sK[e]=null;let Fy=class{constructor(t,n){this.tags=Object.assign(Object.assign({},LDe),t),this.globalAttrs=Object.assign(Object.assign({},sK),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Fy.default=new Fy;function qm(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 Zm(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function uK(e,t,n){let r=n.tags[qm(e,Zm(t))];return(r==null?void 0:r.children)||n.allTags}function $P(e,t){let n=[];for(let r=Zm(t);r&&!r.type.isTop;r=Zm(r.parent)){let i=qm(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 cK=/^[:\-\.\w\u00b7-\uffff]*$/;function I9(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=Zm(n,!0);return{from:r,to:i,options:uK(e.doc,a,t).map(s=>({label:s,type:"type"})).concat($P(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function N9(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:$P(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:cK}}function MDe(e,t,n,r){let i=[],o=0;for(let a of uK(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of $P(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function $De(e,t,n,r,i){let o=Zm(n),a=o?t.tags[qm(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:cK}}function FDe(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=Zm(n),p=d?t.tags[qm(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 dK(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.fromdK(r,i)}const jDe=ku.parser.configure({top:"SingleExpression"}),fK=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:nK.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:rK.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:iK.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:jDe},{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:ST.parser}],pK=[{name:"style",parser:ST.parser.configure({top:"Styles"})}].concat(lK.map(e=>({name:e,parser:ku.parser}))),hK=Vm.define({name:"html",parser:kNe.configure({props:[V1.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:"-._"}}),$E=hK.configure({wrap:QX(fK,pK)});function zDe(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=QX((e.nestedLanguages||[]).concat(fK),(e.nestedAttributes||[]).concat(pK)));let r=n?hK.configure({wrap:n,dialect:t}):t?$E.configure({dialect:t}):$E;return new _y(r,[$E.data.of({autocomplete:UDe(e)}),e.autoCloseTags!==!1?VDe:[],IDe().support,eDe().support])}const D9=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),VDe=Vt.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!$E.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=qm(a.doc,m.parent,h))&&!D9.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=qm(a.doc,O,h))&&!D9.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)}),mK=pP({commentTokens:{block:{open:""}}}),gK=new On,bK=vIe.configure({props:[gg.add(e=>!e.is("Block")||e.is("Document")||NR(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),gK.add(NR),V1.add({Document:()=>null}),Nf.add({Document:mK})]});function NR(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function HDe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=NR(r.type))!=null&&i<=t)break;n=r}return n.to}const WDe=Qq.of((e,t,n)=>{for(let r=kr(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function FP(e){return new Us(mK,e,[WDe],"markdown")}const QDe=FP(bK),YDe=bK.configure([IIe,DIe,NIe,PIe,{props:[gg.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),yK=FP(YDe);function GDe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=iT.matchLanguageName(e,n,!0),r instanceof iT)return r.support?r.support.language.parser:Ay.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class Fv{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(+vK(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function OK(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 Fv(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new Fv(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 Fv(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 Fv(o.parent,l,l+c,a[1],u,d,o))}}return r}function vK(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function yA(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=vK(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 DR(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(z1)!=" ")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 qDe=({state:e,dispatch:t})=>{let n=kr(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!yK.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=OK(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)if(c.node.firstChild.to>=s||l.from>0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let O=u.length>1?u[u.length-2]:null,b,v="";O&&O.item?(b=l.from+O.from,v=O.marker(r,1)):b=l.from+(O?O.to:0);let S=[{from:b,to:s,insert:v}];return c.node.name=="OrderedList"&&yA(c.item,r,S,-2),O&&O.node.name=="OrderedList"&&yA(O.item,r,S),{range:Je.cursor(b+v.length),changes:S}}else{let O="";for(let b=0,v=u.length-2;b<=v;b++)O+=u[b].blank(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"&&yA(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=DR(m,e),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 P9(e){return e.name=="QuoteMark"||e.name=="ListMark"}function ZDe(e,t){let n=e.resolveInner(t,-1),r=t;P9(n)&&(r=n.from,n=n.parent);for(let i;i=n.childBefore(r);)if(P9(i))r=i.from;else if(i.name=="OrderedList"||i.name=="BulletList")n=i.lastChild,r=n.to;else break;return n}const XDe=({state:e,dispatch:t})=>{let n=kr(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&yK.isActiveAt(e,o.from)){let l=s.lineAt(a),u=OK(ZDe(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 MDe=["FunctionDeclaration"],$De={FunctionDeclaration:E0("function"),ClassDeclaration:E0("class"),ClassExpression:()=>!0,EnumDeclaration:E0("constant"),TypeAliasDeclaration:E0("type"),NamespaceDeclaration:E0("namespace"),VariableDefinition(e,t){e.matchContext(MDe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function aK(e,t){let n=_9.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=$De[a.name];if(s&&s(a,o)||oK.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of aK(e,a.node))r.push(s);return!1}}),_9.set(t,r),r}const R9=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,sK=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function FDe(e){let t=kr(e.state).resolveInner(e.pos,-1);if(sK.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&R9.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)oK.has(i.name)&&(r=r.concat(aK(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:R9}}const ku=Hm.define({name:"javascript",parser:PDe.configure({props:[V1.add({IfStatement:DE({except:/^\s*({|else\b)/}),TryStatement:DE({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:GAe,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:YAe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":DE({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}}),yg.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":eZ,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),lK={test:e=>/^JSX/.test(e.name),facet:pP({commentTokens:{block:{open:"{/*",close:"*/}"}}})},uK=ku.configure({dialect:"ts"},"typescript"),cK=ku.configure({dialect:"jsx",props:[hP.add(e=>e.isTop?[lK]:void 0)]}),dK=ku.configure({dialect:"jsx ts",props:[hP.add(e=>e.isTop?[lK]:void 0)]},"typescript");let fK=e=>({label:e,type:"keyword"});const pK="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(fK),BDe=pK.concat(["declare","implements","private","protected","public"].map(fK));function UDe(e={}){let t=e.jsx?e.typescript?dK:cK:e.typescript?uK:ku,n=e.typescript?LDe.concat(BDe):iK.concat(pK);return new Iy(t,[ku.data.of({autocomplete:cRe(sK,nX(n))}),ku.data.of({autocomplete:FDe}),e.jsx?VDe:[]])}function jDe(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 I9(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 zDe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),VDe=Vt.inputHandler.of((e,t,n,r,i)=>{if((zDe?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=I9(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=jDe(d);if(h&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(p=I9(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)}),S0=["_blank","_self","_top","_parent"],gA=["ascii","utf-8","utf-16","latin1","latin1"],bA=["get","post","put","delete"],yA=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ua=["true","false"],on={},HDe={a:{attrs:{href:null,ping:null,type:null,media:null,target:S0,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:S0}},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:yA,formmethod:bA,formnovalidate:["novalidate"],formtarget:S0,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":gA,autocomplete:["on","off"],enctype:yA,method:bA,novalidate:["novalidate"],target:S0}},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:yA,formmethod:bA,formnovalidate:["novalidate"],formtarget:S0,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:gA,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:gA}},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},hK={accesskey:null,class:null,contenteditable:Ua,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:Ua,autocorrect:Ua,autocapitalize:Ua,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":Ua,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ua,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ua,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ua,"aria-hidden":Ua,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ua,"aria-multiselectable":Ua,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ua,"aria-relevant":null,"aria-required":Ua,"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},mK="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 mK)hK[e]=null;let Uy=class{constructor(t,n){this.tags=Object.assign(Object.assign({},HDe),t),this.globalAttrs=Object.assign(Object.assign({},hK),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Uy.default=new Uy;function Zm(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 Xm(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function gK(e,t,n){let r=n.tags[Zm(e,Xm(t))];return(r==null?void 0:r.children)||n.allTags}function MP(e,t){let n=[];for(let r=Xm(t);r&&!r.type.isTop;r=Xm(r.parent)){let i=Zm(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 bK=/^[:\-\.\w\u00b7-\uffff]*$/;function N9(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=Xm(n,!0);return{from:r,to:i,options:gK(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(MP(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function D9(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:MP(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:bK}}function WDe(e,t,n,r){let i=[],o=0;for(let a of gK(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of MP(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function QDe(e,t,n,r,i){let o=Xm(n),a=o?t.tags[Zm(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:bK}}function YDe(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=Xm(n),p=d?t.tags[Zm(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 yK(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.fromyK(r,i)}const ZDe=ku.parser.configure({top:"SingleExpression"}),OK=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:uK.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:cK.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:dK.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:ZDe},{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:ST.parser}],vK=[{name:"style",parser:ST.parser.configure({top:"Styles"})}].concat(mK.map(e=>({name:e,parser:ku.parser}))),EK=Hm.define({name:"html",parser:PNe.configure({props:[V1.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:"-._"}}),ME=EK.configure({wrap:JX(OK,vK)});function XDe(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=JX((e.nestedLanguages||[]).concat(OK),(e.nestedAttributes||[]).concat(vK)));let r=n?EK.configure({wrap:n,dialect:t}):t?ME.configure({dialect:t}):ME;return new Iy(r,[ME.data.of({autocomplete:qDe(e)}),e.autoCloseTags!==!1?KDe:[],UDe().support,uDe().support])}const P9=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),KDe=Vt.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!ME.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=Zm(a.doc,m.parent,h))&&!P9.has(y)){let v=h+(a.doc.sliceString(h,h+1)===">"?1:0),b=``;return{range:l,changes:{from:h,to:v,insert:b}}}}else if(p&&r=="/"&&m.name=="IncompleteCloseTag"){let v=m.parent;if(m.from==h-2&&((d=v.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(y=Zm(a.doc,v,h))&&!P9.has(y)){let b=h+(a.doc.sliceString(h,h+1)===">"?1:0),O=`${y}>`;return{range:Je.cursor(h+O.length,-1),changes:{from:h,to:b,insert:O}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),SK=pP({commentTokens:{block:{open:""}}}),TK=new On,wK=_Ie.configure({props:[yg.add(e=>!e.is("Block")||e.is("Document")||DR(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),TK.add(DR),V1.add({Document:()=>null}),Nf.add({Document:SK})]});function DR(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function JDe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=DR(r.type))!=null&&i<=t)break;n=r}return n.to}const ePe=Jq.of((e,t,n)=>{for(let r=kr(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function $P(e){return new Bs(SK,e,[ePe],"markdown")}const tPe=$P(wK),nPe=wK.configure([UIe,zIe,jIe,VIe,{props:[yg.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),kK=$P(nPe);function rPe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=rT.matchLanguageName(e,n,!0),r instanceof rT)return r.support?r.support.language.parser:Ry.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class Fv{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(+CK(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function xK(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 Fv(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new Fv(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 Fv(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 Fv(o.parent,l,l+c,a[1],u,d,o))}}return r}function CK(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function OA(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=CK(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 FP(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(z1)!=" ")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 iPe=({state:e,dispatch:t})=>{let n=kr(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!kK.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=xK(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 v=c.node.firstChild,b=c.node.getChild("ListItem","ListItem");if(v.to>=s||b&&b.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let O=u.length>1?u[u.length-2]:null,S,k="";O&&O.item?(S=l.from+O.from,k=O.marker(r,1)):S=l.from+(O?O.to:0);let A=[{from:S,to:s,insert:k}];return c.node.name=="OrderedList"&&OA(c.item,r,A,-2),O&&O.node.name=="OrderedList"&&OA(O.item,r,A),{range:Je.cursor(S+k.length),changes:A}}else{let O=M9(u,e,l);return{range:Je.cursor(s+O.length+1),changes:{from:l.from,insert:O+e.lineBreak}}}}if(c.node.name=="Blockquote"&&d&&l.from){let v=r.lineAt(l.from-1),b=/>\s*$/.exec(v.text);if(b&&b.index==c.from){let O=e.changes([{from:v.from+b.index,to:v.to},{from:l.from+c.from,to:l.to}]);return{range:a.map(O),changes:O}}}let p=[];c.node.name=="OrderedList"&&OA(c.item,r,p);let h=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let v=0,b=u.length-1;v<=b;v++)m+=v==b&&!h?u[v].marker(r,1):u[v].blank(vl.from&&/\s/.test(l.text.charAt(y-l.from-1));)y--;return m=FP(m,e),oPe(c.node,e.doc)&&(m=M9(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 L9(e){return e.name=="QuoteMark"||e.name=="ListMark"}function oPe(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&&kK.isActiveAt(e,o.from)){let l=s.lineAt(a),u=xK(aPe(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(()=>{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:Ve}]),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:A,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:M,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"}),A=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"}),M=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}]),We=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}]),Ve=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=A,l.Operation_Move=w,l.Operation_Remove=E,l.Operation_Edit=M,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=We,l.UpdatableProjectFields=ye,l.UpdatableProjectFields_AuthWebhookMethods=ze,l.DocumentSummary=$e,l.PresenceChange=Ve,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:A,RemoveDocumentRequest:w,RemoveDocumentResponse:E,WatchDocumentRequest:M,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:A,kind:R.Unary},watchDocument:{name:"WatchDocument",I:M,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:1,name:"client_id",kind:"scalar",T:9}]),O=c.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),b=c.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{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: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}]),A=c.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",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"}),M=c.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:d}]),D=c.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),R=c.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T: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:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),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=A,l.WatchDocumentResponse=w,l.WatchDocumentResponse_Initialization=E,l.RemoveDocumentRequest=M,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,A=(v.hi<<1|v.lo>>>31)^S;return(0,c._y)(k,A,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 A=Object.assign({},m);delete A["@type"],k=S.fromJson(A,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:()=>A,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,!(M&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(M.push(z),!V)return}const D=w>>>28&15|(E&7)<<4,R=!!(E>>3);if(M.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(M.push(z),!V)return}M.push(E>>>31&1)}}const p=4294967296;function h(w){const E=w[0]==="-";E&&(w=w.slice(1));const M=1e6;let D=0,R=0;function B(U,V){const z=Number(w.slice(U,V));R*=M,D=D*M+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 M=b(w,E);const D=M.hi&2147483648;D&&(M=v(M.lo,M.hi));const R=y(M.lo,M.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 M=w&16777215,D=(w>>>24|E<<8)&16777215,R=E>>16&65535;let B=M+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 M=0;M<9;M++)E.push(w&127|128),w=w>>7;E.push(1)}}function A(){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 M=5;w&128&&M<10;M++)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:()=>Pp.I,Api:()=>Da,BinaryReader:()=>U.oP,BinaryWriter:()=>U.Lt,BoolValue:()=>Uo,BytesValue:()=>Kt,CodeGeneratorRequest:()=>Vo,CodeGeneratorResponse:()=>li,CodeGeneratorResponse_Feature:()=>Wl,CodeGeneratorResponse_File:()=>Eo,DescriptorProto:()=>he,DescriptorProto_ExtensionRange:()=>Ne,DescriptorProto_ReservedRange:()=>Le,DoubleValue:()=>Bo,Duration:()=>yr,Edition:()=>G,Empty:()=>vs,Enum:()=>Yn,EnumDescriptorProto:()=>Ve,EnumDescriptorProto_EnumReservedRange:()=>dt,EnumOptions:()=>pt,EnumValue:()=>Na,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:()=>Ce,FeatureSet_MessageEncoding:()=>ve,FeatureSet_RepeatedFieldEncoding:()=>fn,FeatureSet_Utf8Validation:()=>zn,Field:()=>Ho,FieldDescriptorProto:()=>We,FieldDescriptorProto_Label:()=>ze,FieldDescriptorProto_Type:()=>ye,FieldMask:()=>Es,FieldOptions:()=>Ie,FieldOptions_CType:()=>ie,FieldOptions_EditionDefault:()=>Se,FieldOptions_JSType:()=>de,FieldOptions_OptionRetention:()=>ce,FieldOptions_OptionTargetType:()=>Oe,Field_Cardinality:()=>Rc,Field_Kind:()=>_c,FileDescriptorProto:()=>ge,FileDescriptorSet:()=>ue,FileOptions:()=>J,FileOptions_OptimizeMode:()=>_e,FloatValue:()=>vo,GeneratedCodeInfo:()=>$t,GeneratedCodeInfo_Annotation:()=>It,GeneratedCodeInfo_Annotation_Semantic:()=>xt,Int32Value:()=>xr,Int64Value:()=>Bi,ListValue:()=>no,LongType:()=>p.p,Message:()=>le.v,MessageOptions:()=>Pe,Method:()=>la,MethodDescriptorProto:()=>ee,MethodIdempotency:()=>Ee.w,MethodKind:()=>Ee.t,MethodOptions:()=>Ot,MethodOptions_IdempotencyLevel:()=>Ye,Mixin:()=>Pa,NullValue:()=>to,OneofDescriptorProto:()=>$e,OneofOptions:()=>nt,Option:()=>wi,ScalarType:()=>p.w,ServiceDescriptorProto:()=>re,ServiceOptions:()=>Ke,SourceCodeInfo:()=>at,SourceCodeInfo_Location:()=>Mt,SourceContext:()=>aa,StringValue:()=>Ui,Struct:()=>Oo,Syntax:()=>sa,Timestamp:()=>oa,Type:()=>Ti,UInt32Value:()=>$r,UInt64Value:()=>mr,UninterpretedOption:()=>it,UninterpretedOption_NamePart:()=>vt,Value:()=>Mr,Version:()=>zo,WireType:()=>U.TD,codegenInfo:()=>j,createDescriptorSet:()=>Wt,createRegistry:()=>SO,createRegistryFromDescriptors:()=>tf,proto2:()=>E,proto3:()=>c.w,protoBase64:()=>B.W,protoDelimited:()=>X,protoDouble:()=>D,protoInt64:()=>R.q,toPlainMessage:()=>Mp});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 yt of De)(0,h.NN)(x,Ze,be.no,yt,!0);else De!==void 0&&(0,h.NN)(x,Ze,be.no,De,!0);break;case"message":if(je)for(const yt of De)(0,h.oQ)(x,P,be,yt);else(0,h.oQ)(x,P,be,De);break;case"map":for(const[yt,Pt]of Object.entries(De))(0,h.gQ)(x,P,be,yt,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),A=u(814);function w(){return(0,A.b)((F,x)=>function(se,be,De){if(se.kind=="map"){const je={};switch(se.V.kind){case"scalar":for(const[Ze,yt]of Object.entries(be)){const Pt=x(se.V.T,yt,!0);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break;case"message":for(const[Ze,yt]of Object.entries(be))je[Ze.toString()]=yt.toJson(De);break;case"enum":const ct=se.V.T;for(const[Ze,yt]of Object.entries(be)){(0,k.hu)(yt===void 0||typeof yt=="number");const Pt=F(ct,yt,!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,M)},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 M(F){var x,P,se,be,De;const je=[];let ct;for(const Ze of typeof F=="function"?F():F){const yt=Ze;if(yt.localName=(0,v.Rz)(Ze.name,Ze.oneof!==void 0),yt.jsonName=(x=Ze.jsonName)!==null&&x!==void 0?x:(0,v.x1)(Ze.name),yt.repeated=(P=Ze.repeated)!==null&&P!==void 0?P:!1,Ze.kind=="scalar"&&(yt.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)),yt.oneof=ct,ct.addField(yt)}Ze.kind=="message"&&(yt.delimited=(be=Ze.delimited)!==null&&be!==void 0?be:!1),yt.packed=(De=Ze.packed)!==null&&De!==void 0?De:!1,je.push(yt)}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(yt){De({value:yt,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(La){return new Promise(function(Ix,rf){De.push([Sn,La,Ix,rf])>1||Ze(Sn,La)})},ji&&(be[Sn]=ji(be[Sn])))}function Ze(Sn,ji){try{yt(se[Sn](ji))}catch(La){Or(De[0][3],La)}}function yt(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 yt=!0,Pt=V(x),bn;bn=yield z(Pt.next()),se=bn.done,!se;yt=!0)for(je=bn.value,yt=!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{!yt&&!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:Ve,repeated:!0},{no:6,name:"service",kind:"message",T:re,repeated:!0},{no:7,name:"extension",kind:"message",T:We,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:We,repeated:!0},{no:6,name:"extension",kind:"message",T:We,repeated:!0},{no:3,name:"nested_type",kind:"message",T:he,repeated:!0},{no:4,name:"enum_type",kind:"message",T:Ve,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 We extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new We().fromBinary(x,P)}static fromJson(x,P){return new We().fromJson(x,P)}static fromJsonString(x,P){return new We().fromJsonString(x,P)}static equals(x,P){return E.util.equals(We,x,P)}}We.runtime=E,We.typeName="google.protobuf.FieldDescriptorProto",We.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 Ve extends le.v{constructor(x){super(),this.value=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new Ve().fromBinary(x,P)}static fromJson(x,P){return new Ve().fromJson(x,P)}static fromJsonString(x,P){return new Ve().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Ve,x,P)}}Ve.runtime=E,Ve.typeName="google.protobuf.EnumDescriptorProto",Ve.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:Ot,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 Ot extends le.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new Ot().fromBinary(x,P)}static fromJson(x,P){return new Ot().fromJson(x,P)}static fromJsonString(x,P){return new Ot().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Ot,x,P)}}Ot.runtime=E,Ot.typeName="google.protobuf.MethodOptions",Ot.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:vt,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 vt extends le.v{constructor(x){super(),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.UninterpretedOption.NamePart",vt.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(Ce),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 Ce;(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"})(Ce||(Ce={})),E.util.setEnumType(Ce,"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 He=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 yt=Dt.fromBinary(Ze);for(const Pt of De)Pt!==void 0&&yt.fromBinary(Pt.toBinary());if(!nn(yt))throw new Error(`Invalid FeatureSet for edition ${G[be]}`);return yt}}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:He)},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,[si.FileDescriptorProto_Syntax])},getPackageComments(){return eo(this.proto.sourceCodeInfo,[si.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 yt;return(yt=Ze.name)!==null&&yt!==void 0?yt:""})),toString(){return`enum ${this.typeName}`},getComments(){const Ze=this.parent?[...this.parent.getComments().sourcePath,si.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[si.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return eo(x.proto.sourceCodeInfo,Ze)},getFeatures(){var Ze,yt,Pt;const bn=(yt=(Ze=this.parent)===null||Ze===void 0?void 0:Ze.getFeatures())!==null&&yt!==void 0?yt: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 yt,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=(yt=Ze.options)===null||yt===void 0?void 0:yt.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,si.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 yt=this.parent?[...this.parent.getComments().sourcePath,si.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[si.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return eo(x.proto.sourceCodeInfo,yt)},getFeatures(){var yt,Pt,bn;const Or=(Pt=(yt=this.parent)===null||yt===void 0?void 0:yt.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 yt of F.enumType)xe(yt,x,Ze,se);for(const yt of F.nestedType)mt(yt,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=[si.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)),yt=P.messages.get(Qn(F.outputType));(0,k.hu)(Ze,`invalid MethodDescriptorProto: input_type ${F.inputType} not found`),(0,k.hu)(yt,`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:yt,idempotency:ct,toString(){return`rpc ${x.typeName}.${Pt}`},getComments(){const bn=[...this.parent.getComments().sourcePath,si.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,si.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:ia(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:Ra,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Pt=[...this.parent.getComments().sourcePath,si.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)}},yt=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)(yt,"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:yt,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:Dp,repeated:yt,enum:Pt})}default:{const Pt=Np[F.type];return(0,k.hu)(Pt,`invalid FieldDescriptorProto: unknown type ${F.type}`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"scalar",getDefaultValue:Dp,repeated:yt,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,si.DescriptorProto_Extension,this.parent.proto.extension.indexOf(F)]:[si.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 ia(F,x,P,se){var be,De,je,ct,Ze,yt;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(),(yt=P.options)===null||yt===void 0?void 0:yt.features);return Pt==fn.PACKED}}}}const Np={[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 si;(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"})(si||(si={}));function Ra(){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 yt;switch(this.mapValue.kind){case"scalar":yt=p.w[this.mapValue.scalar].toLowerCase();break;case"enum":yt=this.mapValue.enum.typeName;break;case"message":yt=this.mapValue.message.typeName;break}De=`map<${Ze}, ${yt}>`;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 Dp(){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 SO(...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 oa 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 oa.fromDate(new Date)}static fromDate(x){const P=x.getTime();return new oa({seconds:R.q.parse(Math.floor(P/1e3)),nanos:P%1e3*1e6})}static fromBinary(x,P){return new oa().fromBinary(x,P)}static fromJson(x,P){return new oa().fromJson(x,P)}static fromJsonString(x,P){return new oa().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(oa,x,P)}}oa.runtime=c.w,oa.typeName="google.protobuf.Timestamp",oa.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 Pp=u(733);class vs extends le.v{constructor(x){super(),c.w.util.initPartial(x,this)}static fromBinary(x,P){return new vs().fromBinary(x,P)}static fromJson(x,P){return new vs().fromJson(x,P)}static fromJsonString(x,P){return new vs().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(vs,x,P)}}vs.runtime=c.w,vs.typeName="google.protobuf.Empty",vs.fields=c.w.util.newFieldList(()=>[]);class Es 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 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.FieldMask",Es.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 Oo 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 Oo().fromBinary(x,P)}static fromJson(x,P){return new Oo().fromJson(x,P)}static fromJsonString(x,P){return new Oo().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Oo,x,P)}}Oo.runtime=c.w,Oo.typeName="google.protobuf.Struct",Oo.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:Oo.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:Oo,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 Bo 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 Bo().fromBinary(x,P)}static fromJson(x,P){return new Bo().fromJson(x,P)}static fromJsonString(x,P){return new Bo().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Bo,x,P)}}Bo.runtime=c.w,Bo.typeName="google.protobuf.DoubleValue",Bo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Bo.fieldWrapper={wrapField(F){return new Bo({value:F})},unwrapField(F){return F.value}};class vo 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 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.FloatValue",vo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),vo.fieldWrapper={wrapField(F){return new vo({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 Uo 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 Uo().fromBinary(x,P)}static fromJson(x,P){return new Uo().fromJson(x,P)}static fromJsonString(x,P){return new Uo().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Uo,x,P)}}Uo.runtime=c.w,Uo.typeName="google.protobuf.BoolValue",Uo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Uo.fieldWrapper={wrapField(F){return new Uo({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=[Pp.I,yr,vs,Es,Oo,Mr,no,oa,yr,Bo,vo,Bi,xr,$r,mr,Uo,Ui,Kt],Lp=[(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 Lp)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 yt=Ze.file.syntax=="proto3"?c.w:E,Pt=[],bn=yt.makeMessageType(je,()=>Pt,{localName:(0,v.r1)(Ze)});be[je]=bn;for(const Or of Ze.fields){const Sn=jo(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 yt={};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`),yt[(0,v.r1)(Pt)]={name:Pt.name,I:bn,O:Or,kind:Pt.methodKind,idempotency:Pt.idempotency}}return De[je]={typeName:Ze.typeName,methods:yt}}}}function jo(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 Mp(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=>Ia(je));else if(se.kind=="map"){De={};for(const[je,ct]of Object.entries(be))De[je]=Ia(ct)}else se.kind=="oneof"?De=se.findField(be.case)?{case:be.case,value:Ia(be.value)}:{case:void 0}:De=Ia(be);P[se.localName]=De}return P}function Ia(F){if(F===void 0)return F;if(F instanceof le.v)return Mp(F);if(F instanceof Uint8Array){const x=new Uint8Array(F.byteLength);return x.set(F),x}return F}class zo extends le.v{constructor(x){super(),E.util.initPartial(x,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 E.util.equals(zo,x,P)}}zo.runtime=E,zo.typeName="google.protobuf.compiler.Version",zo.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 Vo extends le.v{constructor(x){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],E.util.initPartial(x,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 E.util.equals(Vo,x,P)}}Vo.runtime=E,Vo.typeName="google.protobuf.compiler.CodeGeneratorRequest",Vo.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:zo,opt:!0}]);class li extends le.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new li().fromBinary(x,P)}static fromJson(x,P){return new li().fromJson(x,P)}static fromJsonString(x,P){return new li().fromJsonString(x,P)}static equals(x,P){return E.util.equals(li,x,P)}}li.runtime=E,li.typeName="google.protobuf.compiler.CodeGeneratorResponse",li.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:Eo,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 Eo extends le.v{constructor(x){super(),E.util.initPartial(x,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 E.util.equals(Eo,x,P)}}Eo.runtime=E,Eo.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",Eo.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 aa extends le.v{constructor(x){super(),this.fileName="",c.w.util.initPartial(x,this)}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.SourceContext",aa.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var sa;(function(F){F[F.PROTO2=0]="PROTO2",F[F.PROTO3=1]="PROTO3",F[F.EDITIONS=2]="EDITIONS"})(sa||(sa={})),c.w.util.setEnumType(sa,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class Ti extends le.v{constructor(x){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=sa.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Ti().fromBinary(x,P)}static fromJson(x,P){return new Ti().fromJson(x,P)}static fromJsonString(x,P){return new Ti().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Ti,x,P)}}Ti.runtime=c.w,Ti.typeName="google.protobuf.Type",Ti.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Ho,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:wi,repeated:!0},{no:5,name:"source_context",kind:"message",T:aa},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(sa)},{no:7,name:"edition",kind:"scalar",T:9}]);class Ho extends le.v{constructor(x){super(),this.kind=_c.TYPE_UNKNOWN,this.cardinality=Rc.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 Ho().fromBinary(x,P)}static fromJson(x,P){return new Ho().fromJson(x,P)}static fromJsonString(x,P){return new Ho().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Ho,x,P)}}Ho.runtime=c.w,Ho.typeName="google.protobuf.Field",Ho.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType(_c)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Rc)},{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:wi,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var _c;(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"})(_c||(_c={})),c.w.util.setEnumType(_c,"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 Rc;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.OPTIONAL=1]="OPTIONAL",F[F.REQUIRED=2]="REQUIRED",F[F.REPEATED=3]="REPEATED"})(Rc||(Rc={})),c.w.util.setEnumType(Rc,"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=sa.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:Na,repeated:!0},{no:3,name:"options",kind:"message",T:wi,repeated:!0},{no:4,name:"source_context",kind:"message",T:aa},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(sa)},{no:6,name:"edition",kind:"scalar",T:9}]);class Na 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 Na().fromBinary(x,P)}static fromJson(x,P){return new Na().fromJson(x,P)}static fromJsonString(x,P){return new Na().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Na,x,P)}}Na.runtime=c.w,Na.typeName="google.protobuf.EnumValue",Na.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:wi,repeated:!0}]);class wi extends le.v{constructor(x){super(),this.name="",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.Option",wi.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Pp.I}]);class Da extends le.v{constructor(x){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=sa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Da().fromBinary(x,P)}static fromJson(x,P){return new Da().fromJson(x,P)}static fromJsonString(x,P){return new Da().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Da,x,P)}}Da.runtime=c.w,Da.typeName="google.protobuf.Api",Da.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:la,repeated:!0},{no:3,name:"options",kind:"message",T:wi,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:aa},{no:6,name:"mixins",kind:"message",T:Pa,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(sa)}]);class la extends le.v{constructor(x){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=sa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,P){return new la().fromBinary(x,P)}static fromJson(x,P){return new la().fromJson(x,P)}static fromJsonString(x,P){return new la().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(la,x,P)}}la.runtime=c.w,la.typeName="google.protobuf.Method",la.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:wi,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(sa)}]);class Pa extends le.v{constructor(x){super(),this.name="",this.root="",c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Pa().fromBinary(x,P)}static fromJson(x,P){return new Pa().fromJson(x,P)}static fromJsonString(x,P){return new Pa().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Pa,x,P)}}Pa.runtime=c.w,Pa.typeName="google.protobuf.Mixin",Pa.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:()=>A,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 A(){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=M),ge){let We=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(A=>({no:A.no,name:A.name,localName:b[A.no]})))}function m(b,v,S){const k=Object.create(null),A=Object.create(null),w=[];for(const E of v){const M=O(E);w.push(M),k[E.name]=M,A[E.no]=M}return{typeName:b,values:w,findName(E){return k[E]},findNumber(E){return A[E]}}}function y(b,v,S){const k={};for(const A of v){const w=O(A);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,M);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=A(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=A(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[A(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]=A(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:A,writeScalar:M,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 A(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 M(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(M){switch(M.kind){case"field":return d(M.name,M.oneof!==void 0);case"oneof":return p(M.name);case"enum":case"message":case"service":{const D=M.file.proto.package,R=D===void 0?0:D.length+1,B=M.typeName.substring(R).replace(/\./g,"_");return w(E(B))}case"enum_value":{const D=M.parent.sharedPrefix;if(D===void 0)return M.name;const R=M.name.substring(D.length);return w(R)}case"rpc":{let D=M.name;return D.length==0?D:(D=D[0].toLowerCase()+D.substring(1),w(D))}}}function d(M,D){const R=O(M);return D?R:w(A(R))}function p(M){return d(M,!1)}const h=O;function m(M,D){const R=y(M)+"_";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(M){return(M.substring(0,1)+M.substring(1).replace(/[A-Z]/g,D=>"_"+D)).toLowerCase()}function O(M){let D=!1;const R=[];for(let B=0;B`${M}$`,A=M=>S.has(M)?k(M):M,w=M=>v.has(M)?k(M):M,E=M=>b.has(M)?k(M):M},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(A){m.util.initFields(this),m.util.initPartial(A,this)}}[S];return Object.setPrototypeOf(k.prototype,new d.v),Object.assign(k,{runtime:m,typeName:y,fields:m.util.newFieldList(O),fromBinary(A,w){return new k().fromBinary(A,w)},fromJson(A,w){return new k().fromJson(A,w)},fromJsonString(A,w){return new k().fromJsonString(A,w)},equals(A,w){return m.util.equals(k,A,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 A=k.localName,w=v,E=b;if(E[A]!==void 0)switch(k.kind){case"oneof":const M=E[A].case;if(M===void 0)continue;const D=k.findField(M);let R=E[A].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[A]={case:M,value:R};break;case"scalar":case"enum":let B=E[A];k.T===p.w.BYTES&&(B=k.repeated?B.map(O):O(B)),w[A]=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[A]))w[A][z]=O(Q);else Object.assign(w[A],E[A]);break;case"message":const V=k.V.T;for(const z of Object.keys(E[A])){let Q=E[A][z];V.fieldWrapper||(Q=new V(Q)),w[A][z]=Q}break}break;case"message":const U=k.T;if(k.repeated)w[A]=E[A].map(V=>V instanceof U?V:new U(V));else if(E[A]!==void 0){const V=E[A];U.fieldWrapper?U.typeName==="google.protobuf.BytesValue"?w[A]=O(V):w[A]=V:w[A]=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 A=v[k.localName],w=S[k.localName];if(k.repeated){if(A.length!==w.length)return!1;switch(k.kind){case"message":return A.every((E,M)=>k.T.equals(E,w[M]));case"scalar":return A.every((E,M)=>(0,h.AA)(k.T,E,w[M]));case"enum":return A.every((E,M)=>(0,h.AA)(p.w.INT32,E,w[M]))}throw new Error(`repeated cannot contain ${k.kind}`)}switch(k.kind){case"message":return k.T.equals(A,w);case"enum":return(0,h.AA)(p.w.INT32,A,w);case"scalar":return(0,h.AA)(k.T,A,w);case"oneof":if(A.case!==w.case)return!1;const E=k.findField(A.case);if(E===void 0)return!0;switch(E.kind){case"message":return E.T.equals(A.value,w.value);case"enum":return(0,h.AA)(p.w.INT32,A.value,w.value);case"scalar":return(0,h.AA)(E.T,A.value,w.value)}throw new Error(`oneof cannot contain ${E.kind}`);case"map":const M=Object.keys(A).concat(Object.keys(w));switch(k.V.kind){case"message":const D=k.V.T;return M.every(B=>D.equals(A[B],w[B]));case"enum":return M.every(B=>(0,h.AA)(p.w.INT32,A[B],w[B]));case"scalar":const R=k.V.T;return M.every(B=>(0,h.AA)(R,A[B],w[B]))}break}})},clone(b){const v=b.getType(),S=new v,k=S;for(const A of v.fields.byMember()){const w=b[A.localName];let E;if(A.repeated)E=w.map(y);else if(A.kind=="map"){E=k[A.localName];for(const[M,D]of Object.entries(w))E[M]=y(D)}else A.kind=="oneof"?E=A.findField(w.case)?{case:w.case,value:y(w.value)}:{case:void 0}:E=y(w);k[A.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"),A=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(w){const E=typeof w=="bigint"?w:BigInt(w);if(E>S||EA||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),A=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,M)},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 M(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 A.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:()=>CF,ClientEventType:()=>$a,ClientStatus:()=>Dc,Counter:()=>RO,DocEventType:()=>Ln,Document:()=>kF,DocumentSyncResultType:()=>zp,Primitive:()=>Cr,StreamConnectionStatus:()=>af,SyncMode:()=>zu,Text:()=>_O,TimeTicket:()=>yr,Tree:()=>IO,converter:()=>Yl,default:()=>Pie});var s;(function(C){C[C.Trivial=0]="Trivial",C[C.Debug=1]="Debug",C[C.Info=2]="Info",C[C.Warn=3]="Warn",C[C.Error=4]="Error",C[C.Fatal=5]="Fatal"})(s||(s={}));let l=s.Info;const u={trivial:(...C)=>{l>s.Trivial||typeof console<"u"&&console.log("YORKIE T:",...C)},debug:(...C)=>{l>s.Debug||typeof console<"u"&&console.log("YORKIE D:",...C)},info:(...C)=>{l>s.Info||typeof console<"u"&&console.log("YORKIE I:",...C)},warn:(...C)=>{l>s.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...C):console.log("YORKIE W:",...C))},error:(...C)=>{l>s.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...C):console.log("YORKIE E:",...C))},fatal:(C,...f)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...f):console.log("YORKIE F:",...f)),new Error(`YORKIE F: ${C}`)},isEnabled:C=>l<=C};function c(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,C=>{const f=Math.random()*16|0;return(C==="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(C,f){const g={};for(const[T,_]of Object.entries(C.methods)){const H=f(Object.assign(Object.assign({},_),{localName:T,service:C}));H!=null&&(g[T]=H)}return g}var O;(function(C){C[C.Canceled=1]="Canceled",C[C.Unknown=2]="Unknown",C[C.InvalidArgument=3]="InvalidArgument",C[C.DeadlineExceeded=4]="DeadlineExceeded",C[C.NotFound=5]="NotFound",C[C.AlreadyExists=6]="AlreadyExists",C[C.PermissionDenied=7]="PermissionDenied",C[C.ResourceExhausted=8]="ResourceExhausted",C[C.FailedPrecondition=9]="FailedPrecondition",C[C.Aborted=10]="Aborted",C[C.OutOfRange=11]="OutOfRange",C[C.Unimplemented=12]="Unimplemented",C[C.Internal=13]="Internal",C[C.Unavailable=14]="Unavailable",C[C.DataLoss=15]="DataLoss",C[C.Unauthenticated=16]="Unauthenticated"})(O||(O={}));var b=o(561);function v(C){const f=O[C];return typeof f!="string"?C.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(C,f){return C.length?`[${v(f)}] ${C}`:`[${v(f)}]`}var A=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=C[Symbol.asyncIterator],g;return f?f.call(C):(C=typeof __values=="function"?__values(C):C[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=C[H]&&function(K){return new Promise(function(oe,Ae){K=C[H](K),_(oe,Ae,K.done,K.value)})}}function _(H,K,oe,Ae){Promise.resolve(Ae).then(function(Qe){H({value:Qe,done:oe})},K)}},w=function(C){return this instanceof w?(this.v=C,this):new w(C)},E=function(C,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(C,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{Ae(T[ft](an))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof w?Promise.resolve(ft.value.v).then(Qe,Et):Ft(H[0][2],ft)}function Qe(ft){oe("next",ft)}function Et(ft){oe("throw",ft)}function Ft(ft,an){ft(an),H.shift(),H.length&&oe(H[0][0],H[0][1])}},M=function(C){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=C[_]?function(K){return(g=!g)?{value:w(C[_](K)),done:!1}:H?H(K):K}:H}};function D(C){return E(this,arguments,function*(){yield w(yield*M(A(C)))})}var R=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=C[Symbol.asyncIterator],g;return f?f.call(C):(C=typeof __values=="function"?__values(C):C[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=C[H]&&function(K){return new Promise(function(oe,Ae){K=C[H](K),_(oe,Ae,K.done,K.value)})}}function _(H,K,oe,Ae){Promise.resolve(Ae).then(function(Qe){H({value:Qe,done:oe})},K)}},B=function(C){return this instanceof B?(this.v=C,this):new B(C)},U=function(C){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=C[_]?function(K){return(g=!g)?{value:B(C[_](K)),done:!1}:H?H(K):K}:H}},V=function(C,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(C,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{Ae(T[ft](an))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof B?Promise.resolve(ft.value.v).then(Qe,Et):Ft(H[0][2],ft)}function Qe(ft){oe("next",ft)}function Et(ft){oe("throw",ft)}function Ft(ft,an){ft(an),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function z(C,f){return y(C,g=>{switch(g.kind){case m.t.Unary:return Q(f,C,g);case m.t.ServerStreaming:return X(f,C,g);case m.t.ClientStreaming:return Z(f,C,g);case m.t.BiDiStreaming:return Y(f,C,g);default:return null}})}function Q(C,f,g){return async function(T,_){var H,K;const oe=await C.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(C,f,g){return function(T,_){return q(C.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,D([T]),_==null?void 0:_.contextValues),_)}}function Z(C,f,g){return async function(T,_){var H,K,oe,Ae,Qe,Et;const Ft=await C.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues);(Qe=_==null?void 0:_.onHeader)===null||Qe===void 0||Qe.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)Ae=Dn.value,an=!1,ft=Ae}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(Et=_==null?void 0:_.onTrailer)===null||Et===void 0||Et.call(_,Ft.trailer),ft}}function Y(C,f,g){return function(T,_){return q(C.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues),_)}}function q(C,f){const g=function(){var T,_;return V(this,arguments,function*(){const H=yield B(C);(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(C){return C.id in this?this[C.id]:C.defaultValue},set(C,f){return this[C.id]=f,this},delete(C){return delete this[C.id],this}}}function le(C){var f;const g=Object.assign({},C);return(f=g.ignoreUnknownFields)!==null&&f!==void 0||(g.ignoreUnknownFields=!0),g}function Ee(C,f,g,T){const _=f?G(C.I,T):ue(C.I,g);return{parse:(f?G(C.O,T):ue(C.O,g)).parse,serialize:_.serialize}}function G(C,f){return{parse(g){try{return C.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(C,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 Ae=H.decode(oe);return C.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(...C){const f=new AbortController,g=C.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(C){const f=new AbortController,g=()=>{f.abort(new S("the operation timed out",O.DeadlineExceeded))};let T;return C!==void 0&&(C<=0?g():T=setTimeout(g,C)),{signal:f.signal,cleanup:()=>clearTimeout(T)}}function Ne(C){if(!C.aborted)return;if(C.reason!==void 0)return C.reason;const f=new Error("This operation was aborted");return f.name="AbortError",f}function Le(C,f){return f instanceof b.v?f:new C(f)}function qe(C,f){function g(T){return T.done===!0?T:{done:T.done,value:Le(C,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(C){const f=ye(C.next,C.interceptors),[g,T,_]=We(C),H=Object.assign(Object.assign({},C.req),{message:Le(C.req.method.I,C.req.message),signal:g});return f(H).then(K=>(_(),K),T)}function Me(C){const f=ye(C.next,C.interceptors),[g,T,_]=We(C),H=Object.assign(Object.assign({},C.req),{message:qe(C.req.method.I,C.req.message),signal:g});let K=!1;return g.addEventListener("abort",function(){var oe,Ae;const Qe=C.req.message[Symbol.asyncIterator]();K||(oe=Qe.throw)===null||oe===void 0||oe.call(Qe,this.reason).catch(()=>{}),(Ae=Qe.return)===null||Ae===void 0||Ae.call(Qe).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(Qe=>(Qe.done==!0&&(K=!0,_()),Qe),T)}}}}}),T)}function We(C){const{signal:f,cleanup:g}=he(C.timeoutMs),T=ge(C.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(C,f){var g;return(g=f==null?void 0:f.concat().reverse().reduce((T,_)=>_(T),C))!==null&&g!==void 0?g:C}function ze(C,f,g){const T=typeof f=="string"?f:f.typeName,_=typeof g=="string"?g:g.name;return C.toString().replace(/\/?$/,`/${T}/${_}`)}function $e(C){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=C.getReader()},async pull(_){let H;for(;;){if(H===void 0&&g.byteLength>=5){let Ae=0;for(let Qe=1;Qe<5;Qe++)Ae=(Ae<<8)+g[Qe];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 Ve(C,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,C),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(C,f,g,T){const _=new Headers(g??{});return _.set(dt,C?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(C){switch(C){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(C,f,g){try{const T=kt.W.dec(C);return f?f.fromBinary(T,g):T}catch(T){throw S.from(T,O.DataLoss)}}const Ot="0";function Ye(C){var f;const g=C.get(J);if(g!=null){const _=Ke(g,pt);if(_.code==0)return;const H=new S(_.message,_.code,C);return H.details=_.details.map(K=>({type:K.typeUrl.substring(K.typeUrl.lastIndexOf("/")+1),value:K.value})),H}const T=C.get(re);if(T!=null){if(T===Ot)return;const _=parseInt(T,10);return _ in O?new S(decodeURIComponent((f=C.get(ee))!==null&&f!==void 0?f:""),_,C):new S(`invalid grpc-status: ${T}`,O.Internal,C)}}function it(C,f){var g;if(C>=200&&C<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 ${C}`),Oe(C),f)}const vt=128;function Dt(C){const f=new Headers,g=new TextDecoder().decode(C).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(C,f){const g=Ye(C);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(C){return this instanceof fn?(this.v=C,this):new fn(C)},zn=function(C,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(C,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{Ae(T[ft](an))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof fn?Promise.resolve(ft.value.v).then(Qe,Et):Ft(H[0][2],ft)}function Qe(ft){oe("next",ft)}function Et(ft){oe("throw",ft)}function Ft(ft,an){ft(an),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function ve(C){var f;cn();const g=(f=C.useBinaryFormat)!==null&&f!==void 0?f:!0;return{async unary(T,_,H,K,oe,Ae,Qe){var Et;const{serialize:Ft,parse:ft}=Ee(_,g,C.jsonOptions,C.binaryOptions);return K=K===void 0?C.defaultTimeoutMs:K<=0?void 0:K,await rt({interceptors:C.interceptors,signal:H,timeoutMs:K,req:{stream:!1,service:T,method:_,url:ze(C.baseUrl,T,_),init:{method:"POST",credentials:(Et=C.credentials)!==null&&Et!==void 0?Et:"same-origin",redirect:"error",mode:"cors"},header:ce(g,K,oe,!1),contextValues:Qe??j(),message:Ae},next:async an=>{var In;const ar=await((In=C.fetch)!==null&&In!==void 0?In:globalThis.fetch)(an.url,Object.assign(Object.assign({},an.init),{headers:an.header,signal:an.signal,body:Ve(0,Ft(an.message))}));if(it(ar.status,ar.headers),!ar.body)throw"missing response body";const ro=$e(ar.body).getReader();let $n,Jr;for(;;){const Qr=await ro.read();if(Qr.done)break;const{flags:yi,data:sf}=Qr.value;if(yi===vt){if($n!==void 0)throw"extra trailer";$n=Dt(sf);continue}if(Jr!==void 0)throw"extra message";Jr=ft(sf)}if($n===void 0)throw"missing trailer";if(rn($n,ar.headers),Jr===void 0)throw"missing message";return{stream:!1,header:ar.headers,message:Jr,trailer:$n}}})},async stream(T,_,H,K,oe,Ae,Qe){var Et;const{serialize:Ft,parse:ft}=Ee(_,g,C.jsonOptions,C.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:Vp,data:zg}=sf.value;if((Vp&vt)===vt){if(yi)throw"extra trailer";yi=!0;const AF=Dt(zg);rn(AF,$n),AF.forEach((Lie,Mie)=>ro.set(Mie,Lie));continue}if(yi)throw"extra message";yield yield fn(ft(zg))}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 Ve(0,Ft(ar.value))}return K=K===void 0?C.defaultTimeoutMs:K<=0?void 0:K,Me({interceptors:C.interceptors,signal:H,timeoutMs:K,req:{stream:!0,service:T,method:_,url:ze(C.baseUrl,T,_),init:{method:"POST",credentials:(Et=C.credentials)!==null&&Et!==void 0?Et:"same-origin",redirect:"error",mode:"cors"},header:ce(g,K,oe,!1),contextValues:Qe??j(),message:Ae},next:async Dn=>{var ar;const $n=await((ar=C.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:Jr}=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,Jr,Qr,$n.headers)})}})}}}var Ce=o(295),fe=o(646);/** + */(function(i,o){e.exports=o()})(rS,()=>(()=>{var r={646:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c,StringValue:d,Timestamp:p}=u(532),h=c.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),m=c.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),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}}]),v=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:O},{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}]),O=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:A,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:M,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"}),A=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"}),M=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=v,l.Change=b,l.ChangeID=O,l.Operation=S,l.Operation_Set=k,l.Operation_Add=A,l.Operation_Move=w,l.Operation_Remove=E,l.Operation_Edit=M,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:v,DeactivateClientResponse:b,DetachDocumentRequest:O,DetachDocumentResponse:S,PushPullChangesRequest:k,PushPullChangesResponse:A,RemoveDocumentRequest:w,RemoveDocumentResponse:E,WatchDocumentRequest:M,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:v,O:b,kind:R.Unary},attachDocument:{name:"AttachDocument",I:p,O:h,kind:R.Unary},detachDocument:{name:"DetachDocument",I:O,O:S,kind:R.Unary},removeDocument:{name:"RemoveDocument",I:w,O:E,kind:R.Unary},pushPullChanges:{name:"PushPullChanges",I:k,O:A,kind:R.Unary},watchDocument:{name:"WatchDocument",I:M,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}]),v=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}]),O=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}]),A=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"}),M=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=v,l.AttachDocumentRequest=b,l.AttachDocumentResponse=O,l.DetachDocumentRequest=S,l.DetachDocumentResponse=k,l.WatchDocumentRequest=A,l.WatchDocumentResponse=w,l.WatchDocumentResponse_Initialization=E,l.RemoveDocumentRequest=M,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(v){v[v.Varint=0]="Varint",v[v.Bit64=1]="Bit64",v[v.LengthDelimited=2]="LengthDelimited",v[v.StartGroup=3]="StartGroup",v[v.EndGroup=4]="EndGroup",v[v.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 O=this.textEncoder.encode(b);return this.uint32(O.byteLength),this.raw(O)}float(b){(0,d.E_)(b);let O=new Uint8Array(4);return new DataView(O.buffer).setFloat32(0,b,!0),this.raw(O)}double(b){let O=new Uint8Array(8);return new DataView(O.buffer).setFloat64(0,b,!0),this.raw(O)}fixed32(b){(0,d.fp)(b);let O=new Uint8Array(4);return new DataView(O.buffer).setUint32(0,b,!0),this.raw(O)}sfixed32(b){(0,d.ug)(b);let O=new Uint8Array(4);return new DataView(O.buffer).setInt32(0,b,!0),this.raw(O)}sint32(b){return(0,d.ug)(b),b=(b<<1^b>>31)>>>0,(0,c.fC)(b,this.buf),this}sfixed64(b){let O=new Uint8Array(8),S=new DataView(O.buffer),k=p.q.enc(b);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(O)}fixed64(b){let O=new Uint8Array(8),S=new DataView(O.buffer),k=p.q.uEnc(b);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(O)}int64(b){let O=p.q.enc(b);return(0,c._y)(O.lo,O.hi,this.buf),this}sint64(b){let O=p.q.enc(b),S=O.hi>>31,k=O.lo<<1^S,A=(O.hi<<1|O.lo>>>31)^S;return(0,c._y)(k,A,this.buf),this}uint64(b){let O=p.q.uEnc(b);return(0,c._y)(O.lo,O.hi,this.buf),this}}class y{constructor(b,O){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=O??new TextDecoder}tag(){let b=this.uint32(),O=b>>>3,S=b&7;if(O<=0||S<0||S>5)throw new Error("illegal tag: field no "+O+" wire type "+S);return[O,S]}skip(b){let O=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(O,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,O]=this.varint64(),S=-(b&1);return b=(b>>>1|(O&1)<<31)^S,O=O>>>1^S,p.q.dec(b,O)}bool(){let[b,O]=this.varint64();return b!==0||O!==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(),O=this.pos;return this.pos+=b,this.assertBounds(),this.buf.subarray(O,O+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 v=this.typeUrlToName(this.typeUrl),b=(y=m==null?void 0:m.typeRegistry)===null||y===void 0?void 0:y.findMessage(v);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(v.startsWith("google.protobuf.")||S===null||Array.isArray(S)||typeof S!="object")&&(S={value:S}),S["@type"]=this.typeUrl,S}fromJson(m,y){var v;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 O=this.typeUrlToName(b),S=(v=y==null?void 0:y.typeRegistry)===null||v===void 0?void 0:v.findMessage(O);if(!S)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${b} is not in the type registry`);let k;if(O.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(m,"value"))k=S.fromJson(m.value,y);else{const A=Object.assign({},m);delete A["@type"],k=S.fromJson(A,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 v="";return typeof m=="string"?v=m:v=m.typeName,y===v}typeNameToUrl(m){return`type.googleapis.com/${m}`}typeUrlToName(m){if(!m.length)throw new Error(`invalid type url: ${m}`);const y=m.lastIndexOf("/"),v=y>=0?m.substring(y+1):m;if(!v.length)throw new Error(`invalid type url: ${m}`);return v}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:()=>A,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,!(M&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(M.push(z),!V)return}const D=w>>>28&15|(E&7)<<4,R=!!(E>>3);if(M.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(M.push(z),!V)return}M.push(E>>>31&1)}}const p=4294967296;function h(w){const E=w[0]==="-";E&&(w=w.slice(1));const M=1e6;let D=0,R=0;function B(U,V){const z=Number(w.slice(U,V));R*=M,D=D*M+z,D>=p&&(R=R+(D/p|0),D=D%p)}return B(-24,-18),B(-18,-12),B(-12,-6),B(-6),E?O(D,R):b(D,R)}function m(w,E){let M=b(w,E);const D=M.hi&2147483648;D&&(M=O(M.lo,M.hi));const R=y(M.lo,M.hi);return D?"-"+R:R}function y(w,E){if({lo:w,hi:E}=v(w,E),E<=2097151)return String(p*E+w);const M=w&16777215,D=(w>>>24|E<<8)&16777215,R=E>>16&65535;let B=M+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 v(w,E){return{lo:w>>>0,hi:E>>>0}}function b(w,E){return{lo:w|0,hi:E|0}}function O(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 M=0;M<9;M++)E.push(w&127|128),w=w>>7;E.push(1)}}function A(){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 M=5;w&128&&M<10;M++)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:()=>Pp.I,Api:()=>Da,BinaryReader:()=>U.oP,BinaryWriter:()=>U.Lt,BoolValue:()=>Uo,BytesValue:()=>Kt,CodeGeneratorRequest:()=>Vo,CodeGeneratorResponse:()=>li,CodeGeneratorResponse_Feature:()=>Wl,CodeGeneratorResponse_File:()=>So,DescriptorProto:()=>he,DescriptorProto_ExtensionRange:()=>Ne,DescriptorProto_ReservedRange:()=>Le,DoubleValue:()=>Bo,Duration:()=>yr,Edition:()=>G,Empty:()=>vs,Enum:()=>Yn,EnumDescriptorProto:()=>He,EnumDescriptorProto_EnumReservedRange:()=>dt,EnumOptions:()=>pt,EnumValue:()=>Na,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:()=>Ho,FieldDescriptorProto:()=>Qe,FieldDescriptorProto_Label:()=>ze,FieldDescriptorProto_Type:()=>ye,FieldMask:()=>Es,FieldOptions:()=>Ie,FieldOptions_CType:()=>ie,FieldOptions_EditionDefault:()=>Se,FieldOptions_JSType:()=>de,FieldOptions_OptionRetention:()=>ce,FieldOptions_OptionTargetType:()=>Oe,Field_Cardinality:()=>Rc,Field_Kind:()=>_c,FileDescriptorProto:()=>ge,FileDescriptorSet:()=>ue,FileOptions:()=>J,FileOptions_OptimizeMode:()=>_e,FloatValue:()=>Eo,GeneratedCodeInfo:()=>$t,GeneratedCodeInfo_Annotation:()=>It,GeneratedCodeInfo_Annotation_Semantic:()=>xt,Int32Value:()=>xr,Int64Value:()=>Bi,ListValue:()=>no,LongType:()=>p.p,Message:()=>le.v,MessageOptions:()=>Pe,Method:()=>la,MethodDescriptorProto:()=>ee,MethodIdempotency:()=>Ee.w,MethodKind:()=>Ee.t,MethodOptions:()=>vt,MethodOptions_IdempotencyLevel:()=>Ye,Mixin:()=>Pa,NullValue:()=>to,OneofDescriptorProto:()=>$e,OneofOptions:()=>nt,Option:()=>ki,ScalarType:()=>p.w,ServiceDescriptorProto:()=>re,ServiceOptions:()=>Ke,SourceCodeInfo:()=>at,SourceCodeInfo_Location:()=>Mt,SourceContext:()=>aa,StringValue:()=>Ui,Struct:()=>vo,Syntax:()=>sa,Timestamp:()=>oa,Type:()=>wi,UInt32Value:()=>$r,UInt64Value:()=>mr,UninterpretedOption:()=>it,UninterpretedOption_NamePart:()=>Et,Value:()=>Mr,Version:()=>zo,WireType:()=>U.TD,codegenInfo:()=>j,createDescriptorSet:()=>Wt,createRegistry:()=>SO,createRegistryFromDescriptors:()=>tf,proto2:()=>E,proto3:()=>c.w,protoBase64:()=>B.W,protoDelimited:()=>X,protoDouble:()=>D,protoInt64:()=>R.q,toPlainMessage:()=>Mp});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),v=u(501),b=u(215),O=u(504),S=u(432),k=u(120),A=u(814);function w(){return(0,A.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 v.i(F,M)},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 M(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,O.Rz)(Ze.name,Ze.oneof!==void 0),Ot.jsonName=(x=Ze.jsonName)!==null&&x!==void 0?x:(0,O.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(La){return new Promise(function(Nx,rf){De.push([Sn,La,Nx,rf])>1||Ze(Sn,La)})},ji&&(be[Sn]=ji(be[Sn])))}function Ze(Sn,ji){try{Ot(se[Sn](ji))}catch(La){Or(De[0][3],La)}}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:O.r1,reifyWkt:Y,getUnwrappedFieldType:S.w,scalarDefaultValue:Z.kY,safeIdentifier:O.GD,safeObjectProperty:O.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,[si.FileDescriptorProto_Syntax])},getPackageComments(){return eo(this.proto.sourceCodeInfo,[si.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,O.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,si.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[si.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,si.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,si.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[si.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=[si.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,si.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,si.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:ia(x,P,F,be.resolveFeatures),jsonName:F.jsonName===(0,O.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:Ra,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Pt=[...this.parent.getComments().sourcePath,si.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:Dp,repeated:Ot,enum:Pt})}default:{const Pt=Np[F.type];return(0,k.hu)(Pt,`invalid FieldDescriptorProto: unknown type ${F.type}`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"scalar",getDefaultValue:Dp,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,si.DescriptorProto_Extension,this.parent.proto.extension.indexOf(F)]:[si.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 ia(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 Np={[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 si;(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"})(si||(si={}));function Ra(){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 Dp(){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 SO(...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 oa 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 oa.fromDate(new Date)}static fromDate(x){const P=x.getTime();return new oa({seconds:R.q.parse(Math.floor(P/1e3)),nanos:P%1e3*1e6})}static fromBinary(x,P){return new oa().fromBinary(x,P)}static fromJson(x,P){return new oa().fromJson(x,P)}static fromJsonString(x,P){return new oa().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(oa,x,P)}}oa.runtime=c.w,oa.typeName="google.protobuf.Timestamp",oa.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 Pp=u(733);class vs extends le.v{constructor(x){super(),c.w.util.initPartial(x,this)}static fromBinary(x,P){return new vs().fromBinary(x,P)}static fromJson(x,P){return new vs().fromJson(x,P)}static fromJsonString(x,P){return new vs().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(vs,x,P)}}vs.runtime=c.w,vs.typeName="google.protobuf.Empty",vs.fields=c.w.util.newFieldList(()=>[]);class Es 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 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.FieldMask",Es.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 vo 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 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.Struct",vo.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:vo.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:vo,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 Bo 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 Bo().fromBinary(x,P)}static fromJson(x,P){return new Bo().fromJson(x,P)}static fromJsonString(x,P){return new Bo().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Bo,x,P)}}Bo.runtime=c.w,Bo.typeName="google.protobuf.DoubleValue",Bo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Bo.fieldWrapper={wrapField(F){return new Bo({value:F})},unwrapField(F){return F.value}};class Eo 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 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.FloatValue",Eo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),Eo.fieldWrapper={wrapField(F){return new Eo({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 Uo 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 Uo().fromBinary(x,P)}static fromJson(x,P){return new Uo().fromJson(x,P)}static fromJsonString(x,P){return new Uo().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Uo,x,P)}}Uo.runtime=c.w,Uo.typeName="google.protobuf.BoolValue",Uo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Uo.fieldWrapper={wrapField(F){return new Uo({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=[Pp.I,yr,vs,Es,vo,Mr,no,oa,yr,Bo,Eo,Bi,xr,$r,mr,Uo,Ui,Kt],Lp=[(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 Lp)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,O.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,O.r1)(Ze)});be[je]=bn;for(const Or of Ze.fields){const Sn=jo(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,O.r1)(Pt)]={name:Pt.name,I:bn,O:Or,kind:Pt.methodKind,idempotency:Pt.idempotency}}return De[je]={typeName:Ze.typeName,methods:Ot}}}}function jo(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 Mp(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=>Ia(je));else if(se.kind=="map"){De={};for(const[je,ct]of Object.entries(be))De[je]=Ia(ct)}else se.kind=="oneof"?De=se.findField(be.case)?{case:be.case,value:Ia(be.value)}:{case:void 0}:De=Ia(be);P[se.localName]=De}return P}function Ia(F){if(F===void 0)return F;if(F instanceof le.v)return Mp(F);if(F instanceof Uint8Array){const x=new Uint8Array(F.byteLength);return x.set(F),x}return F}class zo extends le.v{constructor(x){super(),E.util.initPartial(x,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 E.util.equals(zo,x,P)}}zo.runtime=E,zo.typeName="google.protobuf.compiler.Version",zo.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 Vo extends le.v{constructor(x){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],E.util.initPartial(x,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 E.util.equals(Vo,x,P)}}Vo.runtime=E,Vo.typeName="google.protobuf.compiler.CodeGeneratorRequest",Vo.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:zo,opt:!0}]);class li extends le.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new li().fromBinary(x,P)}static fromJson(x,P){return new li().fromJson(x,P)}static fromJsonString(x,P){return new li().fromJsonString(x,P)}static equals(x,P){return E.util.equals(li,x,P)}}li.runtime=E,li.typeName="google.protobuf.compiler.CodeGeneratorResponse",li.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:So,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 So extends le.v{constructor(x){super(),E.util.initPartial(x,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 E.util.equals(So,x,P)}}So.runtime=E,So.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",So.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 aa extends le.v{constructor(x){super(),this.fileName="",c.w.util.initPartial(x,this)}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.SourceContext",aa.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var sa;(function(F){F[F.PROTO2=0]="PROTO2",F[F.PROTO3=1]="PROTO3",F[F.EDITIONS=2]="EDITIONS"})(sa||(sa={})),c.w.util.setEnumType(sa,"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=sa.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:Ho,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:aa},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(sa)},{no:7,name:"edition",kind:"scalar",T:9}]);class Ho extends le.v{constructor(x){super(),this.kind=_c.TYPE_UNKNOWN,this.cardinality=Rc.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 Ho().fromBinary(x,P)}static fromJson(x,P){return new Ho().fromJson(x,P)}static fromJsonString(x,P){return new Ho().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Ho,x,P)}}Ho.runtime=c.w,Ho.typeName="google.protobuf.Field",Ho.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType(_c)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Rc)},{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 _c;(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"})(_c||(_c={})),c.w.util.setEnumType(_c,"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 Rc;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.OPTIONAL=1]="OPTIONAL",F[F.REQUIRED=2]="REQUIRED",F[F.REPEATED=3]="REPEATED"})(Rc||(Rc={})),c.w.util.setEnumType(Rc,"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=sa.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:Na,repeated:!0},{no:3,name:"options",kind:"message",T:ki,repeated:!0},{no:4,name:"source_context",kind:"message",T:aa},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(sa)},{no:6,name:"edition",kind:"scalar",T:9}]);class Na 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 Na().fromBinary(x,P)}static fromJson(x,P){return new Na().fromJson(x,P)}static fromJsonString(x,P){return new Na().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Na,x,P)}}Na.runtime=c.w,Na.typeName="google.protobuf.EnumValue",Na.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:Pp.I}]);class Da extends le.v{constructor(x){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=sa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Da().fromBinary(x,P)}static fromJson(x,P){return new Da().fromJson(x,P)}static fromJsonString(x,P){return new Da().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Da,x,P)}}Da.runtime=c.w,Da.typeName="google.protobuf.Api",Da.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:la,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:aa},{no:6,name:"mixins",kind:"message",T:Pa,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(sa)}]);class la extends le.v{constructor(x){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=sa.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,P){return new la().fromBinary(x,P)}static fromJson(x,P){return new la().fromJson(x,P)}static fromJsonString(x,P){return new la().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(la,x,P)}}la.runtime=c.w,la.typeName="google.protobuf.Method",la.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(sa)}]);class Pa extends le.v{constructor(x){super(),this.name="",this.root="",c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Pa().fromBinary(x,P)}static fromJson(x,P){return new Pa().fromJson(x,P)}static fromJsonString(x,P){return new Pa().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Pa,x,P)}}Pa.runtime=c.w,Pa.typeName="google.protobuf.Mixin",Pa.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,v=y.makeReadOptions(h);return y.readMessage(this,v.readerFactory(p),p.byteLength,v),this}fromJson(p,h){const m=this.getType(),y=m.runtime.json,v=y.makeReadOptions(h);return y.readMessage(m,p,v,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),v=y.writerFactory();return m.writeMessage(this,v,y),v.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_:()=>O,fp:()=>b,hu:()=>c,ug:()=>v});function c(S,k){if(!S)throw new Error(k)}const d=34028234663852886e22,p=-34028234663852886e22,h=4294967295,m=2147483647,y=-2147483648;function v(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 O(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:()=>A,oQ:()=>B});var c=u(79),d=u(561),p=u(465),h=u(432),m=u(781),y=u(120);const v=Symbol("@bufbuild/protobuf/unknown-fields"),b={readUnknownFields:!0,readerFactory:z=>new c.oP(z)},O={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({},O),z):O}function A(){return{makeReadOptions:S,makeWriteOptions:k,listUnknownFields(z){var Q;return(Q=z[v])!==null&&Q!==void 0?Q:[]},discardUnknownFields(z){delete z[v]},writeUnknownFields(z,Q){const Z=z[v];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[v])||(Y[v]=[]),Y[v].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=M),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 O=b[d];return(0,c.hu)(O,"missing enum type on enum object"),O}function h(b,O,S,k){b[d]=m(O,S.map(A=>({no:A.no,name:A.name,localName:b[A.no]})))}function m(b,O,S){const k=Object.create(null),A=Object.create(null),w=[];for(const E of O){const M=v(E);w.push(M),k[E.name]=M,A[E.no]=M}return{typeName:b,values:w,findName(E){return k[E]},findNumber(E){return A[E]}}}function y(b,O,S){const k={};for(const A of O){const w=v(A);k[w.localName]=w.no,k[w.no]=w.localName}return h(k,b,O),k}function v(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,v){return v instanceof c.v||!y.fieldWrapper?v:y.fieldWrapper.wrapField(v)}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},v={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function b(D){return D?Object.assign(Object.assign({},y),D):y}function O(D){return D?Object.assign(Object.assign({},v),D):v}function S(D){const R=D(E,M);return{makeReadOptions:b,makeWriteOptions:O,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=A(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=A(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[A(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]=A(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:A,writeScalar:M,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 A(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 M(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(M){switch(M.kind){case"field":return d(M.name,M.oneof!==void 0);case"oneof":return p(M.name);case"enum":case"message":case"service":{const D=M.file.proto.package,R=D===void 0?0:D.length+1,B=M.typeName.substring(R).replace(/\./g,"_");return w(E(B))}case"enum_value":{const D=M.parent.sharedPrefix;if(D===void 0)return M.name;const R=M.name.substring(D.length);return w(R)}case"rpc":{let D=M.name;return D.length==0?D:(D=D[0].toLowerCase()+D.substring(1),w(D))}}}function d(M,D){const R=v(M);return D?R:w(A(R))}function p(M){return d(M,!1)}const h=v;function m(M,D){const R=y(M)+"_";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(M){return(M.substring(0,1)+M.substring(1).replace(/[A-Z]/g,D=>"_"+D)).toLowerCase()}function v(M){let D=!1;const R=[];for(let B=0;B`${M}$`,A=M=>S.has(M)?k(M):M,w=M=>O.has(M)?k(M):M,E=M=>b.has(M)?k(M):M},493:(s,l,u)=>{u.d(l,{F:()=>h});var c=u(609),d=u(561);function p(m,y,v,b){var O;const S=(O=b==null?void 0:b.localName)!==null&&O!==void 0?O:y.substring(y.lastIndexOf(".")+1),k={[S]:function(A){m.util.initFields(this),m.util.initPartial(A,this)}}[S];return Object.setPrototypeOf(k.prototype,new d.v),Object.assign(k,{runtime:m,typeName:y,fields:m.util.newFieldList(v),fromBinary(A,w){return new k().fromBinary(A,w)},fromJson(A,w){return new k().fromJson(A,w)},fromJsonString(A,w){return new k().fromJsonString(A,w)},equals(A,w){return m.util.equals(k,A,w)}}),k}function h(m,y,v,b){return{syntax:m,json:y,bin:v,util:b,makeMessageType(O,S,k){return p(this,O,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(v,b,O){if(b===O)return!0;if(v==c.w.BYTES){if(!(b instanceof Uint8Array)||!(O instanceof Uint8Array)||b.length!==O.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,O){if(b===void 0)return;const S=O.getType();for(const k of S.fields.byMember()){const A=k.localName,w=O,E=b;if(E[A]!==void 0)switch(k.kind){case"oneof":const M=E[A].case;if(M===void 0)continue;const D=k.findField(M);let R=E[A].value;D&&D.kind=="message"&&!(R instanceof D.T)?R=new D.T(R):D&&D.kind==="scalar"&&D.T===p.w.BYTES&&(R=v(R)),w[A]={case:M,value:R};break;case"scalar":case"enum":let B=E[A];k.T===p.w.BYTES&&(B=k.repeated?B.map(v):v(B)),w[A]=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[A]))w[A][z]=v(Q);else Object.assign(w[A],E[A]);break;case"message":const V=k.V.T;for(const z of Object.keys(E[A])){let Q=E[A][z];V.fieldWrapper||(Q=new V(Q)),w[A][z]=Q}break}break;case"message":const U=k.T;if(k.repeated)w[A]=E[A].map(V=>V instanceof U?V:new U(V));else if(E[A]!==void 0){const V=E[A];U.fieldWrapper?U.typeName==="google.protobuf.BytesValue"?w[A]=v(V):w[A]=V:w[A]=V instanceof U?V:new U(V)}break}}},equals(b,O,S){return O===S?!0:!O||!S?!1:b.fields.byMember().every(k=>{const A=O[k.localName],w=S[k.localName];if(k.repeated){if(A.length!==w.length)return!1;switch(k.kind){case"message":return A.every((E,M)=>k.T.equals(E,w[M]));case"scalar":return A.every((E,M)=>(0,h.AA)(k.T,E,w[M]));case"enum":return A.every((E,M)=>(0,h.AA)(p.w.INT32,E,w[M]))}throw new Error(`repeated cannot contain ${k.kind}`)}switch(k.kind){case"message":return k.T.equals(A,w);case"enum":return(0,h.AA)(p.w.INT32,A,w);case"scalar":return(0,h.AA)(k.T,A,w);case"oneof":if(A.case!==w.case)return!1;const E=k.findField(A.case);if(E===void 0)return!0;switch(E.kind){case"message":return E.T.equals(A.value,w.value);case"enum":return(0,h.AA)(p.w.INT32,A.value,w.value);case"scalar":return(0,h.AA)(E.T,A.value,w.value)}throw new Error(`oneof cannot contain ${E.kind}`);case"map":const M=Object.keys(A).concat(Object.keys(w));switch(k.V.kind){case"message":const D=k.V.T;return M.every(B=>D.equals(A[B],w[B]));case"enum":return M.every(B=>(0,h.AA)(p.w.INT32,A[B],w[B]));case"scalar":const R=k.V.T;return M.every(B=>(0,h.AA)(R,A[B],w[B]))}break}})},clone(b){const O=b.getType(),S=new O,k=S;for(const A of O.fields.byMember()){const w=b[A.localName];let E;if(A.repeated)E=w.map(y);else if(A.kind=="map"){E=k[A.localName];for(const[M,D]of Object.entries(w))E[M]=y(D)}else A.kind=="oneof"?E=A.findField(w.case)?{case:w.case,value:y(w.value)}:{case:void 0}:E=y(w);k[A.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 O=new Uint8Array(b.byteLength);return O.set(b),O}return b}function v(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=O,b=2;break;case 2:y[v++]=(S&15)<<4|(O&60)>>2,S=O,b=3;break;case 3:y[v++]=(S&3)<<6|O,b=0;break}}if(b==1)throw Error("invalid base64 string.");return y.subarray(0,v)},enc(h){let m="",y=0,v,b=0;for(let O=0;O>2],b=(v&3)<<4,y=1;break;case 1:m+=c[b|v>>4],b=(v&15)<<2,y=2;break;case 2:m+=c[b|v>>6],m+=c[v&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 O=BigInt("-9223372036854775808"),S=BigInt("9223372036854775807"),k=BigInt("0"),A=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(w){const E=typeof w=="bigint"?w:BigInt(w);if(E>S||EA||E(0,c.hu)(/^-?[0-9]+$/.test(O),`int64 invalid: ${O}`),b=O=>(0,c.hu)(/^[0-9]+$/.test(O),`uint64 invalid: ${O}`);return{zero:"0",supported:!1,parse(O){return typeof O!="string"&&(O=O.toString()),v(O),O},uParse(O){return typeof O!="string"&&(O=O.toString()),b(O),O},enc(O){return typeof O!="string"&&(O=O.toString()),v(O),(0,d.CZ)(O)},uEnc(O){return typeof O!="string"&&(O=O.toString()),b(O),(0,d.CZ)(O)},dec(O,S){return(0,d.Ak)(O,S)},uDec(O,S){return(0,d.Fd)(O,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),v=u(814);function b(){return(0,v.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 O=u(433),S=u(501),k=u(781),A=u(215),w=u(504);const E=(0,c.F)("proto3",b(),h(),Object.assign(Object.assign({},(0,O.f)()),{newFieldList(D){return new S.i(D,M)},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 M(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 A.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:()=>AF,ClientEventType:()=>$a,ClientStatus:()=>Dc,Counter:()=>RO,DocEventType:()=>Ln,Document:()=>xF,DocumentSyncResultType:()=>zp,EventSourceDevPanel:()=>Fie,EventSourceSDK:()=>Bie,Primitive:()=>Cr,StreamConnectionStatus:()=>af,SyncMode:()=>zu,Text:()=>_O,TimeTicket:()=>yr,Tree:()=>IO,converter:()=>Yl,default:()=>zie});var s;(function(C){C[C.Trivial=0]="Trivial",C[C.Debug=1]="Debug",C[C.Info=2]="Info",C[C.Warn=3]="Warn",C[C.Error=4]="Error",C[C.Fatal=5]="Fatal"})(s||(s={}));let l=s.Info;const u={trivial:(...C)=>{l>s.Trivial||typeof console<"u"&&console.log("YORKIE T:",...C)},debug:(...C)=>{l>s.Debug||typeof console<"u"&&console.log("YORKIE D:",...C)},info:(...C)=>{l>s.Info||typeof console<"u"&&console.log("YORKIE I:",...C)},warn:(...C)=>{l>s.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...C):console.log("YORKIE W:",...C))},error:(...C)=>{l>s.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...C):console.log("YORKIE E:",...C))},fatal:(C,...f)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...f):console.log("YORKIE F:",...f)),new Error(`YORKIE F: ${C}`)},isEnabled:C=>l<=C};function c(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,C=>{const f=Math.random()*16|0;return(C==="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(C,f){const g={};for(const[T,_]of Object.entries(C.methods)){const H=f(Object.assign(Object.assign({},_),{localName:T,service:C}));H!=null&&(g[T]=H)}return g}var v;(function(C){C[C.Canceled=1]="Canceled",C[C.Unknown=2]="Unknown",C[C.InvalidArgument=3]="InvalidArgument",C[C.DeadlineExceeded=4]="DeadlineExceeded",C[C.NotFound=5]="NotFound",C[C.AlreadyExists=6]="AlreadyExists",C[C.PermissionDenied=7]="PermissionDenied",C[C.ResourceExhausted=8]="ResourceExhausted",C[C.FailedPrecondition=9]="FailedPrecondition",C[C.Aborted=10]="Aborted",C[C.OutOfRange=11]="OutOfRange",C[C.Unimplemented=12]="Unimplemented",C[C.Internal=13]="Internal",C[C.Unavailable=14]="Unavailable",C[C.DataLoss=15]="DataLoss",C[C.Unauthenticated=16]="Unauthenticated"})(v||(v={}));var b=o(561);function O(C){const f=v[C];return typeof f!="string"?C.toString():f[0].toLowerCase()+f.substring(1).replace(/[A-Z]/g,g=>"_"+g.toLowerCase())}class S extends Error{constructor(f,g=v.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=v.Unknown){return f instanceof S?f:f instanceof Error?f.name=="AbortError"?new S(f.message,v.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(C,f){return C.length?`[${O(f)}] ${C}`:`[${O(f)}]`}var A=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=C[Symbol.asyncIterator],g;return f?f.call(C):(C=typeof __values=="function"?__values(C):C[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=C[H]&&function(K){return new Promise(function(oe,Ce){K=C[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(C){return this instanceof w?(this.v=C,this):new w(C)},E=function(C,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(C,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])}},M=function(C){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=C[_]?function(K){return(g=!g)?{value:w(C[_](K)),done:!1}:H?H(K):K}:H}};function D(C){return E(this,arguments,function*(){yield w(yield*M(A(C)))})}var R=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=C[Symbol.asyncIterator],g;return f?f.call(C):(C=typeof __values=="function"?__values(C):C[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=C[H]&&function(K){return new Promise(function(oe,Ce){K=C[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(C){return this instanceof B?(this.v=C,this):new B(C)},U=function(C){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=C[_]?function(K){return(g=!g)?{value:B(C[_](K)),done:!1}:H?H(K):K}:H}},V=function(C,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(C,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(C,f){return y(C,g=>{switch(g.kind){case m.t.Unary:return Q(f,C,g);case m.t.ServerStreaming:return X(f,C,g);case m.t.ClientStreaming:return Z(f,C,g);case m.t.BiDiStreaming:return Y(f,C,g);default:return null}})}function Q(C,f,g){return async function(T,_){var H,K;const oe=await C.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(C,f,g){return function(T,_){return q(C.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,D([T]),_==null?void 0:_.contextValues),_)}}function Z(C,f,g){return async function(T,_){var H,K,oe,Ce,Ve,yt;const Ft=await C.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",v.Internal);return(yt=_==null?void 0:_.onTrailer)===null||yt===void 0||yt.call(_,Ft.trailer),ft}}function Y(C,f,g){return function(T,_){return q(C.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues),_)}}function q(C,f){const g=function(){var T,_;return V(this,arguments,function*(){const H=yield B(C);(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(C){return C.id in this?this[C.id]:C.defaultValue},set(C,f){return this[C.id]=f,this},delete(C){return delete this[C.id],this}}}function le(C){var f;const g=Object.assign({},C);return(f=g.ignoreUnknownFields)!==null&&f!==void 0||(g.ignoreUnknownFields=!0),g}function Ee(C,f,g,T){const _=f?G(C.I,T):ue(C.I,g);return{parse:(f?G(C.O,T):ue(C.O,g)).parse,serialize:_.serialize}}function G(C,f){return{parse(g){try{return C.fromBinary(g,f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`parse binary: ${_}`,v.InvalidArgument)}},serialize(g){try{return g.toBinary(f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`serialize binary: ${_}`,v.Internal)}}}}function ue(C,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 C.fromJsonString(Ce,K)}catch(Ce){throw S.from(Ce,v.InvalidArgument)}},serialize(oe){try{const Ce=oe.toJsonString(K);return _.encode(Ce)}catch(Ce){throw S.from(Ce,v.Internal)}}}}function ge(...C){const f=new AbortController,g=C.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(C){const f=new AbortController,g=()=>{f.abort(new S("the operation timed out",v.DeadlineExceeded))};let T;return C!==void 0&&(C<=0?g():T=setTimeout(g,C)),{signal:f.signal,cleanup:()=>clearTimeout(T)}}function Ne(C){if(!C.aborted)return;if(C.reason!==void 0)return C.reason;const f=new Error("This operation was aborted");return f.name="AbortError",f}function Le(C,f){return f instanceof b.v?f:new C(f)}function qe(C,f){function g(T){return T.done===!0?T:{done:T.done,value:Le(C,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(C){const f=ye(C.next,C.interceptors),[g,T,_]=Qe(C),H=Object.assign(Object.assign({},C.req),{message:Le(C.req.method.I,C.req.message),signal:g});return f(H).then(K=>(_(),K),T)}function Me(C){const f=ye(C.next,C.interceptors),[g,T,_]=Qe(C),H=Object.assign(Object.assign({},C.req),{message:qe(C.req.method.I,C.req.message),signal:g});let K=!1;return g.addEventListener("abort",function(){var oe,Ce;const Ve=C.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(C){const{signal:f,cleanup:g}=he(C.timeoutMs),T=ge(C.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(C,f){var g;return(g=f==null?void 0:f.concat().reverse().reduce((T,_)=>_(T),C))!==null&&g!==void 0?g:C}function ze(C,f,g){const T=typeof f=="string"?f:f.typeName,_=typeof g=="string"?g:g.name;return C.toString().replace(/\/?$/,`/${T}/${_}`)}function $e(C){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=C.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",v.DataLoss));return}const K=g.subarray(5,5+H.length);g=g.subarray(5+H.length),_.enqueue({flags:H.flags,data:K})}})}function He(C,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,C),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(C,f,g,T){const _=new Headers(g??{});return _.set(dt,C?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(C){switch(C){case 400:return v.Internal;case 401:return v.Unauthenticated;case 403:return v.PermissionDenied;case 404:return v.Unimplemented;case 429:return v.Unavailable;case 502:return v.Unavailable;case 503:return v.Unavailable;case 504:return v.Unavailable;default:return v.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(C,f,g){try{const T=kt.W.dec(C);return f?f.fromBinary(T,g):T}catch(T){throw S.from(T,v.DataLoss)}}const vt="0";function Ye(C){var f;const g=C.get(J);if(g!=null){const _=Ke(g,pt);if(_.code==0)return;const H=new S(_.message,_.code,C);return H.details=_.details.map(K=>({type:K.typeUrl.substring(K.typeUrl.lastIndexOf("/")+1),value:K.value})),H}const T=C.get(re);if(T!=null){if(T===vt)return;const _=parseInt(T,10);return _ in v?new S(decodeURIComponent((f=C.get(ee))!==null&&f!==void 0?f:""),_,C):new S(`invalid grpc-status: ${T}`,v.Internal,C)}}function it(C,f){var g;if(C>=200&&C<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 ${C}`),Oe(C),f)}const Et=128;function Dt(C){const f=new Headers,g=new TextDecoder().decode(C).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(C,f){const g=Ye(C);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(C){return this instanceof fn?(this.v=C,this):new fn(C)},zn=function(C,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(C,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(C){var f;cn();const g=(f=C.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,C.jsonOptions,C.binaryOptions);return K=K===void 0?C.defaultTimeoutMs:K<=0?void 0:K,await rt({interceptors:C.interceptors,signal:H,timeoutMs:K,req:{stream:!1,service:T,method:_,url:ze(C.baseUrl,T,_),init:{method:"POST",credentials:(yt=C.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=C.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,Jr;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(Jr!==void 0)throw"extra message";Jr=ft(sf)}if($n===void 0)throw"missing trailer";if(rn($n,ar.headers),Jr===void 0)throw"missing message";return{stream:!1,header:ar.headers,message:Jr,trailer:$n}}})},async stream(T,_,H,K,oe,Ce,Ve){var yt;const{serialize:Ft,parse:ft}=Ee(_,g,C.jsonOptions,C.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:Vp,data:Hg}=sf.value;if((Vp&Et)===Et){if(yi)throw"extra trailer";yi=!0;const _F=Dt(Hg);rn(_F,$n),_F.forEach((Vie,Hie)=>ro.set(Hie,Vie));continue}if(yi)throw"extra message";yield yield fn(ft(Hg))}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?C.defaultTimeoutMs:K<=0?void 0:K,Me({interceptors:C.interceptors,signal:H,timeoutMs:K,req:{stream:!0,service:T,method:_,url:ze(C.baseUrl,T,_),init:{method:"POST",credentials:(yt=C.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=C.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:Jr}=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,Jr,Qr,$n.headers)})}})}}}var Ae=o(295),fe=o(646);/** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. @@ -261,58 +261,58 @@ 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(C,f,g){this.low=C|0,this.high=f|0,this.unsigned=!!g}at.prototype.__isLong__,Object.defineProperty(at.prototype,"__isLong__",{value:!0});function Mt(C){return(C&&C.__isLong__)===!0}function $t(C){var f=Math.clz32(C&-C);return C?31-f:f}at.isLong=Mt;var It={},xt={};function qt(C,f){var g,T,_;return f?(C>>>=0,(_=0<=C&&C<256)&&(T=xt[C],T)?T:(g=Te(C,0,!0),_&&(xt[C]=g),g)):(C|=0,(_=-128<=C&&C<128)&&(T=It[C],T)?T:(g=Te(C,C<0?-1:0,!1),_&&(It[C]=g),g))}at.fromInt=qt;function Re(C,f){if(isNaN(C))return f?en:Nt;if(f){if(C<0)return en;if(C>=Ue)return Wn}else{if(C<=-xe)return Qn;if(C+1>=xe)return gn}return C<0?Re(-C,f).neg():Te(C%tr|0,C/tr|0,f)}at.fromNumber=Re;function Te(C,f,g){return new at(C,f,g)}at.fromBits=Te;var He=Math.pow;function ot(C,f,g){if(C.length===0)throw Error("empty string");if(typeof f=="number"?(g=f,f=!1):f=!!f,C==="NaN"||C==="Infinity"||C==="+Infinity"||C==="-Infinity")return f?en:Nt;if(g=g||10,g<2||360)throw Error("interior hyphen");if(T===0)return ot(C.substring(1),f,g).neg();for(var _=Re(He(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,Et=Qe.toString(f);if(K=Ae,K.isZero())return Et+oe;for(;Et.length<6;)Et="0"+Et;oe=""+Et+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,Ae=f.low>>>16,Qe=f.low&65535,Et=0,Ft=0,ft=0,an=0;return an+=H+Qe,ft+=an>>>16,an&=65535,ft+=_+Ae,Ft+=ft>>>16,ft&=65535,Ft+=T+oe,Et+=Ft>>>16,Ft&=65535,Et+=g+K,Et&=65535,Te(ft<<16|an,Et<<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,Ae=f.high&65535,Qe=f.low>>>16,Et=f.low&65535,Ft=0,ft=0,an=0,In=0;return In+=K*Et,an+=In>>>16,In&=65535,an+=H*Et,ft+=an>>>16,an&=65535,an+=K*Qe,ft+=an>>>16,an&=65535,ft+=_*Et,Ft+=ft>>>16,ft&=65535,ft+=H*Qe,Ft+=ft>>>16,ft&=65535,ft+=K*Ae,Ft+=ft>>>16,ft&=65535,Ft+=T*Et+_*Qe+H*Ae+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),Ae=oe<=48?1:He(2,oe-48),Qe=Re(T),Et=Qe.mul(f);Et.isNegative()||Et.gt(_);)T-=Ae,Qe=Re(T,this.unsigned),Et=Qe.mul(f);Qe.isZero()&&(Qe=Mn),H=H.add(Qe),_=_.sub(Et)}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(C){C.Ok="ok",C.ClientNotActive="client-not-active",C.Unimplemented="unimplemented",C.Unsupported="unsupported",C.DocumentNotAttached="document-not-attached",C.DocumentNotDetached="document-not-detached",C.DocumentRemoved="document-removed",C.InvalidObjectKey="invalid-object-key",C.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 ia(C){if(C instanceof Map){const f=Array.from(C);return new Map(JSON.parse(JSON.stringify(f)))}return JSON.parse(JSON.stringify(C))}const Np=C=>C?Object.entries(C).length===0:!0,eo=C=>{const f={};for(const[g,T]of Object.entries(C))f[g]=JSON.stringify(T);return f},si=C=>{const f={};for(const[g,T]of Object.entries(C))f[g]=JSON.parse(T);return f};var Ra;(function(C){C.Put="put",C.Clear="clear"})(Ra||(Ra={}));class Dp{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:Ra.Put,presence:ia(this.presence)}),this.context.setReversePresence(f,g)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Ra.Clear})}}const SO="000000000000000000000000",oa="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 Pp=0,vs=4294967295,Es=Wr.MAX_VALUE,to=new yr(Wr.fromNumber(0),Pp,SO),Oo=new yr(Es,vs,oa);function Mr(C){return C.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 Bo extends no{}class vo{constructor(f,g){this.strKey=f,this.value=g}static of(f,g){return new vo(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=vo.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{id:_,value:H,type:K}=T.toJSForTest();f[g]={key:g,id:_,value:H,type:K}}return{id: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(C){C.Local="local",C.Remote="remote",C.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 Uo{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(C){C[C.Null=0]="Null",C[C.Boolean=1]="Boolean",C[C.Integer=2]="Integer",C[C.Long=3]="Long",C[C.Double=4]="Double",C[C.String=5]="String",C[C.Bytes=6]="Bytes",C[C.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{id: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 Lp extends Uo{constructor(f){super(f),this.value=f}static createAfter(f,g){const T=new Lp(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 Lp(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=Lp.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 jo extends zl{constructor(f,g){super(f),this.elements=g}static create(f,g){if(!g)return new jo(f,tf.create());const T=tf.create();for(const _ of g)T.insertAfter(T.getLastCreatedAt(),_.deepcopy());return new jo(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 zo;(function(C){C.Content="content",C.Style="style"})(zo||(zo={}));class Vo{constructor(f){this.attributes=Ia.create(),this.content=f}static create(f){return new Vo(f)}get length(){return this.content.length}substring(f,g){const T=new Vo(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 li extends Bo{constructor(f,g){super(g),this.rgaTreeSplit=f}static create(f,g){return new li(f,g)}edit(f,g,T,_,H){const K=g?Vo.create(g):void 0;if(K&&_)for(const[Ft,ft]of Object.entries(_))K.setAttr(Ft,ft,T);const[oe,Ae,Qe]=this.rgaTreeSplit.edit(f,T,K,H),Et=Qe.map(Ft=>({...Ft,value:Ft.value?{attributes:si(Ft.value.getAttributes()),content:Ft.value.getContent()}:{attributes:void 0,content:""},type:zo.Content}));return[Ae,Et,[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),Qe=new Map,Et=[];for(const Ft of Ae){const ft=Ft.getCreatedAt().getActorID(),an=_!=null&&_.size?_.has(ft)?_.get(ft):to:Oo;if(Ft.canStyle(T,an)){const In=Qe.get(ft),Dn=Ft.getCreatedAt();(!In||Dn.after(In))&&Qe.set(ft,Dn),Et.push(Ft)}}for(const Ft of Et){if(Ft.isRemoved())continue;const[ft,an]=this.rgaTreeSplit.findIndexesFromRange(Ft.createPosRange());oe.push({type:zo.Style,actor:T.getActorID(),from:ft,to:an,value:{attributes:si(g)}});for(const[In,Dn]of Object.entries(g))Ft.getValue().setAttr(In,Dn,T)}return[Qe,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{id: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:si(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 li(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 li||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 Eo 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 Eo(f,g,T,_,H,K)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof li||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 aa=2,sa="root",Ti="text";function Ho(C,f){let g=0;const T=C.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===Ti}get paddedSize(){return this.size+(this.isText?0:aa)}isAncestorOf(f){return Rc(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 Rc(C,f){if(C===f)return!1;for(;f.parent;){if(f.parent===C)return!0;f=f.parent}return!1}var Yn;(function(C){C.Start="Start",C.End="End",C.Text="Text"})(Yn||(Yn={}));function Na(C,f,g,T){if(f>g)throw new Error(`from is greater than to: ${f} > ${g}`);if(f>C.size)throw new Error(`from is out of range: ${f} > ${C.size}`);if(g>C.size)throw new Error(`to is out of range: ${g} > ${C.size}`);if(f===g)return;let _=0;for(const H of C.children){if(f-H.paddedSize<_&&_H.size;(H.isText||Ae)&&T([H,H.isText?Yn.Text:Yn.Start],Qe),Na(H,Math.max(0,K),Math.min(oe,H.size),T),Qe&&T([H,Yn.End],Qe)}_+=H.paddedSize}}function wi(C,f,g=0){for(const T of C.children)wi(T,f,g+1);f(C,g)}function Da(C,f,g=0){for(const T of C._children)Da(T,f,g+1);f(C,g)}function la(C,f,g=!0){if(f>C.size)throw new Error(`index is out of range: ${f} > ${C.size}`);if(C.isText)return{node:C,offset:f};let T=0,_=0;for(const H of C.children){if(g&&H.isText&&H.size>=f-_)return la(H,f-_,g);if(f===_)return{node:C,offset:T};if(!g&&H.paddedSize===f-_)return{node:C,offset:T+1};if(H.paddedSize>f-_)return la(H,f-_-1,g);_+=H.paddedSize,T+=1}return{node:C,offset:T}}function Pa(C){return C.isText||C.children.length===0?C:Pa(C.children[0])}function F(C,f){if(C.sizeC===f?0:C0)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(C){C.Content="content",C.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 yt(Ze.of(this.id.getCreatedAt(),f),this.type,void 0,void 0,this.removedAt)}cloneElement(f){return new yt(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(C){var f;if(C.isText){const g=C;return{type:g.type,value:g.value}}return{type:C.type,children:C.children.map(Pt),attributes:C.attrs?si((f=C.attrs)===null||f===void 0?void 0:f.toObject()):void 0}}function bn(C){var f;return C.isText?C.value:`<${C.type}${((f=C.attrs)===null||f===void 0?void 0:f.toXML())||""}>${C.children.map(g=>bn(g)).join("")}`}function Or(C){if(C.isText){const f=C;return{type:f.type,value:f.value,size:f.size,isRemoved:f.isRemoved}}return{type:C.type,children:C.children.map(Or),size:C.size,isRemoved:C.isRemoved}}class Sn extends Bo{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 Ae=oe.allChildren,Qe=K?0:Ae.indexOf(H)+1;for(let Et=Qe;Et{if(!Qe.isRemoved&&!Qe.isText&&g){Qe.attrs||(Qe.attrs=new Ia);for(const[Et,Ft]of Object.entries(g))Qe.attrs.set(Et,Ft,T)}}),Ae}edit(f,g,T,_,H,K){const[oe,Ae]=this.findNodesAndSplitText(f[0],_),[Qe,Et]=this.findNodesAndSplitText(f[1],_),Ft=this.toIndex(oe,Ae),ft=this.toPath(oe,Ae),an=[],In=[],Dn=[],ar=new Map;this.traverseInPosRange(oe,Ae,Qe,Et,([$n,Jr],Qr)=>{if(Jr===Yn.Start&&!Qr)for(const Vp of $n.children)Dn.push(Vp);const yi=$n.getCreatedAt().getActorID(),sf=K?K.has(yi)?K.get(yi):to:Oo;if($n.canDelete(_,sf)||an.includes($n.parent)){const Vp=ar.get(yi),zg=$n.getCreatedAt();(!Vp||zg.after(Vp))&&ar.set(yi,zg),(Jr===Yn.Text||Jr===Yn.Start)&&an.push($n),In.push([$n,Jr])}});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,Jr=oe,Qr=Ae;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{id:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}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,Et),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 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 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:Ae,value:Qe,splitLevel:Et,fromPath:Ft,toPath:ft})=>({type:"tree-edit",path:f.createPath(this.getParentCreatedAt()),from:oe,to:Ae,value:Qe,splitLevel:Et,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 La{constructor(f,g,T){this.clientSeq=f,this.lamport=g,this.actor=T}static of(f,g,T){return new La(f,g,T)}next(){return new La(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(f){return f.greaterThan(this.lamport)?new La(this.clientSeq,f,this.actor):new La(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(f){return yr.of(this.lamport,f,this.actor)}setActor(f){return new La(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 Ix=new La(0,Wr.fromInt(0,!0),SO);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:Ae,reverseOp:Qe}=oe;_.push(...Ae),Qe&&H.unshift(Qe)}return this.presenceChange&&(this.presenceChange.type===Ra.Put?g.set(this.id.getActorID(),ia(this.presenceChange.presence)):g.delete(this.id.getActorID())),{opInfos:_,reverseOps:H}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class TO{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 TO(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 $p{constructor(f,g){this.serverSeq=f,this.clientSeq=g}static of(f,g){return new $p(f,g)}increaseClientSeq(f){return f===0?this:new $p(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 $p.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 jre=new $p(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 zre=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 Ic extends Uo{constructor(f,g,T){super(g),this.id=f,this.removedAt=T}static create(f,g){return new Ic(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 Qe of _){const Et=Qe.getCreatedAt().getActorID();(!K.has(Et)||Qe.getID().getCreatedAt().after(K.get(Et)))&&K.set(Et,Qe.getID().getCreatedAt()),oe.set(Qe.getID().toIDString(),Qe),Qe.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 Qe of f){const Et=Qe.getCreatedAt().getActorID(),Ft=_?T.has(Et)?T.get(Et):to:Oo;Qe.canDelete(g,Ft)?H.push(Qe):K.push(Qe)}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 oF=C=>C<0?Math.ceil(C):Math.floor(C);var ui;(function(C){C[C.IntegerCnt=0]="IntegerCnt",C[C.LongCnt=1]="LongCnt"})(ui||(ui={}));class Ma extends no{constructor(f,g,T){switch(super(T),this.valueType=f,f){case ui.IntegerCnt:typeof g=="number"?g>Math.pow(2,31)-1||g<-Math.pow(2,31)?this.value=Wr.fromNumber(g).toInt():this.value=oF(g):this.value=g.toInt();break;case ui.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 Ma(f,g,T)}static valueFromBytes(f,g){switch(f){case ui.IntegerCnt:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case ui.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{id:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const f=Ma.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?ui.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?ui.LongCnt:ui.IntegerCnt;default:return}}static isSupport(f){return!!Ma.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===ui.IntegerCnt||f===ui.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case ui.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case ui.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===ui.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+oF(f.getValue())).toInt(),this}}class Bp extends $r{constructor(f,g,T){super(f,T),this.value=g}static create(f,g,T){return new Bp(f,g,T)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof Ma||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 Bp.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 Up 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 Up(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:Qe})=>({type:"tree-style",from:K,to:oe,value:Ae,fromPath:Qe,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 Vre(C){const f=new fe.Presence,g=f.data;for(const[T,_]of Object.entries(C))g[T]=JSON.stringify(_);return f}function Hre(C){if(C.type===Ra.Put)return new fe.PresenceChange({type:fe.PresenceChange_ChangeType.PUT,presence:Vre(C.presence)});if(C.type===Ra.Clear)return new fe.PresenceChange({type:fe.PresenceChange_ChangeType.CLEAR});throw new An(En.Unimplemented,"unimplemented type")}function Wre(C){return new fe.Checkpoint({serverSeq:C.getServerSeqAsString(),clientSeq:C.getClientSeq()})}function Qre(C){return new fe.ChangeID({clientSeq:C.getClientSeq(),lamport:C.getLamportAsString(),actorId:Fx(C.getActorID())})}function ln(C){if(C)return new fe.TimeTicket({lamport:C.getLamportAsString(),delimiter:C.getDelimiter(),actorId:Fx(C.getActorID())})}function aF(C){switch(C){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: ${C}`)}}function sF(C){switch(C){case ui.IntegerCnt:return fe.ValueType.INTEGER_CNT;case ui.LongCnt:return fe.ValueType.LONG_CNT;default:throw new An(En.Unsupported,`unsupported type: ${C}`)}}function Nx(C){if(C instanceof mr)return new fe.JSONElementSimple({type:fe.ValueType.JSON_OBJECT,createdAt:ln(C.getCreatedAt()),value:OF(C)});if(C instanceof jo)return new fe.JSONElementSimple({type:fe.ValueType.JSON_ARRAY,createdAt:ln(C.getCreatedAt()),value:Eie(C)});if(C instanceof li)return new fe.JSONElementSimple({type:fe.ValueType.TEXT,createdAt:ln(C.getCreatedAt())});if(C instanceof Cr)return new fe.JSONElementSimple({type:aF(C.getType()),createdAt:ln(C.getCreatedAt()),value:C.toBytes()});if(C instanceof Ma)return new fe.JSONElementSimple({type:sF(C.getType()),createdAt:ln(C.getCreatedAt()),value:C.toBytes()});if(C instanceof Sn)return new fe.JSONElementSimple({type:fe.ValueType.TREE,createdAt:ln(C.getCreatedAt()),value:Tie(C)});throw new An(En.Unimplemented,"unimplemented element")}function Yre(C){return new fe.TextNodeID({createdAt:ln(C.getCreatedAt()),offset:C.getOffset()})}function wO(C){return new fe.TextNodePos({createdAt:ln(C.getID().getCreatedAt()),offset:C.getID().getOffset(),relativeOffset:C.getRelativeOffset()})}function kO(C){return new fe.TreePos({parentId:Fg(C.getParentID()),leftSiblingId:Fg(C.getLeftSiblingID())})}function Fg(C){return new fe.TreeNodeID({createdAt:ln(C.getCreatedAt()),offset:C.getOffset()})}function Gre(C){const f=new fe.Operation;if(C instanceof ju){const g=C,T=new fe.Operation_Set;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.key=g.getKey(),T.value=Nx(g.getValue()),T.executedAt=ln(g.getExecutedAt()),f.body.case="set",f.body.value=T}else if(C instanceof nf){const g=C,T=new fe.Operation_Add;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.prevCreatedAt=ln(g.getPrevCreatedAt()),T.value=Nx(g.getValue()),T.executedAt=ln(g.getExecutedAt()),f.body.case="add",f.body.value=T}else if(C instanceof Hl){const g=C,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(C instanceof Vl){const g=C,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(C instanceof Wl){const g=C,T=new fe.Operation_Edit;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=wO(g.getFromPos()),T.to=wO(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(C instanceof Eo){const g=C,T=new fe.Operation_Style;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=wO(g.getFromPos()),T.to=wO(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(C instanceof Bp){const g=C,T=new fe.Operation_Increase;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.value=Nx(g.getValue()),T.executedAt=ln(g.getExecutedAt()),f.body.case="increase",f.body.value=T}else if(C instanceof ji){const g=C,T=new fe.Operation_TreeEdit,_=T.createdAtMapByActor;for(const[H,K]of g.getMaxCreatedAtMapByActor())_[H]=ln(K);T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=kO(g.getFromPos()),T.to=kO(g.getToPos()),T.contents=tie(g.getContents()),T.splitLevel=g.getSplitLevel(),T.executedAt=ln(g.getExecutedAt()),f.body.case="treeEdit",f.body.value=T}else if(C instanceof Up){const g=C,T=new fe.Operation_TreeStyle;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=kO(g.getFromPos()),T.to=kO(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 qre(C){const f=[];for(const g of C)f.push(Gre(g));return f}function Zre(C){const f=new fe.Change({id:Qre(C.getID()),message:C.getMessage()});return C.hasOperations()&&(f.operations=qre(C.getOperations())),C.hasPresenceChange()&&(f.presenceChange=Hre(C.getPresenceChange())),f}function Xre(C){const f=[];for(const g of C)f.push(Zre(g));return f}function Kre(C){const f=[];for(const g of C)f.push(new fe.RHTNode({key:g.getStrKey(),element:Dx(g.getValue())}));return f}function Jre(C){const f=[];for(const g of C)f.push(new fe.RGANode({element:Dx(g.getValue())}));return f}function eie(C){const f=[];for(const g of C){const T=new fe.TextNode;T.id=Yre(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 tie(C){const f=[];if(!C||!C.length)return f;for(const g of C)f.push(new fe.TreeNodes({content:lF(g)}));return f}function lF(C){if(!C)return[];const f=[];return wi(C,(g,T)=>{const _=new fe.TreeNode({id:Fg(g.id),type:g.type,removedAt:ln(g.removedAt),depth:T});if(g.isText&&(_.value=g.value),g.insPrevID&&(_.insPrevId=Fg(g.insPrevID)),g.insNextID&&(_.insNextId=Fg(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 nie(C){const f=new fe.JSONElement;return f.body.case="jsonObject",f.body.value=new fe.JSONElement_JSONObject({nodes:Kre(C.getRHT()),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function uF(C){const f=new fe.JSONElement;return f.body.case="jsonArray",f.body.value=new fe.JSONElement_JSONArray({nodes:Jre(C.getElements()),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function rie(C){const f=new fe.JSONElement;return f.body.case="primitive",f.body.value=new fe.JSONElement_Primitive({type:aF(C.getType()),value:C.toBytes(),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function iie(C){const f=new fe.JSONElement;return f.body.case="text",f.body.value=new fe.JSONElement_Text({nodes:eie(C.getRGATreeSplit()),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function oie(C){const f=new fe.JSONElement;return f.body.case="counter",f.body.value=new fe.JSONElement_Counter({type:sF(C.getType()),value:C.toBytes(),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function cF(C){const f=new fe.JSONElement;return f.body.case="tree",f.body.value=new fe.JSONElement_Tree({nodes:lF(C.getRoot()),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function Dx(C){if(C instanceof mr)return nie(C);if(C instanceof jo)return uF(C);if(C instanceof Cr)return rie(C);if(C instanceof li)return iie(C);if(C instanceof Ma)return oie(C);if(C instanceof Sn)return cF(C);throw new An(En.Unimplemented,"unimplemented element")}function aie(C){return new fe.ChangePack({documentKey:C.getDocumentKey(),checkpoint:Wre(C.getCheckpoint()),isRemoved:C.getIsRemoved(),changes:Xre(C.getChanges()),snapshot:C.getSnapshot(),minSyncedTicket:ln(C.getMinSyncedTicket())})}function sie(C){return La.of(C.clientSeq,Wr.fromString(C.lamport,!0),$x(C.actorId))}function pn(C){if(C)return yr.of(Wr.fromString(C.lamport,!0),C.delimiter,$x(C.actorId))}function Px(C){const f={};return Object.entries(C.data).forEach(([g,T])=>{f[g]=JSON.parse(T)}),f}function lie(C){const f=C.type;if(f===fe.PresenceChange_ChangeType.PUT){const g=Px(C.presence);return{type:Ra.Put,presence:g}}if(f===fe.PresenceChange_ChangeType.CLEAR)return{type:Ra.Clear};throw new An(En.Unsupported,`unsupported type: ${f}`)}function uie(C){const f=new Map;return Object.entries(C).forEach(([g,T])=>{f.set(g,Px(T))}),f}function dF(C){switch(C){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: ${C}`)}function xO(C){switch(C){case fe.ValueType.INTEGER_CNT:return ui.IntegerCnt;case fe.ValueType.LONG_CNT:return ui.LongCnt}throw new An(En.Unimplemented,`unimplemented value type: ${C}`)}function Lx(C){switch(C.type){case fe.ValueType.JSON_OBJECT:return C.value?yF(C.value):mr.create(pn(C.createdAt));case fe.ValueType.JSON_ARRAY:return C.value?vie(C.value):jo.create(pn(C.createdAt));case fe.ValueType.TEXT:return li.create(Fp.create(),pn(C.createdAt));case fe.ValueType.TREE:return Sie(C.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(dF(C.type),C.value),pn(C.createdAt));case fe.ValueType.INTEGER_CNT:case fe.ValueType.LONG_CNT:return Ma.create(xO(C.type),Ma.valueFromBytes(xO(C.type),C.value),pn(C.createdAt))}}function CO(C){return sl.of(Ql.of(pn(C.createdAt),C.offset),C.relativeOffset)}function fF(C){return Ql.of(pn(C.createdAt),C.offset)}function cie(C){const f=Vo.create(C.value);Object.entries(C.attributes).forEach(([T,_])=>{f.setAttr(T,_.value,pn(_.updatedAt))});const g=Ic.create(fF(C.id),f);return g.remove(pn(C.removedAt)),g}function AO(C){return ct.of(Bg(C.parentId),Bg(C.leftSiblingId))}function Bg(C){return Ze.of(pn(C.createdAt),C.offset)}function die(C){if(!C.length)return;const f=[];return C.forEach(g=>{const T=pF(g.content);f.push(T)}),f}function pF(C){if(C.length===0)return;const f=[];for(const T of C)f.push(fie(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 C.insPrevId&&(g.insPrevID=Bg(C.insPrevId)),C.insNextId&&(g.insNextID=Bg(C.insNextId)),g.removedAt=pn(C.removedAt),g}function pie(C){const f=[];for(const g of C){let T;if(g.body.case==="set"){const _=g.body.value;T=ju.create(_.key,Lx(_.value),pn(_.parentCreatedAt),pn(_.executedAt))}else if(g.body.case==="add"){const _=g.body.value;T=nf.create(pn(_.parentCreatedAt),pn(_.prevCreatedAt),Lx(_.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,Ae])=>{H.set(oe,pn(Ae))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Wl.create(pn(_.parentCreatedAt),CO(_.from),CO(_.to),H,_.content,K,pn(_.executedAt))}else if(g.body.case==="style"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,pn(Ae))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Eo.create(pn(_.parentCreatedAt),CO(_.from),CO(_.to),H,K,pn(_.executedAt))}else{if(g.body.case==="select")continue;if(g.body.case==="increase"){const _=g.body.value;T=Bp.create(pn(_.parentCreatedAt),Lx(_.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),AO(_.from),AO(_.to),die(_.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=Up.create(pn(_.parentCreatedAt),AO(_.from),AO(_.to),H,pn(_.executedAt))}else throw new An(En.Unimplemented,"unimplemented operation")}f.push(T)}return f}function hF(C){const f=[];for(const g of C)f.push(rf.create({id:sie(g.id),operations:pie(g.operations),presenceChange:g.presenceChange?lie(g.presenceChange):void 0,message:g.message}));return f}function hie(C){return $p.of(Wr.fromString(C.serverSeq,!0),C.clientSeq)}function mie(C){return TO.create(C.documentKey,hie(C.checkpoint),C.isRemoved,hF(C.changes),C.snapshot,pn(C.minSyncedTicket))}function mF(C){const f=new Bi;for(const T of C.nodes){const _=Mx(T.element);f.set(T.key,_,_.getPositionedAt())}const g=new mr(pn(C.createdAt),f);return g.setMovedAt(pn(C.movedAt)),g.setRemovedAt(pn(C.removedAt)),g}function gF(C){const f=new tf;for(const T of C.nodes)f.insert(Mx(T.element));const g=new jo(pn(C.createdAt),f);return g.setMovedAt(pn(C.movedAt)),g.setRemovedAt(pn(C.removedAt)),g}function gie(C){const f=Cr.of(Cr.valueFromBytes(dF(C.type),C.value),pn(C.createdAt));return f.setMovedAt(pn(C.movedAt)),f.setRemovedAt(pn(C.removedAt)),f}function bie(C){const f=new Fp;let g=f.getHead();for(const _ of C.nodes){const H=f.insertAfter(g,cie(_));_.insPrevId&&H.setInsPrev(f.findNode(fF(_.insPrevId))),g=H}const T=new li(f,pn(C.createdAt));return T.setMovedAt(pn(C.movedAt)),T.setRemovedAt(pn(C.removedAt)),T}function yie(C){const f=Ma.create(xO(C.type),Ma.valueFromBytes(xO(C.type),C.value),pn(C.createdAt));return f.setMovedAt(pn(C.movedAt)),f.setRemovedAt(pn(C.removedAt)),f}function bF(C){const f=pF(C.nodes);return Sn.create(f,pn(C.createdAt))}function Mx(C){if(C.body.case==="jsonObject")return mF(C.body.value);if(C.body.case==="jsonArray")return gF(C.body.value);if(C.body.case==="primitive")return gie(C.body.value);if(C.body.case==="text")return bie(C.body.value);if(C.body.case==="counter")return yie(C.body.value);if(C.body.case==="tree")return bF(C.body.value);throw new An(En.Unimplemented,"unimplemented element")}function Oie(C){if(!C)return{root:mr.create(to),presences:new Map};const f=fe.Snapshot.fromBinary(C);return{root:Mx(f.root),presences:uie(f.presences)}}function yF(C){if(!C)throw new Error("bytes is empty");const f=fe.JSONElement.fromBinary(C);return mF(f.body.value)}function OF(C){return Dx(C).toBinary()}function vie(C){if(!C)throw new Error("bytes is empty");const f=fe.JSONElement.fromBinary(C);return gF(f.body.value)}function Eie(C){return uF(C).toBinary()}function Sie(C){if(!C)throw new Error("bytes is empty");const f=fe.JSONElement.fromBinary(C);return bF(f.body.value)}function Tie(C){return cF(C).toBinary()}function wie(C){return C?Array.from(C).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function $x(C){return wie(C)}function kie(C){return new Uint8Array(C.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function Fx(C){return kie(C)}const Yl={fromPresence:Px,toChangePack:aie,fromChangePack:mie,fromChanges:hF,objectToBytes:OF,bytesToObject:yF,bytesToSnapshot:Oie,toHexString:$x,toUint8Array:Fx};class xie{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 jp{constructor(f,g,T,_){this.id=f,this.delimiter=Pp,this.root=g,this.operations=[],this.previousPresence=ia(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 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 Ug{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 Ug(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 Ug(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 vF(C,f){const g=new jg(C);return new Proxy(f,g.getHandlers())}class jg{constructor(f){this.context=f,this.handlers={set:(g,T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]=${JSON.stringify(_)}`),jg.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}]`),jg.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=NO(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=NO(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 Cie(C,f){const g=new Kr(C,f);return new Proxy(f,g.getHandlers())}function Aie(C){return typeof C=="string"||C instanceof String?!isNaN(C):!1}function _ie(C){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(C)}class Kr{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 Nc(f,oe)}:_==="getElementByIndex"?K=>{const oe=T.get(K);return Nc(f,oe)}:_==="getLast"?()=>Nc(f,T.getLast()):_==="deleteByID"?K=>{const oe=Kr.deleteInternalByID(f,T,K);return Nc(f,oe)}:_==="insertAfter"?(K,oe)=>{const Ae=Kr.insertAfterInternal(f,T,K,oe);return Nc(f,Ae)}:_==="insertBefore"?(K,oe)=>{const Ae=Kr.insertBeforeInternal(f,T,K,oe);return Nc(f,Ae)}:_==="moveBefore"?(K,oe)=>{Kr.moveBeforeInternal(f,T,K,oe)}:_==="moveAfter"?(K,oe)=>{Kr.moveAfterInternal(f,T,K,oe)}:_==="moveFront"?K=>{Kr.moveFrontInternal(f,T,K)}:_==="moveLast"?K=>{Kr.moveLastInternal(f,T,K)}:Aie(_)?of(f,T.get(Number(_))):_==="push"?K=>Kr.pushInternal(f,T,K):_==="splice"?(K,oe,...Ae)=>Kr.splice(f,T,K,oe,...Ae):_==="length"?T.length:typeof _=="symbol"&&_===Symbol.iterator?Kr.iteratorInternal.bind(this,f,T):_==="includes"?(K,oe)=>Kr.includes(f,T,K,oe):_==="indexOf"?(K,oe)=>Kr.indexOf(f,T,K,oe):_==="lastIndexOf"?(K,oe)=>Kr.lastIndexOf(f,T,K,oe):_==="toTestString"?()=>Kr.toTestString(T):typeof _=="string"&&_ie(_)?(...K)=>{const oe=Array.from(T).map(Ae=>of(f,Ae));return Array.prototype[_].apply(oe,K)}:Reflect.get(T,_,H),deleteProperty:(T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`array[${_}]`),Kr.deleteInternalByIndex(f,T,Number.parseInt(_)),!0)}}static*iteratorInternal(f,g){for(const T of g)yield Nc(f,T)}static buildArrayElements(f,g){const T=[];for(const _ of g){const H=f.issueTimeTicket(),K=NO(f,_,H);T.push(K)}return T}static pushInternal(f,g,T){return Kr.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=NO(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 Kr.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),Ae=_===void 0?K:_<0?oe:Math.min(oe+_,K),Qe=[];for(let Et=oe;Et=K)return!1;if(Cr.isSupport(T))return Array.from(g).map(Qe=>of(f,Qe)).includes(T,oe);for(let Ae=oe;Ae=K)return-1;if(Cr.isSupport(T))return Array.from(g).map(Qe=>of(f,Qe)).indexOf(T,oe);for(let Ae=oe;Ae=K?K-1:_<0?_+K:_;if(oe<0)return-1;if(Cr.isSupport(T))return Array.from(g).map(Qe=>of(f,Qe)).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 _O{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(),[Ae,,Qe]=this.text.edit(H,T,oe,K);return this.context.push(new Wl(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(Qe)}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 Eo(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 RO{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(Bp.create(this.counter.getCreatedAt(),T,g)),this}}function Bx(C,f,g){const{type:T}=C,_=g.issueTimeTicket();if(T===Ti){EF(C);const{value:H}=C,K=yt.create(Ze.of(_,0),T,H);f.append(K)}else{const{children:H=[]}=C;let{attributes:K}=C,oe;if(typeof K=="object"&&!Np(K)){K=eo(K),oe=new Ia;for(const[Qe,Et]of Object.entries(K))oe.set(Qe,Et,_)}const Ae=yt.create(Ze.of(_,0),T,void 0,oe);f.append(Ae);for(const Qe of H)Bx(Qe,Ae,g)}}function Rie(C,f){const{type:g}=f,T=C.issueTimeTicket();let _;if(f.type===Ti){const{value:H}=f;_=yt.create(Ze.of(T,0),g,H)}else if(f){const{children:H=[]}=f;let{attributes:K}=f,oe;if(typeof K=="object"&&!Np(K)){K=eo(K),oe=new Ia;for(const[Ae,Qe]of Object.entries(K))oe.set(Ae,Qe,T)}_=yt.create(Ze.of(C.issueTimeTicket(),0),g,void 0,oe);for(const Ae of H)Bx(Ae,_,C)}return _}function EF(C){if(!C.value.length)throw new Error("text node cannot have empty value");return!0}function SF(C){if(!C.length)return!0;if(C[0].type===Ti)for(const g of C){const{type:T}=g;if(T!==Ti)throw new Error("element node and text node cannot be passed together");EF(g)}else for(const g of C){const{type:T}=g;if(T===Ti)throw new Error("element node and text node cannot be passed together")}return!0}class IO{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 yt.create(Ze.of(f.issueTimeTicket(),0),sa);const g=yt.create(Ze.of(f.issueTimeTicket(),0),this.initialRoot.type);for(const T of this.initialRoot.children)Bx(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(Up.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(Up.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]&&(SF(T),T[0].type!==Ti))for(const Qe of T){const{children:Et=[]}=Qe;SF(Et)}const K=this.context.getLastTimeTicket();let oe=new Array;if(((H=T[0])===null||H===void 0?void 0:H.type)===Ti){let Qe="";for(const Et of T){const{value:Ft}=Et;Qe+=Ft}oe.push(yt.create(Ze.of(this.context.issueTimeTicket(),0),Ti,Qe))}else oe=T.map(Qe=>Qe&&Rie(this.context,Qe)).filter(Qe=>Qe);const[,Ae]=this.tree.edit([f,g],oe.length?oe.map(Qe=>Qe==null?void 0:Qe.deepcopy()):void 0,_,K,()=>this.context.issueTimeTicket());return this.context.push(ji.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()}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 TF(C,f){return vF(C,f)}function Nc(C,f){if(f){if(f instanceof Cr)return f;if(f instanceof mr)return vF(C,f);if(f instanceof jo)return Cie(C,f);if(f instanceof li)return new _O(C,f);if(f instanceof Ma){const g=new RO(ui.IntegerCnt,0);return g.initialize(C,f),g}else if(f instanceof Sn){const g=new IO;return g.initialize(C,f),g}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function of(C,f){const g=Nc(C,f);return g instanceof Cr?g.getValue():g}function NO(C,f,g){let T;if(Cr.isSupport(f))T=Cr.of(f,g);else if(Array.isArray(f))T=jo.create(g,Kr.buildArrayElements(C,f));else if(typeof f=="object")f instanceof _O?(T=li.create(Fp.create(),g),f.initialize(C,T)):f instanceof RO?(T=Ma.create(f.getValueType(),f.getValue(),g),f.initialize(C,T)):f instanceof IO?(T=Sn.create(f.buildRoot(C),g),f.initialize(C,T)):T=mr.create(g,jg.buildObjectMembers(C,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return T}const wF=50;class Iie{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=wF&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=wF&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}var Ss;(function(C){C.Detached="detached",C.Attached="attached",C.Removed="removed"})(Ss||(Ss={}));var Ln;(function(C){C.Snapshot="snapshot",C.LocalChange="local-change",C.RemoteChange="remote-change",C.Initialized="initialized",C.Watched="watched",C.Unwatched="unwatched",C.PresenceChanged="presence-changed"})(Ln||(Ln={}));class kF{constructor(f,g){this.opts=g||{},this.key=f,this.status=Ss.Detached,this.root=Ug.create(),this.changeID=Ix,this.checkpoint=jre,this.localChanges=[],this.eventStream=h(T=>{this.eventStreamObserver=T}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new Iie,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()===Ss.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=TF(_,this.clone.root.getObject());this.presences.has(T)||this.clone.presences.set(T,{}),this.isUpdating=!0,f(H,new Dp(_,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),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:Qe,actor:Et}=oe.value,Ft=[];for(const ft of Qe)this.isSameElementOrChildOf(ft.path,H)&&Ft.push(ft);Ft.length&&K({type:oe.type,value:{message:Ae,operations:Ft,actor:Et}})},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(Ss.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:ia(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),g=this.checkpoint.increaseClientSeq(f.length);return TO.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 TF(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()}applySnapshot(f,g){const{root:T,presences:_}=Yl.bytesToSnapshot(g);this.root=new Ug(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 Ra.Put:T={type:this.presences.has(_)?Ln.PresenceChanged:Ln.Watched,value:{clientID:_,presence:K.presence}};break;case Ra.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!==Ss.Attached)return{};const f=this.presences.get(this.changeID.getActorID());return ia(f)}getPresence(f){if(!this.onlineClients.has(f))return;const g=this.presences.get(f);return g?ia(g):void 0}getPresenceForTest(f){const g=this.presences.get(f);return g?ia(g):void 0}getPresences(){const f=[];for(const g of this.onlineClients)this.presences.has(g)&&f.push({clientID:g,presence:ia(this.presences.get(g))});return f}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 $r)){new Dp(g,ia(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const Qe=g.issueTimeTicket();Ae.setExecutedAt(Qe),g.push(Ae)}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=jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof $r)){new Dp(g,ia(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const Qe=g.issueTimeTicket();Ae.setExecutedAt(Qe),g.push(Ae)}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 Nie(C,f){return g=>async T=>(C&&T.header.set("x-api-key",C),f&&T.header.set("authorization",f),await g(T))}const xF=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.13-rc"}');function Die(){return C=>async f=>(f.header.set("x-yorkie-user-agent",xF.u2+"/"+xF.i8),await C(f))}var zu;(function(C){C.PushPull="pushpull",C.PushOnly="pushonly"})(zu||(zu={}));var Dc;(function(C){C.Deactivated="deactivated",C.Activated="activated"})(Dc||(Dc={}));var af;(function(C){C.Connected="connected",C.Disconnected="disconnected"})(af||(af={}));var zp;(function(C){C.Synced="synced",C.SyncFailed="sync-failed"})(zp||(zp={}));var $a;(function(C){C.StatusChanged="status-changed",C.DocumentChanged="document-changed",C.StreamConnectionStatusChanged="stream-connection-status-changed",C.DocumentSynced="document-synced"})($a||($a={}));const DO={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class CF{constructor(f,g){g=g||DO,this.key=g.key?g.key:c(),this.status=Dc.Deactivated,this.attachmentMap=new Map,this.apiKey=g.apiKey||"",this.syncLoopDuration=g.syncLoopDuration||DO.syncLoopDuration,this.reconnectStreamDelay=g.reconnectStreamDelay||DO.reconnectStreamDelay,this.retrySyncLoopDelay=g.retrySyncLoopDelay||DO.retrySyncLoopDelay,this.rpcClient=z(Ce.V,ve({baseUrl:f,interceptors:[Nie(g.apiKey,g.token),Die()]})),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=Dc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:$a.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===Dc.Deactivated)return Promise.resolve();for(const[f]of this.attachmentMap)this.detachInternal(f);return this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status=Dc.Deactivated,this.eventStreamObserver.next({type:$a.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()!==Ss.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({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()===Ss.Removed||(f.setStatus(Ss.Attached),this.attachmentMap.set(f.getKey(),new xie(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({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()!==Ss.Removed&&f.setStatus(Ss.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:$a.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:$a.DocumentSynced,value:zp.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({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===Dc.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:$a.DocumentSynced,value:zp.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({clientId:this.id,documentId:g.docID},{headers:{"x-shard-key":`${this.apiKey}/${f}`},signal:_.signal});return this.eventStreamObserver.next({type:$a.StreamConnectionStatusChanged,value:af.Connected}),u.info(`[WD] c:"${this.getKey()}" watches d:"${f}"`),new Promise((K,oe)=>{(async()=>{try{for await(const Qe of H)this.handleWatchDocumentsResponse(g,Qe),Qe.body.case==="initialization"&&K([H,_])}catch(Qe){this.eventStreamObserver.next({type:$a.StreamConnectionStatusChanged,value:af.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),T(),oe(Qe)}})()})})}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:$a.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:$a.StreamConnectionStatusChanged,value:af.Disconnected}),this.attachmentMap.delete(f))}syncInternal(f,g){const{doc:T,docID:_}=f,H=T.createChangePack();return this.rpcClient.pushPullChanges({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:$a.DocumentSynced,value:zp.Synced}),T.getStatus()===Ss.Removed&&this.detachInternal(T.getKey());const Ae=T.getKey(),Qe=oe.getChangeSize();return u.info(`[PP] c:"${this.getKey()}" sync d:"${Ae}", push:${H.getChangeSize()} pull:${Qe} cp:${oe.getCheckpoint().toTestString()}`),T}).catch(K=>{throw u.error(`[PP] c:"${this.getKey()}" err :`,K),K})}}const Pie={Client:CF,Document:kF,Primitive:Cr,Text:_O,Counter:RO,Tree:IO,IntType:ui.IntegerCnt,LongType:ui.LongCnt}})(),a})())})(EK);var LR=EK.exports;class nPe{constructor(t,n){Wo(this,"doc");Wo(this,"client");this.doc=t,this.client=n}}const BP=Gt.define({combine(e){return e[e.length-1]}}),L9=Ll.define();class rPe{constructor(t){Wo(this,"view");Wo(this,"conf");Wo(this,"_doc");Wo(this,"_observer");Wo(this,"_unsubscribe");this.view=t,this.conf=t.state.facet(BP),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:[L9.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(L9)===this.conf||this._doc.update((n,r)=>{t.changes.iterChanges((i,o,a,s,l)=>{n.content||(n.content=new LR.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 iPe=Xr.fromClass(rPe);class oPe{constructor(t,n){this.left=t,this.right=n}}const Bv=(e,t)=>new oPe(e,t),aPe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Pu=typeof document<"u"?document:{},sPe=e=>Pu.createElement(e),lPe=()=>Pu.createDocumentFragment(),uPe=e=>Pu.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const cPe=(e,t)=>(aPe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),dPe=e=>{const t=lPe();for(let n=0;n(SK(e,dPe(t)),e),vA=(e,t=[],n=[])=>fPe(cPe(sPe(e),t),n),Uv=uPe,SK=(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 pPe=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"}}),hPe=Ll.define();class mPe extends Nu{constructor(n,r){super();Wo(this,"color");Wo(this,"name");this.color=n,this.name=r}toDOM(){return vA("span",[Bv("class","cm-ySelectionCaret"),Bv("style",`background-color: ${this.color}; border-color: ${this.color}`)],[Uv("⁠"),vA("div",[Bv("class","cm-ySelectionCaretDot")]),Uv("⁠"),vA("div",[Bv("class","cm-ySelectionInfo")],[Uv(this.name)]),Uv("⁠")])}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 gPe{constructor(t){Wo(this,"conf");Wo(this,"decorations");Wo(this,"unsubscribe");this.conf=t.state.facet(BP),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 mPe(a,s)})})}),this.decorations=sn.set(r,!0),r.length>0&&t.dispatch({annotations:[hPe.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 bPe=Xr.fromClass(gPe,{decorations:e=>e.decorations});function yPe(e,t){const n=new nPe(e,t),r=[BP.of(n),iPe];return t&&r.push(pPe,bPe),r}function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OPe=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},vPe=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},EPe=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?OPe(r):vPe(r))),t.appendChild(n),t};class SPe{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){jv(this,"view",void 0),jv(this,"element",void 0),jv(this,"config",void 0),jv(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=EPe(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const TPe=e=>Xr.define(t=>new SPe(t,e)),wPe=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}}),kPe=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},xPe=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},CPe=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},APe=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},_Pe=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},RPe=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},IPe=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},vg=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},NPe=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)]},UP=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=NPe(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 A="- ";return e==="ol"?(A=`${i}. `,i++):e==="todo"&&(A="- [ ] "),k+A}),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},DPe=vg(1),PPe=vg(2),LPe=vg(3),MPe=vg(4),$Pe=vg(5),FPe=vg(6),BPe=UP("ul"),UPe=UP("ol"),jPe=UP("todo"),zPe={label:"Bold",icon:'',command:kPe},VPe={label:"Italic",icon:'',command:xPe},HPe={label:"Strike",icon:'',command:CPe},WPe={label:"Underline",icon:'',command:APe},QPe={label:"H1",icon:'',command:DPe},YPe={label:"H2",icon:'',command:PPe},GPe={label:"H3",icon:'',command:LPe},qPe={label:"H4",icon:'',command:MPe},ZPe={label:"H5",icon:'',command:$Pe},XPe={label:"H6",icon:'',command:FPe},KPe={label:"Block Quote",icon:'',command:_Pe},JPe={label:"Unordered List",icon:'',command:BPe},e3e={label:"Ordered List",icon:'',command:UPe},t3e={label:"Todo List",icon:'',command:jPe},n3e={label:"Link",icon:'',command:RPe},r3e={label:"Image",icon:'',command:IPe},EA={type:"split"},i3e={type:"space"},o3e={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},a3e=[zPe,VPe,HPe,WPe,EA,QPe,YPe,GPe,qPe,ZPe,XPe,EA,KPe,JPe,e3e,t3e,EA,n3e,r3e,i3e,o3e],s3e=e=>[TPe(e),wPe];var TK=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=W1.define(r),u=[s,tZ(l)];return u},l3e={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function u3e(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return TK({theme:t,settings:L({},l3e,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 c3e=u3e(),d3e={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},f3e=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return TK({theme:t,settings:L({},d3e,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]})},p3e=f3e();function M9(){const e=qD(),[t,n]=N.useState(),r=Tc(Tk),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:[aIe,JDe(),yPe(r.doc,r.client),s3e({items:a3e}),e=="light"?c3e:p3e,Vt.theme({"&":{width:"100%"}}),Vt.lineWrapping,hg.of([x_e])]});return o=new Vt({state:a,parent:t}),()=>{o==null||o.destroy()}},[r.client,r.doc,t,e]),$.jsx("div",{ref:i,style:{display:"flex",alignItems:"stretch",height:"100%"}})}var MR={exports:{}};(function(e,t){(function(n,r){{var i=r();e&&e.exports&&(t=e.exports=i),t.randomColor=i}})(iS,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=A(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 M,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 M=a(E),D=s(M,E),R=l(M,D,E),u([M,D,R],E)};function a(E){if(i.length>0){var M=w(E.hue),D=m(M),R=(M[1]-M[0])/i.length,B=parseInt((D-M[0])/R);i[B]===!0?B=(B+2)%i.length:i[B]=!0;var U=(M[0]+B*R)%359,V=(M[0]+(B+1)*R)%359;return M=[U,V],D=m(M),D<0&&(D=360+D),D}else{var M=d(E.hue);return D=m(M),D<0&&(D=360+D),D}}function s(E,M){if(M.hue==="monochrome")return 0;if(M.luminosity==="random")return m([0,100]);var D=p(E),R=D[0],B=D[1];switch(M.luminosity){case"bright":R=55;break;case"dark":R=B-10;break;case"light":B=55;break}return m([R,B])}function l(E,M,D){var R=c(E,M),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,M){switch(M.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=M.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=M.alpha||Math.random();return"rgba("+U.join(", ")+", "+V+")";default:return y(E)}}function c(E,M){for(var D=h(E).lowerBounds,R=0;R=B&&M<=V){var Q=(z-U)/(V-B),X=U-Q*B;return Q*M+X}}return 0}function d(E){if(typeof parseInt(E)=="number"){var M=parseInt(E);if(M<360&&M>0)return[M,M]}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 M in r){var D=r[M];if(D.hueRange&&E>=D.hueRange[0]&&E<=D.hueRange[1])return r[M]}return"Color not found"}function m(E){if(n===null){var M=.618033988749895,D=Math.random();return D+=M,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 M=v(E);function D(B){var U=B.toString(16);return U.length==1?"0"+U:U}var R="#"+D(M[0])+D(M[1])+D(M[2]);return R}function O(E,M,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:M,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 M=E[0];M===0&&(M=1),M===360&&(M=359),M=M/360;var D=E[1]/100,R=E[2]/100,B=Math.floor(M*6),U=M*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 M=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(M,D,R),U=B-Math.min(M,D,R),V=B?U/B:0;switch(B){case M:return[60*((D-R)/U%6)||0,V,B];case D:return[60*((R-M)/U+2)||0,V,B];case R:return[60*((M-D)/U+4)||0,V,B]}}function k(E){var M=E[0],D=E[1]/100,R=E[2]/100,B=(2-D)*R;return[M,Math.round(D*R/(B<1?B:2-B)*1e4)/100,B/2*100]}function A(E){for(var M=0,D=0;D!==E.length&&!(M>=Number.MAX_SAFE_INTEGER);D++)M+=E.charCodeAt(D);return M}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 M=parseInt(E);if(M<360&&M>0)return h(E).hueRange}return[0,360]}return o})})(MR,MR.exports);var h3e=MR.exports;const m3e=Vd(h3e);var wK={exports:{}},g3e={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]},kK={exports:{}},b3e=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")},y3e=b3e,O3e=Array.prototype.concat,v3e=Array.prototype.slice,$9=kK.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+")"};rs.to.keyword=function(e){return CK[e.slice(0,3)]};function Ad(e,t,n){return Math.min(Math.max(t,e),n)}function zv(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var S3e=wK.exports,T3e={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 By=T3e,AK={};for(const e of Object.keys(By))AK[By[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 _K=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 w3e(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=AK[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(By)){const o=By[i],a=w3e(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 TT=_K;function k3e(){const e={},t=Object.keys(TT);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function D3e(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{ch[e]={},Object.defineProperty(ch[e],"channels",{value:$R[e].channels}),Object.defineProperty(ch[e],"labels",{value:$R[e].labels});const t=R3e(e);Object.keys(t).forEach(r=>{const i=t[r];ch[e][r]=D3e(i),ch[e][r].raw=N3e(i)})});var P3e=ch;const dh=S3e,Ja=P3e,RK=["keyword","gray","hex"],FR={};for(const e of Object.keys(Ja))FR[[...Ja[e].labels].sort().join("")]=e;const wT={};function Qi(e,t){if(!(this instanceof Qi))return new Qi(e,t);if(t&&t in RK&&(t=null),t&&!(t in Ja))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=dh.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=Ja[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=Ja[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=BR(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 FR))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=FR[o];const{labels:a}=Ja[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:ei("hsl",1,ki(100)),lightness:ei("hsl",2,ki(100)),saturationv:ei("hsv",1,ki(100)),value:ei("hsv",2,ki(100)),chroma:ei("hcg",1,ki(100)),gray:ei("hcg",2,ki(100)),white:ei("hwb",1,ki(100)),wblack:ei("hwb",2,ki(100)),cyan:ei("cmyk",0,ki(100)),magenta:ei("cmyk",1,ki(100)),yellow:ei("cmyk",2,ki(100)),black:ei("cmyk",3,ki(100)),x:ei("xyz",0,ki(95.047)),y:ei("xyz",1,ki(100)),z:ei("xyz",2,ki(108.833)),l:ei("lab",0,ki(100)),a:ei("lab",1),b:ei("lab",2),keyword(e){return e!==void 0?new Qi(e):Ja[this.model].keyword(this.color)},hex(e){return e!==void 0?new Qi(e):dh.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),dh.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(Ja)){if(RK.includes(e))continue;const{channels:t}=Ja[e];Qi.prototype[e]=function(...n){return this.model===e?new Qi(this):n.length>0?new Qi(n,e):new Qi([...$3e(Ja[this.model][e].raw(this.color)),this.valpha],e)},Qi[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=BR(n,t)),new Qi(r,e)}}function L3e(e,t){return Number(e.toFixed(t))}function M3e(e){return function(t){return L3e(t,e)}}function ei(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(wT[r]||(wT[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 ki(e){return function(t){return Math.max(0,Math.min(e,t))}}function $3e(e){return Array.isArray(e)?e:[e]}function BR(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,M,s,u,O,o]),q=N.useCallback(function(){r||(D(o),R.current=o)},[r,o]);return{position:M,endPosition:U,isDragging:A,separatorProps:kT({},z,{onPointerDown:Z,onKeyDown:Y,onDoubleClick:q}),setPosition:D,splitterProps:kT({},z,{onPointerDown:Z,onKeyDown:Y,onDoubleClick:q})}},H3e=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(V3e({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 W3e=e=>{const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),t},Q3e=(e,t=100,n=!1)=>{const r=W3e(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)},Y3e=(e,t,n)=>{const r=N.useState(e);return[r[0],Q3e(r[1],t,n)]};function TA(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 G3e={},Tb=typeof window>"u"?null:window,q3e=Tb&&typeof Tb.visualViewport<"u"?Tb.visualViewport:null,F9=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],Z3e=function(e){e===void 0&&(e=G3e);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,a]=Y3e(typeof document>"u"?[r,i]:F9,t,n),s=()=>a(F9);return TA(Tb,"resize",s),TA(q3e,"resize",s),TA(Tb,"orientationchange",s),o},X3e=e=>Z3e(e)[0];function Uy(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 jP(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const K3e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,J3e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eLe={};function B9(e,t){return((t||eLe).jsx?J3e:K3e).test(e)}const tLe=/[ \t\n\f\r]/g;function DK(e){return typeof e=="object"?e.type==="text"?U9(e.value):!1:U9(e)}function U9(e){return e.replace(tLe,"")===""}class Z1{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Z1.prototype.property={};Z1.prototype.normal={};Z1.prototype.space=null;function PK(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&aLe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(z9,uLe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!z9.test(o)){let a=o.replace(sLe,lLe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=zP}return new i(r,t)}function lLe(e){return"-"+e.toLowerCase()}function uLe(e){return e.charAt(1).toUpperCase()}const cLe={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"},Sp=PK([$K,MK,UK,jK,iLe],"html"),Lu=PK([$K,MK,UK,jK,oLe],"svg");function jy(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function VP(e){return e.join(" ").trim()}var zK={},V9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,dLe=/\n/g,fLe=/^\s*/,pLe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,hLe=/^:\s*/,mLe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,gLe=/^[;\s]*/,bLe=/^\s+|\s+$/g,yLe=` -`,H9="/",W9="*",Sf="",OLe="comment",vLe="declaration",ELe=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(dLe);y&&(n+=y.length);var O=m.lastIndexOf(yLe);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(fLe)}function c(m){var y;for(m=m||[];y=d();)y!==!1&&m.push(y);return m}function d(){var m=o();if(!(H9!=e.charAt(0)||W9!=e.charAt(1))){for(var y=2;Sf!=e.charAt(y)&&(W9!=e.charAt(y)||H9!=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:OLe,comment:O})}}function p(){var m=o(),y=l(pLe);if(y){if(d(),!l(hLe))return s("property missing ':'");var O=l(mLe),b=m({type:vLe,property:Q9(y[0].replace(V9,Sf)),value:O?Q9(O[0].replace(V9,Sf)):Sf});return l(gLe),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 Q9(e){return e?e.replace(bLe,Sf):Sf}var SLe=iS&&iS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zK,"__esModule",{value:!0});var TLe=SLe(ELe);function wLe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,TLe.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 Y9=zK.default=wLe;const kLe=Y9.default||Y9,$k=VK("end"),Mu=VK("start");function VK(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 xLe(e){const t=Mu(e),n=$k(e);if(t&&n)return{start:t,end:n}}function wb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?G9(e.position):"start"in e||"end"in e?G9(e):"line"in e||"column"in e?jR(e):""}function jR(e){return q9(e&&e.line)+":"+q9(e&&e.column)}function G9(e){return jR(e&&e.start)+"-"+jR(e&&e.end)}function q9(e){return e&&typeof e=="number"?e:1}class $o 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=wb(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}}$o.prototype.file="";$o.prototype.name="";$o.prototype.reason="";$o.prototype.message="";$o.prototype.stack="";$o.prototype.column=void 0;$o.prototype.line=void 0;$o.prototype.ancestors=void 0;$o.prototype.cause=void 0;$o.prototype.fatal=void 0;$o.prototype.place=void 0;$o.prototype.ruleId=void 0;$o.prototype.source=void 0;const HP={}.hasOwnProperty,CLe=new Map,ALe=/[A-Z]/g,_Le=/-([a-z])/g,RLe=new Set(["table","tbody","thead","tfoot","tr"]),ILe=new Set(["td","th"]),HK="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NLe(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=ULe(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=BLe(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:Sp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=WK(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function WK(e,t,n){if(t.type==="element")return DLe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return PLe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return MLe(e,t,n);if(t.type==="mdxjsEsm")return LLe(e,t);if(t.type==="root")return $Le(e,t,n);if(t.type==="text")return FLe(e,t)}function DLe(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=YK(e,t.tagName,!1),a=jLe(e,t);let s=QP(e,t);return RLe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!DK(l):!0})),QK(e,a,o,t),WP(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function PLe(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)}zy(e,t.position)}function LLe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);zy(e,t.position)}function MLe(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:YK(e,t.name,!0),a=zLe(e,t),s=QP(e,t);return QK(e,a,o,t),WP(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function $Le(e,t,n){const r={};return WP(r,QP(e,t)),e.create(t,e.Fragment,r,n)}function FLe(e,t){return t.value}function QK(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function WP(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function BLe(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 ULe(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"&&HP.call(t.properties,i)){const o=VLe(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&ILe.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 zLe(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 zy(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 zy(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function QP(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:CLe;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?(ss(e,e.length,0,t),e):t}const K9={}.hasOwnProperty;function qK(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 JLe=Kd(new RegExp("\\p{P}","u")),Zo=Kd(/[A-Za-z]/),Ro=Kd(/[\dA-Za-z]/),eMe=Kd(/[#-'*+\--9=?A-Z^-~]/);function xT(e){return e!==null&&(e<32||e===127)}const zR=Kd(/\d/),tMe=Kd(/[\dA-Fa-f]/),XK=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 Fk(e){return XK(e)||JLe(e)}const pp=Kd(/\s/);function Kd(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Tg(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 M=E,D,R;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(D){R=t.events[M][1].end;break}D=!0}for(b(r),w=E;wS;){const A=n[k];t.containerState=A[1],A[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 aMe(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 CT(e){if(e===null||br(e)||pp(e))return 1;if(Fk(e))return 2}function Bk(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);ej(d,-l),ej(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=Ps(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ps(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Ps(u,Bk(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ps(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=Ps(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ss(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(tj,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 A(w,E,M){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)):M(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)):M(Q)}function z(Q){return Q===null||mn(Q)?(w.exit("codeFencedFence"),E(Q)):M(Q)}}}function yMe(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 xA={name:"codeIndented",tokenize:vMe},OMe={tokenize:EMe,partial:!0};function vMe(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(OMe,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 EMe(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 SMe={name:"codeText",tokenize:kMe,resolve:TMe,previous:wMe};function TMe(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 nJ(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||xT(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 iJ(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 kb(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 NMe={name:"definition",tokenize:PMe},DMe={tokenize:LMe,partial:!0};function PMe(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return rJ.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)?kb(e,u)(h):u(h)}function u(h){return nJ(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(DMe,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 LMe(e,t,n){return r;function r(s){return br(s)?kb(e,i)(s):n(s)}function i(s){return iJ(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 MMe={name:"hardBreakEscape",tokenize:$Me};function $Me(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 FMe={name:"headingAtx",tokenize:UMe,resolve:BMe};function BMe(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"},ss(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function UMe(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"],rj=["pre","script","style","textarea"],zMe={name:"htmlFlow",tokenize:QMe,resolveTo:WMe,concrete:!0},VMe={tokenize:GMe,partial:!0},HMe={tokenize:YMe,partial:!0};function WMe(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 QMe(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):Zo(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):Zo(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 Zo(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&&rj.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||Ro(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||Zo(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||Ro(G)?(e.consume(G),k):A(G)}function A(G){return G===61?(e.consume(G),w):Un(G)?(e.consume(G),A):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):M(G)}function E(G){return G===l?(e.consume(G),l=null,D):G===null||mn(G)?n(G):(e.consume(G),E)}function M(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||br(G)?A(G):(e.consume(G),M)}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(VMe,Ee,V)(G)):G===null||mn(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),U)}function V(G){return e.check(HMe,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 rj.includes(ue)?(e.consume(G),le):U(G)}return Zo(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 YMe(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 GMe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(X1,t,n)}}const qMe={name:"htmlText",tokenize:ZMe};function ZMe(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),A):j===63?(e.consume(j),S):Zo(j)?(e.consume(j),M):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),o=0,m):Zo(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 A(j){return Zo(j)?(e.consume(j),w):n(j)}function w(j){return j===45||Ro(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 M(j){return j===45||Ro(j)?(e.consume(j),M):j===47||j===62||br(j)?D(j):n(j)}function D(j){return j===47?(e.consume(j),X):j===58||j===95||Zo(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||Ro(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 GP={name:"labelEnd",tokenize:n4e,resolveTo:t4e,resolveAll:e4e},XMe={tokenize:r4e},KMe={tokenize:i4e},JMe={tokenize:o4e};function e4e(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 ca={name:"list",tokenize:h4e,continuation:{tokenize:m4e},exit:b4e},f4e={tokenize:y4e,partial:!0},p4e={tokenize:g4e,partial:!0};function h4e(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:zR(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(FE,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 zR(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(X1,r.interrupt?n:c,e.attempt(f4e,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 m4e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(X1,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(p4e,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Kn(e,e.attempt(ca,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function g4e(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 b4e(e){e.exit(this.containerState.type)}function y4e(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:v4e,resolveTo:O4e};function O4e(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 v4e(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 E4e={tokenize:S4e};function S4e(e){const t=this,n=e.attempt(X1,r,e.attempt(this.parser.constructs.flowInitial,i,Kn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(CMe,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 T4e={resolveAll:aJ()},w4e=oJ("string"),k4e=oJ("text");function oJ(e){return{tokenize:t,resolveAll:aJ(e==="text"?x4e: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 _4e(e,t){let n=-1;const r=[];let i;for(;++n>>=0,(_=0<=C&&C<256)&&(T=xt[C],T)?T:(g=Te(C,0,!0),_&&(xt[C]=g),g)):(C|=0,(_=-128<=C&&C<128)&&(T=It[C],T)?T:(g=Te(C,C<0?-1:0,!1),_&&(It[C]=g),g))}at.fromInt=qt;function Re(C,f){if(isNaN(C))return f?en:Nt;if(f){if(C<0)return en;if(C>=Ue)return Wn}else{if(C<=-xe)return Qn;if(C+1>=xe)return gn}return C<0?Re(-C,f).neg():Te(C%tr|0,C/tr|0,f)}at.fromNumber=Re;function Te(C,f,g){return new at(C,f,g)}at.fromBits=Te;var We=Math.pow;function ot(C,f,g){if(C.length===0)throw Error("empty string");if(typeof f=="number"?(g=f,f=!1):f=!!f,C==="NaN"||C==="Infinity"||C==="+Infinity"||C==="-Infinity")return f?en:Nt;if(g=g||10,g<2||360)throw Error("interior hyphen");if(T===0)return ot(C.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(C){C.Ok="ok",C.ClientNotActive="client-not-active",C.Unimplemented="unimplemented",C.Unsupported="unsupported",C.DocumentNotAttached="document-not-attached",C.DocumentNotDetached="document-not-detached",C.DocumentRemoved="document-removed",C.InvalidObjectKey="invalid-object-key",C.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 ia(C){if(C instanceof Map){const f=Array.from(C);return new Map(JSON.parse(JSON.stringify(f)))}return JSON.parse(JSON.stringify(C))}const Np=C=>C?Object.entries(C).length===0:!0,eo=C=>{const f={};for(const[g,T]of Object.entries(C))f[g]=JSON.stringify(T);return f},si=C=>{const f={};for(const[g,T]of Object.entries(C))f[g]=JSON.parse(T);return f};var Ra;(function(C){C.Put="put",C.Clear="clear"})(Ra||(Ra={}));class Dp{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:Ra.Put,presence:ia(this.presence)}),this.context.setReversePresence(f,g)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Ra.Clear})}}const SO="000000000000000000000000",oa="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 Pp=0,vs=4294967295,Es=Wr.MAX_VALUE,to=new yr(Wr.fromNumber(0),Pp,SO),vo=new yr(Es,vs,oa);function Mr(C){return C.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 Bo extends no{}class Eo{constructor(f,g){this.strKey=f,this.value=g}static of(f,g){return new Eo(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=Eo.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(C){C.Local="local",C.Remote="remote",C.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 Uo{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(C){C[C.Null=0]="Null",C[C.Boolean=1]="Boolean",C[C.Integer=2]="Integer",C[C.Long=3]="Long",C[C.Double=4]="Double",C[C.String=5]="String",C[C.Bytes=6]="Bytes",C[C.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 Lp extends Uo{constructor(f){super(f),this.value=f}static createAfter(f,g){const T=new Lp(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 Lp(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=Lp.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 jo extends zl{constructor(f,g){super(f),this.elements=g}static create(f,g){if(!g)return new jo(f,tf.create());const T=tf.create();for(const _ of g)T.insertAfter(T.getLastCreatedAt(),_.deepcopy());return new jo(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 zo;(function(C){C.Content="content",C.Style="style"})(zo||(zo={}));class Vo{constructor(f){this.attributes=Ia.create(),this.content=f}static create(f){return new Vo(f)}get length(){return this.content.length}substring(f,g){const T=new Vo(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 li extends Bo{constructor(f,g){super(g),this.rgaTreeSplit=f}static create(f,g){return new li(f,g)}edit(f,g,T,_,H){const K=g?Vo.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:si(Ft.value.getAttributes()),content:Ft.value.getContent()}:{attributes:void 0,content:""},type:zo.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:vo;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:zo.Style,actor:T.getActorID(),from:ft,to:an,value:{attributes:si(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:si(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 li(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 li||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 So 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 So(f,g,T,_,H,K)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof li||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 aa=2,sa="root",wi="text";function Ho(C,f){let g=0;const T=C.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:aa)}isAncestorOf(f){return Rc(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 Rc(C,f){if(C===f)return!1;for(;f.parent;){if(f.parent===C)return!0;f=f.parent}return!1}var Yn;(function(C){C.Start="Start",C.End="End",C.Text="Text"})(Yn||(Yn={}));function Na(C,f,g,T){if(f>g)throw new Error(`from is greater than to: ${f} > ${g}`);if(f>C.size)throw new Error(`from is out of range: ${f} > ${C.size}`);if(g>C.size)throw new Error(`to is out of range: ${g} > ${C.size}`);if(f===g)return;let _=0;for(const H of C.children){if(f-H.paddedSize<_&&_H.size;(H.isText||Ce)&&T([H,H.isText?Yn.Text:Yn.Start],Ve),Na(H,Math.max(0,K),Math.min(oe,H.size),T),Ve&&T([H,Yn.End],Ve)}_+=H.paddedSize}}function ki(C,f,g=0){for(const T of C.children)ki(T,f,g+1);f(C,g)}function Da(C,f,g=0){for(const T of C._children)Da(T,f,g+1);f(C,g)}function la(C,f,g=!0){if(f>C.size)throw new Error(`index is out of range: ${f} > ${C.size}`);if(C.isText)return{node:C,offset:f};let T=0,_=0;for(const H of C.children){if(g&&H.isText&&H.size>=f-_)return la(H,f-_,g);if(f===_)return{node:C,offset:T};if(!g&&H.paddedSize===f-_)return{node:C,offset:T+1};if(H.paddedSize>f-_)return la(H,f-_-1,g);_+=H.paddedSize,T+=1}return{node:C,offset:T}}function Pa(C){return C.isText||C.children.length===0?C:Pa(C.children[0])}function F(C,f){if(C.sizeC===f?0:C0)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(C){C.Content="content",C.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(C){var f;if(C.isText){const g=C;return{type:g.type,value:g.value}}return{type:C.type,children:C.children.map(Pt),attributes:C.attrs?si((f=C.attrs)===null||f===void 0?void 0:f.toObject()):void 0}}function bn(C){var f;return C.isText?C.value:`<${C.type}${((f=C.attrs)===null||f===void 0?void 0:f.toXML())||""}>${C.children.map(g=>bn(g)).join("")}`}function Or(C){if(C.isText){const f=C;return{type:f.type,value:f.value,size:f.size,isRemoved:f.isRemoved}}return{type:C.type,children:C.children.map(Or),size:C.size,isRemoved:C.isRemoved}}class Sn extends Bo{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 Ia);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,Jr],Qr)=>{if(Jr===Yn.Start&&!Qr)for(const Vp of $n.children)Dn.push(Vp);const yi=$n.getCreatedAt().getActorID(),sf=K?K.has(yi)?K.get(yi):to:vo;if($n.canDelete(_,sf)||an.includes($n.parent)){const Vp=ar.get(yi),Hg=$n.getCreatedAt();(!Vp||Hg.after(Vp))&&ar.set(yi,Hg),(Jr===Yn.Text||Jr===Yn.Start)&&an.push($n),In.push([$n,Jr])}});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,Jr=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 La{constructor(f,g,T){this.clientSeq=f,this.lamport=g,this.actor=T}static of(f,g,T){return new La(f,g,T)}next(){return new La(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(f){return f.greaterThan(this.lamport)?new La(this.clientSeq,f,this.actor):new La(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(f){return yr.of(this.lamport,f,this.actor)}setActor(f){return new La(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 La(0,Wr.fromInt(0,!0),SO);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===Ra.Put?g.set(this.id.getActorID(),ia(this.presenceChange.presence)):g.delete(this.id.getActorID())),{opInfos:_,reverseOps:H}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class TO{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 TO(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 $p{constructor(f,g){this.serverSeq=f,this.clientSeq=g}static of(f,g){return new $p(f,g)}increaseClientSeq(f){return f===0?this:new $p(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 $p.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 Yre=new $p(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 Gre=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 Ic extends Uo{constructor(f,g,T){super(g),this.id=f,this.removedAt=T}static create(f,g){return new Ic(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:vo;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 aF=C=>C<0?Math.ceil(C):Math.floor(C);var ui;(function(C){C[C.IntegerCnt=0]="IntegerCnt",C[C.LongCnt=1]="LongCnt"})(ui||(ui={}));class Ma extends no{constructor(f,g,T){switch(super(T),this.valueType=f,f){case ui.IntegerCnt:typeof g=="number"?g>Math.pow(2,31)-1||g<-Math.pow(2,31)?this.value=Wr.fromNumber(g).toInt():this.value=aF(g):this.value=g.toInt();break;case ui.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 Ma(f,g,T)}static valueFromBytes(f,g){switch(f){case ui.IntegerCnt:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case ui.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=Ma.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?ui.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?ui.LongCnt:ui.IntegerCnt;default:return}}static isSupport(f){return!!Ma.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===ui.IntegerCnt||f===ui.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case ui.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case ui.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===ui.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+aF(f.getValue())).toInt(),this}}class Bp extends $r{constructor(f,g,T){super(f,T),this.value=g}static create(f,g,T){return new Bp(f,g,T)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof Ma||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 Bp.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 Up 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 Up(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 qre(C){const f=new fe.Presence,g=f.data;for(const[T,_]of Object.entries(C))g[T]=JSON.stringify(_);return f}function Zre(C){if(C.type===Ra.Put)return new fe.PresenceChange({type:fe.PresenceChange_ChangeType.PUT,presence:qre(C.presence)});if(C.type===Ra.Clear)return new fe.PresenceChange({type:fe.PresenceChange_ChangeType.CLEAR});throw new An(En.Unimplemented,"unimplemented type")}function Xre(C){return new fe.Checkpoint({serverSeq:C.getServerSeqAsString(),clientSeq:C.getClientSeq()})}function Kre(C){return new fe.ChangeID({clientSeq:C.getClientSeq(),lamport:C.getLamportAsString(),actorId:Bx(C.getActorID())})}function ln(C){if(C)return new fe.TimeTicket({lamport:C.getLamportAsString(),delimiter:C.getDelimiter(),actorId:Bx(C.getActorID())})}function sF(C){switch(C){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: ${C}`)}}function lF(C){switch(C){case ui.IntegerCnt:return fe.ValueType.INTEGER_CNT;case ui.LongCnt:return fe.ValueType.LONG_CNT;default:throw new An(En.Unsupported,`unsupported type: ${C}`)}}function Dx(C){if(C instanceof mr)return new fe.JSONElementSimple({type:fe.ValueType.JSON_OBJECT,createdAt:ln(C.getCreatedAt()),value:vF(C)});if(C instanceof jo)return new fe.JSONElementSimple({type:fe.ValueType.JSON_ARRAY,createdAt:ln(C.getCreatedAt()),value:Cie(C)});if(C instanceof li)return new fe.JSONElementSimple({type:fe.ValueType.TEXT,createdAt:ln(C.getCreatedAt())});if(C instanceof Cr)return new fe.JSONElementSimple({type:sF(C.getType()),createdAt:ln(C.getCreatedAt()),value:C.toBytes()});if(C instanceof Ma)return new fe.JSONElementSimple({type:lF(C.getType()),createdAt:ln(C.getCreatedAt()),value:C.toBytes()});if(C instanceof Sn)return new fe.JSONElementSimple({type:fe.ValueType.TREE,createdAt:ln(C.getCreatedAt()),value:_ie(C)});throw new An(En.Unimplemented,"unimplemented element")}function Jre(C){return new fe.TextNodeID({createdAt:ln(C.getCreatedAt()),offset:C.getOffset()})}function wO(C){return new fe.TextNodePos({createdAt:ln(C.getID().getCreatedAt()),offset:C.getID().getOffset(),relativeOffset:C.getRelativeOffset()})}function kO(C){return new fe.TreePos({parentId:Ug(C.getParentID()),leftSiblingId:Ug(C.getLeftSiblingID())})}function Ug(C){return new fe.TreeNodeID({createdAt:ln(C.getCreatedAt()),offset:C.getOffset()})}function eie(C){const f=new fe.Operation;if(C instanceof ju){const g=C,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(C instanceof nf){const g=C,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(C instanceof Hl){const g=C,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(C instanceof Vl){const g=C,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(C instanceof Wl){const g=C,T=new fe.Operation_Edit;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=wO(g.getFromPos()),T.to=wO(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(C instanceof So){const g=C,T=new fe.Operation_Style;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=wO(g.getFromPos()),T.to=wO(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(C instanceof Bp){const g=C,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(C instanceof ji){const g=C,T=new fe.Operation_TreeEdit,_=T.createdAtMapByActor;for(const[H,K]of g.getMaxCreatedAtMapByActor())_[H]=ln(K);T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=kO(g.getFromPos()),T.to=kO(g.getToPos()),T.contents=sie(g.getContents()),T.splitLevel=g.getSplitLevel(),T.executedAt=ln(g.getExecutedAt()),f.body.case="treeEdit",f.body.value=T}else if(C instanceof Up){const g=C,T=new fe.Operation_TreeStyle;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=kO(g.getFromPos()),T.to=kO(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 tie(C){const f=[];for(const g of C)f.push(eie(g));return f}function nie(C){const f=new fe.Change({id:Kre(C.getID()),message:C.getMessage()});return C.hasOperations()&&(f.operations=tie(C.getOperations())),C.hasPresenceChange()&&(f.presenceChange=Zre(C.getPresenceChange())),f}function rie(C){const f=[];for(const g of C)f.push(nie(g));return f}function iie(C){const f=[];for(const g of C)f.push(new fe.RHTNode({key:g.getStrKey(),element:Px(g.getValue())}));return f}function oie(C){const f=[];for(const g of C)f.push(new fe.RGANode({element:Px(g.getValue())}));return f}function aie(C){const f=[];for(const g of C){const T=new fe.TextNode;T.id=Jre(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 sie(C){const f=[];if(!C||!C.length)return f;for(const g of C)f.push(new fe.TreeNodes({content:uF(g)}));return f}function uF(C){if(!C)return[];const f=[];return ki(C,(g,T)=>{const _=new fe.TreeNode({id:Ug(g.id),type:g.type,removedAt:ln(g.removedAt),depth:T});if(g.isText&&(_.value=g.value),g.insPrevID&&(_.insPrevId=Ug(g.insPrevID)),g.insNextID&&(_.insNextId=Ug(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 lie(C){const f=new fe.JSONElement;return f.body.case="jsonObject",f.body.value=new fe.JSONElement_JSONObject({nodes:iie(C.getRHT()),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function cF(C){const f=new fe.JSONElement;return f.body.case="jsonArray",f.body.value=new fe.JSONElement_JSONArray({nodes:oie(C.getElements()),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function uie(C){const f=new fe.JSONElement;return f.body.case="primitive",f.body.value=new fe.JSONElement_Primitive({type:sF(C.getType()),value:C.toBytes(),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function cie(C){const f=new fe.JSONElement;return f.body.case="text",f.body.value=new fe.JSONElement_Text({nodes:aie(C.getRGATreeSplit()),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function die(C){const f=new fe.JSONElement;return f.body.case="counter",f.body.value=new fe.JSONElement_Counter({type:lF(C.getType()),value:C.toBytes(),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function dF(C){const f=new fe.JSONElement;return f.body.case="tree",f.body.value=new fe.JSONElement_Tree({nodes:uF(C.getRoot()),createdAt:ln(C.getCreatedAt()),movedAt:ln(C.getMovedAt()),removedAt:ln(C.getRemovedAt())}),f}function Px(C){if(C instanceof mr)return lie(C);if(C instanceof jo)return cF(C);if(C instanceof Cr)return uie(C);if(C instanceof li)return cie(C);if(C instanceof Ma)return die(C);if(C instanceof Sn)return dF(C);throw new An(En.Unimplemented,"unimplemented element")}function fie(C){return new fe.ChangePack({documentKey:C.getDocumentKey(),checkpoint:Xre(C.getCheckpoint()),isRemoved:C.getIsRemoved(),changes:rie(C.getChanges()),snapshot:C.getSnapshot(),minSyncedTicket:ln(C.getMinSyncedTicket())})}function pie(C){return La.of(C.clientSeq,Wr.fromString(C.lamport,!0),Fx(C.actorId))}function pn(C){if(C)return yr.of(Wr.fromString(C.lamport,!0),C.delimiter,Fx(C.actorId))}function Lx(C){const f={};return Object.entries(C.data).forEach(([g,T])=>{f[g]=JSON.parse(T)}),f}function hie(C){const f=C.type;if(f===fe.PresenceChange_ChangeType.PUT){const g=Lx(C.presence);return{type:Ra.Put,presence:g}}if(f===fe.PresenceChange_ChangeType.CLEAR)return{type:Ra.Clear};throw new An(En.Unsupported,`unsupported type: ${f}`)}function mie(C){const f=new Map;return Object.entries(C).forEach(([g,T])=>{f.set(g,Lx(T))}),f}function fF(C){switch(C){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: ${C}`)}function xO(C){switch(C){case fe.ValueType.INTEGER_CNT:return ui.IntegerCnt;case fe.ValueType.LONG_CNT:return ui.LongCnt}throw new An(En.Unimplemented,`unimplemented value type: ${C}`)}function Mx(C){switch(C.type){case fe.ValueType.JSON_OBJECT:return C.value?OF(C.value):mr.create(pn(C.createdAt));case fe.ValueType.JSON_ARRAY:return C.value?xie(C.value):jo.create(pn(C.createdAt));case fe.ValueType.TEXT:return li.create(Fp.create(),pn(C.createdAt));case fe.ValueType.TREE:return Aie(C.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(fF(C.type),C.value),pn(C.createdAt));case fe.ValueType.INTEGER_CNT:case fe.ValueType.LONG_CNT:return Ma.create(xO(C.type),Ma.valueFromBytes(xO(C.type),C.value),pn(C.createdAt))}}function CO(C){return sl.of(Ql.of(pn(C.createdAt),C.offset),C.relativeOffset)}function pF(C){return Ql.of(pn(C.createdAt),C.offset)}function gie(C){const f=Vo.create(C.value);Object.entries(C.attributes).forEach(([T,_])=>{f.setAttr(T,_.value,pn(_.updatedAt))});const g=Ic.create(pF(C.id),f);return g.remove(pn(C.removedAt)),g}function AO(C){return ct.of(jg(C.parentId),jg(C.leftSiblingId))}function jg(C){return Ze.of(pn(C.createdAt),C.offset)}function bie(C){if(!C.length)return;const f=[];return C.forEach(g=>{const T=hF(g.content);f.push(T)}),f}function hF(C){if(C.length===0)return;const f=[];for(const T of C)f.push(yie(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 C.insPrevId&&(g.insPrevID=jg(C.insPrevId)),C.insNextId&&(g.insNextID=jg(C.insNextId)),g.removedAt=pn(C.removedAt),g}function Oie(C){const f=[];for(const g of C){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),CO(_.from),CO(_.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=So.create(pn(_.parentCreatedAt),CO(_.from),CO(_.to),H,K,pn(_.executedAt))}else{if(g.body.case==="select")continue;if(g.body.case==="increase"){const _=g.body.value;T=Bp.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),AO(_.from),AO(_.to),bie(_.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=Up.create(pn(_.parentCreatedAt),AO(_.from),AO(_.to),H,pn(_.executedAt))}else throw new An(En.Unimplemented,"unimplemented operation")}f.push(T)}return f}function mF(C){const f=[];for(const g of C)f.push(rf.create({id:pie(g.id),operations:Oie(g.operations),presenceChange:g.presenceChange?hie(g.presenceChange):void 0,message:g.message}));return f}function vie(C){return $p.of(Wr.fromString(C.serverSeq,!0),C.clientSeq)}function Eie(C){return TO.create(C.documentKey,vie(C.checkpoint),C.isRemoved,mF(C.changes),C.snapshot,pn(C.minSyncedTicket))}function gF(C){const f=new Bi;for(const T of C.nodes){const _=$x(T.element);f.set(T.key,_,_.getPositionedAt())}const g=new mr(pn(C.createdAt),f);return g.setMovedAt(pn(C.movedAt)),g.setRemovedAt(pn(C.removedAt)),g}function bF(C){const f=new tf;for(const T of C.nodes)f.insert($x(T.element));const g=new jo(pn(C.createdAt),f);return g.setMovedAt(pn(C.movedAt)),g.setRemovedAt(pn(C.removedAt)),g}function Sie(C){const f=Cr.of(Cr.valueFromBytes(fF(C.type),C.value),pn(C.createdAt));return f.setMovedAt(pn(C.movedAt)),f.setRemovedAt(pn(C.removedAt)),f}function Tie(C){const f=new Fp;let g=f.getHead();for(const _ of C.nodes){const H=f.insertAfter(g,gie(_));_.insPrevId&&H.setInsPrev(f.findNode(pF(_.insPrevId))),g=H}const T=new li(f,pn(C.createdAt));return T.setMovedAt(pn(C.movedAt)),T.setRemovedAt(pn(C.removedAt)),T}function wie(C){const f=Ma.create(xO(C.type),Ma.valueFromBytes(xO(C.type),C.value),pn(C.createdAt));return f.setMovedAt(pn(C.movedAt)),f.setRemovedAt(pn(C.removedAt)),f}function yF(C){const f=hF(C.nodes);return Sn.create(f,pn(C.createdAt))}function $x(C){if(C.body.case==="jsonObject")return gF(C.body.value);if(C.body.case==="jsonArray")return bF(C.body.value);if(C.body.case==="primitive")return Sie(C.body.value);if(C.body.case==="text")return Tie(C.body.value);if(C.body.case==="counter")return wie(C.body.value);if(C.body.case==="tree")return yF(C.body.value);throw new An(En.Unimplemented,"unimplemented element")}function kie(C){if(!C)return{root:mr.create(to),presences:new Map};const f=fe.Snapshot.fromBinary(C);return{root:$x(f.root),presences:mie(f.presences)}}function OF(C){if(!C)throw new Error("bytes is empty");const f=fe.JSONElement.fromBinary(C);return gF(f.body.value)}function vF(C){return Px(C).toBinary()}function xie(C){if(!C)throw new Error("bytes is empty");const f=fe.JSONElement.fromBinary(C);return bF(f.body.value)}function Cie(C){return cF(C).toBinary()}function Aie(C){if(!C)throw new Error("bytes is empty");const f=fe.JSONElement.fromBinary(C);return yF(f.body.value)}function _ie(C){return dF(C).toBinary()}function Rie(C){return C?Array.from(C).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function Fx(C){return Rie(C)}function Iie(C){return new Uint8Array(C.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function Bx(C){return Iie(C)}const Yl={fromPresence:Lx,toChangePack:fie,fromChangePack:Eie,fromChanges:mF,objectToBytes:vF,bytesToObject:OF,bytesToSnapshot:kie,toHexString:Fx,toUint8Array:Bx};class Nie{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 jp{constructor(f,g,T,_){this.id=f,this.delimiter=Pp,this.root=g,this.operations=[],this.previousPresence=ia(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 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 zg{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 zg(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 zg(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 EF(C,f){const g=new Vg(C);return new Proxy(f,g.getHandlers())}class Vg{constructor(f){this.context=f,this.handlers={set:(g,T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]=${JSON.stringify(_)}`),Vg.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}]`),Vg.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=NO(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=NO(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 Die(C,f){const g=new Kr(C,f);return new Proxy(f,g.getHandlers())}function Pie(C){return typeof C=="string"||C instanceof String?!isNaN(C):!1}function Lie(C){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(C)}class Kr{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 Nc(f,oe)}:_==="getElementByIndex"?K=>{const oe=T.get(K);return Nc(f,oe)}:_==="getLast"?()=>Nc(f,T.getLast()):_==="deleteByID"?K=>{const oe=Kr.deleteInternalByID(f,T,K);return Nc(f,oe)}:_==="insertAfter"?(K,oe)=>{const Ce=Kr.insertAfterInternal(f,T,K,oe);return Nc(f,Ce)}:_==="insertBefore"?(K,oe)=>{const Ce=Kr.insertBeforeInternal(f,T,K,oe);return Nc(f,Ce)}:_==="moveBefore"?(K,oe)=>{Kr.moveBeforeInternal(f,T,K,oe)}:_==="moveAfter"?(K,oe)=>{Kr.moveAfterInternal(f,T,K,oe)}:_==="moveFront"?K=>{Kr.moveFrontInternal(f,T,K)}:_==="moveLast"?K=>{Kr.moveLastInternal(f,T,K)}:Pie(_)?of(f,T.get(Number(_))):_==="push"?K=>Kr.pushInternal(f,T,K):_==="splice"?(K,oe,...Ce)=>Kr.splice(f,T,K,oe,...Ce):_==="length"?T.length:typeof _=="symbol"&&_===Symbol.iterator?Kr.iteratorInternal.bind(this,f,T):_==="includes"?(K,oe)=>Kr.includes(f,T,K,oe):_==="indexOf"?(K,oe)=>Kr.indexOf(f,T,K,oe):_==="lastIndexOf"?(K,oe)=>Kr.lastIndexOf(f,T,K,oe):_==="toTestString"?()=>Kr.toTestString(T):typeof _=="string"&&Lie(_)?(...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[${_}]`),Kr.deleteInternalByIndex(f,T,Number.parseInt(_)),!0)}}static*iteratorInternal(f,g){for(const T of g)yield Nc(f,T)}static buildArrayElements(f,g){const T=[];for(const _ of g){const H=f.issueTimeTicket(),K=NO(f,_,H);T.push(K)}return T}static pushInternal(f,g,T){return Kr.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=NO(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 Kr.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 _O{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 So(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 RO{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(Bp.create(this.counter.getCreatedAt(),T,g)),this}}function Ux(C,f,g){const{type:T}=C,_=g.issueTimeTicket();if(T===wi){SF(C);const{value:H}=C,K=Ot.create(Ze.of(_,0),T,H);f.append(K)}else{const{children:H=[]}=C;let{attributes:K}=C,oe;if(typeof K=="object"&&!Np(K)){K=eo(K),oe=new Ia;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 Mie(C,f){const{type:g}=f,T=C.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"&&!Np(K)){K=eo(K),oe=new Ia;for(const[Ce,Ve]of Object.entries(K))oe.set(Ce,Ve,T)}_=Ot.create(Ze.of(C.issueTimeTicket(),0),g,void 0,oe);for(const Ce of H)Ux(Ce,_,C)}return _}function SF(C){if(!C.value.length)throw new Error("text node cannot have empty value");return!0}function TF(C){if(!C.length)return!0;if(C[0].type===wi)for(const g of C){const{type:T}=g;if(T!==wi)throw new Error("element node and text node cannot be passed together");SF(g)}else for(const g of C){const{type:T}=g;if(T===wi)throw new Error("element node and text node cannot be passed together")}return!0}class IO{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),sa);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(Up.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(Up.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]&&(TF(T),T[0].type!==wi))for(const Ve of T){const{children:yt=[]}=Ve;TF(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&&Mie(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 wF(C,f){return EF(C,f)}function Nc(C,f){if(f){if(f instanceof Cr)return f;if(f instanceof mr)return EF(C,f);if(f instanceof jo)return Die(C,f);if(f instanceof li)return new _O(C,f);if(f instanceof Ma){const g=new RO(ui.IntegerCnt,0);return g.initialize(C,f),g}else if(f instanceof Sn){const g=new IO;return g.initialize(C,f),g}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function of(C,f){const g=Nc(C,f);return g instanceof Cr?g.getValue():g}function NO(C,f,g){let T;if(Cr.isSupport(f))T=Cr.of(f,g);else if(Array.isArray(f))T=jo.create(g,Kr.buildArrayElements(C,f));else if(typeof f=="object")f instanceof _O?(T=li.create(Fp.create(),g),f.initialize(C,T)):f instanceof RO?(T=Ma.create(f.getValueType(),f.getValue(),g),f.initialize(C,T)):f instanceof IO?(T=Sn.create(f.buildRoot(C),g),f.initialize(C,T)):T=mr.create(g,Vg.buildObjectMembers(C,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return T}const kF=50;class $ie{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=kF&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=kF&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const Fie="yorkie-devtools-panel",Bie="yorkie-devtools-sdk";var Ss;(function(C){C.Detached="detached",C.Attached="attached",C.Removed="removed"})(Ss||(Ss={}));var Ln;(function(C){C.Snapshot="snapshot",C.LocalChange="local-change",C.RemoteChange="remote-change",C.Initialized="initialized",C.Watched="watched",C.Unwatched="unwatched",C.PresenceChanged="presence-changed"})(Ln||(Ln={}));class xF{constructor(f,g){this.opts=g||{},this.key=f,this.status=Ss.Detached,this.root=zg.create(),this.changeID=Nx,this.checkpoint=Yre,this.localChanges=[],this.eventStream=h(T=>{this.eventStreamObserver=T}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new $ie,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()===Ss.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=wF(_,this.clone.root.getObject());this.presences.has(T)||this.clone.presences.set(T,{}),this.isUpdating=!0,f(H,new Dp(_,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(Ss.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:ia(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),g=this.checkpoint.increaseClientSeq(f.length);return TO.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 wF(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 zg(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 Ra.Put:T={type:this.presences.has(_)?Ln.PresenceChanged:Ln.Watched,value:{clientID:_,presence:K.presence}};break;case Ra.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!==Ss.Attached)return{};const f=this.presences.get(this.changeID.getActorID());return ia(f)}getPresence(f){if(!this.onlineClients.has(f))return;const g=this.presences.get(f);return g?ia(g):void 0}getPresenceForTest(f){const g=this.presences.get(f);return g?ia(g):void 0}getPresences(){const f=[];for(const g of this.onlineClients)this.presences.has(g)&&f.push({clientID:g,presence:ia(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 Ce of f){if(!(Ce instanceof $r)){new Dp(g,ia(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=jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ce of f){if(!(Ce instanceof $r)){new Dp(g,ia(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 Uie(C,f){return g=>async T=>(C&&T.header.set("x-api-key",C),f&&T.header.set("authorization",f),await g(T))}const CF=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.13"}');function jie(){return C=>async f=>(f.header.set("x-yorkie-user-agent",CF.u2+"/"+CF.i8),await C(f))}var zu;(function(C){C.PushPull="pushpull",C.PushOnly="pushonly"})(zu||(zu={}));var Dc;(function(C){C.Deactivated="deactivated",C.Activated="activated"})(Dc||(Dc={}));var af;(function(C){C.Connected="connected",C.Disconnected="disconnected"})(af||(af={}));var zp;(function(C){C.Synced="synced",C.SyncFailed="sync-failed"})(zp||(zp={}));var $a;(function(C){C.StatusChanged="status-changed",C.DocumentChanged="document-changed",C.StreamConnectionStatusChanged="stream-connection-status-changed",C.DocumentSynced="document-synced"})($a||($a={}));const DO={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class AF{constructor(f,g){g=g||DO,this.key=g.key?g.key:c(),this.status=Dc.Deactivated,this.attachmentMap=new Map,this.apiKey=g.apiKey||"",this.syncLoopDuration=g.syncLoopDuration||DO.syncLoopDuration,this.reconnectStreamDelay=g.reconnectStreamDelay||DO.reconnectStreamDelay,this.retrySyncLoopDelay=g.retrySyncLoopDelay||DO.retrySyncLoopDelay,this.rpcClient=z(Ae.V,ve({baseUrl:f,interceptors:[Uie(g.apiKey,g.token),jie()]})),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=Dc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:$a.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===Dc.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=Dc.Deactivated,this.eventStreamObserver.next({type:$a.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()!==Ss.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()===Ss.Removed||(f.setStatus(Ss.Attached),this.attachmentMap.set(f.getKey(),new Nie(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()!==Ss.Removed&&f.setStatus(Ss.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:$a.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:$a.DocumentSynced,value:zp.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===Dc.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:$a.DocumentSynced,value:zp.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:$a.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:$a.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:$a.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:$a.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:$a.DocumentSynced,value:zp.Synced}),T.getStatus()===Ss.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 zie={Client:AF,Document:xF,Primitive:Cr,Text:_O,Counter:RO,Tree:IO,IntType:ui.IntegerCnt,LongType:ui.LongCnt}})(),a})())})(AK);var LR=AK.exports;class fPe{constructor(t,n){Wo(this,"doc");Wo(this,"client");this.doc=t,this.client=n}}const BP=Gt.define({combine(e){return e[e.length-1]}}),$9=Ll.define();class pPe{constructor(t){Wo(this,"view");Wo(this,"conf");Wo(this,"_doc");Wo(this,"_observer");Wo(this,"_unsubscribe");this.view=t,this.conf=t.state.facet(BP),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:[$9.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($9)===this.conf||this._doc.update((n,r)=>{t.changes.iterChanges((i,o,a,s,l)=>{n.content||(n.content=new LR.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 hPe=Xr.fromClass(pPe);class mPe{constructor(t,n){this.left=t,this.right=n}}const Bv=(e,t)=>new mPe(e,t),gPe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Pu=typeof document<"u"?document:{},bPe=e=>Pu.createElement(e),yPe=()=>Pu.createDocumentFragment(),OPe=e=>Pu.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const vPe=(e,t)=>(gPe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),EPe=e=>{const t=yPe();for(let n=0;n(_K(e,EPe(t)),e),EA=(e,t=[],n=[])=>SPe(vPe(bPe(e),t),n),Uv=OPe,_K=(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 TPe=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"}}),wPe=Ll.define();class kPe extends Nu{constructor(n,r){super();Wo(this,"color");Wo(this,"name");this.color=n,this.name=r}toDOM(){return EA("span",[Bv("class","cm-ySelectionCaret"),Bv("style",`background-color: ${this.color}; border-color: ${this.color}`)],[Uv("⁠"),EA("div",[Bv("class","cm-ySelectionCaretDot")]),Uv("⁠"),EA("div",[Bv("class","cm-ySelectionInfo")],[Uv(this.name)]),Uv("⁠")])}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 xPe{constructor(t){Wo(this,"conf");Wo(this,"decorations");Wo(this,"unsubscribe");this.conf=t.state.facet(BP),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 kPe(a,s)})})}),this.decorations=sn.set(r,!0),r.length>0&&t.dispatch({annotations:[wPe.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 CPe=Xr.fromClass(xPe,{decorations:e=>e.decorations});function APe(e,t){const n=new fPe(e,t),r=[BP.of(n),hPe];return t&&r.push(TPe,CPe),r}function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _Pe=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},RPe=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},IPe=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?_Pe(r):RPe(r))),t.appendChild(n),t};class NPe{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){jv(this,"view",void 0),jv(this,"element",void 0),jv(this,"config",void 0),jv(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=IPe(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const DPe=e=>Xr.define(t=>new NPe(t,e)),PPe=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}}),LPe=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},MPe=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},$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>=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},BPe=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},UPe=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},jPe=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},Sg=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},zPe=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)]},UP=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=zPe(m.text);if(y&&y[0]===e){y[0]==="ol"&&y[1]&&(i=y[1]);return}const v=m.text.replace(RegExp("^((? *)(-( \\[[x ]])?|\\d+\\.) )?"),(...O)=>{const S=O[O.length-1],{space:k=""}=S;let A="- ";return e==="ol"?(A=`${i}. `,i++):e==="todo"&&(A="- [ ] "),k+A}),b=v.length-m.length;u.push({from:m.from,to:m.to,insert:v}),h===0?c=c+b:d=d+b}),{changes:u,range:Je.range(c,c+d)}})),t.focus(),!0},VPe=Sg(1),HPe=Sg(2),WPe=Sg(3),QPe=Sg(4),YPe=Sg(5),GPe=Sg(6),qPe=UP("ul"),ZPe=UP("ol"),XPe=UP("todo"),KPe={label:"Bold",icon:'',command:LPe},JPe={label:"Italic",icon:'',command:MPe},e3e={label:"Strike",icon:'',command:$Pe},t3e={label:"Underline",icon:'',command:FPe},n3e={label:"H1",icon:'',command:VPe},r3e={label:"H2",icon:'',command:HPe},i3e={label:"H3",icon:'',command:WPe},o3e={label:"H4",icon:'',command:QPe},a3e={label:"H5",icon:'',command:YPe},s3e={label:"H6",icon:'',command:GPe},l3e={label:"Block Quote",icon:'',command:BPe},u3e={label:"Unordered List",icon:'',command:qPe},c3e={label:"Ordered List",icon:'',command:ZPe},d3e={label:"Todo List",icon:'',command:XPe},f3e={label:"Link",icon:'',command:UPe},p3e={label:"Image",icon:'',command:jPe},SA={type:"split"},h3e={type:"space"},m3e={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},g3e=[KPe,JPe,e3e,t3e,SA,n3e,r3e,i3e,o3e,a3e,s3e,SA,l3e,u3e,c3e,d3e,SA,f3e,p3e,h3e,m3e],b3e=e=>[DPe(e),PPe];var RK=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=W1.define(r),u=[s,lZ(l)];return u},y3e={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function O3e(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return RK({theme:t,settings:L({},y3e,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 v3e=O3e(),E3e={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},S3e=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return RK({theme:t,settings:L({},E3e,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]})},T3e=S3e();function F9(){const e=qD(),[t,n]=N.useState(),r=Tc(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:[mIe,uPe(),APe(r.doc,r.client),b3e({items:g3e}),e=="light"?v3e:T3e,Vt.theme({"&":{width:"100%"}}),Vt.lineWrapping,gg.of([L_e])]});return o=new Vt({state:a,parent:t}),()=>{o==null||o.destroy()}},[r.client,r.doc,t,e]),$.jsx("div",{ref:i,style:{display:"flex",alignItems:"stretch",height:"100%"}})}var MR={exports:{}};(function(e,t){(function(n,r){{var i=r();e&&e.exports&&(t=e.exports=i),t.randomColor=i}})(rS,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=A(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 M,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 M=a(E),D=s(M,E),R=l(M,D,E),u([M,D,R],E)};function a(E){if(i.length>0){var M=w(E.hue),D=m(M),R=(M[1]-M[0])/i.length,B=parseInt((D-M[0])/R);i[B]===!0?B=(B+2)%i.length:i[B]=!0;var U=(M[0]+B*R)%359,V=(M[0]+(B+1)*R)%359;return M=[U,V],D=m(M),D<0&&(D=360+D),D}else{var M=d(E.hue);return D=m(M),D<0&&(D=360+D),D}}function s(E,M){if(M.hue==="monochrome")return 0;if(M.luminosity==="random")return m([0,100]);var D=p(E),R=D[0],B=D[1];switch(M.luminosity){case"bright":R=55;break;case"dark":R=B-10;break;case"light":B=55;break}return m([R,B])}function l(E,M,D){var R=c(E,M),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,M){switch(M.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=M.alpha||Math.random();return"hsla("+R[0]+", "+R[1]+"%, "+R[2]+"%, "+V+")";case"rgbArray":return O(E);case"rgb":var B=O(E);return"rgb("+B.join(", ")+")";case"rgba":var U=O(E),V=M.alpha||Math.random();return"rgba("+U.join(", ")+", "+V+")";default:return y(E)}}function c(E,M){for(var D=h(E).lowerBounds,R=0;R=B&&M<=V){var Q=(z-U)/(V-B),X=U-Q*B;return Q*M+X}}return 0}function d(E){if(typeof parseInt(E)=="number"){var M=parseInt(E);if(M<360&&M>0)return[M,M]}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 M in r){var D=r[M];if(D.hueRange&&E>=D.hueRange[0]&&E<=D.hueRange[1])return r[M]}return"Color not found"}function m(E){if(n===null){var M=.618033988749895,D=Math.random();return D+=M,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 M=O(E);function D(B){var U=B.toString(16);return U.length==1?"0"+U:U}var R="#"+D(M[0])+D(M[1])+D(M[2]);return R}function v(E,M,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:M,lowerBounds:D,saturationRange:[R,B],brightnessRange:[U,V]}}function b(){v("monochrome",null,[[0,0],[100,0]]),v("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),v("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),v("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),v("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),v("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),v("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),v("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function O(E){var M=E[0];M===0&&(M=1),M===360&&(M=359),M=M/360;var D=E[1]/100,R=E[2]/100,B=Math.floor(M*6),U=M*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 M=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(M,D,R),U=B-Math.min(M,D,R),V=B?U/B:0;switch(B){case M:return[60*((D-R)/U%6)||0,V,B];case D:return[60*((R-M)/U+2)||0,V,B];case R:return[60*((M-D)/U+4)||0,V,B]}}function k(E){var M=E[0],D=E[1]/100,R=E[2]/100,B=(2-D)*R;return[M,Math.round(D*R/(B<1?B:2-B)*1e4)/100,B/2*100]}function A(E){for(var M=0,D=0;D!==E.length&&!(M>=Number.MAX_SAFE_INTEGER);D++)M+=E.charCodeAt(D);return M}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 M=parseInt(E);if(M<360&&M>0)return h(E).hueRange}return[0,360]}return o})})(MR,MR.exports);var w3e=MR.exports;const k3e=Vd(w3e);var IK={exports:{}},x3e={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]},NK={exports:{}},C3e=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")},A3e=C3e,_3e=Array.prototype.concat,R3e=Array.prototype.slice,B9=NK.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+")"};is.to.keyword=function(e){return PK[e.slice(0,3)]};function Ad(e,t,n){return Math.min(Math.max(t,e),n)}function zv(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var N3e=IK.exports,D3e={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 jy=D3e,LK={};for(const e of Object.keys(jy))LK[jy[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 MK=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 P3e(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=LK[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(jy)){const o=jy[i],a=P3e(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 TT=MK;function L3e(){const e={},t=Object.keys(TT);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function V3e(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let o=i.length,a=0;a{dh[e]={},Object.defineProperty(dh[e],"channels",{value:$R[e].channels}),Object.defineProperty(dh[e],"labels",{value:$R[e].labels});const t=U3e(e);Object.keys(t).forEach(r=>{const i=t[r];dh[e][r]=V3e(i),dh[e][r].raw=z3e(i)})});var H3e=dh;const fh=N3e,Ja=H3e,$K=["keyword","gray","hex"],FR={};for(const e of Object.keys(Ja))FR[[...Ja[e].labels].sort().join("")]=e;const wT={};function Qi(e,t){if(!(this instanceof Qi))return new Qi(e,t);if(t&&t in $K&&(t=null),t&&!(t in Ja))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=fh.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=Ja[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=Ja[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=BR(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 FR))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=FR[o];const{labels:a}=Ja[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:ei("hsl",1,xi(100)),lightness:ei("hsl",2,xi(100)),saturationv:ei("hsv",1,xi(100)),value:ei("hsv",2,xi(100)),chroma:ei("hcg",1,xi(100)),gray:ei("hcg",2,xi(100)),white:ei("hwb",1,xi(100)),wblack:ei("hwb",2,xi(100)),cyan:ei("cmyk",0,xi(100)),magenta:ei("cmyk",1,xi(100)),yellow:ei("cmyk",2,xi(100)),black:ei("cmyk",3,xi(100)),x:ei("xyz",0,xi(95.047)),y:ei("xyz",1,xi(100)),z:ei("xyz",2,xi(108.833)),l:ei("lab",0,xi(100)),a:ei("lab",1),b:ei("lab",2),keyword(e){return e!==void 0?new Qi(e):Ja[this.model].keyword(this.color)},hex(e){return e!==void 0?new Qi(e):fh.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),fh.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(Ja)){if($K.includes(e))continue;const{channels:t}=Ja[e];Qi.prototype[e]=function(...n){return this.model===e?new Qi(this):n.length>0?new Qi(n,e):new Qi([...Y3e(Ja[this.model][e].raw(this.color)),this.valpha],e)},Qi[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=BR(n,t)),new Qi(r,e)}}function W3e(e,t){return Number(e.toFixed(t))}function Q3e(e){return function(t){return W3e(t,e)}}function ei(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(wT[r]||(wT[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 Y3e(e){return Array.isArray(e)?e:[e]}function BR(e,t){for(let n=0;nu?(D(u),R.current=u):(D(ue),R.current=ue),v&&v({position:R.current})}}},[r,t,y,m,p,c,M,s,u,v,o]),q=N.useCallback(function(){r||(D(o),R.current=o)},[r,o]);return{position:M,endPosition:U,isDragging:A,separatorProps:kT({},z,{onPointerDown:Z,onKeyDown:Y,onDoubleClick:q}),setPosition:D,splitterProps:kT({},z,{onPointerDown:Z,onKeyDown:Y,onDoubleClick:q})}},eLe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(J3e({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 tLe=e=>{const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),t},nLe=(e,t=100,n=!1)=>{const r=tLe(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)},rLe=(e,t,n)=>{const r=N.useState(e);return[r[0],nLe(r[1],t,n)]};function wA(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 iLe={},kb=typeof window>"u"?null:window,oLe=kb&&typeof kb.visualViewport<"u"?kb.visualViewport:null,U9=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],aLe=function(e){e===void 0&&(e=iLe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,a]=rLe(typeof document>"u"?[r,i]:U9,t,n),s=()=>a(U9);return wA(kb,"resize",s),wA(oLe,"resize",s),wA(kb,"orientationchange",s),o},sLe=e=>aLe(e)[0];function zy(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 jP(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const lLe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uLe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cLe={};function j9(e,t){return((t||cLe).jsx?uLe:lLe).test(e)}const dLe=/[ \t\n\f\r]/g;function UK(e){return typeof e=="object"?e.type==="text"?z9(e.value):!1:z9(e)}function z9(e){return e.replace(dLe,"")===""}class Z1{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Z1.prototype.property={};Z1.prototype.normal={};Z1.prototype.space=null;function jK(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&gLe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(H9,OLe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!H9.test(o)){let a=o.replace(bLe,yLe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=zP}return new i(r,t)}function yLe(e){return"-"+e.toLowerCase()}function OLe(e){return e.charAt(1).toUpperCase()}const vLe={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"},Sp=jK([HK,VK,YK,GK,hLe],"html"),Lu=jK([HK,VK,YK,GK,mLe],"svg");function Vy(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function VP(e){return e.join(" ").trim()}var qK={},W9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ELe=/\n/g,SLe=/^\s*/,TLe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wLe=/^:\s*/,kLe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xLe=/^[;\s]*/,CLe=/^\s+|\s+$/g,ALe=` +`,Q9="/",Y9="*",Sf="",_Le="comment",RLe="declaration",ILe=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(ELe);y&&(n+=y.length);var v=m.lastIndexOf(ALe);r=~v?m.length-v: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 v=y[0];return i(v),e=e.slice(v.length),y}}function u(){l(SLe)}function c(m){var y;for(m=m||[];y=d();)y!==!1&&m.push(y);return m}function d(){var m=o();if(!(Q9!=e.charAt(0)||Y9!=e.charAt(1))){for(var y=2;Sf!=e.charAt(y)&&(Y9!=e.charAt(y)||Q9!=e.charAt(y+1));)++y;if(y+=2,Sf===e.charAt(y-1))return s("End of comment missing");var v=e.slice(2,y-2);return r+=2,i(v),e=e.slice(y),r+=2,m({type:_Le,comment:v})}}function p(){var m=o(),y=l(TLe);if(y){if(d(),!l(wLe))return s("property missing ':'");var v=l(kLe),b=m({type:RLe,property:G9(y[0].replace(W9,Sf)),value:v?G9(v[0].replace(W9,Sf)):Sf});return l(xLe),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 G9(e){return e?e.replace(CLe,Sf):Sf}var NLe=rS&&rS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qK,"__esModule",{value:!0});var DLe=NLe(ILe);function PLe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,DLe.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 q9=qK.default=PLe;const LLe=q9.default||q9,Fk=ZK("end"),Mu=ZK("start");function ZK(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 MLe(e){const t=Mu(e),n=Fk(e);if(t&&n)return{start:t,end:n}}function xb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Z9(e.position):"start"in e||"end"in e?Z9(e):"line"in e||"column"in e?jR(e):""}function jR(e){return X9(e&&e.line)+":"+X9(e&&e.column)}function Z9(e){return jR(e&&e.start)+"-"+jR(e&&e.end)}function X9(e){return e&&typeof e=="number"?e:1}class $o 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=xb(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}}$o.prototype.file="";$o.prototype.name="";$o.prototype.reason="";$o.prototype.message="";$o.prototype.stack="";$o.prototype.column=void 0;$o.prototype.line=void 0;$o.prototype.ancestors=void 0;$o.prototype.cause=void 0;$o.prototype.fatal=void 0;$o.prototype.place=void 0;$o.prototype.ruleId=void 0;$o.prototype.source=void 0;const HP={}.hasOwnProperty,$Le=new Map,FLe=/[A-Z]/g,BLe=/-([a-z])/g,ULe=new Set(["table","tbody","thead","tfoot","tr"]),jLe=new Set(["td","th"]),XK="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zLe(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=ZLe(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=qLe(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:Sp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=KK(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function KK(e,t,n){if(t.type==="element")return VLe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return HLe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return QLe(e,t,n);if(t.type==="mdxjsEsm")return WLe(e,t);if(t.type==="root")return YLe(e,t,n);if(t.type==="text")return GLe(e,t)}function VLe(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=eJ(e,t.tagName,!1),a=XLe(e,t);let s=QP(e,t);return ULe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!UK(l):!0})),JK(e,a,o,t),WP(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function HLe(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)}Hy(e,t.position)}function WLe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Hy(e,t.position)}function QLe(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:eJ(e,t.name,!0),a=KLe(e,t),s=QP(e,t);return JK(e,a,o,t),WP(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function YLe(e,t,n){const r={};return WP(r,QP(e,t)),e.create(t,e.Fragment,r,n)}function GLe(e,t){return t.value}function JK(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function WP(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function qLe(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 ZLe(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 XLe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&HP.call(t.properties,i)){const o=JLe(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&jLe.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 KLe(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 Hy(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 Hy(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function QP(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:$Le;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?(ss(e,e.length,0,t),e):t}const ej={}.hasOwnProperty;function nJ(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 uMe=Kd(new RegExp("\\p{P}","u")),Zo=Kd(/[A-Za-z]/),Ro=Kd(/[\dA-Za-z]/),cMe=Kd(/[#-'*+\--9=?A-Z^-~]/);function xT(e){return e!==null&&(e<32||e===127)}const zR=Kd(/\d/),dMe=Kd(/[\dA-Fa-f]/),iJ=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 iJ(e)||uMe(e)}const pp=Kd(/\s/);function Kd(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function kg(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 M=E,D,R;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(D){R=t.events[M][1].end;break}D=!0}for(b(r),w=E;wS;){const A=n[k];t.containerState=A[1],A[0].exit.call(t,e)}n.length=S}function O(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gMe(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 CT(e){if(e===null||br(e)||pp(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);nj(d,-l),nj(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=Ps(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ps(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Ps(u,Uk(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ps(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=Ps(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ss(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Un(w)?Kn(e,O,"linePrefix",o+1)(w):O(w)}function O(w){return w===null||mn(w)?e.check(rj,y,k)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||mn(w)?(e.exit("codeFlowValue"),O(w)):(e.consume(w),S)}function k(w){return e.exit("codeFenced"),t(w)}function A(w,E,M){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)):M(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)):M(Q)}function z(Q){return Q===null||mn(Q)?(w.exit("codeFencedFence"),E(Q)):M(Q)}}}function AMe(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 CA={name:"codeIndented",tokenize:RMe},_Me={tokenize:IMe,partial:!0};function RMe(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(_Me,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 IMe(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 NMe={name:"codeText",tokenize:LMe,resolve:DMe,previous:PMe};function DMe(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 uJ(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||xT(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 dJ(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 Cb(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 zMe={name:"definition",tokenize:HMe},VMe={tokenize:WMe,partial:!0};function HMe(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return cJ.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)?Cb(e,u)(h):u(h)}function u(h){return uJ(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(VMe,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 WMe(e,t,n){return r;function r(s){return br(s)?Cb(e,i)(s):n(s)}function i(s){return dJ(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 QMe={name:"hardBreakEscape",tokenize:YMe};function YMe(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 GMe={name:"headingAtx",tokenize:ZMe,resolve:qMe};function qMe(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"},ss(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function ZMe(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 XMe=["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"],oj=["pre","script","style","textarea"],KMe={name:"htmlFlow",tokenize:n4e,resolveTo:t4e,concrete:!0},JMe={tokenize:i4e,partial:!0},e4e={tokenize:r4e,partial:!0};function t4e(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 n4e(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):Zo(G)?(e.consume(G),a=String.fromCharCode(G),v):n(G)}function p(G){return G===45?(e.consume(G),i=2,h):G===91?(e.consume(G),i=5,s=0,m):Zo(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 Zo(G)?(e.consume(G),a=String.fromCharCode(G),v):n(G)}function v(G){if(G===null||G===47||G===62||br(G)){const ue=G===47,ge=a.toLowerCase();return!ue&&!o&&oj.includes(ge)?(i=1,r.interrupt?t(G):U(G)):XMe.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?O(G):S(G))}return G===45||Ro(G)?(e.consume(G),a+=String.fromCharCode(G),v):n(G)}function b(G){return G===62?(e.consume(G),r.interrupt?t:U):n(G)}function O(G){return Un(G)?(e.consume(G),O):R(G)}function S(G){return G===47?(e.consume(G),R):G===58||G===95||Zo(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||Ro(G)?(e.consume(G),k):A(G)}function A(G){return G===61?(e.consume(G),w):Un(G)?(e.consume(G),A):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):M(G)}function E(G){return G===l?(e.consume(G),l=null,D):G===null||mn(G)?n(G):(e.consume(G),E)}function M(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||br(G)?A(G):(e.consume(G),M)}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(JMe,Ee,V)(G)):G===null||mn(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),U)}function V(G){return e.check(e4e,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 oj.includes(ue)?(e.consume(G),le):U(G)}return Zo(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 r4e(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 i4e(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(X1,t,n)}}const o4e={name:"htmlText",tokenize:a4e};function a4e(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),A):j===63?(e.consume(j),S):Zo(j)?(e.consume(j),M):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),o=0,m):Zo(j)?(e.consume(j),O):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),v):mn(j)?(a=y,Z(j)):(e.consume(j),y)}function v(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 O(j){return j===null||j===62?X(j):mn(j)?(a=O,Z(j)):(e.consume(j),O)}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 A(j){return Zo(j)?(e.consume(j),w):n(j)}function w(j){return j===45||Ro(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 M(j){return j===45||Ro(j)?(e.consume(j),M):j===47||j===62||br(j)?D(j):n(j)}function D(j){return j===47?(e.consume(j),X):j===58||j===95||Zo(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||Ro(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 GP={name:"labelEnd",tokenize:f4e,resolveTo:d4e,resolveAll:c4e},s4e={tokenize:p4e},l4e={tokenize:h4e},u4e={tokenize:m4e};function c4e(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 ca={name:"list",tokenize:w4e,continuation:{tokenize:k4e},exit:C4e},S4e={tokenize:A4e,partial:!0},T4e={tokenize:x4e,partial:!0};function w4e(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:zR(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($E,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 zR(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(X1,r.interrupt?n:c,e.attempt(S4e,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 k4e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(X1,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(T4e,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Kn(e,e.attempt(ca,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function x4e(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 C4e(e){e.exit(this.containerState.type)}function A4e(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 aj={name:"setextUnderline",tokenize:R4e,resolveTo:_4e};function _4e(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 R4e(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 I4e={tokenize:N4e};function N4e(e){const t=this,n=e.attempt(X1,r,e.attempt(this.parser.constructs.flowInitial,i,Kn(e,e.attempt(this.parser.constructs.flow,i,e.attempt($Me,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 D4e={resolveAll:pJ()},P4e=fJ("string"),L4e=fJ("text");function fJ(e){return{tokenize:t,resolveAll:pJ(e==="text"?M4e: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 B4e(e,t){let n=-1;const r=[];let i;for(;++n0){const nt=ce.tokenStack[ce.tokenStack.length-1];(nt[1]||aj).call(ce,void 0,nt[0])}for(de.position={start:Fc(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Fc(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 n5e(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 r5e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function uJ(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 i5e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return uJ(e,t);const i={src:Tg(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 o5e(e,t){const n={src:Tg(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 a5e(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 s5e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return uJ(e,t);const i={href:Tg(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 l5e(e,t){const n={href:Tg(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 u5e(e,t,n){const r=e.all(t),i=n?c5e(n):cJ(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 nt=ce.tokenStack[ce.tokenStack.length-1];(nt[1]||lj).call(ce,void 0,nt[0])}for(de.position={start:Fc(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Fc(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 f5e(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 p5e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function gJ(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 h5e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return gJ(e,t);const i={src:kg(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 m5e(e,t){const n={src:kg(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 g5e(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 b5e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return gJ(e,t);const i={href:kg(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 y5e(e,t){const n={href:kg(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 O5e(e,t,n){const r=e.all(t),i=n?v5e(n):bJ(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 d5e(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=$k(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 g5e(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(uj(t.slice(i),i>0,!1)),o.join("")}function uj(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===sj||o===lj;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===sj||o===lj;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function O5e(e,t){const n={type:"text",value:y5e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function v5e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const E5e={blockquote:Z4e,break:X4e,code:K4e,delete:J4e,emphasis:e5e,footnoteReference:t5e,heading:n5e,html:r5e,imageReference:i5e,image:o5e,inlineCode:a5e,linkReference:s5e,link:l5e,listItem:u5e,list:d5e,paragraph:f5e,root:p5e,strong:h5e,table:m5e,tableCell:b5e,tableRow:g5e,text:O5e,thematicBreak:v5e,toml:Vv,yaml:Vv,definition:Vv,footnoteDefinition:Vv};function Vv(){}const dJ=-1,Uk=0,AT=1,_T=2,qP=3,ZP=4,XP=5,KP=6,fJ=7,pJ=8,cj=typeof self=="object"?self:globalThis,S5e=(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 Uk:case dJ:return n(a,i);case AT:{const s=n([],i);for(const l of a)s.push(r(l));return s}case _T:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case qP:return n(new Date(a),i);case ZP:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case XP:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case KP:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case fJ:{const{name:s,message:l}=a;return n(new cj[s](l),i)}case pJ:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new cj[o](a),i)};return r},dj=e=>S5e(new Map,e)(0),Jp="",{toString:T5e}={},{keys:w5e}=Object,S0=e=>{const t=typeof e;if(t!=="object"||!e)return[Uk,t];const n=T5e.call(e).slice(8,-1);switch(n){case"Array":return[AT,Jp];case"Object":return[_T,Jp];case"Date":return[qP,Jp];case"RegExp":return[ZP,Jp];case"Map":return[XP,Jp];case"Set":return[KP,Jp]}return n.includes("Array")?[AT,n]:n.includes("Error")?[fJ,n]:[_T,n]},Hv=([e,t])=>e===Uk&&(t==="function"||t==="symbol"),k5e=(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]=S0(a);switch(s){case Uk:{let c=a;switch(l){case"bigint":s=pJ,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([dJ],a)}return i([s,c],a)}case AT:{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 _T:{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 w5e(a))(e||!Hv(S0(a[p])))&&c.push([o(p),o(a[p])]);return d}case qP:return i([s,a.toISOString()],a);case ZP:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case XP:{const c=[],d=i([s,c],a);for(const[p,h]of a)(e||!(Hv(S0(p))||Hv(S0(h))))&&c.push([o(p),o(h)]);return d}case KP:{const c=[],d=i([s,c],a);for(const p of a)(e||!Hv(S0(p)))&&c.push(o(p));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},fj=(e,{json:t,lossy:n}={})=>{const r=[];return k5e(!(t||n),!!t,new Map,r)(e),r},hp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?dj(fj(e,t)):structuredClone(e):(e,t)=>dj(fj(e,t));function x5e(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 C5e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function A5e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||x5e,r=e.options.footnoteBackLabel||C5e,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:{...hp(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 v5e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function E5e(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 x5e(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(dj(t.slice(i),i>0,!1)),o.join("")}function dj(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===uj||o===cj;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===uj||o===cj;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function _5e(e,t){const n={type:"text",value:A5e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function R5e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const I5e={blockquote:a5e,break:s5e,code:l5e,delete:u5e,emphasis:c5e,footnoteReference:d5e,heading:f5e,html:p5e,imageReference:h5e,image:m5e,inlineCode:g5e,linkReference:b5e,link:y5e,listItem:O5e,list:E5e,paragraph:S5e,root:T5e,strong:w5e,table:k5e,tableCell:C5e,tableRow:x5e,text:_5e,thematicBreak:R5e,toml:Vv,yaml:Vv,definition:Vv,footnoteDefinition:Vv};function Vv(){}const yJ=-1,jk=0,AT=1,_T=2,qP=3,ZP=4,XP=5,KP=6,OJ=7,vJ=8,fj=typeof self=="object"?self:globalThis,N5e=(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 yJ:return n(a,i);case AT:{const s=n([],i);for(const l of a)s.push(r(l));return s}case _T:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case qP:return n(new Date(a),i);case ZP:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case XP:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case KP:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case OJ:{const{name:s,message:l}=a;return n(new fj[s](l),i)}case vJ:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new fj[o](a),i)};return r},pj=e=>N5e(new Map,e)(0),Jp="",{toString:D5e}={},{keys:P5e}=Object,T0=e=>{const t=typeof e;if(t!=="object"||!e)return[jk,t];const n=D5e.call(e).slice(8,-1);switch(n){case"Array":return[AT,Jp];case"Object":return[_T,Jp];case"Date":return[qP,Jp];case"RegExp":return[ZP,Jp];case"Map":return[XP,Jp];case"Set":return[KP,Jp]}return n.includes("Array")?[AT,n]:n.includes("Error")?[OJ,n]:[_T,n]},Hv=([e,t])=>e===jk&&(t==="function"||t==="symbol"),L5e=(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]=T0(a);switch(s){case jk:{let c=a;switch(l){case"bigint":s=vJ,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([yJ],a)}return i([s,c],a)}case AT:{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 _T:{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 P5e(a))(e||!Hv(T0(a[p])))&&c.push([o(p),o(a[p])]);return d}case qP:return i([s,a.toISOString()],a);case ZP:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case XP:{const c=[],d=i([s,c],a);for(const[p,h]of a)(e||!(Hv(T0(p))||Hv(T0(h))))&&c.push([o(p),o(h)]);return d}case KP:{const c=[],d=i([s,c],a);for(const p of a)(e||!Hv(T0(p)))&&c.push(o(p));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},hj=(e,{json:t,lossy:n}={})=>{const r=[];return L5e(!(t||n),!!t,new Map,r)(e),r},hp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?pj(hj(e,t)):structuredClone(e):(e,t)=>pj(hj(e,t));function M5e(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 $5e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function F5e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||M5e,r=e.options.footnoteBackLabel||$5e,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 O=typeof n=="string"?n:n(l,h);typeof O=="string"&&(O={type:"text",value:O}),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(O)?O:[O]})}const v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const O=v.children[v.children.length-1];O&&O.type==="text"?O.value+=" ":v.children.push({type:"text",value:" "}),v.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:{...hp(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 K1=function(e){if(e==null)return N5e;if(typeof e=="function")return jk(e);if(typeof e=="object")return Array.isArray(e)?_5e(e):R5e(e);if(typeof e=="string")return I5e(e);throw new Error("Expected function, string, or object as test")};function _5e(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let h=hJ,m,y,O;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=L5e(n(l,c)),h[0]===RT))return h;if("children"in l&&l.children){const b=l;if(b.children&&h[0]!==xb)for(y=(r?b.children.length:-1)+a,O=c.concat(b);y>-1&&y":""))+")"})}return p;function p(){let h=EJ,m,y,v;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=W5e(n(l,c)),h[0]===RT))return h;if("children"in l&&l.children){const b=l;if(b.children&&h[0]!==Ab)for(y=(r?b.children.length:-1)+a,v=c.concat(b);y>-1&&y0&&n.push({type:"text",value:` -`}),n}function pj(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hj(e,t){const n=$5e(e,t),r=n.one(e,void 0),i=A5e(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` -`},i),o}function z5e(e,t){return e&&"run"in e?async function(n,r){const i=hj(n,{file:r,...t});await e.run(i,r)}:function(n,r){return hj(n,{file:r,...t||e})}}function mj(e){if(e)throw e}var BE=Object.prototype.hasOwnProperty,gJ=Object.prototype.toString,gj=Object.defineProperty,bj=Object.getOwnPropertyDescriptor,yj=function(t){return typeof Array.isArray=="function"?Array.isArray(t):gJ.call(t)==="[object Array]"},Oj=function(t){if(!t||gJ.call(t)!=="[object Object]")return!1;var n=BE.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&BE.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||BE.call(t,i)},vj=function(t,n){gj&&n.name==="__proto__"?gj(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ej=function(t,n){if(n==="__proto__")if(BE.call(t,n)){if(bj)return bj(t,n).value}else return;return t[n]},V5e=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:Q5e,dirname:Y5e,extname:G5e,join:q5e,sep:"/"};function Q5e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');J1(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 Y5e(e){if(J1(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 G5e(e){J1(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 q5e(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function X5e(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 J1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const K5e={cwd:J5e};function J5e(){return"/"}function QR(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function e$e(e){if(typeof e=="string")e=new URL(e);else if(!QR(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 t$e(e)}function t$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];WR(y)&&WR(h)&&(h=AA(!0,y,h)),r[p]=[u,h,...m]}}}}const o$e=new JP().freeze();function NA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function DA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function PA(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 Tj(e){if(!WR(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function wj(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Wv(e){return a$e(e)?e:new bJ(e)}function a$e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function s$e(e){return typeof e=="string"||l$e(e)}function l$e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const u$e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",kj=[],xj={allowDangerousHtml:!0},c$e=/^(https?|ircs?|mailto|xmpp)$/i,d$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 f$e(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,...xj}:xj,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||p$e,h=o$e().use(q4e).use(l).use(z5e,u).use(s),m=new bJ;typeof r=="string"&&(m.value=r);for(const v of d$e)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+u$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]}),Ca(O,b),NLe(O,{Fragment:$.Fragment,components:o,ignoreInvalidStyle:!0,jsx:$.jsx,jsxs:$.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 A;for(A in kA)if(Object.hasOwn(kA,A)&&Object.hasOwn(v.properties,A)){const w=v.properties[A],E=kA[A];(E===null||E.includes(v.tagName))&&(v.properties[A]=p(String(w||""),A,v))}}if(v.type==="element"){let A=t?!t.includes(v.tagName):a?a.includes(v.tagName):!1;if(!A&&n&&typeof S=="number"&&(A=!n(v,S,k)),A&&k&&typeof S=="number")return d&&v.children?k.children.splice(S,1,...v.children):k.children.splice(S,1),S}}}function p$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||c$e.test(e.slice(0,t))?e:""}function Cj(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 h$e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function m$e(e,t,n){const i=K1((n||{}).ignore||[]),o=g$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=Cj(e,"(");let o=Cj(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 yJ(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||pp(n)||Fk(n))&&(!t||n!==47)}OJ.peek=j$e;function I$e(){return{enter:{gfmFootnoteDefinition:D$e,gfmFootnoteDefinitionLabelString:P$e,gfmFootnoteCall:$$e,gfmFootnoteCallString:F$e},exit:{gfmFootnoteDefinition:M$e,gfmFootnoteDefinitionLabelString:L$e,gfmFootnoteCall:U$e,gfmFootnoteCallString:B$e}}}function N$e(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:z$e,footnoteReference:OJ}}}function D$e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function P$e(){this.buffer()}function L$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 M$e(e){this.exit(e)}function $$e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function F$e(){this.buffer()}function B$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 U$e(e){this.exit(e)}function OJ(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 z$e(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()),V$e)),a(),o}function V$e(e,t,n){return t===0?e:(n?"":" ")+e}const H$e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];vJ.peek=q$e;function W$e(){return{canContainEols:["delete"],enter:{strikethrough:Y$e},exit:{strikethrough:G$e}}}function Q$e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:H$e}],handlers:{delete:vJ}}}function Y$e(e){this.enter({type:"delete",children:[]},e)}function G$e(e){this.exit(e)}function vJ(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 q$e(){return"~"}function Z$e(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||K$e,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()),eFe);return i(),a}function eFe(e,t,n){return">"+(n?"":" ")+e}function tFe(e,t){return Rj(e,t.inConstruct,!0)&&!Rj(e,t.notInConstruct,!1)}function Rj(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 rFe(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 iFe(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 oFe(e,t,n,r){const i=iFe(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(rFe(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,aFe);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(nFe(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 mj(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function gj(e,t){const n=Y5e(e,t),r=n.one(e,void 0),i=F5e(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` +`},i),o}function K5e(e,t){return e&&"run"in e?async function(n,r){const i=gj(n,{file:r,...t});await e.run(i,r)}:function(n,r){return gj(n,{file:r,...t||e})}}function bj(e){if(e)throw e}var FE=Object.prototype.hasOwnProperty,TJ=Object.prototype.toString,yj=Object.defineProperty,Oj=Object.getOwnPropertyDescriptor,vj=function(t){return typeof Array.isArray=="function"?Array.isArray(t):TJ.call(t)==="[object Array]"},Ej=function(t){if(!t||TJ.call(t)!=="[object Object]")return!1;var n=FE.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&FE.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||FE.call(t,i)},Sj=function(t,n){yj&&n.name==="__proto__"?yj(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Tj=function(t,n){if(n==="__proto__")if(FE.call(t,n)){if(Oj)return Oj(t,n).value}else return;return t[n]},J5e=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:n$e,dirname:r$e,extname:i$e,join:o$e,sep:"/"};function n$e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');J1(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 r$e(e){if(J1(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 i$e(e){J1(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 o$e(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function s$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 J1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const l$e={cwd:u$e};function u$e(){return"/"}function QR(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function c$e(e){if(typeof e=="string")e=new URL(e);else if(!QR(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 d$e(e)}function d$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];WR(y)&&WR(h)&&(h=_A(!0,y,h)),r[p]=[u,h,...m]}}}}const m$e=new JP().freeze();function DA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function PA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function LA(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 kj(e){if(!WR(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 Wv(e){return g$e(e)?e:new wJ(e)}function g$e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function b$e(e){return typeof e=="string"||y$e(e)}function y$e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const O$e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Cj=[],Aj={allowDangerousHtml:!0},v$e=/^(https?|ircs?|mailto|xmpp)$/i,E$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 S$e(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Cj,l=e.remarkPlugins||Cj,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Aj}:Aj,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||T$e,h=m$e().use(o5e).use(l).use(K5e,u).use(s),m=new wJ;typeof r=="string"&&(m.value=r);for(const O of E$e)Object.hasOwn(e,O.from)&&(""+O.from+(O.to?"use `"+O.to+"` instead":"remove it")+O$e+O.id,void 0);const y=h.parse(m);let v=h.runSync(y,m);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:v.type==="root"?v.children:[v]}),Ca(v,b),zLe(v,{Fragment:$.Fragment,components:o,ignoreInvalidStyle:!0,jsx:$.jsx,jsxs:$.jsxs,passKeys:!0,passNode:!0});function b(O,S,k){if(O.type==="raw"&&k&&typeof S=="number")return c?k.children.splice(S,1):k.children[S]={type:"text",value:O.value},S;if(O.type==="element"){let A;for(A in xA)if(Object.hasOwn(xA,A)&&Object.hasOwn(O.properties,A)){const w=O.properties[A],E=xA[A];(E===null||E.includes(O.tagName))&&(O.properties[A]=p(String(w||""),A,O))}}if(O.type==="element"){let A=t?!t.includes(O.tagName):a?a.includes(O.tagName):!1;if(!A&&n&&typeof S=="number"&&(A=!n(O,S,k)),A&&k&&typeof S=="number")return d&&O.children?k.children.splice(S,1,...O.children):k.children.splice(S,1),S}}}function T$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||v$e.test(e.slice(0,t))?e:""}function _j(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 w$e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function k$e(e,t,n){const i=K1((n||{}).ignore||[]),o=x$e(t);let a=-1;for(;++a0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=k+1:(m!==k&&O.push({type:"text",value:u.value.slice(m,k)}),Array.isArray(w)?O.push(...w):w&&O.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=_j(e,"(");let o=_j(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 kJ(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||pp(n)||Bk(n))&&(!t||n!==47)}xJ.peek=X$e;function j$e(){return{enter:{gfmFootnoteDefinition:V$e,gfmFootnoteDefinitionLabelString:H$e,gfmFootnoteCall:Y$e,gfmFootnoteCallString:G$e},exit:{gfmFootnoteDefinition:Q$e,gfmFootnoteDefinitionLabelString:W$e,gfmFootnoteCall:Z$e,gfmFootnoteCallString:q$e}}}function z$e(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:K$e,footnoteReference:xJ}}}function V$e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function H$e(){this.buffer()}function W$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 Q$e(e){this.exit(e)}function Y$e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function G$e(){this.buffer()}function q$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 Z$e(e){this.exit(e)}function xJ(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 X$e(){return"["}function K$e(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()),J$e)),a(),o}function J$e(e,t,n){return t===0?e:(n?"":" ")+e}const eFe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];CJ.peek=oFe;function tFe(){return{canContainEols:["delete"],enter:{strikethrough:rFe},exit:{strikethrough:iFe}}}function nFe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eFe}],handlers:{delete:CJ}}}function rFe(e){this.enter({type:"delete",children:[]},e)}function iFe(e){this.exit(e)}function CJ(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 oFe(){return"~"}function aFe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||lFe,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++vs[v])&&(s[v]=O)}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]=O}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()),cFe);return i(),a}function cFe(e,t,n){return">"+(n?"":" ")+e}function dFe(e,t){return Nj(e,t.inConstruct,!0)&&!Nj(e,t.notInConstruct,!1)}function Nj(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 pFe(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 hFe(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 mFe(e,t,n,r){const i=hFe(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(pFe(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,gFe);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(fFe(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 aFe(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 sFe(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 lFe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}EJ.peek=uFe;function EJ(e,t,n,r){const i=lFe(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 uFe(e,t,n){return n.options.emphasis||"*"}function cFe(e,t){let n=!1;return Ca(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,RT}),!!((!e.depth||e.depth<3)&&YP(e)&&(t.options.setext||n))}function dFe(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(cFe(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 gFe(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 bFe(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 yFe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}AJ.peek=OFe;function AJ(e,t,n,r){const i=yFe(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 OFe(e,t,n){return n.options.emphasis||"*"}function vFe(e,t){let n=!1;return Ca(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,RT}),!!((!e.depth||e.depth<3)&&YP(e)&&(t.options.setext||n))}function EFe(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(vFe(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}SJ.peek=fFe;function SJ(e){return e.value||""}function fFe(){return"<"}TJ.peek=pFe;function TJ(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 pFe(){return"!"}wJ.peek=hFe;function wJ(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 hFe(){return"!"}kJ.peek=mFe;function kJ(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))}CJ.peek=gFe;function CJ(e,t,n,r){const i=t3(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(xJ(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 gFe(e,t,n){return xJ(e,n)?"<":"["}AJ.peek=bFe;function AJ(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 bFe(){return"["}function n3(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 yFe(e){const t=n3(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 OFe(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 _J(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 vFe(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?OFe(n):n3(n);const s=e.ordered?a==="."?")":".":yFe(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),_J(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 TFe(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const wFe=K1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function kFe(e,t,n,r){return(e.children.some(function(a){return wFe(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function xFe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}RJ.peek=CFe;function RJ(e,t,n,r){const i=xFe(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 CFe(e,t,n){return n.options.strong||"*"}function AFe(e,t,n,r){return n.safe(e.value,r)}function _Fe(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 RFe(e,t,n){const r=(_J(n)+(n.options.ruleSpaces?" ":"")).repeat(_Fe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const IJ={blockquote:J$e,break:Ij,code:oFe,definition:sFe,emphasis:EJ,hardBreak:Ij,heading:dFe,html:SJ,image:TJ,imageReference:wJ,inlineCode:kJ,link:CJ,linkReference:AJ,list:vFe,listItem:SFe,paragraph:TFe,root:kFe,strong:RJ,text:AFe,thematicBreak:RFe};function IFe(){return{enter:{table:NFe,tableData:Nj,tableHeader:Nj,tableRow:PFe},exit:{codeText:LFe,table:DFe,tableData:FA,tableHeader:FA,tableRow:FA}}}function NFe(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 DFe(e){this.exit(e),this.data.inTable=void 0}function PFe(e){this.enter({type:"tableRow",children:[]},e)}function FA(e){this.exit(e)}function Nj(e){this.enter({type:"tableCell",children:[]},e)}function LFe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,MFe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function MFe(e,t){return t==="|"?t:e}function $Fe(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 Z$e(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 t6e={tokenize:u6e,partial:!0};function n6e(){return{document:{91:{tokenize:a6e,continuation:{tokenize:s6e},exit:l6e}},text:{91:{tokenize:o6e},93:{add:"after",tokenize:r6e,resolveTo:i6e}}}}function r6e(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 i6e(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 o6e(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 a6e(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 s6e(e,t,n){return e.check(X1,t,e.attempt(t6e,t,n))}function l6e(e){e.exit("gfmFootnoteDefinition")}function u6e(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 c6e(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=CT(m);return O._open=!b||b===2&&!!y,O._close=!y||y===2&&!!b,s(m)}}}class d6e{constructor(){this.map=[]}add(t,n,r){f6e(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 f6e(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):A(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):A(R)}function b(R){return R===45?(e.enter("tableDelimiterFiller"),v(R)):A(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?A(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):A(R)}function A(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"),M(R))}function M(R){return R===null||R===124||br(R)?(e.exit("data"),E(R)):(e.consume(R),R===92?D:M)}function D(R){return R===92||R===124?(e.consume(R),M):M(R)}}function g6e(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 d6e;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({},fh(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Pj(e,t,n,r,i){const o=[],a=fh(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 fh(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const b6e={tokenize:O6e};function y6e(){return{text:{91:b6e}}}function O6e(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:v6e},t,n)(l):n(l)}}function v6e(e,t,n){return Kn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function E6e(e){return qK([QFe(),n6e(),c6e(e),h6e(),y6e()])}const S6e={};function T6e(e){const t=this,n=e||S6e,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(E6e(n)),o.push(zFe()),a.push(VFe(n))}const Lj=/[#.]/g;function w6e(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 Z6e(e){return e>=56320&&e<=57343}function X6e(e,t){return(e-55296)*1024+9216+t}function WJ(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function QJ(e){return e>=64976&&e<=65007||q6e.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 K6e=65536;class J6e{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=K6e,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(Z6e(n))return this.pos++,this._addGap(),X6e(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,HJ(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){WJ(t)?this._err(Xe.controlCharacterInInputStream):QJ(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 Uc=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))),eBe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var UA;const tBe=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]]),nBe=(UA=String.fromCodePoint)!==null&&UA!==void 0?UA: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 rBe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=tBe.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 iBe=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 ZR(e){return e>=Yi.ZERO&&e<=Yi.NINE}function oBe(e){return e>=Yi.UPPER_A&&e<=Yi.UPPER_F||e>=Yi.LOWER_A&&e<=Yi.LOWER_F}function aBe(e){return e>=Yi.UPPER_A&&e<=Yi.UPPER_Z||e>=Yi.LOWER_A&&e<=Yi.LOWER_Z||ZR(e)}function sBe(e){return e===Yi.EQUALS||aBe(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 lBe{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)|iBe)===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 GJ(e){let t="";const n=new lBe(e,r=>t+=nBe(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 qJ(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}GJ(Uc);GJ(eBe);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 Za;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Za=Za||(Za={}));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 uBe=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 kg(e){var t;return(t=uBe.get(e))!==null&&t!==void 0?t:I.UNKNOWN}const bt=I,cBe={[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 ZJ(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 dBe=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 hi={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function Cb(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function Y0(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function fBe(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function jc(e){return fBe(e)||Y0(e)}function XR(e){return jc(e)||Cb(e)}function XJ(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_F}function KJ(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_F}function pBe(e){return Cb(e)||XJ(e)||KJ(e)}function Yv(e){return e+32}function JJ(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function hBe(e){return e===ne.EQUALS_SIGN||XR(e)}function Fj(e){return JJ(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}class mBe{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 J6e(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=JJ(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=Uc[0];o>=0&&(o=qJ(Uc,a,o+1,t),!(o<0));t=this._consume()){r+=1,a=Uc[o];const s=a&bu.VALUE_LENGTH;if(s){const l=(s>>14)-1;if(t!==ne.SEMICOLON&&this._isCharacterReferenceInAttribute()&&hBe(this.preprocessor.peek(1))?(n=[ne.AMPERSAND],o+=l):(n=l===0?[Uc[o]&~bu.VALUE_LENGTH]:l===1?[Uc[++o]]:[Uc[++o],Uc[++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(jc(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(jc(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:jc(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){jc(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(ua.SCRIPT,!1)&&Fj(this.preprocessor.peek(ua.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Xe.characterReferenceOutsideUnicodeRange),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(HJ(this.charRefCode))this._err(Xe.surrogateCharacterReference),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(QJ(this.charRefCode))this._err(Xe.noncharacterCharacterReference);else if(WJ(this.charRefCode)||this.charRefCode===ne.CARRIAGE_RETURN){this._err(Xe.controlCharacterReference);const n=dBe.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const eee=new Set([I.DD,I.DT,I.LI,I.OPTGROUP,I.OPTION,I.P,I.RB,I.RP,I.RT,I.RTC]),Bj=new Set([...eee,I.CAPTION,I.COLGROUP,I.TBODY,I.TD,I.TFOOT,I.TH,I.THEAD,I.TR]),Gv=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]]),gBe=[I.H1,I.H2,I.H3,I.H4,I.H5,I.H6],bBe=[I.TR,I.TEMPLATE,I.HTML],yBe=[I.TBODY,I.TFOOT,I.THEAD,I.TEMPLATE,I.HTML],OBe=[I.TABLE,I.TEMPLATE,I.HTML],vBe=[I.TD,I.TH];class EBe{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(OBe,st.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yBe,st.HTML)}clearBackToTableRowContext(){this.clearBackTo(bBe,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(Gv.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(ZJ(n)&&r===st.HTML)return!0;if(Gv.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||Gv.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||Gv.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(;eee.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Bj.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Bj.has(this.currentTagId);)this.pop()}}const jA=3;var gl;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(gl=gl||(gl={}));const Uj={type:gl.Marker};class SBe{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>=jA&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Uj)}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(Uj);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 jj(e){return{nodeName:"#text",value:e,parentNode:null}}const ph={createDocument(){return{nodeName:"#document",mode:Za.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};ph.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(ph.isTextNode(n)){n.value+=t;return}}ph.appendChild(e,jj(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ph.isTextNode(r)?r.value+=t:ph.insertBefore(e,jj(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function ABe(e){return e.name===tee&&e.publicId===null&&(e.systemId===null||e.systemId===TBe)}function _Be(e){if(e.name!==tee)return Za.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===wBe)return Za.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),xBe.has(n))return Za.QUIRKS;let r=t===null?kBe:nee;if(zj(n,r))return Za.QUIRKS;if(r=t===null?ree:CBe,zj(n,r))return Za.LIMITED_QUIRKS}return Za.NO_QUIRKS}const Vj={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},RBe="definitionurl",IBe="definitionURL",NBe=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])),DBe=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}]]),PBe=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])),LBe=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 MBe(e){const t=e.tagID;return t===I.FONT&&e.attrs.some(({name:r})=>r===_d.COLOR||r===_d.SIZE||r===_d.FACE)||LBe.has(t)}function iee(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=hi.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=hi.RCDATA;break}case I.STYLE:case I.XMP:case I.IFRAME:case I.NOEMBED:case I.NOFRAMES:case I.NOSCRIPT:{this.tokenizer.state=hi.RAWTEXT;break}case I.SCRIPT:{this.tokenizer.state=hi.SCRIPT_DATA;break}case I.PLAINTEXT:{this.tokenizer.state=hi.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 UBe(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 aee.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 cBe[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){vUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{T0(this,t);break}case me.BEFORE_HTML:{Ab(this,t);break}case me.BEFORE_HEAD:{_b(this,t);break}case me.IN_HEAD:{Rb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Ib(this,t);break}case me.AFTER_HEAD:{Nb(this,t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:{lee(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:{zA(this,t);break}case me.IN_TABLE_TEXT:{hee(this,t);break}case me.IN_COLUMN_GROUP:{IT(this,t);break}case me.AFTER_BODY:{NT(this,t);break}case me.AFTER_AFTER_BODY:{jE(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){OUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{T0(this,t);break}case me.BEFORE_HTML:{Ab(this,t);break}case me.BEFORE_HEAD:{_b(this,t);break}case me.IN_HEAD:{Rb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Ib(this,t);break}case me.AFTER_HEAD:{Nb(this,t);break}case me.TEXT:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{zA(this,t);break}case me.IN_COLUMN_GROUP:{IT(this,t);break}case me.AFTER_BODY:{NT(this,t);break}case me.AFTER_AFTER_BODY:{jE(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){KR(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:{KR(this,t);break}case me.IN_TABLE_TEXT:{w0(this,t);break}case me.AFTER_BODY:{XBe(this,t);break}case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{KBe(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case me.INITIAL:{JBe(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:{w0(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)?EUe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{T0(this,t);break}case me.BEFORE_HTML:{e8e(this,t);break}case me.BEFORE_HEAD:{n8e(this,t);break}case me.IN_HEAD:{Fl(this,t);break}case me.IN_HEAD_NO_SCRIPT:{o8e(this,t);break}case me.AFTER_HEAD:{s8e(this,t);break}case me.IN_BODY:{Fo(this,t);break}case me.IN_TABLE:{Xm(this,t);break}case me.IN_TABLE_TEXT:{w0(this,t);break}case me.IN_CAPTION:{rUe(this,t);break}case me.IN_COLUMN_GROUP:{u3(this,t);break}case me.IN_TABLE_BODY:{Hk(this,t);break}case me.IN_ROW:{Wk(this,t);break}case me.IN_CELL:{aUe(this,t);break}case me.IN_SELECT:{bee(this,t);break}case me.IN_SELECT_IN_TABLE:{lUe(this,t);break}case me.IN_TEMPLATE:{cUe(this,t);break}case me.AFTER_BODY:{fUe(this,t);break}case me.IN_FRAMESET:{pUe(this,t);break}case me.AFTER_FRAMESET:{mUe(this,t);break}case me.AFTER_AFTER_BODY:{bUe(this,t);break}case me.AFTER_AFTER_FRAMESET:{yUe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?SUe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{T0(this,t);break}case me.BEFORE_HTML:{t8e(this,t);break}case me.BEFORE_HEAD:{r8e(this,t);break}case me.IN_HEAD:{i8e(this,t);break}case me.IN_HEAD_NO_SCRIPT:{a8e(this,t);break}case me.AFTER_HEAD:{l8e(this,t);break}case me.IN_BODY:{Vk(this,t);break}case me.TEXT:{Y8e(this,t);break}case me.IN_TABLE:{Hy(this,t);break}case me.IN_TABLE_TEXT:{w0(this,t);break}case me.IN_CAPTION:{iUe(this,t);break}case me.IN_COLUMN_GROUP:{oUe(this,t);break}case me.IN_TABLE_BODY:{JR(this,t);break}case me.IN_ROW:{gee(this,t);break}case me.IN_CELL:{sUe(this,t);break}case me.IN_SELECT:{yee(this,t);break}case me.IN_SELECT_IN_TABLE:{uUe(this,t);break}case me.IN_TEMPLATE:{dUe(this,t);break}case me.AFTER_BODY:{vee(this,t);break}case me.IN_FRAMESET:{hUe(this,t);break}case me.AFTER_FRAMESET:{gUe(this,t);break}case me.AFTER_AFTER_BODY:{jE(this,t);break}}}onEof(t){switch(this.insertionMode){case me.INITIAL:{T0(this,t);break}case me.BEFORE_HTML:{Ab(this,t);break}case me.BEFORE_HEAD:{_b(this,t);break}case me.IN_HEAD:{Rb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Ib(this,t);break}case me.AFTER_HEAD:{Nb(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:{fee(this,t);break}case me.TEXT:{G8e(this,t);break}case me.IN_TABLE_TEXT:{w0(this,t);break}case me.IN_TEMPLATE:{Oee(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:{l3(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:{see(this,t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{zA(this,t);break}case me.IN_TABLE_TEXT:{pee(this,t);break}}}}function WBe(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):dee(e,t),n}function QBe(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 YBe(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>=VBe;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=GBe(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function GBe(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 qBe(e,t,n){const r=e.treeAdapter.getTagName(t),i=kg(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 ZBe(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 s3(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 JBe(e,t){e._setDocumentType(t);const n=t.forceQuirks?Za.QUIRKS:_Be(t);ABe(t)||e._err(t,Xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=me.BEFORE_HTML}function T0(e,t){e._err(t,Xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Za.QUIRKS),e.insertionMode=me.BEFORE_HTML,e._processToken(t)}function e8e(e,t){t.tagID===I.HTML?(e._insertElement(t,st.HTML),e.insertionMode=me.BEFORE_HEAD):Ab(e,t)}function t8e(e,t){const n=t.tagID;(n===I.HTML||n===I.HEAD||n===I.BODY||n===I.BR)&&Ab(e,t)}function Ab(e,t){e._insertFakeRootElement(),e.insertionMode=me.BEFORE_HEAD,e._processToken(t)}function n8e(e,t){switch(t.tagID){case I.HTML:{Fo(e,t);break}case I.HEAD:{e._insertElement(t,st.HTML),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD;break}default:_b(e,t)}}function r8e(e,t){const n=t.tagID;n===I.HEAD||n===I.BODY||n===I.HTML||n===I.BR?_b(e,t):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function _b(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:{Fo(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,hi.RCDATA);break}case I.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,hi.RAWTEXT):(e._insertElement(t,st.HTML),e.insertionMode=me.IN_HEAD_NO_SCRIPT);break}case I.NOFRAMES:case I.STYLE:{e._switchToTextParsing(t,hi.RAWTEXT);break}case I.SCRIPT:{e._switchToTextParsing(t,hi.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:Rb(e,t)}}function i8e(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:{Rb(e,t);break}case I.TEMPLATE:{Tp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Tp(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 Rb(e,t){e.openElements.pop(),e.insertionMode=me.AFTER_HEAD,e._processToken(t)}function o8e(e,t){switch(t.tagID){case I.HTML:{Fo(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:Ib(e,t)}}function a8e(e,t){switch(t.tagID){case I.NOSCRIPT:{e.openElements.pop(),e.insertionMode=me.IN_HEAD;break}case I.BR:{Ib(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Ib(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 s8e(e,t){switch(t.tagID){case I.HTML:{Fo(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:Nb(e,t)}}function l8e(e,t){switch(t.tagID){case I.BODY:case I.HTML:case I.BR:{Nb(e,t);break}case I.TEMPLATE:{Tp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Nb(e,t){e._insertFakeElement(Fe.BODY,I.BODY),e.insertionMode=me.IN_BODY,zk(e,t)}function zk(e,t){switch(t.type){case Pn.CHARACTER:{lee(e,t);break}case Pn.WHITESPACE_CHARACTER:{see(e,t);break}case Pn.COMMENT:{KR(e,t);break}case Pn.START_TAG:{Fo(e,t);break}case Pn.END_TAG:{Vk(e,t);break}case Pn.EOF:{fee(e,t);break}}}function see(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function lee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function u8e(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function c8e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function d8e(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 f8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function p8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),ZJ(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,st.HTML)}function h8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function m8e(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 g8e(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 b8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.tokenizer.state=hi.PLAINTEXT}function y8e(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 O8e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Fe.A);n&&(s3(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 v8e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function E8e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(I.NOBR)&&(s3(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function S8e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function T8e(e,t){e.treeAdapter.getDocumentMode(e.document)!==Za.QUIRKS&&e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_TABLE}function uee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function cee(e){const t=YJ(e,_d.TYPE);return t!=null&&t.toLowerCase()===jBe}function w8e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),cee(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function k8e(e,t){e._appendElement(t,st.HTML),t.ackSelfClosing=!0}function x8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function C8e(e,t){t.tagName=Fe.IMG,t.tagID=I.IMG,uee(e,t)}function A8e(e,t){e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.tokenizer.state=hi.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=me.TEXT}function _8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,hi.RAWTEXT)}function R8e(e,t){e.framesetOk=!1,e._switchToTextParsing(t,hi.RAWTEXT)}function Qj(e,t){e._switchToTextParsing(t,hi.RAWTEXT)}function I8e(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 N8e(e,t){e.openElements.currentTagId===I.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function D8e(e,t){e.openElements.hasInScope(I.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,st.HTML)}function P8e(e,t){e.openElements.hasInScope(I.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(I.RTC),e._insertElement(t,st.HTML)}function L8e(e,t){e._reconstructActiveFormattingElements(),iee(t),a3(t),t.selfClosing?e._appendElement(t,st.MATHML):e._insertElement(t,st.MATHML),t.ackSelfClosing=!0}function M8e(e,t){e._reconstructActiveFormattingElements(),oee(t),a3(t),t.selfClosing?e._appendElement(t,st.SVG):e._insertElement(t,st.SVG),t.ackSelfClosing=!0}function Yj(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function Fo(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:{v8e(e,t);break}case I.A:{O8e(e,t);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{p8e(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:{f8e(e,t);break}case I.LI:case I.DD:case I.DT:{g8e(e,t);break}case I.BR:case I.IMG:case I.WBR:case I.AREA:case I.EMBED:case I.KEYGEN:{uee(e,t);break}case I.HR:{x8e(e,t);break}case I.RB:case I.RTC:{D8e(e,t);break}case I.RT:case I.RP:{P8e(e,t);break}case I.PRE:case I.LISTING:{h8e(e,t);break}case I.XMP:{_8e(e,t);break}case I.SVG:{M8e(e,t);break}case I.HTML:{u8e(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:{c8e(e,t);break}case I.FORM:{m8e(e,t);break}case I.NOBR:{E8e(e,t);break}case I.MATH:{L8e(e,t);break}case I.TABLE:{T8e(e,t);break}case I.INPUT:{w8e(e,t);break}case I.PARAM:case I.TRACK:case I.SOURCE:{k8e(e,t);break}case I.IMAGE:{C8e(e,t);break}case I.BUTTON:{y8e(e,t);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{S8e(e,t);break}case I.IFRAME:{R8e(e,t);break}case I.SELECT:{I8e(e,t);break}case I.OPTION:case I.OPTGROUP:{N8e(e,t);break}case I.NOEMBED:{Qj(e,t);break}case I.FRAMESET:{d8e(e,t);break}case I.TEXTAREA:{A8e(e,t);break}case I.NOSCRIPT:{e.options.scriptingEnabled?Qj(e,t):Yj(e,t);break}case I.PLAINTEXT:{b8e(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:Yj(e,t)}}function $8e(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 F8e(e,t){e.openElements.hasInScope(I.BODY)&&(e.insertionMode=me.AFTER_BODY,vee(e,t))}function B8e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function U8e(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 z8e(e){e.openElements.hasInListItemScope(I.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(I.LI),e.openElements.popUntilTagNamePopped(I.LI))}function V8e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function H8e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function W8e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Q8e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Fe.BR,I.BR),e.openElements.pop(),e.framesetOk=!1}function dee(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 Vk(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:{s3(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:{B8e(e,t);break}case I.LI:{z8e(e);break}case I.DD:case I.DT:{V8e(e,t);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{H8e(e);break}case I.BR:{Q8e(e);break}case I.BODY:{$8e(e,t);break}case I.HTML:{F8e(e,t);break}case I.FORM:{U8e(e);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{W8e(e,t);break}case I.TEMPLATE:{Tp(e,t);break}default:dee(e,t)}}function fee(e,t){e.tmplInsertionModeStack.length>0?Oee(e,t):l3(e,t)}function Y8e(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 G8e(e,t){e._err(t,Xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function zA(e,t){if(aee.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:{hee(e,t);break}case Pn.WHITESPACE_CHARACTER:{pee(e,t);break}}else eO(e,t)}function q8e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_CAPTION}function Z8e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_COLUMN_GROUP}function X8e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.COLGROUP,I.COLGROUP),e.insertionMode=me.IN_COLUMN_GROUP,u3(e,t)}function K8e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_TABLE_BODY}function J8e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.TBODY,I.TBODY),e.insertionMode=me.IN_TABLE_BODY,Hk(e,t)}function eUe(e,t){e.openElements.hasInTableScope(I.TABLE)&&(e.openElements.popUntilTagNamePopped(I.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function tUe(e,t){cee(t)?e._appendElement(t,st.HTML):eO(e,t),t.ackSelfClosing=!0}function nUe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,st.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Xm(e,t){switch(t.tagID){case I.TD:case I.TH:case I.TR:{J8e(e,t);break}case I.STYLE:case I.SCRIPT:case I.TEMPLATE:{Fl(e,t);break}case I.COL:{X8e(e,t);break}case I.FORM:{nUe(e,t);break}case I.TABLE:{eUe(e,t);break}case I.TBODY:case I.TFOOT:case I.THEAD:{K8e(e,t);break}case I.INPUT:{tUe(e,t);break}case I.CAPTION:{q8e(e,t);break}case I.COLGROUP:{Z8e(e,t);break}default:eO(e,t)}}function Hy(e,t){switch(t.tagID){case I.TABLE:{e.openElements.hasInTableScope(I.TABLE)&&(e.openElements.popUntilTagNamePopped(I.TABLE),e._resetInsertionMode());break}case I.TEMPLATE:{Tp(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:eO(e,t)}}function eO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,zk(e,t),e.fosterParentingEnabled=n}function pee(e,t){e.pendingCharacterTokens.push(t)}function hee(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function w0(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:{Tp(e,t);break}}}function lUe(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)):bee(e,t)}function uUe(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)):yee(e,t)}function cUe(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,Xm(e,t);break}case I.COL:{e.tmplInsertionModeStack[0]=me.IN_COLUMN_GROUP,e.insertionMode=me.IN_COLUMN_GROUP,u3(e,t);break}case I.TR:{e.tmplInsertionModeStack[0]=me.IN_TABLE_BODY,e.insertionMode=me.IN_TABLE_BODY,Hk(e,t);break}case I.TD:case I.TH:{e.tmplInsertionModeStack[0]=me.IN_ROW,e.insertionMode=me.IN_ROW,Wk(e,t);break}default:e.tmplInsertionModeStack[0]=me.IN_BODY,e.insertionMode=me.IN_BODY,Fo(e,t)}}function dUe(e,t){t.tagID===I.TEMPLATE&&Tp(e,t)}function Oee(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(I.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):l3(e,t)}function fUe(e,t){t.tagID===I.HTML?Fo(e,t):NT(e,t)}function vee(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 NT(e,t)}function NT(e,t){e.insertionMode=me.IN_BODY,zk(e,t)}function pUe(e,t){switch(t.tagID){case I.HTML:{Fo(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 hUe(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 mUe(e,t){switch(t.tagID){case I.HTML:{Fo(e,t);break}case I.NOFRAMES:{Fl(e,t);break}}}function gUe(e,t){t.tagID===I.HTML&&(e.insertionMode=me.AFTER_AFTER_FRAMESET)}function bUe(e,t){t.tagID===I.HTML?Fo(e,t):jE(e,t)}function jE(e,t){e.insertionMode=me.IN_BODY,zk(e,t)}function yUe(e,t){switch(t.tagID){case I.HTML:{Fo(e,t);break}case I.NOFRAMES:{Fl(e,t);break}}}function OUe(e,t){t.chars=Ur,e._insertCharacters(t)}function vUe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Eee(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==st.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function EUe(e,t){if(MBe(t))Eee(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===st.MATHML?iee(t):r===st.SVG&&($Be(t),oee(t)),a3(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function SUe(e,t){if(t.tagID===I.P||t.tagID===I.BR){Eee(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 TUe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Gj={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function See(e,t){const n=DUe(e),r=e3("type",{handlers:{root:wUe,element:kUe,text:xUe,comment:wee,doctype:CUe,raw:_Ue},unknown:RUe}),i={parser:n?new Wj(Gj):Wj.getFragmentParser(void 0,Gj),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),xg(i,Mu());const o=n?i.parser.document:i.parser.getFragment(),a=L6e(o,{file:i.options.file});return i.stitches&&Ca(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 Tee(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 Cee(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Cee(t.parentElement):null}function MUe(e){var t=n=>{var r=Cee(n.target);r&&(r.classList.add("active"),LUe(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 $Ue=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],FUe=e=>e;const BUe=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,$Ue),y=vn.useRef(null);N.useImperativeHandle(t,()=>L({},e,{mdp:y}),[y,e]);var O=(n||"")+" "+(r||"");MUe(y);var b=[...m.rehypePlugins||[]],v={allowElement:(A,w,E)=>m.allowElement?m.allowElement(A,w,E):/^[A-Za-z0-9]+$/.test(A.tagName)};s&&b.push(xee);var S=[...m.remarkPlugins||[],T6e],k=L({},p,d);return $.jsx("div",L({ref:y,onScroll:l,onMouseOver:u},k,{className:O,style:o,children:$.jsx(f$e,L({},v,m,{skipHtml:s,urlTransform:h||FUe,rehypePlugins:c?c("rehype",b):b,remarkPlugins:c?c("remark",S):S,children:i||""}))}))});function Lh(e){return"children"in e?Aee(e):"value"in e?e.value:""}function UUe(e){return e.type==="text"?e.value:"children"in e?Aee(e):""}function Aee(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in s)jUe.call(s,p)&&(d[p]=p==="children"?c:s[p]);return d}}function VUe(e){return"children"in e&&e.children!==void 0}var eI={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}wp.displayName="cpp";wp.aliases=[];function wp(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)}Qk.displayName="arduino";Qk.aliases=["ino"];function Qk(e){e.register(wp),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}nO.displayName="bash";nO.aliases=["sh","shell"];function nO(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]),A={keyword:l,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,M=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[M]),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:A},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,k]),lookbehind:!0,inside:A},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,m]),lookbehind:!0,inside:A},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:A},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:A},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,c,h]),inside:A}],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:A},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,y]),inside:A,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:A,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:A}}},"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:A},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)}Yk.displayName="diff";Yk.aliases=[];function Yk(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}_J.peek=SFe;function _J(e){return e.value||""}function SFe(){return"<"}RJ.peek=TFe;function RJ(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 TFe(){return"!"}IJ.peek=wFe;function IJ(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 wFe(){return"!"}NJ.peek=kFe;function NJ(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))}PJ.peek=xFe;function PJ(e,t,n,r){const i=t3(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(DJ(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 xFe(e,t,n){return DJ(e,n)?"<":"["}LJ.peek=CFe;function LJ(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 CFe(){return"["}function n3(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 AFe(e){const t=n3(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 _Fe(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 MJ(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 RFe(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?_Fe(n):n3(n);const s=e.ordered?a==="."?")":".":AFe(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),MJ(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 DFe(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const PFe=K1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function LFe(e,t,n,r){return(e.children.some(function(a){return PFe(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function MFe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}$J.peek=$Fe;function $J(e,t,n,r){const i=MFe(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 $Fe(e,t,n){return n.options.strong||"*"}function FFe(e,t,n,r){return n.safe(e.value,r)}function BFe(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 UFe(e,t,n){const r=(MJ(n)+(n.options.ruleSpaces?" ":"")).repeat(BFe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const FJ={blockquote:uFe,break:Dj,code:mFe,definition:bFe,emphasis:AJ,hardBreak:Dj,heading:EFe,html:_J,image:RJ,imageReference:IJ,inlineCode:NJ,link:PJ,linkReference:LJ,list:RFe,listItem:NFe,paragraph:DFe,root:LFe,strong:$J,text:FFe,thematicBreak:UFe};function jFe(){return{enter:{table:zFe,tableData:Pj,tableHeader:Pj,tableRow:HFe},exit:{codeText:WFe,table:VFe,tableData:BA,tableHeader:BA,tableRow:BA}}}function zFe(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 VFe(e){this.exit(e),this.data.inTable=void 0}function HFe(e){this.enter({type:"tableRow",children:[]},e)}function BA(e){this.exit(e)}function Pj(e){this.enter({type:"tableCell",children:[]},e)}function WFe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,QFe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function QFe(e,t){return t==="|"?t:e}function YFe(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,v){return u(c(h,y,v),h.align)}function s(h,m,y,v){const b=d(h,y,v),O=u([b]);return O.slice(0,O.indexOf(` +`))}function l(h,m,y,v){const b=y.enter("tableCell"),O=y.enter("phrasing"),S=y.containerPhrasing(h,{...v,before:o,after:o});return O(),b(),S}function u(h,m){return aFe(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function c(h,m,y){const v=h.children;let b=-1;const O=[],S=m.enter("table");for(;++b0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const d6e={tokenize:O6e,partial:!0};function f6e(){return{document:{91:{tokenize:g6e,continuation:{tokenize:b6e},exit:y6e}},text:{91:{tokenize:m6e},93:{add:"after",tokenize:p6e,resolveTo:h6e}}}}function p6e(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 h6e(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 m6e(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 g6e(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 b6e(e,t,n){return e.check(X1,t,e.attempt(d6e,t,n))}function y6e(e){e.exit("gfmFootnoteDefinition")}function O6e(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 v6e(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 v=a.exit("strikethroughSequenceTemporary"),b=CT(m);return v._open=!b||b===2&&!!y,v._close=!y||y===2&&!!b,s(m)}}}class E6e{constructor(){this.map=[]}add(t,n,r){S6e(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 S6e(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?v(R):R===124?(a=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),y):A(R)}function y(R){return Un(R)?Kn(e,v,"whitespace")(R):v(R)}function v(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):A(R)}function b(R){return R===45?(e.enter("tableDelimiterFiller"),O(R)):A(R)}function O(R){return R===45?(e.consume(R),O):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?A(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):A(R)}function A(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"),M(R))}function M(R){return R===null||R===124||br(R)?(e.exit("data"),E(R)):(e.consume(R),R===92?D:M)}function D(R){return R===92||R===124?(e.consume(R),M):M(R)}}function x6e(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 E6e;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({},ph(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Mj(e,t,n,r,i){const o=[],a=ph(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 ph(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const C6e={tokenize:_6e};function A6e(){return{text:{91:C6e}}}function _6e(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:R6e},t,n)(l):n(l)}}function R6e(e,t,n){return Kn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function I6e(e){return nJ([n6e(),f6e(),v6e(e),w6e(),A6e()])}const N6e={};function D6e(e){const t=this,n=e||N6e,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(I6e(n)),o.push(KFe()),a.push(JFe(n))}const $j=/[#.]/g;function P6e(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 aBe(e){return e>=56320&&e<=57343}function sBe(e,t){return(e-55296)*1024+9216+t}function KJ(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function JJ(e){return e>=64976&&e<=65007||oBe.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 lBe=65536;class uBe{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=lBe,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(aBe(n))return this.pos++,this._addGap(),sBe(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,XJ(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){KJ(t)?this._err(Xe.controlCharacterInInputStream):JJ(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 Uc=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))),cBe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var jA;const dBe=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]]),fBe=(jA=String.fromCodePoint)!==null&&jA!==void 0?jA: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 pBe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=dBe.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 hBe=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 ZR(e){return e>=Yi.ZERO&&e<=Yi.NINE}function mBe(e){return e>=Yi.UPPER_A&&e<=Yi.UPPER_F||e>=Yi.LOWER_A&&e<=Yi.LOWER_F}function gBe(e){return e>=Yi.UPPER_A&&e<=Yi.UPPER_Z||e>=Yi.LOWER_A&&e<=Yi.LOWER_Z||ZR(e)}function bBe(e){return e===Yi.EQUALS||gBe(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 yBe{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)|hBe)===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 tee(e){let t="";const n=new yBe(e,r=>t+=fBe(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 nee(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}tee(Uc);tee(cBe);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 Za;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Za=Za||(Za={}));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 OBe=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 Cg(e){var t;return(t=OBe.get(e))!==null&&t!==void 0?t:I.UNKNOWN}const bt=I,vBe={[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 ree(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 EBe=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 hi={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function _b(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function q0(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function SBe(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function jc(e){return SBe(e)||q0(e)}function XR(e){return jc(e)||_b(e)}function iee(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_F}function oee(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_F}function TBe(e){return _b(e)||iee(e)||oee(e)}function Yv(e){return e+32}function aee(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function wBe(e){return e===ne.EQUALS_SIGN||XR(e)}function Uj(e){return aee(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}class kBe{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 uBe(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=aee(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=Uc[0];o>=0&&(o=nee(Uc,a,o+1,t),!(o<0));t=this._consume()){r+=1,a=Uc[o];const s=a&bu.VALUE_LENGTH;if(s){const l=(s>>14)-1;if(t!==ne.SEMICOLON&&this._isCharacterReferenceInAttribute()&&wBe(this.preprocessor.peek(1))?(n=[ne.AMPERSAND],o+=l):(n=l===0?[Uc[o]&~bu.VALUE_LENGTH]:l===1?[Uc[++o]]:[Uc[++o],Uc[++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(jc(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(jc(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:jc(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){jc(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(ua.SCRIPT,!1)&&Uj(this.preprocessor.peek(ua.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Xe.characterReferenceOutsideUnicodeRange),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(XJ(this.charRefCode))this._err(Xe.surrogateCharacterReference),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(JJ(this.charRefCode))this._err(Xe.noncharacterCharacterReference);else if(KJ(this.charRefCode)||this.charRefCode===ne.CARRIAGE_RETURN){this._err(Xe.controlCharacterReference);const n=EBe.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const see=new Set([I.DD,I.DT,I.LI,I.OPTGROUP,I.OPTION,I.P,I.RB,I.RP,I.RT,I.RTC]),jj=new Set([...see,I.CAPTION,I.COLGROUP,I.TBODY,I.TD,I.TFOOT,I.TH,I.THEAD,I.TR]),Gv=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]]),xBe=[I.H1,I.H2,I.H3,I.H4,I.H5,I.H6],CBe=[I.TR,I.TEMPLATE,I.HTML],ABe=[I.TBODY,I.TFOOT,I.THEAD,I.TEMPLATE,I.HTML],_Be=[I.TABLE,I.TEMPLATE,I.HTML],RBe=[I.TD,I.TH];class IBe{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(_Be,st.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ABe,st.HTML)}clearBackToTableRowContext(){this.clearBackTo(CBe,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(Gv.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(ree(n)&&r===st.HTML)return!0;if(Gv.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||Gv.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||Gv.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(;see.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;jj.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&jj.has(this.currentTagId);)this.pop()}}const zA=3;var gl;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(gl=gl||(gl={}));const zj={type:gl.Marker};class NBe{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>=zA&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(zj)}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(zj);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 Vj(e){return{nodeName:"#text",value:e,parentNode:null}}const hh={createDocument(){return{nodeName:"#document",mode:Za.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};hh.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(hh.isTextNode(n)){n.value+=t;return}}hh.appendChild(e,Vj(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&hh.isTextNode(r)?r.value+=t:hh.insertBefore(e,Vj(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function FBe(e){return e.name===lee&&e.publicId===null&&(e.systemId===null||e.systemId===DBe)}function BBe(e){if(e.name!==lee)return Za.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===PBe)return Za.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),MBe.has(n))return Za.QUIRKS;let r=t===null?LBe:uee;if(Hj(n,r))return Za.QUIRKS;if(r=t===null?cee:$Be,Hj(n,r))return Za.LIMITED_QUIRKS}return Za.NO_QUIRKS}const Wj={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},UBe="definitionurl",jBe="definitionURL",zBe=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])),VBe=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}]]),HBe=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])),WBe=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 QBe(e){const t=e.tagID;return t===I.FONT&&e.attrs.some(({name:r})=>r===_d.COLOR||r===_d.SIZE||r===_d.FACE)||WBe.has(t)}function dee(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=hi.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=hi.RCDATA;break}case I.STYLE:case I.XMP:case I.IFRAME:case I.NOEMBED:case I.NOFRAMES:case I.NOSCRIPT:{this.tokenizer.state=hi.RAWTEXT;break}case I.SCRIPT:{this.tokenizer.state=hi.SCRIPT_DATA;break}case I.PLAINTEXT:{this.tokenizer.state=hi.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 ZBe(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 pee.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 vBe[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){RUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{w0(this,t);break}case me.BEFORE_HTML:{Rb(this,t);break}case me.BEFORE_HEAD:{Ib(this,t);break}case me.IN_HEAD:{Nb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Db(this,t);break}case me.AFTER_HEAD:{Pb(this,t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:{mee(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:{VA(this,t);break}case me.IN_TABLE_TEXT:{Eee(this,t);break}case me.IN_COLUMN_GROUP:{IT(this,t);break}case me.AFTER_BODY:{NT(this,t);break}case me.AFTER_AFTER_BODY:{UE(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_Ue(this,t);return}switch(this.insertionMode){case me.INITIAL:{w0(this,t);break}case me.BEFORE_HTML:{Rb(this,t);break}case me.BEFORE_HEAD:{Ib(this,t);break}case me.IN_HEAD:{Nb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Db(this,t);break}case me.AFTER_HEAD:{Pb(this,t);break}case me.TEXT:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{VA(this,t);break}case me.IN_COLUMN_GROUP:{IT(this,t);break}case me.AFTER_BODY:{NT(this,t);break}case me.AFTER_AFTER_BODY:{UE(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){KR(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:{KR(this,t);break}case me.IN_TABLE_TEXT:{k0(this,t);break}case me.AFTER_BODY:{s8e(this,t);break}case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{l8e(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case me.INITIAL:{u8e(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:{k0(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)?IUe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{w0(this,t);break}case me.BEFORE_HTML:{c8e(this,t);break}case me.BEFORE_HEAD:{f8e(this,t);break}case me.IN_HEAD:{Fl(this,t);break}case me.IN_HEAD_NO_SCRIPT:{m8e(this,t);break}case me.AFTER_HEAD:{b8e(this,t);break}case me.IN_BODY:{Fo(this,t);break}case me.IN_TABLE:{Km(this,t);break}case me.IN_TABLE_TEXT:{k0(this,t);break}case me.IN_CAPTION:{pUe(this,t);break}case me.IN_COLUMN_GROUP:{u3(this,t);break}case me.IN_TABLE_BODY:{Wk(this,t);break}case me.IN_ROW:{Qk(this,t);break}case me.IN_CELL:{gUe(this,t);break}case me.IN_SELECT:{wee(this,t);break}case me.IN_SELECT_IN_TABLE:{yUe(this,t);break}case me.IN_TEMPLATE:{vUe(this,t);break}case me.AFTER_BODY:{SUe(this,t);break}case me.IN_FRAMESET:{TUe(this,t);break}case me.AFTER_FRAMESET:{kUe(this,t);break}case me.AFTER_AFTER_BODY:{CUe(this,t);break}case me.AFTER_AFTER_FRAMESET:{AUe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?NUe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{w0(this,t);break}case me.BEFORE_HTML:{d8e(this,t);break}case me.BEFORE_HEAD:{p8e(this,t);break}case me.IN_HEAD:{h8e(this,t);break}case me.IN_HEAD_NO_SCRIPT:{g8e(this,t);break}case me.AFTER_HEAD:{y8e(this,t);break}case me.IN_BODY:{Hk(this,t);break}case me.TEXT:{rUe(this,t);break}case me.IN_TABLE:{Qy(this,t);break}case me.IN_TABLE_TEXT:{k0(this,t);break}case me.IN_CAPTION:{hUe(this,t);break}case me.IN_COLUMN_GROUP:{mUe(this,t);break}case me.IN_TABLE_BODY:{JR(this,t);break}case me.IN_ROW:{Tee(this,t);break}case me.IN_CELL:{bUe(this,t);break}case me.IN_SELECT:{kee(this,t);break}case me.IN_SELECT_IN_TABLE:{OUe(this,t);break}case me.IN_TEMPLATE:{EUe(this,t);break}case me.AFTER_BODY:{Cee(this,t);break}case me.IN_FRAMESET:{wUe(this,t);break}case me.AFTER_FRAMESET:{xUe(this,t);break}case me.AFTER_AFTER_BODY:{UE(this,t);break}}}onEof(t){switch(this.insertionMode){case me.INITIAL:{w0(this,t);break}case me.BEFORE_HTML:{Rb(this,t);break}case me.BEFORE_HEAD:{Ib(this,t);break}case me.IN_HEAD:{Nb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Db(this,t);break}case me.AFTER_HEAD:{Pb(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:{Oee(this,t);break}case me.TEXT:{iUe(this,t);break}case me.IN_TABLE_TEXT:{k0(this,t);break}case me.IN_TEMPLATE:{xee(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:{l3(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:{hee(this,t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{VA(this,t);break}case me.IN_TABLE_TEXT:{vee(this,t);break}}}}function t8e(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):yee(e,t),n}function n8e(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 r8e(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>=JBe;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=i8e(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function i8e(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 o8e(e,t,n){const r=e.treeAdapter.getTagName(t),i=Cg(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 a8e(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 s3(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 u8e(e,t){e._setDocumentType(t);const n=t.forceQuirks?Za.QUIRKS:BBe(t);FBe(t)||e._err(t,Xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=me.BEFORE_HTML}function w0(e,t){e._err(t,Xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Za.QUIRKS),e.insertionMode=me.BEFORE_HTML,e._processToken(t)}function c8e(e,t){t.tagID===I.HTML?(e._insertElement(t,st.HTML),e.insertionMode=me.BEFORE_HEAD):Rb(e,t)}function d8e(e,t){const n=t.tagID;(n===I.HTML||n===I.HEAD||n===I.BODY||n===I.BR)&&Rb(e,t)}function Rb(e,t){e._insertFakeRootElement(),e.insertionMode=me.BEFORE_HEAD,e._processToken(t)}function f8e(e,t){switch(t.tagID){case I.HTML:{Fo(e,t);break}case I.HEAD:{e._insertElement(t,st.HTML),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD;break}default:Ib(e,t)}}function p8e(e,t){const n=t.tagID;n===I.HEAD||n===I.BODY||n===I.HTML||n===I.BR?Ib(e,t):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Ib(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:{Fo(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,hi.RCDATA);break}case I.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,hi.RAWTEXT):(e._insertElement(t,st.HTML),e.insertionMode=me.IN_HEAD_NO_SCRIPT);break}case I.NOFRAMES:case I.STYLE:{e._switchToTextParsing(t,hi.RAWTEXT);break}case I.SCRIPT:{e._switchToTextParsing(t,hi.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:Nb(e,t)}}function h8e(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:{Nb(e,t);break}case I.TEMPLATE:{Tp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Tp(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 Nb(e,t){e.openElements.pop(),e.insertionMode=me.AFTER_HEAD,e._processToken(t)}function m8e(e,t){switch(t.tagID){case I.HTML:{Fo(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:Db(e,t)}}function g8e(e,t){switch(t.tagID){case I.NOSCRIPT:{e.openElements.pop(),e.insertionMode=me.IN_HEAD;break}case I.BR:{Db(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Db(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 b8e(e,t){switch(t.tagID){case I.HTML:{Fo(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:Pb(e,t)}}function y8e(e,t){switch(t.tagID){case I.BODY:case I.HTML:case I.BR:{Pb(e,t);break}case I.TEMPLATE:{Tp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Pb(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:{mee(e,t);break}case Pn.WHITESPACE_CHARACTER:{hee(e,t);break}case Pn.COMMENT:{KR(e,t);break}case Pn.START_TAG:{Fo(e,t);break}case Pn.END_TAG:{Hk(e,t);break}case Pn.EOF:{Oee(e,t);break}}}function hee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function mee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function O8e(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function v8e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function E8e(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 S8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function T8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),ree(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,st.HTML)}function w8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function k8e(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 x8e(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 C8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.tokenizer.state=hi.PLAINTEXT}function A8e(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 _8e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Fe.A);n&&(s3(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 R8e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function I8e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(I.NOBR)&&(s3(e,t),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.insertMarker(),e.framesetOk=!1}function D8e(e,t){e.treeAdapter.getDocumentMode(e.document)!==Za.QUIRKS&&e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_TABLE}function gee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function bee(e){const t=eee(e,_d.TYPE);return t!=null&&t.toLowerCase()===XBe}function P8e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),bee(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function L8e(e,t){e._appendElement(t,st.HTML),t.ackSelfClosing=!0}function M8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $8e(e,t){t.tagName=Fe.IMG,t.tagID=I.IMG,gee(e,t)}function F8e(e,t){e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.tokenizer.state=hi.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=me.TEXT}function B8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,hi.RAWTEXT)}function U8e(e,t){e.framesetOk=!1,e._switchToTextParsing(t,hi.RAWTEXT)}function Gj(e,t){e._switchToTextParsing(t,hi.RAWTEXT)}function j8e(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 z8e(e,t){e.openElements.currentTagId===I.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function V8e(e,t){e.openElements.hasInScope(I.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,st.HTML)}function H8e(e,t){e.openElements.hasInScope(I.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(I.RTC),e._insertElement(t,st.HTML)}function W8e(e,t){e._reconstructActiveFormattingElements(),dee(t),a3(t),t.selfClosing?e._appendElement(t,st.MATHML):e._insertElement(t,st.MATHML),t.ackSelfClosing=!0}function Q8e(e,t){e._reconstructActiveFormattingElements(),fee(t),a3(t),t.selfClosing?e._appendElement(t,st.SVG):e._insertElement(t,st.SVG),t.ackSelfClosing=!0}function qj(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function Fo(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:{R8e(e,t);break}case I.A:{_8e(e,t);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{T8e(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:{S8e(e,t);break}case I.LI:case I.DD:case I.DT:{x8e(e,t);break}case I.BR:case I.IMG:case I.WBR:case I.AREA:case I.EMBED:case I.KEYGEN:{gee(e,t);break}case I.HR:{M8e(e,t);break}case I.RB:case I.RTC:{V8e(e,t);break}case I.RT:case I.RP:{H8e(e,t);break}case I.PRE:case I.LISTING:{w8e(e,t);break}case I.XMP:{B8e(e,t);break}case I.SVG:{Q8e(e,t);break}case I.HTML:{O8e(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:{v8e(e,t);break}case I.FORM:{k8e(e,t);break}case I.NOBR:{I8e(e,t);break}case I.MATH:{W8e(e,t);break}case I.TABLE:{D8e(e,t);break}case I.INPUT:{P8e(e,t);break}case I.PARAM:case I.TRACK:case I.SOURCE:{L8e(e,t);break}case I.IMAGE:{$8e(e,t);break}case I.BUTTON:{A8e(e,t);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{N8e(e,t);break}case I.IFRAME:{U8e(e,t);break}case I.SELECT:{j8e(e,t);break}case I.OPTION:case I.OPTGROUP:{z8e(e,t);break}case I.NOEMBED:{Gj(e,t);break}case I.FRAMESET:{E8e(e,t);break}case I.TEXTAREA:{F8e(e,t);break}case I.NOSCRIPT:{e.options.scriptingEnabled?Gj(e,t):qj(e,t);break}case I.PLAINTEXT:{C8e(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:qj(e,t)}}function Y8e(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 G8e(e,t){e.openElements.hasInScope(I.BODY)&&(e.insertionMode=me.AFTER_BODY,Cee(e,t))}function q8e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Z8e(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 X8e(e){e.openElements.hasInButtonScope(I.P)||e._insertFakeElement(Fe.P,I.P),e._closePElement()}function K8e(e){e.openElements.hasInListItemScope(I.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(I.LI),e.openElements.popUntilTagNamePopped(I.LI))}function J8e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function eUe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function tUe(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function nUe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Fe.BR,I.BR),e.openElements.pop(),e.framesetOk=!1}function yee(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:{s3(e,t);break}case I.P:{X8e(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:{q8e(e,t);break}case I.LI:{K8e(e);break}case I.DD:case I.DT:{J8e(e,t);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{eUe(e);break}case I.BR:{nUe(e);break}case I.BODY:{Y8e(e,t);break}case I.HTML:{G8e(e,t);break}case I.FORM:{Z8e(e);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{tUe(e,t);break}case I.TEMPLATE:{Tp(e,t);break}default:yee(e,t)}}function Oee(e,t){e.tmplInsertionModeStack.length>0?xee(e,t):l3(e,t)}function rUe(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 iUe(e,t){e._err(t,Xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function VA(e,t){if(pee.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:{Eee(e,t);break}case Pn.WHITESPACE_CHARACTER:{vee(e,t);break}}else eO(e,t)}function oUe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_CAPTION}function aUe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_COLUMN_GROUP}function sUe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.COLGROUP,I.COLGROUP),e.insertionMode=me.IN_COLUMN_GROUP,u3(e,t)}function lUe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_TABLE_BODY}function uUe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.TBODY,I.TBODY),e.insertionMode=me.IN_TABLE_BODY,Wk(e,t)}function cUe(e,t){e.openElements.hasInTableScope(I.TABLE)&&(e.openElements.popUntilTagNamePopped(I.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function dUe(e,t){bee(t)?e._appendElement(t,st.HTML):eO(e,t),t.ackSelfClosing=!0}function fUe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,st.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Km(e,t){switch(t.tagID){case I.TD:case I.TH:case I.TR:{uUe(e,t);break}case I.STYLE:case I.SCRIPT:case I.TEMPLATE:{Fl(e,t);break}case I.COL:{sUe(e,t);break}case I.FORM:{fUe(e,t);break}case I.TABLE:{cUe(e,t);break}case I.TBODY:case I.TFOOT:case I.THEAD:{lUe(e,t);break}case I.INPUT:{dUe(e,t);break}case I.CAPTION:{oUe(e,t);break}case I.COLGROUP:{aUe(e,t);break}default:eO(e,t)}}function Qy(e,t){switch(t.tagID){case I.TABLE:{e.openElements.hasInTableScope(I.TABLE)&&(e.openElements.popUntilTagNamePopped(I.TABLE),e._resetInsertionMode());break}case I.TEMPLATE:{Tp(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:eO(e,t)}}function eO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Vk(e,t),e.fosterParentingEnabled=n}function vee(e,t){e.pendingCharacterTokens.push(t)}function Eee(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function k0(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:{Tp(e,t);break}}}function yUe(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)):wee(e,t)}function OUe(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)):kee(e,t)}function vUe(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,Km(e,t);break}case I.COL:{e.tmplInsertionModeStack[0]=me.IN_COLUMN_GROUP,e.insertionMode=me.IN_COLUMN_GROUP,u3(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,Fo(e,t)}}function EUe(e,t){t.tagID===I.TEMPLATE&&Tp(e,t)}function xee(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(I.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):l3(e,t)}function SUe(e,t){t.tagID===I.HTML?Fo(e,t):NT(e,t)}function Cee(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 NT(e,t)}function NT(e,t){e.insertionMode=me.IN_BODY,Vk(e,t)}function TUe(e,t){switch(t.tagID){case I.HTML:{Fo(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 wUe(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 kUe(e,t){switch(t.tagID){case I.HTML:{Fo(e,t);break}case I.NOFRAMES:{Fl(e,t);break}}}function xUe(e,t){t.tagID===I.HTML&&(e.insertionMode=me.AFTER_AFTER_FRAMESET)}function CUe(e,t){t.tagID===I.HTML?Fo(e,t):UE(e,t)}function UE(e,t){e.insertionMode=me.IN_BODY,Vk(e,t)}function AUe(e,t){switch(t.tagID){case I.HTML:{Fo(e,t);break}case I.NOFRAMES:{Fl(e,t);break}}}function _Ue(e,t){t.chars=Ur,e._insertCharacters(t)}function RUe(e,t){e._insertCharacters(t),e.framesetOk=!1}function Aee(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==st.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function IUe(e,t){if(QBe(t))Aee(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===st.MATHML?dee(t):r===st.SVG&&(YBe(t),fee(t)),a3(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function NUe(e,t){if(t.tagID===I.P||t.tagID===I.BR){Aee(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 DUe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Zj={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function _ee(e,t){const n=VUe(e),r=e3("type",{handlers:{root:PUe,element:LUe,text:MUe,comment:Iee,doctype:$Ue,raw:BUe},unknown:UUe}),i={parser:n?new Yj(Zj):Yj.getFragmentParser(void 0,Zj),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Ag(i,Mu());const o=n?i.parser.document:i.parser.getFragment(),a=W6e(o,{file:i.options.file});return i.stitches&&Ca(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 Ree(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 Pee(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Pee(t.parentElement):null}function QUe(e){var t=n=>{var r=Pee(n.target);r&&(r.classList.add("active"),WUe(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 YUe=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],GUe=e=>e;const qUe=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,YUe),y=vn.useRef(null);N.useImperativeHandle(t,()=>L({},e,{mdp:y}),[y,e]);var v=(n||"")+" "+(r||"");QUe(y);var b=[...m.rehypePlugins||[]],O={allowElement:(A,w,E)=>m.allowElement?m.allowElement(A,w,E):/^[A-Za-z0-9]+$/.test(A.tagName)};s&&b.push(Dee);var S=[...m.remarkPlugins||[],D6e],k=L({},p,d);return $.jsx("div",L({ref:y,onScroll:l,onMouseOver:u},k,{className:v,style:o,children:$.jsx(S$e,L({},O,m,{skipHtml:s,urlTransform:h||GUe,rehypePlugins:c?c("rehype",b):b,remarkPlugins:c?c("remark",S):S,children:i||""}))}))});function Mh(e){return"children"in e?Lee(e):"value"in e?e.value:""}function ZUe(e){return e.type==="text"?e.value:"children"in e?Lee(e):""}function Lee(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in s)XUe.call(s,p)&&(d[p]=p==="children"?c:s[p]);return d}}function JUe(e){return"children"in e&&e.children!==void 0}var eI={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}wp.displayName="cpp";wp.aliases=[];function wp(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(wp),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}nO.displayName="bash";nO.aliases=["sh","shell"];function nO(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]),v=/\[\s*(?:,\s*)*\]/.source,b=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,v]),O=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,p,v]),S=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[O]),k=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,y,v]),A={keyword:l,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,M=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[M]),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:A},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,k]),lookbehind:!0,inside:A},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,m]),lookbehind:!0,inside:A},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:A},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:A},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,c,h]),inside:A}],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:A},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,y]),inside:A,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:A,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:A}}},"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:A},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 ?| -|(?![\\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)}Gk.displayName="go";Gk.aliases=[];function Gk(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"]}qk.displayName="ini";qk.aliases=[];function qk(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:/=/}}xp.displayName="java";xp.aliases=[];function xp(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)}Zk.displayName="regex";Zk.aliases=[];function Zk(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}Cg.displayName="json";Cg.aliases=["webmanifest"];function Cg(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}Xk.displayName="kotlin";Xk.aliases=["kt","kts"];function Xk(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)}Kk.displayName="less";Kk.aliases=[];function Kk(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"}})}rO.displayName="lua";rO.aliases=[];function rO(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:/[\[\](){},;]|\.+|:+/}}Jk.displayName="makefile";Jk.aliases=[];function Jk(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:/[:;(){}]/}}iO.displayName="yaml";iO.aliases=["yml"];function iO(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)}ex.displayName="markdown";ex.aliases=["md"];function ex(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}nx.displayName="perl";nx.aliases=[];function nx(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)}bo.displayName="markup-templating";bo.aliases=[];function bo(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)}Cp.displayName="php";Cp.aliases=[];function Cp(e){e.register(bo),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)}oO.displayName="python";oO.aliases=["py"];function oO(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}rx.displayName="r";rx.aliases=[];function rx(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:/[(){}\[\],;]/}}Ap.displayName="ruby";Ap.aliases=["rb"];function Ap(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)}ix.displayName="rust";ix.aliases=[];function ix(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)}ox.displayName="sass";ox.aliases=[];function ox(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)}ax.displayName="scss";ax.aliases=[];function ax(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}Ag.displayName="sql";Ag.aliases=[];function Ag(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:/[;[\]()`,.]/}}sx.displayName="swift";sx.aliases=[];function sx(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})}_g.displayName="typescript";_g.aliases=["ts"];function _g(e){e.register(go),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)}aO.displayName="basic";aO.aliases=[];function aO(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:/[,;:()]/}}sO.displayName="vbnet";sO.aliases=[];function sO(e){e.register(aO),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 qj=/[#.]/g;function QUe(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function t7e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function n7e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Kj(e){return n7e(e)||_ee(e)}const eh=String.fromCharCode,r7e=["","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 i7e(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+=eh(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 A="",w="",E="";const M=k==="named"?Kj:k==="decimal"?_ee:t7e;for(S--;++S<=e.length;){const U=e.charCodeAt(S);if(!M(U))break;E+=eh(U),k==="named"&&e7e.includes(E)&&(A=E,w=Vy(E))}let D=e.charCodeAt(S)===59;if(D){S++;const U=k==="named"?Vy(E):!1;U&&(A=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(A!==E&&(S=v+A.length,R=1+S-v,D=!1),!D){const U=A?1:3;if(t.attribute){const V=e.charCodeAt(S);V===61?(m(U,R),w=""):Kj(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(o7e(U))m(7,R),B=eh(65533);else if(U in Xj)m(6,R),B=Xj[U];else{let V="";a7e(U)&&m(6,R),U>65535&&(U-=65536,V+=eh(U>>>10|55296),U=56320|U&1023),B=V+eh(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+=eh(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,r7e[O],v,O))}function y(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:h()}),a="")}}function o7e(e){return e>=55296&&e<=57343||e>1114111}function a7e(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 s7e=0,qv={},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:++s7e}),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:qv,plaintext:qv,text:qv,txt:qv,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),Db.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 l7e;return zE(i,i.head,e),Ree(e,i,t,i.head,0),c7e(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:Db};function Db(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function Jj(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 Ree(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 Db)){var S=1,k;if(p){if(k=Jj(y,b,e,d),!k||k.index>=e.length)break;var M=k.index,A=k.index+k[0].length,w=b;for(w+=O.value.length;M>=w;)O=O.next,w+=O.value.length;if(w-=O.value.length,b=w,O.value instanceof Db)continue;for(var E=O;E!==t.tail&&(wo.reach&&(o.reach=U);var V=O.prev;R&&(V=zE(t,V,R),b+=R.length),u7e(t,V,S);var z=new Db(a,c?Vi.tokenize(D,c):D,h,D);if(O=zE(t,V,z),B&&zE(t,O,B),S>1){var Q={cause:a+","+l,reach:U};Ree(e,t,n,O.prev,b,Q),o&&Q.reach>o.reach&&(o.reach=Q.reach)}}}}}}function l7e(){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 zE(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 u7e(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:/[,.:()]/}}d3.displayName="abnf";d3.aliases=[];function d3(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)}f3.displayName="actionscript";f3.aliases=[];function f3(e){e.register(go),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}})}p3.displayName="ada";p3.aliases=[];function p3(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}}h3.displayName="agda";h3.aliases=[];function h3(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)}m3.displayName="al";m3.aliases=[];function m3(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:/[()\[\]{}:.;,]/}}g3.displayName="antlr4";g3.aliases=["g4"];function g3(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:/\^?.*\$|\^.*\$?/}}y3.displayName="apex";y3.aliases=[];function y3(e){e.register(jn),e.register(Ag),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)}O3.displayName="apl";O3.aliases=[];function O3(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"}}}v3.displayName="applescript";v3.aliases=[];function v3(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:/[{}():,¬«»《》]/}}E3.displayName="aql";E3.aliases=[];function E3(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:/::|[?.:,;()[\]{}]/}}S3.displayName="arff";S3.aliases=[];function S3(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:/[{},]/}}T3.displayName="armasm";T3.aliases=["arm-asm"];function T3(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}w3.displayName="arturo";w3.aliases=["art"];function w3(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)}k3.displayName="asciidoc";k3.aliases=["adoc"];function k3(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||{}}})}C3.displayName="asm6502";C3.aliases=[];function C3(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:/[(),:]/}}A3.displayName="asmatmel";A3.aliases=[];function A3(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:/[(),:]/}}_3.displayName="autohotkey";_3.aliases=[];function _3(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:/[{}[\]():,]/}}R3.displayName="autoit";R3.aliases=[];function R3(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:/[\[\]().,:]/}}I3.displayName="avisynth";I3.aliases=["avs"];function I3(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)}N3.displayName="avro-idl";N3.aliases=["avdl"];function N3(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"]}D3.displayName="awk";D3.aliases=["gawk"];function D3(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}P3.displayName="batch";P3.aliases=[];function P3(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)}L3.displayName="bbcode";L3.aliases=["shortcode"];function L3(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}M3.displayName="bbj";M3.aliases=[];function M3(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)}$3.displayName="bicep";$3.aliases=[];function $3(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}F3.displayName="birb";F3.aliases=[];function F3(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"}})}B3.displayName="bison";B3.aliases=[];function B3(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:/%[%?]|[|:;\[\]<>]/}}})}U3.displayName="bnf";U3.aliases=["rbnf"];function U3(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}j3.displayName="bqn";j3.aliases=[];function j3(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}z3.displayName="brainfuck";z3.aliases=[];function z3(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}V3.displayName="brightscript";V3.aliases=[];function V3(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}H3.displayName="bro";H3.aliases=[];function H3(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:/[{}[\];(),.:]/}}W3.displayName="bsl";W3.aliases=["oscript"];function W3(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}Q3.displayName="cfscript";Q3.aliases=["cfc"];function Q3(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}Y3.displayName="chaiscript";Y3.aliases=[];function Y3(e){e.register(jn),e.register(wp),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]+/}}})}G3.displayName="cil";G3.aliases=[];function G3(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]+/}}q3.displayName="cilkc";q3.aliases=["cilk-c"];function q3(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}Z3.displayName="cilkcpp";Z3.aliases=["cilk","cilk-cpp"];function Z3(e){e.register(wp),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}X3.displayName="clojure";X3.aliases=[];function X3(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:/[{}\[\](),]/}}K3.displayName="cmake";K3.aliases=[];function K3(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:/[()>}]|\$[<{]/}}J3.displayName="cobol";J3.aliases=[];function J3(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:/[.:,()]/}}eL.displayName="coffeescript";eL.aliases=["coffee"];function eL(e){e.register(go),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}nL.displayName="csp";nL.aliases=[];function nL(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)}rL.displayName="cooklang";rL.aliases=[];function rL(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)}iL.displayName="coq";iL.aliases=[];function iL(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)}oL.displayName="crystal";oL.aliases=[];function oL(e){e.register(Ap),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(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)}sL.displayName="csv";sL.aliases=[];function sL(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}lL.displayName="cue";lL.aliases=[];function lL(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)}uL.displayName="cypher";uL.aliases=[];function uL(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:/[()[\]{},;.]/}}cL.displayName="d";cL.aliases=[];function cL(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"}})}dL.displayName="dart";dL.aliases=[];function dL(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)}fL.displayName="dataweave";fL.aliases=[];function fL(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)}pL.displayName="dax";pL.aliases=[];function pL(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:/[;\[\](){}`,.]/}}hL.displayName="dhall";hL.aliases=[];function hL(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}mL.displayName="django";mL.aliases=["jinja2"];function mL(e){e.register(bo),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)}gL.displayName="dns-zone-file";gL.aliases=["dns-zone"];function gL(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)}yL.displayName="dot";yL.aliases=["gv"];function yL(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)}OL.displayName="ebnf";OL.aliases=[];function OL(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:/[-=|*/!]/}}vL.displayName="editorconfig";vL.aliases=[];function vL(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:/^=/}}}}EL.displayName="eiffel";EL.aliases=[];function EL(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}SL.displayName="ejs";SL.aliases=["eta"];function SL(e){e.register(go),e.register(bo),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)}TL.displayName="elixir";TL.aliases=[];function TL(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}}}})}wL.displayName="elm";wL.aliases=[];function wL(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:/[{}[\]|(),.:]/}}kL.displayName="etlua";kL.aliases=[];function kL(e){e.register(rO),e.register(bo),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)}xL.displayName="erb";xL.aliases=[];function xL(e){e.register(bo),e.register(Ap),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)}CL.displayName="erlang";CL.aliases=[];function CL(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:/[()[\]{}:;,.#|]|<<|>>/}}AL.displayName="excel-formula";AL.aliases=["xls","xlsx"];function AL(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"]}_L.displayName="fsharp";_L.aliases=[];function _L(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}})}RL.displayName="factor";RL.aliases=[];function RL(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)}IL.displayName="false";IL.aliases=[];function IL(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:/,/}}})}DL.displayName="flow";DL.aliases=[];function DL(e){e.register(go),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)}PL.displayName="fortran";PL.aliases=[];function PL(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:/\(\/|\/\)|[(),;:&]/}}LL.displayName="ftl";LL.aliases=[];function LL(e){e.register(bo),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)}ML.displayName="gml";ML.aliases=["gamemakerlanguage"];function ML(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/})}$L.displayName="gap";$L.aliases=[];function $L(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}FL.displayName="gcode";FL.aliases=[];function FL(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:/[:*]/}}BL.displayName="gdscript";BL.aliases=[];function BL(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:/[.:,;()[\]{}]/}}UL.displayName="gedcom";UL.aliases=[];function UL(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"}}}jL.displayName="gettext";jL.aliases=["po"];function jL(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}zL.displayName="gherkin";zL.aliases=[];function zL(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)}VL.displayName="git";VL.aliases=[];function VL(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}}HL.displayName="glsl";HL.aliases=[];function HL(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/})}WL.displayName="gn";WL.aliases=["gni"];function WL(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}QL.displayName="linker-script";QL.aliases=["ld"];function QL(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"]}YL.displayName="go-module";YL.aliases=["go-mod"];function YL(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:/[()[\],]/}}GL.displayName="gradle";GL.aliases=[];function GL(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)}qL.displayName="graphql";qL.aliases=[];function qL(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")}}}}})}ZL.displayName="groovy";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.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)}XL.displayName="textile";XL.aliases=[];function XL(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)}KL.displayName="haml";KL.aliases=[];function KL(e){e.register(Ap),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)}lO.displayName="haskell";lO.aliases=["hs"];function lO(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}eM.displayName="haxe";eM.aliases=[];function eM(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:/[=\[\]{}]/}}nM.displayName="hlsl";nM.aliases=[];function nM(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/})}rM.displayName="hoon";rM.aliases=[];function rM(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}iM.displayName="hpkp";iM.aliases=[];function iM(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}oM.displayName="hsts";oM.aliases=[];function oM(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}sM.displayName="http";sM.aliases=[];function sM(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)}lM.displayName="ichigojam";lM.aliases=[];function lM(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:/[\[,;:()\]]/}}uM.displayName="icon";uM.aliases=[];function uM(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:/[\[\](){},;]/}}cM.displayName="icu-message-format";cM.aliases=[];function cM(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)}dM.displayName="idris";dM.aliases=["idr"];function dM(e){e.register(lO),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}fM.displayName="ignore";fM.aliases=["gitignore","hgignore","npmignore"];function fM(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)}pM.displayName="inform7";pM.aliases=[];function pM(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"}}hM.displayName="io";hM.aliases=[];function hM(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:/[()]/}}Ig.displayName="javadoclike";Ig.aliases=[];function Ig(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(xp),e.register(Ig),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)}yM.displayName="javastacktrace";yM.aliases=[];function yM(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/}}}}OM.displayName="jexl";OM.aliases=[];function OM(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:/[{}[\](),.]/}}vM.displayName="jolie";vM.aliases=[];function vM(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]*:)/}})}EM.displayName="jq";EM.aliases=[];function EM(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)}SM.displayName="js-templates";SM.aliases=[];function SM(e){e.register(go),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(M){if(typeof M=="string")return M;for(var D=M.content,R;m.indexOf(R=l(v++,O))!==-1;);return S[R]=D,R}).join(""),A=u(k,y,O),w=Object.keys(S);v=0;function E(M){for(var D=0;D=w.length)return;var R=M[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"?(M.splice.apply(M,[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(A),new t.Token(O,A,"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)}wM.displayName="n4js";wM.aliases=["n4jsd"];function wM(e){e.register(go),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}kM.displayName="js-extras";kM.aliases=[];function kM(e){e.register(go),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:/:/}}}}}}_M.displayName="julia";_M.aliases=[];function _M(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|[πℯ]/}}RM.displayName="keepalived";RM.aliases=[];function RM(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:/[\{\}]/}}IM.displayName="keyman";IM.aliases=[];function IM(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:/[()=,]/}}NM.displayName="kumir";NM.aliases=["kum"];function NM(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)}DM.displayName="kusto";DM.aliases=[];function DM(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:/[()\[\]{},;.:]/}}PM.displayName="latex";PM.aliases=["context","tex"];function PM(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)}LM.displayName="latte";LM.aliases=[];function LM(e){e.register(jn),e.register(bo),e.register(Cp),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)}uO.displayName="scheme";uO.aliases=[];function uO(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)}MM.displayName="lilypond";MM.aliases=["ly"];function MM(e){e.register(uO),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)}$M.displayName="liquid";$M.aliases=[];function $M(e){e.register(bo),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")})}FM.displayName="lisp";FM.aliases=["elisp","emacs","emacs-lisp"];function FM(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)}BM.displayName="livescript";BM.aliases=[];function BM(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}UM.displayName="llvm";UM.aliases=[];function UM(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)}jM.displayName="log";jM.aliases=[];function jM(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:/[\[\].,]/}}zM.displayName="lolcode";zM.aliases=[];function zM(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}|…|,|!/}}VM.displayName="magma";VM.aliases=[];function VM(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:/[()[\]{}<>,;.:]/}}lx.displayName="mata";lx.aliases=[];function lx(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)}HM.displayName="matlab";HM.aliases=[];function HM(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}|[.,;\[\](){}!]/}}WM.displayName="maxscript";WM.aliases=[];function WM(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)}QM.displayName="mel";QM.aliases=[];function QM(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}YM.displayName="mermaid";YM.aliases=[];function YM(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:/[(){};]/}}GM.displayName="metafont";GM.aliases=[];function GM(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}}}qM.displayName="mizar";qM.aliases=[];function qM(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:/\(#|#\)|[,:;\[\](){}]/}}ZM.displayName="mongodb";ZM.aliases=[];function ZM(e){e.register(go),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)}XM.displayName="monkey";XM.aliases=[];function XM(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:/[.,:;()\[\]]/}}KM.displayName="moonscript";KM.aliases=["moon"];function KM(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}JM.displayName="n1ql";JM.aliases=[];function JM(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:/[;[\](),.{}:]/}}e4.displayName="nand2tetris-hdl";e4.aliases=[];function e4(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=&|$!]/}}r4.displayName="neon";r4.aliases=[];function r4(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:/[,:=[\]{}()-]/}}i4.displayName="nevod";i4.aliases=[];function i4(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\-.]+/}}o4.displayName="nginx";o4.aliases=[];function o4(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}s4.displayName="nix";s4.aliases=[];function s4(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}l4.displayName="nsis";l4.aliases=[];function l4(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}}}u4.displayName="ocaml";u4.aliases=[];function u4(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/}}c4.displayName="odin";c4.aliases=[];function c4(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)}d4.displayName="opencl";d4.aliases=[];function d4(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)}f4.displayName="openqasm";f4.aliases=["qasm"];function f4(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}p4.displayName="oz";p4.aliases=[];function p4(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:/[\[\](){}.:;?]/}}h4.displayName="parigp";h4.aliases=[];function h4(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:/[\[\]{}().,:;|]/}}m4.displayName="parser";m4.aliases=[];function m4(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)}g4.displayName="pascal";g4.aliases=["objectpascal"];function g4(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)}y4.displayName="psl";y4.aliases=[];function y4(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:/[(){}\[\];,]/}}O4.displayName="pcaxis";O4.aliases=["px"];function O4(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}v4.displayName="peoplecode";v4.aliases=["pcode"];function v4(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}E4.displayName="phpdoc";E4.aliases=[];function E4(e){e.register(Ig),e.register(Cp),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)}S4.displayName="php-extras";S4.aliases=[];function S4(e){e.register(Cp),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:/::|\\/}}})}T4.displayName="plant-uml";T4.aliases=["plantuml"];function T4(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)}w4.displayName="plsql";w4.aliases=[];function w4(e){e.register(Ag),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"}})}k4.displayName="powerquery";k4.aliases=["mscript","pq"];function k4(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}x4.displayName="powershell";x4.aliases=[];function x4(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)}C4.displayName="processing";C4.aliases=[];function C4(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"}})}A4.displayName="prolog";A4.aliases=[];function A4(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:/[(){}\[\],]/}}_4.displayName="promql";_4.aliases=[];function _4(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)}R4.displayName="properties";R4.aliases=[];function R4(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:/[=:]/}}I4.displayName="protobuf";I4.aliases=[];function I4(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)}N4.displayName="stylus";N4.aliases=[];function N4(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)}D4.displayName="twig";D4.aliases=[];function D4(e){e.register(bo),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")})}P4.displayName="pug";P4.aliases=[];function P4(e){e.register(go),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)}L4.displayName="puppet";L4.aliases=[];function L4(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)}M4.displayName="pure";M4.aliases=[];function M4(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)}$4.displayName="purebasic";$4.aliases=["pbfasm"];function $4(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}F4.displayName="purescript";F4.aliases=["purs"];function F4(e){e.register(lO),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}B4.displayName="qsharp";B4.aliases=["qs"];function B4(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}U4.displayName="q";U4.aliases=[];function U4(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:/[(){}\[\];.]/}}j4.displayName="qml";j4.aliases=[];function j4(e){e.register(go),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)}z4.displayName="qore";z4.aliases=[];function z4(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/})}V4.displayName="racket";V4.aliases=["rkt"];function V4(e){e.register(uO),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}H4.displayName="cshtml";H4.aliases=["razor"];function H4(e){e.register(kp),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)}W4.displayName="tsx";W4.aliases=[];function W4(e){e.register(ux),e.register(_g),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)}Q4.displayName="reason";Q4.aliases=[];function Q4(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}Y4.displayName="rego";Y4.aliases=[];function Y4(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:/[,;.\[\]{}()]/}}G4.displayName="renpy";G4.aliases=["rpy"];function G4(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}q4.displayName="rescript";q4.aliases=["res"];function q4(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}Z4.displayName="rest";Z4.aliases=[];function Z4(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}}}X4.displayName="rip";X4.aliases=[];function X4(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`'",.:;#\/\\()<>\[\]{}]*/}}K4.displayName="roboconf";K4.aliases=[];function K4(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:/[{},.;:=]/}}J4.displayName="robotframework";J4.aliases=["robot"];function J4(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)}e5.displayName="sas";e5.aliases=[];function e5(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)}t5.displayName="shell-session";t5.aliases=["sh-session","shellsession"];function t5(e){e.register(nO),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)}n5.displayName="smali";n5.aliases=[];function n5(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:/[{}(),;:]/}}r5.displayName="smalltalk";r5.aliases=[];function r5(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:/[.;:?\[\](){}]/}}i5.displayName="smarty";i5.aliases=[];function i5(e){e.register(bo),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)}o5.displayName="sml";o5.aliases=["smlnj"];function o5(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}s5.displayName="solution-file";s5.aliases=["sln"];function s5(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)}l5.displayName="soy";l5.aliases=[];function l5(e){e.register(bo),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)}cx.displayName="turtle";cx.aliases=["trig"];function cx(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}u5.displayName="sparql";u5.aliases=["rq"];function u5(e){e.register(cx),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}c5.displayName="splunk-spl";c5.aliases=[];function c5(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:/[()[\],]/}}d5.displayName="sqf";d5.aliases=[];function d5(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"]}f5.displayName="squirrel";f5.aliases=[];function f5(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"}})}p5.displayName="stan";p5.aliases=[];function p5(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)}h5.displayName="stata";h5.aliases=[];function h5(e){e.register(xp),e.register(lx),e.register(oO),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}m5.displayName="iecst";m5.aliases=[];function m5(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:/[()[\].,;]/}}g5.displayName="supercollider";g5.aliases=["sclang"];function g5(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)}y5.displayName="t4-cs";y5.aliases=["t4"];function y5(e){e.register(kp),e.register(cO),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}O5.displayName="t4-vb";O5.aliases=[];function O5(e){e.register(cO),e.register(sO),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}v5.displayName="tap";v5.aliases=[];function v5(e){e.register(iO),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"}}}E5.displayName="tcl";E5.aliases=[];function E5(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:/[{}()\[\]]/}}S5.displayName="tt2";S5.aliases=[];function S5(e){e.register(jn),e.register(bo),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)}T5.displayName="toml";T5.aliases=[];function T5(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)}w5.displayName="tremor";w5.aliases=["trickle","troy"];function w5(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)}k5.displayName="typoscript";k5.aliases=["tsconfig"];function k5(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)}x5.displayName="unrealscript";x5.aliases=["uc","uscript"];function x5(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}C5.displayName="uorazor";C5.aliases=[];function C5(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:/[()\[\]{}:.,]/}}A5.displayName="v";A5.aliases=[];function A5(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)}_5.displayName="vala";_5.aliases=[];function _5(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]+$/}}})}R5.displayName="velocity";R5.aliases=[];function R5(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)}I5.displayName="verilog";I5.aliases=[];function I5(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:/[[\];(),.:]/}}N5.displayName="vhdl";N5.aliases=[];function N5(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:/[{}[\];(),.:]/}}D5.displayName="vim";D5.aliases=[];function D5(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:/[{}[\](),;:]/}}P5.displayName="visual-basic";P5.aliases=["vb","vba"];function P5(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"]}L5.displayName="warpscript";L5.aliases=[];function L5(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/}}M5.displayName="wasm";M5.aliases=[];function M5(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:/[()]/}}$5.displayName="web-idl";$5.aliases=["webidl"];function $5(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)}F5.displayName="wgsl";F5.aliases=[];function F5(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:/[@(){}[\],;<>:.]/}}B5.displayName="wiki";B5.aliases=[];function B5(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}}}})}U5.displayName="wolfram";U5.aliases=["mathematica","nb","wl"];function U5(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}j5.displayName="wren";j5.aliases=[];function j5(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]+/}}}z5.displayName="xeora";z5.aliases=["xeoracube"];function z5(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)}V5.displayName="xml-doc";V5.aliases=[];function V5(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)}H5.displayName="xojo";H5.aliases=[];function H5(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:/[.,;:()]/}}W5.displayName="xquery";W5.aliases=[];function W5(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)}Q5.displayName="yang";Q5.aliases=[];function Q5(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:/[{};:]/}}Y5.displayName="zig";Y5.aliases=[];function Y5(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(Zk);te.register(go);te.register(c3);te.register(d3);te.register(f3);te.register(p3);te.register(h3);te.register(m3);te.register(g3);te.register(b3);te.register(Ag);te.register(y3);te.register(O3);te.register(v3);te.register(E3);te.register(Bl);te.register(wp);te.register(Qk);te.register(S3);te.register(T3);te.register(nO);te.register(iO);te.register(ex);te.register(w3);te.register(k3);te.register(kp);te.register(x3);te.register(C3);te.register(A3);te.register(_3);te.register(R3);te.register(I3);te.register(N3);te.register(D3);te.register(aO);te.register(P3);te.register(L3);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(Ap);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(Yk);te.register(bo);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(rO);te.register(kL);te.register(xL);te.register(CL);te.register(AL);te.register(_L);te.register(RL);te.register(IL);te.register(NL);te.register(DL);te.register(PL);te.register(LL);te.register(ML);te.register($L);te.register(FL);te.register(BL);te.register(UL);te.register(jL);te.register(zL);te.register(VL);te.register(HL);te.register(WL);te.register(QL);te.register(Gk);te.register(YL);te.register(GL);te.register(qL);te.register(ZL);te.register(Kk);te.register(ax);te.register(XL);te.register(KL);te.register(JL);te.register(lO);te.register(eM);te.register(tM);te.register(nM);te.register(rM);te.register(iM);te.register(oM);te.register(Cg);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(qk);te.register(hM);te.register(mM);te.register(xp);te.register(Cp);te.register(Ig);te.register(gM);te.register(bM);te.register(yM);te.register(OM);te.register(vM);te.register(EM);te.register(SM);te.register(_g);te.register(TM);te.register(wM);te.register(kM);te.register(xM);te.register(CM);te.register(AM);te.register(_M);te.register(RM);te.register(IM);te.register(Xk);te.register(NM);te.register(DM);te.register(PM);te.register(LM);te.register(uO);te.register(MM);te.register($M);te.register(FM);te.register(BM);te.register(UM);te.register(jM);te.register(zM);te.register(VM);te.register(Jk);te.register(lx);te.register(HM);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(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(tx);te.register(u4);te.register(c4);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(nx);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(I4);te.register(N4);te.register(D4);te.register(P4);te.register(L4);te.register(M4);te.register($4);te.register(F4);te.register(oO);te.register(B4);te.register(U4);te.register(j4);te.register(z4);te.register(rx);te.register(V4);te.register(H4);te.register(ux);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(ix);te.register(e5);te.register(ox);te.register(t5);te.register(n5);te.register(r5);te.register(i5);te.register(o5);te.register(a5);te.register(s5);te.register(l5);te.register(cx);te.register(u5);te.register(c5);te.register(d5);te.register(f5);te.register(p5);te.register(h5);te.register(m5);te.register(g5);te.register(sx);te.register(b5);te.register(cO);te.register(y5);te.register(sO);te.register(O5);te.register(v5);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);function iI(){iI=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)),DT(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)},iI.apply(this,arguments)}function DT(e,t){return DT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},DT(e,t)}function ez(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 y7e=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){Ca(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(A){for(var w,E=VA(A.properties.className);!(w=E()).done;){var M=w.value;if(M.slice(0,9)==="language-")return M.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(Lh(r),h),o.properties.className=(o.properties.className||[]).concat("language-"+h)}catch(A){if(!t.ignoreMissing||!/Unknown language/.test(A.message))throw A;u=r}else u=r;u.children=(c=1,function A(w){return w.reduce(function(E,M){if(M.type==="text"){var D=M.value,R=(D.match(/\n/g)||"").length;if(R===0)M.position={start:{line:c,column:1},end:{line:c,column:1}},E.push(M);else for(var B,U=D.split(` -`),V=VA(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(M,"children")){var Z=c;return M.children=A(M.children),E.push(M),M.position={start:{line:Z,column:1},end:{line:c,column:1}},E}return E.push(M),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(A){var w=/{([\d,-]+)}/,E=A.split(",").map(function(R){return R.trim()}).join();if(w.test(E)){var M=w.exec(E)[1],D=WUe(M);return function(R){return D.includes(R+1)}}return function(){return!1}}(l),O=function(A){var w=iI(/showLineNumbers=(\d+)/i,{lines:1});if(w.test(A)){var E=w.exec(A);return Number(E.groups.lines)}return 1}(l),b=function(A){for(var w=new Array(A),E=0;E=M+1});D.children=R.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return l.toLowerCase().includes(B)})||(D.properties.line=[(M+O).toString()],D.properties.className.push("line-number")),y(M)&&D.properties.className.push("highlight-line"),(d==="diff"||(A=d)!=null&&A.includes("diff-"))&&Lh(D).substring(0,1)==="-"?D.properties.className.push("deleted"):(d==="diff"||(w=d)!=null&&w.includes("diff-"))&&Lh(D).substring(0,1)==="+"&&D.properties.className.push("inserted")},k=VA(b.entries());!(m=k()).done;)S();b.length>0&&Lh(b[b.length-1]).trim()===""&&b.pop(),r.children=b}}}},O7e=y7e(te),VE={},oI={};function v7e(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"]}}}),sI=dO(Pee,{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"]}}}),lI=dO(sI,{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"]}}}),A7e=dO(lI,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),az={css1:Dee,css2:Pee,css3:sI,"selectors-3":sI,"selectors-4":lI,latest:lI,progressive:A7e};function k0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function _7e(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function x0(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var R7e={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},I7e={'"':!0,"'":!0},WA={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},N7e=6,QA="css-selector-parser parse error: ";function D7e(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:az[n];a.baseSyntax&&(a=dO(az[a.baseSyntax],a));var s=a.tag?[!0,!!k7e(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(QA,"Namespaces cannot be enabled while tags are disabled."));var m=!!r,y=a.combinators?tz(a.combinators):VE,O=a.attributes?[!0,a.attributes.operators?tz(a.attributes.operators):VE,a.attributes.caseSensitivityModifiers?E7e(a.attributes.caseSensitivityModifiers):oI,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,VE,oI,!1],b=O[0],v=O[1],S=O[2],k=O[3],A=k||Object.keys(S).length>0,w=a.pseudoClasses?[!0,a.pseudoClasses.definitions?rz(a.pseudoClasses.definitions):Zv,a.pseudoClasses.unknown==="accept"]:[!1,Zv,!1],E=w[0],M=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?rz(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):Zv,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,Zv,!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("*")||k0(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(QA).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(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,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:/=/}}xp.displayName="java";xp.aliases=[];function xp(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}_g.displayName="json";_g.aliases=["webmanifest"];function _g(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"}})}rO.displayName="lua";rO.aliases=[];function rO(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:/[:;(){}]/}}iO.displayName="yaml";iO.aliases=["yml"];function iO(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)}yo.displayName="markup-templating";yo.aliases=[];function yo(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 v=h.substring(0,y),b=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),O=h.substring(y+m.length),S=[];v&&S.push.apply(S,s([v])),S.push(b),O&&S.push.apply(S,s([O])),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)}Cp.displayName="php";Cp.aliases=[];function Cp(e){e.register(yo),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)}oO.displayName="python";oO.aliases=["py"];function oO(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:/[(){}\[\],;]/}}Ap.displayName="ruby";Ap.aliases=["rb"];function Ap(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}Rg.displayName="sql";Rg.aliases=[];function Rg(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})}Ig.displayName="typescript";Ig.aliases=["ts"];function Ig(e){e.register(bo),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)}aO.displayName="basic";aO.aliases=[];function aO(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:/[,;:()]/}}sO.displayName="vbnet";sO.aliases=[];function sO(e){e.register(aO),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 Xj=/[#.]/g;function n7e(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function d7e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function f7e(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function ez(e){return f7e(e)||Mee(e)}const eh=String.fromCharCode,p7e=["","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 h7e(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 v=e.charCodeAt(i+1);if(v===9||v===10||v===12||v===32||v===38||v===60||Number.isNaN(v)||n&&v===n){a+=eh(p),c++;continue}const b=i+1;let O=b,S=b,k;if(v===35){S=++O;const U=e.charCodeAt(S);U===88||U===120?(k="hexadecimal",S=++O):k="decimal"}else k="named";let A="",w="",E="";const M=k==="named"?ez:k==="decimal"?Mee:d7e;for(S--;++S<=e.length;){const U=e.charCodeAt(S);if(!M(U))break;E+=eh(U),k==="named"&&c7e.includes(E)&&(A=E,w=Wy(E))}let D=e.charCodeAt(S)===59;if(D){S++;const U=k==="named"?Wy(E):!1;U&&(A=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(A!==E&&(S=O+A.length,R=1+S-O,D=!1),!D){const U=A?1:3;if(t.attribute){const V=e.charCodeAt(S);V===61?(m(U,R),w=""):ez(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(m7e(U))m(7,R),B=eh(65533);else if(U in Jj)m(6,R),B=Jj[U];else{let V="";g7e(U)&&m(6,R),U>65535&&(U-=65536,V+=eh(U>>>10|55296),U=56320|U&1023),B=V+eh(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+=eh(p),c++);return r.join("");function h(){return{line:u,column:c,offset:i+((s?s.offset:0)||0)}}function m(v,b){let O;t.warning&&(O=h(),O.column+=b,O.offset+=b,t.warning.call(t.warningContext,p7e[v],O,v))}function y(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:h()}),a="")}}function m7e(e){return e>=55296&&e<=57343||e>1114111}function g7e(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 b7e=0,qv={},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:++b7e}),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:qv,plaintext:qv,text:qv,txt:qv,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),Lb.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 y7e;return jE(i,i.head,e),$ee(e,i,t,i.head,0),v7e(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:Lb};function Lb(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function tz(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 $ee(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+=v.value.length,v=v.next){var O=v.value;if(t.length>e.length)return;if(!(O instanceof Lb)){var S=1,k;if(p){if(k=tz(y,b,e,d),!k||k.index>=e.length)break;var M=k.index,A=k.index+k[0].length,w=b;for(w+=v.value.length;M>=w;)v=v.next,w+=v.value.length;if(w-=v.value.length,b=w,v.value instanceof Lb)continue;for(var E=v;E!==t.tail&&(wo.reach&&(o.reach=U);var V=v.prev;R&&(V=jE(t,V,R),b+=R.length),O7e(t,V,S);var z=new Lb(a,c?Vi.tokenize(D,c):D,h,D);if(v=jE(t,V,z),B&&jE(t,v,B),S>1){var Q={cause:a+","+l,reach:U};$ee(e,t,n,v.prev,b,Q),o&&Q.reach>o.reach&&(o.reach=Q.reach)}}}}}}function y7e(){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 jE(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 O7e(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:/[,.:()]/}}d3.displayName="abnf";d3.aliases=[];function d3(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)}f3.displayName="actionscript";f3.aliases=[];function f3(e){e.register(bo),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}})}p3.displayName="ada";p3.aliases=[];function p3(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}}h3.displayName="agda";h3.aliases=[];function h3(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)}m3.displayName="al";m3.aliases=[];function m3(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:/[()\[\]{}:.;,]/}}g3.displayName="antlr4";g3.aliases=["g4"];function g3(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:/\^?.*\$|\^.*\$?/}}y3.displayName="apex";y3.aliases=[];function y3(e){e.register(jn),e.register(Rg),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)}O3.displayName="apl";O3.aliases=[];function O3(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"}}}v3.displayName="applescript";v3.aliases=[];function v3(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:/[{}():,¬«»《》]/}}E3.displayName="aql";E3.aliases=[];function E3(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:/::|[?.:,;()[\]{}]/}}S3.displayName="arff";S3.aliases=[];function S3(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:/[{},]/}}T3.displayName="armasm";T3.aliases=["arm-asm"];function T3(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}w3.displayName="arturo";w3.aliases=["art"];function w3(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)}k3.displayName="asciidoc";k3.aliases=["adoc"];function k3(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||{}}})}C3.displayName="asm6502";C3.aliases=[];function C3(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:/[(),:]/}}A3.displayName="asmatmel";A3.aliases=[];function A3(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:/[(),:]/}}_3.displayName="autohotkey";_3.aliases=[];function _3(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:/[{}[\]():,]/}}R3.displayName="autoit";R3.aliases=[];function R3(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:/[\[\]().,:]/}}I3.displayName="avisynth";I3.aliases=["avs"];function I3(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)}N3.displayName="avro-idl";N3.aliases=["avdl"];function N3(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"]}D3.displayName="awk";D3.aliases=["gawk"];function D3(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}P3.displayName="batch";P3.aliases=[];function P3(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)}L3.displayName="bbcode";L3.aliases=["shortcode"];function L3(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}M3.displayName="bbj";M3.aliases=[];function M3(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)}$3.displayName="bicep";$3.aliases=[];function $3(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}F3.displayName="birb";F3.aliases=[];function F3(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"}})}B3.displayName="bison";B3.aliases=[];function B3(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:/%[%?]|[|:;\[\]<>]/}}})}U3.displayName="bnf";U3.aliases=["rbnf"];function U3(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}j3.displayName="bqn";j3.aliases=[];function j3(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}z3.displayName="brainfuck";z3.aliases=[];function z3(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}V3.displayName="brightscript";V3.aliases=[];function V3(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}H3.displayName="bro";H3.aliases=[];function H3(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:/[{}[\];(),.:]/}}W3.displayName="bsl";W3.aliases=["oscript"];function W3(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}Q3.displayName="cfscript";Q3.aliases=["cfc"];function Q3(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}Y3.displayName="chaiscript";Y3.aliases=[];function Y3(e){e.register(jn),e.register(wp),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]+/}}})}G3.displayName="cil";G3.aliases=[];function G3(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]+/}}q3.displayName="cilkc";q3.aliases=["cilk-c"];function q3(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}Z3.displayName="cilkcpp";Z3.aliases=["cilk","cilk-cpp"];function Z3(e){e.register(wp),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}X3.displayName="clojure";X3.aliases=[];function X3(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:/[{}\[\](),]/}}K3.displayName="cmake";K3.aliases=[];function K3(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:/[()>}]|\$[<{]/}}J3.displayName="cobol";J3.aliases=[];function J3(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:/[.:,()]/}}eL.displayName="coffeescript";eL.aliases=["coffee"];function eL(e){e.register(bo),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}nL.displayName="csp";nL.aliases=[];function nL(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)}rL.displayName="cooklang";rL.aliases=[];function rL(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)}iL.displayName="coq";iL.aliases=[];function iL(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)}oL.displayName="crystal";oL.aliases=[];function oL(e){e.register(Ap),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(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)}sL.displayName="csv";sL.aliases=[];function sL(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}lL.displayName="cue";lL.aliases=[];function lL(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)}uL.displayName="cypher";uL.aliases=[];function uL(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:/[()[\]{},;.]/}}cL.displayName="d";cL.aliases=[];function cL(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"}})}dL.displayName="dart";dL.aliases=[];function dL(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)}fL.displayName="dataweave";fL.aliases=[];function fL(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)}pL.displayName="dax";pL.aliases=[];function pL(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:/[;\[\](){}`,.]/}}hL.displayName="dhall";hL.aliases=[];function hL(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}mL.displayName="django";mL.aliases=["jinja2"];function mL(e){e.register(yo),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)}gL.displayName="dns-zone-file";gL.aliases=["dns-zone"];function gL(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)}yL.displayName="dot";yL.aliases=["gv"];function yL(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)}OL.displayName="ebnf";OL.aliases=[];function OL(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:/[-=|*/!]/}}vL.displayName="editorconfig";vL.aliases=[];function vL(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:/^=/}}}}EL.displayName="eiffel";EL.aliases=[];function EL(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}SL.displayName="ejs";SL.aliases=["eta"];function SL(e){e.register(bo),e.register(yo),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)}TL.displayName="elixir";TL.aliases=[];function TL(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}}}})}wL.displayName="elm";wL.aliases=[];function wL(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:/[{}[\]|(),.:]/}}kL.displayName="etlua";kL.aliases=[];function kL(e){e.register(rO),e.register(yo),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)}xL.displayName="erb";xL.aliases=[];function xL(e){e.register(yo),e.register(Ap),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)}CL.displayName="erlang";CL.aliases=[];function CL(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:/[()[\]{}:;,.#|]|<<|>>/}}AL.displayName="excel-formula";AL.aliases=["xls","xlsx"];function AL(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"]}_L.displayName="fsharp";_L.aliases=[];function _L(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}})}RL.displayName="factor";RL.aliases=[];function RL(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)}IL.displayName="false";IL.aliases=[];function IL(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:/,/}}})}DL.displayName="flow";DL.aliases=[];function DL(e){e.register(bo),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)}PL.displayName="fortran";PL.aliases=[];function PL(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:/\(\/|\/\)|[(),;:&]/}}LL.displayName="ftl";LL.aliases=[];function LL(e){e.register(yo),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)}ML.displayName="gml";ML.aliases=["gamemakerlanguage"];function ML(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/})}$L.displayName="gap";$L.aliases=[];function $L(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}FL.displayName="gcode";FL.aliases=[];function FL(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:/[:*]/}}BL.displayName="gdscript";BL.aliases=[];function BL(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:/[.:,;()[\]{}]/}}UL.displayName="gedcom";UL.aliases=[];function UL(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"}}}jL.displayName="gettext";jL.aliases=["po"];function jL(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}zL.displayName="gherkin";zL.aliases=[];function zL(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)}VL.displayName="git";VL.aliases=[];function VL(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}}HL.displayName="glsl";HL.aliases=[];function HL(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/})}WL.displayName="gn";WL.aliases=["gni"];function WL(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}QL.displayName="linker-script";QL.aliases=["ld"];function QL(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"]}YL.displayName="go-module";YL.aliases=["go-mod"];function YL(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:/[()[\],]/}}GL.displayName="gradle";GL.aliases=[];function GL(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)}qL.displayName="graphql";qL.aliases=[];function qL(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(v){return typeof v!="string"&&v.type!=="comment"&&v.type!=="scalar"}),i=0;function o(v){return r[i+v]}function a(v,b){b=b||0;for(var O=0;O0)){var h=s(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=i;m=0&&l(y,"variable-input")}}}}})}ZL.displayName="groovy";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.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)}XL.displayName="textile";XL.aliases=[];function XL(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)}KL.displayName="haml";KL.aliases=[];function KL(e){e.register(Ap),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)}lO.displayName="haskell";lO.aliases=["hs"];function lO(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}eM.displayName="haxe";eM.aliases=[];function eM(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:/[=\[\]{}]/}}nM.displayName="hlsl";nM.aliases=[];function nM(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/})}rM.displayName="hoon";rM.aliases=[];function rM(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}iM.displayName="hpkp";iM.aliases=[];function iM(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}oM.displayName="hsts";oM.aliases=[];function oM(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}sM.displayName="http";sM.aliases=[];function sM(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)}lM.displayName="ichigojam";lM.aliases=[];function lM(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:/[\[,;:()\]]/}}uM.displayName="icon";uM.aliases=[];function uM(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:/[\[\](){},;]/}}cM.displayName="icu-message-format";cM.aliases=[];function cM(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)}dM.displayName="idris";dM.aliases=["idr"];function dM(e){e.register(lO),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}fM.displayName="ignore";fM.aliases=["gitignore","hgignore","npmignore"];function fM(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)}pM.displayName="inform7";pM.aliases=[];function pM(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"}}hM.displayName="io";hM.aliases=[];function hM(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:/[()]/}}Dg.displayName="javadoclike";Dg.aliases=[];function Dg(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(xp),e.register(Dg),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)}yM.displayName="javastacktrace";yM.aliases=[];function yM(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/}}}}OM.displayName="jexl";OM.aliases=[];function OM(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:/[{}[\](),.]/}}vM.displayName="jolie";vM.aliases=[];function vM(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]*:)/}})}EM.displayName="jq";EM.aliases=[];function EM(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)}SM.displayName="js-templates";SM.aliases=[];function SM(e){e.register(bo),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,v){var b={code:m,grammar:y,language:v};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 v=t.tokenize(m,y);if(v.length===3){var b=[1,1];b.push.apply(b,u(v[1],t.languages.javascript,"javascript")),v.splice.apply(v,b)}return new t.Token("interpolation",v,i.alias,m)}function d(m,y,v){var b=t.tokenize(m,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),O=0,S={},k=b.map(function(M){if(typeof M=="string")return M;for(var D=M.content,R;m.indexOf(R=l(O++,v))!==-1;);return S[R]=D,R}).join(""),A=u(k,y,v),w=Object.keys(S);O=0;function E(M){for(var D=0;D=w.length)return;var R=M[D];if(typeof R=="string"||typeof R.content=="string"){var B=w[O],U=typeof R=="string"?R:R.content,V=U.indexOf(B);if(V!==-1){++O;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"?(M.splice.apply(M,[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(A),new t.Token(v,A,"language-"+v,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(v){for(var b=0,O=v.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)}wM.displayName="n4js";wM.aliases=["n4jsd"];function wM(e){e.register(bo),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}kM.displayName="js-extras";kM.aliases=[];function kM(e){e.register(bo),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:/:/}}}}}}_M.displayName="julia";_M.aliases=[];function _M(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|[πℯ]/}}RM.displayName="keepalived";RM.aliases=[];function RM(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:/[\{\}]/}}IM.displayName="keyman";IM.aliases=[];function IM(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:/[()=,]/}}NM.displayName="kumir";NM.aliases=["kum"];function NM(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)}DM.displayName="kusto";DM.aliases=[];function DM(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:/[()\[\]{},;.:]/}}PM.displayName="latex";PM.aliases=["context","tex"];function PM(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)}LM.displayName="latte";LM.aliases=[];function LM(e){e.register(jn),e.register(yo),e.register(Cp),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)}uO.displayName="scheme";uO.aliases=[];function uO(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)}MM.displayName="lilypond";MM.aliases=["ly"];function MM(e){e.register(uO),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)}$M.displayName="liquid";$M.aliases=[];function $M(e){e.register(yo),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")})}FM.displayName="lisp";FM.aliases=["elisp","emacs","emacs-lisp"];function FM(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)}BM.displayName="livescript";BM.aliases=[];function BM(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}UM.displayName="llvm";UM.aliases=[];function UM(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)}jM.displayName="log";jM.aliases=[];function jM(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:/[\[\].,]/}}zM.displayName="lolcode";zM.aliases=[];function zM(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}|…|,|!/}}VM.displayName="magma";VM.aliases=[];function VM(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)}HM.displayName="matlab";HM.aliases=[];function HM(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}|[.,;\[\](){}!]/}}WM.displayName="maxscript";WM.aliases=[];function WM(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)}QM.displayName="mel";QM.aliases=[];function QM(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}YM.displayName="mermaid";YM.aliases=[];function YM(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:/[(){};]/}}GM.displayName="metafont";GM.aliases=[];function GM(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}}}qM.displayName="mizar";qM.aliases=[];function qM(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:/\(#|#\)|[,:;\[\](){}]/}}ZM.displayName="mongodb";ZM.aliases=[];function ZM(e){e.register(bo),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)}XM.displayName="monkey";XM.aliases=[];function XM(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:/[.,:;()\[\]]/}}KM.displayName="moonscript";KM.aliases=["moon"];function KM(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}JM.displayName="n1ql";JM.aliases=[];function JM(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:/[;[\](),.{}:]/}}e4.displayName="nand2tetris-hdl";e4.aliases=[];function e4(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=&|$!]/}}r4.displayName="neon";r4.aliases=[];function r4(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:/[,:=[\]{}()-]/}}i4.displayName="nevod";i4.aliases=[];function i4(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\-.]+/}}o4.displayName="nginx";o4.aliases=[];function o4(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}s4.displayName="nix";s4.aliases=[];function s4(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}l4.displayName="nsis";l4.aliases=[];function l4(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}}}u4.displayName="ocaml";u4.aliases=[];function u4(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/}}c4.displayName="odin";c4.aliases=[];function c4(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)}d4.displayName="opencl";d4.aliases=[];function d4(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)}f4.displayName="openqasm";f4.aliases=["qasm"];function f4(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}p4.displayName="oz";p4.aliases=[];function p4(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:/[\[\](){}.:;?]/}}h4.displayName="parigp";h4.aliases=[];function h4(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:/[\[\]{}().,:;|]/}}m4.displayName="parser";m4.aliases=[];function m4(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)}g4.displayName="pascal";g4.aliases=["objectpascal"];function g4(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)}y4.displayName="psl";y4.aliases=[];function y4(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:/[(){}\[\];,]/}}O4.displayName="pcaxis";O4.aliases=["px"];function O4(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}v4.displayName="peoplecode";v4.aliases=["pcode"];function v4(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}E4.displayName="phpdoc";E4.aliases=[];function E4(e){e.register(Dg),e.register(Cp),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)}S4.displayName="php-extras";S4.aliases=[];function S4(e){e.register(Cp),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:/::|\\/}}})}T4.displayName="plant-uml";T4.aliases=["plantuml"];function T4(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)}w4.displayName="plsql";w4.aliases=[];function w4(e){e.register(Rg),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"}})}k4.displayName="powerquery";k4.aliases=["mscript","pq"];function k4(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}x4.displayName="powershell";x4.aliases=[];function x4(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)}C4.displayName="processing";C4.aliases=[];function C4(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"}})}A4.displayName="prolog";A4.aliases=[];function A4(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:/[(){}\[\],]/}}_4.displayName="promql";_4.aliases=[];function _4(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)}R4.displayName="properties";R4.aliases=[];function R4(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:/[=:]/}}I4.displayName="protobuf";I4.aliases=[];function I4(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)}N4.displayName="stylus";N4.aliases=[];function N4(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)}D4.displayName="twig";D4.aliases=[];function D4(e){e.register(yo),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")})}P4.displayName="pug";P4.aliases=[];function P4(e){e.register(bo),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)}L4.displayName="puppet";L4.aliases=[];function L4(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)}M4.displayName="pure";M4.aliases=[];function M4(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)}$4.displayName="purebasic";$4.aliases=["pbfasm"];function $4(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}F4.displayName="purescript";F4.aliases=["purs"];function F4(e){e.register(lO),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}B4.displayName="qsharp";B4.aliases=["qs"];function B4(e){e.register(jn),function(t){function n(h,m){return h.replace(/<<(\d+)>>/g,function(y,v){return"(?:"+m[+v]+")"})}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}U4.displayName="q";U4.aliases=[];function U4(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:/[(){}\[\];.]/}}j4.displayName="qml";j4.aliases=[];function j4(e){e.register(bo),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)}z4.displayName="qore";z4.aliases=[];function z4(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/})}V4.displayName="racket";V4.aliases=["rkt"];function V4(e){e.register(uO),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}H4.displayName="cshtml";H4.aliases=["razor"];function H4(e){e.register(kp),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(O,S){for(var k=0;k/g,function(){return"(?:"+O+")"});return O.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)}W4.displayName="tsx";W4.aliases=[];function W4(e){e.register(cx),e.register(Ig),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)}Q4.displayName="reason";Q4.aliases=[];function Q4(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}Y4.displayName="rego";Y4.aliases=[];function Y4(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:/[,;.\[\]{}()]/}}G4.displayName="renpy";G4.aliases=["rpy"];function G4(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}q4.displayName="rescript";q4.aliases=["res"];function q4(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}Z4.displayName="rest";Z4.aliases=[];function Z4(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}}}X4.displayName="rip";X4.aliases=[];function X4(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`'",.:;#\/\\()<>\[\]{}]*/}}K4.displayName="roboconf";K4.aliases=[];function K4(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:/[{},.;:=]/}}J4.displayName="robotframework";J4.aliases=["robot"];function J4(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)}e5.displayName="sas";e5.aliases=[];function e5(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"},v={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,O={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":v,"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":v,"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":O,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":O,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(nO),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)}n5.displayName="smali";n5.aliases=[];function n5(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:/[{}(),;:]/}}r5.displayName="smalltalk";r5.aliases=[];function r5(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:/[.;:?\[\](){}]/}}i5.displayName="smarty";i5.aliases=[];function i5(e){e.register(yo),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)}o5.displayName="sml";o5.aliases=["smlnj"];function o5(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}s5.displayName="solution-file";s5.aliases=["sln"];function s5(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)}l5.displayName="soy";l5.aliases=[];function l5(e){e.register(yo),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}u5.displayName="sparql";u5.aliases=["rq"];function u5(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}c5.displayName="splunk-spl";c5.aliases=[];function c5(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:/[()[\],]/}}d5.displayName="sqf";d5.aliases=[];function d5(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"]}f5.displayName="squirrel";f5.aliases=[];function f5(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"}})}p5.displayName="stan";p5.aliases=[];function p5(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)}h5.displayName="stata";h5.aliases=[];function h5(e){e.register(xp),e.register(ux),e.register(oO),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}m5.displayName="iecst";m5.aliases=[];function m5(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:/[()[\].,;]/}}g5.displayName="supercollider";g5.aliases=["sclang"];function g5(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)}y5.displayName="t4-cs";y5.aliases=["t4"];function y5(e){e.register(kp),e.register(cO),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}O5.displayName="t4-vb";O5.aliases=[];function O5(e){e.register(cO),e.register(sO),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}v5.displayName="tap";v5.aliases=[];function v5(e){e.register(iO),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"}}}E5.displayName="tcl";E5.aliases=[];function E5(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:/[{}()\[\]]/}}S5.displayName="tt2";S5.aliases=[];function S5(e){e.register(jn),e.register(yo),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)}T5.displayName="toml";T5.aliases=[];function T5(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)}w5.displayName="tremor";w5.aliases=["trickle","troy"];function w5(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)}k5.displayName="typoscript";k5.aliases=["tsconfig"];function k5(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)}x5.displayName="unrealscript";x5.aliases=["uc","uscript"];function x5(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}C5.displayName="uorazor";C5.aliases=[];function C5(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:/[()\[\]{}:.,]/}}A5.displayName="v";A5.aliases=[];function A5(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)}_5.displayName="vala";_5.aliases=[];function _5(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]+$/}}})}R5.displayName="velocity";R5.aliases=[];function R5(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)}I5.displayName="verilog";I5.aliases=[];function I5(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:/[[\];(),.:]/}}N5.displayName="vhdl";N5.aliases=[];function N5(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:/[{}[\];(),.:]/}}D5.displayName="vim";D5.aliases=[];function D5(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:/[{}[\](),;:]/}}P5.displayName="visual-basic";P5.aliases=["vb","vba"];function P5(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"]}L5.displayName="warpscript";L5.aliases=[];function L5(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/}}M5.displayName="wasm";M5.aliases=[];function M5(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:/[()]/}}$5.displayName="web-idl";$5.aliases=["webidl"];function $5(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)}F5.displayName="wgsl";F5.aliases=[];function F5(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:/[@(){}[\],;<>:.]/}}B5.displayName="wiki";B5.aliases=[];function B5(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}}}})}U5.displayName="wolfram";U5.aliases=["mathematica","nb","wl"];function U5(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}j5.displayName="wren";j5.aliases=[];function j5(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]+/}}}z5.displayName="xeora";z5.aliases=["xeoracube"];function z5(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)}V5.displayName="xml-doc";V5.aliases=[];function V5(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)}H5.displayName="xojo";H5.aliases=[];function H5(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:/[.,;:()]/}}W5.displayName="xquery";W5.aliases=[];function W5(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)}Q5.displayName="yang";Q5.aliases=[];function Q5(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:/[{};:]/}}Y5.displayName="zig";Y5.aliases=[];function Y5(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(bo);te.register(c3);te.register(d3);te.register(f3);te.register(p3);te.register(h3);te.register(m3);te.register(g3);te.register(b3);te.register(Rg);te.register(y3);te.register(O3);te.register(v3);te.register(E3);te.register(Bl);te.register(wp);te.register(Yk);te.register(S3);te.register(T3);te.register(nO);te.register(iO);te.register(tx);te.register(w3);te.register(k3);te.register(kp);te.register(x3);te.register(C3);te.register(A3);te.register(_3);te.register(R3);te.register(I3);te.register(N3);te.register(D3);te.register(aO);te.register(P3);te.register(L3);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(Ap);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(Gk);te.register(yo);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(rO);te.register(kL);te.register(xL);te.register(CL);te.register(AL);te.register(_L);te.register(RL);te.register(IL);te.register(NL);te.register(DL);te.register(PL);te.register(LL);te.register(ML);te.register($L);te.register(FL);te.register(BL);te.register(UL);te.register(jL);te.register(zL);te.register(VL);te.register(HL);te.register(WL);te.register(QL);te.register(qk);te.register(YL);te.register(GL);te.register(qL);te.register(ZL);te.register(Jk);te.register(sx);te.register(XL);te.register(KL);te.register(JL);te.register(lO);te.register(eM);te.register(tM);te.register(nM);te.register(rM);te.register(iM);te.register(oM);te.register(_g);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(Zk);te.register(hM);te.register(mM);te.register(xp);te.register(Cp);te.register(Dg);te.register(gM);te.register(bM);te.register(yM);te.register(OM);te.register(vM);te.register(EM);te.register(SM);te.register(Ig);te.register(TM);te.register(wM);te.register(kM);te.register(xM);te.register(CM);te.register(AM);te.register(_M);te.register(RM);te.register(IM);te.register(Kk);te.register(NM);te.register(DM);te.register(PM);te.register(LM);te.register(uO);te.register(MM);te.register($M);te.register(FM);te.register(BM);te.register(UM);te.register(jM);te.register(zM);te.register(VM);te.register(ex);te.register(ux);te.register(HM);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(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(nx);te.register(u4);te.register(c4);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(rx);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(I4);te.register(N4);te.register(D4);te.register(P4);te.register(L4);te.register(M4);te.register($4);te.register(F4);te.register(oO);te.register(B4);te.register(U4);te.register(j4);te.register(z4);te.register(ix);te.register(V4);te.register(H4);te.register(cx);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(ox);te.register(e5);te.register(ax);te.register(t5);te.register(n5);te.register(r5);te.register(i5);te.register(o5);te.register(a5);te.register(s5);te.register(l5);te.register(dx);te.register(u5);te.register(c5);te.register(d5);te.register(f5);te.register(p5);te.register(h5);te.register(m5);te.register(g5);te.register(lx);te.register(b5);te.register(cO);te.register(y5);te.register(sO);te.register(O5);te.register(v5);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);function iI(){iI=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)),DT(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)},iI.apply(this,arguments)}function DT(e,t){return DT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},DT(e,t)}function nz(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 A7e=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){Ca(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(A){for(var w,E=HA(A.properties.className);!(w=E()).done;){var M=w.value;if(M.slice(0,9)==="language-")return M.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(Mh(r),h),o.properties.className=(o.properties.className||[]).concat("language-"+h)}catch(A){if(!t.ignoreMissing||!/Unknown language/.test(A.message))throw A;u=r}else u=r;u.children=(c=1,function A(w){return w.reduce(function(E,M){if(M.type==="text"){var D=M.value,R=(D.match(/\n/g)||"").length;if(R===0)M.position={start:{line:c,column:1},end:{line:c,column:1}},E.push(M);else for(var B,U=D.split(` +`),V=HA(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(M,"children")){var Z=c;return M.children=A(M.children),E.push(M),M.position={start:{line:Z,column:1},end:{line:c,column:1}},E}return E.push(M),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(A){var w=/{([\d,-]+)}/,E=A.split(",").map(function(R){return R.trim()}).join();if(w.test(E)){var M=w.exec(E)[1],D=t7e(M);return function(R){return D.includes(R+1)}}return function(){return!1}}(l),v=function(A){var w=iI(/showLineNumbers=(\d+)/i,{lines:1});if(w.test(A)){var E=w.exec(A);return Number(E.groups.lines)}return 1}(l),b=function(A){for(var w=new Array(A),E=0;E=M+1});D.children=R.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||O.some(function(B){return l.toLowerCase().includes(B)})||(D.properties.line=[(M+v).toString()],D.properties.className.push("line-number")),y(M)&&D.properties.className.push("highlight-line"),(d==="diff"||(A=d)!=null&&A.includes("diff-"))&&Mh(D).substring(0,1)==="-"?D.properties.className.push("deleted"):(d==="diff"||(w=d)!=null&&w.includes("diff-"))&&Mh(D).substring(0,1)==="+"&&D.properties.className.push("inserted")},k=HA(b.entries());!(m=k()).done;)S();b.length>0&&Mh(b[b.length-1]).trim()===""&&b.pop(),r.children=b}}}},_7e=A7e(te),zE={},oI={};function R7e(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"]}}}),sI=dO(jee,{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"]}}}),lI=dO(sI,{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"]}}}),F7e=dO(lI,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),lz={css1:Uee,css2:jee,css3:sI,"selectors-3":sI,"selectors-4":lI,latest:lI,progressive:F7e};function x0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function B7e(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function C0(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var U7e={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},j7e={'"':!0,"'":!0},QA={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},z7e=6,YA="css-selector-parser parse error: ";function V7e(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:lz[n];a.baseSyntax&&(a=dO(lz[a.baseSyntax],a));var s=a.tag?[!0,!!L7e(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(YA,"Namespaces cannot be enabled while tags are disabled."));var m=!!r,y=a.combinators?rz(a.combinators):zE,v=a.attributes?[!0,a.attributes.operators?rz(a.attributes.operators):zE,a.attributes.caseSensitivityModifiers?I7e(a.attributes.caseSensitivityModifiers):oI,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,zE,oI,!1],b=v[0],O=v[1],S=v[2],k=v[3],A=k||Object.keys(S).length>0,w=a.pseudoClasses?[!0,a.pseudoClasses.definitions?oz(a.pseudoClasses.definitions):Zv,a.pseudoClasses.unknown==="accept"]:[!1,Zv,!1],E=w[0],M=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?oz(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):Zv,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,Zv,!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("*")||x0(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(YA).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."),WA[q]&&ge("Identifiers cannot start with hyphens followed by digits.");Y=2&&ge("Identifiers cannot start with two hyphens with strict mode on."),QA[q]&&ge("Identifiers cannot start with hyphens followed by digits.");Y0)return(t.commaSeparated?jP:VP)(e)}else return String(e)}const z7e=[];function V7e(e,t){return(t.properties.className||z7e).includes(e.name)}function H7e(e,t){return t.properties.id===e.name}function W7e(e,t){return e.name===t.tagName}function Q7e(e,t){return function(n,r){let i=lz(n,"tag");const o=lz(r??"*","range"),a=[];let s=-1;for(;++s=uz&&e.charCodeAt(t)<=Z7e;)u=u*10+(e.charCodeAt(t)-uz),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?cz.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 dz(e){return J7e(X7e(e))}const e9e=dz.default||dz,t9e=e3("name",{handlers:{"any-link":n9e,blank:r9e,checked:i9e,dir:o9e,disabled:$ee,empty:a9e,enabled:s9e,"first-child":l9e,"first-of-type":u9e,has:c9e,is:Fee,lang:f9e,"last-child":p9e,"last-of-type":h9e,not:m9e,"nth-child":g9e,"nth-last-child":b9e,"nth-last-of-type":y9e,"nth-of-type":O9e,"only-child":v9e,"only-of-type":E9e,optional:S9e,"read-only":T9e,"read-write":Bee,required:Uee,root:w9e,scope:k9e},invalid:d9e,unknown:x9e});function n9e(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&mp(t,"href")}function Fu(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function r9e(e,t){return!jee(t,n);function n(r){return r.type==="element"||r.type==="text"&&!DK(r)}}function i9e(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&mp(t,"checked")):t.tagName==="option"?mp(t,"selected"):!1}function o9e(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function $ee(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")&&mp(t,"disabled")}function a9e(e,t){return!jee(t,n);function n(r){return r.type==="element"||r.type==="text"}}function s9e(e,t){return!$ee(e,t)}function l9e(e,t,n,r,i){return Fu(i,e),i.elementIndex===0}function u9e(e,t,n,r,i){return Fu(i,e),i.typeIndex===0}function dx(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=e9e(n.a+"n+"+n.b),e._cachedFn=t}return t}function c9e(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 G5(o,{type:"root",children:t.children}),o.results.length>0}function d9e(){}function Fee(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 G5(o,t),o.results[0]===t}function f9e(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&Y7e(i.language,Uy(e.argument.value)).length>0}function p9e(e,t,n,r,i){return Fu(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function h9e(e,t,n,r,i){return Fu(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function m9e(e,t,n,r,i){return!Fee(e,t,n,r,i)}function g9e(e,t,n,r,i){const o=dx(e);return Fu(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function b9e(e,t,n,r,i){const o=dx(e);return Fu(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function y9e(e,t,n,r,i){const o=dx(e);return Fu(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function O9e(e,t,n,r,i){const o=dx(e);return Fu(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function v9e(e,t,n,r,i){return Fu(i,e),i.elementCount===1}function E9e(e,t,n,r,i){return Fu(i,e),i.typeCount===1}function S9e(e,t){return!Uee(e,t)}function T9e(e,t,n,r,i){return!Bee(e,t,n,r,i)}function Bee(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!mp(t,"readOnly")&&!mp(t,"disabled"):!!i.editableOrEditingHost}function Uee(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&mp(t,"required")}function w9e(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 k9e(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";GA(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?GA(o,"descendant",s):s.combinator==="~"&&GA(o,"generalSibling",s)}return o}function HE(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:A9e}function fz(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 zee(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=B7e(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=R9e(e,HE(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&_9e(e,a,n,o),s(),a}function I9e(e,t,n){const r=N9e(e,t,n);return G5(r,t||void 0),r.results}function N9e(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:L7e(e),schema:n==="svg"?Lu:Sp,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Vee=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Vee(n.children))}),t),D9e=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=I9e(t,r);i&&i.length>0&&Ca(r,i,(o,a,s)=>{n(o,a,s)});return}Ca(r,(i,o,a)=>{n(i,o,a)})}}},P9e=D9e,L9e=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),M9e=(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]}},Hee=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?Hee(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},pz=({value:e=""})=>{const t=L9e(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},hz=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},$9e=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Ca(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=M9e(a.children,o);if(l){const u=pz(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=hz(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=Hee(a.children,o,"",n);if(s){const l=pz(s);Object.keys(l).length>0&&(i.properties=hz(i.properties,l,t))}}})}},F9e=$9e;var B9e=function(t){return n=>{Ca(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=L({},r.properties,{"data-meta":String(r.data.meta)}))})}},U9e=function(t){return n=>{Ca(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,z9e=Object.hasOwnProperty;class V9e{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=H9e(t,n===!0);const o=i;for(;z9e.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 H9e(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(j9e,"").replace(/ /g,"-"))}function Wee(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 W9e={},mz=new V9e;function Q9e(e){const n=(e||W9e).prefix||"";return function(r){mz.reset(),Ca(r,"element",function(i){Wee(i)&&!i.properties.id&&(i.properties.id=n+mz.slug(Lh(i)))})}}const Qee=function(e){if(e==null)return q9e;if(typeof e=="string")return G9e(e);if(typeof e=="object")return Y9e(e);if(typeof e=="function")return q5(e);throw new Error("Expected function, string, or array as `test`")};function Y9e(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Ca(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})}})}},eje=J9e;var tje={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 nje(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 rje=(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=[tje])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=Vee(n.children);n.children.push(nje(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},ije=[Q9e,K9e,eje];const oje=vn.forwardRef((e,t)=>{var n,r=[B9e,xee,U9e,[O7e,{ignoreMissing:!0}],...ije,[P9e,{rewrite:rje((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[F9e,{properties:"attr"}],...e.rehypePlugins||[]];return $.jsx(BUe,L({},e,{rehypePlugins:r,ref:t}))});function yz(){const e=L1(),t=qD(),n=Tc(Tk),[r,i]=N.useState("");return N.useEffect(()=>{var a,s;if(!n.doc||!e.documentId)return;i(((s=(a=n.doc)==null?void 0:a.getRoot().content)==null?void 0:s.toString())||"");const o=n.doc.subscribe("$.content",()=>{var l;i((l=n.doc)==null?void 0:l.getRoot().content.toString())});return()=>{o(),i("")}},[n.doc,e.documentId]),n!=null&&n.doc?$.jsx(oje,{source:r,wrapperElement:{"data-color-mode":t}}):$.jsx(C1,{sx:{marginX:"auto",mt:4}})}function aje(){const e=dg(),t=X3e(),n=Tc(Tk),r=L1();return N.useEffect(()=>{let i,o;return r.documentId?((async()=>{i=new LR.Client("https://api.yorkie.dev",{apiKey:"cmggkp8ksk14av0keupg"}),await i.activate(),o=new LR.Document(r.documentId),await i.attach(o,{initialPresence:{name:"Yorkie",color:B3e(m3e()).fade(.15).toString(),selection:null}}),e(iU(o)),e(oU(i))})(),()=>{(async()=>{await(i==null?void 0:i.deactivate()),e(iU(null)),e(oU(null))})()}):void 0},[e,r.documentId]),$.jsxs(as,{height:"calc(100% - 64px)",children:[$.jsx("div",{className:"wmde-markdown-var"}),n.mode==="both"&&$.jsx(H3e,{axis:"x",initial:t/2,min:400,children:({position:i,separatorProps:o})=>$.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[$.jsx("div",{id:"left-block",style:{width:i},children:$.jsx(M9,{})}),$.jsx(gs,{id:"splitter",...o,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:100}}),$.jsx("div",{className:"right-block",style:{width:`calc(100% - ${i}px)`,overflow:"auto"},children:$.jsx(as,{sx:{p:4},height:"100%",children:$.jsx(yz,{})})})]})}),n.mode==="read"&&$.jsx(as,{sx:{p:4,overflow:"auto"},height:"100%",children:$.jsx(yz,{})}),n.mode==="edit"&&$.jsx(M9,{})]})}function sje(){return $.jsx(Fs,{sx:{flexGrow:1},gap:3,children:$.jsx(_D,{})})}function lje(e){return $.jsx(PS,{...e,children:$.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:[$.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"}),$.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"}),$.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 uje=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 We}),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 We}),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,He=Re.size,ot=Re.format;return o.a.createElement("i",{className:ot(Te),style:{fontSize:He}})};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,He=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:He}):o.a.createElement(Te,{size:He,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 He=Object.keys(Re);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Re);Te&&(ot=ot.filter(function(nn){return Object.getOwnPropertyDescriptor(Re,nn).enumerable})),He.push.apply(He,ot)}return He}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 He,ot=A(Re);if(Te){var nn=A(this).constructor;He=Reflect.construct(ot,arguments,nn)}else He=ot.apply(this,arguments);return k(this,He)}}function k(Re,Te){return!Te||y(Te)!=="object"&&typeof Te!="function"?function(He){if(He===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return He}(Re):Te}function A(Re){return(A=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,He,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,(He=[{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,ia=En.hovered,Np=M(D.button,{activeStyle:Wn?ht:hn,customStyle:ht,active:ia||An,size:Qn});return o.a.createElement("button",O({type:"button",style:Np,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,He),nn}(i.Component),E=function(Re){return Re==="0"||Re==="0px"||Re===0},M=function(Re,Te){var He=Te.size,ot=Te.customStyle,nn=Te.active,Wt=Te.activeStyle;return h(h(h({},Re),{},{height:He},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 He=Object.keys(Re);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Re);Te&&(ot=ot.filter(function(nn){return Object.getOwnPropertyDescriptor(Re,nn).enumerable})),He.push.apply(He,ot)}return He}function B(Re){for(var Te=1;Te{window.location.href=`${cje.VITE_API_ADDR}/auth/login/${t}`};return $.jsx(xge,{children:$.jsx(Fs,{alignItems:"center",justifyContent:"center",sx:{height:"100vh"},children:$.jsx(gs,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:$.jsxs(Fs,{gap:4,children:[$.jsxs(as,{children:[$.jsxs(Fs,{direction:"row",gap:1,children:[$.jsx(lje,{}),$.jsx(mi,{variant:"h6",children:"Login"})]}),$.jsx(mi,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),$.jsxs(Fs,{gap:2,children:[$.jsxs(Ah,{container:!0,spacing:1,alignItems:"center",children:[$.jsx(Ah,{item:!0,xs:!0,children:$.jsx(Td,{sx:{width:1}})}),$.jsx(Ah,{item:!0,xs:"auto",children:$.jsx(mi,{variant:"body2",color:"text.secondary",children:"Login with"})}),$.jsx(Ah,{item:!0,xs:!0,children:$.jsx(Td,{sx:{width:1}})})]}),dje.map(({SocailLoginComponent:t,provider:n})=>$.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}const pje={accessToken:null},Gee=gk({name:"auth",initialState:pje,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:X5}=Gee.actions,hje=e=>e.auth,mje=Gee.reducer;function gje(){const e=dg(),t=P1(),[n]=ISe();return N.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(X5(r))},[e,t,n]),$.jsx(as,{})}function bje(){return $.jsx(_D,{})}const K5=vn.createContext({isLoading:!0,isLoggedIn:!1}),yje={data:null},qee=gk({name:"user",initialState:yje,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:uI}=qee.actions,Zee=e=>e.user,Oje=qee.reducer,vje=e=>{var o;const{children:t}=e,{isLoggedIn:n}=N.useContext(K5),r=fg(),i=Tc(Zee);return n?$.jsx(EY,{to:`/workspace/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},Eje=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=N.useContext(K5),i=fg();return r?$.jsx(bD,{open:!0,children:$.jsx(C1,{color:"inherit"})}):n?t:$.jsx(EY,{to:"/",state:{from:i},replace:!0})};var J5={},Sje=na;Object.defineProperty(J5,"__esModule",{value:!0});var Xee=J5.default=void 0,Tje=Sje(ra()),wje=$;Xee=J5.default=(0,Tje.default)((0,wje.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 e$={},kje=na;Object.defineProperty(e$,"__esModule",{value:!0});var Kee=e$.default=void 0,xje=kje(ra()),Cje=$;Kee=e$.default=(0,xje.default)((0,Cje.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 Aje(e){const t=dg(),n=()=>{t(X5(null)),t(uI(null))};return $.jsx(ED,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:$.jsx(A1,{children:$.jsxs(op,{onClick:n,children:[$.jsx(zQ,{children:$.jsx(Kee,{fontSize:"small"})}),$.jsx(Fm,{children:"Logout"})]})})})}var Ng=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Km=typeof window>"u"||"Deno"in window;function As(){}function _je(e,t){return typeof e=="function"?e(t):e}function cI(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jee(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oz(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==t$(a,t.options))return!1}else if(!Wy(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 vz(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(gp(t.options.mutationKey)!==gp(o))return!1}else if(!Wy(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function t$(e,t){return((t==null?void 0:t.queryKeyHashFn)||gp)(e)}function gp(e){return JSON.stringify(e,(t,n)=>dI(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Wy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Wy(e[n],t[n])):!1}function ete(e,t){if(e===t)return e;const n=Ez(e)&&Ez(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!(!Sz(n)||!n.hasOwnProperty("isPrototypeOf"))}function Sz(e){return Object.prototype.toString.call(e)==="[object Object]"}function Rje(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?ete(e,t):t}function Ije(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Nje(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $f,Kc,lm,oV,Dje=(oV=class extends Ng{constructor(){super();Zt(this,$f,void 0);Zt(this,Kc,void 0);Zt(this,lm,void 0);Bt(this,lm,t=>{if(!Km&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){we(this,Kc)||this.setEventListener(we(this,lm))}onUnsubscribe(){var t;this.hasListeners()||((t=we(this,Kc))==null||t.call(this),Bt(this,Kc,void 0))}setEventListener(t){var n;Bt(this,lm,t),(n=we(this,Kc))==null||n.call(this),Bt(this,Kc,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,Kc=new WeakMap,lm=new WeakMap,oV),MT=new Dje,um,Jc,cm,aV,Pje=(aV=class extends Ng{constructor(){super();Zt(this,um,!0);Zt(this,Jc,void 0);Zt(this,cm,void 0);Bt(this,cm,t=>{if(!Km&&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,Jc)||this.setEventListener(we(this,cm))}onUnsubscribe(){var t;this.hasListeners()||((t=we(this,Jc))==null||t.call(this),Bt(this,Jc,void 0))}setEventListener(t){var n;Bt(this,cm,t),(n=we(this,Jc))==null||n.call(this),Bt(this,Jc,t(this.setOnline.bind(this)))}setOnline(t){we(this,um)!==t&&(Bt(this,um,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return we(this,um)}},um=new WeakMap,Jc=new WeakMap,cm=new WeakMap,aV),$T=new Pje;function Lje(e){return Math.min(1e3*2**e,3e4)}function fx(e){return(e??"online")==="online"?$T.isOnline():!0}var tte=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ZA(e){return e instanceof tte}function nte(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 tte(O)),(b=e.abort)==null||b.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!MT.isFocused()||e.networkMode!=="always"&&!$T.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??(Km?0:3),S=e.retryDelay??Lje,k=typeof S=="function"?S(n,b):S,A=v===!0||typeof v=="number"&&n{if(d())return m()}).then(()=>{t?h(b):y()})})};return fx(e.networkMode)?y():m().then(y),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}function Mje(){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 Ii=Mje(),Ff,sV,rte=(sV=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??(Km?1/0:5*60*1e3))}clearGcTimeout(){we(this,Ff)&&(clearTimeout(we(this,Ff)),Bt(this,Ff,void 0))}},Ff=new WeakMap,sV),dm,fm,ws,ed,ks,Hi,e1,Bf,pm,WE,cl,Yu,lV,$je=(lV=class extends rte{constructor(t){super();Zt(this,pm);Zt(this,cl);Zt(this,dm,void 0);Zt(this,fm,void 0);Zt(this,ws,void 0);Zt(this,ed,void 0);Zt(this,ks,void 0);Zt(this,Hi,void 0);Zt(this,e1,void 0);Zt(this,Bf,void 0);Bt(this,Bf,!1),Bt(this,e1,t.defaultOptions),Tn(this,pm,WE).call(this,t.options),Bt(this,Hi,[]),Bt(this,ws,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Bt(this,dm,t.state||Fje(this.options)),this.state=we(this,dm),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!we(this,Hi).length&&this.state.fetchStatus==="idle"&&we(this,ws).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,ed);return(r=we(this,ks))==null||r.cancel(t),n?n.then(As).catch(As):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(we(this,dm))}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||!Jee(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,ks))==null||n.continue()}onOnline(){var n;const t=we(this,Hi).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=we(this,ks))==null||n.continue()}addObserver(t){we(this,Hi).includes(t)||(we(this,Hi).push(t),this.clearGcTimeout(),we(this,ws).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,ks)&&(we(this,Bf)?we(this,ks).cancel({revert:!0}):we(this,ks).cancelRetry()),this.scheduleGc()),we(this,ws).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,ed))return(u=we(this,ks))==null||u.continueRetry(),we(this,ed)}if(t&&Tn(this,pm,WE).call(this,t),!this.options.queryFn){const h=we(this,Hi).find(m=>m.options.queryFn);h&&Tn(this,pm,WE).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,fm,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;ZA(h)&&h.silent||Tn(this,cl,Yu).call(this,{type:"error",error:h}),ZA(h)||((y=(m=we(this,ws).config).onError)==null||y.call(m,h,this),(b=(O=we(this,ws).config).onSettled)==null||b.call(O,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Bt(this,ks,nte({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,ws).config).onSuccess)==null||y.call(m,h,this),(b=(O=we(this,ws).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,ed,we(this,ks).promise),we(this,ed)}},dm=new WeakMap,fm=new WeakMap,ws=new WeakMap,ed=new WeakMap,ks=new WeakMap,Hi=new WeakMap,e1=new WeakMap,Bf=new WeakMap,pm=new WeakSet,WE=function(t){this.options={...we(this,e1),...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:fx(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 ZA(i)&&i.revert&&we(this,fm)?{...we(this,fm),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),Ii.batch(()=>{we(this,Hi).forEach(r=>{r.onQueryUpdate()}),we(this,ws).notify({query:this,type:"updated",action:t})})},lV);function Fje(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,uV,Bje=(uV=class extends Ng{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??t$(i,n);let a=this.get(o);return a||(a=new $je({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(){Ii.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=>Oz(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Oz(t,r)):n}notify(t){Ii.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ii.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ii.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},nu=new WeakMap,uV),ru,t1,za,hm,iu,zc,cV,Uje=(cV=class extends rte{constructor(t){super();Zt(this,iu);Zt(this,ru,void 0);Zt(this,t1,void 0);Zt(this,za,void 0);Zt(this,hm,void 0);this.mutationId=t.mutationId,Bt(this,t1,t.defaultOptions),Bt(this,za,t.mutationCache),Bt(this,ru,[]),this.state=t.state||ite(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...we(this,t1),...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,za).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Bt(this,ru,we(this,ru).filter(n=>n!==t)),this.scheduleGc(),we(this,za).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){we(this,ru).length||(this.state.status==="pending"?this.scheduleGc():we(this,za).remove(this))}continue(){var t;return((t=we(this,hm))==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,A,w,E;const n=()=>(Bt(this,hm,nte({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,D)=>{Tn(this,iu,zc).call(this,{type:"failed",failureCount:M,error:D})},onPause:()=>{Tn(this,iu,zc).call(this,{type:"pause"})},onContinue:()=>{Tn(this,iu,zc).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),we(this,hm).promise),r=this.state.status==="pending";try{if(!r){Tn(this,iu,zc).call(this,{type:"pending",variables:t}),await((o=(i=we(this,za).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,zc).call(this,{type:"pending",context:D,variables:t})}const M=await n();return await((u=(l=we(this,za).config).onSuccess)==null?void 0:u.call(l,M,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,M,t,this.state.context)),await((h=(p=we(this,za).config).onSettled)==null?void 0:h.call(p,M,null,this.state.variables,this.state.context,this)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,M,null,t,this.state.context)),Tn(this,iu,zc).call(this,{type:"success",data:M}),M}catch(M){try{throw await((b=(O=we(this,za).config).onError)==null?void 0:b.call(O,M,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,M,t,this.state.context)),await((A=(k=we(this,za).config).onSettled)==null?void 0:A.call(k,void 0,M,this.state.variables,this.state.context,this)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,void 0,M,t,this.state.context)),M}finally{Tn(this,iu,zc).call(this,{type:"error",error:M})}}}},ru=new WeakMap,t1=new WeakMap,za=new WeakMap,hm=new WeakMap,iu=new WeakSet,zc=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:!fx(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),Ii.batch(()=>{we(this,ru).forEach(r=>{r.onMutationUpdate(t)}),we(this,za).notify({mutation:this,type:"updated",action:t})})},cV);function ite(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xs,n1,Uf,dV,jje=(dV=class extends Ng{constructor(t={}){super();Zt(this,xs,void 0);Zt(this,n1,void 0);Zt(this,Uf,void 0);this.config=t,Bt(this,xs,[]),Bt(this,n1,0)}build(t,n,r){const i=new Uje({mutationCache:this,mutationId:++PO(this,n1)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){we(this,xs).push(t),this.notify({type:"added",mutation:t})}remove(t){Bt(this,xs,we(this,xs).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Ii.batch(()=>{we(this,xs).forEach(t=>{this.remove(t)})})}getAll(){return we(this,xs)}find(t){const n={exact:!0,...t};return we(this,xs).find(r=>vz(n,r))}findAll(t={}){return we(this,xs).filter(n=>vz(t,n))}notify(t){Ii.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return Bt(this,Uf,(we(this,Uf)??Promise.resolve()).then(()=>{const t=we(this,xs).filter(n=>n.state.isPaused);return Ii.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(As)),Promise.resolve()))}).then(()=>{Bt(this,Uf,void 0)})),we(this,Uf)}},xs=new WeakMap,n1=new WeakMap,Uf=new WeakMap,dV);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,A)=>{if(u)return Promise.reject();if(k==null&&S.pages.length)return Promise.resolve(S);const w={queryKey:t.queryKey,pageParam:k,direction:A?"backward":"forward",meta:t.options.meta};c(w);const E=await d(w),{maxPages:M}=t.options,D=A?Nje:Ije;return{pages:D(S.pages,E,M),pageParams:D(S.pageParams,k,M)}};let h;if(o&&a.length){const S=o==="backward",k=S?ote:hI,A={pages:a,pageParams:s},w=k(i,A);h=await p(A,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 ote(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function zje(e,t){return t?hI(e,t)!=null:!1}function Vje(e,t){return!t||!e.getPreviousPageParam?!1:ote(e,t)!=null}var Ci,td,nd,mm,gm,rd,bm,ym,fV,Hje=(fV=class{constructor(e={}){Zt(this,Ci,void 0);Zt(this,td,void 0);Zt(this,nd,void 0);Zt(this,mm,void 0);Zt(this,gm,void 0);Zt(this,rd,void 0);Zt(this,bm,void 0);Zt(this,ym,void 0);Bt(this,Ci,e.queryCache||new Bje),Bt(this,td,e.mutationCache||new jje),Bt(this,nd,e.defaultOptions||{}),Bt(this,mm,new Map),Bt(this,gm,new Map),Bt(this,rd,0)}mount(){PO(this,rd)._++,we(this,rd)===1&&(Bt(this,bm,MT.subscribe(()=>{MT.isFocused()&&(this.resumePausedMutations(),we(this,Ci).onFocus())})),Bt(this,ym,$T.subscribe(()=>{$T.isOnline()&&(this.resumePausedMutations(),we(this,Ci).onOnline())})))}unmount(){var e,t;PO(this,rd)._--,we(this,rd)===0&&((e=we(this,bm))==null||e.call(this),Bt(this,bm,void 0),(t=we(this,ym))==null||t.call(this),Bt(this,ym,void 0))}isFetching(e){return we(this,Ci).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return we(this,td).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=we(this,Ci).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,Ci).find({queryKey:e}),i=r==null?void 0:r.state.data,o=_je(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return we(this,Ci).build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ii.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=we(this,Ci).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=we(this,Ci);Ii.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=we(this,Ci),r={type:"active",...e};return Ii.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ii.batch(()=>we(this,Ci).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(As).catch(As)}invalidateQueries(e={},t={}){return Ii.batch(()=>{if(we(this,Ci).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=Ii.batch(()=>we(this,Ci).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(As)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(As)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=we(this,Ci).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(As).catch(As)}fetchInfiniteQuery(e){return e.behavior=pI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(As).catch(As)}resumePausedMutations(){return we(this,td).resumePausedMutations()}getQueryCache(){return we(this,Ci)}getMutationCache(){return we(this,td)}getDefaultOptions(){return we(this,nd)}setDefaultOptions(e){Bt(this,nd,e)}setQueryDefaults(e,t){we(this,mm).set(gp(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...we(this,mm).values()];let n={};return t.forEach(r=>{Wy(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){we(this,gm).set(gp(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...we(this,gm).values()];let n={};return t.forEach(r=>{Wy(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...we(this,nd).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=t$(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,nd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){we(this,Ci).clear(),we(this,td).clear()}},Ci=new WeakMap,td=new WeakMap,nd=new WeakMap,mm=new WeakMap,gm=new WeakMap,rd=new WeakMap,bm=new WeakMap,ym=new WeakMap,fV),ha,_r,r1,Yo,jf,Om,ou,i1,vm,Em,zf,Vf,id,Sm,Hf,G0,o1,mI,a1,gI,s1,bI,l1,yI,u1,OI,c1,vI,d1,EI,XT,ste,pV,ate=(pV=class extends Ng{constructor(t,n){super();Zt(this,Hf);Zt(this,o1);Zt(this,a1);Zt(this,s1);Zt(this,l1);Zt(this,u1);Zt(this,c1);Zt(this,d1);Zt(this,XT);Zt(this,ha,void 0);Zt(this,_r,void 0);Zt(this,r1,void 0);Zt(this,Yo,void 0);Zt(this,jf,void 0);Zt(this,Om,void 0);Zt(this,ou,void 0);Zt(this,i1,void 0);Zt(this,vm,void 0);Zt(this,Em,void 0);Zt(this,zf,void 0);Zt(this,Vf,void 0);Zt(this,id,void 0);Zt(this,Sm,new Set);this.options=n,Bt(this,ha,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),Tz(we(this,_r),this.options)?Tn(this,Hf,G0).call(this):this.updateResult(),Tn(this,l1,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,u1,OI).call(this),Tn(this,c1,vI).call(this),we(this,_r).removeObserver(this)}setOptions(t,n){const r=this.options,i=we(this,_r);if(this.options=we(this,ha).defaultQueryOptions(t),LT(r,this.options)||we(this,ha).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,d1,EI).call(this);const o=this.hasListeners();o&&wz(we(this,_r),i,this.options,r)&&Tn(this,Hf,G0).call(this),this.updateResult(n),o&&(we(this,_r)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Tn(this,o1,mI).call(this);const a=Tn(this,a1,gI).call(this);o&&(we(this,_r)!==i||this.options.enabled!==r.enabled||a!==we(this,id))&&Tn(this,s1,bI).call(this,a)}getOptimisticResult(t){const n=we(this,ha).getQueryCache().build(we(this,ha),t),r=this.createResult(n,t);return Qje(this,r)&&(Bt(this,Yo,r),Bt(this,Om,this.options),Bt(this,jf,we(this,_r).state)),r}getCurrentResult(){return we(this,Yo)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(we(this,Sm).add(r),t[r])})}),n}getCurrentQuery(){return we(this,_r)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=we(this,ha).defaultQueryOptions(t),r=we(this,ha).getQueryCache().build(we(this,ha),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Tn(this,Hf,G0).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),we(this,Yo)))}createResult(t,n){var w;const r=we(this,_r),i=this.options,o=we(this,Yo),a=we(this,jf),s=we(this,Om),u=t!==r?t.state:we(this,r1),{state:c}=t;let{error:d,errorUpdatedAt:p,fetchStatus:h,status:m}=c,y=!1,O;if(n._optimisticResults){const E=this.hasListeners(),M=!E&&Tz(t,n),D=E&&wz(t,r,n,i);(M||D)&&(h=fx(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,i1))O=we(this,vm);else try{Bt(this,i1,n.select),O=n.select(c.data),O=fI(o==null?void 0:o.data,O,n),Bt(this,vm,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,Em))==null?void 0:w.state.data,we(this,Em)):n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),Bt(this,ou,null)}catch(M){Bt(this,ou,M)}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,vm),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:n$(t,n),refetch:this.refetch}}updateResult(t){const n=we(this,Yo),r=this.createResult(we(this,_r),this.options);if(Bt(this,jf,we(this,_r).state),Bt(this,Om,this.options),we(this,jf).data!==void 0&&Bt(this,Em,we(this,_r)),LT(r,n))return;Bt(this,Yo,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,Sm).size)return!0;const l=new Set(s??we(this,Sm));return this.options.throwOnError&&l.add("error"),Object.keys(we(this,Yo)).some(u=>{const c=u;return we(this,Yo)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),Tn(this,XT,ste).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Tn(this,l1,yI).call(this)}},ha=new WeakMap,_r=new WeakMap,r1=new WeakMap,Yo=new WeakMap,jf=new WeakMap,Om=new WeakMap,ou=new WeakMap,i1=new WeakMap,vm=new WeakMap,Em=new WeakMap,zf=new WeakMap,Vf=new WeakMap,id=new WeakMap,Sm=new WeakMap,Hf=new WeakSet,G0=function(t){Tn(this,d1,EI).call(this);let n=we(this,_r).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(As)),n},o1=new WeakSet,mI=function(){if(Tn(this,u1,OI).call(this),Km||we(this,Yo).isStale||!cI(this.options.staleTime))return;const n=Jee(we(this,Yo).dataUpdatedAt,this.options.staleTime)+1;Bt(this,zf,setTimeout(()=>{we(this,Yo).isStale||this.updateResult()},n))},a1=new WeakSet,gI=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(we(this,_r)):this.options.refetchInterval)??!1},s1=new WeakSet,bI=function(t){Tn(this,c1,vI).call(this),Bt(this,id,t),!(Km||this.options.enabled===!1||!cI(we(this,id))||we(this,id)===0)&&Bt(this,Vf,setInterval(()=>{(this.options.refetchIntervalInBackground||MT.isFocused())&&Tn(this,Hf,G0).call(this)},we(this,id)))},l1=new WeakSet,yI=function(){Tn(this,o1,mI).call(this),Tn(this,s1,bI).call(this,Tn(this,a1,gI).call(this))},u1=new WeakSet,OI=function(){we(this,zf)&&(clearTimeout(we(this,zf)),Bt(this,zf,void 0))},c1=new WeakSet,vI=function(){we(this,Vf)&&(clearInterval(we(this,Vf)),Bt(this,Vf,void 0))},d1=new WeakSet,EI=function(){const t=we(this,ha).getQueryCache().build(we(this,ha),this.options);if(t===we(this,_r))return;const n=we(this,_r);Bt(this,_r,t),Bt(this,r1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},XT=new WeakSet,ste=function(t){Ii.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(we(this,Yo))}),we(this,ha).getQueryCache().notify({query:we(this,_r),type:"observerResultsUpdated"})})},pV);function Wje(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Tz(e,t){return Wje(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&&n$(e,t)}return!1}function wz(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&n$(e,n)}function n$(e,t){return e.isStaleByTime(t.staleTime)}function Qje(e,t){return!LT(e.getCurrentResult(),t)}var Yje=class extends ate{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:zje(t,n.data),hasPreviousPage:Vje(t,n.data),isFetchingNextPage:a,isFetchingPreviousPage:s,isRefetching:o&&!a&&!s}}},od,Ku,Va,Ju,Tm,QE,f1,TI,hV,Gje=(hV=class extends Ng{constructor(n,r){super();Zt(this,Tm);Zt(this,f1);Zt(this,od,void 0);Zt(this,Ku,void 0);Zt(this,Va,void 0);Zt(this,Ju,void 0);Bt(this,Ku,void 0),Bt(this,od,n),this.setOptions(r),this.bindMethods(),Tn(this,Tm,QE).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,od).defaultMutationOptions(n),LT(r,this.options)||we(this,od).getMutationCache().notify({type:"observerOptionsUpdated",mutation:we(this,Va),observer:this}),(i=we(this,Va))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&gp(r.mutationKey)!==gp(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=we(this,Va))==null||n.removeObserver(this)}onMutationUpdate(n){Tn(this,Tm,QE).call(this),Tn(this,f1,TI).call(this,n)}getCurrentResult(){return we(this,Ku)}reset(){var n;(n=we(this,Va))==null||n.removeObserver(this),Bt(this,Va,void 0),Tn(this,Tm,QE).call(this),Tn(this,f1,TI).call(this)}mutate(n,r){var i;return Bt(this,Ju,r),(i=we(this,Va))==null||i.removeObserver(this),Bt(this,Va,we(this,od).getMutationCache().build(we(this,od),this.options)),we(this,Va).addObserver(this),we(this,Va).execute(n)}},od=new WeakMap,Ku=new WeakMap,Va=new WeakMap,Ju=new WeakMap,Tm=new WeakSet,QE=function(){var r;const n=((r=we(this,Va))==null?void 0:r.state)??ite();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})},f1=new WeakSet,TI=function(n){Ii.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))})})},hV),lte=N.createContext(void 0),r$=e=>{const t=N.useContext(lte);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qje=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.createElement(lte.Provider,{value:e},t)),ute=N.createContext(!1),Zje=()=>N.useContext(ute);ute.Provider;function Xje(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Kje=N.createContext(Xje()),Jje=()=>N.useContext(Kje);function cte(e,t){return typeof e=="function"?e(...t):!!e}var eze=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},tze=e=>{N.useEffect(()=>{e.clearReset()},[e])},nze=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&cte(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,oze=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function dte(e,t,n){const r=r$(n),i=Zje(),o=Jje(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",rze(a),eze(a,o),tze(o);const[s]=N.useState(()=>new t(r,a)),l=s.getOptimisticResult(a);if(N.useSyncExternalStore(N.useCallback(u=>{const c=i?()=>{}:s.subscribe(Ii.batchCalls(u));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),N.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),ize(a,l))throw oze(a,s,o);if(nze({result:l,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}function fte(e,t){return dte(e,ate,t)}function pte(e,t){const n=r$(t),[r]=N.useState(()=>new Gje(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);const i=N.useSyncExternalStore(N.useCallback(a=>r.subscribe(Ii.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=N.useCallback((a,s)=>{r.mutate(a,s).catch(aze)},[r]);if(i.error&&cte(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function aze(){}function hte(e,t){return dte(e,Yje,t)}const sze=e=>["workspaces",e],lze=()=>["workspaces"],mte=e=>fte({queryKey:sze(e||""),enabled:!!e,queryFn:async()=>(await fr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}}),uze=()=>hte({queryKey:lze(),queryFn:async({pageParam:t})=>(await fr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),cze=()=>pte({mutationFn:async e=>(await fr.post("/workspaces",e)).data});var i$={},dze=na;Object.defineProperty(i$,"__esModule",{value:!0});var gte=i$.default=void 0,fze=dze(ra()),pze=$;gte=i$.default=(0,fze.default)((0,pze.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var o$={},hze=na;Object.defineProperty(o$,"__esModule",{value:!0});var bte=o$.default=void 0,mze=hze(ra()),gze=$;bte=o$.default=(0,mze.default)((0,gze.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class FT 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)}}Wo(FT,"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}),Wo(FT,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var a$={},bze=na;Object.defineProperty(a$,"__esModule",{value:!0});var yte=a$.default=void 0,yze=bze(ra()),Oze=$;yte=a$.default=(0,yze.default)((0,Oze.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var fO=e=>e.type==="checkbox",Mh=e=>e instanceof Date,qo=e=>e==null;const Ote=e=>typeof e=="object";var Mi=e=>!qo(e)&&!Array.isArray(e)&&Ote(e)&&!Mh(e),vte=e=>Mi(e)&&e.target?fO(e.target)?e.target.checked:e.target.value:e,vze=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ete=(e,t)=>e.has(vze(t)),Eze=e=>{const t=e.constructor&&e.constructor.prototype;return Mi(t)&&t.hasOwnProperty("isPrototypeOf")},s$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function fa(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(!(s$&&(e instanceof Blob||e instanceof FileList))&&(n||Mi(e)))if(t=n?[]:{},!n&&!Eze(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=fa(e[r]));else return e;return t}var pO=e=>Array.isArray(e)?e.filter(Boolean):[],ai=e=>e===void 0,Ut=(e,t,n)=>{if(!t||!Mi(e))return n;const r=pO(t.split(/[,[\].]+?/)).reduce((i,o)=>qo(i)?i:i[o],e);return ai(r)||r===e?ai(e[t])?n:e[t]:r},bl=e=>typeof e=="boolean";const BT={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"},Ste=vn.createContext(null),l$=()=>vn.useContext(Ste),Tte=e=>{const{children:t,...n}=e;return vn.createElement(Ste.Provider,{value:n},t)};var wte=(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},_s=e=>Mi(e)&&!Object.keys(e).length,kte=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return _s(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||vl.all))},YE=e=>Array.isArray(e)?e:[e],xte=(e,t,n)=>!e||!t||e===t||YE(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function u$(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 Sze(e){const t=l$(),{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,u$({disabled:r,next:d=>l.current&&xte(c.current,d.name,o)&&kte(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]),wte(a,n,u.current,!1)}var yu=e=>typeof e=="string",Cte=(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 Ate(e){const t=l$(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=vn.useRef(r);s.current=r,u$({disabled:o,subject:n._subjects.values,next:c=>{xte(s.current,c.name,a)&&u(fa(Cte(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 c$=e=>/^\w*$/.test(e),_te=e=>pO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),vr=(e,t,n)=>{let r=-1;const i=c$(t)?[t]:_te(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=fa(Ut(i._options.defaultValues,n));vr(i._defaultValues,n,p),ai(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:vte(c),name:n},type:BT.CHANGE}),[n]),onBlur:vn.useCallback(()=>u.current.onBlur({target:{value:Ut(i._formValues,n),name:n},type:BT.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 Tze=(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===vl.onSubmit,isOnBlur:e===vl.onBlur,isOnChange:e===vl.onChange,isOnAll:e===vl.all,isOnTouch:e===vl.onTouched}),xz=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Pb=(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;Pb(s,t)}else Mi(s)&&Pb(s,t)}}};var wze=(e,t,n)=>{const r=pO(Ut(e,n));return vr(r,"root",t[n]),vr(e,n,r),e},d$=e=>e.type==="file",fd=e=>typeof e=="function",UT=e=>{if(!s$)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},GE=e=>yu(e),f$=e=>e.type==="radio",jT=e=>e instanceof RegExp;const Cz={value:!1,isValid:!1},Az={value:!0,isValid:!0};var Rte=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&&!ai(e[0].attributes.value)?ai(e[0].value)||e[0].value===""?Az:{value:e[0].value,isValid:!0}:Az:Cz}return Cz};const _z={isValid:!1,value:null};var Ite=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,_z):_z;function Rz(e,t,n="validate"){if(GE(e)||Array.isArray(e)&&e.every(GE)||bl(e)&&!e)return{type:n,message:GE(e)?e:"",ref:t}}var nh=e=>Mi(e)&&!jT(e)?e:{value:e,message:""},Iz=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())},A={},w=f$(o),E=fO(o),M=w||E,D=(y||d$(o))&&ai(o.value)&&ai(v)||UT(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,R=Tze.bind(null,m,n,A),B=(U,V,z,Q=Hu.maxLength,X=Hu.minLength)=>{const Z=U?V:z;A[m]={type:U?Q:X,message:Z,ref:o,...R(U?Q:X,Z)}};if(i?!Array.isArray(v)||!v.length:s&&(!M&&(D||qo(v))||bl(v)&&!v||E&&!Rte(a).isValid||w&&!Ite(a).isValid)){const{value:U,message:V}=GE(s)?{value:!!s,message:s}:nh(s);if(U&&(A[m]={type:Hu.required,message:V,ref:S,...R(Hu.required,V)},!n))return k(V),A}if(!D&&(!qo(c)||!qo(d))){let U,V;const z=nh(d),Q=nh(c);if(!qo(v)&&!isNaN(v)){const X=o.valueAsNumber||v&&+v;qo(z.value)||(U=X>z.value),qo(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=!qo(V.value)&&v.length<+V.value;if((z||Q)&&(B(z,U.message,V.message),!n))return k(A[m].message),A}if(p&&!D&&yu(v)){const{value:U,message:V}=nh(p);if(jT(U)&&!v.match(U)&&(A[m]={type:Hu.pattern,message:V,ref:o,...R(Hu.pattern,V)},!n))return k(V),A}if(h){if(fd(h)){const U=await h(v,t),V=Rz(U,S);if(V&&(A[m]={...V,...R(Hu.validate,V.message)},!n))return k(V.message),A}else if(Mi(h)){let U={};for(const V in h){if(!_s(U)&&!n)break;const z=Rz(await h[V](v,t),S,V);z&&(U={...z,...R(V,z.message)},k(z.message),n&&(A[m]=U))}if(!_s(U)&&(A[m]={ref:S,...U},!n))return A}}return k(!0),A};function kze(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=[]}}},zT=e=>qo(e)||!Ote(e);function Lf(e,t){if(zT(e)||zT(t))return e===t;if(Mh(e)&&Mh(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(Mh(o)&&Mh(a)||Mi(o)&&Mi(a)||Array.isArray(o)&&Array.isArray(a)?!Lf(o,a):o!==a)return!1}}return!0}var Nte=e=>e.type==="select-multiple",Cze=e=>f$(e)||fO(e),KA=e=>UT(e)&&e.isConnected,Dte=e=>{for(const t in e)if(fd(e[t]))return!0;return!1};function VT(e,t={}){const n=Array.isArray(e);if(Mi(e)||n)for(const r in e)Array.isArray(e[r])||Mi(e[r])&&!Dte(e[r])?(t[r]=Array.isArray(e[r])?[]:{},VT(e[r],t[r])):qo(e[r])||(t[r]=!0);return t}function Pte(e,t,n){const r=Array.isArray(e);if(Mi(e)||r)for(const i in e)Array.isArray(e[i])||Mi(e[i])&&!Dte(e[i])?ai(t)||zT(n[i])?n[i]=Array.isArray(e[i])?VT(e[i],[]):{...VT(e[i])}:Pte(e[i],qo(t)?{}:t[i],n[i]):n[i]=!Lf(e[i],t[i]);return n}var JA=(e,t)=>Pte(e,t,VT(t)),Lte=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ai(e)?e:t?e===""?NaN:e&&+e:n&&yu(e)?new Date(e):r?r(e):e;function e2(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return d$(t)?t.files:f$(t)?Ite(e.refs).value:Nte(t)?[...t.selectedOptions].map(({value:n})=>n):fO(t)?Rte(e.refs).value:Lte(ai(t.value)?e.ref.value:t.value,e)}var Aze=(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}},C0=e=>ai(e)?e:jT(e)?e.source:Mi(e)?jT(e.value)?e.value.source:e.value:e,_ze=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Nz(e,t,n){const r=Ut(e,n);if(r||c$(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 Rze=(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,Ize=(e,t)=>!pO(Ut(e,t)).length&&io(e,t);const Nze={mode:vl.onSubmit,reValidateMode:vl.onChange,shouldFocusError:!0};function Dze(e={},t){let n={...Nze,...e},r={submitCount:0,isDirty:!1,isLoading:fd(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)?fa(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:fa(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:XA(),array:XA(),state:XA()},h=kz(n.mode),m=kz(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?_s((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),Ize(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=JA(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})},A=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,ai(J)?Ut(o,re):J);ai(Ie)||_e&&_e.defaultChecked||ee?vr(a,re,ee?Ie:e2(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:{}},M=(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)||!_s(_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,Aze(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 Iz(Pe,a,y,n.shouldUseNativeValidation&&!ee,de);if(ce[Ie.name]&&(J.valid=!1,ee))break;!ee&&(Ut(ce,Ie.name)?de?wze(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=>!KA(J)):!KA(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)=>Cte(re,l,{...s.mount?a:ai(ee)?o:yu(re)?{[re]:ee}:ee},J,ee),Q=re=>pO(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,Lte(ee,Ie)),Pe=UT(Ie.ref)&&qo(ee)?"":ee,Nte(Ie.ref)?[...Ie.ref.options].forEach(ie=>ie.selected=Pe.includes(ie.value)):Ie.refs?fO(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):d$(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)||!zT(Pe)||ie&&!ie._f)&&!Mh(Pe)?Z(Ie,Pe,J):X(Ie,Pe,J)}},Y=(re,ee,J={})=>{const _e=Ut(i,re),Pe=l.array.has(re),Ie=fa(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:JA(o,a),isDirty:V(re,Ie)})):_e&&!_e._f&&!qo(Ie)?Z(re,Ie,J):X(re,Ie,J),xz(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?e2(Pe._f):vte(re),ie=de=>{_e=Number.isNaN(de)||de===Ut(a,J,de)};if(Pe){let de,ce;const Oe=Ie(),Se=re.type===BT.BLUR||re.type===BT.FOCUS_OUT,nt=!_ze(Pe._f)&&!n.resolver&&!Ut(r.errors,J)&&!Pe._f.deps||Rze(Se,Ut(r.touchedFields,J),r.isSubmitted,m,h),pt=xz(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=!_s(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:Ot}=await D([J]);if(ie(Oe),_e){const Ye=Nz(r.errors,i,J),it=Nz(Ot,i,Ye.name||J);de=it.error,J=it.name,ce=_s(Ot)}}else de=(await Iz(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),M(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=YE(re);if(v(!0),n.resolver){const Ie=await R(ai(re)?re:Pe);J=_s(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&&Pb(i,j,re?Pe:l.mount),_e},Ee=re=>{const ee={...o,...s.mount?a:{}};return ai(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&&YE(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)=>fd(re)?p.values.subscribe({next:J=>re(z(void 0,ee),J)}):z(re,ee,!0),Ne=(re,ee={})=>{for(const J of re?YE(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:ai(Pe)?e2(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:C0(ee.min),max:C0(ee.max),minLength:C0(ee.minLength),maxLength:C0(ee.maxLength),pattern:C0(ee.pattern)}:{},name:re,onChange:q,onBlur:q,ref:Pe=>{if(Pe){qe(re,ee),J=Ut(i,re);const Ie=ai(Pe.value)&&Pe.querySelectorAll&&Pe.querySelectorAll("input,select,textarea")[0]||Pe,ie=Cze(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(KA),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)&&!(Ete(l.array,re)&&s.action)&&l.unMount.add(re)}}},rt=()=>n.shouldFocusError&&Pb(i,j,l.mount),Me=re=>{bl(re)&&(p.state.next({disabled:re}),Pb(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))},We=(re,ee)=>async J=>{J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let _e=fa(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"),_s(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:_s(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ye=(re,ee={})=>{Ut(i,re)&&(ai(ee.defaultValue)?Y(re,fa(Ut(o,re))):(Y(re,ee.defaultValue),vr(o,re,fa(ee.defaultValue))),ee.keepTouched||io(r.touchedFields,re),ee.keepDirty||(io(r.dirtyFields,re),r.isDirty=ee.defaultValue?V(re,fa(Ut(o,re))):V()),ee.keepError||(io(r.errors,re),d.isValid&&b()),p.state.next({...r}))},ze=(re,ee={})=>{const J=re?fa(re):o,_e=fa(J),Pe=re&&!_s(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(s$&&ai(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(UT(de)){const ce=de.closest("form");if(ce){ce.reset();break}}}}i={}}a=e.shouldUnregister?ee.keepDefaultValues?fa(o):{}:fa(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?JA(o,re):{},touchedFields:ee.keepTouched?r.touchedFields:{},errors:ee.keepErrors?r.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},$e=(re,ee)=>ze(fd(re)?re(a):re,ee);return{control:{register:qe,unregister:Ne,getFieldState:G,handleSubmit:We,setError:ge,_executeSchema:D,_getWatch:z,_getDirty:V,_updateValid:b,_removeUnmounted:U,_updateFieldArray:S,_updateDisabledField:Le,_getFieldArray:Q,_reset:ze,_resetDefaultValues:()=>fd(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:A,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:We,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 Pze(e={}){const t=vn.useRef(),n=vn.useRef(),[r,i]=vn.useState({isDirty:!1,isValidating:!1,isLoading:fd(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:fd(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Dze(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,u$({subject:o._subjects.state,next:a=>{kte(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=wte(r,o),t.current}const du=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),p$=({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}},Lb=({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},Lze=(e,t)=>t==null||!e.isValid(t)?null:t,Lo=(e,t,n)=>t==null||!e.isValid(t)?n:t,Mze=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),h$=(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},wI=(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},m$=(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")},$ze=["year","month","day"],nm=e=>$ze.includes(e),Qy=(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},Fze=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Mte=["hours","minutes","seconds"],Jm=e=>Mte.includes(e),Vc=e=>Mte.includes(e)||e==="meridiem",Bze=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Yy=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Uze=(e,t,n,r)=>{const i=Yy(r.getHours(e),t,n);return r.setHours(e,i)},Dz=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),hO=(e,t)=>(n,r)=>e?t.isAfter(n,r):Dz(n,t)>Dz(r,t),HT=(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},jze=e=>Math.max(...e.map(t=>{var n;return(n=yl[t.type])!=null?n:1})),A0=(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():A0(t,n,m$(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=A0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=A0(t,n,e.maxDate));const s=hO((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=A0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:wI(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=A0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:wI(t,a,e.maxTime))),a},$te=(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}},Vze=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},px=(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))},Fte=(e,t,n,r)=>{switch(n){case"month":return h$(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return px(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[]}},Bte=(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?Bte(e,o,i.maxLength):o},Hze=(e,t,n,r,i,o,a)=>{const s=Vze(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=>Ute(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=Fte(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()},g$=(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},$h=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),jte=(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}},Pz=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),zte=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Vte=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return zte(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")}},Qze=(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},Lz=(e,t,n,r,i,o,a,s)=>{let l="";const u=[],c=e.date(),d=S=>{if(S==="")return null;const k=$te(e,S),A=Vte(e,t,k.contentType,k.type,S),w=a?A:k.contentType==="digit",E=i!=null&&e.isValid(i);let M=E?e.formatByString(i,S):"",D=null;if(w)if(A)D=M===""?e.formatByString(c,S).length:M.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&&(M=Bte(e,M,D))}return u.push(L({},k,{format:S,maxLength:D,value:M,placeholder:Wze(e,t,n,k,S),hasLeadingZeros:A,hasLeadingZerosInFormat:A,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=Qze(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),A=y[S],w=k!=null,E=`${v}${y.slice(S)}`,M=b.test(E);!w&&A.match(/([A-Za-z]+)/)&&M?(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+=A:u[u.length-1].endSeparator+=A)}return d(v),u.map(S=>{const k=A=>{let w=A;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})},Yze=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=e.map(i=>{const o=g$(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},qze=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=h$(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:zte(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=px(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})}},Zze=(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=px(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}},Mz={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},$z=(e,t,n,r,i,o)=>[...r].sort((a,s)=>Mz[a.type]-Mz[s.type]).reduce((a,s)=>!o||s.modified?Zze(e,t,s,n,a):a,i),Xze=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,Kze=(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]}},Jze=["value","referenceDate"],$i={emptyValue:null,getTodayValue:m$,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ge(e,Jze);return t!=null&&r.utils.isValid(t)?t:n??zze(r)},cleanValue:Lze,areValuesEqual:Mze,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)},b$={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:jte(i(t),r),getValueStrFromSections:Gze,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)},eVe=["localeText"],kI=N.createContext(null),Hte=function(t){var n;const{localeText:r}=t,i=Ge(t,eVe),{utils:o,localeText:a}=(n=N.useContext(kI))!=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 $.jsx(kI.Provider,{value:b,children:l})},tVe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:L({},e)}}}}),Wte={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"},nVe=Wte;tVe(Wte);const Ul=()=>{const e=N.useContext(kI);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`&&G()}function dt(){for(;U7e[q];)G()}function Be(ce){ce===void 0&&(ce=!1),dt();for(var Oe=[de(ce)];j(",");)G(),dt(),Oe.push(de(ce));return{type:"Selector",rules:Oe}}function re(){qe("["),dt();var ce;if(j("|")){he(p,"Namespaces are not enabled."),G();var Oe=ze();he(Oe,"Expected attribute name."),ce={type:"Attribute",name:Oe,namespace:{type:"NoNamespace"}}}else if(j("*")){he(p,"Namespaces are not enabled."),he(h,"Wildcard namespace is not enabled."),G(),qe("|");var Se=ze();he(Se,"Expected attribute name."),ce={type:"Attribute",name:Se,namespace:{type:"WildcardNamespace"}}}else{var nt=ze();if(he(nt,"Expected attribute name."),ce={type:"Attribute",name:nt},j("|")){var pt=Y;if(G(),x0(q)){he(p,"Namespaces are not enabled.");var kt=ze();he(kt,"Expected attribute name."),ce={type:"Attribute",name:kt,namespace:{type:"NamespaceName",name:nt}}}else Ee(pt)}}if(he(ce.name,"Expected attribute name."),dt(),Le()&&!o)return ce;if(j("]"))G();else{if(ce.operator=rt(O),he(ce.operator,"Expected a valid attribute selector operator."),dt(),Ne(),j7e[q])ce.value={type:"String",value:ye(q)};else if(m&&j("$")){G();var Ke=ze();he(Ke,"Expected substitute name."),ce.value={type:"Substitution",name:Ke}}else{var vt=ze();he(vt,"Expected attribute value."),ce.value={type:"String",value:vt}}if(dt(),Le()&&!o)return ce;if(!j("]")){var Ye=ze();if(he(Ye,"Expected end of attribute selector."),ce.caseSensitivityModifier=Ye,he(A,"Attribute case sensitivity modifiers are not enabled."),he(k||S[ce.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),dt(),Le()&&!o)return ce}qe("]")}return ce}function ee(){for(var ce="";QA[q];)ce+=ue();return he(ce!=="","Formula parse error."),parseInt(ce)}var J=function(){return j("-")||j("+")||QA[q]};function _e(){if(j("e")||j("o")){var ce=ze();if(ce==="even")return dt(),[2,0];if(ce==="odd")return dt(),[2,1]}var Oe=null,Se=1;if(j("-")&&(G(),Se=-1),J()&&(j("+")&&G(),Oe=ee(),!j("\\")&&!j("n")))return[0,Oe*Se];Oe===null&&(Oe=1),Oe*=Se;var nt;if(j("\\")?(G(),C0(q)?nt=Qe():nt=ue()):nt=ue(),he(nt==="n",'Formula parse error: expected "n".'),dt(),j("+")||j("-")){var pt=j("+")?1:-1;return G(),dt(),[Oe,pt*ee()]}else return[Oe,0]}function Pe(ce,Oe,Se){var nt;if(j("(")){if(G(),dt(),m&&j("$")){G();var pt=ze();he(pt,"Expected substitute name."),nt={type:"Substitution",name:pt}}else if(Se.type==="String")nt={type:"String",value:$e()},he(nt.value,"Expected ".concat(Oe," argument value."));else if(Se.type==="Selector")nt=Be(!0);else if(Se.type==="Formula"){var kt=_e(),Ke=kt[0],vt=kt[1];if(nt={type:"Formula",a:Ke,b:vt},Se.ofSelector&&(dt(),j("o")||j("\\"))){var Ye=ze();he(Ye==="of","Formula of selector parse error."),dt(),nt={type:"FormulaOfSelector",a:Ke,b:vt,selector:de()}}}else return ge("Invalid ".concat(Oe," signature."));if(dt(),Le()&&!o)return nt;qe(")")}else he(Se.optional,"Argument is required for ".concat(Oe,' "').concat(ce,'".'));return nt}function Ie(){if(j("*"))return he(u,"Wildcard tag name is not enabled."),G(),{type:"WildcardTag"};if(x0(q)){he(l,"Tag names are not enabled.");var ce=ze();return he(ce,"Expected tag name."),{type:"TagName",name:ce}}else return ge("Expected tag name.")}function ie(){if(j("*")){var ce=Y;if(G(),!j("|")||(G(),!le()))return Ee(ce),Ie();he(p,"Namespaces are not enabled."),he(h,"Wildcard namespace is not enabled.");var Oe=Ie();return Oe.namespace={type:"WildcardNamespace"},Oe}else if(j("|")){he(p,"Namespaces are not enabled."),G();var Oe=Ie();return Oe.namespace={type:"NoNamespace"},Oe}else if(x0(q)){var Se=ze();if(he(Se,"Expected tag name."),!j("|"))return he(l,"Tag names are not enabled."),{type:"TagName",name:Se};var ce=Y;if(G(),!le())return Ee(ce),{type:"TagName",name:Se};he(p,"Namespaces are not enabled.");var Oe=Ie();return Oe.namespace={type:"NamespaceName",name:Se},Oe}else return ge("Expected tag name.")}function de(ce){var Oe,Se;ce===void 0&&(ce=!1);var nt={type:"Rule",items:[]};if(ce){var pt=rt(y);pt&&(nt.combinator=pt,dt())}for(;Y0)return(t.commaSeparated?jP:VP)(e)}else return String(e)}const K7e=[];function J7e(e,t){return(t.properties.className||K7e).includes(e.name)}function e9e(e,t){return t.properties.id===e.name}function t9e(e,t){return e.name===t.tagName}function n9e(e,t){return function(n,r){let i=cz(n,"tag");const o=cz(r??"*","range"),a=[];let s=-1;for(;++s=dz&&e.charCodeAt(t)<=a9e;)u=u*10+(e.charCodeAt(t)-dz),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?fz.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 pz(e){return u9e(s9e(e))}const c9e=pz.default||pz,d9e=e3("name",{handlers:{"any-link":f9e,blank:p9e,checked:h9e,dir:m9e,disabled:Hee,empty:g9e,enabled:b9e,"first-child":y9e,"first-of-type":O9e,has:v9e,is:Wee,lang:S9e,"last-child":T9e,"last-of-type":w9e,not:k9e,"nth-child":x9e,"nth-last-child":C9e,"nth-last-of-type":A9e,"nth-of-type":_9e,"only-child":R9e,"only-of-type":I9e,optional:N9e,"read-only":D9e,"read-write":Qee,required:Yee,root:P9e,scope:L9e},invalid:E9e,unknown:M9e});function f9e(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&mp(t,"href")}function Fu(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function p9e(e,t){return!Gee(t,n);function n(r){return r.type==="element"||r.type==="text"&&!UK(r)}}function h9e(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&mp(t,"checked")):t.tagName==="option"?mp(t,"selected"):!1}function m9e(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function Hee(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")&&mp(t,"disabled")}function g9e(e,t){return!Gee(t,n);function n(r){return r.type==="element"||r.type==="text"}}function b9e(e,t){return!Hee(e,t)}function y9e(e,t,n,r,i){return Fu(i,e),i.elementIndex===0}function O9e(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=c9e(n.a+"n+"+n.b),e._cachedFn=t}return t}function v9e(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 G5(o,{type:"root",children:t.children}),o.results.length>0}function E9e(){}function Wee(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 G5(o,t),o.results[0]===t}function S9e(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&r9e(i.language,zy(e.argument.value)).length>0}function T9e(e,t,n,r,i){return Fu(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function w9e(e,t,n,r,i){return Fu(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function k9e(e,t,n,r,i){return!Wee(e,t,n,r,i)}function x9e(e,t,n,r,i){const o=fx(e);return Fu(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function C9e(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 A9e(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 _9e(e,t,n,r,i){const o=fx(e);return Fu(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function R9e(e,t,n,r,i){return Fu(i,e),i.elementCount===1}function I9e(e,t,n,r,i){return Fu(i,e),i.typeCount===1}function N9e(e,t){return!Yee(e,t)}function D9e(e,t,n,r,i){return!Qee(e,t,n,r,i)}function Qee(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!mp(t,"readOnly")&&!mp(t,"disabled"):!!i.editableOrEditingHost}function Yee(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&mp(t,"required")}function P9e(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 L9e(e,t,n,r,i){return i.scopeElements.includes(t)}function Gee(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";qA(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?qA(o,"descendant",s):s.combinator==="~"&&qA(o,"generalSibling",s)}return o}function VE(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:F9e}function hz(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 qee(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=q7e(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=U9e(e,VE(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&B9e(e,a,n,o),s(),a}function j9e(e,t,n){const r=z9e(e,t,n);return G5(r,t||void 0),r.results}function z9e(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:W7e(e),schema:n==="svg"?Lu:Sp,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Zee=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Zee(n.children))}),t),V9e=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=j9e(t,r);i&&i.length>0&&Ca(r,i,(o,a,s)=>{n(o,a,s)});return}Ca(r,(i,o,a)=>{n(i,o,a)})}}},H9e=V9e,W9e=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Q9e=(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]}},Xee=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?Xee(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},mz=({value:e=""})=>{const t=W9e(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},gz=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Y9e=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Ca(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=Q9e(a.children,o);if(l){const u=mz(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=gz(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=Xee(a.children,o,"",n);if(s){const l=mz(s);Object.keys(l).length>0&&(i.properties=gz(i.properties,l,t))}}})}},G9e=Y9e;var q9e=function(t){return n=>{Ca(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=L({},r.properties,{"data-meta":String(r.data.meta)}))})}},Z9e=function(t){return n=>{Ca(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 X9e=/[\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,K9e=Object.hasOwnProperty;class J9e{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=eje(t,n===!0);const o=i;for(;K9e.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 eje(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(X9e,"").replace(/ /g,"-"))}function Kee(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 tje={},bz=new J9e;function nje(e){const n=(e||tje).prefix||"";return function(r){bz.reset(),Ca(r,"element",function(i){Kee(i)&&!i.properties.id&&(i.properties.id=n+bz.slug(Mh(i)))})}}const Jee=function(e){if(e==null)return oje;if(typeof e=="string")return ije(e);if(typeof e=="object")return rje(e);if(typeof e=="function")return q5(e);throw new Error("Expected function, string, or array as `test`")};function rje(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Ca(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})}})}},cje=uje;var dje={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 fje(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 pje=(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=[dje])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=Zee(n.children);n.children.push(fje(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},hje=[nje,lje,cje];const mje=vn.forwardRef((e,t)=>{var n,r=[q9e,Dee,Z9e,[_7e,{ignoreMissing:!0}],...hje,[H9e,{rewrite:pje((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[G9e,{properties:"attr"}],...e.rehypePlugins||[]];return $.jsx(qUe,L({},e,{rehypePlugins:r,ref:t}))});function vz(){const e=qD(),t=Tc(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?$.jsx(mje,{source:n,wrapperElement:{"data-color-mode":e}}):$.jsx(_1,{sx:{marginX:"auto",mt:4}})}var Pg=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(){}},Jm=typeof window>"u"||"Deno"in window;function As(){}function gje(e,t){return typeof e=="function"?e(t):e}function uI(e){return typeof e=="number"&&e>=0&&e!==1/0}function tte(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ez(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==X5(a,t.options))return!1}else if(!Yy(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 Sz(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(gp(t.options.mutationKey)!==gp(o))return!1}else if(!Yy(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function X5(e,t){return((t==null?void 0:t.queryKeyHashFn)||gp)(e)}function gp(e){return JSON.stringify(e,(t,n)=>cI(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Yy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Yy(e[n],t[n])):!1}function nte(e,t){if(e===t)return e;const n=Tz(e)&&Tz(t);if(n||cI(e)&&cI(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!(!wz(n)||!n.hasOwnProperty("isPrototypeOf"))}function wz(e){return Object.prototype.toString.call(e)==="[object Object]"}function bje(e){return new Promise(t=>{setTimeout(t,e)})}function dI(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?nte(e,t):t}function yje(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Oje(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $f,Kc,um,sV,vje=(sV=class extends Pg{constructor(){super();Zt(this,$f,void 0);Zt(this,Kc,void 0);Zt(this,um,void 0);Bt(this,um,t=>{if(!Jm&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){we(this,Kc)||this.setEventListener(we(this,um))}onUnsubscribe(){var t;this.hasListeners()||((t=we(this,Kc))==null||t.call(this),Bt(this,Kc,void 0))}setEventListener(t){var n;Bt(this,um,t),(n=we(this,Kc))==null||n.call(this),Bt(this,Kc,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,Kc=new WeakMap,um=new WeakMap,sV),MT=new vje,cm,Jc,dm,lV,Eje=(lV=class extends Pg{constructor(){super();Zt(this,cm,!0);Zt(this,Jc,void 0);Zt(this,dm,void 0);Bt(this,dm,t=>{if(!Jm&&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,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(this.setOnline.bind(this)))}setOnline(t){we(this,cm)!==t&&(Bt(this,cm,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return we(this,cm)}},cm=new WeakMap,Jc=new WeakMap,dm=new WeakMap,lV),$T=new Eje;function Sje(e){return Math.min(1e3*2**e,3e4)}function px(e){return(e??"online")==="online"?$T.isOnline():!0}var rte=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function XA(e){return e instanceof rte}function ite(e){let t=!1,n=0,r=!1,i,o,a;const s=new Promise((v,b)=>{o=v,a=b}),l=v=>{var b;r||(h(new rte(v)),(b=e.abort)==null||b.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!MT.isFocused()||e.networkMode!=="always"&&!$T.isOnline(),p=v=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,v),i==null||i(),o(v))},h=v=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,v),i==null||i(),a(v))},m=()=>new Promise(v=>{var b;i=O=>{const S=r||!d();return S&&v(O),S},(b=e.onPause)==null||b.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),y=()=>{if(r)return;let v;try{v=e.fn()}catch(b){v=Promise.reject(b)}Promise.resolve(v).then(p).catch(b=>{var w;if(r)return;const O=e.retry??(Jm?0:3),S=e.retryDelay??Sje,k=typeof S=="function"?S(n,b):S,A=O===!0||typeof O=="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 Tje(){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=Tje(),Ff,uV,ote=(uV=class{constructor(){Zt(this,Ff,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),uI(this.gcTime)&&Bt(this,Ff,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Jm?1/0:5*60*1e3))}clearGcTimeout(){we(this,Ff)&&(clearTimeout(we(this,Ff)),Bt(this,Ff,void 0))}},Ff=new WeakMap,uV),fm,pm,ws,ed,ks,Hi,n1,Bf,hm,HE,cl,Yu,cV,wje=(cV=class extends ote{constructor(t){super();Zt(this,hm);Zt(this,cl);Zt(this,fm,void 0);Zt(this,pm,void 0);Zt(this,ws,void 0);Zt(this,ed,void 0);Zt(this,ks,void 0);Zt(this,Hi,void 0);Zt(this,n1,void 0);Zt(this,Bf,void 0);Bt(this,Bf,!1),Bt(this,n1,t.defaultOptions),Tn(this,hm,HE).call(this,t.options),Bt(this,Hi,[]),Bt(this,ws,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Bt(this,fm,t.state||kje(this.options)),this.state=we(this,fm),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!we(this,Hi).length&&this.state.fetchStatus==="idle"&&we(this,ws).remove(this)}setData(t,n){const r=dI(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,ed);return(r=we(this,ks))==null||r.cancel(t),n?n.then(As).catch(As):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(we(this,fm))}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||!tte(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,ks))==null||n.continue()}onOnline(){var n;const t=we(this,Hi).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=we(this,ks))==null||n.continue()}addObserver(t){we(this,Hi).includes(t)||(we(this,Hi).push(t),this.clearGcTimeout(),we(this,ws).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,ks)&&(we(this,Bf)?we(this,ks).cancel({revert:!0}):we(this,ks).cancelRetry()),this.scheduleGc()),we(this,ws).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,ed))return(u=we(this,ks))==null||u.continueRetry(),we(this,ed)}if(t&&Tn(this,hm,HE).call(this,t),!this.options.queryFn){const h=we(this,Hi).find(m=>m.options.queryFn);h&&Tn(this,hm,HE).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,pm,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,v,b;XA(h)&&h.silent||Tn(this,cl,Yu).call(this,{type:"error",error:h}),XA(h)||((y=(m=we(this,ws).config).onError)==null||y.call(m,h,this),(b=(v=we(this,ws).config).onSettled)==null||b.call(v,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Bt(this,ks,ite({fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,y,v,b;if(typeof h>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(y=(m=we(this,ws).config).onSuccess)==null||y.call(m,h,this),(b=(v=we(this,ws).config).onSettled)==null||b.call(v,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,ed,we(this,ks).promise),we(this,ed)}},fm=new WeakMap,pm=new WeakMap,ws=new WeakMap,ed=new WeakMap,ks=new WeakMap,Hi=new WeakMap,n1=new WeakMap,Bf=new WeakMap,hm=new WeakSet,HE=function(t){this.options={...we(this,n1),...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 XA(i)&&i.revert&&we(this,pm)?{...we(this,pm),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ni.batch(()=>{we(this,Hi).forEach(r=>{r.onQueryUpdate()}),we(this,ws).notify({query:this,type:"updated",action:t})})},cV);function kje(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,dV,xje=(dV=class extends Pg{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??X5(i,n);let a=this.get(o);return a||(a=new wje({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=>Ez(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ez(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,dV),ru,r1,za,mm,iu,zc,fV,Cje=(fV=class extends ote{constructor(t){super();Zt(this,iu);Zt(this,ru,void 0);Zt(this,r1,void 0);Zt(this,za,void 0);Zt(this,mm,void 0);this.mutationId=t.mutationId,Bt(this,r1,t.defaultOptions),Bt(this,za,t.mutationCache),Bt(this,ru,[]),this.state=t.state||ate(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...we(this,r1),...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,za).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Bt(this,ru,we(this,ru).filter(n=>n!==t)),this.scheduleGc(),we(this,za).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){we(this,ru).length||(this.state.status==="pending"?this.scheduleGc():we(this,za).remove(this))}continue(){var t;return((t=we(this,mm))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,u,c,d,p,h,m,y,v,b,O,S,k,A,w,E;const n=()=>(Bt(this,mm,ite({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,D)=>{Tn(this,iu,zc).call(this,{type:"failed",failureCount:M,error:D})},onPause:()=>{Tn(this,iu,zc).call(this,{type:"pause"})},onContinue:()=>{Tn(this,iu,zc).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),we(this,mm).promise),r=this.state.status==="pending";try{if(!r){Tn(this,iu,zc).call(this,{type:"pending",variables:t}),await((o=(i=we(this,za).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,zc).call(this,{type:"pending",context:D,variables:t})}const M=await n();return await((u=(l=we(this,za).config).onSuccess)==null?void 0:u.call(l,M,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,M,t,this.state.context)),await((h=(p=we(this,za).config).onSettled)==null?void 0:h.call(p,M,null,this.state.variables,this.state.context,this)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,M,null,t,this.state.context)),Tn(this,iu,zc).call(this,{type:"success",data:M}),M}catch(M){try{throw await((b=(v=we(this,za).config).onError)==null?void 0:b.call(v,M,t,this.state.context,this)),await((S=(O=this.options).onError)==null?void 0:S.call(O,M,t,this.state.context)),await((A=(k=we(this,za).config).onSettled)==null?void 0:A.call(k,void 0,M,this.state.variables,this.state.context,this)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,void 0,M,t,this.state.context)),M}finally{Tn(this,iu,zc).call(this,{type:"error",error:M})}}}},ru=new WeakMap,r1=new WeakMap,za=new WeakMap,mm=new WeakMap,iu=new WeakSet,zc=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,za).notify({mutation:this,type:"updated",action:t})})},fV);function ate(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xs,i1,Uf,pV,Aje=(pV=class extends Pg{constructor(t={}){super();Zt(this,xs,void 0);Zt(this,i1,void 0);Zt(this,Uf,void 0);this.config=t,Bt(this,xs,[]),Bt(this,i1,0)}build(t,n,r){const i=new Cje({mutationCache:this,mutationId:++PO(this,i1)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){we(this,xs).push(t),this.notify({type:"added",mutation:t})}remove(t){Bt(this,xs,we(this,xs).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Ni.batch(()=>{we(this,xs).forEach(t=>{this.remove(t)})})}getAll(){return we(this,xs)}find(t){const n={exact:!0,...t};return we(this,xs).find(r=>Sz(n,r))}findAll(t={}){return we(this,xs).filter(n=>Sz(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,xs).filter(n=>n.state.isPaused);return Ni.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(As)),Promise.resolve()))}).then(()=>{Bt(this,Uf,void 0)})),we(this,Uf)}},xs=new WeakMap,i1=new WeakMap,Uf=new WeakMap,pV);function fI(e){return{onFetch:(t,n)=>{const r=async()=>{var m,y,v,b,O;const i=t.options,o=(v=(y=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:y.fetchMore)==null?void 0:v.direction,a=((b=t.state.data)==null?void 0:b.pages)||[],s=((O=t.state.data)==null?void 0:O.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,A)=>{if(u)return Promise.reject();if(k==null&&S.pages.length)return Promise.resolve(S);const w={queryKey:t.queryKey,pageParam:k,direction:A?"backward":"forward",meta:t.options.meta};c(w);const E=await d(w),{maxPages:M}=t.options,D=A?Oje:yje;return{pages:D(S.pages,E,M),pageParams:D(S.pageParams,k,M)}};let h;if(o&&a.length){const S=o==="backward",k=S?ste:pI,A={pages:a,pageParams:s},w=k(i,A);h=await p(A,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 pI(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function ste(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function _je(e,t){return t?pI(e,t)!=null:!1}function Rje(e,t){return!t||!e.getPreviousPageParam?!1:ste(e,t)!=null}var Ai,td,nd,gm,bm,rd,ym,Om,hV,Ije=(hV=class{constructor(e={}){Zt(this,Ai,void 0);Zt(this,td,void 0);Zt(this,nd,void 0);Zt(this,gm,void 0);Zt(this,bm,void 0);Zt(this,rd,void 0);Zt(this,ym,void 0);Zt(this,Om,void 0);Bt(this,Ai,e.queryCache||new xje),Bt(this,td,e.mutationCache||new Aje),Bt(this,nd,e.defaultOptions||{}),Bt(this,gm,new Map),Bt(this,bm,new Map),Bt(this,rd,0)}mount(){PO(this,rd)._++,we(this,rd)===1&&(Bt(this,ym,MT.subscribe(()=>{MT.isFocused()&&(this.resumePausedMutations(),we(this,Ai).onFocus())})),Bt(this,Om,$T.subscribe(()=>{$T.isOnline()&&(this.resumePausedMutations(),we(this,Ai).onOnline())})))}unmount(){var e,t;PO(this,rd)._--,we(this,rd)===0&&((e=we(this,ym))==null||e.call(this),Bt(this,ym,void 0),(t=we(this,Om))==null||t.call(this),Bt(this,Om,void 0))}isFetching(e){return we(this,Ai).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return we(this,td).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=gje(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(As).catch(As)}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(As)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(As)}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(As).catch(As)}fetchInfiniteQuery(e){return e.behavior=fI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(As).catch(As)}resumePausedMutations(){return we(this,td).resumePausedMutations()}getQueryCache(){return we(this,Ai)}getMutationCache(){return we(this,td)}getDefaultOptions(){return we(this,nd)}setDefaultOptions(e){Bt(this,nd,e)}setQueryDefaults(e,t){we(this,gm).set(gp(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...we(this,gm).values()];let n={};return t.forEach(r=>{Yy(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){we(this,bm).set(gp(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...we(this,bm).values()];let n={};return t.forEach(r=>{Yy(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...we(this,nd).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=X5(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,nd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){we(this,Ai).clear(),we(this,td).clear()}},Ai=new WeakMap,td=new WeakMap,nd=new WeakMap,gm=new WeakMap,bm=new WeakMap,rd=new WeakMap,ym=new WeakMap,Om=new WeakMap,hV),ha,_r,o1,Yo,jf,vm,ou,a1,Em,Sm,zf,Vf,id,Tm,Hf,Z0,s1,hI,l1,mI,u1,gI,c1,bI,d1,yI,f1,OI,p1,vI,XT,ute,mV,lte=(mV=class extends Pg{constructor(t,n){super();Zt(this,Hf);Zt(this,s1);Zt(this,l1);Zt(this,u1);Zt(this,c1);Zt(this,d1);Zt(this,f1);Zt(this,p1);Zt(this,XT);Zt(this,ha,void 0);Zt(this,_r,void 0);Zt(this,o1,void 0);Zt(this,Yo,void 0);Zt(this,jf,void 0);Zt(this,vm,void 0);Zt(this,ou,void 0);Zt(this,a1,void 0);Zt(this,Em,void 0);Zt(this,Sm,void 0);Zt(this,zf,void 0);Zt(this,Vf,void 0);Zt(this,id,void 0);Zt(this,Tm,new Set);this.options=n,Bt(this,ha,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),kz(we(this,_r),this.options)?Tn(this,Hf,Z0).call(this):this.updateResult(),Tn(this,c1,bI).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return EI(we(this,_r),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return EI(we(this,_r),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Tn(this,d1,yI).call(this),Tn(this,f1,OI).call(this),we(this,_r).removeObserver(this)}setOptions(t,n){const r=this.options,i=we(this,_r);if(this.options=we(this,ha).defaultQueryOptions(t),LT(r,this.options)||we(this,ha).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,p1,vI).call(this);const o=this.hasListeners();o&&xz(we(this,_r),i,this.options,r)&&Tn(this,Hf,Z0).call(this),this.updateResult(n),o&&(we(this,_r)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Tn(this,s1,hI).call(this);const a=Tn(this,l1,mI).call(this);o&&(we(this,_r)!==i||this.options.enabled!==r.enabled||a!==we(this,id))&&Tn(this,u1,gI).call(this,a)}getOptimisticResult(t){const n=we(this,ha).getQueryCache().build(we(this,ha),t),r=this.createResult(n,t);return Dje(this,r)&&(Bt(this,Yo,r),Bt(this,vm,this.options),Bt(this,jf,we(this,_r).state)),r}getCurrentResult(){return we(this,Yo)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(we(this,Tm).add(r),t[r])})}),n}getCurrentQuery(){return we(this,_r)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=we(this,ha).defaultQueryOptions(t),r=we(this,ha).getQueryCache().build(we(this,ha),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Tn(this,Hf,Z0).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),we(this,Yo)))}createResult(t,n){var w;const r=we(this,_r),i=this.options,o=we(this,Yo),a=we(this,jf),s=we(this,vm),u=t!==r?t.state:we(this,o1),{state:c}=t;let{error:d,errorUpdatedAt:p,fetchStatus:h,status:m}=c,y=!1,v;if(n._optimisticResults){const E=this.hasListeners(),M=!E&&kz(t,n),D=E&&xz(t,r,n,i);(M||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,a1))v=we(this,Em);else try{Bt(this,a1,n.select),v=n.select(c.data),v=dI(o==null?void 0:o.data,v,n),Bt(this,Em,v),Bt(this,ou,null)}catch(E){Bt(this,ou,E)}else v=c.data;if(typeof n.placeholderData<"u"&&typeof v>"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,Sm))==null?void 0:w.state.data,we(this,Sm)):n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),Bt(this,ou,null)}catch(M){Bt(this,ou,M)}typeof E<"u"&&(m="success",v=dI(o==null?void 0:o.data,E,n),y=!0)}we(this,ou)&&(d=we(this,ou),v=we(this,Em),p=Date.now(),m="error");const b=h==="fetching",O=m==="pending",S=m==="error",k=O&&b;return{status:m,fetchStatus:h,isPending:O,isSuccess:m==="success",isError:S,isInitialLoading:k,isLoading:k,data:v,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&&!O,isLoadingError:S&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:y,isRefetchError:S&&c.dataUpdatedAt!==0,isStale:K5(t,n),refetch:this.refetch}}updateResult(t){const n=we(this,Yo),r=this.createResult(we(this,_r),this.options);if(Bt(this,jf,we(this,_r).state),Bt(this,vm,this.options),we(this,jf).data!==void 0&&Bt(this,Sm,we(this,_r)),LT(r,n))return;Bt(this,Yo,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,Tm).size)return!0;const l=new Set(s??we(this,Tm));return this.options.throwOnError&&l.add("error"),Object.keys(we(this,Yo)).some(u=>{const c=u;return we(this,Yo)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),Tn(this,XT,ute).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Tn(this,c1,bI).call(this)}},ha=new WeakMap,_r=new WeakMap,o1=new WeakMap,Yo=new WeakMap,jf=new WeakMap,vm=new WeakMap,ou=new WeakMap,a1=new WeakMap,Em=new WeakMap,Sm=new WeakMap,zf=new WeakMap,Vf=new WeakMap,id=new WeakMap,Tm=new WeakMap,Hf=new WeakSet,Z0=function(t){Tn(this,p1,vI).call(this);let n=we(this,_r).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(As)),n},s1=new WeakSet,hI=function(){if(Tn(this,d1,yI).call(this),Jm||we(this,Yo).isStale||!uI(this.options.staleTime))return;const n=tte(we(this,Yo).dataUpdatedAt,this.options.staleTime)+1;Bt(this,zf,setTimeout(()=>{we(this,Yo).isStale||this.updateResult()},n))},l1=new WeakSet,mI=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(we(this,_r)):this.options.refetchInterval)??!1},u1=new WeakSet,gI=function(t){Tn(this,f1,OI).call(this),Bt(this,id,t),!(Jm||this.options.enabled===!1||!uI(we(this,id))||we(this,id)===0)&&Bt(this,Vf,setInterval(()=>{(this.options.refetchIntervalInBackground||MT.isFocused())&&Tn(this,Hf,Z0).call(this)},we(this,id)))},c1=new WeakSet,bI=function(){Tn(this,s1,hI).call(this),Tn(this,u1,gI).call(this,Tn(this,l1,mI).call(this))},d1=new WeakSet,yI=function(){we(this,zf)&&(clearTimeout(we(this,zf)),Bt(this,zf,void 0))},f1=new WeakSet,OI=function(){we(this,Vf)&&(clearInterval(we(this,Vf)),Bt(this,Vf,void 0))},p1=new WeakSet,vI=function(){const t=we(this,ha).getQueryCache().build(we(this,ha),this.options);if(t===we(this,_r))return;const n=we(this,_r);Bt(this,_r,t),Bt(this,o1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},XT=new WeakSet,ute=function(t){Ni.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(we(this,Yo))}),we(this,ha).getQueryCache().notify({query:we(this,_r),type:"observerResultsUpdated"})})},mV);function Nje(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function kz(e,t){return Nje(e,t)||e.state.dataUpdatedAt>0&&EI(e,t,t.refetchOnMount)}function EI(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&K5(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")&&K5(e,n)}function K5(e,t){return e.isStaleByTime(t.staleTime)}function Dje(e,t){return!LT(e.getCurrentResult(),t)}var Pje=class extends lte{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:fI()},t)}getOptimisticResult(e){return e.behavior=fI(),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:_je(t,n.data),hasPreviousPage:Rje(t,n.data),isFetchingNextPage:a,isFetchingPreviousPage:s,isRefetching:o&&!a&&!s}}},od,Ku,Va,Ju,wm,WE,h1,SI,gV,Lje=(gV=class extends Pg{constructor(n,r){super();Zt(this,wm);Zt(this,h1);Zt(this,od,void 0);Zt(this,Ku,void 0);Zt(this,Va,void 0);Zt(this,Ju,void 0);Bt(this,Ku,void 0),Bt(this,od,n),this.setOptions(r),this.bindMethods(),Tn(this,wm,WE).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,od).defaultMutationOptions(n),LT(r,this.options)||we(this,od).getMutationCache().notify({type:"observerOptionsUpdated",mutation:we(this,Va),observer:this}),(i=we(this,Va))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&gp(r.mutationKey)!==gp(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=we(this,Va))==null||n.removeObserver(this)}onMutationUpdate(n){Tn(this,wm,WE).call(this),Tn(this,h1,SI).call(this,n)}getCurrentResult(){return we(this,Ku)}reset(){var n;(n=we(this,Va))==null||n.removeObserver(this),Bt(this,Va,void 0),Tn(this,wm,WE).call(this),Tn(this,h1,SI).call(this)}mutate(n,r){var i;return Bt(this,Ju,r),(i=we(this,Va))==null||i.removeObserver(this),Bt(this,Va,we(this,od).getMutationCache().build(we(this,od),this.options)),we(this,Va).addObserver(this),we(this,Va).execute(n)}},od=new WeakMap,Ku=new WeakMap,Va=new WeakMap,Ju=new WeakMap,wm=new WeakSet,WE=function(){var r;const n=((r=we(this,Va))==null?void 0:r.state)??ate();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})},h1=new WeakSet,SI=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))})})},gV),cte=N.createContext(void 0),J5=e=>{const t=N.useContext(cte);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mje=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.createElement(cte.Provider,{value:e},t)),dte=N.createContext(!1),$je=()=>N.useContext(dte);dte.Provider;function Fje(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Bje=N.createContext(Fje()),Uje=()=>N.useContext(Bje);function fte(e,t){return typeof e=="function"?e(...t):!!e}var jje=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},zje=e=>{N.useEffect(()=>{e.clearReset()},[e])},Vje=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&fte(n,[e.error,r]),Hje=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Wje=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Qje=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function pte(e,t,n){const r=J5(n),i=$je(),o=Uje(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",Hje(a),jje(a,o),zje(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]),Wje(a,l))throw Qje(a,s,o);if(Vje({result:l,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}function e$(e,t){return pte(e,lte,t)}function hte(e,t){const n=J5(t),[r]=N.useState(()=>new Lje(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(Yje)},[r]);if(i.error&&fte(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function Yje(){}function mte(e,t){return pte(e,Pje,t)}const Gje=e=>["documents",e],qje=e=>e$({queryKey:Gje(e||""),enabled:!!e,queryFn:async()=>(await dr.get(`/documents/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});function Zje(){const e=fk(),t=fg(),n=sLe(),r=Tc(wk),{data:i}=qje(e.documentSlug||"");return N.useEffect(()=>{let o,a;return i!=null&&i.yorkieDocumentId?((async()=>{o=new LR.Client("https://api.yorkie.dev",{apiKey:"cmggkp8ksk14av0keupg"}),await o.activate(),a=new LR.Document(i==null?void 0:i.yorkieDocumentId),await o.attach(a,{initialPresence:{name:"Yorkie",color:q3e(k3e()).fade(.15).toString(),selection:null}}),t(oU(a)),t(aU(o))})(),()=>{(async()=>{await(o==null?void 0:o.deactivate()),t(oU(null)),t(aU(null))})()}):void 0},[t,i==null?void 0:i.yorkieDocumentId]),$.jsxs(Vs,{height:"calc(100% - 64px)",children:[$.jsx("div",{className:"wmde-markdown-var"}),r.mode==="both"&&$.jsx(eLe,{axis:"x",initial:n/2,min:400,children:({position:o,separatorProps:a})=>$.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[$.jsx("div",{id:"left-block",style:{width:o},children:$.jsx(F9,{})}),$.jsx(gs,{id:"splitter",...a,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:100}}),$.jsx("div",{className:"right-block",style:{width:`calc(100% - ${o}px)`,overflow:"auto"},children:$.jsx(Vs,{sx:{p:4},height:"100%",children:$.jsx(vz,{})})})]})}),r.mode==="read"&&$.jsx(Vs,{sx:{p:4,overflow:"auto"},height:"100%",children:$.jsx(vz,{})}),r.mode==="edit"&&$.jsx(F9,{})]})}function Xje(){return $.jsx(ts,{sx:{flexGrow:1},gap:3,children:$.jsx(_D,{})})}function Kje(e){return $.jsx(DS,{...e,children:$.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:[$.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"}),$.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"}),$.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 Jje=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=A(Re);if(Te){var nn=A(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 A(Re){return(A=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&&O(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,ia=En.hovered,Np=M(D.button,{activeStyle:Wn?ht:hn,customStyle:ht,active:ia||An,size:Qn});return o.a.createElement("button",v({type:"button",style:Np,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},M=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=`${eze.VITE_API_ADDR}/auth/login/${t}`};return $.jsx(Mge,{children:$.jsx(ts,{alignItems:"center",justifyContent:"center",sx:{height:"100vh"},children:$.jsx(gs,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:$.jsxs(ts,{gap:4,children:[$.jsxs(Vs,{children:[$.jsxs(ts,{direction:"row",gap:1,children:[$.jsx(Kje,{}),$.jsx(mi,{variant:"h6",children:"Login"})]}),$.jsx(mi,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),$.jsxs(ts,{gap:2,children:[$.jsxs(_h,{container:!0,spacing:1,alignItems:"center",children:[$.jsx(_h,{item:!0,xs:!0,children:$.jsx(Td,{sx:{width:1}})}),$.jsx(_h,{item:!0,xs:"auto",children:$.jsx(mi,{variant:"body2",color:"text.secondary",children:"Login with"})}),$.jsx(_h,{item:!0,xs:!0,children:$.jsx(Td,{sx:{width:1}})})]}),tze.map(({SocailLoginComponent:t,provider:n})=>$.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}const rze={accessToken:null},gte=bk({name:"auth",initialState:rze,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:t$}=gte.actions,ize=e=>e.auth,oze=gte.reducer;function aze(){const e=fg(),t=hg(),[n]=jSe();return N.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(t$(r))},[e,t,n]),$.jsx(Vs,{})}function sze(){return $.jsx(_D,{})}const n$=vn.createContext({isLoading:!0,isLoggedIn:!1}),lze={data:null},bte=bk({name:"user",initialState:lze,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:TI}=bte.actions,yte=e=>e.user,uze=bte.reducer,cze=e=>{var o;const{children:t}=e,{isLoggedIn:n}=N.useContext(n$),r=pg(),i=Tc(yte);return n?$.jsx(CY,{to:`/workspace/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},dze=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=N.useContext(n$),i=pg();return r?$.jsx(bD,{open:!0,children:$.jsx(_1,{color:"inherit"})}):n?t:$.jsx(CY,{to:"/",state:{from:i},replace:!0})};var r$={},fze=na;Object.defineProperty(r$,"__esModule",{value:!0});var Ote=r$.default=void 0,pze=fze(ra()),hze=$;Ote=r$.default=(0,pze.default)((0,hze.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 i$={},mze=na;Object.defineProperty(i$,"__esModule",{value:!0});var vte=i$.default=void 0,gze=mze(ra()),bze=$;vte=i$.default=(0,gze.default)((0,bze.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 yze(e){const t=fg(),n=()=>{t(t$(null)),t(TI(null))};return $.jsx(ED,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:$.jsx(R1,{children:$.jsxs(op,{onClick:n,children:[$.jsx(GQ,{children:$.jsx(vte,{fontSize:"small"})}),$.jsx(Bm,{children:"Logout"})]})})})}const Oze=e=>["workspaces",e],vze=()=>["workspaces"],Ete=e=>e$({queryKey:Oze(e||""),enabled:!!e,queryFn:async()=>(await dr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}}),Eze=()=>mte({queryKey:vze(),queryFn:async({pageParam:t})=>(await dr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),Sze=()=>hte({mutationFn:async e=>(await dr.post("/workspaces",e)).data});var o$={},Tze=na;Object.defineProperty(o$,"__esModule",{value:!0});var Ste=o$.default=void 0,wze=Tze(ra()),kze=$;Ste=o$.default=(0,wze.default)((0,kze.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var a$={},xze=na;Object.defineProperty(a$,"__esModule",{value:!0});var Tte=a$.default=void 0,Cze=xze(ra()),Aze=$;Tte=a$.default=(0,Cze.default)((0,Aze.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class FT 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 v=[n];return i&&(s?a?v.unshift(s):v.push(s):this.defaultLoader&&(a?v.unshift(this.defaultLoader):v.push(this.defaultLoader))),vn.createElement(r,y,v)}}Wo(FT,"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}),Wo(FT,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var s$={},_ze=na;Object.defineProperty(s$,"__esModule",{value:!0});var wte=s$.default=void 0,Rze=_ze(ra()),Ize=$;wte=s$.default=(0,Rze.default)((0,Ize.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var fO=e=>e.type==="checkbox",$h=e=>e instanceof Date,qo=e=>e==null;const kte=e=>typeof e=="object";var Mi=e=>!qo(e)&&!Array.isArray(e)&&kte(e)&&!$h(e),xte=e=>Mi(e)&&e.target?fO(e.target)?e.target.checked:e.target.value:e,Nze=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Cte=(e,t)=>e.has(Nze(t)),Dze=e=>{const t=e.constructor&&e.constructor.prototype;return Mi(t)&&t.hasOwnProperty("isPrototypeOf")},l$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function fa(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(!(l$&&(e instanceof Blob||e instanceof FileList))&&(n||Mi(e)))if(t=n?[]:{},!n&&!Dze(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=fa(e[r]));else return e;return t}var pO=e=>Array.isArray(e)?e.filter(Boolean):[],ai=e=>e===void 0,Ut=(e,t,n)=>{if(!t||!Mi(e))return n;const r=pO(t.split(/[,[\].]+?/)).reduce((i,o)=>qo(i)?i:i[o],e);return ai(r)||r===e?ai(e[t])?n:e[t]:r},bl=e=>typeof e=="boolean";const BT={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"},Ate=vn.createContext(null),u$=()=>vn.useContext(Ate),_te=e=>{const{children:t,...n}=e;return vn.createElement(Ate.Provider,{value:n},t)};var Rte=(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},_s=e=>Mi(e)&&!Object.keys(e).length,Ite=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return _s(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],Nte=(e,t,n)=>!e||!t||e===t||QE(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function c$(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 Pze(e){const t=u$(),{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,c$({disabled:r,next:d=>l.current&&Nte(c.current,d.name,o)&&Ite(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]),Rte(a,n,u.current,!1)}var yu=e=>typeof e=="string",Dte=(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 Pte(e){const t=u$(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=vn.useRef(r);s.current=r,c$({disabled:o,subject:n._subjects.values,next:c=>{Nte(s.current,c.name,a)&&u(fa(Dte(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 d$=e=>/^\w*$/.test(e),Lte=e=>pO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),vr=(e,t,n)=>{let r=-1;const i=d$(t)?[t]:Lte(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=fa(Ut(i._options.defaultValues,n));vr(i._defaultValues,n,p),ai(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:xte(c),name:n},type:BT.CHANGE}),[n]),onBlur:vn.useCallback(()=>u.current.onBlur({target:{value:Ut(i._formValues,n),name:n},type:BT.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 Lze=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Cz=e=>({isOnSubmit:!e||e===vl.onSubmit,isOnBlur:e===vl.onBlur,isOnChange:e===vl.onChange,isOnAll:e===vl.all,isOnTouch:e===vl.onTouched}),Az=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Mb=(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;Mb(s,t)}else Mi(s)&&Mb(s,t)}}};var Mze=(e,t,n)=>{const r=pO(Ut(e,n));return vr(r,"root",t[n]),vr(e,n,r),e},f$=e=>e.type==="file",fd=e=>typeof e=="function",UT=e=>{if(!l$)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},YE=e=>yu(e),p$=e=>e.type==="radio",jT=e=>e instanceof RegExp;const _z={value:!1,isValid:!1},Rz={value:!0,isValid:!0};var Mte=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&&!ai(e[0].attributes.value)?ai(e[0].value)||e[0].value===""?Rz:{value:e[0].value,isValid:!0}:Rz:_z}return _z};const Iz={isValid:!1,value:null};var $te=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Iz):Iz;function Nz(e,t,n="validate"){if(YE(e)||Array.isArray(e)&&e.every(YE)||bl(e)&&!e)return{type:n,message:YE(e)?e:"",ref:t}}var nh=e=>Mi(e)&&!jT(e)?e:{value:e,message:""},Dz=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:v,disabled:b}=e._f,O=Ut(t,m);if(!v||b)return{};const S=a?a[0]:o,k=U=>{r&&S.reportValidity&&(S.setCustomValidity(bl(U)?"":U||""),S.reportValidity())},A={},w=p$(o),E=fO(o),M=w||E,D=(y||f$(o))&&ai(o.value)&&ai(O)||UT(o)&&o.value===""||O===""||Array.isArray(O)&&!O.length,R=Lze.bind(null,m,n,A),B=(U,V,z,Q=Hu.maxLength,X=Hu.minLength)=>{const Z=U?V:z;A[m]={type:U?Q:X,message:Z,ref:o,...R(U?Q:X,Z)}};if(i?!Array.isArray(O)||!O.length:s&&(!M&&(D||qo(O))||bl(O)&&!O||E&&!Mte(a).isValid||w&&!$te(a).isValid)){const{value:U,message:V}=YE(s)?{value:!!s,message:s}:nh(s);if(U&&(A[m]={type:Hu.required,message:V,ref:S,...R(Hu.required,V)},!n))return k(V),A}if(!D&&(!qo(c)||!qo(d))){let U,V;const z=nh(d),Q=nh(c);if(!qo(O)&&!isNaN(O)){const X=o.valueAsNumber||O&&+O;qo(z.value)||(U=X>z.value),qo(Q.value)||(V=Xnew Date(new Date().toDateString()+" "+j),Y=o.type=="time",q=o.type=="week";yu(z.value)&&O&&(U=Y?Z(O)>Z(z.value):q?O>z.value:X>new Date(z.value)),yu(Q.value)&&O&&(V=Y?Z(O)+U.value,Q=!qo(V.value)&&O.length<+V.value;if((z||Q)&&(B(z,U.message,V.message),!n))return k(A[m].message),A}if(p&&!D&&yu(O)){const{value:U,message:V}=nh(p);if(jT(U)&&!O.match(U)&&(A[m]={type:Hu.pattern,message:V,ref:o,...R(Hu.pattern,V)},!n))return k(V),A}if(h){if(fd(h)){const U=await h(O,t),V=Nz(U,S);if(V&&(A[m]={...V,...R(Hu.validate,V.message)},!n))return k(V.message),A}else if(Mi(h)){let U={};for(const V in h){if(!_s(U)&&!n)break;const z=Nz(await h[V](O,t),S,V);z&&(U={...z,...R(V,z.message)},k(z.message),n&&(A[m]=U))}if(!_s(U)&&(A[m]={ref:S,...U},!n))return A}}return k(!0),A};function $ze(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=[]}}},zT=e=>qo(e)||!kte(e);function Lf(e,t){if(zT(e)||zT(t))return e===t;if($h(e)&&$h(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($h(o)&&$h(a)||Mi(o)&&Mi(a)||Array.isArray(o)&&Array.isArray(a)?!Lf(o,a):o!==a)return!1}}return!0}var Fte=e=>e.type==="select-multiple",Bze=e=>p$(e)||fO(e),JA=e=>UT(e)&&e.isConnected,Bte=e=>{for(const t in e)if(fd(e[t]))return!0;return!1};function VT(e,t={}){const n=Array.isArray(e);if(Mi(e)||n)for(const r in e)Array.isArray(e[r])||Mi(e[r])&&!Bte(e[r])?(t[r]=Array.isArray(e[r])?[]:{},VT(e[r],t[r])):qo(e[r])||(t[r]=!0);return t}function Ute(e,t,n){const r=Array.isArray(e);if(Mi(e)||r)for(const i in e)Array.isArray(e[i])||Mi(e[i])&&!Bte(e[i])?ai(t)||zT(n[i])?n[i]=Array.isArray(e[i])?VT(e[i],[]):{...VT(e[i])}:Ute(e[i],qo(t)?{}:t[i],n[i]):n[i]=!Lf(e[i],t[i]);return n}var e2=(e,t)=>Ute(e,t,VT(t)),jte=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ai(e)?e:t?e===""?NaN:e&&+e:n&&yu(e)?new Date(e):r?r(e):e;function t2(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return f$(t)?t.files:p$(t)?$te(e.refs).value:Fte(t)?[...t.selectedOptions].map(({value:n})=>n):fO(t)?Mte(e.refs).value:jte(ai(t.value)?e.ref.value:t.value,e)}var Uze=(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}},A0=e=>ai(e)?e:jT(e)?e.source:Mi(e)?jT(e.value)?e.value.source:e.value:e,jze=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Pz(e,t,n){const r=Ut(e,n);if(r||d$(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 zze=(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,Vze=(e,t)=>!pO(Ut(e,t)).length&&io(e,t);const Hze={mode:vl.onSubmit,reValidateMode:vl.onChange,shouldFocusError:!0};function Wze(e={},t){let n={...Hze,...e},r={submitCount:0,isDirty:!1,isLoading:fd(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)?fa(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:fa(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:KA(),array:KA(),state:KA()},h=Cz(n.mode),m=Cz(n.reValidateMode),y=n.criteriaMode===vl.all,v=re=>ee=>{clearTimeout(c),c=setTimeout(re,ee)},b=async re=>{if(d.isValid||re){const ee=n.resolver?_s((await D()).errors):await B(i,!0);ee!==r.isValid&&p.state.next({isValid:ee})}},O=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),Vze(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=e2(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})},A=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,ai(J)?Ut(o,re):J);ai(Ie)||_e&&_e.defaultChecked||ee?vr(a,re,ee?Ie:t2(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:{}},M=(re,ee,J,_e)=>{const Pe=Ut(r.errors,re),Ie=d.isValid&&bl(ee)&&r.isValid!==ee;if(e.delayError&&J?(u=v(()=>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)||!_s(_e)||Ie){const ie={..._e,...Ie&&bl(ee)?{isValid:ee}:{},errors:r.errors,name:re};r={...r,...ie},p.state.next(ie)}O(!1)},D=async re=>n.resolver(a,n.context,Uze(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 Dz(Pe,a,y,n.shouldUseNativeValidation&&!ee,de);if(ce[Ie.name]&&(J.valid=!1,ee))break;!ee&&(Ut(ce,Ie.name)?de?Mze(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=>!JA(J)):!JA(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)=>Dte(re,l,{...s.mount?a:ai(ee)?o:yu(re)?{[re]:ee}:ee},J,ee),Q=re=>pO(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,jte(ee,Ie)),Pe=UT(Ie.ref)&&qo(ee)?"":ee,Fte(Ie.ref)?[...Ie.ref.options].forEach(ie=>ie.selected=Pe.includes(ie.value)):Ie.refs?fO(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):f$(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)||!zT(Pe)||ie&&!ie._f)&&!$h(Pe)?Z(Ie,Pe,J):X(Ie,Pe,J)}},Y=(re,ee,J={})=>{const _e=Ut(i,re),Pe=l.array.has(re),Ie=fa(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:e2(o,a),isDirty:V(re,Ie)})):_e&&!_e._f&&!qo(Ie)?Z(re,Ie,J):X(re,Ie,J),Az(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?t2(Pe._f):xte(re),ie=de=>{_e=Number.isNaN(de)||de===Ut(a,J,de)};if(Pe){let de,ce;const Oe=Ie(),Se=re.type===BT.BLUR||re.type===BT.FOCUS_OUT,nt=!jze(Pe._f)&&!n.resolver&&!Ut(r.errors,J)&&!Pe._f.deps||zze(Se,Ut(r.touchedFields,J),r.isSubmitted,m,h),pt=Az(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=!_s(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}),O(!0),n.resolver){const{errors:vt}=await D([J]);if(ie(Oe),_e){const Ye=Pz(r.errors,i,J),it=Pz(vt,i,Ye.name||J);de=it.error,J=it.name,ce=_s(vt)}}else de=(await Dz(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),M(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(O(!0),n.resolver){const Ie=await R(ai(re)?re:Pe);J=_s(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&&Mb(i,j,re?Pe:l.mount),_e},Ee=re=>{const ee={...o,...s.mount?a:{}};return ai(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)=>fd(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:ai(Pe)?t2(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:A0(ee.min),max:A0(ee.max),minLength:A0(ee.minLength),maxLength:A0(ee.maxLength),pattern:A0(ee.pattern)}:{},name:re,onChange:q,onBlur:q,ref:Pe=>{if(Pe){qe(re,ee),J=Ut(i,re);const Ie=ai(Pe.value)&&Pe.querySelectorAll&&Pe.querySelectorAll("input,select,textarea")[0]||Pe,ie=Bze(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(JA),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)&&!(Cte(l.array,re)&&s.action)&&l.unMount.add(re)}}},rt=()=>n.shouldFocusError&&Mb(i,j,l.mount),Me=re=>{bl(re)&&(p.state.next({disabled:re}),Mb(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=fa(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"),_s(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:_s(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ye=(re,ee={})=>{Ut(i,re)&&(ai(ee.defaultValue)?Y(re,fa(Ut(o,re))):(Y(re,ee.defaultValue),vr(o,re,fa(ee.defaultValue))),ee.keepTouched||io(r.touchedFields,re),ee.keepDirty||(io(r.dirtyFields,re),r.isDirty=ee.defaultValue?V(re,fa(Ut(o,re))):V()),ee.keepError||(io(r.errors,re),d.isValid&&b()),p.state.next({...r}))},ze=(re,ee={})=>{const J=re?fa(re):o,_e=fa(J),Pe=re&&!_s(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(l$&&ai(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(UT(de)){const ce=de.closest("form");if(ce){ce.reset();break}}}}i={}}a=e.shouldUnregister?ee.keepDefaultValues?fa(o):{}:fa(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?e2(o,re):{},touchedFields:ee.keepTouched?r.touchedFields:{},errors:ee.keepErrors?r.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},$e=(re,ee)=>ze(fd(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:()=>fd(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:A,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 Qze(e={}){const t=vn.useRef(),n=vn.useRef(),[r,i]=vn.useState({isDirty:!1,isValidating:!1,isLoading:fd(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:fd(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Wze(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,c$({subject:o._subjects.state,next:a=>{Ite(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=Rte(r,o),t.current}const du=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),h$=({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}},$b=({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},Yze=(e,t)=>t==null||!e.isValid(t)?null:t,Lo=(e,t,n)=>t==null||!e.isValid(t)?n:t,Gze=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),m$=(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},wI=(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},g$=(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")},qze=["year","month","day"],rm=e=>qze.includes(e),Gy=(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},Zze=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},zte=["hours","minutes","seconds"],eg=e=>zte.includes(e),Vc=e=>zte.includes(e)||e==="meridiem",Xze=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,qy=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Kze=(e,t,n,r)=>{const i=qy(r.getHours(e),t,n);return r.setHours(e,i)},Lz=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),hO=(e,t)=>(n,r)=>e?t.isAfter(n,r):Lz(n,t)>Lz(r,t),HT=(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},Jze=e=>Math.max(...e.map(t=>{var n;return(n=yl[t.type])!=null?n:1})),_0=(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():_0(t,n,g$(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=_0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=_0(t,n,e.maxDate));const s=hO((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=_0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:wI(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=_0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:wI(t,a,e.maxTime))),a},Vte=(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}},tVe=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))},Hte=(e,t,n,r)=>{switch(n){case"month":return m$(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[]}},Wte=(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?Wte(e,o,i.maxLength):o},nVe=(e,t,n,r,i,o,a)=>{const s=tVe(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=O=>Qte(e,t,O,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=Hte(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()},b$=(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},Fh=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Yte=(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}},Mz=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Gte=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,qte=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return Gte(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")}},iVe=(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},$z=(e,t,n,r,i,o,a,s)=>{let l="";const u=[],c=e.date(),d=S=>{if(S==="")return null;const k=Vte(e,S),A=qte(e,t,k.contentType,k.type,S),w=a?A:k.contentType==="digit",E=i!=null&&e.isValid(i);let M=E?e.formatByString(i,S):"",D=null;if(w)if(A)D=M===""?e.formatByString(c,S).length:M.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&&(M=Wte(e,M,D))}return u.push(L({},k,{format:S,maxLength:D,value:M,placeholder:rVe(e,t,n,k,S),hasLeadingZeros:A,hasLeadingZerosInFormat:A,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,v=iVe(e,y),b=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((S,k)=>k.length-S.length).join("|")})`,"g");let O="";for(let S=0;SD.start<=S&&D.end>=S),A=y[S],w=k!=null,E=`${O}${y.slice(S)}`,M=b.test(E);!w&&A.match(/([A-Za-z]+)/)&&M?(O=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(O),O="",u.length===0?l+=A:u[u.length-1].endSeparator+=A)}return d(O),u.map(S=>{const k=A=>{let w=A;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})},oVe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=e.map(i=>{const o=b$(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},sVe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=m$(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:Gte(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})}},lVe=(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}},Fz={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Bz=(e,t,n,r,i,o)=>[...r].sort((a,s)=>Fz[a.type]-Fz[s.type]).reduce((a,s)=>!o||s.modified?lVe(e,t,s,n,a):a,i),uVe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,cVe=(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]}},dVe=["value","referenceDate"],$i={emptyValue:null,getTodayValue:g$,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ge(e,dVe);return t!=null&&r.utils.isValid(t)?t:n??eVe(r)},cleanValue:Yze,areValuesEqual:Gze,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)},y$={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:Yte(i(t),r),getValueStrFromSections:aVe,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)},fVe=["localeText"],kI=N.createContext(null),Zte=function(t){var n;const{localeText:r}=t,i=Ge(t,fVe),{utils:o,localeText:a}=(n=N.useContext(kI))!=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 O=new u({locale:p,formats:c,instance:d});if(!O.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 O},[u,p,c,d,o]),v=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:v,localeText:m}),[v,y,m]);return $.jsx(kI.Provider,{value:b,children:l})},pVe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:L({},e)}}}}),Xte={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"},hVe=Xte;pVe(Xte);const Ul=()=>{const e=N.useContext(kI);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({},nVe,e.localeText),[e.localeText]);return N.useMemo(()=>L({},e,{localeText:t}),[e,t])},Rn=()=>Ul().utils,_p=()=>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 Qte(e){return At("MuiPickersToolbar",e)}_t("MuiPickersToolbar",["root","content"]);const rVe=e=>{const{classes:t,isLandscape:n}=e;return Ct({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Qte,t)},iVe=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"}}),y$=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=rVe(u);return s?null:$.jsxs(iVe,{ref:n,className:et(c.root,o),ownerState:u,children:[$.jsx(mi,{color:"text.secondary",variant:"overline",id:l,children:a}),$.jsx(oVe,{className:c.content,ownerState:u,children:i})]})});function aVe(e){return At("MuiDatePickerToolbar",e)}_t("MuiDatePickerToolbar",["root","title"]);const sVe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],lVe=e=>{const{classes:t}=e;return Ct({root:["root"],title:["title"]},aVe,t)},uVe=ke(y$,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cVe=ke(mi,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>L({},e.isLandscape&&{margin:"auto 16px auto auto"})),dVe=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,sVe),c=Rn(),d=Fi(),p=lVe(r),h=N.useMemo(()=>{if(!i)return s;const y=Qy(c,{format:a,views:l},!0);return c.formatByString(i,y)},[i,a,s,c,l]),m=r;return $.jsx(uVe,L({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:p.root},u,{children:$.jsx(cVe,{variant:"h4",align:o?"left":"center",ownerState:m,className:p.title,children:h})}))}),mO=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 Yte(e,t){var n,r,i,o;const a=Rn(),s=_p(),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:mO(l.components);return L({},l,{localeText:u},p$({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:Lo(a,l.minDate,s.minDate),maxDate:Lo(a,l.maxDate,s.maxDate),slots:L({toolbar:dVe},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const fVe=Si($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),pVe=Si($.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),hVe=Si($.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Gte=Si($.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"),mVe=Si($.jsxs(N.Fragment,{children:[$.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"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),gVe=Si($.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"),bVe=Si($.jsxs(N.Fragment,{children:[$.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"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),yVe=Si($.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 OVe(e){return At("MuiPickersArrowSwitcher",e)}_t("MuiPickersArrowSwitcher",["root","spacer","button"]);const vVe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],EVe=["ownerState"],SVe=["ownerState"],TVe=ke("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),wVe=ke("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Fz=ke(bs,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>L({},e.hidden&&{visibility:"hidden"})),kVe=e=>{const{classes:t}=e;return Ct({root:["root"],spacer:["spacer"],button:["button"]},OVe,t)},qte=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:A}=u,w=Ge(u,vVe),E=u,M=kVe(E),D={isDisabled:m,isHidden:y,goTo:O,label:b},R={isDisabled:v,isHidden:S,goTo:k,label:A},B=(r=p==null?void 0:p.previousIconButton)!=null?r:Fz,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:M.button}),V=(i=p==null?void 0:p.nextIconButton)!=null?i:Fz,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:M.button}),Q=(o=p==null?void 0:p.leftArrowIcon)!=null?o:pVe,X=kn({elementType:Q,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Z=Ge(X,EVe),Y=(a=p==null?void 0:p.rightArrowIcon)!=null?a:hVe,q=kn({elementType:Y,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=Ge(q,SVe);return $.jsxs(TVe,L({ref:n,className:et(M.root,d),ownerState:E},w,{children:[$.jsx(B,L({},U,{children:l?$.jsx(Y,L({},j)):$.jsx(Q,L({},Z))})),c?$.jsx(mi,{variant:"subtitle1",component:"span",children:c}):$.jsx(wVe,{className:M.spacer,ownerState:E}),$.jsx(V,L({},z,{children:l?$.jsx(Q,L({},Z)):$.jsx(Y,L({},j))}))]}))}),Gy=36,hx=2,mx=320,xVe=280,gx=334,Zte=232,q0=48,CVe=ke(Yge)({[`& .${fb.container}`]:{outline:0},[`& .${fb.paper}`]:{outline:0,minWidth:mx}}),AVe=ke(s0e)({"&:first-of-type":{padding:0}});function _Ve(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:CVe,u=(n=a==null?void 0:a.mobileTransition)!=null?n:lg;return $.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:$.jsx(AVe,{children:r})}))}function RVe(e){return At("MuiPickersPopper",e)}_t("MuiPickersPopper",["root","paper"]);function hh(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const IVe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},WT=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?WT(t.shadowRoot):t:null},O$="@media (pointer: fine)",NVe="@media (prefers-reduced-motion: reduce)",rm=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Bz=rm&&rm[1]?parseInt(rm[1],10):null,Uz=rm&&rm[2]?parseInt(rm[2],10):null,DVe=Bz&&Bz<10||Uz&&Uz<13||!1,Xte=()=>cg(NVe,{defaultMatches:!1})||DVe,PVe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],LVe=e=>{const{classes:t}=e;return Ct({root:["root"],paper:["paper"]},RVe,t)},MVe=ke(x1,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),$Ve=ke(gs,{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 FVe(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&&FVe(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 UVe=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,PVe),d=L({},i,{placement:r}),p=kn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return $.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 jVe(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=WT(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[p,h,u]);const[S,k,A]=BVe(p,c??d),w=N.useRef(null),E=yn(w,l),M=yn(E,S),D=o,R=LVe(D),B=Xte(),U=b??B,V=q=>{q.key==="Escape"&&(q.stopPropagation(),d())},z=((t=y==null?void 0:y.desktopTransition)!=null?t:U)?lg:BS,Q=(n=y==null?void 0:y.desktopTrapFocus)!=null?n:fQ,X=(r=y==null?void 0:y.desktopPaper)!=null?r:$Ve,Z=(i=y==null?void 0:y.popper)!=null?i:MVe,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 $.jsx(Z,L({},Y,{children:({TransitionProps:q,placement:j})=>$.jsx(Q,L({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},O==null?void 0:O.desktopTrapFocus,{children:$.jsx(z,L({},q,O==null?void 0:O.desktopTransition,{children:$.jsx(UVe,{PaperComponent:X,ownerState:D,popperPlacement:j,ref:M,onPaperClick:k,onPaperTouchStart:A,paperClasses:R.paper,paperSlotProps:O==null?void 0:O.desktopPaper,children:s})}))}))}))}function zVe(e){return At("MuiPickersToolbarText",e)}const jz=_t("MuiPickersToolbarText",["root","selected"]),VVe=["className","selected","value"],HVe=e=>{const{classes:t,selected:n}=e;return Ct({root:["root",n&&"selected"]},zVe,t)},WVe=ke(mi,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${jz.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${jz.selected}`]:{color:(e.vars||e).palette.text.primary}})),v$=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Ge(r,VVe),s=HVe(r);return $.jsx(WVe,L({ref:n,className:et(i,s.root),component:"span"},a,{children:o}))}),QVe=["align","className","selected","typographyClassName","value","variant","width"],YVe=e=>{const{classes:t}=e;return Ct({root:["root"]},Qte,t)},GVe=ke(Af,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Qa=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,QVe),p=YVe(r);return $.jsx(GVe,L({variant:"text",ref:n,className:et(o,p.root)},c?{sx:{width:c}}:{},d,{children:$.jsx(v$,{align:i,className:s,variant:u,value:l,selected:a})}))}),E$=({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}},Dg=({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 E$({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})};function Kte(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 qVe=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:A,value:w,handleValueChange:E}=E$({timezone:k,value:d,defaultValue:p,onChange:m,valueManager:a}),M=N.useMemo(()=>qze(t,A),[t,A]),D=N.useCallback((ue,ge=null)=>s.getSectionsFromValue(t,ue,ge,o,he=>Lz(t,A,n,y,he,O,S,o)),[s,y,n,o,S,t,O,A]),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=jze(ue),Ne=a.getInitialReferenceValue({referenceDate:h,value:w,utils:t,props:c,granularity:he,timezone:A});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:A})})};E(ue,Ne)},Y=(ue,ge)=>{const he=[...B.sections];return he[ue]=L({},he[ue],{value:ge,modified:!0}),jte(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=Lz(t,A,n,y,rt,O,S,o);return $z(t,A,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:M,placeholder:R,timezone:A}},ZVe=5e3,rh=e=>e.saveQuery!=null,XVe=({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(),ZVe);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}`,A=y(k,v);if(!rh(A))return s({sectionIndex:m,value:k,sectionType:v.type}),A}const S=y(b,v);return rh(S)&&!S.saveQuery?(l(),null):(s({sectionIndex:m,value:b,sectionType:v.type}),rh(S)?null:S)},c=h=>{const m=(b,v,S)=>{const k=v.filter(A=>A.toLowerCase().startsWith(S));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},y=(b,v,S,k)=>{const A=w=>Fte(o,i,v.type,w);if(v.contentType==="letter")return m(v.format,A(v.format),b);if(S&&k!=null&&$te(o,S).contentType==="letter"){const w=A(S),E=m(S,w,b);return rh(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=>Pz(o,k,o.formats.month,v.format);return y(b,v,o.formats.month,S)}case"weekDay":{const S=(k,A)=>A.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:Ute(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=Vte(o,i,"digit","month","MM"),S=m(O,{type:b.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(rh(S))return S;const k=Pz(o,S.sectionValue,"MM",b.format);return L({},S,{sectionValue:k})}if(b.type==="weekDay"){const v=m(O,b);if(rh(v))return v;const S=px(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}},KVe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],S$=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}=qVe(e),{inputRef:h,internalProps:m,internalProps:{readOnly:y=!1,unstableFieldRef:O,minutesStep:b},forwardedProps:{onClick:v,onKeyDown:S,onFocus:k,onBlur:A,onMouseUp:w,onPaste:E,error:M,clearable:D,onClear:R,disabled:B},fieldValueManager:U,valueManager:V,validator:z}=e,Q=Ge(e.forwardedProps,KVe),{applyCharacterEditing:X,resetCharacterQuery:Z}=XVe({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(()=>Kze(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)=>{A==null||A(...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=$h(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=$h(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-$h(nt.endSeparator||"").length;de=ie.slice(nt.start+$h(nt.startSeparator||"").length,kt)}if(de.length===0){Xze()?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=Hze(t,p,J,ee.key,c,_e.date,{minutesStep:b});s({activeSection:J,newSectionValue:Pe,shouldGoToNextSection:!1});break}}});Zr(()=>{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===WT(document)&&Y.current.setSelectionRange(_e,Pe),Y.current.scrollTop=Ie}});const We=Kte(L({},m,{value:n.value,timezone:p}),z,V.isSameError,V.defaultErrorState),ye=N.useMemo(()=>M!==void 0?M:V.hasError(We),[V,We,M]);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]),Ve=Y.current&&Y.current===WT(document),dt=V.areValuesEqual(t,n.value,V.emptyValue),Be=!Ve&&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)})},JVe=({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}},eHe=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},tHe=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},nHe=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},rHe=({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}=JVe(e),[A,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:M}=E$({timezone:p,value:s,defaultValue:h,onChange:a,valueManager:t});Kte(L({},e,{value:A.draft,timezone:E}),i,t.isSameError,t.defaultErrorState);const D=jt(Ne=>{const Le={action:Ne,dateState:A,hasChanged:We=>!t.areValuesEqual(y,Ne.value,We),isControlled:m,closeOnSelect:u},qe=eHe(Le),rt=tHe(Le),Me=nHe(Le);if(w(We=>L({},We,{draft:Ne.value,lastPublishedValue:qe?Ne.value:We.lastPublishedValue,lastCommittedValue:rt?Ne.value:We.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),M(Ne.value,ye)}rt&&o&&o(Ne.value),Me&&k(!1)});if(s!==void 0&&(A.lastControlledValue===void 0||!t.areValuesEqual(y,A.lastControlledValue,s))){const Ne=t.areValuesEqual(y,A.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:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=jt(()=>{D({value:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),V=jt(()=>{D({value:A.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:A.draft,onChange:q,selectedSections:b,onSelectedSectionsChange:j},G=N.useMemo(()=>t.cleanValue(y,A.draft),[y,t,A.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 gO({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,A=jt((D,R)=>{b(R?D:B=>D===B?null:B),s==null||s(D,R)}),w=jt(D=>{A(D,!0),D!==h&&(m(D),t&&t(D))}),E=jt(()=>{k&&w(k)}),M=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,iHe),{view:O,setView:b,defaultView:v,focusedView:S,setFocusedView:k,setValueAndGoToNextView:A}=gO({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]),M=N.useMemo(()=>u.reduce((z,Q)=>h[Q]!=null&&Jm(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),Zr(()=>{D==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(O)}))},[O]),Zr(()=>{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:A,view:B,onViewChange:b,focusedView:S,onFocusedViewChange:k,showViewSwitcher:M>1,timeViewsCount:M}))}}};function zz(){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 aHe=(e,t)=>{const[n,r]=N.useState(zz);return Zr(()=>{const o=()=>{r(zz())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),hh(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},sHe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=aHe(n.views,i);return{layoutProps:L({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},lHe=(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))}};lHe(["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 Jte=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:a,autoFocusView:s})=>{const l=rHe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=oHe({props:e,inputRef:i,additionalViewProps:o,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=sHe({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 ene(e){return At("MuiPickersLayout",e)}const t2=_t("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),uHe=["onAccept","onClear","onCancel","onSetToday","actions"];function cHe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Ge(e,uHe),s=Fi();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return $.jsx(Af,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return $.jsx(Af,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return $.jsx(Af,{onClick:t,children:s.okButtonLabel},u);case"today":return $.jsx(Af,{onClick:i,children:s.todayButtonLabel},u);default:return null}});return $.jsx(Jge,L({},a,{children:l}))}const dHe=["items","changeImportance","isLandscape","onChange","isValid"],fHe=["getValue"];function pHe(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=Ge(e,dHe);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=Ge(s,fHe);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return $.jsx(UQ,L({dense:!0,sx:[{maxHeight:gx,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>$.jsx(vE,{children:$.jsx(mD,L({},s))},s.label))}))}function hHe(e){return e.view!==null}const mHe=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"]},ene,t)},gHe=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:A,slotProps:w}=e,E=A??mO(S),M=w??k,D=mHe(e),R=(t=E==null?void 0:E.actionBar)!=null?t:cHe,B=kn({elementType:R,externalSlotProps:M==null?void 0:M.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:D.actionBar},ownerState:L({},e,{wrapperVariant:r})}),U=$.jsx(R,L({},B)),V=E==null?void 0:E.toolbar,z=kn({elementType:V,externalSlotProps:M==null?void 0:M.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=hHe(z)&&V?$.jsx(V,L({},z)):null,X=v,Z=E==null?void 0:E.tabs,Y=l&&Z?$.jsx(Z,L({view:l,onViewChange:c},M==null?void 0:M.tabs)):null,q=(n=E==null?void 0:E.shortcuts)!=null?n:pHe,j=kn({elementType:q,externalSlotProps:M==null?void 0:M.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?$.jsx(q,L({},j)):null;return{toolbar:Q,content:X,tabs:Y,actionBar:U,shortcuts:le}},bHe=e=>{const{isLandscape:t,classes:n}=e;return Ct({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},ene,n)},tne=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",[`& .${t2.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${t2.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${t2.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));tne.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 yHe=ke("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),nne=function(t){const n=gt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=gHe(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:p}=n,h=n,m=bHe(h);return $.jsxs(tne,{ref:d,sx:l,className:et(u,m.root),ownerState:h,children:[c?s:r,c?r:s,$.jsx(yHe,{className:m.contentWrapper,children:p==="desktop"?$.jsxs(N.Fragment,{children:[i,o]}):$.jsxs(N.Fragment,{children:[o,i]})}),a]})};function OHe(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 vHe(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 bx(e,t,n,r){const i=Rn(),o=Bze(e,i),a=N.useCallback(s=>{const l=e==null?null:Uze(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const xI=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],CI=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],rne=["minDateTime","maxDateTime"],EHe=[...xI,...CI,...rne],Pg=e=>EHe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),SHe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],T$=(e,t)=>{const n=L({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return SHe.forEach(i),t==="date"?xI.forEach(i):t==="time"?CI.forEach(i):t==="date-time"&&(xI.forEach(i),CI.forEach(i),rne.forEach(i)),{forwardedProps:n,internalProps:r}},Rp=({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=Lo(n.utils,e.minDate,n.defaultDates.minDate),d=Lo(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}},bO=({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=hO(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}},yx=({props:e,value:t,adapter:n})=>{const r=Rp({adapter:n,value:t,props:e});return r!==null?r:bO({adapter:n,value:t,props:e})};function THe(e){return At("MuiPickersDay",e)}const ff=_t("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),wHe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],kHe=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"]},THe,l)},ine=({theme:e,ownerState:t})=>L({},e.typography.caption,{width:Gy,height:Gy,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 ${hx}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}`}}),one=(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]},xHe=ke(us,{name:"MuiPickersDay",slot:"Root",overridesResolver:one})(ine),CHe=ke("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:one})(({theme:e,ownerState:t})=>L({},ine({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),_0=()=>{},AHe=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=_0,onBlur:m=_0,onKeyDown:y=_0,onMouseDown:O=_0,onMouseEnter:b=_0,outsideCurrentMonth:v,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:A,today:w=!1}=r,E=Ge(r,wHe),M=L({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:w}),D=kHe(M),R=Rn(),B=N.useRef(null),U=yn(B,n);Zr(()=>{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?$.jsx(CHe,{className:et(D.root,D.hiddenDaySpacingFiller,o),ownerState:M,role:E.role}):$.jsx(xHe,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:M,children:A||R.format(a,"dayOfMonth")}))}),_He=N.memo(AHe),RHe=e=>At("MuiPickersSlideTransition",e),Ts=_t("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),IHe=["children","className","reduceAnimations","slideDirection","transKey","classes"],NHe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ct(r,RHe,t)},DHe=ke(aD,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ts["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ts["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ts.slideEnterActive}`]:t.slideEnterActive},{[`.${Ts.slideExit}`]:t.slideExit},{[`.${Ts["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ts["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},[`& .${Ts["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ts["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ts.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ts.slideExit}`]:{transform:"translate(0%)"},[`& .${Ts["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ts["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function PHe(e){const t=gt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Ge(t,IHe),s=NHe(t),l=bi();if(i)return $.jsx("div",{className:et(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return $.jsx(DHe,{className:et(s.root,r),childFactory:c=>N.cloneElement(c,{classNames:u}),role:"presentation",children:$.jsx(pde,L({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}const ane=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=Ul();return N.useCallback(u=>Rp({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])},LHe=e=>At("MuiDayCalendar",e);_t("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const MHe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],$He=["ownerState"],FHe=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"]},LHe,t)},sne=(Gy+hx*2)*6,BHe=ke("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),UHe=ke("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),jHe=ke(mi,{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})),zHe=ke(mi,{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})),VHe=ke(mi,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>L({},e.typography.caption,{width:Gy,height:Gy,padding:0,margin:`0 ${hx}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),HHe=ke("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:sne}),WHe=ke(PHe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:sne}),QHe=ke("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),YHe=ke("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${hx}px 0`,display:"flex",justifyContent:"center"});function GHe(e){var t,n,r;let{parentProps:i,day:o,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=Ge(e,MHe);const{disabled:p,disableHighlightToday:h,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:y,components:O,componentsProps:b,slots:v,slotProps:S,timezone:k}=i,A=Rn(),w=ef(k),E=a!==null&&A.isSameDay(o,a),M=s.some(Z=>A.isSameDay(Z,o)),D=A.isSameDay(o,w),R=(t=(n=v==null?void 0:v.day)!=null?n:O==null?void 0:O.Day)!=null?t:_He,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":A.toJsDate(o).valueOf()},d),ownerState:L({},i,{day:o,selected:M})}),U=Ge(B,$He),V=N.useMemo(()=>p||l(o),[p,l,o]),z=N.useMemo(()=>A.getMonth(o)!==u,[A,o,u]),Q=N.useMemo(()=>{const Z=A.startOfMonth(A.setMonth(o,u));return y?A.isSameDay(o,A.startOfWeek(Z)):A.isSameDay(o,Z)},[u,o,y,A]),X=N.useMemo(()=>{const Z=A.endOfMonth(A.setMonth(o,u));return y?A.isSameDay(o,A.endOfWeek(Z)):A.isSameDay(o,Z)},[u,o,y,A]);return $.jsx(R,L({},U,{day:o,disabled:V,autoFocus:c&&E,today:D,outsideCurrentMonth:z,isFirstVisibleCell:Q,isLastVisibleCell:X,selected:M,tabIndex:E?0:-1,"aria-selected":M,"aria-current":D?"date":void 0}))}function qHe(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=()=>$.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:m,disablePast:y,disableFuture:O,minDate:b,maxDate:v,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:A,dayOfWeekFormatter:w,hasFocus:E,onFocusedViewChange:M,gridLabelId:D,displayWeekNumber:R,fixedWeekNumber:B,autoFocus:U,timezone:V}=t,z=ef(V),Q=Rn(),X=FHe(t),Y=bi().direction==="rtl",q=w||((Be,re)=>Q.format(re,"weekdayShort").charAt(0).toUpperCase()),j=ane({shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:A,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),M==null||M(!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=Lb({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=Lb({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)&&(M==null||M(!1))}),Me=Q.getMonth(i),We=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),Ve=N.useMemo(()=>{const Be=Q.startOfMonth(i),re=Q.endOfMonth(i);return j(ue)||Q.isAfterDay(ue,re)||Q.isBeforeDay(ue,Be)?Lb({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 $.jsx(jHe,{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?$.jsx(HHe,{className:X.loadingContainer,children:p()}):$.jsx(WHe,L({transKey:ye,onExited:u,reduceAnimations:d,slideDirection:h,className:et(r,X.slideTransition)},m,{nodeRef:ze,children:$.jsx(QHe,{ref:ze,role:"rowgroup",className:X.monthContainer,children:dt.map((Be,re)=>$.jsxs(YHe,{role:"row",className:X.weekContainer,"aria-rowindex":re+1,children:[R&&$.jsx(VHe,{className:X.weekNumber,role:"rowheader","aria-label":le.calendarWeekNumberAriaLabelText(Q.getWeekNumber(Be[0])),children:le.calendarWeekNumberText(Q.getWeekNumber(Be[0]))}),Be.map((ee,J)=>$.jsx(GHe,{parentProps:t,day:ee,selectedDays:We,focusableDay:Ve,onKeyDown:Le,onFocus:qe,onBlur:rt,onDaySelect:he,isDateDisabled:j,currentMonthNumber:Me,isViewFocused:Ee,"aria-colindex":J+1},ee.toString()))]},`week-${Be[0]}`))})}))]})}const ZHe=(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")}},XHe=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(ZHe(!!c,a,m)).current,O=N.useMemo(()=>{let M=null;return n?M=n:r&&(M=m.startOfMonth(r)),$i.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:M,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(M=>{v(L({type:"changeMonth"},M)),u&&u(M.newMonth)},[u]),k=N.useCallback(M=>{const D=M;m.isSameMonth(D,b.currentMonth)||S({newMonth:m.startOfMonth(D),direction:m.isAfterDay(D,b.currentMonth)?"left":"right"})},[b.currentMonth,S,m]),A=ane({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:i,disablePast:o,timezone:p}),w=N.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),E=jt((M,D)=>{A(M)||v({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:D})});return{referenceDate:O,calendarState:b,changeMonth:k,changeFocusedDay:E,isDateDisabled:A,onMonthSwitchingAnimationEnd:w,handleChangeMonth:S}},KHe=["props","getOpenDialogAriaText"],JHe=["ownerState"],eWe=["ownerState"],w$=e=>{var t,n,r,i,o;let{props:a,getOpenDialogAriaText:s}=e,l=Ge(e,KHe);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:A,localeText:w,reduceAnimations:E}=a,M=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}=Jte(L({},l,{props:a,inputRef:D,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=u.inputAdornment)!=null?r:vD,le=kn({elementType:j,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),Ee=Ge(le,JHe),G=(i=u.openPickerButton)!=null?i:bs,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,M),edge:Ee.position},ownerState:a}),ge=Ge(ue,eWe),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:A&&!a.open,focused:V?!0:void 0}),ownerState:a});Q&&(Le.InputProps=L({},Le.InputProps,{ref:R,[`${Ee.position}Adornment`]:$.jsx(j,L({},Ee,{children:$.jsx(G,L({},ge,{children:$.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:nne,Me=yn(D,Le.inputRef,v);let We=B;U&&(b?We=`${B}-label`:We=void 0);const ye=L({},c,{toolbar:L({},c==null?void 0:c.toolbar,{titleId:B}),popper:L({"aria-labelledby":We},c==null?void 0:c.popper)});return{renderPicker:()=>$.jsxs(Hte,{localeText:w,children:[$.jsx(Ne,L({},Le,{slots:qe,slotProps:ye,inputRef:Me})),$.jsx(jVe,L({role:"dialog",placement:"bottom-start",anchorEl:R.current},z,{open:V,slots:u,slotProps:ye,shouldRestoreFocus:Y,reduceAnimations:E,children:$.jsx(rt,L({},X,ye==null?void 0:ye.layout,{slots:u,slotProps:ye,children:Z()}))}))]})}},tWe=e=>{var t,n,r;const i=Rn(),o=_p();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:Lo(i,e.minDate,o.minDate),maxDate:Lo(i,e.maxDate,o.maxDate)})},nWe=({props:e,inputRef:t})=>{const n=tWe(e),{forwardedProps:r,internalProps:i}=T$(n,"date");return S$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:$i,fieldValueManager:b$,validator:Rp,valueType:"date"})},rWe=["ownerState"],k$=({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:bs,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,rWe),v=(d=(p=i==null?void 0:i.clearIcon)!=null?p:a==null?void 0:a.ClearIcon)!=null?d:yVe,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:$.jsxs(N.Fragment,{children:[e&&$.jsx(vD,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:$.jsx(y,L({},b,{onClick:r,children:$.jsx(v,L({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]})}),A=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:A}},iWe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],oWe=["inputRef"],aWe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],lne=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,iWe),m=a,y=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:vp,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=nWe({props:v,inputRef:b}),{ref:k,onPaste:A,onKeyDown:w,inputMode:E,readOnly:M,clearable:D,onClear:R}=S,B=Ge(S,aWe),{InputProps:U,fieldProps:V}=k$({onClear:R,clearable:D,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return $.jsx(y,L({ref:n},V,{InputProps:L({},U,{readOnly:M}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:A,onKeyDown:w,ref:k})}))}),sWe=e=>At("MuiPickersFadeTransitionGroup",e);_t("MuiPickersFadeTransitionGroup",["root"]);const lWe=e=>{const{classes:t}=e;return Ct({root:["root"]},sWe,t)},uWe=ke(aD,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function une(e){const t=gt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=lWe(t),s=bi();return i?n:$.jsx(uWe,{className:et(a.root,r),children:$.jsx(lg,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function cWe(e){return At("MuiPickersMonth",e)}const Kv=_t("MuiPickersMonth",["root","monthButton","disabled","selected"]),dWe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],fWe=e=>{const{disabled:t,selected:n,classes:r}=e;return Ct({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},cWe,r)},pWe=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"})),hWe=ke("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Kv.disabled}`]:t.disabled},{[`&.${Kv.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"},[`&.${Kv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Kv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),mWe=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,dWe),O=N.useRef(null),b=fWe(n);return Zr(()=>{if(r){var v;(v=O.current)==null||v.focus()}},[r]),$.jsx(pWe,L({className:b.root,ownerState:n},y,{children:$.jsx(hWe,{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 gWe(e){return At("MuiMonthCalendar",e)}_t("MuiMonthCalendar",["root"]);const bWe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],yWe=e=>{const{classes:t}=e;return Ct({root:["root"]},gWe,t)};function OWe(e,t){const n=Rn(),r=_p(),i=gt({props:e,name:t});return L({disableFuture:!1,disablePast:!1},i,{minDate:Lo(n,i.minDate,r.minDate),maxDate:Lo(n,i.maxDate,r.maxDate)})}const vWe=ke("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:mx,boxSizing:"border-box"}),EWe=N.forwardRef(function(t,n){const r=OWe(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:A=3,timezone:w,gridLabelId:E}=r,M=Ge(r,bWe),{value:D,handleValueChange:R,timezone:B}=Dg({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,onChange:h,valueManager:$i}),U=ef(B),V=sg(),z=Rn(),Q=N.useMemo(()=>$i.getInitialReferenceValue({value:D,utils:z,props:r,timezone:B,referenceDate:s,granularity:yl.month}),[]),X=r,Z=yWe(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 We=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,We)||z.isAfter(ze,ye)?!0:m?m(ze):!1},[u,c,d,p,U,m,z]),he=jt((Me,We)=>{if(y)return;const ye=z.setMonth(D??Q,We);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,We)=>{switch(Me.key){case"ArrowUp":Ne((12+We-3)%12),Me.preventDefault();break;case"ArrowDown":Ne((12+We+3)%12),Me.preventDefault();break;case"ArrowLeft":Ne((12+We+(V.direction==="ltr"?-1:1))%12),Me.preventDefault();break;case"ArrowRight":Ne((12+We+(V.direction==="ltr"?1:-1))%12),Me.preventDefault();break}}),qe=jt((Me,We)=>{Ne(We)}),rt=jt((Me,We)=>{j===We&&ue(!1)});return $.jsx(vWe,L({ref:n,className:et(Z.root,i),ownerState:X,role:"radiogroup","aria-labelledby":E},M,{children:h$(z,D??Q).map(Me=>{const We=z.getMonth(Me),ye=z.format(Me,"monthShort"),ze=z.format(Me,"month"),$e=We===q,Ve=l||ge(Me);return $.jsx(mWe,{selected:$e,value:We,onClick:he,onKeyDown:Le,autoFocus:Ee&&We===j,disabled:Ve,tabIndex:We===j?0:-1,onFocus:qe,onBlur:rt,"aria-current":Y===We?"date":void 0,"aria-label":ze,monthsPerRow:A,children:ye},ye)})}))});function SWe(e){return At("MuiPickersYear",e)}const Jv=_t("MuiPickersYear",["root","yearButton","selected","disabled"]),TWe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],wWe=e=>{const{disabled:t,selected:n,classes:r}=e;return Ct({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},SWe,r)},kWe=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"})),xWe=ke("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Jv.disabled}`]:t.disabled},{[`&.${Jv.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"},[`&.${Jv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Jv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),CWe=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,TWe),O=N.useRef(null),b=wWe(n);return N.useEffect(()=>{r&&O.current.focus()},[r]),$.jsx(kWe,L({className:et(b.root,i),ownerState:n},y,{children:$.jsx(xWe,{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 AWe(e){return At("MuiYearCalendar",e)}_t("MuiYearCalendar",["root"]);const _We=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],RWe=e=>{const{classes:t}=e;return Ct({root:["root"]},AWe,t)};function IWe(e,t){var n;const r=Rn(),i=_p(),o=gt({props:e,name:t});return L({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:Lo(r,o.minDate,i.minDate),maxDate:Lo(r,o.maxDate,i.maxDate)})}const NWe=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:mx,maxHeight:xVe,boxSizing:"border-box",position:"relative"}),DWe=N.forwardRef(function(t,n){const r=IWe(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:A,timezone:w,gridLabelId:E}=r,M=Ge(r,_We),{value:D,handleValueChange:R,timezone:B}=Dg({name:"YearCalendar",timezone:w,value:a,defaultValue:s,onChange:m,valueManager:$i}),U=ef(B),V=sg(),z=Rn(),Q=N.useMemo(()=>$i.getInitialReferenceValue({value:D,utils:z,props:r,timezone:B,referenceDate:l,granularity:yl.year}),[]),X=r,Z=RWe(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-A),ye.preventDefault();break;case"ArrowDown":Ne(ze+A),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),We=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,Ve=Me.current.clientHeight,dt=Me.current.scrollTop,Be=$e+ze;ze>Ve||$e{const ze=z.getYear(ye),$e=ze===q,Ve=u||ge(ye);return $.jsx(CWe,{selected:$e,value:ze,onClick:he,onKeyDown:Le,autoFocus:Ee&&ze===j,disabled:Ve,tabIndex:ze===j?0:-1,onFocus:qe,onBlur:rt,"aria-current":Y===ze?"date":void 0,yearsPerRow:A,children:z.format(ye,"year")},z.format(ye,"year"))})}))}),PWe=e=>At("MuiPickersCalendarHeader",e),LWe=_t("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),MWe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],$We=["ownerState"],FWe=e=>{const{classes:t}=e;return Ct({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},PWe,t)},BWe=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}),UWe=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})),jWe=ke("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),zWe=ke(bs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>L({marginRight:"auto"},e.view==="year"&&{[`.${LWe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),VWe=ke(fVe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),HWe=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:A,reduceAnimations:w,views:E,labelId:M,className:D,timezone:R}=u,B=Ge(u,MWe),U=u,V=FWe(u),z=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:zWe,Q=kn({elementType:z,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(A)},ownerState:U,className:V.switchViewButton}),X=(o=(a=c==null?void 0:c.switchViewIcon)!=null?a:p==null?void 0:p.SwitchViewIcon)!=null?o:VWe,Z=kn({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:V.switchViewIcon}),Y=Ge(Z,$We),q=()=>S(l.addMonths(h,1),"left"),j=()=>S(l.addMonths(h,-1),"right"),le=OHe(h,{disableFuture:y,maxDate:b,timezone:R}),Ee=vHe(h,{disablePast:O,minDate:v,timezone:R}),G=()=>{if(!(E.length===1||!k||m))if(E.length===2)k(E.find(ue=>ue!==A)||E[0]);else{const ue=E.indexOf(A)!==0?0:1;k(E[ue])}};return E.length===1&&E[0]==="year"?null:$.jsxs(BWe,L({},B,{ownerState:U,className:et(D,V.root),ref:n,children:[$.jsxs(UWe,{role:"presentation",onClick:G,ownerState:U,"aria-live":"polite",className:V.labelContainer,children:[$.jsx(une,{reduceAnimations:w,transKey:l.format(h,"monthAndYear"),children:$.jsx(jWe,{id:M,ownerState:U,className:V.label,children:l.format(h,"monthAndYear")})}),E.length>1&&!m&&$.jsx(z,L({},Q,{children:$.jsx(X,L({},Y))}))]}),$.jsx(lg,{in:A==="day",children:$.jsx(qte,{slots:c,slotProps:d,onGoToPrevious:j,isPreviousDisabled:Ee,previousLabel:s.previousMonth,onGoToNext:q,isNextDisabled:le,nextLabel:s.nextMonth})})]}))}),Ox=ke("div")({overflow:"hidden",width:mx,maxHeight:gx,display:"flex",flexDirection:"column",margin:"0 auto"}),WWe=e=>At("MuiDateCalendar",e);_t("MuiDateCalendar",["root","viewTransitionContainer"]);const QWe=["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"],YWe=e=>{const{classes:t}=e;return Ct({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},WWe,t)};function GWe(e,t){var n,r,i,o,a,s,l;const u=Rn(),c=_p(),d=Xte(),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:()=>$.jsx("span",{children:"..."}),minDate:Lo(u,p.minDate,c.minDate),maxDate:Lo(u,p.maxDate,c.maxDate)})}const qWe=ke(Ox,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:gx}),ZWe=ke(une,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),cne=N.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=Pl(),l=GWe(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:A,shouldDisableMonth:w,shouldDisableYear:E,view:M,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,We=Ge(l,QWe),{value:ye,handleValueChange:ze,timezone:$e}=Dg({name:"DateCalendar",timezone:Me,value:d,defaultValue:p,onChange:b,valueManager:$i}),{view:Ve,setView:dt,focusedView:Be,setFocusedView:re,goToNextView:ee,setValueAndGoToNextView:J}=gO({view:M,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}=XHe({value:ye,defaultCalendarMonth:O,referenceDate:h,reduceAnimations:k,onMonthChange:S,minDate:z,maxDate:Q,shouldDisableDate:A,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:HWe,Ot=kn({elementType:Ke,externalSlotProps:(o=ge==null?void 0:ge.calendarHeader)!=null?o:G==null?void 0:G.calendarHeader,additionalProps:{views:D,view:Ve,currentMonth:Pe.currentMonth,onViewChange:dt,onMonthChange:(Ce,fe)=>de({newMonth:Ce,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(Ce=>{const fe=a.startOfMonth(Ce),lt=a.endOfMonth(Ce),at=ce(Ce)?Lb({utils:a,date:Ce,minDate:a.isBefore(z,fe)?fe:z,maxDate:a.isAfter(Q,lt)?lt:Q,disablePast:y,disableFuture:m,isDateDisabled:ce,timezone:$e}):Ce;at?(J(at,"finish"),S==null||S(fe)):(ee(),ie(fe)),Ie(at,!0)}),it=jt(Ce=>{const fe=a.startOfYear(Ce),lt=a.endOfYear(Ce),at=ce(Ce)?Lb({utils:a,date:Ce,minDate:a.isBefore(z,fe)?fe:z,maxDate:a.isAfter(Q,lt)?lt:Q,disablePast:y,disableFuture:m,isDateDisabled:ce,timezone:$e}):Ce;at?(J(at,"finish"),v==null||v(at)):(ee(),ie(fe)),Ie(at,!0)}),vt=jt(Ce=>ze(Ce&&wI(a,Ce,ye??_e),"finish",Ve));N.useEffect(()=>{ye!=null&&a.isValid(ye)&&ie(ye)},[ye]);const Dt=l,rn=YWe(Dt),cn={disablePast:y,disableFuture:m,maxDate:Q,minDate:z},fn={disableHighlightToday:X,readOnly:V,disabled:U,timezone:$e,gridLabelId:pt},zn=N.useRef(Ve);N.useEffect(()=>{zn.current!==Ve&&(Be===zn.current&&re(Ve,!0),zn.current=Ve)},[Be,re,Ve]);const ve=N.useMemo(()=>[ye],[ye]);return $.jsxs(qWe,L({ref:n,className:et(rn.root,B),ownerState:Dt},We,{children:[$.jsx(Ke,L({},Ot)),$.jsx(ZWe,{reduceAnimations:k,className:rn.viewTransitionContainer,transKey:Ve,ownerState:Dt,children:$.jsxs("div",{children:[Ve==="year"&&$.jsx(DWe,L({},cn,fn,{value:ye,onChange:it,shouldDisableYear:E,hasFocus:kt,onFocusedViewChange:Ce=>re("year",Ce),yearsPerRow:qe,referenceDate:_e})),Ve==="month"&&$.jsx(EWe,L({},cn,fn,{hasFocus:kt,className:B,value:ye,onChange:Ye,shouldDisableMonth:w,onFocusedViewChange:Ce=>re("month",Ce),monthsPerRow:rt,referenceDate:_e})),Ve==="day"&&$.jsx(qHe,L({},Pe,cn,fn,{onMonthSwitchingAnimationEnd:Oe,onFocusedDayChange:Ie,reduceAnimations:k,selectedDays:ve,onSelectedDaysChange:vt,shouldDisableDate:A,shouldDisableMonth:w,shouldDisableYear:E,hasFocus:kt,onFocusedViewChange:Ce=>re("day",Ce),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:A,yearsPerRow:w,defaultCalendarMonth:E,components:M,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})=>$.jsx(cne,{view:e,onViewChange:t,views:n.filter(nm),focusedView:r&&nm(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:A,yearsPerRow:w,defaultCalendarMonth:E,components:M,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}),dne=N.forwardRef(function(t,n){var r,i,o,a;const s=Fi(),l=Rn(),u=Yte(t,"MuiDesktopDatePicker"),c=L({day:Gs,month:Gs,year:Gs},u.viewRenderers),d=L({},u,{viewRenderers:c,format:Qy(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:L({openPickerIcon:Gte,field:lne},u.slots),slotProps:L({},u.slotProps,{field:h=>{var m;return L({},Yd((m=u.slotProps)==null?void 0:m.field,h),Pg(u),{ref:n})},toolbar:L({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=w$({props:d,valueManager:$i,valueType:"date",getOpenDialogAriaText:(o=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:Rp});return p()});dne.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:og,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 XWe=["props","getOpenDialogAriaText"],x$=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,a=Ge(e,XWe);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(),A=N.useRef(null),w=Pl(),E=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:M,actions:D,layoutProps:R,renderCurrentView:B,fieldProps:U}=Jte(L({},a,{props:i,inputRef:A,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:IVe(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:nne,Z=yn(A,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:()=>$.jsxs(Hte,{localeText:S,children:[$.jsx(V,L({},z,{slots:Q,slotProps:q,inputRef:Z})),$.jsx(_Ve,L({},D,{open:M,slots:s,slotProps:q,children:$.jsx(X,L({},R,q==null?void 0:q.layout,{slots:s,slotProps:q,children:B()}))}))]})}},C$=N.forwardRef(function(t,n){var r,i,o;const a=Fi(),s=Rn(),l=Yte(t,"MuiMobileDatePicker"),u=L({day:Gs,month:Gs,year:Gs},l.viewRenderers),c=L({},l,{viewRenderers:u,format:Qy(s,l,!1),slots:L({field:lne},l.slots),slotProps:L({},l.slotProps,{field:p=>{var h;return L({},Yd((h=l.slotProps)==null?void 0:h.field,p),Pg(l),{ref:n})},toolbar:L({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=x$({props:c,valueManager:$i,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:Rp});return d()});C$.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:og,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 KWe=["desktopModeMediaQuery"],JWe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=O$}=r,o=Ge(r,KWe);return cg(i,{defaultMatches:!0})?$.jsx(dne,L({ref:n},o)):$.jsx(C$,L({ref:n},o))}),eQe=e=>{var t,n,r,i,o,a,s,l;const u=Rn(),c=_p(),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:Lo(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:Lo(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})},tQe=({props:e,inputRef:t})=>{const n=eQe(e),{forwardedProps:r,internalProps:i}=T$(n,"date-time");return S$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:$i,fieldValueManager:b$,validator:yx,valueType:"date-time"})},nQe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],rQe=["inputRef"],iQe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],fne=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,nQe),m=a,y=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:vp,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,rQe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=tQe({props:v,inputRef:b}),{ref:k,onPaste:A,onKeyDown:w,inputMode:E,readOnly:M,clearable:D,onClear:R}=S,B=Ge(S,iQe),{InputProps:U,fieldProps:V}=k$({onClear:R,clearable:D,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return $.jsx(y,L({ref:n},V,{InputProps:L({},U,{readOnly:M}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:A,onKeyDown:w,ref:k})}))});function oQe(e){return At("MuiDateTimePickerTabs",e)}_t("MuiDateTimePickerTabs",["root"]);const aQe=e=>nm(e)?"date":"time",sQe=e=>e==="date"?"day":"hours",lQe=e=>{const{classes:t}=e;return Ct({root:["root"]},oQe,t)},uQe=ke(Ove,{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}`,[`& .${EE.indicator}`]:{bottom:"auto",top:0}}})),cQe=function(t){const n=gt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=$.jsx(gVe,{}),onViewChange:i,timeIcon:o=$.jsx(bVe,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Fi(),u=lQe(n),c=(d,p)=>{i(sQe(p))};return s?null:$.jsxs(uQe,{ownerState:n,variant:"fullWidth",value:aQe(a),onChange:c,className:u.root,children:[$.jsx(c8,{value:"date","aria-label":l.dateTableLabel,icon:$.jsx(N.Fragment,{children:r})}),$.jsx(c8,{value:"time","aria-label":l.timeTableLabel,icon:$.jsx(N.Fragment,{children:o})})]})};function dQe(e){return At("MuiDateTimePickerToolbar",e)}const n2=_t("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),fQe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],pQe=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,dQe,t)},pne=ke(y$,{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"}));pne.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 hQe=ke("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),hne=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`})}),mQe=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"}));hne.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 Vz=ke(v$,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),gQe=ke("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${n2.ampmLabel}`]:t.ampmLabel},{[`&.${n2.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>L({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${n2.ampmLabel}`]:{fontSize:17}}));function bQe(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,fQe),O=t,b=Rn(),{meridiemMode:v,handleMeridiemChange:S}=bx(i,n,o),k=!!(n&&!r),A=m==="desktop",w=Fi(),E=bi(),M=pQe(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 $.jsxs(pne,L({toolbarTitle:w.dateTimePickerToolbarTitle,isLandscape:s,className:M.root},y,{ownerState:O,children:[$.jsxs(hQe,{className:M.dateContainer,ownerState:O,children:[d.includes("year")&&$.jsx(Qa,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?b.format(i,"year"):"–"}),d.includes("day")&&$.jsx(Qa,{tabIndex:-1,variant:A?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:R})]}),$.jsxs(hne,{className:M.timeContainer,ownerState:O,children:[$.jsxs(mQe,{className:M.timeDigitsContainer,ownerState:O,children:[d.includes("hours")&&$.jsx(Qa,{variant:A?"h5":"h3",width:A&&!s?q0:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?D(i):"--"}),d.includes("minutes")&&$.jsxs(N.Fragment,{children:[$.jsx(Vz,{variant:A?"h5":"h3",value:":",className:M.separator,ownerState:O}),$.jsx(Qa,{variant:A?"h5":"h3",width:A&&!s?q0:void 0,onClick:()=>l("minutes"),selected:a==="minutes",value:i?b.format(i,"minutes"):"--"})]}),d.includes("seconds")&&$.jsxs(N.Fragment,{children:[$.jsx(Vz,{variant:A?"h5":"h3",value:":",className:M.separator,ownerState:O}),$.jsx(Qa,{variant:A?"h5":"h3",width:A&&!s?q0:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?b.format(i,"seconds"):"--"})]})]}),k&&!A&&$.jsxs(gQe,{className:M.ampmSelection,ownerState:O,children:[$.jsx(Qa,{variant:"subtitle2",selected:v==="am",typographyClassName:M.ampmLabel,value:Sl(b,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),$.jsx(Qa,{variant:"subtitle2",selected:v==="pm",typographyClassName:M.ampmLabel,value:Sl(b,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&A&&$.jsx(Qa,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&v?Sl(b,v):"--",width:q0})]})]}))}function mne(e,t){var n,r,i,o,a,s,l,u,c,d,p;const h=Rn(),m=_p(),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:mO(y.components),S=(i=y.slotProps)!=null?i:y.componentsProps;return L({},y,p$({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:Lo(h,(u=y.minDateTime)!=null?u:y.minDate,m.minDate),maxDate:Lo(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:bQe,tabs:cQe},v),slotProps:L({},S,{toolbar:L({ampm:O},S==null?void 0:S.toolbar)})})}function yQe(e){return At("MuiMultiSectionDigitalClock",e)}_t("MuiMultiSectionDigitalClock",["root"]);function OQe(e){return At("MuiMultiSectionDigitalClockSection",e)}const vQe=_t("MuiMultiSectionDigitalClockSection",["root","item"]),EQe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],SQe=e=>{const{classes:t}=e;return Ct({root:["root"],item:["item"]},OQe,t)},TQe=ke(A1,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:Zte,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)"}})),wQe=ke(op,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:q0,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)}})),kQe=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,EQe),S=N.useMemo(()=>L({},s,{alreadyRendered:!!i.current}),[s]),k=SQe(S),A=(r=y==null?void 0:y.digitalClockSectionItem)!=null?r:wQe;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}),$.jsx(TQe,L({ref:o,className:et(k.root,c),ownerState:S,autoFocusItem:l&&m,role:"listbox"},v,{children:h.map(w=>{var E,M;if(b&&(E=w.isDisabled)!=null&&E.call(w,w.value))return null;const D=w.isSelected(w.value);return $.jsx(A,L({onClick:()=>!p&&u(w.value),selected:D,disabled:d||((M=w.isDisabled)==null?void 0:M.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)})}))}),xQe=({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},Hz=({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())}})]},A$=({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:()=>m$(n,i,"date")}),[]);return e??o},CQe=["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"],AQe=e=>{const{classes:t}=e;return Ct({root:["root"]},yQe,t)},_Qe=ke(Ox,{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}`})),RQe=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:A,shouldDisableTime:w,onChange:E,view:M,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,CQe),{value:j,handleValueChange:le,timezone:Ee}=Dg({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=A$({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}=gO({view:M,views:Le,openTo:R,onViewChange:B,onChange:Ne,focusedView:U,onFocusedViewChange:V}),We=jt(ee=>{rt(ee,"finish","meridiem")}),{meridiemMode:ye,handleMeridiemChange:ze}=bx(he,o,We,"finish"),$e=N.useCallback((ee,J)=>{const _e=hO(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||A!=null&&A(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=Yy(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,A,w,r,v,S,ue,Le]),Ve=N.useCallback(ee=>{switch(ee){case"hours":return{onChange:J=>{const _e=Yy(J,ye,o);rt(r.setHours(he,_e),"finish","hours")},items:xQe({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:Hz({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:Hz({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]:Ve(J)}),{}),[Le,Ve]),Be=i,re=AQe(Be);return $.jsx(_Qe,L({ref:n,className:et(re.root,z),ownerState:Be,role:"group"},q,{children:Object.entries(dt).map(([ee,J])=>$.jsx(kQe,{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))}))}),IQe=ke("div")({display:"flex",margin:"0 auto"});function NQe(e){return At("MuiTimeClock",e)}_t("MuiTimeClock",["root","arrowSwitcher"]);const eg=220,xu=36,qy={x:eg/2,y:eg/2},gne={x:qy.x,y:0},DQe=gne.x-qy.x,PQe=gne.y-qy.y,LQe=e=>e*(180/Math.PI),bne=(e,t,n)=>{const r=t-qy.x,i=n-qy.y,o=Math.atan2(DQe,PQe)-Math.atan2(r,i);let a=LQe(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}},MQe=(e,t,n=1)=>{const r=n*6;let{value:i}=bne(r,e,t);return i=i*n%60,i},$Qe=(e,t,n)=>{const{value:r,distance:i}=bne(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return Ct({root:["root"],thumb:["thumb"]},FQe,t)},jQe=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"])})),zQe=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 VQe(e){const t=gt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Ge(t,BQe),s=N.useRef(i);N.useEffect(()=>{s.current=i},[i]);const l=L({},t,{shouldAnimate:s.current!==i}),u=UQe(l),c=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*eg),transform:`rotateZ(${p}deg)`}};return $.jsx(jQe,L({style:c(),className:et(n,u.root),ownerState:l},a,{children:$.jsx(zQe,{ownerState:l,className:u.thumb})}))}function HQe(e){return At("MuiClock",e)}_t("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const WQe=e=>{const{classes:t}=e;return Ct({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},HQe,t)},QQe=ke("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),YQe=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"}),GQe=ke("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),qQe=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"}})),ZQe=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%)"})),XQe=ke(bs,{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}})),KQe=ke(bs,{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}})),Wz=ke(mi,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function JQe(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(),A=N.useRef(!1),w=WQe(v),E=l(m,h),M=!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"?MQe(le,Ee,c):$Qe(le,Ee,!!n);D(G,j)},B=q=>{A.current=!0,R(q,"shallow")},U=q=>{A.current&&(R(q,"finish"),A.current=!1)},V=q=>{q.buttons>0&&R(q.nativeEvent,"shallow")},z=q=>{A.current&&(A.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);Zr(()=>{i&&Z.current.focus()},[i]);const Y=q=>{if(!A.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 $.jsxs(QQe,{className:et(b,w.root),children:[$.jsxs(YQe,{className:w.clock,children:[$.jsx(qQe,{onTouchMove:B,onTouchEnd:U,onMouseUp:z,onMouseMove:V,ownerState:{disabled:y},className:w.squareMask}),!E&&$.jsxs(N.Fragment,{children:[$.jsx(ZQe,{className:w.pin}),a!=null&&$.jsx(VQe,{type:h,viewValue:m,isInner:M,hasSelected:Q})]}),$.jsx(GQe,{"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&&$.jsxs(N.Fragment,{children:[$.jsx(XQe,{onClick:O?void 0:()=>s("am"),disabled:y||u===null,ownerState:v,className:w.amButton,title:Sl(S,"am"),children:$.jsx(Wz,{variant:"caption",className:w.meridiemText,children:Sl(S,"am")})}),$.jsx(KQe,{disabled:y||u===null,onClick:O?void 0:()=>s("pm"),ownerState:v,className:w.pmButton,title:Sl(S,"pm"),children:$.jsx(Wz,{variant:"caption",className:w.meridiemText,children:Sl(S,"pm")})})]})]})}function eYe(e){return At("MuiClockNumber",e)}const eE=_t("MuiClockNumber",["root","selected","disabled"]),tYe=["className","disabled","index","inner","label","selected"],nYe=e=>{const{classes:t,selected:n,disabled:r}=e;return Ct({root:["root",n&&"selected",r&&"disabled"]},eYe,t)},rYe=ke("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${eE.disabled}`]:t.disabled},{[`&.${eE.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},[`&.${eE.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${eE.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function yne(e){const t=gt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Ge(t,tYe),u=t,c=nYe(u),d=i%12/12*Math.PI*2-Math.PI/2,p=(eg-xu-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return $.jsx(rYe,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+(eg-xu)/2}px`},ownerState:u},l,{children:a}))}const iYe=({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($.jsx(yne,{id:m?i:void 0,index:d,inner:h,selected:m,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},Qz=({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 $.jsx(yne,{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"],aYe=e=>{const{classes:t}=e;return Ct({root:["root"],arrowSwitcher:["arrowSwitcher"]},NQe,t)},sYe=ke(Ox,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),lYe=ke(qte,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),uYe=["hours","minutes"],cYe=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:A,shouldDisableTime:w,showViewSwitcher:E,onChange:M,view:D,views:R=uYe,openTo:B,onViewChange:U,focusedView:V,onFocusedViewChange:z,className:Q,disabled:X,readOnly:Z,timezone:Y}=i,q=Ge(i,oYe),j=c??mO(l),le=d??u,{value:Ee,handleValueChange:G,timezone:ue}=Dg({name:"TimeClock",timezone:Y,value:p,defaultValue:h,onChange:M,valueManager:$i}),ge=A$({value:Ee,referenceDate:m,utils:r,props:i,timezone:ue}),he=Fi(),Ne=ef(ue),{view:Le,setView:qe,previousView:rt,nextView:Me,setValueAndGoToNextView:We}=gO({view:D,views:R,openTo:B,onViewChange:U,onChange:G,focusedView:V,onFocusedViewChange:z}),{meridiemMode:ye,handleMeridiemChange:ze}=bx(ge,o,We),$e=N.useCallback((ee,J)=>{const _e=hO(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||A!=null&&A(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=Yy(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,A,w,r,v,S,Ne,R]),Ve=Pl(),dt=N.useMemo(()=>{switch(Le){case"hours":{const ee=(J,_e)=>{const Pe=Yy(J,ye,o);We(r.setHours(ge,Pe),_e)};return{onChange:ee,viewValue:r.getHours(ge),children:iYe({value:Ee,utils:r,ampm:o,onChange:ee,getClockNumberText:he.hoursClockNumberText,isDisabled:J=>X||$e(J,"hours"),selectedId:Ve})}}case"minutes":{const ee=r.getMinutes(ge),J=(_e,Pe)=>{We(r.setMinutes(ge,_e),Pe)};return{viewValue:ee,onChange:J,children:Qz({utils:r,value:ee,onChange:J,getClockNumberText:he.minutesClockNumberText,isDisabled:_e=>X||$e(_e,"minutes"),selectedId:Ve})}}case"seconds":{const ee=r.getSeconds(ge),J=(_e,Pe)=>{We(r.setSeconds(ge,_e),Pe)};return{viewValue:ee,onChange:J,children:Qz({utils:r,value:ee,onChange:J,getClockNumberText:he.secondsClockNumberText,isDisabled:_e=>X||$e(_e,"seconds"),selectedId:Ve})}}default:throw new Error("You must provide the type for ClockView")}},[Le,r,Ee,o,he.hoursClockNumberText,he.minutesClockNumberText,he.secondsClockNumberText,ye,We,ge,$e,Ve,X]),Be=i,re=aYe(Be);return $.jsxs(sYe,L({ref:n,className:et(re.root,Q),ownerState:Be},q,{children:[$.jsx(JQe,L({autoFocus:s??!!V,ampmInClock:a&&R.includes("hours"),value:Ee,type:Le,ampm:o,minutesStep:k,isTimeDisabled:$e,meridiemMode:ye,handleMeridiemChange:ze,selectedId:Ve,disabled:X,readOnly:Z},dt)),E&&$.jsx(lYe,{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 dYe(e){return At("MuiDigitalClock",e)}const fYe=_t("MuiDigitalClock",["root","list","item"]),pYe=["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"],hYe=e=>{const{classes:t}=e;return Ct({root:["root"],list:["list"],item:["item"]},dYe,t)},mYe=ke(Ox,{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:Zte})),gYe=ke(A1,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),bYe=ke(op,{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)}})),yYe=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:A,minTime:w,disableFuture:E,disablePast:M,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,pYe),{value:ge,handleValueChange:he,timezone:Ne}=Dg({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=hYe(rt),We=(r=(i=y==null?void 0:y.digitalClockItem)!=null?i:h==null?void 0:h.DigitalClockItem)!=null?r:bYe,ye=kn({elementType:We,externalSlotProps:(o=O==null?void 0:O.digitalClockItem)!=null?o:m==null?void 0:m.digitalClockItem,ownerState:{},className:Me.item}),ze=A$({value:ge,referenceDate:S,utils:a,props:u,timezone:Ne}),$e=jt(ee=>he(ee,"finish","hours")),{setValueAndGoToNextView:Ve}=gO({view:V,views:le,openTo:z,onViewChange:Q,onChange:$e,focusedView:X,onFocusedViewChange:Z}),dt=jt(ee=>{Ve(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=hO(k,a),_e=()=>!(w&&J(w,ee)||A&&J(ee,A)||E&&J(ee,qe)||M&&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,A,E,qe,M,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 $.jsx(mYe,L({ref:l,className:et(Me.root,Y),ownerState:rt},ue,{children:$.jsx(gYe,{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 $.jsx(We,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))})})}))}),im=({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:A,slots:w,slotProps:E,readOnly:M,disabled:D,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z})=>$.jsx(cYe,{view:e,onViewChange:t,focusedView:n&&Jm(n)?n:null,onFocusedViewChange:r,views:i.filter(Jm),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:A,slots:w,slotProps:E,readOnly:M,disabled:D,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z}),One=({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:A,slotProps:w,readOnly:E,disabled:M,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>$.jsx(yYe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Jm),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:A,slotProps:w,readOnly:E,disabled:M,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeStep:U==null?void 0:U.minutes,skipDisabled:V,timezone:z}),AI=({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:A,slotProps:w,readOnly:E,disabled:M,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>$.jsx(RQe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Jm),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:A,slotProps:w,readOnly:E,disabled:M,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:A,reduceAnimations:w,minutesStep:E,ampm:M,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:We,timeViewsCount:ye,shouldRenderTimeInASingleColumn:ze})=>{var $e,Ve;const dt=!!(($e=Yd((Ve=Z==null?void 0:Z.actionBar)!=null?Ve:Q==null?void 0:Q.actionBar,{}))!=null&&($e=$e.actions)!=null&&$e.length),Be={view:Vc(e)?e:"hours",onViewChange:t,focusedView:r&&Vc(r)?r:null,onFocusedViewChange:i,views:n.filter(Vc),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:O,shouldDisableTime:k,shouldDisableClock:A,minutesStep:E,ampm:M,components:z,componentsProps:Q,slots:X,slotProps:Z,readOnly:le,disabled:Ee,autoFocus:he,disableIgnoringDatePartForTimeValidation:rt,timeSteps:Me,skipDisabled:We,timezone:qe};return $.jsxs(N.Fragment,{children:[$.jsxs(IQe,{children:[$.jsx(cne,{view:nm(e)?e:"day",onViewChange:t,views:n.filter(nm),focusedView:r&&nm(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&&$.jsxs(N.Fragment,{children:[$.jsx(Td,{orientation:"vertical"}),ze?One(L({},Be,{view:"hours",views:["hours"],focusedView:r&&Vc(r)?"hours":null,sx:L({width:"auto",[`&.${fYe.root}`]:{maxHeight:gx}},Array.isArray(ge)?ge:[ge])})):AI(L({},Be,{view:Vc(e)?e:"hours",views:n.filter(Vc),focusedView:r&&Vc(r)?r:null,sx:L({borderBottom:0,width:"auto",[`.${vQe.root}`]:{maxHeight:"100%"}},Array.isArray(ge)?ge:[ge])}))]})]}),dt&&$.jsx(Td,{})]})},OYe=["views","format"],vne=(e,t)=>{let{views:n,format:r}=t,i=Ge(t,OYe);if(r)return r;const o=[],a=[];if(n.forEach(u=>{Jm(u)?a.push(u):o.push(u)}),a.length===0)return Qy(e,L({views:o},i),!1);if(o.length===0)return HT(e,L({views:a},i));const s=HT(e,L({views:a},i));return`${Qy(e,L({views:o},i),!1)} ${s}`},vYe=(e,t,n)=>n?t.filter(r=>!Vc(r)||r==="hours"):e?[...t,"meridiem"]:t,EYe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Ene({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=L({hours:1,minutes:5,seconds:5},n),a=EYe(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:vYe(t,r,a)}}const Sne=N.forwardRef(function(t,n){var r,i,o,a,s,l,u;const c=Fi(),d=Rn(),p=mne(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:h,thresholdToRenderTimeInASingleColumn:m,views:y,timeSteps:O}=Ene(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"]:[],A=L({},p,{viewRenderers:v,format:vne(d,p),views:y,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:S,timeSteps:O,thresholdToRenderTimeInASingleColumn:m,shouldRenderTimeInASingleColumn:h,slots:L({field:fne,openPickerIcon:Gte},p.slots),slotProps:L({},p.slotProps,{field:E=>{var M;return L({},Yd((M=p.slotProps)==null?void 0:M.field,E),Pg(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}=w$({props:A,valueManager:$i,valueType:"date-time",getOpenDialogAriaText:(l=(u=A.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:yx});return w()});Sne.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:og,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 Tne=N.forwardRef(function(t,n){var r,i,o,a,s;const l=Fi(),u=Rn(),c=mne(t,"MuiMobileDateTimePicker"),d=L({day:Gs,month:Gs,year:Gs,hours:im,minutes:im,seconds:im},c.viewRenderers),p=(r=c.ampmInClock)!=null?r:!1,h=L({},c,{viewRenderers:d,format:vne(u,c),ampmInClock:p,slots:L({field:fne},c.slots),slotProps:L({},c.slotProps,{field:y=>{var O;return L({},Yd((O=c.slotProps)==null?void 0:O.field,y),Pg(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}=x$({props:h,valueManager:$i,valueType:"date-time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:l.openDatePickerDialogue,validator:yx});return m()});Tne.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:og,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 SYe=["desktopModeMediaQuery"],TYe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=O$}=r,o=Ge(r,SYe);return cg(i,{defaultMatches:!0})?$.jsx(Sne,L({ref:n},o)):$.jsx(Tne,L({ref:n},o))}),wYe=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})},kYe=({props:e,inputRef:t})=>{const n=wYe(e),{forwardedProps:r,internalProps:i}=T$(n,"time");return S$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:$i,fieldValueManager:b$,validator:bO,valueType:"time"})},xYe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],CYe=["inputRef"],AYe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],wne=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,xYe),m=a,y=(r=(i=s==null?void 0:s.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:vp,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,CYe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=kYe({props:v,inputRef:b}),{ref:k,onPaste:A,onKeyDown:w,inputMode:E,readOnly:M,clearable:D,onClear:R}=S,B=Ge(S,AYe),{InputProps:U,fieldProps:V}=k$({onClear:R,clearable:D,fieldProps:B,InputProps:B.InputProps,slots:s,slotProps:l,components:u,componentsProps:c});return $.jsx(y,L({ref:n},V,{InputProps:L({},U,{readOnly:M}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:A,onKeyDown:w,ref:k})}))});function _Ye(e){return At("MuiTimePickerToolbar",e)}const Mb=_t("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),RYe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],IYe=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,_Ye,r)},NYe=ke(y$,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DYe=ke(v$,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),kne=ke("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Mb.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Mb.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"}));kne.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 xne=ke("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Mb.ampmLabel}`]:t.ampmLabel},{[`&.${Mb.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%"},{[`& .${Mb.ampmLabel}`]:{fontSize:17}}));xne.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 PYe(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,RYe),h=Rn(),m=Fi(),y=bi(),O=!!(n&&!r&&u.includes("hours")),{meridiemMode:b,handleMeridiemChange:v}=bx(i,n,a),S=E=>n?h.format(E,"hours12h"):h.format(E,"hours24h"),k=t,A=IYe(L({},k,{theme:y})),w=$.jsx(DYe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:A.separator});return $.jsxs(NYe,L({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:k,className:A.root},p,{children:[$.jsxs(kne,{className:A.hourMinuteLabel,ownerState:k,children:[hh(u,"hours")&&$.jsx(Qa,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:i?S(i):"--"}),hh(u,["hours","minutes"])&&w,hh(u,"minutes")&&$.jsx(Qa,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:i?h.format(i,"minutes"):"--"}),hh(u,["minutes","seconds"])&&w,hh(u,"seconds")&&$.jsx(Qa,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:i?h.format(i,"seconds"):"--"})]}),O&&$.jsxs(xne,{className:A.ampmSelection,ownerState:k,children:[$.jsx(Qa,{disableRipple:!0,variant:"subtitle2",selected:b==="am",typographyClassName:A.ampmLabel,value:Sl(h,"am"),onClick:d?void 0:()=>v("am"),disabled:c}),$.jsx(Qa,{disableRipple:!0,variant:"subtitle2",selected:b==="pm",typographyClassName:A.ampmLabel,value:Sl(h,"pm"),onClick:d?void 0:()=>v("pm"),disabled:c})]})]}))}function Cne(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:mO(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return L({},l,{ampm:u,localeText:c},p$({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:PYe},d),slotProps:L({},p,{toolbar:L({ampm:u,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Ane=N.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Fi(),c=Rn(),d=Cne(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:h,timeSteps:m}=Ene(d),y=p?One:AI,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)===AI.name?h:h.filter(E=>E!=="meridiem"),A=L({},d,{ampmInClock:b,timeSteps:m,viewRenderers:O,format:HT(c,d),views:p?["hours"]:k,slots:L({field:wne,openPickerIcon:mVe},d.slots),slotProps:L({},d.slotProps,{field:E=>{var M;return L({},Yd((M=d.slotProps)==null?void 0:M.field,E),Pg(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}=w$({props:A,valueManager:$i,valueType:"time",getOpenDialogAriaText:(s=(l=A.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:u.openTimePickerDialogue,validator:bO});return w()});Ane.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:og,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 _ne=N.forwardRef(function(t,n){var r,i,o,a;const s=Fi(),l=Rn(),u=Cne(t,"MuiMobileTimePicker"),c=L({hours:im,minutes:im,seconds:im},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,p=L({},u,{ampmInClock:d,viewRenderers:c,format:HT(l,u),slots:L({field:wne},u.slots),slotProps:L({},u.slotProps,{field:m=>{var y;return L({},Yd((y=u.slotProps)==null?void 0:y.field,m),Pg(u),{ref:n})},toolbar:L({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=x$({props:p,valueManager:$i,valueType:"time",getOpenDialogAriaText:(o=(a=p.localeText)==null?void 0:a.openTimePickerDialogue)!=null?o:s.openTimePickerDialogue,validator:bO});return h()});_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:og,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 LYe=["desktopModeMediaQuery"],MYe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=O$}=r,o=Ge(r,LYe);return cg(i,{defaultMatches:!0})?$.jsx(Ane,L({ref:n},o)):$.jsx(_ne,L({ref:n},o))});var _$={},$Ye=na;Object.defineProperty(_$,"__esModule",{value:!0});var Rne=_$.default=void 0,FYe=$Ye(ra()),BYe=$;Rne=_$.default=(0,FYe.default)((0,BYe.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 R$={},UYe=na;Object.defineProperty(R$,"__esModule",{value:!0});var Ine=R$.default=void 0,jYe=UYe(ra()),zYe=$;Ine=R$.default=(0,jYe.default)((0,zYe.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 _I(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 XYe(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 KYe(e,t){return VYe(e)||YYe(e,t)||Nne(e,t)||GYe()}function zd(e){return HYe(e)||QYe(e)||Nne(e)||qYe()}function JYe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Nne(e,t){if(e){if(typeof e=="string")return _I(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 _I(e,t)}}var eGe=N.createContext({onError:function(e){return e==null?void 0:e.message}}),ys=function(){var e;return(e=N.useContext(eGe))===null||e===void 0?void 0:e.onError};function _a(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=Aa({name:s,control:l,disabled:h.disabled,rules:O}),v=b.field,S=b.fieldState,k=S.error,A=_a({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=A.value,E=A.onChange,M=yn(v.ref,d);return $.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:M}))});Dne.displayName="TextFieldElement";var Pne=Dne;function tGe(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,a=e.onError,s=yo(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"),$.jsx(Tte,Cn(zt({},i),{children:$.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}))}))):$.jsx(nGe,zt({onSuccess:o,onError:a,FormProps:r,children:n},s))}function nGe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=yo(e,["onSuccess","onError","FormProps","children"]),a=Pze(zt({},o)),s=a.handleSubmit;return $.jsx(Tte,Cn(zt({},a),{children:$.jsx("form",Cn(zt({onSubmit:s(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Lne={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"},rGe=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=yo(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),y=Ul(),O=ys(),b=n||O,v=zt({},Lne,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=Rp({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=Aa({name:r,control:l,rules:S,disabled:m.disabled,defaultValue:null}),A=k.field,w=k.fieldState,E=w.error,M=_a({value:A.value,onChange:A.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=M.value,R=M.onChange,B=yn(A.ref,p),U=E?typeof b=="function"?b(E):E.message:null;return $.jsx(JWe,Cn(zt({},m,A),{value:D,ref:t,inputRef:B,onClose:function(){for(var V=arguments.length,z=new Array(V),Q=0;Q"u"?"undefined":JYe(V))<"u"&&(S.InputLabelProps=S.InputLabelProps||{},S.InputLabelProps.shrink=!0),$.jsxs(vp,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 A=="function"?A(B):B.message:S.helperText,inputRef:Q,children:[w&&$.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:ba(X,"disabled")?!!X.disabled:!1,children:X[l]};return w?$.jsx("option",zt({},Y)):$.jsx(op,zt({},Y))})]}))});cGe.displayName="SelectElement";var dGe=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,A=k===void 0?[]:k,w=yo(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),E=bi(),M=ys(),D=a||M,R=Aa({name:o,rules:s?{required:"This field is required"}:b,disabled:h,control:y,defaultValue:A}),B=R.field,U=R.fieldState,V=U.error,z=U.invalid,Q=_a({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=ba(j,d)?j[d]:j,Ee=X.findIndex(function(ue){var ge=ba(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||!ba(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 $.jsxs(Op,{error:z,required:s,ref:t,children:[i?$.jsx(uk,{children:i}):null,$.jsx(OD,{row:m,children:r.map(function(j){var le=ba(j,d)?j[d]:j,Ee=ba(j,u)?j[u]:j,G=X.some(function(ue){return(ba(ue,d)?ue[d]:ue)===le});return N.createElement(ly,Cn(zt({},v),{control:$.jsx(ak,{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&&$.jsx(ug,{children:q})]})});dGe.displayName="CheckboxButtonGroup";var fGe=48,pGe=8,hGe=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,A=e.name,w=e.menuMaxHeight,E=w===void 0?fGe*4.5+pGe:w,M=e.menuMaxWidth,D=M===void 0?250:M,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=yo(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),le=ys(),Ee=k||le,G=function($e){var Ve,dt;return(dt=(Ve=s.find(function(Be){var re;return((re=Be[h||d])!==null&&re!==void 0?re:Be)===$e}))===null||Ve===void 0?void 0:Ve[y])!==null&&dt!==void 0?dt:$e},ue=zt({},S,b&&!S.required&&{required:"This field is required"}),ge=Aa({name:A,rules:ue,disabled:j.disabled,control:Q}),he=ge.field,Ne=ge.fieldState,Le=Ne.error,qe=_a({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,We=yn(he.ref,Y),ye=Le?typeof Ee=="function"?Ee(Le):Le.message:U,ze;return $.jsxs(Op,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&&$.jsx(BQ,{size:j.size==="small"?"small":void 0,error:!!Le,htmlFor:j.id||"select-multi-select-".concat(A),required:b,children:u}),$.jsx(KQ,Cn(zt({},j),{id:j.id||"select-multi-select-".concat(A),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},ba((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 $.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(z?s.filter(function(Ve){return $e.includes(Ve)}):$e||[]).map(function(Ve){return $.jsx(mD,{label:G(Ve),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Me((Array.isArray(rt)?rt:[]).filter(function(dt){return dt!==Ve}))},deleteIcon:$.jsx(Rne,{onMouseDown:function(dt){dt.stopPropagation()}})},Ve)})})}:function($e){return Array.isArray($e)?$e.map(G).join(", "):""},inputRef:We,children:s.map(function($e){var Ve=$e[h||d]||$e,dt=Array.isArray(rt)?rt.some(function(Be){return Be===Ve}):!1;return $.jsxs(op,{value:Ve,sx:{fontWeight:function(Be){return dt?Be.typography.fontWeightBold:Be.typography.fontWeightRegular}},children:[X&&$.jsx(ak,{checked:dt}),$.jsx(Fm,{primary:$e[y]||$e})]},Ve)})})),ye&&$.jsx(ug,{error:!!Le,children:ye})]}))});hGe.displayName="MultiSelectElement";var Mne=N.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?$.jsx(WD,{}):$.jsx(Ine,{})}:r,o=yo(e,["iconColor","renderIcon"]),a=KYe(N.useState(!0),2),s=a[0],l=a[1];return $.jsx(Pne,Cn(zt({},o),{ref:t,InputProps:{endAdornment:$.jsx(vD,{position:"end",children:$.jsx(bs,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!s)},tabIndex:-1,color:n??"default",children:i(s)})})},type:s?"password":"text"}))});Mne.displayName="PasswordElement";var mGe=Mne,gGe=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,A=yo(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),w=bi(),E=ys(),M=a||E,D=Aa({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=_a({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 M=="function"?M(U):U.message:n,Z=function(Y,q){var j=h?r.find(function(le){return le[c]===q}):q;Q(Y,j),typeof A.onChange=="function"&&A.onChange(j)};return $.jsxs(Op,{error:!!U,ref:t,children:[i&&$.jsx(uk,Cn(zt({},S),{required:d,error:!!U,children:i})),$.jsxs(B1e,{onChange:Z,name:o,row:m,value:z,children:[p&&$.jsx(ly,Cn(zt({},b),{control:$.jsx(a8,{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(ly,Cn(zt({},b),{control:$.jsx(a8,{sx:{color:U?w.palette.error.main:void 0},disabled:v,checked:le}),value:q,label:Y[l],key:q}))})]}),X&&$.jsx(ug,{children:X})]})});gGe.displayName="RadioButtonGroup";var bGe=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,a=yo(e,["name","control","switchProps","transform"]),s=Aa({name:n,control:r,disabled:a.disabled}),l=s.field,u=_a({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 $.jsx(ly,zt({ref:t,control:$.jsx(LOe,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))});bGe.displayName="SwitchElement";var yGe=N.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=yo(e,["passwordFieldName","customInvalidFieldMessage","control"]),a=Ate({name:n,control:i});return $.jsx(mGe,Cn(zt({control:i},o),{ref:t,validation:{validate:function(s){return s===a||(r??"Password should match")}}}))});yGe.displayName="PasswordRepeatElement";var OGe=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=ys(),v=m||b,S=zt({},u,d&&{required:(u==null?void 0:u.required)||"This field is required"}),k=Aa({name:i,control:o,disabled:r==null?void 0:r.disabled,rules:S}),A=k.field,w=k.fieldState,E=w.error,M=function(Z){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(Z):ba(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=ba(Z,"id")?Z.id:Z,j=ba(Y,"id")?Y.id:Y;return q===j},R=function(Z){return a.find(function(Y){return O&&ba(Y,"id")?Y.id===Z:D(Y,Z)})},B=_a({value:A.value,onChange:A.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 ba(j,"id")?j.id:j}):q}return O&&ba(Y,"id")?Y.id:Y}}}),U=B.value,V=B.onChange,z=yn(A.ref,n==null?void 0:n.inputRef),Q=c||$.jsx(C1,{color:"inherit",size:20}),X;return $.jsx(Xhe,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:M,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 $.jsxs("li",Cn(zt({},Z),{children:[$.jsx(ak,{sx:{marginRight:1},checked:j}),M(Y)]}))}:void 0,onBlur:function(Z){A.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(Z)},renderInput:function(Z){return $.jsx(vp,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:$.jsxs($.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}))}}))});OGe.displayName="AutocompleteElement";var vGe=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=yo(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=ys(),h=s||p,m=zt({},a,l&&!a.required&&{required:"This field is required"}),y=Aa({name:n,control:r,disabled:d.disabled,rules:m}),O=y.field,b=y.fieldState,v=b.error,S=b.invalid,k=_a({value:O.value,onChange:O.onChange,transform:c}),A=k.value,w=k.onChange,E=v?typeof h=="function"?h(v):v.message:null;return $.jsxs(Op,Cn(zt({error:S,required:l,fullWidth:!0},u),{ref:t,children:[i&&$.jsx(uk,{component:"legend",error:S,children:i}),$.jsx(gOe,Cn(zt({},d),{value:A,onChange:w,valueLabelDisplay:d.valueLabelDisplay||"auto"})),E&&$.jsx(ug,{error:S,children:E})]}))});vGe.displayName="SliderElement";var EGe=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=yo(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),m=ys(),y=i||m,O=zt({},r,o&&!r.required&&{required:"This field is required"}),b=Aa({name:a,control:s,rules:O,disabled:h.disabled}),v=b.field,S=b.fieldState,k=S.error,A=_a({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=A.value,E=A.onChange,M=yn(v.ref,c);return $.jsx(vp,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:M,multiline:!0,InputProps:{inputComponent:wQ,inputProps:zt({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});EGe.displayName="TextareaAutosizeElement";var I$={},SGe=na;Object.defineProperty(I$,"__esModule",{value:!0});var $ne=I$.default=void 0,TGe=SGe(ra()),wGe=$;$ne=I$.default=(0,TGe.default)((0,wGe.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 Fne(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 $.jsx(lk,{disableAutoFocus:!0,...r,children:$.jsxs(gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[$.jsx(bs,{sx:{position:"absolute",top:28,right:28},onClick:i,children:$.jsx($ne,{})}),$.jsxs(Fs,{gap:4,children:[$.jsxs(mi,{variant:"h5",children:["Create New ",t]}),$.jsx(Op,{children:$.jsx(tGe,{defaultValues:{title:""},onSuccess:o,children:$.jsxs(Fs,{gap:4,alignItems:"flex-end",children:[$.jsx(Pne,{variant:"standard",name:"title",label:"Title of new note",required:!0,fullWidth:!0,inputProps:{maxLength:255}}),$.jsx(Af,{type:"submit",variant:"contained",size:"large",children:"OK"})]})})})]})]})})}function kGe(e){const{width:t,...n}=e,r=P1(),i=L1(),{data:o,hasNextPage:a,fetchNextPage:s}=uze(),{mutateAsync:l}=cze(),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 $.jsxs($.Fragment,{children:[$.jsx(ED,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:$.jsxs(A1,{sx:{width:t},children:[$.jsx(as,{style:{maxHeight:300,overflow:"auto"},children:$.jsx(FT,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:$.jsx(as,{className:"loader",children:$.jsx(C1,{size:"sm"})},0),useWindow:!1,children:u==null?void 0:u.map(O=>$.jsxs(op,{onClick:()=>h(O.slug),children:[$.jsx(Fm,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:O.title}),i.workspaceSlug===O.slug&&$.jsx(US,{children:$.jsx(yte,{fontSize:"small"})})]},O.id))})}),$.jsx(Td,{}),$.jsxs(op,{onClick:m,children:[$.jsx(zQ,{children:$.jsx(Sk,{fontSize:"small"})}),$.jsx(Fm,{children:"Create Workspace"})]})]})}),$.jsx(Fne,{open:c,title:"Workspace",onClose:m,onSuccess:y})]})}const Bne=e=>["workspaces",e,"documents"],xGe=e=>hte({queryKey:Bne(e||""),queryFn:async({pageParam:n})=>(await fr.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}),CGe=e=>{const t=r$();return pte({mutationFn:async n=>(await fr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Bne(e)})}})},r2=240;function AGe(){var O,b;const e=L1(),t=Tc(Zee),{data:n}=mte(e.workspaceSlug),{mutateAsync:r}=CGe((n==null?void 0:n.id)||""),[i,o]=N.useState(null),[a,s]=N.useState(null),[l,u]=N.useState(!1),c=v=>{o(v.currentTarget)},d=()=>{o(null)},p=v=>{s(v.currentTarget)},h=()=>{s(null)},m=async v=>{await r(v)},y=()=>{u(v=>!v)};return $.jsxs(A0e,{sx:{width:r2,flexShrink:0,"& .MuiDrawer-paper":{width:r2,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[$.jsxs(vE,{disablePadding:!0,children:[$.jsxs(ZB,{onClick:p,children:[$.jsx(Fm,{primary:n==null?void 0:n.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),$.jsx(US,{children:$.jsx(bs,{children:a?$.jsx(bte,{}):$.jsx(gte,{})})})]}),$.jsx(kGe,{open:!!a,anchorEl:a,onClose:h,width:r2-32})]}),$.jsx(Td,{}),$.jsx(vE,{children:$.jsx(Af,{variant:"contained",startIcon:$.jsx(Sk,{}),sx:{width:1},onClick:y,children:"New Note"})}),$.jsx(Td,{}),$.jsxs(as,{sx:{mt:"auto"},children:[$.jsx(Td,{}),$.jsxs(vE,{disablePadding:!0,children:[$.jsxs(ZB,{onClick:c,children:[$.jsx(Eye,{children:$.jsx(sme,{children:(O=t.data)==null?void 0:O.nickname.charAt(0)})}),$.jsx(Fm,{primary:(b=t.data)==null?void 0:b.nickname}),$.jsx(US,{children:$.jsx(Xee,{})})]}),$.jsx(Aje,{open:!!i,anchorEl:i,onClose:d})]})]}),$.jsx(Fne,{open:l,title:"Note",onSuccess:m,onClose:y})]})}//! moment.js +`));const t=N.useMemo(()=>L({},hVe,e.localeText),[e.localeText]);return N.useMemo(()=>L({},e,{localeText:t}),[e,t])},Rn=()=>Ul().utils,_p=()=>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 Kte(e){return At("MuiPickersToolbar",e)}_t("MuiPickersToolbar",["root","content"]);const mVe=e=>{const{classes:t,isLandscape:n}=e;return Ct({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Kte,t)},gVe=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"})),bVe=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"}}),O$=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=mVe(u);return s?null:$.jsxs(gVe,{ref:n,className:et(c.root,o),ownerState:u,children:[$.jsx(mi,{color:"text.secondary",variant:"overline",id:l,children:a}),$.jsx(bVe,{className:c.content,ownerState:u,children:i})]})});function yVe(e){return At("MuiDatePickerToolbar",e)}_t("MuiDatePickerToolbar",["root","title"]);const OVe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],vVe=e=>{const{classes:t}=e;return Ct({root:["root"],title:["title"]},yVe,t)},EVe=ke(O$,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SVe=ke(mi,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>L({},e.isLandscape&&{margin:"auto 16px auto auto"})),TVe=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,OVe),c=Rn(),d=Fi(),p=vVe(r),h=N.useMemo(()=>{if(!i)return s;const y=Gy(c,{format:a,views:l},!0);return c.formatByString(i,y)},[i,a,s,c,l]),m=r;return $.jsx(EVe,L({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:p.root},u,{children:$.jsx(SVe,{variant:"h4",align:o?"left":"center",ownerState:m,className:p.title,children:h})}))}),mO=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 Jte(e,t){var n,r,i,o;const a=Rn(),s=_p(),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:mO(l.components);return L({},l,{localeText:u},h$({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:Lo(a,l.minDate,s.minDate),maxDate:Lo(a,l.maxDate,s.maxDate),slots:L({toolbar:TVe},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const wVe=Ti($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),kVe=Ti($.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),xVe=Ti($.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),ene=Ti($.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"),CVe=Ti($.jsxs(N.Fragment,{children:[$.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"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),AVe=Ti($.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"),_Ve=Ti($.jsxs(N.Fragment,{children:[$.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"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),RVe=Ti($.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 IVe(e){return At("MuiPickersArrowSwitcher",e)}_t("MuiPickersArrowSwitcher",["root","spacer","button"]);const NVe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],DVe=["ownerState"],PVe=["ownerState"],LVe=ke("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),MVe=ke("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Uz=ke(bs,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>L({},e.hidden&&{visibility:"hidden"})),$Ve=e=>{const{classes:t}=e;return Ct({root:["root"],spacer:["spacer"],button:["button"]},IVe,t)},tne=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:v,nextLabel:b,isPreviousDisabled:O,isPreviousHidden:S,onGoToPrevious:k,previousLabel:A}=u,w=Ge(u,NVe),E=u,M=$Ve(E),D={isDisabled:m,isHidden:y,goTo:v,label:b},R={isDisabled:O,isHidden:S,goTo:k,label:A},B=(r=p==null?void 0:p.previousIconButton)!=null?r:Uz,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:M.button}),V=(i=p==null?void 0:p.nextIconButton)!=null?i:Uz,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:M.button}),Q=(o=p==null?void 0:p.leftArrowIcon)!=null?o:kVe,X=kn({elementType:Q,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Z=Ge(X,DVe),Y=(a=p==null?void 0:p.rightArrowIcon)!=null?a:xVe,q=kn({elementType:Y,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=Ge(q,PVe);return $.jsxs(LVe,L({ref:n,className:et(M.root,d),ownerState:E},w,{children:[$.jsx(B,L({},U,{children:l?$.jsx(Y,L({},j)):$.jsx(Q,L({},Z))})),c?$.jsx(mi,{variant:"subtitle1",component:"span",children:c}):$.jsx(MVe,{className:M.spacer,ownerState:E}),$.jsx(V,L({},z,{children:l?$.jsx(Q,L({},Z)):$.jsx(Y,L({},j))}))]}))}),Zy=36,mx=2,gx=320,FVe=280,bx=334,nne=232,X0=48,BVe=ke(r0e)({[`& .${hb.container}`]:{outline:0},[`& .${hb.paper}`]:{outline:0,minWidth:gx}}),UVe=ke(b0e)({"&:first-of-type":{padding:0}});function jVe(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:BVe,u=(n=a==null?void 0:a.mobileTransition)!=null?n:ug;return $.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:$.jsx(UVe,{children:r})}))}function zVe(e){return At("MuiPickersPopper",e)}_t("MuiPickersPopper",["root","paper"]);function mh(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const VVe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},WT=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?WT(t.shadowRoot):t:null},v$="@media (pointer: fine)",HVe="@media (prefers-reduced-motion: reduce)",im=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),jz=im&&im[1]?parseInt(im[1],10):null,zz=im&&im[2]?parseInt(im[2],10):null,WVe=jz&&jz<10||zz&&zz<13||!1,rne=()=>dg(HVe,{defaultMatches:!1})||WVe,QVe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],YVe=e=>{const{classes:t}=e;return Ct({root:["root"],paper:["paper"]},zVe,t)},GVe=ke(A1,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),qVe=ke(gs,{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 ZVe(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&&ZVe(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 KVe=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,QVe),d=L({},i,{placement:r}),p=kn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return $.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 JVe(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:v,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 O=N.useRef(null);N.useEffect(()=>{h==="tooltip"||u&&!u()||(p?O.current=WT(document):O.current&&O.current instanceof HTMLElement&&setTimeout(()=>{O.current instanceof HTMLElement&&O.current.focus()}))},[p,h,u]);const[S,k,A]=XVe(p,c??d),w=N.useRef(null),E=yn(w,l),M=yn(E,S),D=o,R=YVe(D),B=rne(),U=b??B,V=q=>{q.key==="Escape"&&(q.stopPropagation(),d())},z=((t=y==null?void 0:y.desktopTransition)!=null?t:U)?ug:FS,Q=(n=y==null?void 0:y.desktopTrapFocus)!=null?n:bQ,X=(r=y==null?void 0:y.desktopPaper)!=null?r:qVe,Z=(i=y==null?void 0:y.popper)!=null?i:GVe,Y=kn({elementType:Z,externalSlotProps:v==null?void 0:v.popper,additionalProps:{transition:!0,role:h,open:p,anchorEl:a,placement:m,onKeyDown:V},className:R.root,ownerState:o});return $.jsx(Z,L({},Y,{children:({TransitionProps:q,placement:j})=>$.jsx(Q,L({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},v==null?void 0:v.desktopTrapFocus,{children:$.jsx(z,L({},q,v==null?void 0:v.desktopTransition,{children:$.jsx(KVe,{PaperComponent:X,ownerState:D,popperPlacement:j,ref:M,onPaperClick:k,onPaperTouchStart:A,paperClasses:R.paper,paperSlotProps:v==null?void 0:v.desktopPaper,children:s})}))}))}))}function eHe(e){return At("MuiPickersToolbarText",e)}const Vz=_t("MuiPickersToolbarText",["root","selected"]),tHe=["className","selected","value"],nHe=e=>{const{classes:t,selected:n}=e;return Ct({root:["root",n&&"selected"]},eHe,t)},rHe=ke(mi,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Vz.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${Vz.selected}`]:{color:(e.vars||e).palette.text.primary}})),E$=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Ge(r,tHe),s=nHe(r);return $.jsx(rHe,L({ref:n,className:et(i,s.root),component:"span"},a,{children:o}))}),iHe=["align","className","selected","typographyClassName","value","variant","width"],oHe=e=>{const{classes:t}=e;return Ct({root:["root"]},Kte,t)},aHe=ke(Af,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Qa=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,iHe),p=oHe(r);return $.jsx(aHe,L({variant:"text",ref:n,className:et(o,p.root)},c?{sx:{width:c}}:{},d,{children:$.jsx(E$,{align:i,className:s,variant:u,value:l,selected:a})}))}),S$=({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,...v)=>{const b=d(y);r==null||r(b,...v)});return{value:h,handleValueChange:m,timezone:p}},Lg=({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 S$({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})};function ine(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 sHe=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:v="dense",selectedSections:b,onSelectedSectionsChange:O,shouldRespectLeadingZeros:S=!1,timezone:k}}=e,{timezone:A,value:w,handleValueChange:E}=S$({timezone:k,value:d,defaultValue:p,onChange:m,valueManager:a}),M=N.useMemo(()=>sVe(t,A),[t,A]),D=N.useCallback((ue,ge=null)=>s.getSectionsFromValue(t,ue,ge,o,he=>$z(t,A,n,y,he,v,S,o)),[s,y,n,o,S,t,v,A]),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=Jze(ue),Ne=a.getInitialReferenceValue({referenceDate:h,value:w,utils:t,props:c,granularity:he,timezone:A});return L({},ge,{referenceValue:Ne})}),[V,z]=qi({controlled:b,default:null,name:"useField",state:"selectedSectionIndexes"}),Q=ue=>{z(ue),O==null||O(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:A})})};E(ue,Ne)},Y=(ue,ge)=>{const he=[...B.sections];return he[ue]=L({},he[ue],{value:ge,modified:!0}),Yte(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=$z(t,A,n,y,rt,v,S,o);return Bz(t,A,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:M,placeholder:R,timezone:A}},lHe=5e3,rh=e=>e.saveQuery!=null,uHe=({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(),lHe);return()=>{window.clearTimeout(h)}}return()=>{}},[a,l]);const u=({keyPressed:h,sectionIndex:m},y,v)=>{const b=h.toLowerCase(),O=e[m];if(a!=null&&(!v||v(a.value))&&a.sectionIndex===m){const k=`${a.value}${b}`,A=y(k,O);if(!rh(A))return s({sectionIndex:m,value:k,sectionType:O.type}),A}const S=y(b,O);return rh(S)&&!S.saveQuery?(l(),null):(s({sectionIndex:m,value:b,sectionType:O.type}),rh(S)?null:S)},c=h=>{const m=(b,O,S)=>{const k=O.filter(A=>A.toLowerCase().startsWith(S));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},y=(b,O,S,k)=>{const A=w=>Hte(o,i,O.type,w);if(O.contentType==="letter")return m(O.format,A(O.format),b);if(S&&k!=null&&Vte(o,S).contentType==="letter"){const w=A(S),E=m(S,w,b);return rh(E)?{saveQuery:!1}:L({},E,{sectionValue:k(E.sectionValue,w)})}return{saveQuery:!1}};return u(h,(b,O)=>{switch(O.type){case"month":{const S=k=>Mz(o,k,o.formats.month,O.format);return y(b,O,o.formats.month,S)}case"weekDay":{const S=(k,A)=>A.indexOf(k).toString();return y(b,O,o.formats.weekday,S)}case"meridiem":return y(b,O);default:return{saveQuery:!1}}})},d=h=>{const m=(v,b)=>{const O=+`${v}`,S=n[b.type]({currentDate:null,format:b.format,contentType:b.contentType});if(O>S.maximum)return{saveQuery:!1};if(OS.maximum||v.length===S.maximum.toString().length;return{sectionValue:Qte(o,i,O,S,b),shouldGoToNextSection:k}};return u(h,(v,b)=>{if(b.contentType==="digit"||b.contentType==="digit-with-letter")return m(v,b);if(b.type==="month"){const O=qte(o,i,"digit","month","MM"),S=m(v,{type:b.type,format:"MM",hasLeadingZerosInFormat:O,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(rh(S))return S;const k=Mz(o,S.sectionValue,"MM",b.format);return L({},S,{sectionValue:k})}if(b.type==="weekDay"){const O=m(v,b);if(rh(O))return O;const S=hx(o,i,b.format)[Number(O.sectionValue)-1];return L({},O,{sectionValue:S})}return{saveQuery:!1}},v=>!Number.isNaN(Number(v)))};return{applyCharacterEditing:jt(h=>{const m=e[h.sectionIndex],v=!Number.isNaN(Number(h.keyPressed))?d(h):c(h);v==null?r(null):t({activeSection:m,newSectionValue:v.sectionValue,shouldGoToNextSection:v.shouldGoToNextSection})}),resetCharacterQuery:l}},cHe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],T$=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}=sHe(e),{inputRef:h,internalProps:m,internalProps:{readOnly:y=!1,unstableFieldRef:v,minutesStep:b},forwardedProps:{onClick:O,onKeyDown:S,onFocus:k,onBlur:A,onMouseUp:w,onPaste:E,error:M,clearable:D,onClear:R,disabled:B},fieldValueManager:U,valueManager:V,validator:z}=e,Q=Ge(e.forwardedProps,cHe),{applyCharacterEditing:X,resetCharacterQuery:Z}=uHe({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(()=>cVe(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()||(O==null||O(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)=>{A==null||A(...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=Fh(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=Fh(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-Fh(nt.endSeparator||"").length;de=ie.slice(nt.start+Fh(nt.startSeparator||"").length,kt)}if(de.length===0){uVe()?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=nVe(t,p,J,ee.key,c,_e.date,{minutesStep:b});s({activeSection:J,newSectionValue:Pe,shouldGoToNextSection:!1});break}}});Zr(()=>{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===WT(document)&&Y.current.setSelectionRange(_e,Pe),Y.current.scrollTop=Ie}});const Qe=ine(L({},m,{value:n.value,timezone:p}),z,V.isSameError,V.defaultErrorState),ye=N.useMemo(()=>M!==void 0?M:V.hasError(Qe),[V,Qe,M]);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===WT(document),dt=V.areValuesEqual(t,n.value,V.emptyValue),Be=!He&&dt;N.useImperativeHandle(v,()=>({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)})},dHe=({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}},fHe=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},pHe=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},hHe=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},mHe=({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(),v=Ul(),[b,O]=qi({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:S,setIsOpen:k}=dHe(e),[A,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:M}=S$({timezone:p,value:s,defaultValue:h,onChange:a,valueManager:t});ine(L({},e,{value:A.draft,timezone:E}),i,t.isSameError,t.defaultErrorState);const D=jt(Ne=>{const Le={action:Ne,dateState:A,hasChanged:Qe=>!t.areValuesEqual(y,Ne.value,Qe),isControlled:m,closeOnSelect:u},qe=fHe(Le),rt=pHe(Le),Me=hHe(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:v,value:Ne.value,props:L({},e,{value:Ne.value,timezone:E})})};Ne.name==="setValueFromShortcut"&&Ne.shortcut!=null&&(ye.shortcut=Ne.shortcut),M(Ne.value,ye)}rt&&o&&o(Ne.value),Me&&k(!1)});if(s!==void 0&&(A.lastControlledValue===void 0||!t.areValuesEqual(y,A.lastControlledValue,s))){const Ne=t.areValuesEqual(y,A.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:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=jt(()=>{D({value:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),V=jt(()=>{D({value:A.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=>{O(Ne),d==null||d(Ne)}),le={onClear:R,onAccept:B,onDismiss:U,onCancel:V,onSetToday:z,onOpen:Q,onClose:X},Ee={value:A.draft,onChange:q,selectedSections:b,onSelectedSectionsChange:j},G=N.useMemo(()=>t.cleanValue(y,A.draft),[y,t,A.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:v,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 gO({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),[v,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 O=i.indexOf(h),S=(l=i[O-1])!=null?l:null,k=(u=i[O+1])!=null?u:null,A=jt((D,R)=>{b(R?D:B=>D===B?null:B),s==null||s(D,R)}),w=jt(D=>{A(D,!0),D!==h&&(m(D),t&&t(D))}),E=jt(()=>{k&&w(k)}),M=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,gHe),{view:v,setView:b,defaultView:O,focusedView:S,setFocusedView:k,setValueAndGoToNextView:A}=gO({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]),M=N.useMemo(()=>u.reduce((z,Q)=>h[Q]!=null&&eg(Q)?z+1:z,0),[h,u]),D=E[v],R=jt(()=>D==="UI"),[B,U]=N.useState(D==="UI"?v:null);return B!==v&&E[v]==="UI"&&U(v),Zr(()=>{D==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(v)}))},[v]),Zr(()=>{if(!a)return;let z=v;D==="field"&&B!=null&&(z=B),z!==O&&E[z]==="UI"&&E[O]==="UI"&&(z=O),z!==v&&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:A,view:B,onViewChange:b,focusedView:S,onFocusedViewChange:k,showViewSwitcher:M>1,timeViewsCount:M}))}}};function Hz(){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 yHe=(e,t)=>{const[n,r]=N.useState(Hz);return Zr(()=>{const o=()=>{r(Hz())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),mh(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},OHe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=yHe(n.views,i);return{layoutProps:L({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},vHe=(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))}};vHe(["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 one=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:a,autoFocusView:s})=>{const l=mHe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=bHe({props:e,inputRef:i,additionalViewProps:o,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=OHe({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 ane(e){return At("MuiPickersLayout",e)}const n2=_t("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),EHe=["onAccept","onClear","onCancel","onSetToday","actions"];function SHe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Ge(e,EHe),s=Fi();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return $.jsx(Af,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return $.jsx(Af,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return $.jsx(Af,{onClick:t,children:s.okButtonLabel},u);case"today":return $.jsx(Af,{onClick:i,children:s.todayButtonLabel},u);default:return null}});return $.jsx(u0e,L({},a,{children:l}))}const THe=["items","changeImportance","isLandscape","onChange","isValid"],wHe=["getValue"];function kHe(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=Ge(e,THe);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=Ge(s,wHe);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return $.jsx(QQ,L({dense:!0,sx:[{maxHeight:bx,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>$.jsx(j0,{children:$.jsx(mD,L({},s))},s.label))}))}function xHe(e){return e.view!==null}const CHe=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"]},ane,t)},AHe=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:v,readOnly:b,children:O,components:S,componentsProps:k,slots:A,slotProps:w}=e,E=A??mO(S),M=w??k,D=CHe(e),R=(t=E==null?void 0:E.actionBar)!=null?t:SHe,B=kn({elementType:R,externalSlotProps:M==null?void 0:M.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:D.actionBar},ownerState:L({},e,{wrapperVariant:r})}),U=$.jsx(R,L({},B)),V=E==null?void 0:E.toolbar,z=kn({elementType:V,externalSlotProps:M==null?void 0:M.toolbar,additionalProps:{isLandscape:y,onChange:p,value:d,view:l,onViewChange:c,views:u,disabled:v,readOnly:b,className:D.toolbar},ownerState:L({},e,{wrapperVariant:r})}),Q=xHe(z)&&V?$.jsx(V,L({},z)):null,X=O,Z=E==null?void 0:E.tabs,Y=l&&Z?$.jsx(Z,L({view:l,onViewChange:c},M==null?void 0:M.tabs)):null,q=(n=E==null?void 0:E.shortcuts)!=null?n:kHe,j=kn({elementType:q,externalSlotProps:M==null?void 0:M.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?$.jsx(q,L({},j)):null;return{toolbar:Q,content:X,tabs:Y,actionBar:U,shortcuts:le}},_He=e=>{const{isLandscape:t,classes:n}=e;return Ct({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},ane,n)},sne=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",[`& .${n2.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${n2.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${n2.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));sne.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 RHe=ke("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),lne=function(t){const n=gt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=AHe(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:p}=n,h=n,m=_He(h);return $.jsxs(sne,{ref:d,sx:l,className:et(u,m.root),ownerState:h,children:[c?s:r,c?r:s,$.jsx(RHe,{className:m.contentWrapper,children:p==="desktop"?$.jsxs(N.Fragment,{children:[i,o]}):$.jsxs(N.Fragment,{children:[o,i]})}),a]})};function IHe(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 NHe(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=Xze(e,i),a=N.useCallback(s=>{const l=e==null?null:Kze(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const xI=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],CI=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],une=["minDateTime","maxDateTime"],DHe=[...xI,...CI,...une],Mg=e=>DHe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),PHe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],w$=(e,t)=>{const n=L({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return PHe.forEach(i),t==="date"?xI.forEach(i):t==="time"?CI.forEach(i):t==="date-time"&&(xI.forEach(i),CI.forEach(i),une.forEach(i)),{forwardedProps:n,internalProps:r}},Rp=({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=Lo(n.utils,e.minDate,n.defaultDates.minDate),d=Lo(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}},bO=({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=hO(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=Rp({adapter:n,value:t,props:e});return r!==null?r:bO({adapter:n,value:t,props:e})};function LHe(e){return At("MuiPickersDay",e)}const ff=_t("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),MHe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],$He=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"]},LHe,l)},cne=({theme:e,ownerState:t})=>L({},e.typography.caption,{width:Zy,height:Zy,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}`}}),dne=(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]},FHe=ke(us,{name:"MuiPickersDay",slot:"Root",overridesResolver:dne})(cne),BHe=ke("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:dne})(({theme:e,ownerState:t})=>L({},cne({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),R0=()=>{},UHe=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=R0,onBlur:m=R0,onKeyDown:y=R0,onMouseDown:v=R0,onMouseEnter:b=R0,outsideCurrentMonth:O,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:A,today:w=!1}=r,E=Ge(r,MHe),M=L({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:w}),D=$He(M),R=Rn(),B=N.useRef(null),U=yn(B,n);Zr(()=>{i&&!s&&!c&&!O&&B.current.focus()},[i,s,c,O]);const V=Q=>{v(Q),O&&Q.preventDefault()},z=Q=>{s||p(a),O&&Q.currentTarget.focus(),d&&d(Q)};return O&&!k?$.jsx(BHe,{className:et(D.root,D.hiddenDaySpacingFiller,o),ownerState:M,role:E.role}):$.jsx(FHe,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:M,children:A||R.format(a,"dayOfMonth")}))}),jHe=N.memo(UHe),zHe=e=>At("MuiPickersSlideTransition",e),Ts=_t("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),VHe=["children","className","reduceAnimations","slideDirection","transKey","classes"],HHe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ct(r,zHe,t)},WHe=ke(aD,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ts["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ts["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ts.slideEnterActive}`]:t.slideEnterActive},{[`.${Ts.slideExit}`]:t.slideExit},{[`.${Ts["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ts["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},[`& .${Ts["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ts["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ts.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ts.slideExit}`]:{transform:"translate(0%)"},[`& .${Ts["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ts["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function QHe(e){const t=gt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Ge(t,VHe),s=HHe(t),l=bi();if(i)return $.jsx("div",{className:et(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return $.jsx(WHe,{className:et(s.root,r),childFactory:c=>N.cloneElement(c,{classNames:u}),role:"presentation",children:$.jsx(vde,L({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}const fne=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=Ul();return N.useCallback(u=>Rp({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])},YHe=e=>At("MuiDayCalendar",e);_t("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const GHe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],qHe=["ownerState"],ZHe=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"]},YHe,t)},pne=(Zy+mx*2)*6,XHe=ke("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KHe=ke("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),JHe=ke(mi,{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})),eWe=ke(mi,{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})),tWe=ke(mi,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>L({},e.typography.caption,{width:Zy,height:Zy,padding:0,margin:`0 ${mx}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),nWe=ke("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:pne}),rWe=ke(QHe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:pne}),iWe=ke("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),oWe=ke("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${mx}px 0`,display:"flex",justifyContent:"center"});function aWe(e){var t,n,r;let{parentProps:i,day:o,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=Ge(e,GHe);const{disabled:p,disableHighlightToday:h,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:y,components:v,componentsProps:b,slots:O,slotProps:S,timezone:k}=i,A=Rn(),w=ef(k),E=a!==null&&A.isSameDay(o,a),M=s.some(Z=>A.isSameDay(Z,o)),D=A.isSameDay(o,w),R=(t=(n=O==null?void 0:O.day)!=null?n:v==null?void 0:v.Day)!=null?t:jHe,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":A.toJsDate(o).valueOf()},d),ownerState:L({},i,{day:o,selected:M})}),U=Ge(B,qHe),V=N.useMemo(()=>p||l(o),[p,l,o]),z=N.useMemo(()=>A.getMonth(o)!==u,[A,o,u]),Q=N.useMemo(()=>{const Z=A.startOfMonth(A.setMonth(o,u));return y?A.isSameDay(o,A.startOfWeek(Z)):A.isSameDay(o,Z)},[u,o,y,A]),X=N.useMemo(()=>{const Z=A.endOfMonth(A.setMonth(o,u));return y?A.isSameDay(o,A.endOfWeek(Z)):A.isSameDay(o,Z)},[u,o,y,A]);return $.jsx(R,L({},U,{day:o,disabled:V,autoFocus:c&&E,today:D,outsideCurrentMonth:z,isFirstVisibleCell:Q,isLastVisibleCell:X,selected:M,tabIndex:E?0:-1,"aria-selected":M,"aria-current":D?"date":void 0}))}function sWe(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=()=>$.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:m,disablePast:y,disableFuture:v,minDate:b,maxDate:O,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:A,dayOfWeekFormatter:w,hasFocus:E,onFocusedViewChange:M,gridLabelId:D,displayWeekNumber:R,fixedWeekNumber:B,autoFocus:U,timezone:V}=t,z=ef(V),Q=Rn(),X=ZHe(t),Y=bi().direction==="rtl",q=w||((Be,re)=>Q.format(re,"weekdayShort").charAt(0).toUpperCase()),j=fne({shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:A,minDate:b,maxDate:O,disablePast:y,disableFuture:v,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),M==null||M(!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=$b({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=$b({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)&&(M==null||M(!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)?$b({utils:Q,date:ue,minDate:Be,maxDate:re,disablePast:y,disableFuture:v,isDateDisabled:j,timezone:V}):ue},[i,v,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 $.jsx(JHe,{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?$.jsx(nWe,{className:X.loadingContainer,children:p()}):$.jsx(rWe,L({transKey:ye,onExited:u,reduceAnimations:d,slideDirection:h,className:et(r,X.slideTransition)},m,{nodeRef:ze,children:$.jsx(iWe,{ref:ze,role:"rowgroup",className:X.monthContainer,children:dt.map((Be,re)=>$.jsxs(oWe,{role:"row",className:X.weekContainer,"aria-rowindex":re+1,children:[R&&$.jsx(tWe,{className:X.weekNumber,role:"rowheader","aria-label":le.calendarWeekNumberAriaLabelText(Q.getWeekNumber(Be[0])),children:le.calendarWeekNumberText(Q.getWeekNumber(Be[0]))}),Be.map((ee,J)=>$.jsx(aWe,{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 lWe=(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")}},uWe=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(lWe(!!c,a,m)).current,v=N.useMemo(()=>{let M=null;return n?M=n:r&&(M=m.startOfMonth(r)),$i.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:M,granularity:yl.day})},[]),[b,O]=N.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:m.isValid(t)?t:h,currentMonth:m.startOfMonth(v),slideDirection:"left"}),S=N.useCallback(M=>{O(L({type:"changeMonth"},M)),u&&u(M.newMonth)},[u]),k=N.useCallback(M=>{const D=M;m.isSameMonth(D,b.currentMonth)||S({newMonth:m.startOfMonth(D),direction:m.isAfterDay(D,b.currentMonth)?"left":"right"})},[b.currentMonth,S,m]),A=fne({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:i,disablePast:o,timezone:p}),w=N.useCallback(()=>{O({type:"finishMonthSwitchingAnimation"})},[]),E=jt((M,D)=>{A(M)||O({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:D})});return{referenceDate:v,calendarState:b,changeMonth:k,changeFocusedDay:E,isDateDisabled:A,onMonthSwitchingAnimationEnd:w,handleChangeMonth:S}},cWe=["props","getOpenDialogAriaText"],dWe=["ownerState"],fWe=["ownerState"],k$=e=>{var t,n,r,i,o;let{props:a,getOpenDialogAriaText:s}=e,l=Ge(e,cWe);const{slots:u,slotProps:c,className:d,sx:p,format:h,formatDensity:m,timezone:y,name:v,label:b,inputRef:O,readOnly:S,disabled:k,autoFocus:A,localeText:w,reduceAnimations:E}=a,M=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}=one(L({},l,{props:a,inputRef:D,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=u.inputAdornment)!=null?r:vD,le=kn({elementType:j,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),Ee=Ge(le,dWe),G=(i=u.openPickerButton)!=null?i:bs,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,M),edge:Ee.position},ownerState:a}),ge=Ge(ue,fWe),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:v,autoFocus:A&&!a.open,focused:V?!0:void 0}),ownerState:a});Q&&(Le.InputProps=L({},Le.InputProps,{ref:R,[`${Ee.position}Adornment`]:$.jsx(j,L({},Ee,{children:$.jsx(G,L({},ge,{children:$.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:lne,Me=yn(D,Le.inputRef,O);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:()=>$.jsxs(Zte,{localeText:w,children:[$.jsx(Ne,L({},Le,{slots:qe,slotProps:ye,inputRef:Me})),$.jsx(JVe,L({role:"dialog",placement:"bottom-start",anchorEl:R.current},z,{open:V,slots:u,slotProps:ye,shouldRestoreFocus:Y,reduceAnimations:E,children:$.jsx(rt,L({},X,ye==null?void 0:ye.layout,{slots:u,slotProps:ye,children:Z()}))}))]})}},pWe=e=>{var t,n,r;const i=Rn(),o=_p();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:Lo(i,e.minDate,o.minDate),maxDate:Lo(i,e.maxDate,o.maxDate)})},hWe=({props:e,inputRef:t})=>{const n=pWe(e),{forwardedProps:r,internalProps:i}=w$(n,"date");return T$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:$i,fieldValueManager:y$,validator:Rp,valueType:"date"})},mWe=["ownerState"],x$=({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:bs,v=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(v,mWe),O=(d=(p=i==null?void 0:i.clearIcon)!=null?p:a==null?void 0:a.ClearIcon)!=null?d:RVe,S=kn({elementType:O,externalSlotProps:(h=o==null?void 0:o.clearIcon)!=null?h:s==null?void 0:s.clearIcon,ownerState:{}}),k=L({},n,{endAdornment:$.jsxs(N.Fragment,{children:[e&&$.jsx(vD,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:$.jsx(y,L({},b,{onClick:r,children:$.jsx(O,L({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]})}),A=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:A}},gWe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],bWe=["inputRef"],yWe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],hne=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,gWe),m=a,y=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:vp,v=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}=v,O=Ge(v,bWe);O.inputProps=L({},p,O.inputProps),O.InputProps=L({},d,O.InputProps);const S=hWe({props:O,inputRef:b}),{ref:k,onPaste:A,onKeyDown:w,inputMode:E,readOnly:M,clearable:D,onClear:R}=S,B=Ge(S,yWe),{InputProps:U,fieldProps:V}=x$({onClear:R,clearable:D,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return $.jsx(y,L({ref:n},V,{InputProps:L({},U,{readOnly:M}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:A,onKeyDown:w,ref:k})}))}),OWe=e=>At("MuiPickersFadeTransitionGroup",e);_t("MuiPickersFadeTransitionGroup",["root"]);const vWe=e=>{const{classes:t}=e;return Ct({root:["root"]},OWe,t)},EWe=ke(aD,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function mne(e){const t=gt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=vWe(t),s=bi();return i?n:$.jsx(EWe,{className:et(a.root,r),children:$.jsx(ug,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function SWe(e){return At("MuiPickersMonth",e)}const Kv=_t("MuiPickersMonth",["root","monthButton","disabled","selected"]),TWe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],wWe=e=>{const{disabled:t,selected:n,classes:r}=e;return Ct({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},SWe,r)},kWe=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"})),xWe=ke("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Kv.disabled}`]:t.disabled},{[`&.${Kv.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"},[`&.${Kv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Kv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),CWe=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,TWe),v=N.useRef(null),b=wWe(n);return Zr(()=>{if(r){var O;(O=v.current)==null||O.focus()}},[r]),$.jsx(kWe,L({className:b.root,ownerState:n},y,{children:$.jsx(xWe,{ref:v,disabled:o,type:"button",role:"radio",tabIndex:o?-1:l,"aria-current":h,"aria-checked":a,"aria-label":m,onClick:O=>u(O,s),onKeyDown:O=>c(O,s),onFocus:O=>d(O,s),onBlur:O=>p(O,s),className:b.monthButton,ownerState:n,children:i})}))});function AWe(e){return At("MuiMonthCalendar",e)}_t("MuiMonthCalendar",["root"]);const _We=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],RWe=e=>{const{classes:t}=e;return Ct({root:["root"]},AWe,t)};function IWe(e,t){const n=Rn(),r=_p(),i=gt({props:e,name:t});return L({disableFuture:!1,disablePast:!1},i,{minDate:Lo(n,i.minDate,r.minDate),maxDate:Lo(n,i.maxDate,r.maxDate)})}const NWe=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"}),DWe=N.forwardRef(function(t,n){const r=IWe(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:v,autoFocus:b=!1,onMonthFocus:O,hasFocus:S,onFocusedViewChange:k,monthsPerRow:A=3,timezone:w,gridLabelId:E}=r,M=Ge(r,_We),{value:D,handleValueChange:R,timezone:B}=Lg({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,onChange:h,valueManager:$i}),U=ef(B),V=lg(),z=Rn(),Q=N.useMemo(()=>$i.getInitialReferenceValue({value:D,utils:z,props:r,timezone:B,referenceDate:s,granularity:yl.month}),[]),X=r,Z=RWe(X),Y=N.useMemo(()=>z.getMonth(U),[z,U]),q=N.useMemo(()=>D!=null?z.getMonth(D):v?null:z.getMonth(Q),[D,z,v,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),O&&O(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 $.jsx(NWe,L({ref:n,className:et(Z.root,i),ownerState:X,role:"radiogroup","aria-labelledby":E},M,{children:m$(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 $.jsx(CWe,{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:A,children:ye},ye)})}))});function PWe(e){return At("MuiPickersYear",e)}const Jv=_t("MuiPickersYear",["root","yearButton","selected","disabled"]),LWe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],MWe=e=>{const{disabled:t,selected:n,classes:r}=e;return Ct({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},PWe,r)},$We=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"})),FWe=ke("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Jv.disabled}`]:t.disabled},{[`&.${Jv.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"},[`&.${Jv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Jv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),BWe=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,LWe),v=N.useRef(null),b=MWe(n);return N.useEffect(()=>{r&&v.current.focus()},[r]),$.jsx($We,L({className:et(b.root,i),ownerState:n},y,{children:$.jsx(FWe,{ref:v,disabled:a,type:"button",role:"radio",tabIndex:a?-1:u,"aria-current":m,"aria-checked":s,onClick:O=>c(O,l),onKeyDown:O=>d(O,l),onFocus:O=>p(O,l),onBlur:O=>h(O,l),className:b.yearButton,ownerState:n,children:o})}))});function UWe(e){return At("MuiYearCalendar",e)}_t("MuiYearCalendar",["root"]);const jWe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],zWe=e=>{const{classes:t}=e;return Ct({root:["root"]},UWe,t)};function VWe(e,t){var n;const r=Rn(),i=_p(),o=gt({props:e,name:t});return L({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:Lo(r,o.minDate,i.minDate),maxDate:Lo(r,o.maxDate,i.maxDate)})}const HWe=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:FVe,boxSizing:"border-box",position:"relative"}),WWe=N.forwardRef(function(t,n){const r=VWe(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:v,disableHighlightToday:b,onYearFocus:O,hasFocus:S,onFocusedViewChange:k,yearsPerRow:A,timezone:w,gridLabelId:E}=r,M=Ge(r,jWe),{value:D,handleValueChange:R,timezone:B}=Lg({name:"YearCalendar",timezone:w,value:a,defaultValue:s,onChange:m,valueManager:$i}),U=ef(B),V=lg(),z=Rn(),Q=N.useMemo(()=>$i.getInitialReferenceValue({value:D,utils:z,props:r,timezone:B,referenceDate:l,granularity:yl.year}),[]),X=r,Z=zWe(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(!v)return!1;const ze=z.startOfYear(ye);return v(ze)},[c,d,p,h,U,v,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),O==null||O(ye))});N.useEffect(()=>{le(ye=>q!==null&&ye!==q?q:ye)},[q]);const Le=jt((ye,ze)=>{switch(ye.key){case"ArrowUp":Ne(ze-A),ye.preventDefault();break;case"ArrowDown":Ne(ze+A),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 $.jsx(BWe,{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:A,children:z.format(ye,"year")},z.format(ye,"year"))})}))}),QWe=e=>At("MuiPickersCalendarHeader",e),YWe=_t("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),GWe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],qWe=["ownerState"],ZWe=e=>{const{classes:t}=e;return Ct({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},QWe,t)},XWe=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}),KWe=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})),JWe=ke("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),eQe=ke(bs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>L({marginRight:"auto"},e.view==="year"&&{[`.${YWe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),tQe=ke(wVe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),nQe=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:v,maxDate:b,minDate:O,onMonthChange:S,onViewChange:k,view:A,reduceAnimations:w,views:E,labelId:M,className:D,timezone:R}=u,B=Ge(u,GWe),U=u,V=ZWe(u),z=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:eQe,Q=kn({elementType:z,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(A)},ownerState:U,className:V.switchViewButton}),X=(o=(a=c==null?void 0:c.switchViewIcon)!=null?a:p==null?void 0:p.SwitchViewIcon)!=null?o:tQe,Z=kn({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:V.switchViewIcon}),Y=Ge(Z,qWe),q=()=>S(l.addMonths(h,1),"left"),j=()=>S(l.addMonths(h,-1),"right"),le=IHe(h,{disableFuture:y,maxDate:b,timezone:R}),Ee=NHe(h,{disablePast:v,minDate:O,timezone:R}),G=()=>{if(!(E.length===1||!k||m))if(E.length===2)k(E.find(ue=>ue!==A)||E[0]);else{const ue=E.indexOf(A)!==0?0:1;k(E[ue])}};return E.length===1&&E[0]==="year"?null:$.jsxs(XWe,L({},B,{ownerState:U,className:et(D,V.root),ref:n,children:[$.jsxs(KWe,{role:"presentation",onClick:G,ownerState:U,"aria-live":"polite",className:V.labelContainer,children:[$.jsx(mne,{reduceAnimations:w,transKey:l.format(h,"monthAndYear"),children:$.jsx(JWe,{id:M,ownerState:U,className:V.label,children:l.format(h,"monthAndYear")})}),E.length>1&&!m&&$.jsx(z,L({},Q,{children:$.jsx(X,L({},Y))}))]}),$.jsx(ug,{in:A==="day",children:$.jsx(tne,{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"}),rQe=e=>At("MuiDateCalendar",e);_t("MuiDateCalendar",["root","viewTransitionContainer"]);const iQe=["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"],oQe=e=>{const{classes:t}=e;return Ct({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},rQe,t)};function aQe(e,t){var n,r,i,o,a,s,l;const u=Rn(),c=_p(),d=rne(),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:()=>$.jsx("span",{children:"..."}),minDate:Lo(u,p.minDate,c.minDate),maxDate:Lo(u,p.maxDate,c.maxDate)})}const sQe=ke(vx,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:bx}),lQe=ke(mne,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),gne=N.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=Pl(),l=aQe(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:p,referenceDate:h,disableFuture:m,disablePast:y,defaultCalendarMonth:v,onChange:b,onYearChange:O,onMonthChange:S,reduceAnimations:k,shouldDisableDate:A,shouldDisableMonth:w,shouldDisableYear:E,view:M,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,iQe),{value:ye,handleValueChange:ze,timezone:$e}=Lg({name:"DateCalendar",timezone:Me,value:d,defaultValue:p,onChange:b,valueManager:$i}),{view:He,setView:dt,focusedView:Be,setFocusedView:re,goToNextView:ee,setValueAndGoToNextView:J}=gO({view:M,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}=uWe({value:ye,defaultCalendarMonth:v,referenceDate:h,reduceAnimations:k,onMonthChange:S,minDate:z,maxDate:Q,shouldDisableDate:A,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:nQe,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)?$b({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)?$b({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"),O==null||O(at)):(ee(),ie(fe)),Ie(at,!0)}),Et=jt(Ae=>ze(Ae&&wI(a,Ae,ye??_e),"finish",He));N.useEffect(()=>{ye!=null&&a.isValid(ye)&&ie(ye)},[ye]);const Dt=l,rn=oQe(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 $.jsxs(sQe,L({ref:n,className:et(rn.root,B),ownerState:Dt},Qe,{children:[$.jsx(Ke,L({},vt)),$.jsx(lQe,{reduceAnimations:k,className:rn.viewTransitionContainer,transKey:He,ownerState:Dt,children:$.jsxs("div",{children:[He==="year"&&$.jsx(WWe,L({},cn,fn,{value:ye,onChange:it,shouldDisableYear:E,hasFocus:kt,onFocusedViewChange:Ae=>re("year",Ae),yearsPerRow:qe,referenceDate:_e})),He==="month"&&$.jsx(DWe,L({},cn,fn,{hasFocus:kt,className:B,value:ye,onChange:Ye,shouldDisableMonth:w,onFocusedViewChange:Ae=>re("month",Ae),monthsPerRow:rt,referenceDate:_e})),He==="day"&&$.jsx(sWe,L({},Pe,cn,fn,{onMonthSwitchingAnimationEnd:Oe,onFocusedDayChange:Ie,reduceAnimations:k,selectedDays:ve,onSelectedDaysChange:Et,shouldDisableDate:A,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:v,shouldDisableYear:b,reduceAnimations:O,onMonthChange:S,monthsPerRow:k,onYearChange:A,yearsPerRow:w,defaultCalendarMonth:E,components:M,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})=>$.jsx(gne,{view:e,onViewChange:t,views:n.filter(rm),focusedView:r&&rm(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:v,shouldDisableYear:b,reduceAnimations:O,onMonthChange:S,monthsPerRow:k,onYearChange:A,yearsPerRow:w,defaultCalendarMonth:E,components:M,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}),bne=N.forwardRef(function(t,n){var r,i,o,a;const s=Fi(),l=Rn(),u=Jte(t,"MuiDesktopDatePicker"),c=L({day:Gs,month:Gs,year:Gs},u.viewRenderers),d=L({},u,{viewRenderers:c,format:Gy(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:L({openPickerIcon:ene,field:hne},u.slots),slotProps:L({},u.slotProps,{field:h=>{var m;return L({},Yd((m=u.slotProps)==null?void 0:m.field,h),Mg(u),{ref:n})},toolbar:L({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=k$({props:d,valueManager:$i,valueType:"date",getOpenDialogAriaText:(o=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:Rp});return p()});bne.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:ag,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 uQe=["props","getOpenDialogAriaText"],C$=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,a=Ge(e,uQe);const{slots:s,slotProps:l,className:u,sx:c,format:d,formatDensity:p,timezone:h,name:m,label:y,inputRef:v,readOnly:b,disabled:O,localeText:S}=i,k=Rn(),A=N.useRef(null),w=Pl(),E=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:M,actions:D,layoutProps:R,renderCurrentView:B,fieldProps:U}=one(L({},a,{props:i,inputRef:A,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},!(O||b)&&{onClick:D.onOpen,onKeyDown:VVe(D.onOpen)},{readOnly:b??!0,disabled:O,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:lne,Z=yn(A,z.inputRef,v);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:()=>$.jsxs(Zte,{localeText:S,children:[$.jsx(V,L({},z,{slots:Q,slotProps:q,inputRef:Z})),$.jsx(jVe,L({},D,{open:M,slots:s,slotProps:q,children:$.jsx(X,L({},R,q==null?void 0:q.layout,{slots:s,slotProps:q,children:B()}))}))]})}},A$=N.forwardRef(function(t,n){var r,i,o;const a=Fi(),s=Rn(),l=Jte(t,"MuiMobileDatePicker"),u=L({day:Gs,month:Gs,year:Gs},l.viewRenderers),c=L({},l,{viewRenderers:u,format:Gy(s,l,!1),slots:L({field:hne},l.slots),slotProps:L({},l.slotProps,{field:p=>{var h;return L({},Yd((h=l.slotProps)==null?void 0:h.field,p),Mg(l),{ref:n})},toolbar:L({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=C$({props:c,valueManager:$i,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:Rp});return d()});A$.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:ag,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 cQe=["desktopModeMediaQuery"],dQe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=v$}=r,o=Ge(r,cQe);return dg(i,{defaultMatches:!0})?$.jsx(bne,L({ref:n},o)):$.jsx(A$,L({ref:n},o))}),fQe=e=>{var t,n,r,i,o,a,s,l;const u=Rn(),c=_p(),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:Lo(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:Lo(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})},pQe=({props:e,inputRef:t})=>{const n=fQe(e),{forwardedProps:r,internalProps:i}=w$(n,"date-time");return T$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:$i,fieldValueManager:y$,validator:Ox,valueType:"date-time"})},hQe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],mQe=["inputRef"],gQe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],yne=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,hQe),m=a,y=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:vp,v=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}=v,O=Ge(v,mQe);O.inputProps=L({},p,O.inputProps),O.InputProps=L({},d,O.InputProps);const S=pQe({props:O,inputRef:b}),{ref:k,onPaste:A,onKeyDown:w,inputMode:E,readOnly:M,clearable:D,onClear:R}=S,B=Ge(S,gQe),{InputProps:U,fieldProps:V}=x$({onClear:R,clearable:D,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return $.jsx(y,L({ref:n},V,{InputProps:L({},U,{readOnly:M}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:A,onKeyDown:w,ref:k})}))});function bQe(e){return At("MuiDateTimePickerTabs",e)}_t("MuiDateTimePickerTabs",["root"]);const yQe=e=>rm(e)?"date":"time",OQe=e=>e==="date"?"day":"hours",vQe=e=>{const{classes:t}=e;return Ct({root:["root"]},bQe,t)},EQe=ke(_ve,{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}`,[`& .${vE.indicator}`]:{bottom:"auto",top:0}}})),SQe=function(t){const n=gt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=$.jsx(AVe,{}),onViewChange:i,timeIcon:o=$.jsx(_Ve,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Fi(),u=vQe(n),c=(d,p)=>{i(OQe(p))};return s?null:$.jsxs(EQe,{ownerState:n,variant:"fullWidth",value:yQe(a),onChange:c,className:u.root,children:[$.jsx(d8,{value:"date","aria-label":l.dateTableLabel,icon:$.jsx(N.Fragment,{children:r})}),$.jsx(d8,{value:"time","aria-label":l.timeTableLabel,icon:$.jsx(N.Fragment,{children:o})})]})};function TQe(e){return At("MuiDateTimePickerToolbar",e)}const r2=_t("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),wQe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],kQe=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,TQe,t)},One=ke(O$,{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"}));One.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 xQe=ke("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),vne=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`})}),CQe=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"}));vne.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 Wz=ke(E$,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),AQe=ke("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${r2.ampmLabel}`]:t.ampmLabel},{[`&.${r2.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%"},{[`& .${r2.ampmLabel}`]:{fontSize:17}}));function _Qe(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,wQe),v=t,b=Rn(),{meridiemMode:O,handleMeridiemChange:S}=yx(i,n,o),k=!!(n&&!r),A=m==="desktop",w=Fi(),E=bi(),M=kQe(L({},v,{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 $.jsxs(One,L({toolbarTitle:w.dateTimePickerToolbarTitle,isLandscape:s,className:M.root},y,{ownerState:v,children:[$.jsxs(xQe,{className:M.dateContainer,ownerState:v,children:[d.includes("year")&&$.jsx(Qa,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?b.format(i,"year"):"–"}),d.includes("day")&&$.jsx(Qa,{tabIndex:-1,variant:A?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:R})]}),$.jsxs(vne,{className:M.timeContainer,ownerState:v,children:[$.jsxs(CQe,{className:M.timeDigitsContainer,ownerState:v,children:[d.includes("hours")&&$.jsx(Qa,{variant:A?"h5":"h3",width:A&&!s?X0:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?D(i):"--"}),d.includes("minutes")&&$.jsxs(N.Fragment,{children:[$.jsx(Wz,{variant:A?"h5":"h3",value:":",className:M.separator,ownerState:v}),$.jsx(Qa,{variant:A?"h5":"h3",width:A&&!s?X0:void 0,onClick:()=>l("minutes"),selected:a==="minutes",value:i?b.format(i,"minutes"):"--"})]}),d.includes("seconds")&&$.jsxs(N.Fragment,{children:[$.jsx(Wz,{variant:A?"h5":"h3",value:":",className:M.separator,ownerState:v}),$.jsx(Qa,{variant:A?"h5":"h3",width:A&&!s?X0:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?b.format(i,"seconds"):"--"})]})]}),k&&!A&&$.jsxs(AQe,{className:M.ampmSelection,ownerState:v,children:[$.jsx(Qa,{variant:"subtitle2",selected:O==="am",typographyClassName:M.ampmLabel,value:Sl(b,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),$.jsx(Qa,{variant:"subtitle2",selected:O==="pm",typographyClassName:M.ampmLabel,value:Sl(b,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&A&&$.jsx(Qa,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&O?Sl(b,O):"--",width:X0})]})]}))}function Ene(e,t){var n,r,i,o,a,s,l,u,c,d,p;const h=Rn(),m=_p(),y=gt({props:e,name:t}),v=(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]),O=(r=y.slots)!=null?r:mO(y.components),S=(i=y.slotProps)!=null?i:y.componentsProps;return L({},y,h$({views:y.views,openTo:y.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:v,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:Lo(h,(u=y.minDateTime)!=null?u:y.minDate,m.minDate),maxDate:Lo(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:_Qe,tabs:SQe},O),slotProps:L({},S,{toolbar:L({ampm:v},S==null?void 0:S.toolbar)})})}function RQe(e){return At("MuiMultiSectionDigitalClock",e)}_t("MuiMultiSectionDigitalClock",["root"]);function IQe(e){return At("MuiMultiSectionDigitalClockSection",e)}const NQe=_t("MuiMultiSectionDigitalClockSection",["root","item"]),DQe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],PQe=e=>{const{classes:t}=e;return Ct({root:["root"],item:["item"]},IQe,t)},LQe=ke(R1,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:nne,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)"}})),MQe=ke(op,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:X0,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)}})),$Qe=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:v,skipDisabled:b}=s,O=Ge(s,DQe),S=N.useMemo(()=>L({},s,{alreadyRendered:!!i.current}),[s]),k=PQe(S),A=(r=y==null?void 0:y.digitalClockSectionItem)!=null?r:MQe;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}),$.jsx(LQe,L({ref:o,className:et(k.root,c),ownerState:S,autoFocusItem:l&&m,role:"listbox"},O,{children:h.map(w=>{var E,M;if(b&&(E=w.isDisabled)!=null&&E.call(w,w.value))return null;const D=w.isSelected(w.value);return $.jsx(A,L({onClick:()=>!p&&u(w.value),selected:D,disabled:d||((M=w.isDisabled)==null?void 0:M.call(w,w.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":w.ariaLabel,"aria-selected":D,className:k.item},v==null?void 0:v.digitalClockSectionItem,{children:w.label}),w.label)})}))}),FQe=({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},Qz=({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())}})]},_$=({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:()=>g$(n,i,"date")}),[]);return e??o},BQe=["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"],UQe=e=>{const{classes:t}=e;return Ct({root:["root"]},RQe,t)},jQe=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}`})),zQe=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:v,minTime:b,disableFuture:O,disablePast:S,minutesStep:k=1,shouldDisableClock:A,shouldDisableTime:w,onChange:E,view:M,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,BQe),{value:j,handleValueChange:le,timezone:Ee}=Lg({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=_$({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}=gO({view:M,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=hO(y,r),Pe=J==="hours"||J==="minutes"&&Le.includes("seconds"),Ie=({start:de,end:ce})=>!(b&&_e(b,ce)||v&&_e(de,v)||O&&_e(de,ue)||S&&_e(ue,Pe?ce:de)),ie=(de,ce=1)=>{if(de%ce!==0||A!=null&&A(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=qy(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,v,ye,b,k,A,w,r,O,S,ue,Le]),He=N.useCallback(ee=>{switch(ee){case"hours":return{onChange:J=>{const _e=qy(J,ye,o);rt(r.setHours(he,_e),"finish","hours")},items:FQe({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:Qz({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:Qz({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=UQe(Be);return $.jsx(jQe,L({ref:n,className:et(re.root,z),ownerState:Be,role:"group"},q,{children:Object.entries(dt).map(([ee,J])=>$.jsx($Qe,{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))}))}),VQe=ke("div")({display:"flex",margin:"0 auto"});function HQe(e){return At("MuiTimeClock",e)}_t("MuiTimeClock",["root","arrowSwitcher"]);const tg=220,xu=36,Xy={x:tg/2,y:tg/2},Sne={x:Xy.x,y:0},WQe=Sne.x-Xy.x,QQe=Sne.y-Xy.y,YQe=e=>e*(180/Math.PI),Tne=(e,t,n)=>{const r=t-Xy.x,i=n-Xy.y,o=Math.atan2(WQe,QQe)-Math.atan2(r,i);let a=YQe(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}},GQe=(e,t,n=1)=>{const r=n*6;let{value:i}=Tne(r,e,t);return i=i*n%60,i},qQe=(e,t,n)=>{const{value:r,distance:i}=Tne(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return Ct({root:["root"],thumb:["thumb"]},ZQe,t)},JQe=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"])})),eYe=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 tYe(e){const t=gt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Ge(t,XQe),s=N.useRef(i);N.useEffect(()=>{s.current=i},[i]);const l=L({},t,{shouldAnimate:s.current!==i}),u=KQe(l),c=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*tg),transform:`rotateZ(${p}deg)`}};return $.jsx(JQe,L({style:c(),className:et(n,u.root),ownerState:l},a,{children:$.jsx(eYe,{ownerState:l,className:u.thumb})}))}function nYe(e){return At("MuiClock",e)}_t("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const rYe=e=>{const{classes:t}=e;return Ct({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},nYe,t)},iYe=ke("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),oYe=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"}),aYe=ke("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),sYe=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"}})),lYe=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%)"})),uYe=ke(bs,{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}})),cYe=ke(bs,{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}})),Yz=ke(mi,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function dYe(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:v,className:b}=t,O=t,S=Rn(),k=Fi(),A=N.useRef(!1),w=rYe(O),E=l(m,h),M=!n&&h==="hours"&&(m<1||m>12),D=(q,j)=>{y||v||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"?GQe(le,Ee,c):qQe(le,Ee,!!n);D(G,j)},B=q=>{A.current=!0,R(q,"shallow")},U=q=>{A.current&&(R(q,"finish"),A.current=!1)},V=q=>{q.buttons>0&&R(q.nativeEvent,"shallow")},z=q=>{A.current&&(A.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);Zr(()=>{i&&Z.current.focus()},[i]);const Y=q=>{if(!A.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 $.jsxs(iYe,{className:et(b,w.root),children:[$.jsxs(oYe,{className:w.clock,children:[$.jsx(sYe,{onTouchMove:B,onTouchEnd:U,onMouseUp:z,onMouseMove:V,ownerState:{disabled:y},className:w.squareMask}),!E&&$.jsxs(N.Fragment,{children:[$.jsx(lYe,{className:w.pin}),a!=null&&$.jsx(tYe,{type:h,viewValue:m,isInner:M,hasSelected:Q})]}),$.jsx(aYe,{"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&&$.jsxs(N.Fragment,{children:[$.jsx(uYe,{onClick:v?void 0:()=>s("am"),disabled:y||u===null,ownerState:O,className:w.amButton,title:Sl(S,"am"),children:$.jsx(Yz,{variant:"caption",className:w.meridiemText,children:Sl(S,"am")})}),$.jsx(cYe,{disabled:y||u===null,onClick:v?void 0:()=>s("pm"),ownerState:O,className:w.pmButton,title:Sl(S,"pm"),children:$.jsx(Yz,{variant:"caption",className:w.meridiemText,children:Sl(S,"pm")})})]})]})}function fYe(e){return At("MuiClockNumber",e)}const eE=_t("MuiClockNumber",["root","selected","disabled"]),pYe=["className","disabled","index","inner","label","selected"],hYe=e=>{const{classes:t,selected:n,disabled:r}=e;return Ct({root:["root",n&&"selected",r&&"disabled"]},fYe,t)},mYe=ke("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${eE.disabled}`]:t.disabled},{[`&.${eE.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},[`&.${eE.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${eE.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function wne(e){const t=gt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Ge(t,pYe),u=t,c=hYe(u),d=i%12/12*Math.PI*2-Math.PI/2,p=(tg-xu-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return $.jsx(mYe,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+(tg-xu)/2}px`},ownerState:u},l,{children:a}))}const gYe=({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($.jsx(wne,{id:m?i:void 0,index:d,inner:h,selected:m,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},Gz=({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 $.jsx(wne,{label:s,id:u?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},bYe=["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"],yYe=e=>{const{classes:t}=e;return Ct({root:["root"],arrowSwitcher:["arrowSwitcher"]},HQe,t)},OYe=ke(vx,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),vYe=ke(tne,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),EYe=["hours","minutes"],SYe=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:v,minTime:b,disableFuture:O,disablePast:S,minutesStep:k=1,shouldDisableClock:A,shouldDisableTime:w,showViewSwitcher:E,onChange:M,view:D,views:R=EYe,openTo:B,onViewChange:U,focusedView:V,onFocusedViewChange:z,className:Q,disabled:X,readOnly:Z,timezone:Y}=i,q=Ge(i,bYe),j=c??mO(l),le=d??u,{value:Ee,handleValueChange:G,timezone:ue}=Lg({name:"TimeClock",timezone:Y,value:p,defaultValue:h,onChange:M,valueManager:$i}),ge=_$({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}=gO({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=hO(y,r),Pe=J==="hours"||J==="minutes"&&R.includes("seconds"),Ie=({start:de,end:ce})=>!(b&&_e(b,ce)||v&&_e(de,v)||O&&_e(de,Ne)||S&&_e(Ne,Pe?ce:de)),ie=(de,ce=1)=>{if(de%ce!==0||A!=null&&A(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=qy(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,v,ye,b,k,A,w,r,O,S,Ne,R]),He=Pl(),dt=N.useMemo(()=>{switch(Le){case"hours":{const ee=(J,_e)=>{const Pe=qy(J,ye,o);Qe(r.setHours(ge,Pe),_e)};return{onChange:ee,viewValue:r.getHours(ge),children:gYe({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:Gz({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:Gz({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=yYe(Be);return $.jsxs(OYe,L({ref:n,className:et(re.root,Q),ownerState:Be},q,{children:[$.jsx(dYe,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&&$.jsx(vYe,{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 TYe(e){return At("MuiDigitalClock",e)}const wYe=_t("MuiDigitalClock",["root","list","item"]),kYe=["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"],xYe=e=>{const{classes:t}=e;return Ct({root:["root"],list:["list"],item:["item"]},TYe,t)},CYe=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:nne})),AYe=ke(R1,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),_Ye=ke(op,{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)}})),RYe=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:v,value:b,defaultValue:O,referenceDate:S,disableIgnoringDatePartForTimeValidation:k=!1,maxTime:A,minTime:w,disableFuture:E,disablePast:M,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,kYe),{value:ge,handleValueChange:he,timezone:Ne}=Lg({name:"DigitalClock",timezone:G,value:b,defaultValue:O,onChange:U,valueManager:$i}),Le=Fi(),qe=ef(Ne),rt=N.useMemo(()=>L({},u,{alreadyRendered:!!s.current}),[u]),Me=xYe(rt),Qe=(r=(i=y==null?void 0:y.digitalClockItem)!=null?i:h==null?void 0:h.DigitalClockItem)!=null?r:_Ye,ye=kn({elementType:Qe,externalSlotProps:(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.digitalClockItem,ownerState:{},className:Me.item}),ze=_$({value:ge,referenceDate:S,utils:a,props:u,timezone:Ne}),$e=jt(ee=>he(ee,"finish","hours")),{setValueAndGoToNextView:He}=gO({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=hO(k,a),_e=()=>!(w&&J(w,ee)||A&&J(ee,A)||E&&J(ee,qe)||M&&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,A,E,qe,M,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 $.jsx(CYe,L({ref:l,className:et(Me.root,Y),ownerState:rt},ue,{children:$.jsx(AYe,{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 $.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))})})}))}),om=({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:v,minutesStep:b,ampm:O,ampmInClock:S,components:k,componentsProps:A,slots:w,slotProps:E,readOnly:M,disabled:D,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z})=>$.jsx(SYe,{view:e,onViewChange:t,focusedView:n&&eg(n)?n:null,onFocusedViewChange:r,views:i.filter(eg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:y,shouldDisableClock:v,minutesStep:b,ampm:O,ampmInClock:S,components:k,componentsProps:A,slots:w,slotProps:E,readOnly:M,disabled:D,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z}),kne=({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:v,minutesStep:b,ampm:O,components:S,componentsProps:k,slots:A,slotProps:w,readOnly:E,disabled:M,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>$.jsx(RYe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(eg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:y,shouldDisableClock:v,minutesStep:b,ampm:O,components:S,componentsProps:k,slots:A,slotProps:w,readOnly:E,disabled:M,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeStep:U==null?void 0:U.minutes,skipDisabled:V,timezone:z}),AI=({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:v,minutesStep:b,ampm:O,components:S,componentsProps:k,slots:A,slotProps:w,readOnly:E,disabled:M,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>$.jsx(zQe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(eg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:y,shouldDisableClock:v,minutesStep:b,ampm:O,components:S,componentsProps:k,slots:A,slotProps:w,readOnly:E,disabled:M,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:v,shouldDisableDate:b,shouldDisableMonth:O,shouldDisableYear:S,shouldDisableTime:k,shouldDisableClock:A,reduceAnimations:w,minutesStep:E,ampm:M,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:Vc(e)?e:"hours",onViewChange:t,focusedView:r&&Vc(r)?r:null,onFocusedViewChange:i,views:n.filter(Vc),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:v,shouldDisableTime:k,shouldDisableClock:A,minutesStep:E,ampm:M,components:z,componentsProps:Q,slots:X,slotProps:Z,readOnly:le,disabled:Ee,autoFocus:he,disableIgnoringDatePartForTimeValidation:rt,timeSteps:Me,skipDisabled:Qe,timezone:qe};return $.jsxs(N.Fragment,{children:[$.jsxs(VQe,{children:[$.jsx(gne,{view:rm(e)?e:"day",onViewChange:t,views:n.filter(rm),focusedView:r&&rm(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:O,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&&$.jsxs(N.Fragment,{children:[$.jsx(Td,{orientation:"vertical"}),ze?kne(L({},Be,{view:"hours",views:["hours"],focusedView:r&&Vc(r)?"hours":null,sx:L({width:"auto",[`&.${wYe.root}`]:{maxHeight:bx}},Array.isArray(ge)?ge:[ge])})):AI(L({},Be,{view:Vc(e)?e:"hours",views:n.filter(Vc),focusedView:r&&Vc(r)?r:null,sx:L({borderBottom:0,width:"auto",[`.${NQe.root}`]:{maxHeight:"100%"}},Array.isArray(ge)?ge:[ge])}))]})]}),dt&&$.jsx(Td,{})]})},IYe=["views","format"],xne=(e,t)=>{let{views:n,format:r}=t,i=Ge(t,IYe);if(r)return r;const o=[],a=[];if(n.forEach(u=>{eg(u)?a.push(u):o.push(u)}),a.length===0)return Gy(e,L({views:o},i),!1);if(o.length===0)return HT(e,L({views:a},i));const s=HT(e,L({views:a},i));return`${Gy(e,L({views:o},i),!1)} ${s}`},NYe=(e,t,n)=>n?t.filter(r=>!Vc(r)||r==="hours"):e?[...t,"meridiem"]:t,DYe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Cne({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=L({hours:1,minutes:5,seconds:5},n),a=DYe(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:NYe(t,r,a)}}const Ane=N.forwardRef(function(t,n){var r,i,o,a,s,l,u;const c=Fi(),d=Rn(),p=Ene(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:h,thresholdToRenderTimeInASingleColumn:m,views:y,timeSteps:v}=Cne(p),b=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,O=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"]:[],A=L({},p,{viewRenderers:O,format:xne(d,p),views:y,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:S,timeSteps:v,thresholdToRenderTimeInASingleColumn:m,shouldRenderTimeInASingleColumn:h,slots:L({field:yne,openPickerIcon:ene},p.slots),slotProps:L({},p.slotProps,{field:E=>{var M;return L({},Yd((M=p.slotProps)==null?void 0:M.field,E),Mg(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}=k$({props:A,valueManager:$i,valueType:"date-time",getOpenDialogAriaText:(l=(u=A.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:Ox});return w()});Ane.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:ag,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 _ne=N.forwardRef(function(t,n){var r,i,o,a,s;const l=Fi(),u=Rn(),c=Ene(t,"MuiMobileDateTimePicker"),d=L({day:Gs,month:Gs,year:Gs,hours:om,minutes:om,seconds:om},c.viewRenderers),p=(r=c.ampmInClock)!=null?r:!1,h=L({},c,{viewRenderers:d,format:xne(u,c),ampmInClock:p,slots:L({field:yne},c.slots),slotProps:L({},c.slotProps,{field:y=>{var v;return L({},Yd((v=c.slotProps)==null?void 0:v.field,y),Mg(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}=C$({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()});_ne.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:ag,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 PYe=["desktopModeMediaQuery"],LYe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=v$}=r,o=Ge(r,PYe);return dg(i,{defaultMatches:!0})?$.jsx(Ane,L({ref:n},o)):$.jsx(_ne,L({ref:n},o))}),MYe=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})},$Ye=({props:e,inputRef:t})=>{const n=MYe(e),{forwardedProps:r,internalProps:i}=w$(n,"time");return T$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:$i,fieldValueManager:y$,validator:bO,valueType:"time"})},FYe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],BYe=["inputRef"],UYe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Rne=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,FYe),m=a,y=(r=(i=s==null?void 0:s.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:vp,v=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}=v,O=Ge(v,BYe);O.inputProps=L({},p,O.inputProps),O.InputProps=L({},d,O.InputProps);const S=$Ye({props:O,inputRef:b}),{ref:k,onPaste:A,onKeyDown:w,inputMode:E,readOnly:M,clearable:D,onClear:R}=S,B=Ge(S,UYe),{InputProps:U,fieldProps:V}=x$({onClear:R,clearable:D,fieldProps:B,InputProps:B.InputProps,slots:s,slotProps:l,components:u,componentsProps:c});return $.jsx(y,L({ref:n},V,{InputProps:L({},U,{readOnly:M}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:A,onKeyDown:w,ref:k})}))});function jYe(e){return At("MuiTimePickerToolbar",e)}const Fb=_t("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),zYe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],VYe=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,jYe,r)},HYe=ke(O$,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WYe=ke(E$,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Ine=ke("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Fb.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Fb.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"}));Ine.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 Nne=ke("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Fb.ampmLabel}`]:t.ampmLabel},{[`&.${Fb.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%"},{[`& .${Fb.ampmLabel}`]:{fontSize:17}}));Nne.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 QYe(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,zYe),h=Rn(),m=Fi(),y=bi(),v=!!(n&&!r&&u.includes("hours")),{meridiemMode:b,handleMeridiemChange:O}=yx(i,n,a),S=E=>n?h.format(E,"hours12h"):h.format(E,"hours24h"),k=t,A=VYe(L({},k,{theme:y})),w=$.jsx(WYe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:A.separator});return $.jsxs(HYe,L({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:k,className:A.root},p,{children:[$.jsxs(Ine,{className:A.hourMinuteLabel,ownerState:k,children:[mh(u,"hours")&&$.jsx(Qa,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:i?S(i):"--"}),mh(u,["hours","minutes"])&&w,mh(u,"minutes")&&$.jsx(Qa,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:i?h.format(i,"minutes"):"--"}),mh(u,["minutes","seconds"])&&w,mh(u,"seconds")&&$.jsx(Qa,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:i?h.format(i,"seconds"):"--"})]}),v&&$.jsxs(Nne,{className:A.ampmSelection,ownerState:k,children:[$.jsx(Qa,{disableRipple:!0,variant:"subtitle2",selected:b==="am",typographyClassName:A.ampmLabel,value:Sl(h,"am"),onClick:d?void 0:()=>O("am"),disabled:c}),$.jsx(Qa,{disableRipple:!0,variant:"subtitle2",selected:b==="pm",typographyClassName:A.ampmLabel,value:Sl(h,"pm"),onClick:d?void 0:()=>O("pm"),disabled:c})]})]}))}function Dne(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:mO(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return L({},l,{ampm:u,localeText:c},h$({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:QYe},d),slotProps:L({},p,{toolbar:L({ampm:u,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Pne=N.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Fi(),c=Rn(),d=Dne(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:h,timeSteps:m}=Cne(d),y=p?kne:AI,v=L({hours:y,minutes:y,seconds:y,meridiem:y},d.viewRenderers),b=(r=d.ampmInClock)!=null?r:!0,O=p?[]:["accept"],k=((i=v.hours)==null?void 0:i.name)===AI.name?h:h.filter(E=>E!=="meridiem"),A=L({},d,{ampmInClock:b,timeSteps:m,viewRenderers:v,format:HT(c,d),views:p?["hours"]:k,slots:L({field:Rne,openPickerIcon:CVe},d.slots),slotProps:L({},d.slotProps,{field:E=>{var M;return L({},Yd((M=d.slotProps)==null?void 0:M.field,E),Mg(d),{ref:n})},toolbar:L({hidden:!0,ampmInClock:b},(o=d.slotProps)==null?void 0:o.toolbar),actionBar:L({actions:O},(a=d.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:w}=k$({props:A,valueManager:$i,valueType:"time",getOpenDialogAriaText:(s=(l=A.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:u.openTimePickerDialogue,validator:bO});return w()});Pne.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:ag,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 Lne=N.forwardRef(function(t,n){var r,i,o,a;const s=Fi(),l=Rn(),u=Dne(t,"MuiMobileTimePicker"),c=L({hours:om,minutes:om,seconds:om},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,p=L({},u,{ampmInClock:d,viewRenderers:c,format:HT(l,u),slots:L({field:Rne},u.slots),slotProps:L({},u.slotProps,{field:m=>{var y;return L({},Yd((y=u.slotProps)==null?void 0:y.field,m),Mg(u),{ref:n})},toolbar:L({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=C$({props:p,valueManager:$i,valueType:"time",getOpenDialogAriaText:(o=(a=p.localeText)==null?void 0:a.openTimePickerDialogue)!=null?o:s.openTimePickerDialogue,validator:bO});return h()});Lne.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:ag,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 YYe=["desktopModeMediaQuery"],GYe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=v$}=r,o=Ge(r,YYe);return dg(i,{defaultMatches:!0})?$.jsx(Pne,L({ref:n},o)):$.jsx(Lne,L({ref:n},o))});var R$={},qYe=na;Object.defineProperty(R$,"__esModule",{value:!0});var Mne=R$.default=void 0,ZYe=qYe(ra()),XYe=$;Mne=R$.default=(0,ZYe.default)((0,XYe.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 I$={},KYe=na;Object.defineProperty(I$,"__esModule",{value:!0});var $ne=I$.default=void 0,JYe=KYe(ra()),eGe=$;$ne=I$.default=(0,JYe.default)((0,eGe.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 _I(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 uGe(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 cGe(e,t){return tGe(e)||oGe(e,t)||Fne(e,t)||aGe()}function zd(e){return nGe(e)||iGe(e)||Fne(e)||sGe()}function dGe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Fne(e,t){if(e){if(typeof e=="string")return _I(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 _I(e,t)}}var fGe=N.createContext({onError:function(e){return e==null?void 0:e.message}}),ys=function(){var e;return(e=N.useContext(fGe))===null||e===void 0?void 0:e.onError};function _a(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=Aa({name:s,control:l,disabled:h.disabled,rules:v}),O=b.field,S=b.fieldState,k=S.error,A=_a({value:O.value,onChange:O.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=A.value,E=A.onChange,M=yn(O.ref,d);return $.jsx(c,Cn(zt({},h),{name:O.name,value:w,onChange:function(D){E(D),typeof h.onChange=="function"&&h.onChange(D)},onBlur:O.onBlur,required:a,type:o,error:!!k,helperText:k?typeof y=="function"?y(k):k.message:h.helperText,ref:t,inputRef:M}))});Bne.displayName="TextFieldElement";var Une=Bne;function pGe(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,a=e.onError,s=Oo(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"),$.jsx(_te,Cn(zt({},i),{children:$.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}))}))):$.jsx(hGe,zt({onSuccess:o,onError:a,FormProps:r,children:n},s))}function hGe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=Oo(e,["onSuccess","onError","FormProps","children"]),a=Qze(zt({},o)),s=a.handleSubmit;return $.jsx(_te,Cn(zt({},a),{children:$.jsx("form",Cn(zt({onSubmit:s(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var jne={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"},mGe=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=Oo(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),y=Ul(),v=ys(),b=n||v,O=zt({},jne,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=Rp({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||O[Z]}},a.validate)}),k=Aa({name:r,control:l,rules:S,disabled:m.disabled,defaultValue:null}),A=k.field,w=k.fieldState,E=w.error,M=_a({value:A.value,onChange:A.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=M.value,R=M.onChange,B=yn(A.ref,p),U=E?typeof b=="function"?b(E):E.message:null;return $.jsx(dQe,Cn(zt({},m,A),{value:D,ref:t,inputRef:B,onClose:function(){for(var V=arguments.length,z=new Array(V),Q=0;Q"u"?"undefined":dGe(V))<"u"&&(S.InputLabelProps=S.InputLabelProps||{},S.InputLabelProps.shrink=!0),$.jsxs(vp,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 A=="function"?A(B):B.message:S.helperText,inputRef:Q,children:[w&&$.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:ba(X,"disabled")?!!X.disabled:!1,children:X[l]};return w?$.jsx("option",zt({},Y)):$.jsx(op,zt({},Y))})]}))});SGe.displayName="SelectElement";var TGe=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,v=e.checkboxColor,b=e.rules,O=e.labelProps,S=e.transform,k=e.defaultValue,A=k===void 0?[]:k,w=Oo(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),E=bi(),M=ys(),D=a||M,R=Aa({name:o,rules:s?{required:"This field is required"}:b,disabled:h,control:y,defaultValue:A}),B=R.field,U=R.fieldState,V=U.error,z=U.invalid,Q=_a({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=ba(j,d)?j[d]:j,Ee=X.findIndex(function(ue){var ge=ba(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||!ba(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 $.jsxs(Op,{error:z,required:s,ref:t,children:[i?$.jsx(uk,{children:i}):null,$.jsx(OD,{row:m,children:r.map(function(j){var le=ba(j,d)?j[d]:j,Ee=ba(j,u)?j[u]:j,G=X.some(function(ue){return(ba(ue,d)?ue[d]:ue)===le});return N.createElement(cy,Cn(zt({},O),{control:$.jsx(ak,{sx:{color:V?E.palette.error.main:void 0},color:v,value:le,checked:G,disabled:h,onChange:function(){return Y(j)}}),label:"".concat(Ee),key:"".concat(le)}))})}),q&&$.jsx(cg,{children:q})]})});TGe.displayName="CheckboxButtonGroup";var wGe=48,kGe=8,xGe=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,v=e.required,b=v===void 0?!1:v,O=e.validation,S=O===void 0?{}:O,k=e.parseError,A=e.name,w=e.menuMaxHeight,E=w===void 0?wGe*4.5+kGe:w,M=e.menuMaxWidth,D=M===void 0?250:M,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=Oo(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),le=ys(),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=Aa({name:A,rules:ue,disabled:j.disabled,control:Q}),he=ge.field,Ne=ge.fieldState,Le=Ne.error,qe=_a({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 $.jsxs(Op,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&&$.jsx(WQ,{size:j.size==="small"?"small":void 0,error:!!Le,htmlFor:j.id||"select-multi-select-".concat(A),required:b,children:u}),$.jsx(iY,Cn(zt({},j),{id:j.id||"select-multi-select-".concat(A),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},ba((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 $.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(z?s.filter(function(He){return $e.includes(He)}):$e||[]).map(function(He){return $.jsx(mD,{label:G(He),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Me((Array.isArray(rt)?rt:[]).filter(function(dt){return dt!==He}))},deleteIcon:$.jsx(Mne,{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 $.jsxs(op,{value:He,sx:{fontWeight:function(Be){return dt?Be.typography.fontWeightBold:Be.typography.fontWeightRegular}},children:[X&&$.jsx(ak,{checked:dt}),$.jsx(Bm,{primary:$e[y]||$e})]},He)})})),ye&&$.jsx(cg,{error:!!Le,children:ye})]}))});xGe.displayName="MultiSelectElement";var zne=N.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?$.jsx(WD,{}):$.jsx($ne,{})}:r,o=Oo(e,["iconColor","renderIcon"]),a=cGe(N.useState(!0),2),s=a[0],l=a[1];return $.jsx(Une,Cn(zt({},o),{ref:t,InputProps:{endAdornment:$.jsx(vD,{position:"end",children:$.jsx(bs,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!s)},tabIndex:-1,color:n??"default",children:i(s)})})},type:s?"password":"text"}))});zne.displayName="PasswordElement";var CGe=zne,AGe=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,v=e.type,b=e.labelProps,O=e.disabled,S=e.formLabelProps,k=e.transform,A=Oo(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),w=bi(),E=ys(),M=a||E,D=Aa({name:o,rules:d?{required:"This field is required"}:void 0,disabled:O,control:y}),R=D.field,B=D.fieldState,U=B.error,V=_a({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 M=="function"?M(U):U.message:n,Z=function(Y,q){var j=h?r.find(function(le){return le[c]===q}):q;Q(Y,j),typeof A.onChange=="function"&&A.onChange(j)};return $.jsxs(Op,{error:!!U,ref:t,children:[i&&$.jsx(uk,Cn(zt({},S),{required:d,error:!!U,children:i})),$.jsxs(q1e,{onChange:Z,name:o,row:m,value:z,children:[p&&$.jsx(cy,Cn(zt({},b),{control:$.jsx(s8,{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;v==="number"&&(j=Number(j));var le=j===q;return N.createElement(cy,Cn(zt({},b),{control:$.jsx(s8,{sx:{color:U?w.palette.error.main:void 0},disabled:O,checked:le}),value:q,label:Y[l],key:q}))})]}),X&&$.jsx(cg,{children:X})]})});AGe.displayName="RadioButtonGroup";var _Ge=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,a=Oo(e,["name","control","switchProps","transform"]),s=Aa({name:n,control:r,disabled:a.disabled}),l=s.field,u=_a({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 $.jsx(cy,zt({ref:t,control:$.jsx(WOe,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))});_Ge.displayName="SwitchElement";var RGe=N.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=Oo(e,["passwordFieldName","customInvalidFieldMessage","control"]),a=Pte({name:n,control:i});return $.jsx(CGe,Cn(zt({control:i},o),{ref:t,validation:{validate:function(s){return s===a||(r??"Password should match")}}}))});RGe.displayName="PasswordRepeatElement";var IGe=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,v=e.matchId,b=ys(),O=m||b,S=zt({},u,d&&{required:(u==null?void 0:u.required)||"This field is required"}),k=Aa({name:i,control:o,disabled:r==null?void 0:r.disabled,rules:S}),A=k.field,w=k.fieldState,E=w.error,M=function(Z){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(Z):ba(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=ba(Z,"id")?Z.id:Z,j=ba(Y,"id")?Y.id:Y;return q===j},R=function(Z){return a.find(function(Y){return v&&ba(Y,"id")?Y.id===Z:D(Y,Z)})},B=_a({value:A.value,onChange:A.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 v?q.map(function(j){return ba(j,"id")?j.id:j}):q}return v&&ba(Y,"id")?Y.id:Y}}}),U=B.value,V=B.onChange,z=yn(A.ref,n==null?void 0:n.inputRef),Q=c||$.jsx(_1,{color:"inherit",size:20}),X;return $.jsx(sme,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:M,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 $.jsxs("li",Cn(zt({},Z),{children:[$.jsx(ak,{sx:{marginRight:1},checked:j}),M(Y)]}))}:void 0,onBlur:function(Z){A.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(Z)},renderInput:function(Z){return $.jsx(vp,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:$.jsxs($.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 O=="function"?O(E):E.message:n==null?void 0:n.helperText,inputRef:z}))}}))});IGe.displayName="AutocompleteElement";var NGe=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=Oo(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=ys(),h=s||p,m=zt({},a,l&&!a.required&&{required:"This field is required"}),y=Aa({name:n,control:r,disabled:d.disabled,rules:m}),v=y.field,b=y.fieldState,O=b.error,S=b.invalid,k=_a({value:v.value,onChange:v.onChange,transform:c}),A=k.value,w=k.onChange,E=O?typeof h=="function"?h(O):O.message:null;return $.jsxs(Op,Cn(zt({error:S,required:l,fullWidth:!0},u),{ref:t,children:[i&&$.jsx(uk,{component:"legend",error:S,children:i}),$.jsx(xOe,Cn(zt({},d),{value:A,onChange:w,valueLabelDisplay:d.valueLabelDisplay||"auto"})),E&&$.jsx(cg,{error:S,children:E})]}))});NGe.displayName="SliderElement";var DGe=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=Oo(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),m=ys(),y=i||m,v=zt({},r,o&&!r.required&&{required:"This field is required"}),b=Aa({name:a,control:s,rules:v,disabled:h.disabled}),O=b.field,S=b.fieldState,k=S.error,A=_a({value:O.value,onChange:O.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=A.value,E=A.onChange,M=yn(O.ref,c);return $.jsx(vp,Cn(zt({},h),{name:a,value:w,onChange:function(D){E(D),typeof h.onChange=="function"&&h.onChange(D)},onBlur:O.onBlur,required:o,error:!!k,helperText:k?typeof y=="function"?y(k):k.message:h.helperText,inputRef:M,multiline:!0,InputProps:{inputComponent:RQ,inputProps:zt({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});DGe.displayName="TextareaAutosizeElement";var N$={},PGe=na;Object.defineProperty(N$,"__esModule",{value:!0});var Vne=N$.default=void 0,LGe=PGe(ra()),MGe=$;Vne=N$.default=(0,LGe.default)((0,MGe.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 Hne(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 $.jsx(lk,{disableAutoFocus:!0,...r,children:$.jsxs(gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[$.jsx(bs,{sx:{position:"absolute",top:28,right:28},onClick:i,children:$.jsx(Vne,{})}),$.jsxs(ts,{gap:4,children:[$.jsxs(mi,{variant:"h5",children:["Create New ",t]}),$.jsx(Op,{children:$.jsx(pGe,{defaultValues:{title:""},onSuccess:o,children:$.jsxs(ts,{gap:4,alignItems:"flex-end",children:[$.jsx(Une,{variant:"standard",name:"title",label:"Title of new note",required:!0,fullWidth:!0,inputProps:{maxLength:255}}),$.jsx(Af,{type:"submit",variant:"contained",size:"large",children:"OK"})]})})})]})]})})}function $Ge(e){const{width:t,...n}=e,r=hg(),i=fk(),{data:o,hasNextPage:a,fetchNextPage:s}=Eze(),{mutateAsync:l}=Sze(),u=N.useMemo(()=>(o==null?void 0:o.pages.reduce((v,b)=>v.concat(b.workspaces),[]))??[],[o==null?void 0:o.pages]),[c,d]=N.useState(!1),p=v=>{r(`/workspace/${v}`)},h=v=>{var b;i.workspaceSlug!==v&&(p(v),(b=n==null?void 0:n.onClose)==null||b.call(n,new Event("Close Popover"),"backdropClick"))},m=()=>{var v;d(b=>!b),n.open&&((v=n==null?void 0:n.onClose)==null||v.call(n,new Event("Close Popover"),"backdropClick"))},y=async v=>{const b=await l(v);p(b.slug)};return $.jsxs($.Fragment,{children:[$.jsx(ED,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:$.jsxs(R1,{sx:{width:t},children:[$.jsx(Vs,{style:{maxHeight:300,overflow:"auto"},children:$.jsx(FT,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:$.jsx(Vs,{className:"loader",children:$.jsx(_1,{size:"sm"})},0),useWindow:!1,children:u.map(v=>$.jsxs(op,{onClick:()=>h(v.slug),children:[$.jsx(Bm,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:v.title}),i.workspaceSlug===v.slug&&$.jsx(BS,{children:$.jsx(wte,{fontSize:"small"})})]},v.id))})}),$.jsx(Td,{}),$.jsxs(op,{onClick:m,children:[$.jsx(GQ,{children:$.jsx(Tk,{fontSize:"small"})}),$.jsx(Bm,{children:"Create Workspace"})]})]})}),$.jsx(Hne,{open:c,title:"Workspace",onClose:m,onSuccess:y})]})}const Wne=e=>["workspaces",e,"documents"],FGe=e=>mte({queryKey:Wne(e||""),queryFn:async({pageParam:n})=>(await dr.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}),BGe=e=>{const t=J5();return hte({mutationFn:async n=>(await dr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Wne(e)})}})},i2=240;function UGe(){var v,b;const e=fk(),t=Tc(yte),{data:n}=Ete(e.workspaceSlug),{mutateAsync:r}=BGe((n==null?void 0:n.id)||""),[i,o]=N.useState(null),[a,s]=N.useState(null),[l,u]=N.useState(!1),c=O=>{o(O.currentTarget)},d=()=>{o(null)},p=O=>{s(O.currentTarget)},h=()=>{s(null)},m=async O=>{await r(O)},y=()=>{u(O=>!O)};return $.jsxs(F0e,{sx:{width:i2,flexShrink:0,"& .MuiDrawer-paper":{width:i2,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[$.jsxs(j0,{disablePadding:!0,children:[$.jsxs(XB,{onClick:p,children:[$.jsx(Bm,{primary:n==null?void 0:n.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),$.jsx(BS,{children:$.jsx(bs,{children:a?$.jsx(Tte,{}):$.jsx(Ste,{})})})]}),$.jsx($Ge,{open:!!a,anchorEl:a,onClose:h,width:i2-32})]}),$.jsx(Td,{}),$.jsx(j0,{children:$.jsx(Af,{variant:"contained",startIcon:$.jsx(Tk,{}),sx:{width:1},onClick:y,children:"New Note"})}),$.jsx(Td,{}),$.jsx(j0,{sx:{mt:"auto"},children:$.jsx(ts,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:$.jsx(bG,{})})}),$.jsx(Td,{}),$.jsxs(j0,{disablePadding:!0,children:[$.jsxs(XB,{onClick:c,children:[$.jsx(Iye,{children:$.jsx(bme,{children:(v=t.data)==null?void 0:v.nickname.charAt(0)})}),$.jsx(Bm,{primary:(b=t.data)==null?void 0:b.nickname}),$.jsx(BS,{children:$.jsx(Ote,{})})]}),$.jsx(yze,{open:!!i,anchorEl:i,onClose:d})]}),$.jsx(Hne,{open:l,title:"Note",onSuccess:m,onClose:y})]})}//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var Une;function Ht(){return Une.apply(null,arguments)}function _Ge(e){Une=e}function Nl(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function qf(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ir(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function N$(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 pa(e){return e===void 0}function vc(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function yO(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function jne(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 M$=/(\[[^\[]*\])|(\\)?([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,tE=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,o2={},om={};function dn(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 Au(i.apply(this,arguments),t[1],t[2])}),n&&(om[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function PGe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function LGe(e){var t=e.match(M$),n,r;for(n=0,r=t.length;n=0&&tE.test(e);)e=e.replace(tE,r),tE.lastIndex=0,n-=1;return e}var MGe={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 $Ge(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(M$).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var FGe="Invalid date";function BGe(){return this._invalidDate}var UGe="%d",jGe=/\d{1,2}/;function zGe(e){return this._ordinal.replace("%d",e)}var VGe={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 HGe(e,t,n,r){var i=this._relativeTime[n];return Uu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function WGe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Uu(n)?n(t):n.replace(/%s/i,t)}var qz={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"?qz[e]||qz[e.toLowerCase()]:void 0}function $$(e){var t={},n,r;for(r in e)ir(e,r)&&(n=al(r),n&&(t[n]=e[r]));return t}var QGe={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 YGe(e){var t=[],n;for(n in e)ir(e,n)&&t.push({unit:n,priority:QGe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Wne=/\d/,Os=/\d\d/,Qne=/\d{3}/,F$=/\d{4}/,Ex=/[+-]?\d{6}/,Lr=/\d\d?/,Yne=/\d\d\d\d?/,Gne=/\d\d\d\d\d\d?/,Sx=/\d{1,3}/,B$=/\d{1,4}/,Tx=/[+-]?\d{1,6}/,Lg=/\d+/,wx=/[+-]?\d+/,GGe=/Z|[+-]\d\d:?\d\d/gi,kx=/Z|[+-]\d\d(?::?\d\d)?/gi,qGe=/[+-]?\d+(\.\d{1,3})?/,vO=/[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,Mg=/^[1-9]\d?/,U$=/^([1-9]\d|\d)/,QT;QT={};function Qt(e,t,n){QT[e]=Uu(t)?t:function(r,i){return r&&n?n:t}}function ZGe(e,t){return ir(QT,e)?QT[e](t._strict,t._locale):new RegExp(XGe(e))}function XGe(e){return lc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function lc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ls(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=Ls(t)),n}var DI={};function hr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),vc(t)&&(r=function(o,a){a[t]=Vn(o)}),i=e.length,n=0;n68?1900:2e3)};var qne=$g("FullYear",!0);function tqe(){return xx(this.year())}function $g(e,t){return function(n){return n!=null?(Zne(this,e,n),Ht.updateOffset(this,t),this):Zy(this,e)}}function Zy(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 Zne(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&&!xx(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function nqe(e){return e=al(e),Uu(this[e])?this[e]():this}function rqe(e,t){if(typeof e=="object"){e=$$(e);var n=YGe(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 Xy(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 YT(e,t,n){var r=7+t-n,i=(7+Xy(e,0,r).getUTCDay()-t)%7;return-i+r-1}function nre(e,t,n,r,i){var o=(7+n-r)%7,a=YT(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=$b(l)+s):s>$b(e)?(l=e+1,u=s-$b(e)):(l=e,u=s),{year:l,dayOfYear:u}}function Ky(e,t,n){var r=YT(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+uc(a,t,n)):i>uc(e.year(),t,n)?(o=i-uc(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function uc(e,t,n){var r=YT(e,t,n),i=YT(e+1,t,n);return($b(e)-r+i)/7}dn("w",["ww",2],"wo","week");dn("W",["WW",2],"Wo","isoWeek");Qt("w",Lr,Mg);Qt("ww",Lr,Os);Qt("W",Lr,Mg);Qt("WW",Lr,Os);EO(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function gqe(e){return Ky(e,this._week.dow,this._week.doy).week}var bqe={dow:0,doy:6};function yqe(){return this._week.dow}function Oqe(){return this._week.doy}function vqe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Eqe(e){var t=Ky(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)});EO(["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});EO(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function Sqe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Tqe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function z$(e,t){return e.slice(t,7).concat(e.slice(0,t))}var wqe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),rre="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),kqe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),xqe=vO,Cqe=vO,Aqe=vO;function _qe(e,t){var n=Nl(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?z$(n,this._week.dow):e?n[e.day()]:n}function Rqe(e){return e===!0?z$(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Iqe(e){return e===!0?z$(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Nqe(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=di.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=di.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=di.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=di.call(this._weekdaysParse,a),i!==-1||(i=di.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=di.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=di.call(this._shortWeekdaysParse,a),i!==-1||(i=di.call(this._weekdaysParse,a),i!==-1)?i:(i=di.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=di.call(this._minWeekdaysParse,a),i!==-1||(i=di.call(this._weekdaysParse,a),i!==-1)?i:(i=di.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function Dqe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Nqe.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 Pqe(e){if(!this.isValid())return e!=null?this:NaN;var t=Zy(this,"Day");return e!=null?(e=Sqe(e,this.localeData()),this.add(e-t,"d")):t}function Lqe(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 Mqe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Tqe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function $qe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||V$.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ir(this,"_weekdaysRegex")||(this._weekdaysRegex=xqe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Fqe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||V$.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ir(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cqe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Bqe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||V$.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ir(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Aqe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function V$(){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=lc(this.weekdaysMin(a,"")),l=lc(this.weekdaysShort(a,"")),u=lc(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 H$(){return this.hours()%12||12}function Uqe(){return this.hours()||24}dn("H",["HH",2],0,"hour");dn("h",["hh",2],0,H$);dn("k",["kk",2],0,Uqe);dn("hmm",0,0,function(){return""+H$.apply(this)+Au(this.minutes(),2)});dn("hmmss",0,0,function(){return""+H$.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 ire(e,t){dn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ire("a",!0);ire("A",!1);function ore(e,t){return t._meridiemParse}Qt("a",ore);Qt("A",ore);Qt("H",Lr,U$);Qt("h",Lr,Mg);Qt("k",Lr,Mg);Qt("HH",Lr,Os);Qt("hh",Lr,Os);Qt("kk",Lr,Os);Qt("hmm",Yne);Qt("hmmss",Gne);Qt("Hmm",Yne);Qt("Hmmss",Gne);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[ic]=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[ic]=Vn(e.substr(i))});function jqe(e){return(e+"").toLowerCase().charAt(0)==="p"}var zqe=/[ap]\.?m?\.?/i,Vqe=$g("Hours",!0);function Hqe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var are={calendar:NGe,longDateFormat:MGe,invalidDate:FGe,ordinal:UGe,dayOfMonthOrdinalParse:jGe,relativeTime:VGe,months:oqe,monthsShort:Xne,week:bqe,weekdays:wqe,weekdaysMin:kqe,weekdaysShort:rre,meridiemParse:zqe},jr={},R0={},Jy;function Wqe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=Cx(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Wqe(o,r)>=n-1)break;n--}t++}return Jy}function Yqe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Cx(e){var t=null,n;if(jr[e]===void 0&&typeof rS<"u"&&rS&&rS.exports&&Yqe(e))try{t=Jy._abbr,n=require,n("./locale/"+e),Rd(t)}catch{jr[e]=null}return jr[e]}function Rd(e,t){var n;return e&&(pa(t)?n=Cc(e):n=W$(e,t),n?Jy=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Jy._abbr}function W$(e,t){if(t!==null){var n,r=are;if(t.abbr=e,jr[e]!=null)Vne("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=Cx(t.parentLocale),n!=null)r=n._config;else return R0[t.parentLocale]||(R0[t.parentLocale]=[]),R0[t.parentLocale].push({name:e,config:t}),null;return jr[e]=new L$(II(r,t)),R0[e]&&R0[e].forEach(function(i){W$(i.name,i.config)}),Rd(e),jr[e]}else return delete jr[e],null}function Gqe(e,t){if(t!=null){var n,r,i=are;jr[e]!=null&&jr[e].parentLocale!=null?jr[e].set(II(jr[e]._config,t)):(r=Cx(e),r!=null&&(i=r._config),t=II(i,t),r==null&&(t.abbr=e),n=new L$(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 Cc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Jy;if(!Nl(e)){if(t=Cx(e),t)return t;e=[e]}return Qqe(e)}function qqe(){return NI(jr)}function Q$(e){var t,n=e._a;return n&&_n(e).overflow===-2&&(t=n[rc]<0||n[rc]>11?rc:n[fu]<1||n[fu]>j$(n[Do],n[rc])?fu:n[Pi]<0||n[Pi]>24||n[Pi]===24&&(n[Tl]!==0||n[ic]!==0||n[Mf]!==0)?Pi:n[Tl]<0||n[Tl]>59?Tl:n[ic]<0||n[ic]>59?ic:n[Mf]<0||n[Mf]>999?Mf:-1,_n(e)._overflowDayOfYear&&(tfu)&&(t=fu),_n(e)._overflowWeeks&&t===-1&&(t=JGe),_n(e)._overflowWeekday&&t===-1&&(t=eqe),_n(e).overflow=t),e}var Zqe=/^\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)?)?$/,Xqe=/^\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)?)?$/,Kqe=/Z|[+-]\d\d(?::?\d\d)?/,nE=[["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]],a2=[["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/]],Jqe=/^\/?Date\((-?\d+)/i,eZe=/^(?:(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}))$/,tZe={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 sre(e){var t,n,r=e._i,i=Zqe.exec(r)||Xqe.exec(r),o,a,s,l,u=nE.length,c=a2.length;if(i){for(_n(e).iso=!0,t=0,n=u;t$b(a)||e._dayOfYear===0)&&(_n(e)._overflowDayOfYear=!0),n=Xy(a,0,e._dayOfYear),e._a[rc]=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[ic]===0&&e._a[Mf]===0&&(e._nextDay=!0,e._a[Pi]=0),e._d=(e._useUTC?Xy:mqe).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 uZe(e){var t,n,r,i,o,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=mh(t.GG,e._a[Do],Ky(Pr(),1,4).year),r=mh(t.W,1),i=mh(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Ky(Pr(),o,a),n=mh(t.gg,e._a[Do],u.year),r=mh(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>uc(n,o,a)?_n(e)._overflowWeeks=!0:l!=null?_n(e)._overflowWeekday=!0:(s=nre(n,r,i,o,a),e._a[Do]=s.year,e._dayOfYear=s.dayOfYear)}Ht.ISO_8601=function(){};Ht.RFC_2822=function(){};function G$(e){if(e._f===Ht.ISO_8601){sre(e);return}if(e._f===Ht.RFC_2822){lre(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=Hne(e._f,e._locale).match(M$)||[],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),KGe(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]=cZe(e._locale,e._a[Pi],e._meridiem),u=_n(e).era,u!==null&&(e._a[Do]=e._locale.erasConvertYear(u,e._a[Do])),Y$(e),Q$(e)}function cZe(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 dZe(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:vx()});function dre(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 NZe(){if(!pa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return P$(e,this),e=ure(e),e._a?(t=e._isUTC?Bu(e._a):Pr(e._a),this._isDSTShifted=this.isValid()&&TZe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function DZe(){return this.isValid()?!this._isUTC:!1}function PZe(){return this.isValid()?this._isUTC:!1}function pre(){return this.isValid()?this._isUTC&&this._offset===0:!1}var LZe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,MZe=/^(-|\+)?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 ZE(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:vc(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=LZe.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[ic])*i,ms:Vn(PI(r[Mf]*1e3))*i}):(r=MZe.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=$Ze(Pr(n.from),Pr(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new Ax(n),ZE(e)&&ir(e,"_locale")&&(o._locale=e._locale),ZE(e)&&ir(e,"_isValid")&&(o._isValid=e._isValid),o}jl.fn=Ax.prototype;jl.invalid=SZe;function hf(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Xz(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 $Ze(e,t){var n;return e.isValid()&&t.isValid()?(t=Z$(t,e),e.isBefore(t)?n=Xz(e,t):(n=Xz(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function hre(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Vne(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),mre(this,i,e),this}}function mre(e,t,n,r){var i=t._milliseconds,o=PI(t._days),a=PI(t._months);e.isValid()&&(r=r??!0,a&&Jne(e,Zy(e,"Month")+a*n),o&&Zne(e,"Date",Zy(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Ht.updateOffset(e,o||a))}var FZe=hre(1,"add"),BZe=hre(-1,"subtract");function gre(e){return typeof e=="string"||e instanceof String}function UZe(e){return Dl(e)||yO(e)||gre(e)||vc(e)||zZe(e)||jZe(e)||e===null||e===void 0}function jZe(e){var t=qf(e)&&!N$(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?qE(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",qE(n,"Z")):qE(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nXe(){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 rXe(e){e||(e=this.isUtc()?Ht.defaultFormatUtc:Ht.defaultFormat);var t=qE(this,e);return this.localeData().postformat(t)}function iXe(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 oXe(e){return this.from(Pr(),e)}function aXe(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 sXe(e){return this.to(Pr(),e)}function bre(e){var t;return e===void 0?this._locale._abbr:(t=Cc(e),t!=null&&(this._locale=t),this)}var yre=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 Ore(){return this._locale}var GT=1e3,am=60*GT,qT=60*am,vre=(365*400+97)*24*qT;function sm(e,t){return(e%t+t)%t}function Ere(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-vre:new Date(e,t,n).valueOf()}function Sre(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-vre:Date.UTC(e,t,n)}function lXe(e){var t,n;if(e=al(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Sre:Ere,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-=sm(t+(this._isUTC?0:this.utcOffset()*am),qT);break;case"minute":t=this._d.valueOf(),t-=sm(t,am);break;case"second":t=this._d.valueOf(),t-=sm(t,GT);break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function uXe(e){var t,n;if(e=al(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Sre:Ere,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+=qT-sm(t+(this._isUTC?0:this.utcOffset()*am),qT)-1;break;case"minute":t=this._d.valueOf(),t+=am-sm(t,am)-1;break;case"second":t=this._d.valueOf(),t+=GT-sm(t,GT)-1;break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function cXe(){return this._d.valueOf()-(this._offset||0)*6e4}function dXe(){return Math.floor(this.valueOf()/1e3)}function fXe(){return new Date(this.valueOf())}function pXe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function hXe(){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 mXe(){return this.isValid()?this.toISOString():null}function gXe(){return D$(this)}function bXe(){return pd({},_n(this))}function yXe(){return _n(this).overflow}function OXe(){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",X$);Qt("NN",X$);Qt("NNN",X$);Qt("NNNN",RXe);Qt("NNNNN",IXe);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",Lg);Qt("yy",Lg);Qt("yyy",Lg);Qt("yyyy",Lg);Qt("yo",NXe);hr(["y","yy","yyy","yyyy"],Do);hr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Do]=n._locale.eraYearOrdinalParse(e,i):t[Do]=parseInt(e,10)});function vXe(e,t){var n,r,i,o=this._eras||Cc("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function SXe(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 TXe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),BXe.call(this,e,t,n,r,i))}function BXe(e,t,n,r,i){var o=nre(e,t,n,r,i),a=Xy(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",Wne);hr("Q",function(e,t){t[rc]=(Vn(e)-1)*3});function UXe(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,Mg);Qt("DD",Lr,Os);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 wre=$g("Date",!0);dn("DDD",["DDDD",3],"DDDo","dayOfYear");Qt("DDD",Sx);Qt("DDDD",Qne);hr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function jXe(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,U$);Qt("mm",Lr,Os);hr(["m","mm"],Tl);var zXe=$g("Minutes",!1);dn("s",["ss",2],0,"second");Qt("s",Lr,U$);Qt("ss",Lr,Os);hr(["s","ss"],ic);var VXe=$g("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",Sx,Wne);Qt("SS",Sx,Os);Qt("SSS",Sx,Qne);var hd,kre;for(hd="SSSS";hd.length<=9;hd+="S")Qt(hd,Lg);function HXe(e,t){t[Mf]=Vn(("0."+e)*1e3)}for(hd="S";hd.length<=9;hd+="S")hr(hd,HXe);kre=$g("Milliseconds",!1);dn("z",0,0,"zoneAbbr");dn("zz",0,0,"zoneName");function WXe(){return this._isUTC?"UTC":""}function QXe(){return this._isUTC?"Coordinated Universal Time":""}var Tt=OO.prototype;Tt.add=FZe;Tt.calendar=WZe;Tt.clone=QZe;Tt.diff=JZe;Tt.endOf=uXe;Tt.format=rXe;Tt.from=iXe;Tt.fromNow=oXe;Tt.to=aXe;Tt.toNow=sXe;Tt.get=nqe;Tt.invalidAt=yXe;Tt.isAfter=YZe;Tt.isBefore=GZe;Tt.isBetween=qZe;Tt.isSame=ZZe;Tt.isSameOrAfter=XZe;Tt.isSameOrBefore=KZe;Tt.isValid=gXe;Tt.lang=yre;Tt.locale=bre;Tt.localeData=Ore;Tt.max=gZe;Tt.min=mZe;Tt.parsingFlags=bXe;Tt.set=rqe;Tt.startOf=lXe;Tt.subtract=BZe;Tt.toArray=pXe;Tt.toObject=hXe;Tt.toDate=fXe;Tt.toISOString=tXe;Tt.inspect=nXe;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=mXe;Tt.toString=eXe;Tt.unix=dXe;Tt.valueOf=cXe;Tt.creationData=OXe;Tt.eraName=TXe;Tt.eraNarrow=wXe;Tt.eraAbbr=kXe;Tt.eraYear=xXe;Tt.year=qne;Tt.isLeapYear=tqe;Tt.weekYear=DXe;Tt.isoWeekYear=PXe;Tt.quarter=Tt.quarters=UXe;Tt.month=ere;Tt.daysInMonth=fqe;Tt.week=Tt.weeks=vqe;Tt.isoWeek=Tt.isoWeeks=Eqe;Tt.weeksInYear=$Xe;Tt.weeksInWeekYear=FXe;Tt.isoWeeksInYear=LXe;Tt.isoWeeksInISOWeekYear=MXe;Tt.date=wre;Tt.day=Tt.days=Pqe;Tt.weekday=Lqe;Tt.isoWeekday=Mqe;Tt.dayOfYear=jXe;Tt.hour=Tt.hours=Vqe;Tt.minute=Tt.minutes=zXe;Tt.second=Tt.seconds=VXe;Tt.millisecond=Tt.milliseconds=kre;Tt.utcOffset=kZe;Tt.utc=CZe;Tt.local=AZe;Tt.parseZone=_Ze;Tt.hasAlignedHourOffset=RZe;Tt.isDST=IZe;Tt.isLocal=DZe;Tt.isUtcOffset=PZe;Tt.isUtc=pre;Tt.isUTC=pre;Tt.zoneAbbr=WXe;Tt.zoneName=QXe;Tt.dates=ol("dates accessor is deprecated. Use date instead.",wre);Tt.months=ol("months accessor is deprecated. Use month instead",ere);Tt.years=ol("years accessor is deprecated. Use year instead",qne);Tt.zone=ol("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",xZe);Tt.isDSTShifted=ol("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",NZe);function YXe(e){return Pr(e*1e3)}function GXe(){return Pr.apply(null,arguments).parseZone()}function xre(e){return e}var or=L$.prototype;or.calendar=DGe;or.longDateFormat=$Ge;or.invalidDate=BGe;or.ordinal=zGe;or.preparse=xre;or.postformat=xre;or.relativeTime=HGe;or.pastFuture=WGe;or.set=IGe;or.eras=vXe;or.erasParse=EXe;or.erasConvertYear=SXe;or.erasAbbrRegex=AXe;or.erasNameRegex=CXe;or.erasNarrowRegex=_Xe;or.months=lqe;or.monthsShort=uqe;or.monthsParse=dqe;or.monthsRegex=hqe;or.monthsShortRegex=pqe;or.week=gqe;or.firstDayOfYear=Oqe;or.firstDayOfWeek=yqe;or.weekdays=_qe;or.weekdaysMin=Iqe;or.weekdaysShort=Rqe;or.weekdaysParse=Dqe;or.weekdaysRegex=$qe;or.weekdaysShortRegex=Fqe;or.weekdaysMinRegex=Bqe;or.isPM=jqe;or.meridiem=Hqe;function ZT(e,t,n,r){var i=Cc(),o=Bu().set(r,t);return i[n](o,e)}function Cre(e,t,n){if(vc(e)&&(t=e,e=void 0),e=e||"",t!=null)return ZT(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ZT(e,r,n,"month");return i}function J$(e,t,n,r){typeof e=="boolean"?(vc(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,vc(t)&&(n=t,t=void 0),t=t||"");var i=Cc(),o=e?i._week.dow:0,a,s=[];if(n!=null)return ZT(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=ZT(t,(a+o)%7,r,"day");return s}function qXe(e,t){return Cre(e,t,"months")}function ZXe(e,t){return Cre(e,t,"monthsShort")}function XXe(e,t,n){return J$(e,t,n,"weekdays")}function KXe(e,t,n){return J$(e,t,n,"weekdaysShort")}function JXe(e,t,n){return J$(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.",Cc);var Wu=Math.abs;function eKe(){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 Are(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 tKe(e,t){return Are(this,e,t,1)}function nKe(e,t){return Are(this,e,t,-1)}function Kz(e){return e<0?Math.floor(e):Math.ceil(e)}function rKe(){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+=Kz(MI(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Ls(e/1e3),r.seconds=i%60,o=Ls(i/60),r.minutes=o%60,a=Ls(o/60),r.hours=a%24,t+=Ls(a/24),l=Ls(_re(t)),n+=l,t-=Kz(MI(l)),s=Ls(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function _re(e){return e*4800/146097}function MI(e){return e*146097/4800}function iKe(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+_re(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(MI(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 Ac(e){return function(){return this.as(e)}}var Rre=Ac("ms"),oKe=Ac("s"),aKe=Ac("m"),sKe=Ac("h"),lKe=Ac("d"),uKe=Ac("w"),cKe=Ac("M"),dKe=Ac("Q"),fKe=Ac("y"),pKe=Rre;function hKe(){return jl(this)}function mKe(e){return e=al(e),this.isValid()?this[e+"s"]():NaN}function Ip(e){return function(){return this.isValid()?this._data[e]:NaN}}var gKe=Ip("milliseconds"),bKe=Ip("seconds"),yKe=Ip("minutes"),OKe=Ip("hours"),vKe=Ip("days"),EKe=Ip("months"),SKe=Ip("years");function TKe(){return Ls(this.days()/7)}var qu=Math.round,Fh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wKe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function kKe(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,wKe.apply(null,p)}function xKe(e){return e===void 0?qu:typeof e=="function"?(qu=e,!0):!1}function CKe(e,t){return Fh[e]===void 0?!1:t===void 0?Fh[e]:(Fh[e]=t,e==="s"&&(Fh.ss=t-1),!0)}function AKe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Fh,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Fh,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=kKe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var s2=Math.abs;function ih(e){return(e>0)-(e<0)||+e}function Rx(){if(!this.isValid())return this.localeData().invalidDate();var e=s2(this._milliseconds)/1e3,t=s2(this._days),n=s2(this._months),r,i,o,a,s=this.asSeconds(),l,u,c,d;return s?(r=Ls(e/60),i=Ls(r/60),e%=60,r%=60,o=Ls(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=ih(this._months)!==ih(s)?"-":"",c=ih(this._days)!==ih(s)?"-":"",d=ih(this._milliseconds)!==ih(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=Ax.prototype;Jn.isValid=EZe;Jn.abs=eKe;Jn.add=tKe;Jn.subtract=nKe;Jn.as=iKe;Jn.asMilliseconds=Rre;Jn.asSeconds=oKe;Jn.asMinutes=aKe;Jn.asHours=sKe;Jn.asDays=lKe;Jn.asWeeks=uKe;Jn.asMonths=cKe;Jn.asQuarters=dKe;Jn.asYears=fKe;Jn.valueOf=pKe;Jn._bubble=rKe;Jn.clone=hKe;Jn.get=mKe;Jn.milliseconds=gKe;Jn.seconds=bKe;Jn.minutes=yKe;Jn.hours=OKe;Jn.days=vKe;Jn.weeks=TKe;Jn.months=EKe;Jn.years=SKe;Jn.humanize=AKe;Jn.toISOString=Rx;Jn.toString=Rx;Jn.toJSON=Rx;Jn.locale=bre;Jn.localeData=Ore;Jn.toIsoString=ol("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rx);Jn.lang=yre;dn("X",0,0,"unix");dn("x",0,0,"valueOf");Qt("x",wx);Qt("X",qGe);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";_Ge(Pr);Ht.fn=Tt;Ht.min=bZe;Ht.max=yZe;Ht.now=OZe;Ht.utc=Bu;Ht.unix=YXe;Ht.months=qXe;Ht.isDate=yO;Ht.locale=Rd;Ht.invalid=vx;Ht.duration=jl;Ht.isMoment=Dl;Ht.weekdays=XXe;Ht.parseZone=GXe;Ht.localeData=Cc;Ht.isDuration=ZE;Ht.monthsShort=ZXe;Ht.weekdaysMin=JXe;Ht.defineLocale=W$;Ht.updateLocale=Gqe;Ht.locales=qqe;Ht.weekdaysShort=KXe;Ht.normalizeUnits=al;Ht.relativeTimeRounding=xKe;Ht.relativeTimeThreshold=CKe;Ht.calendarFormat=HZe;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 eF={},_Ke=na;Object.defineProperty(eF,"__esModule",{value:!0});var Ire=eF.default=void 0,RKe=_Ke(ra()),Jz=$;Ire=eF.default=(0,RKe.default)([(0,Jz.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,Jz.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function IKe(e){const{document:t}=e;return $.jsx($me,{sx:{width:"100%"},children:$.jsx(Wme,{children:$.jsxs(Xme,{children:[$.jsx(mi,{variant:"h5",component:"div",noWrap:!0,children:t.title}),$.jsxs(Fs,{direction:"row",alignItems:"center",gap:1,children:[$.jsx(Ire,{fontSize:"small",sx:{color:"text.secondary"}}),$.jsxs(mi,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",Ht(t.updatedAt).fromNow()]})]})]})})})}function NKe(){const e=L1(),{data:t}=mte(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=xGe(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 $.jsxs(Fs,{direction:"row",children:[$.jsx(AGe,{}),$.jsx(as,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:$.jsx(FT,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:$.jsx(as,{className:"loader",children:$.jsx(C1,{size:"sm"})},0),useWindow:!1,children:$.jsx(as,{p:2,width:1,children:$.jsx(Ah,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map((a,s)=>$.jsx(Ah,{item:!0,xs:4,sm:4,md:4,lg:3,children:$.jsx(IKe,{document:a})},s))})})})})]})}const DKe=[{path:"",accessType:2,element:$.jsx(sje,{}),children:[{path:"",element:$.jsx(fje,{})}]},{path:"workspace",accessType:0,element:$.jsx(bje,{}),children:[{path:":workspaceSlug",element:$.jsx(NKe,{})}]},{path:":documentId",accessType:1,element:$.jsx(mke,{}),children:[{path:"",element:$.jsx(aje,{})}]},{path:"auth/callback",accessType:2,element:$.jsx(gje,{})}],PKe=e=>e.map(t=>(t.accessType===0?t.element=$.jsx(Eje,{children:t.element}):t.accessType===2&&(t.element=$.jsx(vje,{children:t.element})),t)),LKe=PKe(DKe);var MKe={VITE_YORKIE_API_ADDR:"https://api.yorkie.dev",VITE_YORKIE_API_KEY:"cmggkp8ksk14av0keupg",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const $Ke=vSe(LKe);fr.defaults.baseURL=MKe.VITE_API_ADDR;function FKe(){const e=Tc($Y),t=cg("(prefers-color-scheme: dark)"),n=N.useMemo(()=>{const r=t?"dark":"light";return eD({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?r:e.theme}})},[e.theme,t]);return $.jsxs(nde,{theme:n,children:[$.jsx(Rge,{}),$.jsx(as,{minHeight:"100vh",children:$.jsx(_Se,{router:$Ke})})]})}var tF={},nF={};nF.__esModule=!0;nF.default=jKe;function KE(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?KE=function(n){return typeof n}:KE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},KE(e)}function l2(){}var BKe={getItem:l2,setItem:l2,removeItem:l2};function UKe(e){if((typeof self>"u"?"undefined":KE(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 jKe(e){var t="".concat(e,"Storage");return UKe(t)?self[t]:BKe}tF.__esModule=!0;tF.default=HKe;var zKe=VKe(nF);function VKe(e){return e&&e.__esModule?e:{default:e}}function HKe(e){var t=(0,zKe.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 Nre=void 0,WKe=QKe(tF);function QKe(e){return e&&e.__esModule?e:{default:e}}var YKe=(0,WKe.default)("local");Nre=YKe;var rF="persist:",Dre="persist/FLUSH",iF="persist/REHYDRATE",Pre="persist/PAUSE",Lre="persist/PERSIST",Mre="persist/PURGE",$re="persist/REGISTER",GKe=-1;function JE(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?JE=function(n){return typeof n}:JE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},JE(e)}function eV(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 qKe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aJe(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 sJe=5e3;function lJe(e,t){var n=e.version!==void 0?e.version:GKe;e.debug;var r=e.stateReconciler===void 0?XKe:e.stateReconciler,i=e.getStoredState||eJe,o=e.timeout!==void 0?e.timeout:sJe,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=oJe(p,["_persist"]),y=m;if(d.type===Lre){var O=!1,b=function(M,D){O||(d.rehydrate(e.key,M,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=KKe(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 M=e.migrate||function(D,R){return Promise.resolve(D)};M(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===Mre)return s=!0,d.result(nJe(e)),Qu({},t(y,d),{_persist:h});if(d.type===Dre)return d.result(a&&a.flush()),Qu({},t(y,d),{_persist:h});if(d.type===Pre)l=!0;else if(d.type===iF){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,A=Qu({},k,{_persist:Qu({},h,{rehydrated:!0})});return u(A)}}}if(!h)return t(c,d);var w=t(y,d);return w===y?c:u(Qu({},w,{_persist:h}))}}function nV(e){return dJe(e)||cJe(e)||uJe()}function uJe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function cJe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function dJe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Fre,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case $re:return $I({},t,{registry:[].concat(nV(t.registry),[n.key])});case iF:var r=t.registry.indexOf(n.key),i=nV(t.registry);return i.splice(r,1),$I({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function hJe(e,t,n){var r=n||!1,i=ID(pJe,Fre,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:$re,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=$I({},i,{purge:function(){var u=[];return e.dispatch({type:Mre,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Dre,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:Pre})},persist:function(){e.dispatch({type:Lre,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const mJe=SY({auth:mje,config:CTe,user:Oje,editor:oke}),gJe={key:"root",storage:Nre,whitelist:["auth","config"]},bJe=lJe(gJe,mJe),Bre=pTe({reducer:bJe,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient"],ignoredPaths:["editor.doc","editor.client"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client"]}})});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 yJe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iV(e,t){for(var n=0;n["users",e],TJe=()=>{const e=dg(),t=Tc(hje);t.accessToken&&(fr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=fte({queryKey:SJe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await fr.get("/users")).data});return N.useEffect(()=>{n.isSuccess?e(uI(n.data)):n.isError&&(e(X5(null)),e(uI(null)),fr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n};function wJe(e){const{children:t}=e,{isSuccess:n,isLoading:r}=TJe();return $.jsx(K5.Provider,{value:{isLoggedIn:n,isLoading:r},children:t})}const kJe=hJe(Bre),xJe=new Hje;u2.createRoot(document.getElementById("root")).render($.jsx(vn.StrictMode,{children:$.jsx(lEe,{store:Bre,children:$.jsx(Ure,{loading:null,persistor:kJe,children:$.jsx(qje,{client:xJe,children:$.jsx(wJe,{children:$.jsx(FKe,{})})})})})}))});export default CJe(); +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Zz={};function qne(e,t){Ht.deprecationHandler!=null&&Ht.deprecationHandler(e,t),Zz[e]||(Gne(t),Zz[e]=!0)}Ht.suppressDeprecationWarnings=!1;Ht.deprecationHandler=null;function Uu(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function VGe(e){var t,n;for(n in e)ir(e,n)&&(t=e[n],Uu(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 II(e,t){var n=pd({},e),r;for(r in t)ir(t,r)&&(qf(e[r])&&qf(t[r])?(n[r]={},pd(n[r],e[r]),pd(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)ir(e,r)&&!ir(t,r)&&qf(e[r])&&(n[r]=pd({},n[r]));return n}function M$(e){e!=null&&this.set(e)}var NI;Object.keys?NI=Object.keys:NI=function(e){var t,n=[];for(t in e)ir(e,t)&&n.push(t);return n};var HGe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function WGe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Uu(r)?r.call(t,n):r}function Au(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 $$=/(\[[^\[]*\])|(\\)?([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,tE=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,a2={},am={};function dn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(am[e]=i),t&&(am[t[0]]=function(){return Au(i.apply(this,arguments),t[1],t[2])}),n&&(am[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function QGe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function YGe(e){var t=e.match($$),n,r;for(n=0,r=t.length;n=0&&tE.test(e);)e=e.replace(tE,r),tE.lastIndex=0,n-=1;return e}var GGe={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 qGe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match($$).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var ZGe="Invalid date";function XGe(){return this._invalidDate}var KGe="%d",JGe=/\d{1,2}/;function eqe(e){return this._ordinal.replace("%d",e)}var tqe={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 nqe(e,t,n,r){var i=this._relativeTime[n];return Uu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function rqe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Uu(n)?n(t):n.replace(/%s/i,t)}var Xz={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"?Xz[e]||Xz[e.toLowerCase()]:void 0}function F$(e){var t={},n,r;for(r in e)ir(e,r)&&(n=al(r),n&&(t[n]=e[r]));return t}var iqe={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 oqe(e){var t=[],n;for(n in e)ir(e,n)&&t.push({unit:n,priority:iqe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Xne=/\d/,Os=/\d\d/,Kne=/\d{3}/,B$=/\d{4}/,Sx=/[+-]?\d{6}/,Lr=/\d\d?/,Jne=/\d\d\d\d?/,ere=/\d\d\d\d\d\d?/,Tx=/\d{1,3}/,U$=/\d{1,4}/,wx=/[+-]?\d{1,6}/,$g=/\d+/,kx=/[+-]?\d+/,aqe=/Z|[+-]\d\d:?\d\d/gi,xx=/Z|[+-]\d\d(?::?\d\d)?/gi,sqe=/[+-]?\d+(\.\d{1,3})?/,vO=/[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,Fg=/^[1-9]\d?/,j$=/^([1-9]\d|\d)/,QT;QT={};function Qt(e,t,n){QT[e]=Uu(t)?t:function(r,i){return r&&n?n:t}}function lqe(e,t){return ir(QT,e)?QT[e](t._strict,t._locale):new RegExp(uqe(e))}function uqe(e){return lc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function lc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ls(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=Ls(t)),n}var DI={};function hr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),vc(t)&&(r=function(o,a){a[t]=Vn(o)}),i=e.length,n=0;n68?1900:2e3)};var tre=Bg("FullYear",!0);function pqe(){return Cx(this.year())}function Bg(e,t){return function(n){return n!=null?(nre(this,e,n),Ht.updateOffset(this,t),this):Ky(this,e)}}function Ky(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 nre(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 hqe(e){return e=al(e),Uu(this[e])?this[e]():this}function mqe(e,t){if(typeof e=="object"){e=F$(e);var n=oqe(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 Jy(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 YT(e,t,n){var r=7+t-n,i=(7+Jy(e,0,r).getUTCDay()-t)%7;return-i+r-1}function lre(e,t,n,r,i){var o=(7+n-r)%7,a=YT(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=Bb(l)+s):s>Bb(e)?(l=e+1,u=s-Bb(e)):(l=e,u=s),{year:l,dayOfYear:u}}function e1(e,t,n){var r=YT(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+uc(a,t,n)):i>uc(e.year(),t,n)?(o=i-uc(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function uc(e,t,n){var r=YT(e,t,n),i=YT(e+1,t,n);return(Bb(e)-r+i)/7}dn("w",["ww",2],"wo","week");dn("W",["WW",2],"Wo","isoWeek");Qt("w",Lr,Fg);Qt("ww",Lr,Os);Qt("W",Lr,Fg);Qt("WW",Lr,Os);EO(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function Aqe(e){return e1(e,this._week.dow,this._week.doy).week}var _qe={dow:0,doy:6};function Rqe(){return this._week.dow}function Iqe(){return this._week.doy}function Nqe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Dqe(e){var t=e1(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)});EO(["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});EO(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function Pqe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Lqe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function V$(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Mqe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ure="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fqe=vO,Bqe=vO,Uqe=vO;function jqe(e,t){var n=Nl(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?V$(n,this._week.dow):e?n[e.day()]:n}function zqe(e){return e===!0?V$(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Vqe(e){return e===!0?V$(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Hqe(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=di.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=di.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=di.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=di.call(this._weekdaysParse,a),i!==-1||(i=di.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=di.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=di.call(this._shortWeekdaysParse,a),i!==-1||(i=di.call(this._weekdaysParse,a),i!==-1)?i:(i=di.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=di.call(this._minWeekdaysParse,a),i!==-1||(i=di.call(this._weekdaysParse,a),i!==-1)?i:(i=di.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function Wqe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Hqe.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 Qqe(e){if(!this.isValid())return e!=null?this:NaN;var t=Ky(this,"Day");return e!=null?(e=Pqe(e,this.localeData()),this.add(e-t,"d")):t}function Yqe(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 Gqe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Lqe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function qqe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||H$.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ir(this,"_weekdaysRegex")||(this._weekdaysRegex=Fqe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zqe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||H$.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ir(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Bqe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xqe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||H$.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ir(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Uqe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function H$(){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=lc(this.weekdaysMin(a,"")),l=lc(this.weekdaysShort(a,"")),u=lc(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 W$(){return this.hours()%12||12}function Kqe(){return this.hours()||24}dn("H",["HH",2],0,"hour");dn("h",["hh",2],0,W$);dn("k",["kk",2],0,Kqe);dn("hmm",0,0,function(){return""+W$.apply(this)+Au(this.minutes(),2)});dn("hmmss",0,0,function(){return""+W$.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 cre(e,t){dn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}cre("a",!0);cre("A",!1);function dre(e,t){return t._meridiemParse}Qt("a",dre);Qt("A",dre);Qt("H",Lr,j$);Qt("h",Lr,Fg);Qt("k",Lr,Fg);Qt("HH",Lr,Os);Qt("hh",Lr,Os);Qt("kk",Lr,Os);Qt("hmm",Jne);Qt("hmmss",ere);Qt("Hmm",Jne);Qt("Hmmss",ere);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[ic]=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[ic]=Vn(e.substr(i))});function Jqe(e){return(e+"").toLowerCase().charAt(0)==="p"}var eZe=/[ap]\.?m?\.?/i,tZe=Bg("Hours",!0);function nZe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var fre={calendar:HGe,longDateFormat:GGe,invalidDate:ZGe,ordinal:KGe,dayOfMonthOrdinalParse:JGe,relativeTime:tqe,months:bqe,monthsShort:rre,week:_qe,weekdays:Mqe,weekdaysMin:$qe,weekdaysShort:ure,meridiemParse:eZe},jr={},I0={},t1;function rZe(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&&rZe(o,r)>=n-1)break;n--}t++}return t1}function oZe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ax(e){var t=null,n;if(jr[e]===void 0&&typeof nS<"u"&&nS&&nS.exports&&oZe(e))try{t=t1._abbr,n=require,n("./locale/"+e),Rd(t)}catch{jr[e]=null}return jr[e]}function Rd(e,t){var n;return e&&(pa(t)?n=Cc(e):n=Q$(e,t),n?t1=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),t1._abbr}function Q$(e,t){if(t!==null){var n,r=fre;if(t.abbr=e,jr[e]!=null)qne("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 I0[t.parentLocale]||(I0[t.parentLocale]=[]),I0[t.parentLocale].push({name:e,config:t}),null;return jr[e]=new M$(II(r,t)),I0[e]&&I0[e].forEach(function(i){Q$(i.name,i.config)}),Rd(e),jr[e]}else return delete jr[e],null}function aZe(e,t){if(t!=null){var n,r,i=fre;jr[e]!=null&&jr[e].parentLocale!=null?jr[e].set(II(jr[e]._config,t)):(r=Ax(e),r!=null&&(i=r._config),t=II(i,t),r==null&&(t.abbr=e),n=new M$(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 Cc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return t1;if(!Nl(e)){if(t=Ax(e),t)return t;e=[e]}return iZe(e)}function sZe(){return NI(jr)}function Y$(e){var t,n=e._a;return n&&_n(e).overflow===-2&&(t=n[rc]<0||n[rc]>11?rc:n[fu]<1||n[fu]>z$(n[Do],n[rc])?fu:n[Pi]<0||n[Pi]>24||n[Pi]===24&&(n[Tl]!==0||n[ic]!==0||n[Mf]!==0)?Pi:n[Tl]<0||n[Tl]>59?Tl:n[ic]<0||n[ic]>59?ic:n[Mf]<0||n[Mf]>999?Mf:-1,_n(e)._overflowDayOfYear&&(tfu)&&(t=fu),_n(e)._overflowWeeks&&t===-1&&(t=dqe),_n(e)._overflowWeekday&&t===-1&&(t=fqe),_n(e).overflow=t),e}var lZe=/^\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)?)?$/,uZe=/^\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)?)?$/,cZe=/Z|[+-]\d\d(?::?\d\d)?/,nE=[["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]],s2=[["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/]],dZe=/^\/?Date\((-?\d+)/i,fZe=/^(?:(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}))$/,pZe={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 pre(e){var t,n,r=e._i,i=lZe.exec(r)||uZe.exec(r),o,a,s,l,u=nE.length,c=s2.length;if(i){for(_n(e).iso=!0,t=0,n=u;tBb(a)||e._dayOfYear===0)&&(_n(e)._overflowDayOfYear=!0),n=Jy(a,0,e._dayOfYear),e._a[rc]=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[ic]===0&&e._a[Mf]===0&&(e._nextDay=!0,e._a[Pi]=0),e._d=(e._useUTC?Jy:Cqe).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 EZe(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=gh(t.GG,e._a[Do],e1(Pr(),1,4).year),r=gh(t.W,1),i=gh(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=e1(Pr(),o,a),n=gh(t.gg,e._a[Do],u.year),r=gh(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>uc(n,o,a)?_n(e)._overflowWeeks=!0:l!=null?_n(e)._overflowWeekday=!0:(s=lre(n,r,i,o,a),e._a[Do]=s.year,e._dayOfYear=s.dayOfYear)}Ht.ISO_8601=function(){};Ht.RFC_2822=function(){};function q$(e){if(e._f===Ht.ISO_8601){pre(e);return}if(e._f===Ht.RFC_2822){hre(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=Zne(e._f,e._locale).match($$)||[],c=i.length,n=0;n0&&_n(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),am[o]?(r?_n(e).empty=!1:_n(e).unusedTokens.push(o),cqe(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]=SZe(e._locale,e._a[Pi],e._meridiem),u=_n(e).era,u!==null&&(e._a[Do]=e._locale.erasConvertYear(u,e._a[Do])),G$(e),Y$(e)}function SZe(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 TZe(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 bre(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 HZe(){if(!pa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return L$(e,this),e=mre(e),e._a?(t=e._isUTC?Bu(e._a):Pr(e._a),this._isDSTShifted=this.isValid()&&LZe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function WZe(){return this.isValid()?!this._isUTC:!1}function QZe(){return this.isValid()?this._isUTC:!1}function Ore(){return this.isValid()?this._isUTC&&this._offset===0:!1}var YZe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,GZe=/^(-|\+)?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 qE(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:vc(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=YZe.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[ic])*i,ms:Vn(PI(r[Mf]*1e3))*i}):(r=GZe.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=qZe(Pr(n.from),Pr(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new _x(n),qE(e)&&ir(e,"_locale")&&(o._locale=e._locale),qE(e)&&ir(e,"_isValid")&&(o._isValid=e._isValid),o}jl.fn=_x.prototype;jl.invalid=PZe;function hf(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Jz(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 qZe(e,t){var n;return e.isValid()&&t.isValid()?(t=X$(t,e),e.isBefore(t)?n=Jz(e,t):(n=Jz(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function vre(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(qne(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),Ere(this,i,e),this}}function Ere(e,t,n,r){var i=t._milliseconds,o=PI(t._days),a=PI(t._months);e.isValid()&&(r=r??!0,a&&ore(e,Ky(e,"Month")+a*n),o&&nre(e,"Date",Ky(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Ht.updateOffset(e,o||a))}var ZZe=vre(1,"add"),XZe=vre(-1,"subtract");function Sre(e){return typeof e=="string"||e instanceof String}function KZe(e){return Dl(e)||yO(e)||Sre(e)||vc(e)||eXe(e)||JZe(e)||e===null||e===void 0}function JZe(e){var t=qf(e)&&!D$(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?GE(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",GE(n,"Z")):GE(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hXe(){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 mXe(e){e||(e=this.isUtc()?Ht.defaultFormatUtc:Ht.defaultFormat);var t=GE(this,e);return this.localeData().postformat(t)}function gXe(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 bXe(e){return this.from(Pr(),e)}function yXe(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 OXe(e){return this.to(Pr(),e)}function Tre(e){var t;return e===void 0?this._locale._abbr:(t=Cc(e),t!=null&&(this._locale=t),this)}var wre=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 kre(){return this._locale}var GT=1e3,sm=60*GT,qT=60*sm,xre=(365*400+97)*24*qT;function lm(e,t){return(e%t+t)%t}function Cre(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xre:new Date(e,t,n).valueOf()}function Are(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xre:Date.UTC(e,t,n)}function vXe(e){var t,n;if(e=al(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Are:Cre,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-=lm(t+(this._isUTC?0:this.utcOffset()*sm),qT);break;case"minute":t=this._d.valueOf(),t-=lm(t,sm);break;case"second":t=this._d.valueOf(),t-=lm(t,GT);break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function EXe(e){var t,n;if(e=al(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Are:Cre,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+=qT-lm(t+(this._isUTC?0:this.utcOffset()*sm),qT)-1;break;case"minute":t=this._d.valueOf(),t+=sm-lm(t,sm)-1;break;case"second":t=this._d.valueOf(),t+=GT-lm(t,GT)-1;break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function SXe(){return this._d.valueOf()-(this._offset||0)*6e4}function TXe(){return Math.floor(this.valueOf()/1e3)}function wXe(){return new Date(this.valueOf())}function kXe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xXe(){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 CXe(){return this.isValid()?this.toISOString():null}function AXe(){return P$(this)}function _Xe(){return pd({},_n(this))}function RXe(){return _n(this).overflow}function IXe(){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",K$);Qt("NN",K$);Qt("NNN",K$);Qt("NNNN",zXe);Qt("NNNNN",VXe);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",$g);Qt("yy",$g);Qt("yyy",$g);Qt("yyyy",$g);Qt("yo",HXe);hr(["y","yy","yyy","yyyy"],Do);hr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Do]=n._locale.eraYearOrdinalParse(e,i):t[Do]=parseInt(e,10)});function NXe(e,t){var n,r,i,o=this._eras||Cc("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function PXe(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 LXe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),XXe.call(this,e,t,n,r,i))}function XXe(e,t,n,r,i){var o=lre(e,t,n,r,i),a=Jy(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",Xne);hr("Q",function(e,t){t[rc]=(Vn(e)-1)*3});function KXe(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,Fg);Qt("DD",Lr,Os);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 Rre=Bg("Date",!0);dn("DDD",["DDDD",3],"DDDo","dayOfYear");Qt("DDD",Tx);Qt("DDDD",Kne);hr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function JXe(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,j$);Qt("mm",Lr,Os);hr(["m","mm"],Tl);var eKe=Bg("Minutes",!1);dn("s",["ss",2],0,"second");Qt("s",Lr,j$);Qt("ss",Lr,Os);hr(["s","ss"],ic);var tKe=Bg("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,Xne);Qt("SS",Tx,Os);Qt("SSS",Tx,Kne);var hd,Ire;for(hd="SSSS";hd.length<=9;hd+="S")Qt(hd,$g);function nKe(e,t){t[Mf]=Vn(("0."+e)*1e3)}for(hd="S";hd.length<=9;hd+="S")hr(hd,nKe);Ire=Bg("Milliseconds",!1);dn("z",0,0,"zoneAbbr");dn("zz",0,0,"zoneName");function rKe(){return this._isUTC?"UTC":""}function iKe(){return this._isUTC?"Coordinated Universal Time":""}var Tt=OO.prototype;Tt.add=ZZe;Tt.calendar=rXe;Tt.clone=iXe;Tt.diff=dXe;Tt.endOf=EXe;Tt.format=mXe;Tt.from=gXe;Tt.fromNow=bXe;Tt.to=yXe;Tt.toNow=OXe;Tt.get=hqe;Tt.invalidAt=RXe;Tt.isAfter=oXe;Tt.isBefore=aXe;Tt.isBetween=sXe;Tt.isSame=lXe;Tt.isSameOrAfter=uXe;Tt.isSameOrBefore=cXe;Tt.isValid=AXe;Tt.lang=wre;Tt.locale=Tre;Tt.localeData=kre;Tt.max=AZe;Tt.min=CZe;Tt.parsingFlags=_Xe;Tt.set=mqe;Tt.startOf=vXe;Tt.subtract=XZe;Tt.toArray=kXe;Tt.toObject=xXe;Tt.toDate=wXe;Tt.toISOString=pXe;Tt.inspect=hXe;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=CXe;Tt.toString=fXe;Tt.unix=TXe;Tt.valueOf=SXe;Tt.creationData=IXe;Tt.eraName=LXe;Tt.eraNarrow=MXe;Tt.eraAbbr=$Xe;Tt.eraYear=FXe;Tt.year=tre;Tt.isLeapYear=pqe;Tt.weekYear=WXe;Tt.isoWeekYear=QXe;Tt.quarter=Tt.quarters=KXe;Tt.month=are;Tt.daysInMonth=wqe;Tt.week=Tt.weeks=Nqe;Tt.isoWeek=Tt.isoWeeks=Dqe;Tt.weeksInYear=qXe;Tt.weeksInWeekYear=ZXe;Tt.isoWeeksInYear=YXe;Tt.isoWeeksInISOWeekYear=GXe;Tt.date=Rre;Tt.day=Tt.days=Qqe;Tt.weekday=Yqe;Tt.isoWeekday=Gqe;Tt.dayOfYear=JXe;Tt.hour=Tt.hours=tZe;Tt.minute=Tt.minutes=eKe;Tt.second=Tt.seconds=tKe;Tt.millisecond=Tt.milliseconds=Ire;Tt.utcOffset=$Ze;Tt.utc=BZe;Tt.local=UZe;Tt.parseZone=jZe;Tt.hasAlignedHourOffset=zZe;Tt.isDST=VZe;Tt.isLocal=WZe;Tt.isUtcOffset=QZe;Tt.isUtc=Ore;Tt.isUTC=Ore;Tt.zoneAbbr=rKe;Tt.zoneName=iKe;Tt.dates=ol("dates accessor is deprecated. Use date instead.",Rre);Tt.months=ol("months accessor is deprecated. Use month instead",are);Tt.years=ol("years accessor is deprecated. Use year instead",tre);Tt.zone=ol("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",FZe);Tt.isDSTShifted=ol("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",HZe);function oKe(e){return Pr(e*1e3)}function aKe(){return Pr.apply(null,arguments).parseZone()}function Nre(e){return e}var or=M$.prototype;or.calendar=WGe;or.longDateFormat=qGe;or.invalidDate=XGe;or.ordinal=eqe;or.preparse=Nre;or.postformat=Nre;or.relativeTime=nqe;or.pastFuture=rqe;or.set=VGe;or.eras=NXe;or.erasParse=DXe;or.erasConvertYear=PXe;or.erasAbbrRegex=UXe;or.erasNameRegex=BXe;or.erasNarrowRegex=jXe;or.months=vqe;or.monthsShort=Eqe;or.monthsParse=Tqe;or.monthsRegex=xqe;or.monthsShortRegex=kqe;or.week=Aqe;or.firstDayOfYear=Iqe;or.firstDayOfWeek=Rqe;or.weekdays=jqe;or.weekdaysMin=Vqe;or.weekdaysShort=zqe;or.weekdaysParse=Wqe;or.weekdaysRegex=qqe;or.weekdaysShortRegex=Zqe;or.weekdaysMinRegex=Xqe;or.isPM=Jqe;or.meridiem=nZe;function ZT(e,t,n,r){var i=Cc(),o=Bu().set(r,t);return i[n](o,e)}function Dre(e,t,n){if(vc(e)&&(t=e,e=void 0),e=e||"",t!=null)return ZT(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ZT(e,r,n,"month");return i}function eF(e,t,n,r){typeof e=="boolean"?(vc(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,vc(t)&&(n=t,t=void 0),t=t||"");var i=Cc(),o=e?i._week.dow:0,a,s=[];if(n!=null)return ZT(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=ZT(t,(a+o)%7,r,"day");return s}function sKe(e,t){return Dre(e,t,"months")}function lKe(e,t){return Dre(e,t,"monthsShort")}function uKe(e,t,n){return eF(e,t,n,"weekdays")}function cKe(e,t,n){return eF(e,t,n,"weekdaysShort")}function dKe(e,t,n){return eF(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.",Cc);var Wu=Math.abs;function fKe(){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 Pre(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 pKe(e,t){return Pre(this,e,t,1)}function hKe(e,t){return Pre(this,e,t,-1)}function eV(e){return e<0?Math.floor(e):Math.ceil(e)}function mKe(){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+=eV(MI(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Ls(e/1e3),r.seconds=i%60,o=Ls(i/60),r.minutes=o%60,a=Ls(o/60),r.hours=a%24,t+=Ls(a/24),l=Ls(Lre(t)),n+=l,t-=eV(MI(l)),s=Ls(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Lre(e){return e*4800/146097}function MI(e){return e*146097/4800}function gKe(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+Lre(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(MI(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 Ac(e){return function(){return this.as(e)}}var Mre=Ac("ms"),bKe=Ac("s"),yKe=Ac("m"),OKe=Ac("h"),vKe=Ac("d"),EKe=Ac("w"),SKe=Ac("M"),TKe=Ac("Q"),wKe=Ac("y"),kKe=Mre;function xKe(){return jl(this)}function CKe(e){return e=al(e),this.isValid()?this[e+"s"]():NaN}function Ip(e){return function(){return this.isValid()?this._data[e]:NaN}}var AKe=Ip("milliseconds"),_Ke=Ip("seconds"),RKe=Ip("minutes"),IKe=Ip("hours"),NKe=Ip("days"),DKe=Ip("months"),PKe=Ip("years");function LKe(){return Ls(this.days()/7)}var qu=Math.round,Bh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function MKe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function $Ke(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,MKe.apply(null,p)}function FKe(e){return e===void 0?qu:typeof e=="function"?(qu=e,!0):!1}function BKe(e,t){return Bh[e]===void 0?!1:t===void 0?Bh[e]:(Bh[e]=t,e==="s"&&(Bh.ss=t-1),!0)}function UKe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Bh,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Bh,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=$Ke(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var l2=Math.abs;function ih(e){return(e>0)-(e<0)||+e}function Ix(){if(!this.isValid())return this.localeData().invalidDate();var e=l2(this._milliseconds)/1e3,t=l2(this._days),n=l2(this._months),r,i,o,a,s=this.asSeconds(),l,u,c,d;return s?(r=Ls(e/60),i=Ls(r/60),e%=60,r%=60,o=Ls(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=ih(this._months)!==ih(s)?"-":"",c=ih(this._days)!==ih(s)?"-":"",d=ih(this._milliseconds)!==ih(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=DZe;Jn.abs=fKe;Jn.add=pKe;Jn.subtract=hKe;Jn.as=gKe;Jn.asMilliseconds=Mre;Jn.asSeconds=bKe;Jn.asMinutes=yKe;Jn.asHours=OKe;Jn.asDays=vKe;Jn.asWeeks=EKe;Jn.asMonths=SKe;Jn.asQuarters=TKe;Jn.asYears=wKe;Jn.valueOf=kKe;Jn._bubble=mKe;Jn.clone=xKe;Jn.get=CKe;Jn.milliseconds=AKe;Jn.seconds=_Ke;Jn.minutes=RKe;Jn.hours=IKe;Jn.days=NKe;Jn.weeks=LKe;Jn.months=DKe;Jn.years=PKe;Jn.humanize=UKe;Jn.toISOString=Ix;Jn.toString=Ix;Jn.toJSON=Ix;Jn.locale=Tre;Jn.localeData=kre;Jn.toIsoString=ol("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ix);Jn.lang=wre;dn("X",0,0,"unix");dn("x",0,0,"valueOf");Qt("x",kx);Qt("X",sqe);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";jGe(Pr);Ht.fn=Tt;Ht.min=_Ze;Ht.max=RZe;Ht.now=IZe;Ht.utc=Bu;Ht.unix=oKe;Ht.months=sKe;Ht.isDate=yO;Ht.locale=Rd;Ht.invalid=Ex;Ht.duration=jl;Ht.isMoment=Dl;Ht.weekdays=uKe;Ht.parseZone=aKe;Ht.localeData=Cc;Ht.isDuration=qE;Ht.monthsShort=lKe;Ht.weekdaysMin=dKe;Ht.defineLocale=Q$;Ht.updateLocale=aZe;Ht.locales=sZe;Ht.weekdaysShort=cKe;Ht.normalizeUnits=al;Ht.relativeTimeRounding=FKe;Ht.relativeTimeThreshold=BKe;Ht.calendarFormat=nXe;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 tF={},jKe=na;Object.defineProperty(tF,"__esModule",{value:!0});var $re=tF.default=void 0,zKe=jKe(ra()),tV=$;$re=tF.default=(0,zKe.default)([(0,tV.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,tV.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function VKe(e){const{document:t}=e,n=hg(),r=()=>{n(`/document/${t.slug}`)};return $.jsx(Yme,{sx:{width:"100%"},children:$.jsx(tge,{onClick:r,children:$.jsxs(sge,{children:[$.jsx(mi,{variant:"h5",component:"div",noWrap:!0,children:t.title}),$.jsxs(ts,{direction:"row",alignItems:"center",gap:1,children:[$.jsx($re,{fontSize:"small",sx:{color:"text.secondary"}}),$.jsxs(mi,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",Ht(t.updatedAt).fromNow()]})]})]})})})}function HKe(){const e=fk(),{data:t}=Ete(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=FGe(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 $.jsxs(ts,{direction:"row",children:[$.jsx(UGe,{}),$.jsx(Vs,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:$.jsx(FT,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:$.jsx(Vs,{className:"loader",children:$.jsx(_1,{size:"sm"})},0),useWindow:!1,children:$.jsx(Vs,{p:2,width:1,children:$.jsx(_h,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(a=>$.jsx(_h,{item:!0,xs:4,sm:4,md:4,lg:3,children:$.jsx(VKe,{document:a})},a.id))})})})})]})}const WKe=[{path:"",accessType:2,element:$.jsx(Xje,{}),children:[{path:"",element:$.jsx(nze,{})}]},{path:"workspace",accessType:0,element:$.jsx(sze,{}),children:[{path:":workspaceSlug",element:$.jsx(HKe,{})}]},{path:"document",accessType:0,element:$.jsx(wke,{}),children:[{path:":documentSlug",element:$.jsx(Zje,{})}]},{path:"auth/callback",accessType:2,element:$.jsx(aze,{})}],QKe=e=>e.map(t=>(t.accessType===0?t.element=$.jsx(dze,{children:t.element}):t.accessType===2&&(t.element=$.jsx(cze,{children:t.element})),t)),YKe=QKe(WKe);var GKe={VITE_YORKIE_API_ADDR:"https://api.yorkie.dev",VITE_YORKIE_API_KEY:"cmggkp8ksk14av0keupg",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const qKe=RSe(YKe);dr.defaults.baseURL=GKe.VITE_API_ADDR;function ZKe(){const e=Tc(VY),t=dg("(prefers-color-scheme: dark)"),n=N.useMemo(()=>{const r=t?"dark":"light";return eD({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?r:e.theme}})},[e.theme,t]);return $.jsxs(ude,{theme:n,children:[$.jsx(Uge,{}),$.jsx(Vs,{minHeight:"100vh",children:$.jsx(BSe,{router:qKe})})]})}var nF={},rF={};rF.__esModule=!0;rF.default=JKe;function XE(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?XE=function(n){return typeof n}:XE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},XE(e)}function u2(){}var XKe={getItem:u2,setItem:u2,removeItem:u2};function KKe(e){if((typeof self>"u"?"undefined":XE(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 JKe(e){var t="".concat(e,"Storage");return KKe(t)?self[t]:XKe}nF.__esModule=!0;nF.default=nJe;var eJe=tJe(rF);function tJe(e){return e&&e.__esModule?e:{default:e}}function nJe(e){var t=(0,eJe.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 Fre=void 0,rJe=iJe(nF);function iJe(e){return e&&e.__esModule?e:{default:e}}var oJe=(0,rJe.default)("local");Fre=oJe;var iF="persist:",Bre="persist/FLUSH",oF="persist/REHYDRATE",Ure="persist/PAUSE",jre="persist/PERSIST",zre="persist/PURGE",Vre="persist/REGISTER",aJe=-1;function KE(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?KE=function(n){return typeof n}:KE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},KE(e)}function nV(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 sJe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yJe(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 OJe=5e3;function vJe(e,t){var n=e.version!==void 0?e.version:aJe;e.debug;var r=e.stateReconciler===void 0?uJe:e.stateReconciler,i=e.getStoredState||fJe,o=e.timeout!==void 0?e.timeout:OJe,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=bJe(p,["_persist"]),y=m;if(d.type===jre){var v=!1,b=function(M,D){v||(d.rehydrate(e.key,M,D),v=!0)};if(o&&setTimeout(function(){!v&&b(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),l=!1,a||(a=cJe(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 M=e.migrate||function(D,R){return Promise.resolve(D)};M(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===zre)return s=!0,d.result(hJe(e)),Qu({},t(y,d),{_persist:h});if(d.type===Bre)return d.result(a&&a.flush()),Qu({},t(y,d),{_persist:h});if(d.type===Ure)l=!0;else if(d.type===oF){if(s)return Qu({},y,{_persist:Qu({},h,{rehydrated:!0})});if(d.key===e.key){var O=t(y,d),S=d.payload,k=r!==!1&&S!==void 0?r(S,c,O,e):O,A=Qu({},k,{_persist:Qu({},h,{rehydrated:!0})});return u(A)}}}if(!h)return t(c,d);var w=t(y,d);return w===y?c:u(Qu({},w,{_persist:h}))}}function iV(e){return TJe(e)||SJe(e)||EJe()}function EJe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function SJe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function TJe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Hre,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Vre:return $I({},t,{registry:[].concat(iV(t.registry),[n.key])});case oF:var r=t.registry.indexOf(n.key),i=iV(t.registry);return i.splice(r,1),$I({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function xJe(e,t,n){var r=n||!1,i=ID(kJe,Hre,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:Vre,key:u})},a=function(u,c,d){var p={type:oF,payload:c,err:d,key:u};e.dispatch(p),i.dispatch(p),r&&s.getState().bootstrapped&&(r(),r=!1)},s=$I({},i,{purge:function(){var u=[];return e.dispatch({type:zre,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Bre,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:Ure})},persist:function(){e.dispatch({type:jre,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const CJe=AY({auth:oze,config:$Te,user:uze,editor:mke}),AJe={key:"root",storage:Fre,whitelist:["auth","config"]},_Je=vJe(AJe,CJe),Wre=TTe({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 JE(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?JE=function(n){return typeof n}:JE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},JE(e)}function RJe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aV(e,t){for(var n=0;n["users",e],LJe=()=>{const e=fg(),t=Tc(ize);t.accessToken&&(dr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=e$({queryKey:PJe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await dr.get("/users")).data});return N.useEffect(()=>{n.isSuccess?e(TI(n.data)):n.isError&&(e(t$(null)),e(TI(null)),dr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n};function MJe(e){const{children:t}=e,{isSuccess:n,isLoading:r}=LJe();return $.jsx(n$.Provider,{value:{isLoggedIn:n,isLoading:r},children:t})}const $Je=xJe(Wre),FJe=new Ije;c2.createRoot(document.getElementById("root")).render($.jsx(vn.StrictMode,{children:$.jsx(yEe,{store:Wre,children:$.jsx(Qre,{loading:null,persistor:$Je,children:$.jsx(Mje,{client:FJe,children:$.jsx(MJe,{children:$.jsx(ZKe,{})})})})})}))});export default BJe(); diff --git a/index.html b/index.html index 7f4eca33..07132e54 100644 --- a/index.html +++ b/index.html @@ -39,7 +39,7 @@ })(window.location); - +