diff --git a/assets/index-DubJhX4-.js b/assets/index-xU2-_P2J.js similarity index 50% rename from assets/index-DubJhX4-.js rename to assets/index-xU2-_P2J.js index 0fc503b1..833f65b5 100644 --- a/assets/index-DubJhX4-.js +++ b/assets/index-xU2-_P2J.js @@ -1,4 +1,4 @@ -var pve=Object.defineProperty;var hve=(e,t,n)=>t in e?pve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var mve=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ks=(e,t,n)=>(hve(e,typeof t!="symbol"?t+"":t,n),n),AD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Pe=(e,t,n)=>(AD(e,t,"read from private field"),n?n.call(e):t.get(e)),gn=(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)},rn=(e,t,n,r)=>(AD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var jw=(e,t,n,r)=>({set _(i){rn(e,t,i,n)},get _(){return Pe(e,t,r)}}),Jn=(e,t,n)=>(AD(e,t,"access private method"),n);var eEt=mve((fEt,wC)=>{function SJ(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 Rf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gve(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 TJ={exports:{}},CA={},wJ={exports:{}},xr={};/** +var dOe=Object.defineProperty;var fOe=(e,t,n)=>t in e?dOe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pOe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ka=(e,t,n)=>(fOe(e,typeof t!="symbol"?t+"":t,n),n),CD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Le=(e,t,n)=>(CD(e,t,"read from private field"),n?n.call(e):t.get(e)),gn=(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)},rn=(e,t,n,r)=>(CD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Uw=(e,t,n,r)=>({set _(i){rn(e,t,i,n)},get _(){return Le(e,t,r)}}),Jn=(e,t,n)=>(CD(e,t,"access private method"),n);var u1t=pOe((E1t,SC)=>{function vJ(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 md=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hOe(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 OJ={exports:{}},xA={},EJ={exports:{}},xr={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var pve=Object.defineProperty;var hve=(e,t,n)=>t in e?pve(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 $S=Symbol.for("react.element"),bve=Symbol.for("react.portal"),yve=Symbol.for("react.fragment"),vve=Symbol.for("react.strict_mode"),Ove=Symbol.for("react.profiler"),Eve=Symbol.for("react.provider"),Sve=Symbol.for("react.context"),Tve=Symbol.for("react.forward_ref"),wve=Symbol.for("react.suspense"),xve=Symbol.for("react.memo"),kve=Symbol.for("react.lazy"),FV=Symbol.iterator;function Cve(e){return e===null||typeof e!="object"?null:(e=FV&&e[FV]||e["@@iterator"],typeof e=="function"?e:null)}var xJ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kJ=Object.assign,CJ={};function Vy(e,t,n){this.props=e,this.context=t,this.refs=CJ,this.updater=n||xJ}Vy.prototype.isReactComponent={};Vy.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")};Vy.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _J(){}_J.prototype=Vy.prototype;function s5(e,t,n){this.props=e,this.context=t,this.refs=CJ,this.updater=n||xJ}var a5=s5.prototype=new _J;a5.constructor=s5;kJ(a5,Vy.prototype);a5.isPureReactComponent=!0;var BV=Array.isArray,AJ=Object.prototype.hasOwnProperty,l5={current:null},RJ={key:!0,ref:!0,__self:!0,__source:!0};function IJ(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)AJ.call(t,r)&&!RJ.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1t in e?pve(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 Dve=P,Nve=Symbol.for("react.element"),Pve=Symbol.for("react.fragment"),Lve=Object.prototype.hasOwnProperty,Mve=Dve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$ve={key:!0,ref:!0,__self:!0,__source:!0};function DJ(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Lve.call(t,r)&&!$ve.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:Nve,type:e,key:o,ref:s,props:i,_owner:Mve.current}}CA.Fragment=Pve;CA.jsx=DJ;CA.jsxs=DJ;TJ.exports=CA;var N=TJ.exports,o3={},NJ={exports:{}},Kl={},PJ={exports:{}},LJ={};/** + */var ROe=L,IOe=Symbol.for("react.element"),DOe=Symbol.for("react.fragment"),NOe=Object.prototype.hasOwnProperty,POe=ROe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,LOe={key:!0,ref:!0,__self:!0,__source:!0};function AJ(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)NOe.call(t,r)&&!LOe.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:IOe,type:e,key:o,ref:a,props:i,_owner:POe.current}}xA.Fragment=DOe;xA.jsx=AJ;xA.jsxs=AJ;OJ.exports=xA;var N=OJ.exports,nL={},RJ={exports:{}},Kl={},IJ={exports:{}},DJ={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var pve=Object.defineProperty;var hve=(e,t,n)=>t in e?pve(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(G,ee){var Q=G.length;G.push(ee);e:for(;0>>1,Te=G[ae];if(0>>1;aei(Oe,Q))mei(Re,Oe)?(G[ae]=Re,G[me]=Q,ae=me):(G[ae]=Oe,G[pe]=Q,ae=pe);else if(mei(Re,Q))G[ae]=Re,G[me]=Q,ae=me;else break e}}return ee}function i(G,ee){var Q=G.sortIndex-ee.sortIndex;return Q!==0?Q:G.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,p=3,m=!1,g=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(G){for(var ee=n(u);ee!==null;){if(ee.callback===null)r(u);else if(ee.startTime<=G)r(u),ee.sortIndex=ee.expirationTime,t(l,ee);else break;ee=n(u)}}function C(G){if(v=!1,x(G),!g)if(n(l)!==null)g=!0,X(I);else{var ee=n(u);ee!==null&&Z(C,ee.startTime-G)}}function I(G,ee){g=!1,v&&(v=!1,O(F),F=-1),m=!0;var Q=p;try{for(x(ee),d=n(l);d!==null&&(!(d.expirationTime>ee)||G&&!W());){var ae=d.callback;if(typeof ae=="function"){d.callback=null,p=d.priorityLevel;var Te=ae(d.expirationTime<=ee);ee=e.unstable_now(),typeof Te=="function"?d.callback=Te:d===n(l)&&r(l),x(ee)}else r(l);d=n(l)}if(d!==null)var te=!0;else{var pe=n(u);pe!==null&&Z(C,pe.startTime-ee),te=!1}return te}finally{d=null,p=Q,m=!1}}var _=!1,w=null,F=-1,M=5,L=-1;function W(){return!(e.unstable_now()-LG||125ae?(G.sortIndex=Q,t(u,G),n(l)===null&&G===n(u)&&(v?(O(F),F=-1):v=!0,Z(C,Q-ae))):(G.sortIndex=Te,t(l,G),g||m||(g=!0,X(I))),G},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(G){var ee=p;return function(){var Q=p;p=ee;try{return G.apply(this,arguments)}finally{p=Q}}}})(LJ);PJ.exports=LJ;var Fve=PJ.exports;/** + */(function(e){function t(q,te){var Q=q.length;q.push(te);e:for(;0>>1,he=q[se];if(0>>1;sei(ve,Q))uei(we,ve)?(q[se]=we,q[ue]=Q,se=ue):(q[se]=ve,q[le]=Q,se=le);else if(uei(we,Q))q[se]=we,q[ue]=Q,se=ue;else break e}}return te}function i(q,te){var Q=q.sortIndex-te.sortIndex;return Q!==0?Q:q.id-te.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,f=3,m=!1,g=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(q){for(var te=n(u);te!==null;){if(te.callback===null)r(u);else if(te.startTime<=q)r(u),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(u)}}function k(q){if(v=!1,w(q),!g)if(n(l)!==null)g=!0,X(A);else{var te=n(u);te!==null&&Z(k,te.startTime-q)}}function A(q,te){g=!1,v&&(v=!1,O(F),F=-1),m=!0;var Q=f;try{for(w(te),d=n(l);d!==null&&(!(d.expirationTime>te)||q&&!V());){var se=d.callback;if(typeof se=="function"){d.callback=null,f=d.priorityLevel;var he=se(d.expirationTime<=te);te=e.unstable_now(),typeof he=="function"?d.callback=he:d===n(l)&&r(l),w(te)}else r(l);d=n(l)}if(d!==null)var J=!0;else{var le=n(u);le!==null&&Z(k,le.startTime-te),J=!1}return J}finally{d=null,f=Q,m=!1}}var C=!1,x=null,F=-1,M=5,P=-1;function V(){return!(e.unstable_now()-Pq||125se?(q.sortIndex=Q,t(u,q),n(l)===null&&q===n(u)&&(v?(O(F),F=-1):v=!0,Z(k,Q-se))):(q.sortIndex=he,t(l,q),g||m||(g=!0,X(A))),q},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(q){var te=f;return function(){var Q=f;f=te;try{return q.apply(this,arguments)}finally{f=Q}}}})(DJ);IJ.exports=DJ;var MOe=IJ.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var pve=Object.defineProperty;var hve=(e,t,n)=>t in e?pve(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 MJ=P,Yl=Fve;function Ut(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"),s3=Object.prototype.hasOwnProperty,Bve=/^[: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]*$/,jV={},zV={};function Uve(e){return s3.call(zV,e)?!0:s3.call(jV,e)?!1:Bve.test(e)?zV[e]=!0:(jV[e]=!0,!1)}function jve(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 zve(e,t,n,r){if(t===null||typeof t>"u"||jve(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 Fa(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Us={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Us[e]=new Fa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Us[t]=new Fa(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Us[e]=new Fa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Us[e]=new Fa(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){Us[e]=new Fa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Us[e]=new Fa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Us[e]=new Fa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Us[e]=new Fa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Us[e]=new Fa(e,5,!1,e.toLowerCase(),null,!1,!1)});var c5=/[\-:]([a-z])/g;function d5(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(c5,d5);Us[t]=new Fa(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(c5,d5);Us[t]=new Fa(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(c5,d5);Us[t]=new Fa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Us[e]=new Fa(e,1,!1,e.toLowerCase(),null,!1,!1)});Us.xlinkHref=new Fa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Us[e]=new Fa(e,1,!1,e.toLowerCase(),null,!0,!0)});function f5(e,t,n,r){var i=Us.hasOwnProperty(t)?Us[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rL=Object.prototype.hasOwnProperty,$Oe=/^[: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]*$/,FV={},BV={};function FOe(e){return rL.call(BV,e)?!0:rL.call(FV,e)?!1:$Oe.test(e)?BV[e]=!0:(FV[e]=!0,!1)}function BOe(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 UOe(e,t,n,r){if(t===null||typeof t>"u"||BOe(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 Fs(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 Ua={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ua[e]=new Fs(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ua[t]=new Fs(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ua[e]=new Fs(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ua[e]=new Fs(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){Ua[e]=new Fs(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ua[e]=new Fs(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ua[e]=new Fs(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ua[e]=new Fs(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ua[e]=new Fs(e,5,!1,e.toLowerCase(),null,!1,!1)});var l5=/[\-:]([a-z])/g;function u5(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(l5,u5);Ua[t]=new Fs(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(l5,u5);Ua[t]=new Fs(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(l5,u5);Ua[t]=new Fs(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ua[e]=new Fs(e,1,!1,e.toLowerCase(),null,!1,!1)});Ua.xlinkHref=new Fs("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ua[e]=new Fs(e,1,!1,e.toLowerCase(),null,!0,!0)});function c5(e,t,n,r){var i=Ua.hasOwnProperty(t)?Ua[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{DD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hv(e):""}function Vve(e){switch(e.tag){case 5:return Hv(e.type);case 16:return Hv("Lazy");case 13:return Hv("Suspense");case 19:return Hv("SuspenseList");case 0:case 2:case 15:return e=ND(e.type,!1),e;case 11:return e=ND(e.type.render,!1),e;case 1:return e=ND(e.type,!0),e;default:return""}}function c3(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 q0:return"Fragment";case G0:return"Portal";case a3:return"Profiler";case p5:return"StrictMode";case l3:return"Suspense";case u3:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BJ:return(e.displayName||"Context")+".Consumer";case FJ:return(e._context.displayName||"Context")+".Provider";case h5:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case m5:return t=e.displayName||null,t!==null?t:c3(e.type)||"Memo";case Bp:t=e._payload,e=e._init;try{return c3(e(t))}catch{}}return null}function Hve(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 c3(t);case 8:return t===p5?"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 Rh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jJ(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wve(e){var t=jJ(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hw(e){e._valueTracker||(e._valueTracker=Wve(e))}function zJ(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jJ(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xC(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 d3(e,t){var n=t.checked;return Ki({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function HV(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rh(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 VJ(e,t){t=t.checked,t!=null&&f5(e,"checked",t,!1)}function f3(e,t){VJ(e,t);var n=Rh(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")?p3(e,t.type,n):t.hasOwnProperty("defaultValue")&&p3(e,t.type,Rh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function WV(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 p3(e,t,n){(t!=="number"||xC(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wv=Array.isArray;function Ob(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ww.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rE(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cO={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},Qve=["Webkit","ms","Moz","O"];Object.keys(cO).forEach(function(e){Qve.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cO[t]=cO[e]})});function YJ(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cO.hasOwnProperty(e)&&cO[e]?(""+t).trim():t+"px"}function GJ(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=YJ(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Yve=Ki({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 g3(e,t){if(t){if(Yve[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ut(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ut(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ut(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ut(62))}}function b3(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 y3=null;function g5(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var v3=null,Eb=null,Sb=null;function GV(e){if(e=US(e)){if(typeof v3!="function")throw Error(Ut(280));var t=e.stateNode;t&&(t=DA(t),v3(e.stateNode,e.type,t))}}function qJ(e){Eb?Sb?Sb.push(e):Sb=[e]:Eb=e}function ZJ(){if(Eb){var e=Eb,t=Sb;if(Sb=Eb=null,GV(e),t)for(e=0;e>>=0,e===0?32:31-(iOe(e)/oOe|0)|0}var Qw=64,Yw=4194304;function Qv(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 AC(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Qv(a):(o&=s,o!==0&&(r=Qv(o)))}else s=n&~i,s!==0?r=Qv(s):o!==0&&(r=Qv(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 FS(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oc(t),e[t]=n}function uOe(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=fO),rH=" ",iH=!1;function gee(e,t){switch(e){case"keyup":return $Oe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bee(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Z0=!1;function BOe(e,t){switch(e){case"compositionend":return bee(t);case"keypress":return t.which!==32?null:(iH=!0,rH);case"textInput":return e=t.data,e===rH&&iH?null:e;default:return null}}function UOe(e,t){if(Z0)return e==="compositionend"||!w5&&gee(e,t)?(e=hee(),Sk=E5=ih=null,Z0=!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=lH(n)}}function Eee(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eee(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function See(){for(var e=window,t=xC();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xC(e.document)}return t}function x5(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 qOe(e){var t=See(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Eee(n.ownerDocument.documentElement,n)){if(r!==null&&x5(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=uH(n,o);var s=uH(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,X0=null,x3=null,hO=null,k3=!1;function cH(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;k3||X0==null||X0!==xC(r)||(r=X0,"selectionStart"in r&&x5(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}),hO&&uE(hO,r)||(hO=r,r=DC(x3,"onSelect"),0eb||(e.current=D3[eb],D3[eb]=null,eb--)}function vi(e,t){eb++,D3[eb]=e.current,e.current=t}var Ih={},da=Qh(Ih),nl=Qh(!1),cg=Ih;function dy(e,t){var n=e.type.contextTypes;if(!n)return Ih;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 rl(e){return e=e.childContextTypes,e!=null}function PC(){Ai(nl),Ai(da)}function bH(e,t,n){if(da.current!==Ih)throw Error(Ut(168));vi(da,t),vi(nl,n)}function Iee(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(Ut(108,Hve(e)||"Unknown",i));return Ki({},n,r)}function LC(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ih,cg=da.current,vi(da,e),vi(nl,nl.current),!0}function yH(e,t,n){var r=e.stateNode;if(!r)throw Error(Ut(169));n?(e=Iee(e,t,cg),r.__reactInternalMemoizedMergedChildContext=e,Ai(nl),Ai(da),vi(da,e)):Ai(nl),vi(nl,n)}var kf=null,NA=!1,YD=!1;function Dee(e){kf===null?kf=[e]:kf.push(e)}function aEe(e){NA=!0,Dee(e)}function Yh(){if(!YD&&kf!==null){YD=!0;var e=0,t=ti;try{var n=kf;for(ti=1;e>=s,i-=s,Df=1<<32-Oc(t)+i|n<F?(M=w,w=null):M=w.sibling;var L=p(O,w,x[F],C);if(L===null){w===null&&(w=M);break}e&&w&&L.alternate===null&&t(O,w),S=o(L,S,F),_===null?I=L:_.sibling=L,_=L,w=M}if(F===x.length)return n(O,w),Vi&&km(O,F),I;if(w===null){for(;FF?(M=w,w=null):M=w.sibling;var W=p(O,w,L.value,C);if(W===null){w===null&&(w=M);break}e&&w&&W.alternate===null&&t(O,w),S=o(W,S,F),_===null?I=W:_.sibling=W,_=W,w=M}if(L.done)return n(O,w),Vi&&km(O,F),I;if(w===null){for(;!L.done;F++,L=x.next())L=d(O,L.value,C),L!==null&&(S=o(L,S,F),_===null?I=L:_.sibling=L,_=L);return Vi&&km(O,F),I}for(w=r(O,w);!L.done;F++,L=x.next())L=m(w,O,F,L.value,C),L!==null&&(e&&L.alternate!==null&&w.delete(L.key===null?F:L.key),S=o(L,S,F),_===null?I=L:_.sibling=L,_=L);return e&&w.forEach(function(H){return t(O,H)}),Vi&&km(O,F),I}function E(O,S,x,C){if(typeof x=="object"&&x!==null&&x.type===q0&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Vw:e:{for(var I=x.key,_=S;_!==null;){if(_.key===I){if(I=x.type,I===q0){if(_.tag===7){n(O,_.sibling),S=i(_,x.props.children),S.return=O,O=S;break e}}else if(_.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Bp&&xH(I)===_.type){n(O,_.sibling),S=i(_,x.props),S.ref=ov(O,_,x),S.return=O,O=S;break e}n(O,_);break}else t(O,_);_=_.sibling}x.type===q0?(S=sg(x.props.children,O.mode,C,x.key),S.return=O,O=S):(C=Rk(x.type,x.key,x.props,null,O.mode,C),C.ref=ov(O,S,x),C.return=O,O=C)}return s(O);case G0:e:{for(_=x.key;S!==null;){if(S.key===_)if(S.tag===4&&S.stateNode.containerInfo===x.containerInfo&&S.stateNode.implementation===x.implementation){n(O,S.sibling),S=i(S,x.children||[]),S.return=O,O=S;break e}else{n(O,S);break}else t(O,S);S=S.sibling}S=tN(x,O.mode,C),S.return=O,O=S}return s(O);case Bp:return _=x._init,E(O,S,_(x._payload),C)}if(Wv(x))return g(O,S,x,C);if(ev(x))return v(O,S,x,C);ex(O,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,S!==null&&S.tag===6?(n(O,S.sibling),S=i(S,x),S.return=O,O=S):(n(O,S),S=eN(x,O.mode,C),S.return=O,O=S),s(O)):n(O,S)}return E}var py=Uee(!0),jee=Uee(!1),jS={},Ad=Qh(jS),pE=Qh(jS),hE=Qh(jS);function Fm(e){if(e===jS)throw Error(Ut(174));return e}function P5(e,t){switch(vi(hE,t),vi(pE,e),vi(Ad,jS),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:m3(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=m3(t,e)}Ai(Ad),vi(Ad,t)}function hy(){Ai(Ad),Ai(pE),Ai(hE)}function zee(e){Fm(hE.current);var t=Fm(Ad.current),n=m3(t,e.type);t!==n&&(vi(pE,e),vi(Ad,n))}function L5(e){pE.current===e&&(Ai(Ad),Ai(pE))}var qi=Qh(0);function jC(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 GD=[];function M5(){for(var e=0;en?n:4,e(!0);var r=qD.transition;qD.transition={};try{e(!1),t()}finally{ti=n,qD.transition=r}}function ite(){return Fu().memoizedState}function dEe(e,t,n){var r=vh(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ote(e))ste(t,n);else if(n=Mee(e,t,n,r),n!==null){var i=Na();Ec(n,e,r,i),ate(n,t,r)}}function fEe(e,t,n){var r=vh(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ote(e))ste(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,wc(a,s)){var l=t.interleaved;l===null?(i.next=i,D5(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Mee(e,t,i,r),n!==null&&(i=Na(),Ec(n,e,r,i),ate(n,t,r))}}function ote(e){var t=e.alternate;return e===Xi||t!==null&&t===Xi}function ste(e,t){mO=zC=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ate(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,y5(e,n)}}var VC={readContext:$u,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useInsertionEffect:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useSyncExternalStore:ea,useId:ea,unstable_isNewReconciler:!1},pEe={readContext:$u,useCallback:function(e,t){return od().memoizedState=[e,t===void 0?null:t],e},useContext:$u,useEffect:CH,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,kk(4194308,4,Jee.bind(null,t,e),n)},useLayoutEffect:function(e,t){return kk(4194308,4,e,t)},useInsertionEffect:function(e,t){return kk(4,2,e,t)},useMemo:function(e,t){var n=od();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=od();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=dEe.bind(null,Xi,e),[r.memoizedState,e]},useRef:function(e){var t=od();return e={current:e},t.memoizedState=e},useState:kH,useDebugValue:j5,useDeferredValue:function(e){return od().memoizedState=e},useTransition:function(){var e=kH(!1),t=e[0];return e=cEe.bind(null,e[1]),od().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xi,i=od();if(Vi){if(n===void 0)throw Error(Ut(407));n=n()}else{if(n=t(),hs===null)throw Error(Ut(349));fg&30||Wee(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,CH(Yee.bind(null,r,o,e),[e]),r.flags|=2048,bE(9,Qee.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=od(),t=hs.identifierPrefix;if(Vi){var n=Nf,r=Df;n=(r&~(1<<32-Oc(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mE++,0s||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{RD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?VO(e):""}function jOe(e){switch(e.tag){case 5:return VO(e.type);case 16:return VO("Lazy");case 13:return VO("Suspense");case 19:return VO("SuspenseList");case 0:case 2:case 15:return e=ID(e.type,!1),e;case 11:return e=ID(e.type.render,!1),e;case 1:return e=ID(e.type,!0),e;default:return""}}function sL(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 qb:return"Fragment";case Gb:return"Portal";case iL:return"Profiler";case d5:return"StrictMode";case oL:return"Suspense";case aL:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case MJ:return(e.displayName||"Context")+".Consumer";case LJ:return(e._context.displayName||"Context")+".Provider";case f5:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case p5:return t=e.displayName||null,t!==null?t:sL(e.type)||"Memo";case Bp:t=e._payload,e=e._init;try{return sL(e(t))}catch{}}return null}function zOe(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 sL(t);case 8:return t===d5?"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 Rh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function FJ(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function VOe(e){var t=FJ(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 Vw(e){e._valueTracker||(e._valueTracker=VOe(e))}function BJ(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=FJ(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function TC(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 lL(e,t){var n=t.checked;return Xi({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jV(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rh(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 UJ(e,t){t=t.checked,t!=null&&c5(e,"checked",t,!1)}function uL(e,t){UJ(e,t);var n=Rh(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")?cL(e,t.type,n):t.hasOwnProperty("defaultValue")&&cL(e,t.type,Rh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zV(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 cL(e,t,n){(t!=="number"||TC(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var WO=Array.isArray;function O0(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ww.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nE(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var u1={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(u1).forEach(function(e){WOe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),u1[t]=u1[e]})});function WJ(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||u1.hasOwnProperty(e)&&u1[e]?(""+t).trim():t+"px"}function HJ(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=WJ(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var HOe=Xi({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 pL(e,t){if(t){if(HOe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ut(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ut(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ut(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ut(62))}}function hL(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 mL=null;function h5(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gL=null,E0=null,S0=null;function HV(e){if(e=BS(e)){if(typeof gL!="function")throw Error(Ut(280));var t=e.stateNode;t&&(t=RA(t),gL(e.stateNode,e.type,t))}}function QJ(e){E0?S0?S0.push(e):S0=[e]:E0=e}function YJ(){if(E0){var e=E0,t=S0;if(S0=E0=null,HV(e),t)for(e=0;e>>=0,e===0?32:31-(n1e(e)/r1e|0)|0}var Hw=64,Qw=4194304;function HO(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 CC(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=HO(s):(o&=a,o!==0&&(r=HO(o)))}else a=n&~i,a!==0?r=HO(a):o!==0&&(r=HO(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 $S(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oc(t),e[t]=n}function s1e(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=d1),eW=" ",tW=!1;function pee(e,t){switch(e){case"keyup":return L1e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hee(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zb=!1;function $1e(e,t){switch(e){case"compositionend":return hee(t);case"keypress":return t.which!==32?null:(tW=!0,eW);case"textInput":return e=t.data,e===eW&&tW?null:e;default:return null}}function F1e(e,t){if(Zb)return e==="compositionend"||!S5&&pee(e,t)?(e=dee(),Ok=v5=ih=null,Zb=!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=oW(n)}}function yee(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yee(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vee(){for(var e=window,t=TC();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=TC(e.document)}return t}function T5(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 Y1e(e){var t=vee(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yee(n.ownerDocument.documentElement,n)){if(r!==null&&T5(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=aW(n,o);var a=aW(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,Xb=null,SL=null,p1=null,TL=!1;function sW(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;TL||Xb==null||Xb!==TC(r)||(r=Xb,"selectionStart"in r&&T5(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}),p1&&lE(p1,r)||(p1=r,r=RC(SL,"onSelect"),0e0||(e.current=AL[e0],AL[e0]=null,e0--)}function vi(e,t){e0++,AL[e0]=e.current,e.current=t}var Ih={},ds=Qh(Ih),nl=Qh(!1),cg=Ih;function dy(e,t){var n=e.type.contextTypes;if(!n)return Ih;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 rl(e){return e=e.childContextTypes,e!=null}function DC(){Ai(nl),Ai(ds)}function hW(e,t,n){if(ds.current!==Ih)throw Error(Ut(168));vi(ds,t),vi(nl,n)}function _ee(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(Ut(108,zOe(e)||"Unknown",i));return Xi({},n,r)}function NC(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ih,cg=ds.current,vi(ds,e),vi(nl,nl.current),!0}function mW(e,t,n){var r=e.stateNode;if(!r)throw Error(Ut(169));n?(e=_ee(e,t,cg),r.__reactInternalMemoizedMergedChildContext=e,Ai(nl),Ai(ds),vi(ds,e)):Ai(nl),vi(nl,n)}var Cf=null,IA=!1,HD=!1;function Aee(e){Cf===null?Cf=[e]:Cf.push(e)}function oEe(e){IA=!0,Aee(e)}function Yh(){if(!HD&&Cf!==null){HD=!0;var e=0,t=ti;try{var n=Cf;for(ti=1;e>=a,i-=a,Df=1<<32-Oc(t)+i|n<F?(M=x,x=null):M=x.sibling;var P=f(O,x,w[F],k);if(P===null){x===null&&(x=M);break}e&&x&&P.alternate===null&&t(O,x),E=o(P,E,F),C===null?A=P:C.sibling=P,C=P,x=M}if(F===w.length)return n(O,x),Vi&&km(O,F),A;if(x===null){for(;FF?(M=x,x=null):M=x.sibling;var V=f(O,x,P.value,k);if(V===null){x===null&&(x=M);break}e&&x&&V.alternate===null&&t(O,x),E=o(V,E,F),C===null?A=V:C.sibling=V,C=V,x=M}if(P.done)return n(O,x),Vi&&km(O,F),A;if(x===null){for(;!P.done;F++,P=w.next())P=d(O,P.value,k),P!==null&&(E=o(P,E,F),C===null?A=P:C.sibling=P,C=P);return Vi&&km(O,F),A}for(x=r(O,x);!P.done;F++,P=w.next())P=m(x,O,F,P.value,k),P!==null&&(e&&P.alternate!==null&&x.delete(P.key===null?F:P.key),E=o(P,E,F),C===null?A=P:C.sibling=P,C=P);return e&&x.forEach(function(W){return t(O,W)}),Vi&&km(O,F),A}function S(O,E,w,k){if(typeof w=="object"&&w!==null&&w.type===qb&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case zw:e:{for(var A=w.key,C=E;C!==null;){if(C.key===A){if(A=w.type,A===qb){if(C.tag===7){n(O,C.sibling),E=i(C,w.props.children),E.return=O,O=E;break e}}else if(C.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Bp&&SW(A)===C.type){n(O,C.sibling),E=i(C,w.props),E.ref=iO(O,C,w),E.return=O,O=E;break e}n(O,C);break}else t(O,C);C=C.sibling}w.type===qb?(E=ag(w.props.children,O.mode,k,w.key),E.return=O,O=E):(k=_k(w.type,w.key,w.props,null,O.mode,k),k.ref=iO(O,E,w),k.return=O,O=k)}return a(O);case Gb:e:{for(C=w.key;E!==null;){if(E.key===C)if(E.tag===4&&E.stateNode.containerInfo===w.containerInfo&&E.stateNode.implementation===w.implementation){n(O,E.sibling),E=i(E,w.children||[]),E.return=O,O=E;break e}else{n(O,E);break}else t(O,E);E=E.sibling}E=JD(w,O.mode,k),E.return=O,O=E}return a(O);case Bp:return C=w._init,S(O,E,C(w._payload),k)}if(WO(w))return g(O,E,w,k);if(Jv(w))return v(O,E,w,k);Jw(O,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,E!==null&&E.tag===6?(n(O,E.sibling),E=i(E,w),E.return=O,O=E):(n(O,E),E=KD(w,O.mode,k),E.return=O,O=E),a(O)):n(O,E)}return S}var py=$ee(!0),Fee=$ee(!1),US={},Rd=Qh(US),fE=Qh(US),pE=Qh(US);function Fm(e){if(e===US)throw Error(Ut(174));return e}function D5(e,t){switch(vi(pE,t),vi(fE,e),vi(Rd,US),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fL(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fL(t,e)}Ai(Rd),vi(Rd,t)}function hy(){Ai(Rd),Ai(fE),Ai(pE)}function Bee(e){Fm(pE.current);var t=Fm(Rd.current),n=fL(t,e.type);t!==n&&(vi(fE,e),vi(Rd,n))}function N5(e){fE.current===e&&(Ai(Rd),Ai(fE))}var Gi=Qh(0);function BC(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 QD=[];function P5(){for(var e=0;en?n:4,e(!0);var r=YD.transition;YD.transition={};try{e(!1),t()}finally{ti=n,YD.transition=r}}function tte(){return Fu().memoizedState}function uEe(e,t,n){var r=vh(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nte(e))rte(t,n);else if(n=Nee(e,t,n,r),n!==null){var i=Ns();Ec(n,e,r,i),ite(n,t,r)}}function cEe(e,t,n){var r=vh(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nte(e))rte(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,wc(s,a)){var l=t.interleaved;l===null?(i.next=i,R5(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Nee(e,t,i,r),n!==null&&(i=Ns(),Ec(n,e,r,i),ite(n,t,r))}}function nte(e){var t=e.alternate;return e===Zi||t!==null&&t===Zi}function rte(e,t){h1=UC=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ite(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,g5(e,n)}}var jC={readContext:$u,useCallback:es,useContext:es,useEffect:es,useImperativeHandle:es,useInsertionEffect:es,useLayoutEffect:es,useMemo:es,useReducer:es,useRef:es,useState:es,useDebugValue:es,useDeferredValue:es,useTransition:es,useMutableSource:es,useSyncExternalStore:es,useId:es,unstable_isNewReconciler:!1},dEe={readContext:$u,useCallback:function(e,t){return od().memoizedState=[e,t===void 0?null:t],e},useContext:$u,useEffect:wW,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wk(4194308,4,Zee.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wk(4194308,4,e,t)},useInsertionEffect:function(e,t){return wk(4,2,e,t)},useMemo:function(e,t){var n=od();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=od();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=uEe.bind(null,Zi,e),[r.memoizedState,e]},useRef:function(e){var t=od();return e={current:e},t.memoizedState=e},useState:TW,useDebugValue:B5,useDeferredValue:function(e){return od().memoizedState=e},useTransition:function(){var e=TW(!1),t=e[0];return e=lEe.bind(null,e[1]),od().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zi,i=od();if(Vi){if(n===void 0)throw Error(Ut(407));n=n()}else{if(n=t(),ha===null)throw Error(Ut(349));fg&30||zee(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,wW(Wee.bind(null,r,o,e),[e]),r.flags|=2048,gE(9,Vee.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=od(),t=ha.identifierPrefix;if(Vi){var n=Nf,r=Df;n=(r&~(1<<32-Oc(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hE++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[md]=t,e[fE]=r,gte(e,t,!1,!1),t.stateNode=e;e:{switch(s=b3(n,r),n){case"dialog":wi("cancel",e),wi("close",e),i=r;break;case"iframe":case"object":case"embed":wi("load",e),i=r;break;case"video":case"audio":for(i=0;igy&&(t.flags|=128,r=!0,sv(o,!1),t.lanes=4194304)}else{if(!r)if(e=jC(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sv(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Vi)return ta(t),null}else 2*To()-o.renderingStartTime>gy&&n!==1073741824&&(t.flags|=128,r=!0,sv(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=To(),t.sibling=null,n=qi.current,vi(qi,r?n&1|2:n&1),t):(ta(t),null);case 22:case 23:return Y5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Al&1073741824&&(ta(t),t.subtreeFlags&6&&(t.flags|=8192)):ta(t),null;case 24:return null;case 25:return null}throw Error(Ut(156,t.tag))}function EEe(e,t){switch(C5(t),t.tag){case 1:return rl(t.type)&&PC(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hy(),Ai(nl),Ai(da),M5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return L5(t),null;case 13:if(Ai(qi),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ut(340));fy()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ai(qi),null;case 4:return hy(),null;case 10:return I5(t.type._context),null;case 22:case 23:return Y5(),null;case 24:return null;default:return null}}var nx=!1,oa=!1,SEe=typeof WeakSet=="function"?WeakSet:Set,pn=null;function ib(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){uo(e,t,r)}else n.current=null}function H3(e,t,n){try{n()}catch(r){uo(e,t,r)}}var MH=!1;function TEe(e,t){if(C3=RC,e=See(),x5(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 s=0,a=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++u===i&&(a=s),p===o&&++c===r&&(l=s),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_3={focusedElem:e,selectionRange:n},RC=!1,pn=t;pn!==null;)if(t=pn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pn=e;else for(;pn!==null;){t=pn;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,E=g.memoizedState,O=t.stateNode,S=O.getSnapshotBeforeUpdate(t.elementType===t.type?v:ic(t.type,v),E);O.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ut(163))}}catch(C){uo(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,pn=e;break}pn=t.return}return g=MH,MH=!1,g}function gO(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&&H3(t,n,o)}i=i.next}while(i!==r)}}function MA(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 W3(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 vte(e){var t=e.alternate;t!==null&&(e.alternate=null,vte(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[md],delete t[fE],delete t[I3],delete t[oEe],delete t[sEe])),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 Ote(e){return e.tag===5||e.tag===3||e.tag===4}function $H(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ote(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 Q3(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=NC));else if(r!==4&&(e=e.child,e!==null))for(Q3(e,t,n),e=e.sibling;e!==null;)Q3(e,t,n),e=e.sibling}function Y3(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(Y3(e,t,n),e=e.sibling;e!==null;)Y3(e,t,n),e=e.sibling}var As=null,sc=!1;function Ap(e,t,n){for(n=n.child;n!==null;)Ete(e,t,n),n=n.sibling}function Ete(e,t,n){if(_d&&typeof _d.onCommitFiberUnmount=="function")try{_d.onCommitFiberUnmount(_A,n)}catch{}switch(n.tag){case 5:oa||ib(n,t);case 6:var r=As,i=sc;As=null,Ap(e,t,n),As=r,sc=i,As!==null&&(sc?(e=As,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):As.removeChild(n.stateNode));break;case 18:As!==null&&(sc?(e=As,n=n.stateNode,e.nodeType===8?QD(e.parentNode,n):e.nodeType===1&&QD(e,n),aE(e)):QD(As,n.stateNode));break;case 4:r=As,i=sc,As=n.stateNode.containerInfo,sc=!0,Ap(e,t,n),As=r,sc=i;break;case 0:case 11:case 14:case 15:if(!oa&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&H3(n,t,s),i=i.next}while(i!==r)}Ap(e,t,n);break;case 1:if(!oa&&(ib(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){uo(n,t,a)}Ap(e,t,n);break;case 21:Ap(e,t,n);break;case 22:n.mode&1?(oa=(r=oa)||n.memoizedState!==null,Ap(e,t,n),oa=r):Ap(e,t,n);break;default:Ap(e,t,n)}}function FH(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new SEe),t.forEach(function(r){var i=DEe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function rc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=To()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xEe(r/1960))-r,10e?16:e,oh===null)var r=!1;else{if(e=oh,oh=null,QC=0,Mr&6)throw Error(Ut(331));var i=Mr;for(Mr|=4,pn=e.current;pn!==null;){var o=pn,s=o.child;if(pn.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lTo()-W5?og(e,0):H5|=n),il(e,t)}function Ate(e,t){t===0&&(e.mode&1?(t=Yw,Yw<<=1,!(Yw&130023424)&&(Yw=4194304)):t=1);var n=Na();e=Wf(e,t),e!==null&&(FS(e,t,n),il(e,n))}function IEe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ate(e,n)}function DEe(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(Ut(314))}r!==null&&r.delete(t),Ate(e,n)}var Rte;Rte=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nl.current)el=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return el=!1,vEe(e,t,n);el=!!(e.flags&131072)}else el=!1,Vi&&t.flags&1048576&&Nee(t,$C,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ck(e,t),e=t.pendingProps;var i=dy(t,da.current);wb(t,n),i=F5(null,t,r,e,i,n);var o=B5();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,rl(r)?(o=!0,LC(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,N5(t),i.updater=PA,t.stateNode=i,i._reactInternals=t,$3(t,r,e,n),t=U3(null,t,r,!0,o,n)):(t.tag=0,Vi&&o&&k5(t),_a(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ck(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=PEe(r),e=ic(r,e),i){case 0:t=B3(null,t,r,e,n);break e;case 1:t=NH(null,t,r,e,n);break e;case 11:t=IH(null,t,r,e,n);break e;case 14:t=DH(null,t,r,ic(r.type,e),n);break e}throw Error(Ut(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ic(r,i),B3(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ic(r,i),NH(e,t,r,i,n);case 3:e:{if(pte(t),e===null)throw Error(Ut(387));r=t.pendingProps,o=t.memoizedState,i=o.element,$ee(e,t),UC(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=my(Error(Ut(423)),t),t=PH(e,t,r,n,i);break e}else if(r!==i){i=my(Error(Ut(424)),t),t=PH(e,t,r,n,i);break e}else for(Ul=gh(t.stateNode.containerInfo.firstChild),Hl=t,Vi=!0,uc=null,n=jee(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fy(),r===i){t=Qf(e,t,n);break e}_a(e,t,r,n)}t=t.child}return t;case 5:return zee(t),e===null&&P3(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,A3(r,i)?s=null:o!==null&&A3(r,o)&&(t.flags|=32),fte(e,t),_a(e,t,s,n),t.child;case 6:return e===null&&P3(t),null;case 13:return hte(e,t,n);case 4:return P5(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=py(t,null,r,n):_a(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ic(r,i),IH(e,t,r,i,n);case 7:return _a(e,t,t.pendingProps,n),t.child;case 8:return _a(e,t,t.pendingProps.children,n),t.child;case 12:return _a(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,vi(FC,r._currentValue),r._currentValue=s,o!==null)if(wc(o.value,s)){if(o.children===i.children&&!nl.current){t=Qf(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Ff(-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),L3(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Ut(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),L3(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}_a(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,wb(t,n),i=$u(i),r=r(i),t.flags|=1,_a(e,t,r,n),t.child;case 14:return r=t.type,i=ic(r,t.pendingProps),i=ic(r.type,i),DH(e,t,r,i,n);case 15:return cte(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ic(r,i),Ck(e,t),t.tag=1,rl(r)?(e=!0,LC(t)):e=!1,wb(t,n),Bee(t,r,i),$3(t,r,i,n),U3(null,t,r,!0,e,n);case 19:return mte(e,t,n);case 22:return dte(e,t,n)}throw Error(Ut(156,t.tag))};function Ite(e,t){return ree(e,t)}function NEe(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 xu(e,t,n,r){return new NEe(e,t,n,r)}function q5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function PEe(e){if(typeof e=="function")return q5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===h5)return 11;if(e===m5)return 14}return 2}function Oh(e,t){var n=e.alternate;return n===null?(n=xu(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 Rk(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")q5(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case q0:return sg(n.children,i,o,t);case p5:s=8,i|=8;break;case a3:return e=xu(12,n,t,i|2),e.elementType=a3,e.lanes=o,e;case l3:return e=xu(13,n,t,i),e.elementType=l3,e.lanes=o,e;case u3:return e=xu(19,n,t,i),e.elementType=u3,e.lanes=o,e;case UJ:return FA(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case FJ:s=10;break e;case BJ:s=9;break e;case h5:s=11;break e;case m5:s=14;break e;case Bp:s=16,r=null;break e}throw Error(Ut(130,e==null?e:typeof e,""))}return t=xu(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function sg(e,t,n,r){return e=xu(7,e,r,t),e.lanes=n,e}function FA(e,t,n,r){return e=xu(22,e,r,t),e.elementType=UJ,e.lanes=n,e.stateNode={isHidden:!1},e}function eN(e,t,n){return e=xu(6,e,null,t),e.lanes=n,e}function tN(e,t,n){return t=xu(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function LEe(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=LD(0),this.expirationTimes=LD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=LD(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Z5(e,t,n,r,i,o,s,a,l){return e=new LEe(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=xu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},N5(o),e}function MEe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lte)}catch(e){console.error(e)}}Lte(),NJ.exports=Kl;var Pg=NJ.exports;const Gv=Rc(Pg),jEe=SJ({__proto__:null,default:Gv},[Pg]);var QH=Pg;o3.createRoot=QH.createRoot,o3.hydrateRoot=QH.hydrateRoot;const zEe={black:"#000",white:"#fff"},vE=zEe,VEe={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"},v0=VEe,HEe={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"},O0=HEe,WEe={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"},E0=WEe,QEe={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"},S0=QEe,YEe={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"},T0=YEe,GEe={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"},lv=GEe,qEe={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"},ZEe=qEe;function Dh(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function Mte(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var XEe=/^((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)-.*))$/,KEe=Mte(function(e){return XEe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function JEe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Is(Qy,--ll):0,by--,Do===10&&(by=1,HA--),Do}function Wl(){return Do=ll2||EE(Do)>3?"":" "}function fSe(e,t){for(;--t&&Wl()&&!(Do<48||Do>102||Do>57&&Do<65||Do>70&&Do<97););return zS(e,Ik()+(t<6&&Rd()==32&&Wl()==32))}function J3(e){for(;Wl();)switch(Do){case e:return ll;case 34:case 39:e!==34&&e!==39&&J3(Do);break;case 40:e===41&&J3(e);break;case 92:Wl();break}return ll}function pSe(e,t){for(;Wl()&&e+Do!==57;)if(e+Do===84&&Rd()===47)break;return"/*"+zS(t,ll-1)+"*"+VA(e===47?e:Wl())}function hSe(e){for(;!EE(Rd());)Wl();return zS(e,ll)}function mSe(e){return zte(Nk("",null,null,null,[""],e=jte(e),0,[0],e))}function Nk(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,p=0,m=0,g=0,v=1,E=1,O=1,S=0,x="",C=i,I=o,_=r,w=x;E;)switch(g=S,S=Wl()){case 40:if(g!=108&&Is(w,d-1)==58){K3(w+=Qr(Dk(S),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:w+=Dk(S);break;case 9:case 10:case 13:case 32:w+=dSe(g);break;case 92:w+=fSe(Ik()-1,7);continue;case 47:switch(Rd()){case 42:case 47:ox(gSe(pSe(Wl(),Ik()),t,n),l);break;default:w+="/"}break;case 123*v:a[u++]=pd(w)*O;case 125*v:case 59:case 0:switch(S){case 0:case 125:E=0;case 59+c:O==-1&&(w=Qr(w,/\f/g,"")),m>0&&pd(w)-d&&ox(m>32?GH(w+";",r,n,d-1):GH(Qr(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(ox(_=YH(w,t,n,u,c,i,a,x,C=[],I=[],d),o),S===123)if(c===0)Nk(w,t,_,_,C,o,d,a,I);else switch(p===99&&Is(w,3)===110?100:p){case 100:case 108:case 109:case 115:Nk(e,_,_,r&&ox(YH(e,_,_,0,0,i,a,x,i,C=[],d),I),i,I,d,a,r?C:I);break;default:Nk(w,_,_,_,[""],I,0,a,I)}}u=c=m=0,v=O=1,x=w="",d=s;break;case 58:d=1+pd(w),m=g;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&cSe()==125)continue}switch(w+=VA(S),S*v){case 38:O=c>0?1:(w+="\f",-1);break;case 44:a[u++]=(pd(w)-1)*O,O=1;break;case 64:Rd()===45&&(w+=Dk(Wl())),p=Rd(),c=d=pd(x=w+=hSe(Ik())),S++;break;case 45:g===45&&pd(w)==2&&(v=0)}}return o}function YH(e,t,n,r,i,o,s,a,l,u,c){for(var d=i-1,p=i===0?o:[""],m=n$(p),g=0,v=0,E=0;g0?p[O]+" "+S:Qr(S,/&\f/g,p[O])))&&(l[E++]=x);return WA(e,t,n,i===0?e$:a,l,u,c)}function gSe(e,t,n){return WA(e,t,n,$te,VA(uSe()),OE(e,2,-2),0)}function GH(e,t,n,r){return WA(e,t,n,t$,OE(e,0,r),OE(e,r+1,-1),r)}function kb(e,t){for(var n="",r=n$(e),i=0;i6)switch(Is(e,t+1)){case 109:if(Is(e,t+4)!==45)break;case 102:return Qr(e,/(.+:)(.+)-([^]+)/,"$1"+Wr+"$2-$3$1"+qC+(Is(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~K3(e,"stretch")?Vte(Qr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Is(e,t+1)!==115)break;case 6444:switch(Is(e,pd(e)-3-(~K3(e,"!important")&&10))){case 107:return Qr(e,":",":"+Wr)+e;case 101:return Qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wr+(Is(e,14)===45?"inline-":"")+"box$3$1"+Wr+"$2$3$1"+ra+"$2box$3")+e}break;case 5936:switch(Is(e,t+11)){case 114:return Wr+e+ra+Qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wr+e+ra+Qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wr+e+ra+Qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Wr+e+ra+e+e}return e}var xSe=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case t$:t.return=Vte(t.value,t.length);break;case Fte:return kb([uv(t,{value:Qr(t.value,"@","@"+Wr)})],i);case e$:if(t.length)return lSe(t.props,function(o){switch(aSe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kb([uv(t,{props:[Qr(o,/:(read-\w+)/,":"+qC+"$1")]})],i);case"::placeholder":return kb([uv(t,{props:[Qr(o,/:(plac\w+)/,":"+Wr+"input-$1")]}),uv(t,{props:[Qr(o,/:(plac\w+)/,":"+qC+"$1")]}),uv(t,{props:[Qr(o,/:(plac\w+)/,ra+"input-$1")]})],i)}return""})}},kSe=[xSe],CSe=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(v){var E=v.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||kSe,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var E=v.getAttribute("data-emotion").split(" "),O=1;O<\/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[gd]=t,e[dE]=r,pte(e,t,!1,!1),t.stateNode=e;e:{switch(a=hL(n,r),n){case"dialog":wi("cancel",e),wi("close",e),i=r;break;case"iframe":case"object":case"embed":wi("load",e),i=r;break;case"video":case"audio":for(i=0;igy&&(t.flags|=128,r=!0,oO(o,!1),t.lanes=4194304)}else{if(!r)if(e=BC(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oO(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Vi)return ts(t),null}else 2*To()-o.renderingStartTime>gy&&n!==1073741824&&(t.flags|=128,r=!0,oO(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=To(),t.sibling=null,n=Gi.current,vi(Gi,r?n&1|2:n&1),t):(ts(t),null);case 22:case 23:return H5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Al&1073741824&&(ts(t),t.subtreeFlags&6&&(t.flags|=8192)):ts(t),null;case 24:return null;case 25:return null}throw Error(Ut(156,t.tag))}function vEe(e,t){switch(x5(t),t.tag){case 1:return rl(t.type)&&DC(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hy(),Ai(nl),Ai(ds),P5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return N5(t),null;case 13:if(Ai(Gi),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ut(340));fy()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ai(Gi),null;case 4:return hy(),null;case 10:return A5(t.type._context),null;case 22:case 23:return H5(),null;case 24:return null;default:return null}}var tx=!1,os=!1,OEe=typeof WeakSet=="function"?WeakSet:Set,pn=null;function i0(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){uo(e,t,r)}else n.current=null}function jL(e,t,n){try{n()}catch(r){uo(e,t,r)}}var NW=!1;function EEe(e,t){if(wL=_C,e=vee(),T5(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,f=null;t:for(;;){for(var m;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),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(xL={focusedElem:e,selectionRange:n},_C=!1,pn=t;pn!==null;)if(t=pn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pn=e;else for(;pn!==null;){t=pn;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,S=g.memoizedState,O=t.stateNode,E=O.getSnapshotBeforeUpdate(t.elementType===t.type?v:ic(t.type,v),S);O.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ut(163))}}catch(k){uo(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,pn=e;break}pn=t.return}return g=NW,NW=!1,g}function m1(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&&jL(t,n,o)}i=i.next}while(i!==r)}}function PA(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 zL(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 gte(e){var t=e.alternate;t!==null&&(e.alternate=null,gte(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gd],delete t[dE],delete t[_L],delete t[rEe],delete t[iEe])),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 bte(e){return e.tag===5||e.tag===3||e.tag===4}function PW(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bte(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 VL(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=IC));else if(r!==4&&(e=e.child,e!==null))for(VL(e,t,n),e=e.sibling;e!==null;)VL(e,t,n),e=e.sibling}function WL(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(WL(e,t,n),e=e.sibling;e!==null;)WL(e,t,n),e=e.sibling}var Aa=null,ac=!1;function Ap(e,t,n){for(n=n.child;n!==null;)yte(e,t,n),n=n.sibling}function yte(e,t,n){if(Ad&&typeof Ad.onCommitFiberUnmount=="function")try{Ad.onCommitFiberUnmount(kA,n)}catch{}switch(n.tag){case 5:os||i0(n,t);case 6:var r=Aa,i=ac;Aa=null,Ap(e,t,n),Aa=r,ac=i,Aa!==null&&(ac?(e=Aa,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Aa.removeChild(n.stateNode));break;case 18:Aa!==null&&(ac?(e=Aa,n=n.stateNode,e.nodeType===8?WD(e.parentNode,n):e.nodeType===1&&WD(e,n),aE(e)):WD(Aa,n.stateNode));break;case 4:r=Aa,i=ac,Aa=n.stateNode.containerInfo,ac=!0,Ap(e,t,n),Aa=r,ac=i;break;case 0:case 11:case 14:case 15:if(!os&&(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)&&jL(n,t,a),i=i.next}while(i!==r)}Ap(e,t,n);break;case 1:if(!os&&(i0(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){uo(n,t,s)}Ap(e,t,n);break;case 21:Ap(e,t,n);break;case 22:n.mode&1?(os=(r=os)||n.memoizedState!==null,Ap(e,t,n),os=r):Ap(e,t,n);break;default:Ap(e,t,n)}}function LW(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OEe),t.forEach(function(r){var i=REe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function rc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=To()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*TEe(r/1960))-r,10e?16:e,oh===null)var r=!1;else{if(e=oh,oh=null,WC=0,Mr&6)throw Error(Ut(331));var i=Mr;for(Mr|=4,pn=e.current;pn!==null;){var o=pn,a=o.child;if(pn.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lTo()-V5?og(e,0):z5|=n),il(e,t)}function kte(e,t){t===0&&(e.mode&1?(t=Qw,Qw<<=1,!(Qw&130023424)&&(Qw=4194304)):t=1);var n=Ns();e=Hf(e,t),e!==null&&($S(e,t,n),il(e,n))}function AEe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kte(e,n)}function REe(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(Ut(314))}r!==null&&r.delete(t),kte(e,n)}var Cte;Cte=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nl.current)el=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return el=!1,bEe(e,t,n);el=!!(e.flags&131072)}else el=!1,Vi&&t.flags&1048576&&Ree(t,LC,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xk(e,t),e=t.pendingProps;var i=dy(t,ds.current);w0(t,n),i=M5(null,t,r,e,i,n);var o=$5();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,rl(r)?(o=!0,NC(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,I5(t),i.updater=DA,t.stateNode=i,i._reactInternals=t,PL(t,r,e,n),t=$L(null,t,r,!0,o,n)):(t.tag=0,Vi&&o&&w5(t),_s(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xk(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=DEe(r),e=ic(r,e),i){case 0:t=ML(null,t,r,e,n);break e;case 1:t=RW(null,t,r,e,n);break e;case 11:t=_W(null,t,r,e,n);break e;case 14:t=AW(null,t,r,ic(r.type,e),n);break e}throw Error(Ut(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ic(r,i),ML(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ic(r,i),RW(e,t,r,i,n);case 3:e:{if(cte(t),e===null)throw Error(Ut(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Pee(e,t),FC(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=my(Error(Ut(423)),t),t=IW(e,t,r,n,i);break e}else if(r!==i){i=my(Error(Ut(424)),t),t=IW(e,t,r,n,i);break e}else for(Ul=gh(t.stateNode.containerInfo.firstChild),Wl=t,Vi=!0,uc=null,n=Fee(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fy(),r===i){t=Qf(e,t,n);break e}_s(e,t,r,n)}t=t.child}return t;case 5:return Bee(t),e===null&&IL(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,kL(r,i)?a=null:o!==null&&kL(r,o)&&(t.flags|=32),ute(e,t),_s(e,t,a,n),t.child;case 6:return e===null&&IL(t),null;case 13:return dte(e,t,n);case 4:return D5(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=py(t,null,r,n):_s(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ic(r,i),_W(e,t,r,i,n);case 7:return _s(e,t,t.pendingProps,n),t.child;case 8:return _s(e,t,t.pendingProps.children,n),t.child;case 12:return _s(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,vi(MC,r._currentValue),r._currentValue=a,o!==null)if(wc(o.value,a)){if(o.children===i.children&&!nl.current){t=Qf(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=Ff(-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),DL(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(Ut(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),DL(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}_s(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,w0(t,n),i=$u(i),r=r(i),t.flags|=1,_s(e,t,r,n),t.child;case 14:return r=t.type,i=ic(r,t.pendingProps),i=ic(r.type,i),AW(e,t,r,i,n);case 15:return ste(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ic(r,i),xk(e,t),t.tag=1,rl(r)?(e=!0,NC(t)):e=!1,w0(t,n),Mee(t,r,i),PL(t,r,i,n),$L(null,t,r,!0,e,n);case 19:return fte(e,t,n);case 22:return lte(e,t,n)}throw Error(Ut(156,t.tag))};function _te(e,t){return eee(e,t)}function IEe(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 xu(e,t,n,r){return new IEe(e,t,n,r)}function Y5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DEe(e){if(typeof e=="function")return Y5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===f5)return 11;if(e===p5)return 14}return 2}function Oh(e,t){var n=e.alternate;return n===null?(n=xu(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 _k(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Y5(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case qb:return ag(n.children,i,o,t);case d5:a=8,i|=8;break;case iL:return e=xu(12,n,t,i|2),e.elementType=iL,e.lanes=o,e;case oL:return e=xu(13,n,t,i),e.elementType=oL,e.lanes=o,e;case aL:return e=xu(19,n,t,i),e.elementType=aL,e.lanes=o,e;case $J:return MA(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case LJ:a=10;break e;case MJ:a=9;break e;case f5:a=11;break e;case p5:a=14;break e;case Bp:a=16,r=null;break e}throw Error(Ut(130,e==null?e:typeof e,""))}return t=xu(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ag(e,t,n,r){return e=xu(7,e,r,t),e.lanes=n,e}function MA(e,t,n,r){return e=xu(22,e,r,t),e.elementType=$J,e.lanes=n,e.stateNode={isHidden:!1},e}function KD(e,t,n){return e=xu(6,e,null,t),e.lanes=n,e}function JD(e,t,n){return t=xu(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NEe(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=ND(0),this.expirationTimes=ND(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ND(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function G5(e,t,n,r,i,o,a,s,l){return e=new NEe(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=xu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},I5(o),e}function PEe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dte)}catch(e){console.error(e)}}Dte(),RJ.exports=Kl;var Pg=RJ.exports;const YO=Rc(Pg),BEe=vJ({__proto__:null,default:YO},[Pg]);var VW=Pg;nL.createRoot=VW.createRoot,nL.hydrateRoot=VW.hydrateRoot;const UEe={black:"#000",white:"#fff"},yE=UEe,jEe={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"},vb=jEe,zEe={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"},Ob=zEe,VEe={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"},Eb=VEe,WEe={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"},Sb=WEe,HEe={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"},Tb=HEe,QEe={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"},sO=QEe,YEe={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"},GEe=YEe;function Dh(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function Nte(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qEe=/^((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)-.*))$/,ZEe=Nte(function(e){return qEe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function XEe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ia(Qy,--ll):0,by--,Do===10&&(by=1,zA--),Do}function Hl(){return Do=ll<$te?Ia(Qy,ll++):0,by++,Do===10&&(by=1,zA++),Do}function Id(){return Ia(Qy,ll)}function Ak(){return ll}function jS(e,t){return vE(Qy,e,t)}function OE(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fte(e){return zA=by=1,$te=pd(Qy=e),ll=0,[]}function Bte(e){return Qy="",e}function Rk(e){return Mte(jS(ll-1,ZL(e===91?e+2:e===40?e+1:e)))}function uSe(e){for(;(Do=Id())&&Do<33;)Hl();return OE(e)>2||OE(Do)>3?"":" "}function cSe(e,t){for(;--t&&Hl()&&!(Do<48||Do>102||Do>57&&Do<65||Do>70&&Do<97););return jS(e,Ak()+(t<6&&Id()==32&&Hl()==32))}function ZL(e){for(;Hl();)switch(Do){case e:return ll;case 34:case 39:e!==34&&e!==39&&ZL(Do);break;case 40:e===41&&ZL(e);break;case 92:Hl();break}return ll}function dSe(e,t){for(;Hl()&&e+Do!==57;)if(e+Do===84&&Id()===47)break;return"/*"+jS(t,ll-1)+"*"+jA(e===47?e:Hl())}function fSe(e){for(;!OE(Id());)Hl();return jS(e,ll)}function pSe(e){return Bte(Ik("",null,null,null,[""],e=Fte(e),0,[0],e))}function Ik(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,m=0,g=0,v=1,S=1,O=1,E=0,w="",k=i,A=o,C=r,x=w;S;)switch(g=E,E=Hl()){case 40:if(g!=108&&Ia(x,d-1)==58){qL(x+=Qr(Rk(E),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:x+=Rk(E);break;case 9:case 10:case 13:case 32:x+=uSe(g);break;case 92:x+=cSe(Ak()-1,7);continue;case 47:switch(Id()){case 42:case 47:ix(hSe(dSe(Hl(),Ak()),t,n),l);break;default:x+="/"}break;case 123*v:s[u++]=pd(x)*O;case 125*v:case 59:case 0:switch(E){case 0:case 125:S=0;case 59+c:O==-1&&(x=Qr(x,/\f/g,"")),m>0&&pd(x)-d&&ix(m>32?HW(x+";",r,n,d-1):HW(Qr(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(ix(C=WW(x,t,n,u,c,i,s,w,k=[],A=[],d),o),E===123)if(c===0)Ik(x,t,C,C,k,o,d,s,A);else switch(f===99&&Ia(x,3)===110?100:f){case 100:case 108:case 109:case 115:Ik(e,C,C,r&&ix(WW(e,C,C,0,0,i,s,w,i,k=[],d),A),i,A,d,s,r?k:A);break;default:Ik(x,C,C,C,[""],A,0,s,A)}}u=c=m=0,v=O=1,w=x="",d=a;break;case 58:d=1+pd(x),m=g;default:if(v<1){if(E==123)--v;else if(E==125&&v++==0&&lSe()==125)continue}switch(x+=jA(E),E*v){case 38:O=c>0?1:(x+="\f",-1);break;case 44:s[u++]=(pd(x)-1)*O,O=1;break;case 64:Id()===45&&(x+=Rk(Hl())),f=Id(),c=d=pd(w=x+=fSe(Ak())),E++;break;case 45:g===45&&pd(x)==2&&(v=0)}}return o}function WW(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=i===0?o:[""],m=eF(f),g=0,v=0,S=0;g0?f[O]+" "+E:Qr(E,/&\f/g,f[O])))&&(l[S++]=w);return VA(e,t,n,i===0?K5:s,l,u,c)}function hSe(e,t,n){return VA(e,t,n,Pte,jA(sSe()),vE(e,2,-2),0)}function HW(e,t,n,r){return VA(e,t,n,J5,vE(e,0,r),vE(e,r+1,-1),r)}function k0(e,t){for(var n="",r=eF(e),i=0;i6)switch(Ia(e,t+1)){case 109:if(Ia(e,t+4)!==45)break;case 102:return Qr(e,/(.+:)(.+)-([^]+)/,"$1"+Hr+"$2-$3$1"+YC+(Ia(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qL(e,"stretch")?Ute(Qr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ia(e,t+1)!==115)break;case 6444:switch(Ia(e,pd(e)-3-(~qL(e,"!important")&&10))){case 107:return Qr(e,":",":"+Hr)+e;case 101:return Qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Hr+(Ia(e,14)===45?"inline-":"")+"box$3$1"+Hr+"$2$3$1"+rs+"$2box$3")+e}break;case 5936:switch(Ia(e,t+11)){case 114:return Hr+e+rs+Qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hr+e+rs+Qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hr+e+rs+Qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Hr+e+rs+e+e}return e}var TSe=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case J5:t.return=Ute(t.value,t.length);break;case Lte:return k0([lO(t,{value:Qr(t.value,"@","@"+Hr)})],i);case K5:if(t.length)return aSe(t.props,function(o){switch(oSe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return k0([lO(t,{props:[Qr(o,/:(read-\w+)/,":"+YC+"$1")]})],i);case"::placeholder":return k0([lO(t,{props:[Qr(o,/:(plac\w+)/,":"+Hr+"input-$1")]}),lO(t,{props:[Qr(o,/:(plac\w+)/,":"+YC+"$1")]}),lO(t,{props:[Qr(o,/:(plac\w+)/,rs+"input-$1")]})],i)}return""})}},wSe=[TSe],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(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||wSe,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),O=1;O=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 BSe={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},USe=/[A-Z]|^ms/g,jSe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zte=function(t){return t.charCodeAt(1)===45},ZH=function(t){return t!=null&&typeof t!="boolean"},nN=Mte(function(e){return Zte(e)?e:e.replace(USe,"-$&").toLowerCase()}),XH=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jSe,function(r,i,o){return hd={name:i,styles:o,next:hd},i})}return BSe[t]!==1&&!Zte(t)&&typeof n=="number"&&n!==0?n+"px":n};function SE(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 hd={name:n.name,styles:n.styles,next:hd},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hd={name:r.name,styles:r.styles,next:hd},r=r.next;var i=n.styles+";";return i}return zSe(e,t,n)}case"function":{if(e!==void 0){var o=hd,s=n(e);return hd=o,SE(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function zSe(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?QSe:YSe},tW=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},GSe=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Gte(n,r,i),HSe(function(){return qte(n,r,i)}),null},qSe=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=tW(t,n,r),l=a||eW(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,m=1;mt(nTe(i)?n:i):t;return N.jsx(WSe,{styles:r})}function rne(e,t){return eL(e,t)}const iTe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function If(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 ine(e){if(!If(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ine(e[n])}),t}function la(e,t,n={clone:!0}){const r=n.clone?B({},e):e;return If(e)&&If(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(If(t[i])&&i in e&&If(e[i])?r[i]=la(e[i],t[i],n):n.clone?r[i]=If(t[i])?ine(t[i]):t[i]:r[i]=t[i])}),r}var oi={};/** + */var ba=typeof Symbol=="function"&&Symbol.for,tF=ba?Symbol.for("react.element"):60103,nF=ba?Symbol.for("react.portal"):60106,WA=ba?Symbol.for("react.fragment"):60107,HA=ba?Symbol.for("react.strict_mode"):60108,QA=ba?Symbol.for("react.profiler"):60114,YA=ba?Symbol.for("react.provider"):60109,GA=ba?Symbol.for("react.context"):60110,rF=ba?Symbol.for("react.async_mode"):60111,qA=ba?Symbol.for("react.concurrent_mode"):60111,ZA=ba?Symbol.for("react.forward_ref"):60112,XA=ba?Symbol.for("react.suspense"):60113,kSe=ba?Symbol.for("react.suspense_list"):60120,KA=ba?Symbol.for("react.memo"):60115,JA=ba?Symbol.for("react.lazy"):60116,CSe=ba?Symbol.for("react.block"):60121,_Se=ba?Symbol.for("react.fundamental"):60117,ASe=ba?Symbol.for("react.responder"):60118,RSe=ba?Symbol.for("react.scope"):60119;function eu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tF:switch(e=e.type,e){case rF:case qA:case WA:case QA:case HA:case XA:return e;default:switch(e=e&&e.$$typeof,e){case GA:case ZA:case JA:case KA:case YA:return e;default:return t}}case nF:return t}}}function zte(e){return eu(e)===qA}ni.AsyncMode=rF;ni.ConcurrentMode=qA;ni.ContextConsumer=GA;ni.ContextProvider=YA;ni.Element=tF;ni.ForwardRef=ZA;ni.Fragment=WA;ni.Lazy=JA;ni.Memo=KA;ni.Portal=nF;ni.Profiler=QA;ni.StrictMode=HA;ni.Suspense=XA;ni.isAsyncMode=function(e){return zte(e)||eu(e)===rF};ni.isConcurrentMode=zte;ni.isContextConsumer=function(e){return eu(e)===GA};ni.isContextProvider=function(e){return eu(e)===YA};ni.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tF};ni.isForwardRef=function(e){return eu(e)===ZA};ni.isFragment=function(e){return eu(e)===WA};ni.isLazy=function(e){return eu(e)===JA};ni.isMemo=function(e){return eu(e)===KA};ni.isPortal=function(e){return eu(e)===nF};ni.isProfiler=function(e){return eu(e)===QA};ni.isStrictMode=function(e){return eu(e)===HA};ni.isSuspense=function(e){return eu(e)===XA};ni.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===WA||e===qA||e===QA||e===HA||e===XA||e===kSe||typeof e=="object"&&e!==null&&(e.$$typeof===JA||e.$$typeof===KA||e.$$typeof===YA||e.$$typeof===GA||e.$$typeof===ZA||e.$$typeof===_Se||e.$$typeof===ASe||e.$$typeof===RSe||e.$$typeof===CSe)};ni.typeOf=eu;jte.exports=ni;var ISe=jte.exports,Vte=ISe,DSe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},NSe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wte={};Wte[Vte.ForwardRef]=DSe;Wte[Vte.Memo]=NSe;var PSe=!0;function LSe(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Hte=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||PSe===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Qte=function(t,n,r){Hte(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 MSe(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 $Se={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},FSe=/[A-Z]|^ms/g,BSe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yte=function(t){return t.charCodeAt(1)===45},YW=function(t){return t!=null&&typeof t!="boolean"},eN=Nte(function(e){return Yte(e)?e:e.replace(FSe,"-$&").toLowerCase()}),GW=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(BSe,function(r,i,o){return hd={name:i,styles:o,next:hd},i})}return $Se[t]!==1&&!Yte(t)&&typeof n=="number"&&n!==0?n+"px":n};function EE(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 hd={name:n.name,styles:n.styles,next:hd},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hd={name:r.name,styles:r.styles,next:hd},r=r.next;var i=n.styles+";";return i}return USe(e,t,n)}case"function":{if(e!==void 0){var o=hd,a=n(e);return hd=o,EE(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function USe(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?WSe:HSe},KW=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},QSe=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Hte(n,r,i),zSe(function(){return Qte(n,r,i)}),null},YSe=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=KW(t,n,r),l=s||XW(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 f=c.length,m=1;mt(eTe(i)?n:i):t;return N.jsx(VSe,{styles:r})}function ene(e,t){return XL(e,t)}const nTe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function If(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 tne(e){if(!If(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=tne(e[n])}),t}function ls(e,t,n={clone:!0}){const r=n.clone?B({},e):e;return If(e)&&If(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(If(t[i])&&i in e&&If(e[i])?r[i]=ls(e[i],t[i],n):n.clone?r[i]=If(t[i])?tne(t[i]):t[i]:r[i]=t[i])}),r}var oi={};/** * @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 l$=Symbol.for("react.element"),u$=Symbol.for("react.portal"),r2=Symbol.for("react.fragment"),i2=Symbol.for("react.strict_mode"),o2=Symbol.for("react.profiler"),s2=Symbol.for("react.provider"),a2=Symbol.for("react.context"),oTe=Symbol.for("react.server_context"),l2=Symbol.for("react.forward_ref"),u2=Symbol.for("react.suspense"),c2=Symbol.for("react.suspense_list"),d2=Symbol.for("react.memo"),f2=Symbol.for("react.lazy"),sTe=Symbol.for("react.offscreen"),one;one=Symbol.for("react.module.reference");function zu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case l$:switch(e=e.type,e){case r2:case o2:case i2:case u2:case c2:return e;default:switch(e=e&&e.$$typeof,e){case oTe:case a2:case l2:case f2:case d2:case s2:return e;default:return t}}case u$:return t}}}oi.ContextConsumer=a2;oi.ContextProvider=s2;oi.Element=l$;oi.ForwardRef=l2;oi.Fragment=r2;oi.Lazy=f2;oi.Memo=d2;oi.Portal=u$;oi.Profiler=o2;oi.StrictMode=i2;oi.Suspense=u2;oi.SuspenseList=c2;oi.isAsyncMode=function(){return!1};oi.isConcurrentMode=function(){return!1};oi.isContextConsumer=function(e){return zu(e)===a2};oi.isContextProvider=function(e){return zu(e)===s2};oi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===l$};oi.isForwardRef=function(e){return zu(e)===l2};oi.isFragment=function(e){return zu(e)===r2};oi.isLazy=function(e){return zu(e)===f2};oi.isMemo=function(e){return zu(e)===d2};oi.isPortal=function(e){return zu(e)===u$};oi.isProfiler=function(e){return zu(e)===o2};oi.isStrictMode=function(e){return zu(e)===i2};oi.isSuspense=function(e){return zu(e)===u2};oi.isSuspenseList=function(e){return zu(e)===c2};oi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===r2||e===o2||e===i2||e===u2||e===c2||e===sTe||typeof e=="object"&&e!==null&&(e.$$typeof===f2||e.$$typeof===d2||e.$$typeof===s2||e.$$typeof===a2||e.$$typeof===l2||e.$$typeof===one||e.getModuleId!==void 0)};oi.typeOf=zu;const aTe=J.oneOfType([J.func,J.object]),Yy=aTe;function gt(e){if(typeof e!="string")throw new Error(Dh(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ZC(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Gy(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 lTe(e,t){return()=>null}function vO(e,t){var n,r;return P.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ci(e){return e&&e.ownerDocument||document}function Bu(e){return ci(e).defaultView||window}function uTe(e,t){return()=>null}function TE(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ji=typeof window<"u"?P.useLayoutEffect:P.useEffect;let nW=0;function cTe(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(nW+=1,n(`mui-${nW}`))},[t]),r}const rW=uy.useId;function Ic(e){if(rW!==void 0){const t=rW();return e??t}return cTe(e)}function dTe(e,t,n,r,i){return null}function ms({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=P.useRef(e!==void 0),[o,s]=P.useState(t),a=i?e:o,l=P.useCallback(u=>{i||s(u)},[]);return[a,l]}function on(e){const t=P.useRef(e);return Ji(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function Vn(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{TE(n,t)})},e)}const iW={};function fTe(e,t){const n=P.useRef(iW);return n.current===iW&&(n.current=e(t)),n}const pTe=[];function hTe(e){P.useEffect(e,pTe)}class HS{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new HS}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function Bm(){const e=fTe(HS.create).current;return hTe(e.disposeEffect),e}let p2=!0,tL=!1;const mTe=new HS,gTe={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 bTe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&gTe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function yTe(e){e.metaKey||e.altKey||e.ctrlKey||(p2=!0)}function rN(){p2=!1}function vTe(){this.visibilityState==="hidden"&&tL&&(p2=!0)}function OTe(e){e.addEventListener("keydown",yTe,!0),e.addEventListener("mousedown",rN,!0),e.addEventListener("pointerdown",rN,!0),e.addEventListener("touchstart",rN,!0),e.addEventListener("visibilitychange",vTe,!0)}function ETe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return p2||bTe(t)}function h2(){const e=P.useCallback(i=>{i!=null&&OTe(i.ownerDocument)},[]),t=P.useRef(!1);function n(){return t.current?(tL=!0,mTe.start(100,()=>{tL=!1}),t.current=!1,!0):!1}function r(i){return ETe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function sne(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let w0;function ane(){if(w0)return w0;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),w0="reverse",e.scrollLeft>0?w0="default":(e.scrollLeft=1,e.scrollLeft===0&&(w0="negative")),document.body.removeChild(e),w0}function STe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(ane()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const TTe=e=>{const t=P.useRef({});return P.useEffect(()=>{t.current=e}),t.current};function wTe(e){return P.Children.toArray(e).filter(t=>P.isValidElement(t))}const xTe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},kTe=xTe;function m2(e,t){const n=B({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=B({},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]=B({},o),Object.keys(i).forEach(s=>{n[r][s]=m2(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Vt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const oW=e=>e,CTe=()=>{let e=oW;return{configure(t){e=t},generate(t){return e(t)},reset(){e=oW}}},c$=CTe(),lne={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Qt(e,t,n="Mui"){const r=lne[t];return r?`${n}-${r}`:`${c$.generate(e)}-${t}`}function Yt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Qt(e,i,n)}),r}function P0(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const _Te=["values","unit","step"],ATe=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)=>B({},n,{[r.key]:r.val}),{})};function RTe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=st(e,_Te),o=ATe(t),s=Object.keys(o);function a(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,m){const g=s.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:m)-r/100}${n})`}function c(p){return s.indexOf(p)+1`@media (min-width:${d$[e]}px)`};function ul(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||sW;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||sW;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||d$).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function une(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function cne(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function NTe(e,...t){const n=une(e),r=[n,...t].reduce((i,o)=>la(i,o),{});return cne(Object.keys(n),r)}function PTe(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 ag({values:e,breakpoints:t,base:n}){const r=n||PTe(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function g2(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 XC(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=g2(e,n)||r,t&&(i=t(i,r,e)),i}function ko(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=g2(l,r)||{};return ul(s,a,d=>{let p=XC(u,i,d);return d===p&&typeof d=="string"&&(p=XC(u,i,`${t}${d==="default"?"":gt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function LTe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const MTe={m:"margin",p:"padding"},$Te={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aW={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},FTe=LTe(e=>{if(e.length>2)if(aW[e])e=aW[e];else return[e];const[t,n]=e.split(""),r=MTe[t],i=$Te[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),f$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],p$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...f$,...p$];function WS(e,t,n,r){var i;const o=(i=g2(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function h$(e){return WS(e,"spacing",8)}function gg(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 BTe(e,t){return n=>e.reduce((r,i)=>(r[i]=gg(t,n),r),{})}function UTe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=FTe(n),o=BTe(i,r),s=e[n];return ul(e,s,o)}function dne(e,t){const n=h$(e.theme);return Object.keys(e).map(r=>UTe(e,t,r,n)).reduce(OO,{})}function so(e){return dne(e,f$)}so.propTypes={};so.filterProps=f$;function ao(e){return dne(e,p$)}ao.propTypes={};ao.filterProps=p$;function jTe(e=8){if(e.mui)return e;const t=h$({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function b2(...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]?OO(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Eu(e){return typeof e!="number"?e:`${e}px solid`}function Vu(e,t){return ko({prop:e,themeKey:"borders",transform:t})}const zTe=Vu("border",Eu),VTe=Vu("borderTop",Eu),HTe=Vu("borderRight",Eu),WTe=Vu("borderBottom",Eu),QTe=Vu("borderLeft",Eu),YTe=Vu("borderColor"),GTe=Vu("borderTopColor"),qTe=Vu("borderRightColor"),ZTe=Vu("borderBottomColor"),XTe=Vu("borderLeftColor"),KTe=Vu("outline",Eu),JTe=Vu("outlineColor"),y2=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=WS(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:gg(t,r)});return ul(e,e.borderRadius,n)}return null};y2.propTypes={};y2.filterProps=["borderRadius"];b2(zTe,VTe,HTe,WTe,QTe,YTe,GTe,qTe,ZTe,XTe,y2,KTe,JTe);const v2=e=>{if(e.gap!==void 0&&e.gap!==null){const t=WS(e.theme,"spacing",8),n=r=>({gap:gg(t,r)});return ul(e,e.gap,n)}return null};v2.propTypes={};v2.filterProps=["gap"];const O2=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=WS(e.theme,"spacing",8),n=r=>({columnGap:gg(t,r)});return ul(e,e.columnGap,n)}return null};O2.propTypes={};O2.filterProps=["columnGap"];const E2=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=WS(e.theme,"spacing",8),n=r=>({rowGap:gg(t,r)});return ul(e,e.rowGap,n)}return null};E2.propTypes={};E2.filterProps=["rowGap"];const ewe=ko({prop:"gridColumn"}),twe=ko({prop:"gridRow"}),nwe=ko({prop:"gridAutoFlow"}),rwe=ko({prop:"gridAutoColumns"}),iwe=ko({prop:"gridAutoRows"}),owe=ko({prop:"gridTemplateColumns"}),swe=ko({prop:"gridTemplateRows"}),awe=ko({prop:"gridTemplateAreas"}),lwe=ko({prop:"gridArea"});b2(v2,O2,E2,ewe,twe,nwe,rwe,iwe,owe,swe,awe,lwe);function Cb(e,t){return t==="grey"?t:e}const uwe=ko({prop:"color",themeKey:"palette",transform:Cb}),cwe=ko({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Cb}),dwe=ko({prop:"backgroundColor",themeKey:"palette",transform:Cb});b2(uwe,cwe,dwe);function $l(e){return e<=1&&e!==0?`${e*100}%`:e}const fwe=ko({prop:"width",transform:$l}),m$=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])||d$[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:$l(n)}};return ul(e,e.maxWidth,t)}return null};m$.filterProps=["maxWidth"];const pwe=ko({prop:"minWidth",transform:$l}),hwe=ko({prop:"height",transform:$l}),mwe=ko({prop:"maxHeight",transform:$l}),gwe=ko({prop:"minHeight",transform:$l});ko({prop:"size",cssProperty:"width",transform:$l});ko({prop:"size",cssProperty:"height",transform:$l});const bwe=ko({prop:"boxSizing"});b2(fwe,m$,pwe,hwe,mwe,gwe,bwe);const ywe={border:{themeKey:"borders",transform:Eu},borderTop:{themeKey:"borders",transform:Eu},borderRight:{themeKey:"borders",transform:Eu},borderBottom:{themeKey:"borders",transform:Eu},borderLeft:{themeKey:"borders",transform:Eu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Eu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:y2},color:{themeKey:"palette",transform:Cb},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Cb},backgroundColor:{themeKey:"palette",transform:Cb},p:{style:ao},pt:{style:ao},pr:{style:ao},pb:{style:ao},pl:{style:ao},px:{style:ao},py:{style:ao},padding:{style:ao},paddingTop:{style:ao},paddingRight:{style:ao},paddingBottom:{style:ao},paddingLeft:{style:ao},paddingX:{style:ao},paddingY:{style:ao},paddingInline:{style:ao},paddingInlineStart:{style:ao},paddingInlineEnd:{style:ao},paddingBlock:{style:ao},paddingBlockStart:{style:ao},paddingBlockEnd:{style:ao},m:{style:so},mt:{style:so},mr:{style:so},mb:{style:so},ml:{style:so},mx:{style:so},my:{style:so},margin:{style:so},marginTop:{style:so},marginRight:{style:so},marginBottom:{style:so},marginLeft:{style:so},marginX:{style:so},marginY:{style:so},marginInline:{style:so},marginInlineStart:{style:so},marginInlineEnd:{style:so},marginBlock:{style:so},marginBlockStart:{style:so},marginBlockEnd:{style:so},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:v2},rowGap:{style:E2},columnGap:{style:O2},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$l},maxWidth:{style:m$},minWidth:{transform:$l},height:{transform:$l},maxHeight:{transform:$l},minHeight:{transform:$l},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},S2=ywe;function vwe(...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 Owe(e,t){return typeof e=="function"?e(t):e}function Ewe(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=g2(i,u)||{};return d?d(s):ul(s,r,g=>{let v=XC(p,c,g);return g===v&&typeof g=="string"&&(v=XC(p,c,`${n}${g==="default"?"":gt(g)}`,g)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:S2;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=une(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(m=>{const g=Owe(u[m],o);if(g!=null)if(typeof g=="object")if(s[m])p=OO(p,e(m,g,o,s));else{const v=ul({theme:o},g,E=>({[m]:E}));vwe(v,g)?p[m]=t({sx:g,theme:o}):p=OO(p,v)}else p=OO(p,e(m,g,o,s))}),cne(d,p)}return Array.isArray(i)?i.map(a):a(i)}return t}const QS=Ewe();QS.filterProps=["sx"];function Swe(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Twe=["breakpoints","palette","spacing","shape"];function YS(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=st(e,Twe),a=RTe(n),l=jTe(i);let u=la({breakpoints:a,direction:"ltr",components:{},palette:B({mode:"light"},r),spacing:l,shape:B({},DTe,o)},s);return u.applyStyles=Swe,u=t.reduce((c,d)=>la(c,d),u),u.unstable_sxConfig=B({},S2,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return QS({sx:d,theme:this})},u}function wwe(e){return Object.keys(e).length===0}function T2(e=null){const t=P.useContext(n2);return!t||wwe(t)?e:t}const xwe=YS();function qy(e=xwe){return T2(e)}function kwe({styles:e,themeId:t,defaultTheme:n={}}){const r=qy(n),i=typeof e=="function"?e(t&&r[t]||r):e;return N.jsx(rTe,{styles:i})}const Cwe=["sx"],_we=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:S2;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function w2(e){const{sx:t}=e,n=st(e,Cwe),{systemProps:r,otherProps:i}=_we(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return If(a)?B({},r,a):r}:o=B({},r,t),B({},i,{sx:o})}function fne(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;ta!=="theme"&&a!=="sx"&&a!=="as"})(QS);return P.forwardRef(function(l,u){const c=qy(n),d=w2(l),{className:p,component:m="div"}=d,g=st(d,Awe);return N.jsx(o,B({as:m,ref:u,className:dt(p,i?i(r):r),theme:t&&c[t]||c},g))})}const Iwe=["variant"];function lW(e){return e.length===0}function pne(e){const{variant:t}=e,n=st(e,Iwe);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=lW(r)?e[i]:gt(e[i]):r+=`${lW(r)?i:gt(i)}${gt(e[i].toString())}`}),r}const Dwe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Nwe(e){return Object.keys(e).length===0}function Pwe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Lwe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,KC=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=pne(r.props),n[i]=r.style}),n},Mwe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),KC(n)},JC=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let o=0;return n&&n.forEach(s=>{let a=!0;if(typeof s.props=="function"){const l=B({},e,r);a=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(a=!1)});a&&(typeof s.props=="function"?i.push(t[`callback${o}`]):i.push(t[pne(s.props)])),typeof s.props=="function"&&(o+=1)}),i},$we=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return JC(e,t,o)};function EO(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fwe=YS(),Bwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Pk({defaultTheme:e,theme:t,themeId:n}){return Nwe(t)?e:t[n]||t}function Uwe(e){return e?(t,n)=>n[e]:null}const uW=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(B({},t,{theme:Pk(B({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const s=JC(t,KC(o),o);return[i,...s]}return i};function hne(e={}){const{themeId:t,defaultTheme:n=Fwe,rootShouldForwardProp:r=EO,slotShouldForwardProp:i=EO}=e,o=s=>QS(B({},s,{theme:Pk(B({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{iTe(s,C=>C.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=Uwe(Bwe(u))}=a,m=st(a,Dwe),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=d||!1;let E,O=EO;u==="Root"||u==="root"?O=r:u?O=i:Pwe(s)&&(O=void 0);const S=rne(s,B({shouldForwardProp:O,label:E},m)),x=(C,...I)=>{const _=I?I.map(L=>{if(typeof L=="function"&&L.__emotion_real!==L)return W=>uW({styledArg:L,props:W,defaultTheme:n,themeId:t});if(If(L)){let W=L,H;return L&&L.variants&&(H=L.variants,delete W.variants,W=q=>{let j=L;return JC(q,KC(H),H).forEach(X=>{j=la(j,X)}),j}),W}return L}):[];let w=C;if(If(C)){let L;C&&C.variants&&(L=C.variants,delete w.variants,w=W=>{let H=C;return JC(W,KC(L),L).forEach(j=>{H=la(H,j)}),H})}else typeof C=="function"&&C.__emotion_real!==C&&(w=L=>uW({styledArg:C,props:L,defaultTheme:n,themeId:t}));l&&p&&_.push(L=>{const W=Pk(B({},L,{defaultTheme:n,themeId:t})),H=Lwe(l,W);if(H){const q={};return Object.entries(H).forEach(([j,z])=>{q[j]=typeof z=="function"?z(B({},L,{theme:W})):z}),p(L,q)}return null}),l&&!g&&_.push(L=>{const W=Pk(B({},L,{defaultTheme:n,themeId:t}));return $we(L,Mwe(l,W),W,l)}),v||_.push(o);const F=_.length-I.length;if(Array.isArray(C)&&F>0){const L=new Array(F).fill("");w=[...C,...L],w.raw=[...C.raw,...L]}const M=S(w,..._);return s.muiName&&(M.muiName=s.muiName),M};return S.withConfig&&(x.withConfig=S.withConfig),x}}const mne=hne();function gne(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:m2(t.components[n].defaultProps,r)}function g$({props:e,name:t,defaultTheme:n,themeId:r}){let i=qy(n);return r&&(i=i[r]||i),gne({theme:i,name:t,props:e})}function b$(e,t=0,n=1){return P0(e,t,n)}function jwe(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 bg(e){if(e.type)return e;if(e.charAt(0)==="#")return bg(jwe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Dh(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(Dh(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function x2(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 zwe(e){e=bg(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),x2({type:a,values:l})}function nL(e){e=bg(e);let t=e.type==="hsl"||e.type==="hsla"?bg(zwe(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 Vwe(e,t){const n=nL(e),r=nL(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function In(e,t){return e=bg(e),t=b$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,x2(e)}function k2(e,t){if(e=bg(e),t=b$(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 x2(e)}function C2(e,t){if(e=bg(e),t=b$(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 x2(e)}function Hwe(e,t=.15){return nL(e)>.5?k2(e,t):C2(e,t)}const Wwe=P.createContext(null),bne=Wwe;function yne(){return P.useContext(bne)}const Qwe=typeof Symbol=="function"&&Symbol.for,Ywe=Qwe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Gwe(e,t){return typeof t=="function"?t(e):B({},e,t)}function qwe(e){const{children:t,theme:n}=e,r=yne(),i=P.useMemo(()=>{const o=r===null?n:Gwe(r,n);return o!=null&&(o[Ywe]=r!==null),o},[n,r]);return N.jsx(bne.Provider,{value:i,children:t})}const cW={};function dW(e,t,n,r=!1){return P.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?B({},t,{[e]:o}):o;return r?()=>s:s}return e?B({},t,{[e]:n}):B({},t,n)},[e,t,n,r])}function Zwe(e){const{children:t,theme:n,themeId:r}=e,i=T2(cW),o=yne()||cW,s=dW(r,i,n),a=dW(r,o,n,!0);return N.jsx(qwe,{theme:a,children:N.jsx(n2.Provider,{value:s,children:t})})}const Xwe=["className","component","disableGutters","fixed","maxWidth","classes"],Kwe=YS(),Jwe=mne("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${gt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),exe=e=>g$({props:e,name:"MuiContainer",defaultTheme:Kwe}),txe=(e,t)=>{const n=l=>Qt(t,l),{classes:r,fixed:i,disableGutters:o,maxWidth:s}=e,a={root:["root",s&&`maxWidth${gt(String(s))}`,i&&"fixed",o&&"disableGutters"]};return Vt(a,n,r)};function nxe(e={}){const{createStyledComponent:t=Jwe,useThemeProps:n=exe,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:a})=>B({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const c=u,d=s.breakpoints.values[c];return d!==0&&(l[s.breakpoints.up(c)]={maxWidth:`${d}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>B({},a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}));return P.forwardRef(function(a,l){const u=n(a),{className:c,component:d="div",disableGutters:p=!1,fixed:m=!1,maxWidth:g="lg"}=u,v=st(u,Xwe),E=B({},u,{component:d,disableGutters:p,fixed:m,maxWidth:g}),O=txe(E,r);return N.jsx(i,B({as:d,ownerState:E,className:dt(O.root,c),ref:l},v))})}const rxe=["component","direction","spacing","divider","children","className","useFlexGap"],ixe=YS(),oxe=mne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function sxe(e){return g$({props:e,name:"MuiStack",defaultTheme:ixe})}function axe(e,t){const n=P.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],uxe=({ownerState:e,theme:t})=>{let n=B({display:"flex",flexDirection:"column"},ul({theme:t},ag({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=h$(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=ag({values:e.direction,base:i}),s=ag({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=la(n,ul({theme:t},s,(l,u)=>e.useFlexGap?{gap:gg(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${lxe(u?o[u]:e.direction)}`]:gg(r,l)}}))}return n=NTe(t.breakpoints,n),n};function cxe(e={}){const{createStyledComponent:t=oxe,useThemeProps:n=sxe,componentName:r="MuiStack"}=e,i=()=>Vt({root:["root"]},l=>Qt(r,l),{}),o=t(uxe);return P.forwardRef(function(l,u){const c=n(l),d=w2(c),{component:p="div",direction:m="column",spacing:g=0,divider:v,children:E,className:O,useFlexGap:S=!1}=d,x=st(d,rxe),C={direction:m,spacing:g,useFlexGap:S},I=i();return N.jsx(o,B({as:p,ownerState:C,ref:u,className:dt(I.root,O)},x,{children:v?axe(E,v):E}))})}function dxe(e,t){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const fxe=["mode","contrastThreshold","tonalOffset"],fW={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:vE.white,default:vE.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}},iN={text:{primary:vE.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:vE.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 pW(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=C2(e.main,i):t==="dark"&&(e.dark=k2(e.main,o)))}function pxe(e="light"){return e==="dark"?{main:E0[200],light:E0[50],dark:E0[400]}:{main:E0[700],light:E0[400],dark:E0[800]}}function hxe(e="light"){return e==="dark"?{main:O0[200],light:O0[50],dark:O0[400]}:{main:O0[500],light:O0[300],dark:O0[700]}}function mxe(e="light"){return e==="dark"?{main:v0[500],light:v0[300],dark:v0[700]}:{main:v0[700],light:v0[400],dark:v0[800]}}function gxe(e="light"){return e==="dark"?{main:S0[400],light:S0[300],dark:S0[700]}:{main:S0[700],light:S0[500],dark:S0[900]}}function bxe(e="light"){return e==="dark"?{main:T0[400],light:T0[300],dark:T0[700]}:{main:T0[800],light:T0[500],dark:T0[900]}}function yxe(e="light"){return e==="dark"?{main:lv[400],light:lv[300],dark:lv[700]}:{main:"#ed6c02",light:lv[500],dark:lv[900]}}function vxe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=st(e,fxe),o=e.primary||pxe(t),s=e.secondary||hxe(t),a=e.error||mxe(t),l=e.info||gxe(t),u=e.success||bxe(t),c=e.warning||yxe(t);function d(v){return Vwe(v,iN.text.primary)>=n?iN.text.primary:fW.text.primary}const p=({color:v,name:E,mainShade:O=500,lightShade:S=300,darkShade:x=700})=>{if(v=B({},v),!v.main&&v[O]&&(v.main=v[O]),!v.hasOwnProperty("main"))throw new Error(Dh(11,E?` (${E})`:"",O));if(typeof v.main!="string")throw new Error(Dh(12,E?` (${E})`:"",JSON.stringify(v.main)));return pW(v,"light",S,r),pW(v,"dark",x,r),v.contrastText||(v.contrastText=d(v.main)),v},m={dark:iN,light:fW};return la(B({common:B({},vE),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:ZEe,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},m[t]),i)}const Oxe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Exe(e){return Math.round(e*1e5)/1e5}const hW={textTransform:"uppercase"},mW='"Roboto", "Helvetica", "Arial", sans-serif';function Sxe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=mW,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=st(n,Oxe),m=i/14,g=d||(O=>`${O/u*m}rem`),v=(O,S,x,C,I)=>B({fontFamily:r,fontWeight:O,fontSize:g(S),lineHeight:x},r===mW?{letterSpacing:`${Exe(C/S)}em`}:{},I,c),E={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(a,14,1.75,.4,hW),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,hW),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return la(B({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},E),p,{clone:!1})}const Txe=.2,wxe=.14,xxe=.12;function Bi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Txe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wxe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xxe})`].join(",")}const kxe=["none",Bi(0,2,1,-1,0,1,1,0,0,1,3,0),Bi(0,3,1,-2,0,2,2,0,0,1,5,0),Bi(0,3,3,-2,0,3,4,0,0,1,8,0),Bi(0,2,4,-1,0,4,5,0,0,1,10,0),Bi(0,3,5,-1,0,5,8,0,0,1,14,0),Bi(0,3,5,-1,0,6,10,0,0,1,18,0),Bi(0,4,5,-2,0,7,10,1,0,2,16,1),Bi(0,5,5,-3,0,8,10,1,0,3,14,2),Bi(0,5,6,-3,0,9,12,1,0,3,16,2),Bi(0,6,6,-3,0,10,14,1,0,4,18,3),Bi(0,6,7,-4,0,11,15,1,0,4,20,3),Bi(0,7,8,-4,0,12,17,2,0,5,22,4),Bi(0,7,8,-4,0,13,19,2,0,5,24,4),Bi(0,7,9,-4,0,14,21,2,0,5,26,4),Bi(0,8,9,-5,0,15,22,2,0,6,28,5),Bi(0,8,10,-5,0,16,24,2,0,6,30,5),Bi(0,8,11,-5,0,17,26,2,0,6,32,5),Bi(0,9,11,-5,0,18,28,2,0,7,34,6),Bi(0,9,12,-6,0,19,29,2,0,7,36,6),Bi(0,10,13,-6,0,20,31,3,0,8,38,7),Bi(0,10,13,-6,0,21,33,3,0,8,40,7),Bi(0,10,14,-6,0,22,35,3,0,8,42,7),Bi(0,11,14,-7,0,23,36,3,0,9,44,8),Bi(0,11,15,-7,0,24,38,3,0,9,46,8)],Cxe=["duration","easing","delay"],_xe={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)"},vne={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gW(e){return`${Math.round(e)}ms`}function Axe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Rxe(e){const t=B({},_xe,e.easing),n=B({},vne,e.duration);return B({getAutoHeightDuration:Axe,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o;return st(o,Cxe),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:gW(s)} ${a} ${typeof l=="string"?l:gW(l)}`).join(",")}},e,{easing:t,duration:n})}const Ixe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Dxe=Ixe,Nxe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function y$(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=st(e,Nxe);if(e.vars)throw new Error(Dh(18));const a=vxe(r),l=YS(e);let u=la(l,{mixins:dxe(l.breakpoints,n),palette:a,shadows:kxe.slice(),typography:Sxe(a,o),transitions:Rxe(i),zIndex:B({},Dxe)});return u=la(u,s),u=t.reduce((c,d)=>la(c,d),u),u.unstable_sxConfig=B({},S2,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return QS({sx:d,theme:this})},u}const Pxe=y$(),_2=Pxe;function Di(){const e=qy(_2);return e[mg]||e}function Nt({props:e,name:t}){return g$({props:e,name:t,defaultTheme:_2,themeId:mg})}const ys=e=>EO(e)&&e!=="classes",v$=EO,Ae=hne({themeId:mg,defaultTheme:_2,rootShouldForwardProp:ys}),Lxe=["theme"];function Mxe(e){let{theme:t}=e,n=st(e,Lxe);const r=t[mg];return N.jsx(Zwe,B({},n,{themeId:r?mg:void 0,theme:r||t}))}const bW=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function $xe(e){return Qt("MuiSvgIcon",e)}Yt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Fxe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bxe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${gt(t)}`,`fontSize${gt(n)}`]};return Vt(i,$xe,r)},Uxe=Ae("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${gt(n.color)}`],t[`fontSize${gt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,l,u,c,d,p,m,g;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||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,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:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Nh=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,m=st(r,Fxe),g=P.isValidElement(i)&&i.type==="svg",v=B({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),E={};c||(E.viewBox=p);const O=Bxe(v);return N.jsxs(Uxe,B({as:a,className:dt(O.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},E,m,g&&i.props,{ownerState:v,children:[g?i.props.children:i,d?N.jsx("title",{children:d}):null]}))});Nh.muiName="SvgIcon";function Po(e,t){function n(r,i){return N.jsx(Nh,B({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Nh.muiName,P.memo(P.forwardRef(n))}const jxe={configure:e=>{c$.configure(e)}},zxe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:gt,createChainedFunction:ZC,createSvgIcon:Po,debounce:Gy,deprecatedPropType:lTe,isMuiElement:vO,ownerDocument:ci,ownerWindow:Bu,requirePropFactory:uTe,setRef:TE,unstable_ClassNameGenerator:jxe,unstable_useEnhancedEffect:Ji,unstable_useId:Ic,unsupportedProp:dTe,useControlled:ms,useEventCallback:on,useForkRef:Vn,useIsFocusVisible:h2},Symbol.toStringTag,{value:"Module"}));function rL(e,t){return rL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rL(e,t)}function O$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rL(e,t)}function Vxe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Hxe(e,t){e.classList?e.classList.add(t):Vxe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function yW(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Wxe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=yW(e.className,t):e.setAttribute("class",yW(e.className&&e.className.baseVal||"",t))}const vW={disabled:!1},e_=cn.createContext(null);var One=function(t){return t.scrollTop},qv="unmounted",_m="exited",Am="entering",L0="entered",iL="exiting",ip=function(e){O$(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?a?(l=_m,o.appearStatus=Am):l=L0:r.unmountOnExit||r.mountOnEnter?l=qv:l=_m,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===qv?{status:_m}: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 s=this.state.status;this.props.in?s!==Am&&s!==L0&&(o=Am):(s===Am||s===L0)&&(o=iL)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Am){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Gv.findDOMNode(this);s&&One(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_m&&this.setState({status:qv})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Gv.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!i&&!s||vW.disabled){this.safeSetState({status:L0},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Am},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:L0},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Gv.findDOMNode(this);if(!o||vW.disabled){this.safeSetState({status:_m},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:iL},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:_m},function(){i.props.onExited(a)})})})},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,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Gv.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,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===qv)return null;var o=this.props,s=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 a=st(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return cn.createElement(e_.Provider,{value:null},typeof s=="function"?s(i,a):cn.cloneElement(cn.Children.only(s),a))},t}(cn.Component);ip.contextType=e_;ip.propTypes={};function x0(){}ip.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x0,onEntering:x0,onEntered:x0,onExit:x0,onExiting:x0,onExited:x0};ip.UNMOUNTED=qv;ip.EXITED=_m;ip.ENTERING=Am;ip.ENTERED=L0;ip.EXITING=iL;const GS=ip;var Qxe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Hxe(t,r)})},oN=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Wxe(t,r)})},E$=function(e){O$(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;se.scrollTop;function Ph(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function eke(e){return Qt("MuiCollapse",e)}Yt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const tke=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],nke=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Vt(r,eke,n)},rke=Ae("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>B({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&B({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),ike=Ae("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>B({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),oke=Ae("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>B({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Ene=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:u,in:c,onEnter:d,onEntered:p,onEntering:m,onExit:g,onExited:v,onExiting:E,orientation:O="vertical",style:S,timeout:x=vne.standard,TransitionComponent:C=GS}=r,I=st(r,tke),_=B({},r,{orientation:O,collapsedSize:a}),w=nke(_),F=Di(),M=Bm(),L=P.useRef(null),W=P.useRef(),H=typeof a=="number"?`${a}px`:a,q=O==="horizontal",j=q?"width":"height",z=P.useRef(null),X=Vn(n,z),Z=me=>Re=>{if(me){const Fe=z.current;Re===void 0?me(Fe):me(Fe,Re)}},G=()=>L.current?L.current[q?"clientWidth":"clientHeight"]:0,ee=Z((me,Re)=>{L.current&&q&&(L.current.style.position="absolute"),me.style[j]=H,d&&d(me,Re)}),Q=Z((me,Re)=>{const Fe=G();L.current&&q&&(L.current.style.position="");const{duration:et,easing:ct}=Ph({style:S,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const Ye=F.transitions.getAutoHeightDuration(Fe);me.style.transitionDuration=`${Ye}ms`,W.current=Ye}else me.style.transitionDuration=typeof et=="string"?et:`${et}ms`;me.style[j]=`${Fe}px`,me.style.transitionTimingFunction=ct,m&&m(me,Re)}),ae=Z((me,Re)=>{me.style[j]="auto",p&&p(me,Re)}),Te=Z(me=>{me.style[j]=`${G()}px`,g&&g(me)}),te=Z(v),pe=Z(me=>{const Re=G(),{duration:Fe,easing:et}=Ph({style:S,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const ct=F.transitions.getAutoHeightDuration(Re);me.style.transitionDuration=`${ct}ms`,W.current=ct}else me.style.transitionDuration=typeof Fe=="string"?Fe:`${Fe}ms`;me.style[j]=H,me.style.transitionTimingFunction=et,E&&E(me)}),Oe=me=>{x==="auto"&&M.start(W.current||0,me),i&&i(z.current,me)};return N.jsx(C,B({in:c,onEnter:ee,onEntered:ae,onEntering:Q,onExit:Te,onExited:te,onExiting:pe,addEndListener:Oe,nodeRef:z,timeout:x==="auto"?null:x},I,{children:(me,Re)=>N.jsx(rke,B({as:l,className:dt(w.root,s,{entered:w.entered,exited:!c&&H==="0px"&&w.hidden}[me]),style:B({[q?"minWidth":"minHeight"]:H},S),ownerState:B({},_,{state:me}),ref:X},Re,{children:N.jsx(ike,{ownerState:B({},_,{state:me}),className:w.wrapper,ref:L,children:N.jsx(oke,{ownerState:B({},_,{state:me}),className:w.wrapperInner,children:o})})}))}))});Ene.muiSupportAuto=!0;const ske=Ene;function ake(e){return Qt("MuiPaper",e)}Yt("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 lke=["className","component","elevation","square","variant"],uke=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Vt(o,ake,i)},cke=Ae("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 B({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"&&B({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${In("#fff",bW(t.elevation))}, ${In("#fff",bW(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),dke=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,u=st(r,lke),c=B({},r,{component:o,elevation:s,square:a,variant:l}),d=uke(c);return N.jsx(cke,B({as:o,ownerState:c,className:dt(d.root,i),ref:n},u))}),js=dke;function Id(e){return typeof e=="string"}function Zv(e,t,n){return e===void 0||Id(e)?t:B({},t,{ownerState:B({},t.ownerState,n)})}function fke(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const pke={disableDefaultClasses:!1},hke=P.createContext(pke);function mke(e){const{disableDefaultClasses:t}=P.useContext(hke);return n=>t?"":e(n)}function SO(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 Gh(e,t,n){return typeof e=="function"?e(t,n):e}function OW(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 gke(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const m=dt(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=B({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=B({},n,i,r);return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const s=SO(B({},i,r)),a=OW(r),l=OW(i),u=t(s),c=dt(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=B({},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=B({},u,n,l,a);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const bke=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function nr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=st(e,bke),a=o?{}:Gh(r,i),{props:l,internalRef:u}=gke(B({},s,{externalSlotProps:a})),c=Vn(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Zv(n,B({},l,{ref:c}),i)}function yke(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,d]=P.useState(!1),p=dt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},g=dt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),P.useEffect(()=>{if(!a&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,a,u]),N.jsx("span",{className:p,style:m,children:N.jsx("span",{className:g})})}const yu=Yt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vke=["center","classes","className"];let A2=e=>e,EW,SW,TW,wW;const oL=550,Oke=80,Eke=VS(EW||(EW=A2` + */var aF=Symbol.for("react.element"),sF=Symbol.for("react.portal"),tR=Symbol.for("react.fragment"),nR=Symbol.for("react.strict_mode"),rR=Symbol.for("react.profiler"),iR=Symbol.for("react.provider"),oR=Symbol.for("react.context"),rTe=Symbol.for("react.server_context"),aR=Symbol.for("react.forward_ref"),sR=Symbol.for("react.suspense"),lR=Symbol.for("react.suspense_list"),uR=Symbol.for("react.memo"),cR=Symbol.for("react.lazy"),iTe=Symbol.for("react.offscreen"),nne;nne=Symbol.for("react.module.reference");function zu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case aF:switch(e=e.type,e){case tR:case rR:case nR:case sR:case lR:return e;default:switch(e=e&&e.$$typeof,e){case rTe:case oR:case aR:case cR:case uR:case iR:return e;default:return t}}case sF:return t}}}oi.ContextConsumer=oR;oi.ContextProvider=iR;oi.Element=aF;oi.ForwardRef=aR;oi.Fragment=tR;oi.Lazy=cR;oi.Memo=uR;oi.Portal=sF;oi.Profiler=rR;oi.StrictMode=nR;oi.Suspense=sR;oi.SuspenseList=lR;oi.isAsyncMode=function(){return!1};oi.isConcurrentMode=function(){return!1};oi.isContextConsumer=function(e){return zu(e)===oR};oi.isContextProvider=function(e){return zu(e)===iR};oi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===aF};oi.isForwardRef=function(e){return zu(e)===aR};oi.isFragment=function(e){return zu(e)===tR};oi.isLazy=function(e){return zu(e)===cR};oi.isMemo=function(e){return zu(e)===uR};oi.isPortal=function(e){return zu(e)===sF};oi.isProfiler=function(e){return zu(e)===rR};oi.isStrictMode=function(e){return zu(e)===nR};oi.isSuspense=function(e){return zu(e)===sR};oi.isSuspenseList=function(e){return zu(e)===lR};oi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tR||e===rR||e===nR||e===sR||e===lR||e===iTe||typeof e=="object"&&e!==null&&(e.$$typeof===cR||e.$$typeof===uR||e.$$typeof===iR||e.$$typeof===oR||e.$$typeof===aR||e.$$typeof===nne||e.getModuleId!==void 0)};oi.typeOf=zu;const oTe=ee.oneOfType([ee.func,ee.object]),Yy=oTe;function mt(e){if(typeof e!="string")throw new Error(Dh(7));return e.charAt(0).toUpperCase()+e.slice(1)}function GC(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Gy(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 aTe(e,t){return()=>null}function y1(e,t){var n,r;return L.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 ci(e){return e&&e.ownerDocument||document}function Bu(e){return ci(e).defaultView||window}function sTe(e,t){return()=>null}function SE(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ki=typeof window<"u"?L.useLayoutEffect:L.useEffect;let JW=0;function lTe(e){const[t,n]=L.useState(e),r=e||t;return L.useEffect(()=>{t==null&&(JW+=1,n(`mui-${JW}`))},[t]),r}const eH=uy.useId;function Ic(e){if(eH!==void 0){const t=eH();return e??t}return lTe(e)}function uTe(e,t,n,r,i){return null}function ma({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=L.useRef(e!==void 0),[o,a]=L.useState(t),s=i?e:o,l=L.useCallback(u=>{i||a(u)},[]);return[s,l]}function on(e){const t=L.useRef(e);return Ki(()=>{t.current=e}),L.useRef((...n)=>(0,t.current)(...n)).current}function Vn(...e){return L.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{SE(n,t)})},e)}const tH={};function cTe(e,t){const n=L.useRef(tH);return n.current===tH&&(n.current=e(t)),n}const dTe=[];function fTe(e){L.useEffect(e,dTe)}class VS{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new VS}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function Bm(){const e=cTe(VS.create).current;return fTe(e.disposeEffect),e}let dR=!0,KL=!1;const pTe=new VS,hTe={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 mTe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&hTe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gTe(e){e.metaKey||e.altKey||e.ctrlKey||(dR=!0)}function tN(){dR=!1}function bTe(){this.visibilityState==="hidden"&&KL&&(dR=!0)}function yTe(e){e.addEventListener("keydown",gTe,!0),e.addEventListener("mousedown",tN,!0),e.addEventListener("pointerdown",tN,!0),e.addEventListener("touchstart",tN,!0),e.addEventListener("visibilitychange",bTe,!0)}function vTe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return dR||mTe(t)}function fR(){const e=L.useCallback(i=>{i!=null&&yTe(i.ownerDocument)},[]),t=L.useRef(!1);function n(){return t.current?(KL=!0,pTe.start(100,()=>{KL=!1}),t.current=!1,!0):!1}function r(i){return vTe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function rne(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let wb;function ine(){if(wb)return wb;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),wb="reverse",e.scrollLeft>0?wb="default":(e.scrollLeft=1,e.scrollLeft===0&&(wb="negative")),document.body.removeChild(e),wb}function OTe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(ine()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const ETe=e=>{const t=L.useRef({});return L.useEffect(()=>{t.current=e}),t.current};function STe(e){return L.Children.toArray(e).filter(t=>L.isValidElement(t))}const TTe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},wTe=TTe;function pR(e,t){const n=B({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=B({},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]=B({},o),Object.keys(i).forEach(a=>{n[r][a]=pR(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Vt(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 nH=e=>e,xTe=()=>{let e=nH;return{configure(t){e=t},generate(t){return e(t)},reset(){e=nH}}},lF=xTe(),one={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Qt(e,t,n="Mui"){const r=one[t];return r?`${n}-${r}`:`${lF.generate(e)}-${t}`}function Yt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Qt(e,i,n)}),r}function Pb(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const kTe=["values","unit","step"],CTe=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)=>B({},n,{[r.key]:r.val}),{})};function _Te(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=st(e,kTe),o=CTe(t),a=Object.keys(o);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-r/100}${n})`}function c(f){return a.indexOf(f)+1`@media (min-width:${uF[e]}px)`};function ul(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||rH;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||rH;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||uF).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 ane(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function sne(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ITe(e,...t){const n=ane(e),r=[n,...t].reduce((i,o)=>ls(i,o),{});return sne(Object.keys(n),r)}function DTe(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 sg({values:e,breakpoints:t,base:n}){const r=n||DTe(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 hR(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 qC(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=hR(e,n)||r,t&&(i=t(i,r,e)),i}function ko(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=hR(l,r)||{};return ul(a,s,d=>{let f=qC(u,i,d);return d===f&&typeof d=="string"&&(f=qC(u,i,`${t}${d==="default"?"":mt(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[t],o}function NTe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const PTe={m:"margin",p:"padding"},LTe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},iH={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},MTe=NTe(e=>{if(e.length>2)if(iH[e])e=iH[e];else return[e];const[t,n]=e.split(""),r=PTe[t],i=LTe[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),cF=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dF=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...cF,...dF];function WS(e,t,n,r){var i;const o=(i=hR(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 fF(e){return WS(e,"spacing",8)}function gg(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 $Te(e,t){return n=>e.reduce((r,i)=>(r[i]=gg(t,n),r),{})}function FTe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=MTe(n),o=$Te(i,r),a=e[n];return ul(e,a,o)}function lne(e,t){const n=fF(e.theme);return Object.keys(e).map(r=>FTe(e,t,r,n)).reduce(v1,{})}function ao(e){return lne(e,cF)}ao.propTypes={};ao.filterProps=cF;function so(e){return lne(e,dF)}so.propTypes={};so.filterProps=dF;function BTe(e=8){if(e.mui)return e;const t=fF({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 mR(...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]?v1(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Eu(e){return typeof e!="number"?e:`${e}px solid`}function Vu(e,t){return ko({prop:e,themeKey:"borders",transform:t})}const UTe=Vu("border",Eu),jTe=Vu("borderTop",Eu),zTe=Vu("borderRight",Eu),VTe=Vu("borderBottom",Eu),WTe=Vu("borderLeft",Eu),HTe=Vu("borderColor"),QTe=Vu("borderTopColor"),YTe=Vu("borderRightColor"),GTe=Vu("borderBottomColor"),qTe=Vu("borderLeftColor"),ZTe=Vu("outline",Eu),XTe=Vu("outlineColor"),gR=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=WS(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:gg(t,r)});return ul(e,e.borderRadius,n)}return null};gR.propTypes={};gR.filterProps=["borderRadius"];mR(UTe,jTe,zTe,VTe,WTe,HTe,QTe,YTe,GTe,qTe,gR,ZTe,XTe);const bR=e=>{if(e.gap!==void 0&&e.gap!==null){const t=WS(e.theme,"spacing",8),n=r=>({gap:gg(t,r)});return ul(e,e.gap,n)}return null};bR.propTypes={};bR.filterProps=["gap"];const yR=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=WS(e.theme,"spacing",8),n=r=>({columnGap:gg(t,r)});return ul(e,e.columnGap,n)}return null};yR.propTypes={};yR.filterProps=["columnGap"];const vR=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=WS(e.theme,"spacing",8),n=r=>({rowGap:gg(t,r)});return ul(e,e.rowGap,n)}return null};vR.propTypes={};vR.filterProps=["rowGap"];const KTe=ko({prop:"gridColumn"}),JTe=ko({prop:"gridRow"}),ewe=ko({prop:"gridAutoFlow"}),twe=ko({prop:"gridAutoColumns"}),nwe=ko({prop:"gridAutoRows"}),rwe=ko({prop:"gridTemplateColumns"}),iwe=ko({prop:"gridTemplateRows"}),owe=ko({prop:"gridTemplateAreas"}),awe=ko({prop:"gridArea"});mR(bR,yR,vR,KTe,JTe,ewe,twe,nwe,rwe,iwe,owe,awe);function C0(e,t){return t==="grey"?t:e}const swe=ko({prop:"color",themeKey:"palette",transform:C0}),lwe=ko({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:C0}),uwe=ko({prop:"backgroundColor",themeKey:"palette",transform:C0});mR(swe,lwe,uwe);function $l(e){return e<=1&&e!==0?`${e*100}%`:e}const cwe=ko({prop:"width",transform:$l}),pF=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])||uF[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:$l(n)}};return ul(e,e.maxWidth,t)}return null};pF.filterProps=["maxWidth"];const dwe=ko({prop:"minWidth",transform:$l}),fwe=ko({prop:"height",transform:$l}),pwe=ko({prop:"maxHeight",transform:$l}),hwe=ko({prop:"minHeight",transform:$l});ko({prop:"size",cssProperty:"width",transform:$l});ko({prop:"size",cssProperty:"height",transform:$l});const mwe=ko({prop:"boxSizing"});mR(cwe,pF,dwe,fwe,pwe,hwe,mwe);const gwe={border:{themeKey:"borders",transform:Eu},borderTop:{themeKey:"borders",transform:Eu},borderRight:{themeKey:"borders",transform:Eu},borderBottom:{themeKey:"borders",transform:Eu},borderLeft:{themeKey:"borders",transform:Eu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Eu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gR},color:{themeKey:"palette",transform:C0},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:C0},backgroundColor:{themeKey:"palette",transform:C0},p:{style:so},pt:{style:so},pr:{style:so},pb:{style:so},pl:{style:so},px:{style:so},py:{style:so},padding:{style:so},paddingTop:{style:so},paddingRight:{style:so},paddingBottom:{style:so},paddingLeft:{style:so},paddingX:{style:so},paddingY:{style:so},paddingInline:{style:so},paddingInlineStart:{style:so},paddingInlineEnd:{style:so},paddingBlock:{style:so},paddingBlockStart:{style:so},paddingBlockEnd:{style:so},m:{style:ao},mt:{style:ao},mr:{style:ao},mb:{style:ao},ml:{style:ao},mx:{style:ao},my:{style:ao},margin:{style:ao},marginTop:{style:ao},marginRight:{style:ao},marginBottom:{style:ao},marginLeft:{style:ao},marginX:{style:ao},marginY:{style:ao},marginInline:{style:ao},marginInlineStart:{style:ao},marginInlineEnd:{style:ao},marginBlock:{style:ao},marginBlockStart:{style:ao},marginBlockEnd:{style:ao},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:bR},rowGap:{style:vR},columnGap:{style:yR},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$l},maxWidth:{style:pF},minWidth:{transform:$l},height:{transform:$l},maxHeight:{transform:$l},minHeight:{transform:$l},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},OR=gwe;function bwe(...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 ywe(e,t){return typeof e=="function"?e(t):e}function vwe(){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 f=hR(i,u)||{};return d?d(a):ul(a,r,g=>{let v=qC(f,c,g);return g===v&&typeof g=="string"&&(v=qC(f,c,`${n}${g==="default"?"":mt(g)}`,g)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:OR;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=ane(o.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(m=>{const g=ywe(u[m],o);if(g!=null)if(typeof g=="object")if(a[m])f=v1(f,e(m,g,o,a));else{const v=ul({theme:o},g,S=>({[m]:S}));bwe(v,g)?f[m]=t({sx:g,theme:o}):f=v1(f,v)}else f=v1(f,e(m,g,o,a))}),sne(d,f)}return Array.isArray(i)?i.map(s):s(i)}return t}const HS=vwe();HS.filterProps=["sx"];function Owe(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Ewe=["breakpoints","palette","spacing","shape"];function QS(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=st(e,Ewe),s=_Te(n),l=BTe(i);let u=ls({breakpoints:s,direction:"ltr",components:{},palette:B({mode:"light"},r),spacing:l,shape:B({},RTe,o)},a);return u.applyStyles=Owe,u=t.reduce((c,d)=>ls(c,d),u),u.unstable_sxConfig=B({},OR,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return HS({sx:d,theme:this})},u}function Swe(e){return Object.keys(e).length===0}function ER(e=null){const t=L.useContext(eR);return!t||Swe(t)?e:t}const Twe=QS();function qy(e=Twe){return ER(e)}function wwe({styles:e,themeId:t,defaultTheme:n={}}){const r=qy(n),i=typeof e=="function"?e(t&&r[t]||r):e;return N.jsx(tTe,{styles:i})}const xwe=["sx"],kwe=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:OR;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function SR(e){const{sx:t}=e,n=st(e,xwe),{systemProps:r,otherProps:i}=kwe(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return If(s)?B({},r,s):r}:o=B({},r,t),B({},i,{sx:o})}function une(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"})(HS);return L.forwardRef(function(l,u){const c=qy(n),d=SR(l),{className:f,component:m="div"}=d,g=st(d,Cwe);return N.jsx(o,B({as:m,ref:u,className:dt(f,i?i(r):r),theme:t&&c[t]||c},g))})}const Awe=["variant"];function oH(e){return e.length===0}function cne(e){const{variant:t}=e,n=st(e,Awe);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=oH(r)?e[i]:mt(e[i]):r+=`${oH(r)?i:mt(i)}${mt(e[i].toString())}`}),r}const Rwe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Iwe(e){return Object.keys(e).length===0}function Dwe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Nwe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,ZC=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=cne(r.props),n[i]=r.style}),n},Pwe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),ZC(n)},XC=(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=B({},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[cne(a.props)])),typeof a.props=="function"&&(o+=1)}),i},Lwe=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return XC(e,t,o)};function O1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mwe=QS(),$we=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Dk({defaultTheme:e,theme:t,themeId:n}){return Iwe(t)?e:t[n]||t}function Fwe(e){return e?(t,n)=>n[e]:null}const aH=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(B({},t,{theme:Dk(B({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=XC(t,ZC(o),o);return[i,...a]}return i};function dne(e={}){const{themeId:t,defaultTheme:n=Mwe,rootShouldForwardProp:r=O1,slotShouldForwardProp:i=O1}=e,o=a=>HS(B({},a,{theme:Dk(B({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{nTe(a,k=>k.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=Fwe($we(u))}=s,m=st(s,Rwe),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=d||!1;let S,O=O1;u==="Root"||u==="root"?O=r:u?O=i:Dwe(a)&&(O=void 0);const E=ene(a,B({shouldForwardProp:O,label:S},m)),w=(k,...A)=>{const C=A?A.map(P=>{if(typeof P=="function"&&P.__emotion_real!==P)return V=>aH({styledArg:P,props:V,defaultTheme:n,themeId:t});if(If(P)){let V=P,W;return P&&P.variants&&(W=P.variants,delete V.variants,V=G=>{let j=P;return XC(G,ZC(W),W).forEach(X=>{j=ls(j,X)}),j}),V}return P}):[];let x=k;if(If(k)){let P;k&&k.variants&&(P=k.variants,delete x.variants,x=V=>{let W=k;return XC(V,ZC(P),P).forEach(j=>{W=ls(W,j)}),W})}else typeof k=="function"&&k.__emotion_real!==k&&(x=P=>aH({styledArg:k,props:P,defaultTheme:n,themeId:t}));l&&f&&C.push(P=>{const V=Dk(B({},P,{defaultTheme:n,themeId:t})),W=Nwe(l,V);if(W){const G={};return Object.entries(W).forEach(([j,z])=>{G[j]=typeof z=="function"?z(B({},P,{theme:V})):z}),f(P,G)}return null}),l&&!g&&C.push(P=>{const V=Dk(B({},P,{defaultTheme:n,themeId:t}));return Lwe(P,Pwe(l,V),V,l)}),v||C.push(o);const F=C.length-A.length;if(Array.isArray(k)&&F>0){const P=new Array(F).fill("");x=[...k,...P],x.raw=[...k.raw,...P]}const M=E(x,...C);return a.muiName&&(M.muiName=a.muiName),M};return E.withConfig&&(w.withConfig=E.withConfig),w}}const fne=dne();function pne(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:pR(t.components[n].defaultProps,r)}function hF({props:e,name:t,defaultTheme:n,themeId:r}){let i=qy(n);return r&&(i=i[r]||i),pne({theme:i,name:t,props:e})}function mF(e,t=0,n=1){return Pb(e,t,n)}function Bwe(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 bg(e){if(e.type)return e;if(e.charAt(0)==="#")return bg(Bwe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Dh(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(Dh(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function TR(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 Uwe(e){e=bg(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])),TR({type:s,values:l})}function JL(e){e=bg(e);let t=e.type==="hsl"||e.type==="hsla"?bg(Uwe(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 jwe(e,t){const n=JL(e),r=JL(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function In(e,t){return e=bg(e),t=mF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,TR(e)}function wR(e,t){if(e=bg(e),t=mF(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 TR(e)}function xR(e,t){if(e=bg(e),t=mF(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 TR(e)}function zwe(e,t=.15){return JL(e)>.5?wR(e,t):xR(e,t)}const Vwe=L.createContext(null),hne=Vwe;function mne(){return L.useContext(hne)}const Wwe=typeof Symbol=="function"&&Symbol.for,Hwe=Wwe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Qwe(e,t){return typeof t=="function"?t(e):B({},e,t)}function Ywe(e){const{children:t,theme:n}=e,r=mne(),i=L.useMemo(()=>{const o=r===null?n:Qwe(r,n);return o!=null&&(o[Hwe]=r!==null),o},[n,r]);return N.jsx(hne.Provider,{value:i,children:t})}const sH={};function lH(e,t,n,r=!1){return L.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?B({},t,{[e]:o}):o;return r?()=>a:a}return e?B({},t,{[e]:n}):B({},t,n)},[e,t,n,r])}function Gwe(e){const{children:t,theme:n,themeId:r}=e,i=ER(sH),o=mne()||sH,a=lH(r,i,n),s=lH(r,o,n,!0);return N.jsx(Ywe,{theme:s,children:N.jsx(eR.Provider,{value:a,children:t})})}const qwe=["className","component","disableGutters","fixed","maxWidth","classes"],Zwe=QS(),Xwe=fne("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${mt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Kwe=e=>hF({props:e,name:"MuiContainer",defaultTheme:Zwe}),Jwe=(e,t)=>{const n=l=>Qt(t,l),{classes:r,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${mt(String(a))}`,i&&"fixed",o&&"disableGutters"]};return Vt(s,n,r)};function exe(e={}){const{createStyledComponent:t=Xwe,useThemeProps:n=Kwe,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>B({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})=>B({},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 L.forwardRef(function(s,l){const u=n(s),{className:c,component:d="div",disableGutters:f=!1,fixed:m=!1,maxWidth:g="lg"}=u,v=st(u,qwe),S=B({},u,{component:d,disableGutters:f,fixed:m,maxWidth:g}),O=Jwe(S,r);return N.jsx(i,B({as:d,ownerState:S,className:dt(O.root,c),ref:l},v))})}const txe=["component","direction","spacing","divider","children","className","useFlexGap"],nxe=QS(),rxe=fne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ixe(e){return hF({props:e,name:"MuiStack",defaultTheme:nxe})}function oxe(e,t){const n=L.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],sxe=({ownerState:e,theme:t})=>{let n=B({display:"flex",flexDirection:"column"},ul({theme:t},sg({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=fF(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=sg({values:e.direction,base:i}),a=sg({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const f=u>0?o[c[u-1]]:"column";o[l]=f}}),n=ls(n,ul({theme:t},a,(l,u)=>e.useFlexGap?{gap:gg(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${axe(u?o[u]:e.direction)}`]:gg(r,l)}}))}return n=ITe(t.breakpoints,n),n};function lxe(e={}){const{createStyledComponent:t=rxe,useThemeProps:n=ixe,componentName:r="MuiStack"}=e,i=()=>Vt({root:["root"]},l=>Qt(r,l),{}),o=t(sxe);return L.forwardRef(function(l,u){const c=n(l),d=SR(c),{component:f="div",direction:m="column",spacing:g=0,divider:v,children:S,className:O,useFlexGap:E=!1}=d,w=st(d,txe),k={direction:m,spacing:g,useFlexGap:E},A=i();return N.jsx(o,B({as:f,ownerState:k,ref:u,className:dt(A.root,O)},w,{children:v?oxe(S,v):S}))})}function uxe(e,t){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const cxe=["mode","contrastThreshold","tonalOffset"],uH={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:yE.white,default:yE.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}},nN={text:{primary:yE.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:yE.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 cH(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=xR(e.main,i):t==="dark"&&(e.dark=wR(e.main,o)))}function dxe(e="light"){return e==="dark"?{main:Eb[200],light:Eb[50],dark:Eb[400]}:{main:Eb[700],light:Eb[400],dark:Eb[800]}}function fxe(e="light"){return e==="dark"?{main:Ob[200],light:Ob[50],dark:Ob[400]}:{main:Ob[500],light:Ob[300],dark:Ob[700]}}function pxe(e="light"){return e==="dark"?{main:vb[500],light:vb[300],dark:vb[700]}:{main:vb[700],light:vb[400],dark:vb[800]}}function hxe(e="light"){return e==="dark"?{main:Sb[400],light:Sb[300],dark:Sb[700]}:{main:Sb[700],light:Sb[500],dark:Sb[900]}}function mxe(e="light"){return e==="dark"?{main:Tb[400],light:Tb[300],dark:Tb[700]}:{main:Tb[800],light:Tb[500],dark:Tb[900]}}function gxe(e="light"){return e==="dark"?{main:sO[400],light:sO[300],dark:sO[700]}:{main:"#ed6c02",light:sO[500],dark:sO[900]}}function bxe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=st(e,cxe),o=e.primary||dxe(t),a=e.secondary||fxe(t),s=e.error||pxe(t),l=e.info||hxe(t),u=e.success||mxe(t),c=e.warning||gxe(t);function d(v){return jwe(v,nN.text.primary)>=n?nN.text.primary:uH.text.primary}const f=({color:v,name:S,mainShade:O=500,lightShade:E=300,darkShade:w=700})=>{if(v=B({},v),!v.main&&v[O]&&(v.main=v[O]),!v.hasOwnProperty("main"))throw new Error(Dh(11,S?` (${S})`:"",O));if(typeof v.main!="string")throw new Error(Dh(12,S?` (${S})`:"",JSON.stringify(v.main)));return cH(v,"light",E,r),cH(v,"dark",w,r),v.contrastText||(v.contrastText=d(v.main)),v},m={dark:nN,light:uH};return ls(B({common:B({},yE),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:GEe,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},m[t]),i)}const yxe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function vxe(e){return Math.round(e*1e5)/1e5}const dH={textTransform:"uppercase"},fH='"Roboto", "Helvetica", "Arial", sans-serif';function Oxe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=fH,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=st(n,yxe),m=i/14,g=d||(O=>`${O/u*m}rem`),v=(O,E,w,k,A)=>B({fontFamily:r,fontWeight:O,fontSize:g(E),lineHeight:w},r===fH?{letterSpacing:`${vxe(k/E)}em`}:{},A,c),S={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,dH),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,dH),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ls(B({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},S),f,{clone:!1})}const Exe=.2,Sxe=.14,Txe=.12;function Bi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Exe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Sxe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Txe})`].join(",")}const wxe=["none",Bi(0,2,1,-1,0,1,1,0,0,1,3,0),Bi(0,3,1,-2,0,2,2,0,0,1,5,0),Bi(0,3,3,-2,0,3,4,0,0,1,8,0),Bi(0,2,4,-1,0,4,5,0,0,1,10,0),Bi(0,3,5,-1,0,5,8,0,0,1,14,0),Bi(0,3,5,-1,0,6,10,0,0,1,18,0),Bi(0,4,5,-2,0,7,10,1,0,2,16,1),Bi(0,5,5,-3,0,8,10,1,0,3,14,2),Bi(0,5,6,-3,0,9,12,1,0,3,16,2),Bi(0,6,6,-3,0,10,14,1,0,4,18,3),Bi(0,6,7,-4,0,11,15,1,0,4,20,3),Bi(0,7,8,-4,0,12,17,2,0,5,22,4),Bi(0,7,8,-4,0,13,19,2,0,5,24,4),Bi(0,7,9,-4,0,14,21,2,0,5,26,4),Bi(0,8,9,-5,0,15,22,2,0,6,28,5),Bi(0,8,10,-5,0,16,24,2,0,6,30,5),Bi(0,8,11,-5,0,17,26,2,0,6,32,5),Bi(0,9,11,-5,0,18,28,2,0,7,34,6),Bi(0,9,12,-6,0,19,29,2,0,7,36,6),Bi(0,10,13,-6,0,20,31,3,0,8,38,7),Bi(0,10,13,-6,0,21,33,3,0,8,40,7),Bi(0,10,14,-6,0,22,35,3,0,8,42,7),Bi(0,11,14,-7,0,23,36,3,0,9,44,8),Bi(0,11,15,-7,0,24,38,3,0,9,46,8)],xxe=["duration","easing","delay"],kxe={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)"},gne={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pH(e){return`${Math.round(e)}ms`}function Cxe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function _xe(e){const t=B({},kxe,e.easing),n=B({},gne,e.duration);return B({getAutoHeightDuration:Cxe,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return st(o,xxe),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:pH(a)} ${s} ${typeof l=="string"?l:pH(l)}`).join(",")}},e,{easing:t,duration:n})}const Axe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Rxe=Axe,Ixe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function gF(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=st(e,Ixe);if(e.vars)throw new Error(Dh(18));const s=bxe(r),l=QS(e);let u=ls(l,{mixins:uxe(l.breakpoints,n),palette:s,shadows:wxe.slice(),typography:Oxe(s,o),transitions:_xe(i),zIndex:B({},Rxe)});return u=ls(u,a),u=t.reduce((c,d)=>ls(c,d),u),u.unstable_sxConfig=B({},OR,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return HS({sx:d,theme:this})},u}const Dxe=gF(),kR=Dxe;function Di(){const e=qy(kR);return e[mg]||e}function Nt({props:e,name:t}){return hF({props:e,name:t,defaultTheme:kR,themeId:mg})}const ya=e=>O1(e)&&e!=="classes",bF=O1,Ie=dne({themeId:mg,defaultTheme:kR,rootShouldForwardProp:ya}),Nxe=["theme"];function Pxe(e){let{theme:t}=e,n=st(e,Nxe);const r=t[mg];return N.jsx(Gwe,B({},n,{themeId:r?mg:void 0,theme:r||t}))}const hH=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Lxe(e){return Qt("MuiSvgIcon",e)}Yt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Mxe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$xe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${mt(t)}`,`fontSize${mt(n)}`]};return Vt(i,Lxe,r)},Fxe=Ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${mt(n.color)}`],t[`fontSize${mt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,f,m,g;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=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Nh=L.forwardRef(function(t,n){const r=Nt({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:f="0 0 24 24"}=r,m=st(r,Mxe),g=L.isValidElement(i)&&i.type==="svg",v=B({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:g}),S={};c||(S.viewBox=f);const O=$xe(v);return N.jsxs(Fxe,B({as:s,className:dt(O.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},S,m,g&&i.props,{ownerState:v,children:[g?i.props.children:i,d?N.jsx("title",{children:d}):null]}))});Nh.muiName="SvgIcon";function Po(e,t){function n(r,i){return N.jsx(Nh,B({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Nh.muiName,L.memo(L.forwardRef(n))}const Bxe={configure:e=>{lF.configure(e)}},Uxe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:mt,createChainedFunction:GC,createSvgIcon:Po,debounce:Gy,deprecatedPropType:aTe,isMuiElement:y1,ownerDocument:ci,ownerWindow:Bu,requirePropFactory:sTe,setRef:SE,unstable_ClassNameGenerator:Bxe,unstable_useEnhancedEffect:Ki,unstable_useId:Ic,unsupportedProp:uTe,useControlled:ma,useEventCallback:on,useForkRef:Vn,useIsFocusVisible:fR},Symbol.toStringTag,{value:"Module"}));function eM(e,t){return eM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},eM(e,t)}function yF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,eM(e,t)}function jxe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function zxe(e,t){e.classList?e.classList.add(t):jxe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function mH(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Vxe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=mH(e.className,t):e.setAttribute("class",mH(e.className&&e.className.baseVal||"",t))}const gH={disabled:!1},KC=cn.createContext(null);var bne=function(t){return t.scrollTop},GO="unmounted",_m="exited",Am="entering",Lb="entered",tM="exiting",ip=function(e){yF(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=_m,o.appearStatus=Am):l=Lb:r.unmountOnExit||r.mountOnEnter?l=GO:l=_m,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===GO?{status:_m}: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!==Am&&a!==Lb&&(o=Am):(a===Am||a===Lb)&&(o=tM)}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===Am){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:YO.findDOMNode(this);a&&bne(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_m&&this.setState({status:GO})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[YO.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!a||gH.disabled){this.safeSetState({status:Lb},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Am},function(){o.props.onEntering(u,c),o.onTransitionEnd(f,function(){o.safeSetState({status:Lb},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:YO.findDOMNode(this);if(!o||gH.disabled){this.safeSetState({status:_m},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:tM},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:_m},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:YO.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===GO)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=st(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return cn.createElement(KC.Provider,{value:null},typeof a=="function"?a(i,s):cn.cloneElement(cn.Children.only(a),s))},t}(cn.Component);ip.contextType=KC;ip.propTypes={};function xb(){}ip.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xb,onEntering:xb,onEntered:xb,onExit:xb,onExiting:xb,onExited:xb};ip.UNMOUNTED=GO;ip.EXITED=_m;ip.ENTERING=Am;ip.ENTERED=Lb;ip.EXITING=tM;const YS=ip;var Wxe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return zxe(t,r)})},rN=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Vxe(t,r)})},vF=function(e){yF(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function Ph(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 Kxe(e){return Qt("MuiCollapse",e)}Yt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Jxe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],eke=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Vt(r,Kxe,n)},tke=Ie("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>B({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&B({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),nke=Ie("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>B({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),rke=Ie("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>B({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),yne=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:d,onEntered:f,onEntering:m,onExit:g,onExited:v,onExiting:S,orientation:O="vertical",style:E,timeout:w=gne.standard,TransitionComponent:k=YS}=r,A=st(r,Jxe),C=B({},r,{orientation:O,collapsedSize:s}),x=eke(C),F=Di(),M=Bm(),P=L.useRef(null),V=L.useRef(),W=typeof s=="number"?`${s}px`:s,G=O==="horizontal",j=G?"width":"height",z=L.useRef(null),X=Vn(n,z),Z=ue=>we=>{if(ue){const ke=z.current;we===void 0?ue(ke):ue(ke,we)}},q=()=>P.current?P.current[G?"clientWidth":"clientHeight"]:0,te=Z((ue,we)=>{P.current&&G&&(P.current.style.position="absolute"),ue.style[j]=W,d&&d(ue,we)}),Q=Z((ue,we)=>{const ke=q();P.current&&G&&(P.current.style.position="");const{duration:Ue,easing:et}=Ph({style:E,timeout:w,easing:u},{mode:"enter"});if(w==="auto"){const Me=F.transitions.getAutoHeightDuration(ke);ue.style.transitionDuration=`${Me}ms`,V.current=Me}else ue.style.transitionDuration=typeof Ue=="string"?Ue:`${Ue}ms`;ue.style[j]=`${ke}px`,ue.style.transitionTimingFunction=et,m&&m(ue,we)}),se=Z((ue,we)=>{ue.style[j]="auto",f&&f(ue,we)}),he=Z(ue=>{ue.style[j]=`${q()}px`,g&&g(ue)}),J=Z(v),le=Z(ue=>{const we=q(),{duration:ke,easing:Ue}=Ph({style:E,timeout:w,easing:u},{mode:"exit"});if(w==="auto"){const et=F.transitions.getAutoHeightDuration(we);ue.style.transitionDuration=`${et}ms`,V.current=et}else ue.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;ue.style[j]=W,ue.style.transitionTimingFunction=Ue,S&&S(ue)}),ve=ue=>{w==="auto"&&M.start(V.current||0,ue),i&&i(z.current,ue)};return N.jsx(k,B({in:c,onEnter:te,onEntered:se,onEntering:Q,onExit:he,onExited:J,onExiting:le,addEndListener:ve,nodeRef:z,timeout:w==="auto"?null:w},A,{children:(ue,we)=>N.jsx(tke,B({as:l,className:dt(x.root,a,{entered:x.entered,exited:!c&&W==="0px"&&x.hidden}[ue]),style:B({[G?"minWidth":"minHeight"]:W},E),ownerState:B({},C,{state:ue}),ref:X},we,{children:N.jsx(nke,{ownerState:B({},C,{state:ue}),className:x.wrapper,ref:P,children:N.jsx(rke,{ownerState:B({},C,{state:ue}),className:x.wrapperInner,children:o})})}))}))});yne.muiSupportAuto=!0;const ike=yne;function oke(e){return Qt("MuiPaper",e)}Yt("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 ake=["className","component","elevation","square","variant"],ske=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Vt(o,oke,i)},lke=Ie("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 B({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"&&B({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${In("#fff",hH(t.elevation))}, ${In("#fff",hH(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),uke=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=st(r,ake),c=B({},r,{component:o,elevation:a,square:s,variant:l}),d=ske(c);return N.jsx(lke,B({as:o,ownerState:c,className:dt(d.root,i),ref:n},u))}),ja=uke;function Dd(e){return typeof e=="string"}function qO(e,t,n){return e===void 0||Dd(e)?t:B({},t,{ownerState:B({},t.ownerState,n)})}function cke(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const dke={disableDefaultClasses:!1},fke=L.createContext(dke);function pke(e){const{disableDefaultClasses:t}=L.useContext(fke);return n=>t?"":e(n)}function E1(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 Gh(e,t,n){return typeof e=="function"?e(t,n):e}function bH(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 hke(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const m=dt(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=B({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=B({},n,i,r);return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const a=E1(B({},i,r)),s=bH(r),l=bH(i),u=t(a),c=dt(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=B({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=B({},u,n,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const mke=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function nr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=st(e,mke),s=o?{}:Gh(r,i),{props:l,internalRef:u}=hke(B({},a,{externalSlotProps:s})),c=Vn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return qO(n,B({},l,{ref:c}),i)}function gke(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=L.useState(!1),f=dt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},g=dt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&d(!0),L.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),N.jsx("span",{className:f,style:m,children:N.jsx("span",{className:g})})}const yu=Yt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bke=["center","classes","className"];let CR=e=>e,yH,vH,OH,EH;const nM=550,yke=80,vke=zS(yH||(yH=CR` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),Ske=VS(SW||(SW=A2` +`)),Oke=zS(vH||(vH=CR` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),Tke=VS(TW||(TW=A2` +`)),Eke=zS(OH||(OH=CR` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),wke=Ae("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xke=Ae(yke,{name:"MuiTouchRipple",slot:"Ripple"})(wW||(wW=A2` +`)),Ske=Ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Tke=Ie(gke,{name:"MuiTouchRipple",slot:"Ripple"})(EH||(EH=CR` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),yu.rippleVisible,Eke,oL,({theme:e})=>e.transitions.easing.easeInOut,yu.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,yu.child,yu.childLeaving,Ske,oL,({theme:e})=>e.transitions.easing.easeInOut,yu.childPulsate,Tke,({theme:e})=>e.transitions.easing.easeInOut),kke=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=st(r,vke),[l,u]=P.useState([]),c=P.useRef(0),d=P.useRef(null);P.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=P.useRef(!1),m=Bm(),g=P.useRef(null),v=P.useRef(null),E=P.useCallback(C=>{const{pulsate:I,rippleX:_,rippleY:w,rippleSize:F,cb:M}=C;u(L=>[...L,N.jsx(xke,{classes:{ripple:dt(o.ripple,yu.ripple),rippleVisible:dt(o.rippleVisible,yu.rippleVisible),ripplePulsate:dt(o.ripplePulsate,yu.ripplePulsate),child:dt(o.child,yu.child),childLeaving:dt(o.childLeaving,yu.childLeaving),childPulsate:dt(o.childPulsate,yu.childPulsate)},timeout:oL,pulsate:I,rippleX:_,rippleY:w,rippleSize:F},c.current)]),c.current+=1,d.current=M},[o]),O=P.useCallback((C={},I={},_=()=>{})=>{const{pulsate:w=!1,center:F=i||I.pulsate,fakeElement:M=!1}=I;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const L=M?null:v.current,W=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,q,j;if(F||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)H=Math.round(W.width/2),q=Math.round(W.height/2);else{const{clientX:z,clientY:X}=C.touches&&C.touches.length>0?C.touches[0]:C;H=Math.round(z-W.left),q=Math.round(X-W.top)}if(F)j=Math.sqrt((2*W.width**2+W.height**2)/3),j%2===0&&(j+=1);else{const z=Math.max(Math.abs((L?L.clientWidth:0)-H),H)*2+2,X=Math.max(Math.abs((L?L.clientHeight:0)-q),q)*2+2;j=Math.sqrt(z**2+X**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{E({pulsate:w,rippleX:H,rippleY:q,rippleSize:j,cb:_})},m.start(Oke,()=>{g.current&&(g.current(),g.current=null)})):E({pulsate:w,rippleX:H,rippleY:q,rippleSize:j,cb:_})},[i,E,m]),S=P.useCallback(()=>{O({},{pulsate:!0})},[O]),x=P.useCallback((C,I)=>{if(m.clear(),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{x(C,I)});return}g.current=null,u(_=>_.length>0?_.slice(1):_),d.current=I},[m]);return P.useImperativeHandle(n,()=>({pulsate:S,start:O,stop:x}),[S,O,x]),N.jsx(wke,B({className:dt(yu.root,o.root,s),ref:v},a,{children:N.jsx(w$,{component:null,exit:!0,children:l})}))}),Cke=kke;function _ke(e){return Qt("MuiButtonBase",e)}const Ake=Yt("MuiButtonBase",["root","disabled","focusVisible"]),Rke=["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"],Ike=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=Vt({root:["root",t&&"disabled",n&&"focusVisible"]},_ke,i);return n&&r&&(s.root+=` ${r}`),s},Dke=Ae("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"},[`&.${Ake.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nke=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:E,onDragLeave:O,onFocus:S,onFocusVisible:x,onKeyDown:C,onKeyUp:I,onMouseDown:_,onMouseLeave:w,onMouseUp:F,onTouchEnd:M,onTouchMove:L,onTouchStart:W,tabIndex:H=0,TouchRippleProps:q,touchRippleRef:j,type:z}=r,X=st(r,Rke),Z=P.useRef(null),G=P.useRef(null),ee=Vn(G,j),{isFocusVisibleRef:Q,onFocus:ae,onBlur:Te,ref:te}=h2(),[pe,Oe]=P.useState(!1);u&&pe&&Oe(!1),P.useImperativeHandle(i,()=>({focusVisible:()=>{Oe(!0),Z.current.focus()}}),[]);const[me,Re]=P.useState(!1);P.useEffect(()=>{Re(!0)},[]);const Fe=me&&!c&&!u;P.useEffect(()=>{pe&&p&&!c&&me&&G.current.pulsate()},[c,p,pe,me]);function et(Ie,ft,_t=d){return on(At=>(ft&&ft(At),!_t&&G.current&&G.current[Ie](At),!0))}const ct=et("start",_),Ye=et("stop",E),nt=et("stop",O),ke=et("stop",F),qe=et("stop",Ie=>{pe&&Ie.preventDefault(),w&&w(Ie)}),Ge=et("start",W),rt=et("stop",M),Ot=et("stop",L),Ke=et("stop",Ie=>{Te(Ie),Q.current===!1&&Oe(!1),g&&g(Ie)},!1),de=on(Ie=>{Z.current||(Z.current=Ie.currentTarget),ae(Ie),Q.current===!0&&(Oe(!0),x&&x(Ie)),S&&S(Ie)}),oe=()=>{const Ie=Z.current;return l&&l!=="button"&&!(Ie.tagName==="A"&&Ie.href)},ie=P.useRef(!1),Me=on(Ie=>{p&&!ie.current&&pe&&G.current&&Ie.key===" "&&(ie.current=!0,G.current.stop(Ie,()=>{G.current.start(Ie)})),Ie.target===Ie.currentTarget&&oe()&&Ie.key===" "&&Ie.preventDefault(),C&&C(Ie),Ie.target===Ie.currentTarget&&oe()&&Ie.key==="Enter"&&!u&&(Ie.preventDefault(),v&&v(Ie))}),He=on(Ie=>{p&&Ie.key===" "&&G.current&&pe&&!Ie.defaultPrevented&&(ie.current=!1,G.current.stop(Ie,()=>{G.current.pulsate(Ie)})),I&&I(Ie),v&&Ie.target===Ie.currentTarget&&oe()&&Ie.key===" "&&!Ie.defaultPrevented&&v(Ie)});let Be=l;Be==="button"&&(X.href||X.to)&&(Be=m);const ce={};Be==="button"?(ce.type=z===void 0?"button":z,ce.disabled=u):(!X.href&&!X.to&&(ce.role="button"),u&&(ce["aria-disabled"]=u));const ye=Vn(n,te,Z),be=B({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:H,focusVisible:pe}),we=Ike(be);return N.jsxs(Dke,B({as:Be,className:dt(we.root,a),ownerState:be,onBlur:Ke,onClick:v,onContextMenu:Ye,onFocus:de,onKeyDown:Me,onKeyUp:He,onMouseDown:ct,onMouseLeave:qe,onMouseUp:ke,onDragLeave:nt,onTouchEnd:rt,onTouchMove:Ot,onTouchStart:Ge,ref:ye,tabIndex:u?-1:H,type:z},ce,X,{children:[s,Fe?N.jsx(Cke,B({ref:ee,center:o},q)):null]}))}),Gl=Nke;function Pke(e){return Qt("MuiIconButton",e)}const Lke=Yt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Mke=["edge","children","className","color","disabled","disableFocusRipple","size"],$ke=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${gt(r)}`,i&&`edge${gt(i)}`,`size${gt(o)}`]};return Vt(s,Pke,t)},Fke=Ae(Gl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${gt(n.color)}`],n.edge&&t[`edge${gt(n.edge)}`],t[`size${gt(n.size)}`]]}})(({theme:e,ownerState:t})=>B({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return B({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&B({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":B({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Lke.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Bke=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=st(r,Mke),p=B({},r,{edge:i,color:a,disabled:l,disableFocusRipple:u,size:c}),m=$ke(p);return N.jsx(Fke,B({className:dt(m.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),Xo=Bke,Uke=Po(N.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function jke(e){return Qt("MuiTypography",e)}Yt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zke=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Vke=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${gt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Vt(a,jke,s)},Hke=Ae("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${gt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>B({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})),xW={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Wke={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Qke=e=>Wke[e]||e,Yke=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTypography"}),i=Qke(r.color),o=w2(B({},r,{color:i})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:m=xW}=o,g=st(o,zke),v=B({},o,{align:s,color:i,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:m}),E=l||(d?"p":m[p]||xW[p])||"span",O=Vke(v);return N.jsx(Hke,B({as:E,ref:n,ownerState:v,className:dt(O.root,a)},g))}),$r=Yke;function Gke(e){return Qt("MuiAppBar",e)}Yt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const qke=["className","color","enableColorOnDark","position"],Zke=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${gt(t)}`,`position${gt(n)}`]};return Vt(i,Gke,r)},sx=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Xke=Ae(js,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${gt(n.position)}`],t[`color${gt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return B({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&&B({},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"&&B({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&B({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:sx(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:sx(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:sx(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:sx(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"}))}),Kke=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=st(r,qke),u=B({},r,{color:o,position:a,enableColorOnDark:s}),c=Zke(u);return N.jsx(Xke,B({square:!0,component:"header",ownerState:u,elevation:4,className:dt(c.root,i,a==="fixed"&&"mui-fixed"),ref:n},l))}),Sne=Kke,Tne="base";function Jke(e){return`${Tne}--${e}`}function eCe(e,t){return`${Tne}-${e}-${t}`}function wne(e,t){const n=lne[t];return n?Jke(n):eCe(e,t)}function tCe(e,t){const n={};return t.forEach(r=>{n[r]=wne(e,r)}),n}function kW(e){return e.substring(2).toLowerCase()}function nCe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=Vn(t.ref,a),d=on(g=>{const v=u.current;u.current=!1;const E=ci(a.current);if(!l.current||!a.current||"clientX"in g&&nCe(g,E))return;if(s.current){s.current=!1;return}let O;g.composedPath?O=g.composedPath().indexOf(a.current)>-1:O=!E.documentElement.contains(g.target)||a.current.contains(g.target),!O&&(n||!v)&&i(g)}),p=g=>v=>{u.current=!0;const E=t.props[g];E&&E(v)},m={ref:c};return o!==!1&&(m[o]=p(o)),P.useEffect(()=>{if(o!==!1){const g=kW(o),v=ci(a.current),E=()=>{s.current=!0};return v.addEventListener(g,d),v.addEventListener("touchmove",E),()=>{v.removeEventListener(g,d),v.removeEventListener("touchmove",E)}}},[d,o]),r!==!1&&(m[r]=p(r)),P.useEffect(()=>{if(r!==!1){const g=kW(r),v=ci(a.current);return v.addEventListener(g,d),()=>{v.removeEventListener(g,d)}}},[d,r]),N.jsx(P.Fragment,{children:P.cloneElement(t,m)})}const iCe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function oCe(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 sCe(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 aCe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||sCe(e))}function lCe(e){const t=[],n=[];return Array.from(e.querySelectorAll(iCe)).forEach((r,i)=>{const o=oCe(r);o===-1||!aCe(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 uCe(){return!0}function xne(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=lCe,isEnabled:s=uCe,open:a}=e,l=P.useRef(!1),u=P.useRef(null),c=P.useRef(null),d=P.useRef(null),p=P.useRef(null),m=P.useRef(!1),g=P.useRef(null),v=Vn(t.ref,g),E=P.useRef(null);P.useEffect(()=>{!a||!g.current||(m.current=!n)},[n,a]),P.useEffect(()=>{if(!a||!g.current)return;const x=ci(g.current);return g.current.contains(x.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),P.useEffect(()=>{if(!a||!g.current)return;const x=ci(g.current),C=w=>{E.current=w,!(r||!s()||w.key!=="Tab")&&x.activeElement===g.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},I=()=>{const w=g.current;if(w===null)return;if(!x.hasFocus()||!s()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||r&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let F=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(F=o(g.current)),F.length>0){var M,L;const W=!!((M=E.current)!=null&&M.shiftKey&&((L=E.current)==null?void 0:L.key)==="Tab"),H=F[0],q=F[F.length-1];typeof H!="string"&&typeof q!="string"&&(W?q.focus():H.focus())}else w.focus()};x.addEventListener("focusin",I),x.addEventListener("keydown",C,!0);const _=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(_),x.removeEventListener("focusin",I),x.removeEventListener("keydown",C,!0)}},[n,r,i,s,a,o]);const O=x=>{d.current===null&&(d.current=x.relatedTarget),m.current=!0,p.current=x.target;const C=t.props.onFocus;C&&C(x)},S=x=>{d.current===null&&(d.current=x.relatedTarget),m.current=!0};return N.jsxs(P.Fragment,{children:[N.jsx("div",{tabIndex:a?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:v,onFocus:O}),N.jsx("div",{tabIndex:a?0:-1,onFocus:S,ref:c,"data-testid":"sentinelEnd"})]})}var ol="top",Uu="bottom",ju="right",sl="left",k$="auto",qS=[ol,Uu,ju,sl],yy="start",wE="end",cCe="clippingParents",kne="viewport",cv="popper",dCe="reference",CW=qS.reduce(function(e,t){return e.concat([t+"-"+yy,t+"-"+wE])},[]),Cne=[].concat(qS,[k$]).reduce(function(e,t){return e.concat([t,t+"-"+yy,t+"-"+wE])},[]),fCe="beforeRead",pCe="read",hCe="afterRead",mCe="beforeMain",gCe="main",bCe="afterMain",yCe="beforeWrite",vCe="write",OCe="afterWrite",ECe=[fCe,pCe,hCe,mCe,gCe,bCe,yCe,vCe,OCe];function $d(e){return e?(e.nodeName||"").toLowerCase():null}function ql(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yg(e){var t=ql(e).Element;return e instanceof t||e instanceof Element}function Iu(e){var t=ql(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function C$(e){if(typeof ShadowRoot>"u")return!1;var t=ql(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SCe(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];!Iu(o)||!$d(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function TCe(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]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Iu(i)||!$d(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const wCe={name:"applyStyles",enabled:!0,phase:"write",fn:SCe,effect:TCe,requires:["computeStyles"]};function Dd(e){return e.split("-")[0]}var lg=Math.max,t_=Math.min,vy=Math.round;function sL(){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 _ne(){return!/^((?!chrome|android).)*safari/i.test(sL())}function Oy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Iu(e)&&(i=e.offsetWidth>0&&vy(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&vy(r.height)/e.offsetHeight||1);var s=yg(e)?ql(e):window,a=s.visualViewport,l=!_ne()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.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 _$(e){var t=Oy(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 Ane(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&C$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Yf(e){return ql(e).getComputedStyle(e)}function xCe(e){return["table","td","th"].indexOf($d(e))>=0}function qh(e){return((yg(e)?e.ownerDocument:e.document)||window.document).documentElement}function R2(e){return $d(e)==="html"?e:e.assignedSlot||e.parentNode||(C$(e)?e.host:null)||qh(e)}function _W(e){return!Iu(e)||Yf(e).position==="fixed"?null:e.offsetParent}function kCe(e){var t=/firefox/i.test(sL()),n=/Trident/i.test(sL());if(n&&Iu(e)){var r=Yf(e);if(r.position==="fixed")return null}var i=R2(e);for(C$(i)&&(i=i.host);Iu(i)&&["html","body"].indexOf($d(i))<0;){var o=Yf(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 ZS(e){for(var t=ql(e),n=_W(e);n&&xCe(n)&&Yf(n).position==="static";)n=_W(n);return n&&($d(n)==="html"||$d(n)==="body"&&Yf(n).position==="static")?t:n||kCe(e)||t}function A$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function TO(e,t,n){return lg(e,t_(t,n))}function CCe(e,t,n){var r=TO(e,t,n);return r>n?n:r}function Rne(){return{top:0,right:0,bottom:0,left:0}}function Ine(e){return Object.assign({},Rne(),e)}function Dne(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var _Ce=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Ine(typeof t!="number"?t:Dne(t,qS))};function ACe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Dd(n.placement),l=A$(a),u=[sl,ju].indexOf(a)>=0,c=u?"height":"width";if(!(!o||!s)){var d=_Ce(i.padding,n),p=_$(o),m=l==="y"?ol:sl,g=l==="y"?Uu:ju,v=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],E=s[l]-n.rects.reference[l],O=ZS(o),S=O?l==="y"?O.clientHeight||0:O.clientWidth||0:0,x=v/2-E/2,C=d[m],I=S-p[c]-d[g],_=S/2-p[c]/2+x,w=TO(C,_,I),F=l;n.modifiersData[r]=(t={},t[F]=w,t.centerOffset=w-_,t)}}function RCe(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)||Ane(t.elements.popper,i)&&(t.elements.arrow=i))}const ICe={name:"arrow",enabled:!0,phase:"main",fn:ACe,effect:RCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ey(e){return e.split("-")[1]}var DCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NCe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:vy(n*i)/i||0,y:vy(r*i)/i||0}}function AW(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,m=p===void 0?0:p,g=s.y,v=g===void 0?0:g,E=typeof c=="function"?c({x:m,y:v}):{x:m,y:v};m=E.x,v=E.y;var O=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),x=sl,C=ol,I=window;if(u){var _=ZS(n),w="clientHeight",F="clientWidth";if(_===ql(n)&&(_=qh(n),Yf(_).position!=="static"&&a==="absolute"&&(w="scrollHeight",F="scrollWidth")),_=_,i===ol||(i===sl||i===ju)&&o===wE){C=Uu;var M=d&&_===I&&I.visualViewport?I.visualViewport.height:_[w];v-=M-r.height,v*=l?1:-1}if(i===sl||(i===ol||i===Uu)&&o===wE){x=ju;var L=d&&_===I&&I.visualViewport?I.visualViewport.width:_[F];m-=L-r.width,m*=l?1:-1}}var W=Object.assign({position:a},u&&DCe),H=c===!0?NCe({x:m,y:v},ql(n)):{x:m,y:v};if(m=H.x,v=H.y,l){var q;return Object.assign({},W,(q={},q[C]=S?"0":"",q[x]=O?"0":"",q.transform=(I.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",q))}return Object.assign({},W,(t={},t[C]=S?v+"px":"",t[x]=O?m+"px":"",t.transform="",t))}function PCe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Dd(t.placement),variation:Ey(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,AW(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,AW(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 LCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:PCe,data:{}};var ax={passive:!0};function MCe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=ql(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,ax)}),a&&l.addEventListener("resize",n.update,ax),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ax)}),a&&l.removeEventListener("resize",n.update,ax)}}const $Ce={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:MCe,data:{}};var FCe={left:"right",right:"left",bottom:"top",top:"bottom"};function Lk(e){return e.replace(/left|right|bottom|top/g,function(t){return FCe[t]})}var BCe={start:"end",end:"start"};function RW(e){return e.replace(/start|end/g,function(t){return BCe[t]})}function R$(e){var t=ql(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function I$(e){return Oy(qh(e)).left+R$(e).scrollLeft}function UCe(e,t){var n=ql(e),r=qh(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var u=_ne();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+I$(e),y:l}}function jCe(e){var t,n=qh(e),r=R$(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=lg(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=lg(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+I$(e),l=-r.scrollTop;return Yf(i||n).direction==="rtl"&&(a+=lg(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function D$(e){var t=Yf(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Nne(e){return["html","body","#document"].indexOf($d(e))>=0?e.ownerDocument.body:Iu(e)&&D$(e)?e:Nne(R2(e))}function wO(e,t){var n;t===void 0&&(t=[]);var r=Nne(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ql(r),s=i?[o].concat(o.visualViewport||[],D$(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(wO(R2(s)))}function aL(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zCe(e,t){var n=Oy(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 IW(e,t,n){return t===kne?aL(UCe(e,n)):yg(t)?zCe(t,n):aL(jCe(qh(e)))}function VCe(e){var t=wO(R2(e)),n=["absolute","fixed"].indexOf(Yf(e).position)>=0,r=n&&Iu(e)?ZS(e):e;return yg(r)?t.filter(function(i){return yg(i)&&Ane(i,r)&&$d(i)!=="body"}):[]}function HCe(e,t,n,r){var i=t==="clippingParents"?VCe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,u){var c=IW(e,u,r);return l.top=lg(c.top,l.top),l.right=t_(c.right,l.right),l.bottom=t_(c.bottom,l.bottom),l.left=lg(c.left,l.left),l},IW(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Pne(e){var t=e.reference,n=e.element,r=e.placement,i=r?Dd(r):null,o=r?Ey(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case ol:l={x:s,y:t.y-n.height};break;case Uu:l={x:s,y:t.y+t.height};break;case ju:l={x:t.x+t.width,y:a};break;case sl:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?A$(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case yy:l[u]=l[u]-(t[c]/2-n[c]/2);break;case wE:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function xE(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?cCe:a,u=n.rootBoundary,c=u===void 0?kne:u,d=n.elementContext,p=d===void 0?cv:d,m=n.altBoundary,g=m===void 0?!1:m,v=n.padding,E=v===void 0?0:v,O=Ine(typeof E!="number"?E:Dne(E,qS)),S=p===cv?dCe:cv,x=e.rects.popper,C=e.elements[g?S:p],I=HCe(yg(C)?C:C.contextElement||qh(e.elements.popper),l,c,s),_=Oy(e.elements.reference),w=Pne({reference:_,element:x,strategy:"absolute",placement:i}),F=aL(Object.assign({},x,w)),M=p===cv?F:_,L={top:I.top-M.top+O.top,bottom:M.bottom-I.bottom+O.bottom,left:I.left-M.left+O.left,right:M.right-I.right+O.right},W=e.modifiersData.offset;if(p===cv&&W){var H=W[i];Object.keys(L).forEach(function(q){var j=[ju,Uu].indexOf(q)>=0?1:-1,z=[ol,Uu].indexOf(q)>=0?"y":"x";L[q]+=H[z]*j})}return L}function WCe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Cne:l,c=Ey(r),d=c?a?CW:CW.filter(function(g){return Ey(g)===c}):qS,p=d.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=d);var m=p.reduce(function(g,v){return g[v]=xE(e,{placement:v,boundary:i,rootBoundary:o,padding:s})[Dd(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function QCe(e){if(Dd(e)===k$)return[];var t=Lk(e);return[RW(e),t,RW(t)]}function YCe(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,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,v=n.allowedAutoPlacements,E=t.options.placement,O=Dd(E),S=O===E,x=l||(S||!g?[Lk(E)]:QCe(E)),C=[E].concat(x).reduce(function(pe,Oe){return pe.concat(Dd(Oe)===k$?WCe(t,{placement:Oe,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:v}):Oe)},[]),I=t.rects.reference,_=t.rects.popper,w=new Map,F=!0,M=C[0],L=0;L=0,z=j?"width":"height",X=xE(t,{placement:W,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Z=j?q?ju:sl:q?Uu:ol;I[z]>_[z]&&(Z=Lk(Z));var G=Lk(Z),ee=[];if(o&&ee.push(X[H]<=0),a&&ee.push(X[Z]<=0,X[G]<=0),ee.every(function(pe){return pe})){M=W,F=!1;break}w.set(W,ee)}if(F)for(var Q=g?3:1,ae=function(Oe){var me=C.find(function(Re){var Fe=w.get(Re);if(Fe)return Fe.slice(0,Oe).every(function(et){return et})});if(me)return M=me,"break"},Te=Q;Te>0;Te--){var te=ae(Te);if(te==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const GCe={name:"flip",enabled:!0,phase:"main",fn:YCe,requiresIfExists:["offset"],data:{_skip:!1}};function DW(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 NW(e){return[ol,ju,Uu,sl].some(function(t){return e[t]>=0})}function qCe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=xE(t,{elementContext:"reference"}),a=xE(t,{altBoundary:!0}),l=DW(s,r),u=DW(a,i,o),c=NW(l),d=NW(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 ZCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qCe};function XCe(e,t,n){var r=Dd(e),i=[sl,ol].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[sl,ju].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function KCe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=Cne.reduce(function(c,d){return c[d]=XCe(d,t.rects,o),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const JCe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:KCe};function e_e(e){var t=e.state,n=e.name;t.modifiersData[n]=Pne({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const t_e={name:"popperOffsets",enabled:!0,phase:"read",fn:e_e,data:{}};function n_e(e){return e==="x"?"y":"x"}function r_e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,g=n.tetherOffset,v=g===void 0?0:g,E=xE(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),O=Dd(t.placement),S=Ey(t.placement),x=!S,C=A$(O),I=n_e(C),_=t.modifiersData.popperOffsets,w=t.rects.reference,F=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,L=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(_){if(o){var q,j=C==="y"?ol:sl,z=C==="y"?Uu:ju,X=C==="y"?"height":"width",Z=_[C],G=Z+E[j],ee=Z-E[z],Q=m?-F[X]/2:0,ae=S===yy?w[X]:F[X],Te=S===yy?-F[X]:-w[X],te=t.elements.arrow,pe=m&&te?_$(te):{width:0,height:0},Oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rne(),me=Oe[j],Re=Oe[z],Fe=TO(0,w[X],pe[X]),et=x?w[X]/2-Q-Fe-me-L.mainAxis:ae-Fe-me-L.mainAxis,ct=x?-w[X]/2+Q+Fe+Re+L.mainAxis:Te+Fe+Re+L.mainAxis,Ye=t.elements.arrow&&ZS(t.elements.arrow),nt=Ye?C==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,ke=(q=W==null?void 0:W[C])!=null?q:0,qe=Z+et-ke-nt,Ge=Z+ct-ke,rt=TO(m?t_(G,qe):G,Z,m?lg(ee,Ge):ee);_[C]=rt,H[C]=rt-Z}if(a){var Ot,Ke=C==="x"?ol:sl,de=C==="x"?Uu:ju,oe=_[I],ie=I==="y"?"height":"width",Me=oe+E[Ke],He=oe-E[de],Be=[ol,sl].indexOf(O)!==-1,ce=(Ot=W==null?void 0:W[I])!=null?Ot:0,ye=Be?Me:oe-w[ie]-F[ie]-ce+L.altAxis,be=Be?oe+w[ie]+F[ie]-ce-L.altAxis:He,we=m&&Be?CCe(ye,oe,be):TO(m?ye:Me,oe,m?be:He);_[I]=we,H[I]=we-oe}t.modifiersData[r]=H}}const i_e={name:"preventOverflow",enabled:!0,phase:"main",fn:r_e,requiresIfExists:["offset"]};function o_e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function s_e(e){return e===ql(e)||!Iu(e)?R$(e):o_e(e)}function a_e(e){var t=e.getBoundingClientRect(),n=vy(t.width)/e.offsetWidth||1,r=vy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function l_e(e,t,n){n===void 0&&(n=!1);var r=Iu(t),i=Iu(t)&&a_e(t),o=qh(t),s=Oy(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(($d(t)!=="body"||D$(o))&&(a=s_e(t)),Iu(t)?(l=Oy(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=I$(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function u_e(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 s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function c_e(e){var t=u_e(e);return ECe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function d_e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function f_e(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 PW={placement:"bottom",modifiers:[],strategy:"absolute"};function LW(){for(var e=arguments.length,t=new Array(e),n=0;n{o||a(g_e(i)||document.body)},[i,o]),Ji(()=>{if(s&&!o)return TE(n,s),()=>{TE(n,null)}},[n,s,o]),o){if(P.isValidElement(r)){const u={ref:l};return P.cloneElement(r,u)}return N.jsx(P.Fragment,{children:r})}return N.jsx(P.Fragment,{children:s&&Pg.createPortal(r,s)})}),Mne="Popper";function b_e(e){return wne(Mne,e)}tCe(Mne,["root"]);const y_e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],v_e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function O_e(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 lL(e){return typeof e=="function"?e():e}function E_e(e){return e.nodeType!==void 0}const S_e=()=>Vt({root:["root"]},mke(b_e)),T_e={},w_e=P.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:m={},slots:g={},TransitionProps:v}=t,E=st(t,y_e),O=P.useRef(null),S=Vn(O,n),x=P.useRef(null),C=Vn(x,p),I=P.useRef(C);Ji(()=>{I.current=C},[C]),P.useImperativeHandle(p,()=>x.current,[]);const _=O_e(c,s),[w,F]=P.useState(_),[M,L]=P.useState(lL(i));P.useEffect(()=>{x.current&&x.current.forceUpdate()}),P.useEffect(()=>{i&&L(lL(i))},[i]),Ji(()=>{if(!M||!u)return;const z=G=>{F(G.placement)};let X=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{z(G)}}];l!=null&&(X=X.concat(l)),d&&d.modifiers!=null&&(X=X.concat(d.modifiers));const Z=m_e(M,O.current,B({placement:_},d,{modifiers:X}));return I.current(Z),()=>{Z.destroy(),I.current(null)}},[M,a,l,u,d,_]);const W={placement:w};v!==null&&(W.TransitionProps=v);const H=S_e(),q=(r=g.root)!=null?r:"div",j=nr({elementType:q,externalSlotProps:m.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:H.root});return N.jsx(q,B({},j,{children:typeof o=="function"?o(W):o}))}),x_e=P.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=T_e,popperRef:m,style:g,transition:v=!1,slotProps:E={},slots:O={}}=t,S=st(t,v_e),[x,C]=P.useState(!0),I=()=>{C(!1)},_=()=>{C(!0)};if(!l&&!c&&(!v||x))return null;let w;if(o)w=o;else if(r){const L=lL(r);w=L&&E_e(L)?ci(L).body:ci(null).body}const F=!c&&l&&(!v||x)?"none":void 0,M=v?{in:c,onEnter:I,onExited:_}:void 0;return N.jsx(Lne,{disablePortal:a,container:w,children:N.jsx(w_e,B({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:v?!x:c,placement:d,popperOptions:p,popperRef:m,slotProps:E,slots:O},S,{style:B({position:"fixed",top:0,left:0,display:F},g),TransitionProps:M,children:i}))})});function k_e(e){const t=ci(e);return t.body===e?Bu(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xO(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function MW(e){return parseInt(Bu(e).getComputedStyle(e).paddingRight,10)||0}function C_e(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 $W(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=o.indexOf(s)===-1,l=!C_e(s);a&&l&&xO(s,i)})}function sN(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function __e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(k_e(r)){const s=sne(ci(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${MW(r)+s}px`;const a=ci(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${MW(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=ci(r).body;else{const s=r.parentElement,a=Bu(r);o=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s: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:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function A_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class R_e{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&&xO(t.modalRef,!1);const i=A_e(n);$W(n,t.mount,t.modalRef,i,!0);const o=sN(this.containers,s=>s.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=sN(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=__e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=sN(this.containers,s=>s.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&&xO(t.modalRef,n),$W(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&xO(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function I_e(e){return typeof e=="function"?e():e}function D_e(e){return e?e.props.hasOwnProperty("in"):!1}const N_e=new R_e;function P_e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=N_e,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:d}=e,p=P.useRef({}),m=P.useRef(null),g=P.useRef(null),v=Vn(g,d),[E,O]=P.useState(!c),S=D_e(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const C=()=>ci(m.current),I=()=>(p.current.modalRef=g.current,p.current.mount=m.current,p.current),_=()=>{i.mount(I(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},w=on(()=>{const X=I_e(t)||C().body;i.add(I(),X),g.current&&_()}),F=P.useCallback(()=>i.isTopModal(I()),[i]),M=on(X=>{m.current=X,X&&(c&&F()?_():g.current&&xO(g.current,x))}),L=P.useCallback(()=>{i.remove(I(),x)},[x,i]);P.useEffect(()=>()=>{L()},[L]),P.useEffect(()=>{c?w():(!S||!o)&&L()},[c,L,S,o,w]);const W=X=>Z=>{var G;(G=X.onKeyDown)==null||G.call(X,Z),!(Z.key!=="Escape"||Z.which===229||!F())&&(n||(Z.stopPropagation(),u&&u(Z,"escapeKeyDown")))},H=X=>Z=>{var G;(G=X.onClick)==null||G.call(X,Z),Z.target===Z.currentTarget&&u&&u(Z,"backdropClick")};return{getRootProps:(X={})=>{const Z=SO(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const G=B({},Z,X);return B({role:"presentation"},G,{onKeyDown:W(G),ref:v})},getBackdropProps:(X={})=>{const Z=X;return B({"aria-hidden":!0},Z,{onClick:H(Z),open:c})},getTransitionProps:()=>{const X=()=>{O(!1),s&&s()},Z=()=>{O(!0),a&&a(),o&&L()};return{onEnter:ZC(X,l==null?void 0:l.props.onEnter),onExited:ZC(Z,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:M,isTopModal:F,exited:E,hasTransition:S}}const L_e=2;function $ne(e,t){return e-t}function FW(e,t){var n;const{index:r}=(n=e.reduce((i,o,s)=>{const a=Math.abs(t-o);return i===null||a({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}%`})}},U_e=e=>e;let dx;function UW(){return dx===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?dx=CSS.supports("touch-action","none"):dx=!0),dx}function j_e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:p="horizontal",rootRef:m,scale:g=U_e,step:v=1,tabIndex:E,value:O}=e,S=P.useRef(),[x,C]=P.useState(-1),[I,_]=P.useState(-1),[w,F]=P.useState(!1),M=P.useRef(0),[L,W]=ms({controlled:O,default:n??l,name:"Slider"}),H=c&&((ce,ye,be)=>{const we=ce.nativeEvent||ce,Ie=new we.constructor(we.type,we);Object.defineProperty(Ie,"target",{writable:!0,value:{value:ye,name:u}}),c(Ie,ye,be)}),q=Array.isArray(L);let j=q?L.slice().sort($ne):[L];j=j.map(ce=>ce==null?l:P0(ce,l,a));const z=s===!0&&v!==null?[...Array(Math.floor((a-l)/v)+1)].map((ce,ye)=>({value:l+v*ye})):s||[],X=z.map(ce=>ce.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:ee,ref:Q}=h2(),[ae,Te]=P.useState(-1),te=P.useRef(),pe=Vn(Q,te),Oe=Vn(m,pe),me=ce=>ye=>{var be;const we=Number(ye.currentTarget.getAttribute("data-index"));ee(ye),Z.current===!0&&Te(we),_(we),ce==null||(be=ce.onFocus)==null||be.call(ce,ye)},Re=ce=>ye=>{var be;G(ye),Z.current===!1&&Te(-1),_(-1),ce==null||(be=ce.onBlur)==null||be.call(ce,ye)};Ji(()=>{if(r&&te.current.contains(document.activeElement)){var ce;(ce=document.activeElement)==null||ce.blur()}},[r]),r&&x!==-1&&C(-1),r&&ae!==-1&&Te(-1);const Fe=ce=>ye=>{var be;(be=ce.onChange)==null||be.call(ce,ye);const we=Number(ye.currentTarget.getAttribute("data-index")),Ie=j[we],ft=X.indexOf(Ie);let _t=ye.target.valueAsNumber;if(z&&v==null){const At=X[X.length-1];_t>At?_t=At:_t{const{current:be}=te,{width:we,height:Ie,bottom:ft,left:_t}=be.getBoundingClientRect();let At;ct.indexOf("vertical")===0?At=(ft-ce.y)/Ie:At=(ce.x-_t)/we,ct.indexOf("-reverse")!==-1&&(At=1-At);let pt;if(pt=M_e(At,l,a),v)pt=F_e(pt,v,l);else{const it=FW(X,pt);pt=X[it]}pt=P0(pt,l,a);let Mt=0;if(q){ye?Mt=et.current:Mt=FW(j,pt),i&&(pt=P0(pt,j[Mt-1]||-1/0,j[Mt+1]||1/0));const it=pt;pt=BW({values:j,newValue:pt,index:Mt}),i&&ye||(Mt=pt.indexOf(it),et.current=Mt)}return{newValue:pt,activeIndex:Mt}},nt=on(ce=>{const ye=lx(ce,S);if(!ye)return;if(M.current+=1,ce.type==="mousemove"&&ce.buttons===0){ke(ce);return}const{newValue:be,activeIndex:we}=Ye({finger:ye,move:!0});ux({sliderRef:te,activeIndex:we,setActive:C}),W(be),!w&&M.current>L_e&&F(!0),H&&!cx(be,L)&&H(ce,be,we)}),ke=on(ce=>{const ye=lx(ce,S);if(F(!1),!ye)return;const{newValue:be}=Ye({finger:ye,move:!0});C(-1),ce.type==="touchend"&&_(-1),d&&d(ce,be),S.current=void 0,Ge()}),qe=on(ce=>{if(r)return;UW()||ce.preventDefault();const ye=ce.changedTouches[0];ye!=null&&(S.current=ye.identifier);const be=lx(ce,S);if(be!==!1){const{newValue:Ie,activeIndex:ft}=Ye({finger:be});ux({sliderRef:te,activeIndex:ft,setActive:C}),W(Ie),H&&!cx(Ie,L)&&H(ce,Ie,ft)}M.current=0;const we=ci(te.current);we.addEventListener("touchmove",nt,{passive:!0}),we.addEventListener("touchend",ke,{passive:!0})}),Ge=P.useCallback(()=>{const ce=ci(te.current);ce.removeEventListener("mousemove",nt),ce.removeEventListener("mouseup",ke),ce.removeEventListener("touchmove",nt),ce.removeEventListener("touchend",ke)},[ke,nt]);P.useEffect(()=>{const{current:ce}=te;return ce.addEventListener("touchstart",qe,{passive:UW()}),()=>{ce.removeEventListener("touchstart",qe),Ge()}},[Ge,qe]),P.useEffect(()=>{r&&Ge()},[r,Ge]);const rt=ce=>ye=>{var be;if((be=ce.onMouseDown)==null||be.call(ce,ye),r||ye.defaultPrevented||ye.button!==0)return;ye.preventDefault();const we=lx(ye,S);if(we!==!1){const{newValue:ft,activeIndex:_t}=Ye({finger:we});ux({sliderRef:te,activeIndex:_t,setActive:C}),W(ft),H&&!cx(ft,L)&&H(ye,ft,_t)}M.current=0;const Ie=ci(te.current);Ie.addEventListener("mousemove",nt,{passive:!0}),Ie.addEventListener("mouseup",ke)},Ot=n_(q?j[0]:l,l,a),Ke=n_(j[j.length-1],l,a)-Ot,de=(ce={})=>{const ye=SO(ce),be={onMouseDown:rt(ye||{})},we=B({},ye,be);return B({},ce,{ref:Oe},we)},oe=ce=>ye=>{var be;(be=ce.onMouseOver)==null||be.call(ce,ye);const we=Number(ye.currentTarget.getAttribute("data-index"));_(we)},ie=ce=>ye=>{var be;(be=ce.onMouseLeave)==null||be.call(ce,ye),_(-1)};return{active:x,axis:ct,axisProps:B_e,dragging:w,focusedThumbIndex:ae,getHiddenInputProps:(ce={})=>{var ye;const be=SO(ce),we={onChange:Fe(be||{}),onFocus:me(be||{}),onBlur:Re(be||{})},Ie=B({},be,we);return B({tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(ye=e.step)!=null?ye:void 0,disabled:r},ce,Ie,{style:B({},kTe,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:de,getThumbProps:(ce={})=>{const ye=SO(ce),be={onMouseOver:oe(ye||{}),onMouseLeave:ie(ye||{})};return B({},ce,ye,be)},marks:z,open:I,range:q,rootRef:Oe,trackLeap:Ke,trackOffset:Ot,values:j,getThumbStyle:ce=>({pointerEvents:x!==-1&&x!==ce?"none":void 0})}}const z_e=["onChange","maxRows","minRows","style","value"];function fx(e){return parseInt(e,10)||0}const V_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function jW(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Fne=P.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:a}=t,l=st(t,z_e),{current:u}=P.useRef(a!=null),c=P.useRef(null),d=Vn(n,c),p=P.useRef(null),m=P.useRef(0),[g,v]=P.useState({outerHeightStyle:0}),E=P.useCallback(()=>{const C=c.current,_=Bu(C).getComputedStyle(C);if(_.width==="0px")return{outerHeightStyle:0};const w=p.current;w.style.width=_.width,w.value=C.value||t.placeholder||"x",w.value.slice(-1)===` -`&&(w.value+=" ");const F=_.boxSizing,M=fx(_.paddingBottom)+fx(_.paddingTop),L=fx(_.borderBottomWidth)+fx(_.borderTopWidth),W=w.scrollHeight;w.value="x";const H=w.scrollHeight;let q=W;o&&(q=Math.max(Number(o)*H,q)),i&&(q=Math.min(Number(i)*H,q)),q=Math.max(q,H);const j=q+(F==="border-box"?M+L:0),z=Math.abs(q-W)<=1;return{outerHeightStyle:j,overflow:z}},[i,o,t.placeholder]),O=(C,I)=>{const{outerHeightStyle:_,overflow:w}=I;return m.current<20&&(_>0&&Math.abs((C.outerHeightStyle||0)-_)>1||C.overflow!==w)?(m.current+=1,{overflow:w,outerHeightStyle:_}):C},S=P.useCallback(()=>{const C=E();jW(C)||v(I=>O(I,C))},[E]);Ji(()=>{const C=()=>{const W=E();jW(W)||Pg.flushSync(()=>{v(H=>O(H,W))})},I=()=>{m.current=0,C()};let _;const w=Gy(I),F=c.current,M=Bu(F);M.addEventListener("resize",w);let L;return typeof ResizeObserver<"u"&&(L=new ResizeObserver(I),L.observe(F)),()=>{w.clear(),cancelAnimationFrame(_),M.removeEventListener("resize",w),L&&L.disconnect()}},[E]),Ji(()=>{S()}),P.useEffect(()=>{m.current=0},[a]);const x=C=>{m.current=0,u||S(),r&&r(C)};return N.jsxs(P.Fragment,{children:[N.jsx("textarea",B({value:a,onChange:x,ref:d,rows:o,style:B({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},s)},l)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:B({},V_e.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function zW(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function H_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:s=!1}=e;return(a,{inputValue:l,getOptionLabel:u})=>{let c=s?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=zW(c));const d=c?a.filter(p=>{let m=(o||u)(p);return n&&(m=m.toLowerCase()),t&&(m=zW(m)),i==="start"?m.indexOf(c)===0:m.indexOf(c)>-1}):a;return typeof r=="number"?d.slice(0,r):d}}function aN(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 Y_e(e){const{unstable_isActiveElementInListbox:t=Q_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:v=!1,filterOptions:E=W_e,filterSelectedOptions:O=!1,freeSolo:S=!1,getOptionDisabled:x,getOptionKey:C,getOptionLabel:I=Xe=>{var Le;return(Le=Xe.label)!=null?Le:Xe},groupBy:_,handleHomeEndKeys:w=!e.freeSolo,id:F,includeInputInList:M=!1,inputValue:L,isOptionEqualToValue:W=(Xe,Le)=>Xe===Le,multiple:H=!1,onChange:q,onClose:j,onHighlightChange:z,onInputChange:X,onOpen:Z,open:G,openOnFocus:ee=!1,options:Q,readOnly:ae=!1,selectOnFocus:Te=!e.freeSolo,value:te}=e,pe=Ic(F);let Oe=I;Oe=Xe=>{const Le=I(Xe);return typeof Le!="string"?String(Le):Le};const me=P.useRef(!1),Re=P.useRef(!0),Fe=P.useRef(null),et=P.useRef(null),[ct,Ye]=P.useState(null),[nt,ke]=P.useState(-1),qe=i?0:-1,Ge=P.useRef(qe),[rt,Ot]=ms({controlled:te,default:c,name:u}),[Ke,de]=ms({controlled:L,default:"",name:u,state:"inputValue"}),[oe,ie]=P.useState(!1),Me=P.useCallback((Xe,Le)=>{if(!(H?rt.length!(O&&(H?rt:[rt]).some(Le=>Le!==null&&W(Xe,Le)))),{inputValue:be&&ce?"":Ke,getOptionLabel:Oe}):[],ft=TTe({filteredOptions:Ie,value:rt,inputValue:Ke});P.useEffect(()=>{const Xe=rt!==ft.value;oe&&!Xe||S&&!Xe||Me(null,rt)},[rt,Me,oe,ft.value,S]);const _t=He&&Ie.length>0&&!ae,At=on(Xe=>{Xe===-1?Fe.current.focus():ct.querySelector(`[data-tag-index="${Xe}"]`).focus()});P.useEffect(()=>{H&&nt>rt.length-1&&(ke(-1),At(-1))},[rt,H,nt,At]);function pt(Xe,Le){if(!et.current||Xe<0||Xe>=Ie.length)return-1;let Rt=Xe;for(;;){const en=et.current.querySelector(`[data-option-index="${Rt}"]`),mn=g?!1:!en||en.disabled||en.getAttribute("aria-disabled")==="true";if(en&&en.hasAttribute("tabindex")&&!mn)return Rt;if(Le==="next"?Rt=(Rt+1)%Ie.length:Rt=(Rt-1+Ie.length)%Ie.length,Rt===Xe)return-1}}const Mt=on(({event:Xe,index:Le,reason:Rt="auto"})=>{if(Ge.current=Le,Le===-1?Fe.current.removeAttribute("aria-activedescendant"):Fe.current.setAttribute("aria-activedescendant",`${pe}-option-${Le}`),z&&z(Xe,Le===-1?null:Ie[Le],Rt),!et.current)return;const en=et.current.querySelector(`[role="option"].${n}-focused`);en&&(en.classList.remove(`${n}-focused`),en.classList.remove(`${n}-focusVisible`));let mn=et.current;if(et.current.getAttribute("role")!=="listbox"&&(mn=et.current.parentElement.querySelector('[role="listbox"]')),!mn)return;if(Le===-1){mn.scrollTop=0;return}const er=et.current.querySelector(`[data-option-index="${Le}"]`);if(er&&(er.classList.add(`${n}-focused`),Rt==="keyboard"&&er.classList.add(`${n}-focusVisible`),mn.scrollHeight>mn.clientHeight&&Rt!=="mouse"&&Rt!=="touch")){const Zn=er,bn=mn.clientHeight+mn.scrollTop,_n=Zn.offsetTop+Zn.offsetHeight;_n>bn?mn.scrollTop=_n-mn.clientHeight:Zn.offsetTop-Zn.offsetHeight*(_?1.3:0){if(!we)return;const er=pt((()=>{const Zn=Ie.length-1;if(Le==="reset")return qe;if(Le==="start")return 0;if(Le==="end")return Zn;const bn=Ge.current+Le;return bn<0?bn===-1&&M?-1:v&&Ge.current!==-1||Math.abs(Le)>1?0:Zn:bn>Zn?bn===Zn+1&&M?-1:v||Math.abs(Le)>1?Zn:0:bn})(),Rt);if(Mt({index:er,reason:en,event:Xe}),r&&Le!=="reset")if(er===-1)Fe.current.value=Ke;else{const Zn=Oe(Ie[er]);Fe.current.value=Zn,Zn.toLowerCase().indexOf(Ke.toLowerCase())===0&&Ke.length>0&&Fe.current.setSelectionRange(Ke.length,Zn.length)}}),bt=()=>{const Xe=(Le,Rt)=>{const en=Le?Oe(Le):"",mn=Rt?Oe(Rt):"";return en===mn};if(Ge.current!==-1&&ft.filteredOptions&&ft.filteredOptions.length!==Ie.length&&ft.inputValue===Ke&&(H?rt.length===ft.value.length&&ft.value.every((Le,Rt)=>Oe(rt[Rt])===Oe(Le)):Xe(ft.value,rt))){const Le=ft.filteredOptions[Ge.current];if(Le&&Ie.some(en=>Oe(en)===Oe(Le)))return!0}return!1},$t=P.useCallback(()=>{if(!we||bt())return;const Xe=H?rt[0]:rt;if(Ie.length===0||Xe==null){it({diff:"reset"});return}if(et.current){if(Xe!=null){const Le=Ie[Ge.current];if(H&&Le&&aN(rt,en=>W(Le,en))!==-1)return;const Rt=aN(Ie,en=>W(en,Xe));Rt===-1?it({diff:"reset"}):Mt({index:Rt});return}if(Ge.current>=Ie.length-1){Mt({index:Ie.length-1});return}Mt({index:Ge.current})}},[Ie.length,H?!1:rt,O,it,Mt,we,Ke,H]),Xt=on(Xe=>{TE(et,Xe),Xe&&$t()});P.useEffect(()=>{$t()},[$t]);const vn=Xe=>{He||(Be(!0),ye(!0),Z&&Z(Xe))},Cn=(Xe,Le)=>{He&&(Be(!1),j&&j(Xe,Le))},$n=(Xe,Le,Rt,en)=>{if(H){if(rt.length===Le.length&&rt.every((mn,er)=>mn===Le[er]))return}else if(rt===Le)return;q&&q(Xe,Le,Rt,en),Ot(Le)},qn=P.useRef(!1),Ce=(Xe,Le,Rt="selectOption",en="options")=>{let mn=Rt,er=Le;if(H){er=Array.isArray(rt)?rt.slice():[];const Zn=aN(er,bn=>W(Le,bn));Zn===-1?er.push(Le):en!=="freeSolo"&&(er.splice(Zn,1),mn="removeOption")}Me(Xe,er),$n(Xe,er,mn,{option:Le}),!p&&(!Xe||!Xe.ctrlKey&&!Xe.metaKey)&&Cn(Xe,mn),(s===!0||s==="touch"&&qn.current||s==="mouse"&&!qn.current)&&Fe.current.blur()};function $e(Xe,Le){if(Xe===-1)return-1;let Rt=Xe;for(;;){if(Le==="next"&&Rt===rt.length||Le==="previous"&&Rt===-1)return-1;const en=ct.querySelector(`[data-tag-index="${Rt}"]`);if(!en||!en.hasAttribute("tabindex")||en.disabled||en.getAttribute("aria-disabled")==="true")Rt+=Le==="next"?1:-1;else return Rt}}const tt=(Xe,Le)=>{if(!H)return;Ke===""&&Cn(Xe,"toggleInput");let Rt=nt;nt===-1?Ke===""&&Le==="previous"&&(Rt=rt.length-1):(Rt+=Le==="next"?1:-1,Rt<0&&(Rt=0),Rt===rt.length&&(Rt=-1)),Rt=$e(Rt,Le),ke(Rt),At(Rt)},De=Xe=>{me.current=!0,de(""),X&&X(Xe,"","clear"),$n(Xe,H?[]:null,"clear")},wt=Xe=>Le=>{if(Xe.onKeyDown&&Xe.onKeyDown(Le),!Le.defaultMuiPrevented&&(nt!==-1&&["ArrowLeft","ArrowRight"].indexOf(Le.key)===-1&&(ke(-1),At(-1)),Le.which!==229))switch(Le.key){case"Home":we&&w&&(Le.preventDefault(),it({diff:"start",direction:"next",reason:"keyboard",event:Le}));break;case"End":we&&w&&(Le.preventDefault(),it({diff:"end",direction:"previous",reason:"keyboard",event:Le}));break;case"PageUp":Le.preventDefault(),it({diff:-VW,direction:"previous",reason:"keyboard",event:Le}),vn(Le);break;case"PageDown":Le.preventDefault(),it({diff:VW,direction:"next",reason:"keyboard",event:Le}),vn(Le);break;case"ArrowDown":Le.preventDefault(),it({diff:1,direction:"next",reason:"keyboard",event:Le}),vn(Le);break;case"ArrowUp":Le.preventDefault(),it({diff:-1,direction:"previous",reason:"keyboard",event:Le}),vn(Le);break;case"ArrowLeft":tt(Le,"previous");break;case"ArrowRight":tt(Le,"next");break;case"Enter":if(Ge.current!==-1&&we){const Rt=Ie[Ge.current],en=x?x(Rt):!1;if(Le.preventDefault(),en)return;Ce(Le,Rt,"selectOption"),r&&Fe.current.setSelectionRange(Fe.current.value.length,Fe.current.value.length)}else S&&Ke!==""&&be===!1&&(H&&Le.preventDefault(),Ce(Le,Ke,"createOption","freeSolo"));break;case"Escape":we?(Le.preventDefault(),Le.stopPropagation(),Cn(Le,"escape")):l&&(Ke!==""||H&&rt.length>0)&&(Le.preventDefault(),Le.stopPropagation(),De(Le));break;case"Backspace":if(H&&!ae&&Ke===""&&rt.length>0){const Rt=nt===-1?rt.length-1:nt,en=rt.slice();en.splice(Rt,1),$n(Le,en,"removeOption",{option:rt[Rt]})}break;case"Delete":if(H&&!ae&&Ke===""&&rt.length>0&&nt!==-1){const Rt=nt,en=rt.slice();en.splice(Rt,1),$n(Le,en,"removeOption",{option:rt[Rt]})}break}},Gt=Xe=>{ie(!0),ee&&!me.current&&vn(Xe)},jt=Xe=>{if(t(et)){Fe.current.focus();return}ie(!1),Re.current=!0,me.current=!1,o&&Ge.current!==-1&&we?Ce(Xe,Ie[Ge.current],"blur"):o&&S&&Ke!==""?Ce(Xe,Ke,"blur","freeSolo"):a&&Me(Xe,rt),Cn(Xe,"blur")},qt=Xe=>{const Le=Xe.target.value;Ke!==Le&&(de(Le),ye(!1),X&&X(Xe,Le,"input")),Le===""?!d&&!H&&$n(Xe,null,"clear"):vn(Xe)},Bt=Xe=>{const Le=Number(Xe.currentTarget.getAttribute("data-option-index"));Ge.current!==Le&&Mt({event:Xe,index:Le,reason:"mouse"})},On=Xe=>{Mt({event:Xe,index:Number(Xe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),qn.current=!0},je=Xe=>{const Le=Number(Xe.currentTarget.getAttribute("data-option-index"));Ce(Xe,Ie[Le],"selectOption"),qn.current=!1},ze=Xe=>Le=>{const Rt=rt.slice();Rt.splice(Xe,1),$n(Le,Rt,"removeOption",{option:rt[Xe]})},Ve=Xe=>{He?Cn(Xe,"toggleInput"):vn(Xe)},yt=Xe=>{Xe.currentTarget.contains(Xe.target)&&Xe.target.getAttribute("id")!==pe&&Xe.preventDefault()},Nn=Xe=>{Xe.currentTarget.contains(Xe.target)&&(Fe.current.focus(),Te&&Re.current&&Fe.current.selectionEnd-Fe.current.selectionStart===0&&Fe.current.select(),Re.current=!1)},Kt=Xe=>{!m&&(Ke===""||!He)&&Ve(Xe)};let An=S&&Ke.length>0;An=An||(H?rt.length>0:rt!==null);let Kr=Ie;return _&&(Kr=Ie.reduce((Xe,Le,Rt)=>{const en=_(Le);return Xe.length>0&&Xe[Xe.length-1].group===en?Xe[Xe.length-1].options.push(Le):Xe.push({key:Rt,index:Rt,group:en,options:[Le]}),Xe},[])),m&&oe&&jt(),{getRootProps:(Xe={})=>B({"aria-owns":_t?`${pe}-listbox`:null},Xe,{onKeyDown:wt(Xe),onMouseDown:yt,onClick:Nn}),getInputLabelProps:()=>({id:`${pe}-label`,htmlFor:pe}),getInputProps:()=>({id:pe,value:Ke,onBlur:jt,onFocus:Gt,onChange:qt,onMouseDown:Kt,"aria-activedescendant":we?"":null,"aria-autocomplete":r?"both":"list","aria-controls":_t?`${pe}-listbox`:void 0,"aria-expanded":_t,autoComplete:"off",ref:Fe,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:De}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ve}),getTagProps:({index:Xe})=>B({key:Xe,"data-tag-index":Xe,tabIndex:-1},!ae&&{onDelete:ze(Xe)}),getListboxProps:()=>({role:"listbox",id:`${pe}-listbox`,"aria-labelledby":`${pe}-label`,ref:Xt,onMouseDown:Xe=>{Xe.preventDefault()}}),getOptionProps:({index:Xe,option:Le})=>{var Rt;const en=(H?rt:[rt]).some(er=>er!=null&&W(Le,er)),mn=x?x(Le):!1;return{key:(Rt=C==null?void 0:C(Le))!=null?Rt:Oe(Le),tabIndex:-1,role:"option",id:`${pe}-option-${Xe}`,onMouseMove:Bt,onClick:je,onTouchStart:On,"data-option-index":Xe,"aria-disabled":mn,"aria-selected":en}},id:pe,inputValue:Ke,value:rt,dirty:An,expanded:we&&ct,popupOpen:we,focused:oe||nt!==-1,anchorEl:ct,setAnchorEl:Ye,focusedTag:nt,groupedOptions:Kr}}const G_e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],q_e=Ae(x_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z_e=P.forwardRef(function(t,n){var r;const i=T2(),o=Nt({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:E,popperRef:O,transition:S,slots:x,slotProps:C}=o,I=st(o,G_e),_=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,w=B({anchorEl:s,container:c,disablePortal:d,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:E,popperRef:O,transition:S},I);return N.jsx(q_e,B({as:a,direction:i==null?void 0:i.direction,slots:{root:_},slotProps:C??u},w,{ref:n}))}),Zy=Z_e;function X_e(e){return Qt("MuiListSubheader",e)}Yt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const K_e=["className","color","component","disableGutters","disableSticky","inset"],J_e=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${gt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Vt(s,X_e,t)},eAe=Ae("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${gt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>B({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})),Bne=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:u=!1}=r,c=st(r,K_e),d=B({},r,{color:o,component:s,disableGutters:a,disableSticky:l,inset:u}),p=J_e(d);return N.jsx(eAe,B({as:s,className:dt(p.root,i),ref:n,ownerState:d},c))});Bne.muiSkipListHighlight=!0;const tAe=Bne,nAe=Po(N.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function rAe(e){return Qt("MuiChip",e)}const iAe=Yt("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"]),Br=iAe,oAe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],sAe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e,u={root:["root",l,n&&"disabled",`size${gt(r)}`,`color${gt(i)}`,a&&"clickable",a&&`clickableColor${gt(i)}`,s&&"deletable",s&&`deletableColor${gt(i)}`,`${l}${gt(i)}`],label:["label",`label${gt(r)}`],avatar:["avatar",`avatar${gt(r)}`,`avatarColor${gt(i)}`],icon:["icon",`icon${gt(r)}`,`iconColor${gt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${gt(r)}`,`deleteIconColor${gt(i)}`,`deleteIcon${gt(l)}Color${gt(i)}`]};return Vt(u,rAe,t)},aAe=Ae("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${Br.avatar}`]:t.avatar},{[`& .${Br.avatar}`]:t[`avatar${gt(a)}`]},{[`& .${Br.avatar}`]:t[`avatarColor${gt(r)}`]},{[`& .${Br.icon}`]:t.icon},{[`& .${Br.icon}`]:t[`icon${gt(a)}`]},{[`& .${Br.icon}`]:t[`iconColor${gt(i)}`]},{[`& .${Br.deleteIcon}`]:t.deleteIcon},{[`& .${Br.deleteIcon}`]:t[`deleteIcon${gt(a)}`]},{[`& .${Br.deleteIcon}`]:t[`deleteIconColor${gt(r)}`]},{[`& .${Br.deleteIcon}`]:t[`deleteIcon${gt(l)}Color${gt(r)}`]},t.root,t[`size${gt(a)}`],t[`color${gt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${gt(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${gt(r)}`],t[l],t[`${l}${gt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return B({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",[`&.${Br.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Br.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Br.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Br.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Br.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Br.icon}`]:B({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&B({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Br.deleteIcon}`]:B({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:In(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:In(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:In(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Br.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Br.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>B({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Br.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Br.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>B({},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]}`,[`&.${Br.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Br.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Br.avatar}`]:{marginLeft:4},[`& .${Br.avatarSmall}`]:{marginLeft:2},[`& .${Br.icon}`]:{marginLeft:4},[`& .${Br.iconSmall}`]:{marginLeft:2},[`& .${Br.deleteIcon}`]:{marginRight:5},[`& .${Br.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:In(e.palette[t.color].main,.7)}`,[`&.${Br.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Br.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Br.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:In(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),lAe=Ae("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${gt(r)}`]]}})(({ownerState:e})=>B({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 HW(e){return e.key==="Backspace"||e.key==="Delete"}const uAe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:m,onDelete:g,onKeyDown:v,onKeyUp:E,size:O="medium",variant:S="filled",tabIndex:x,skipFocusWhenDisabled:C=!1}=r,I=st(r,oAe),_=P.useRef(null),w=Vn(_,n),F=ee=>{ee.stopPropagation(),g&&g(ee)},M=ee=>{ee.currentTarget===ee.target&&HW(ee)&&ee.preventDefault(),v&&v(ee)},L=ee=>{ee.currentTarget===ee.target&&(g&&HW(ee)?g(ee):ee.key==="Escape"&&_.current&&_.current.blur()),E&&E(ee)},W=s!==!1&&m?!0:s,H=W||g?Gl:l||"div",q=B({},r,{component:H,disabled:c,size:O,color:a,iconColor:P.isValidElement(d)&&d.props.color||a,onDelete:!!g,clickable:W,variant:S}),j=sAe(q),z=H===Gl?B({component:l||"div",focusVisibleClassName:j.focusVisible},g&&{disableRipple:!0}):{};let X=null;g&&(X=u&&P.isValidElement(u)?P.cloneElement(u,{className:dt(u.props.className,j.deleteIcon),onClick:F}):N.jsx(nAe,{className:dt(j.deleteIcon),onClick:F}));let Z=null;i&&P.isValidElement(i)&&(Z=P.cloneElement(i,{className:dt(j.avatar,i.props.className)}));let G=null;return d&&P.isValidElement(d)&&(G=P.cloneElement(d,{className:dt(j.icon,d.props.className)})),N.jsxs(aAe,B({as:H,className:dt(j.root,o),disabled:W&&c?!0:void 0,onClick:m,onKeyDown:M,onKeyUp:L,ref:w,tabIndex:C&&c?-1:x,ownerState:q},z,I,{children:[Z||G,N.jsx(lAe,{className:dt(j.label),ownerState:q,children:p}),X]}))}),N$=uAe;function Zh({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 cAe=P.createContext(void 0),I2=cAe;function Ud(){return P.useContext(I2)}function Une(e){return N.jsx(kwe,B({},e,{defaultTheme:_2,themeId:mg}))}function WW(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function r_(e,t=!1){return e&&(WW(e.value)&&e.value!==""||t&&WW(e.defaultValue)&&e.defaultValue!=="")}function dAe(e){return e.startAdornment}function fAe(e){return Qt("MuiInputBase",e)}const pAe=Yt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Dl=pAe,hAe=["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"],D2=(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${gt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},N2=(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]},mAe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:m,type:g}=e,v={root:["root",`color${gt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${gt(p)}`,c&&"multiline",m&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Vt(v,fAe,t)},P2=Ae("div",{name:"MuiInputBase",slot:"Root",overridesResolver:D2})(({theme:e,ownerState:t})=>B({},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",[`&.${Dl.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&B({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),L2=Ae("input",{name:"MuiInputBase",slot:"Input",overridesResolver:N2})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=B({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 B({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] + .${Dl.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},[`&.${Dl.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"})}),gAe=N.jsx(Une,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),bAe=P.forwardRef(function(t,n){var r;const i=Nt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:m,endAdornment:g,fullWidth:v=!1,id:E,inputComponent:O="input",inputProps:S={},inputRef:x,maxRows:C,minRows:I,multiline:_=!1,name:w,onBlur:F,onChange:M,onClick:L,onFocus:W,onKeyDown:H,onKeyUp:q,placeholder:j,readOnly:z,renderSuffix:X,rows:Z,slotProps:G={},slots:ee={},startAdornment:Q,type:ae="text",value:Te}=i,te=st(i,hAe),pe=S.value!=null?S.value:Te,{current:Oe}=P.useRef(pe!=null),me=P.useRef(),Re=P.useCallback(we=>{},[]),Fe=Vn(me,x,S.ref,Re),[et,ct]=P.useState(!1),Ye=Ud(),nt=Zh({props:i,muiFormControl:Ye,states:["color","disabled","error","hiddenLabel","size","required","filled"]});nt.focused=Ye?Ye.focused:et,P.useEffect(()=>{!Ye&&p&&et&&(ct(!1),F&&F())},[Ye,p,et,F]);const ke=Ye&&Ye.onFilled,qe=Ye&&Ye.onEmpty,Ge=P.useCallback(we=>{r_(we)?ke&&ke():qe&&qe()},[ke,qe]);Ji(()=>{Oe&&Ge({value:pe})},[pe,Ge,Oe]);const rt=we=>{if(nt.disabled){we.stopPropagation();return}W&&W(we),S.onFocus&&S.onFocus(we),Ye&&Ye.onFocus?Ye.onFocus(we):ct(!0)},Ot=we=>{F&&F(we),S.onBlur&&S.onBlur(we),Ye&&Ye.onBlur?Ye.onBlur(we):ct(!1)},Ke=(we,...Ie)=>{if(!Oe){const ft=we.target||me.current;if(ft==null)throw new Error(Dh(1));Ge({value:ft.value})}S.onChange&&S.onChange(we,...Ie),M&&M(we,...Ie)};P.useEffect(()=>{Ge(me.current)},[]);const de=we=>{me.current&&we.currentTarget===we.target&&me.current.focus(),L&&L(we)};let oe=O,ie=S;_&&oe==="input"&&(Z?ie=B({type:void 0,minRows:Z,maxRows:Z},ie):ie=B({type:void 0,maxRows:C,minRows:I},ie),oe=Fne);const Me=we=>{Ge(we.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};P.useEffect(()=>{Ye&&Ye.setAdornedStart(!!Q)},[Ye,Q]);const He=B({},i,{color:nt.color||"primary",disabled:nt.disabled,endAdornment:g,error:nt.error,focused:nt.focused,formControl:Ye,fullWidth:v,hiddenLabel:nt.hiddenLabel,multiline:_,size:nt.size,startAdornment:Q,type:ae}),Be=mAe(He),ce=ee.root||u.Root||P2,ye=G.root||c.root||{},be=ee.input||u.Input||L2;return ie=B({},ie,(r=G.input)!=null?r:c.input),N.jsxs(P.Fragment,{children:[!m&&gAe,N.jsxs(ce,B({},ye,!Id(ce)&&{ownerState:B({},He,ye.ownerState)},{ref:n,onClick:de},te,{className:dt(Be.root,ye.className,l,z&&"MuiInputBase-readOnly"),children:[Q,N.jsx(I2.Provider,{value:null,children:N.jsx(be,B({ownerState:He,"aria-invalid":nt.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:d,disabled:nt.disabled,id:E,onAnimationStart:Me,name:w,placeholder:j,readOnly:z,required:nt.required,rows:Z,value:pe,onKeyDown:H,onKeyUp:q,type:ae},ie,!Id(be)&&{as:oe,ownerState:B({},He,ie.ownerState)},{ref:Fe,className:dt(Be.input,ie.className,z&&"MuiInputBase-readOnly"),onBlur:Ot,onChange:Ke,onFocus:rt}))}),g,X?X(B({},nt,{startAdornment:Q})):null]}))]})}),P$=bAe;function yAe(e){return Qt("MuiInput",e)}const vAe=B({},Dl,Yt("MuiInput",["root","underline","input"])),Qp=vAe;function OAe(e){return Qt("MuiOutlinedInput",e)}const EAe=B({},Dl,Yt("MuiOutlinedInput",["root","notchedOutline","input"])),sd=EAe;function SAe(e){return Qt("MuiFilledInput",e)}const TAe=B({},Dl,Yt("MuiFilledInput",["root","underline","input"])),Nl=TAe,jne=Po(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function wAe(e){return Qt("MuiAutocomplete",e)}const xAe=Yt("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"]),vr=xAe;var QW,YW;const kAe=["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"],CAe=["ref"],_Ae=["key"],AAe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${gt(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 Vt(d,wAe,t)},RAe=Ae("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:s,size:a}=n;return[{[`& .${vr.tag}`]:t.tag},{[`& .${vr.tag}`]:t[`tagSize${gt(a)}`]},{[`& .${vr.inputRoot}`]:t.inputRoot},{[`& .${vr.input}`]:t.input},{[`& .${vr.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>B({[`&.${vr.focused} .${vr.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${vr.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${vr.tag}`]:B({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${vr.inputRoot}`]:{flexWrap:"wrap",[`.${vr.hasPopupIcon}&, .${vr.hasClearIcon}&`]:{paddingRight:30},[`.${vr.hasPopupIcon}.${vr.hasClearIcon}&`]:{paddingRight:56},[`& .${vr.input}`]:{width:0,minWidth:30}},[`& .${Qp.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qp.root}.${Dl.sizeSmall}`]:{[`& .${Qp.input}`]:{padding:"2px 4px 3px 0"}},[`& .${sd.root}`]:{padding:9,[`.${vr.hasPopupIcon}&, .${vr.hasClearIcon}&`]:{paddingRight:39},[`.${vr.hasPopupIcon}.${vr.hasClearIcon}&`]:{paddingRight:65},[`& .${vr.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${vr.endAdornment}`]:{right:9}},[`& .${sd.root}.${Dl.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${vr.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Nl.root}`]:{paddingTop:19,paddingLeft:8,[`.${vr.hasPopupIcon}&, .${vr.hasClearIcon}&`]:{paddingRight:39},[`.${vr.hasPopupIcon}.${vr.hasClearIcon}&`]:{paddingRight:65},[`& .${Nl.input}`]:{padding:"7px 4px"},[`& .${vr.endAdornment}`]:{right:9}},[`& .${Nl.root}.${Dl.sizeSmall}`]:{paddingBottom:1,[`& .${Nl.input}`]:{padding:"2.5px 4px"}},[`& .${Dl.hiddenLabel}`]:{paddingTop:8},[`& .${Nl.root}.${Dl.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${vr.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Nl.root}.${Dl.hiddenLabel}.${Dl.sizeSmall}`]:{[`& .${vr.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${vr.input}`]:B({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),IAe=Ae("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),DAe=Ae(Xo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),NAe=Ae(Xo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>B({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>B({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),PAe=Ae(Zy,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vr.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>B({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),LAe=Ae(js,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>B({},e.typography.body1,{overflow:"auto"})),MAe=Ae("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),$Ae=Ae("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),FAe=Ae("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",[`& .${vr.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"},[`&.${vr.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"},[`&.${vr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${vr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),BAe=Ae(tAe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),UAe=Ae("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${vr.option}`]:{paddingLeft:24}}),jAe=P.forwardRef(function(t,n){var r,i,o,s;const a=Nt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:m,clearIcon:g=QW||(QW=N.jsx(Uke,{fontSize:"small"})),clearOnBlur:v=!a.freeSolo,clearOnEscape:E=!1,clearText:O="Clear",closeText:S="Close",componentsProps:x={},defaultValue:C=a.multiple?[]:null,disableClearable:I=!1,disableCloseOnSelect:_=!1,disabled:w=!1,disabledItemsFocusable:F=!1,disableListWrap:M=!1,disablePortal:L=!1,filterSelectedOptions:W=!1,forcePopupIcon:H="auto",freeSolo:q=!1,fullWidth:j=!1,getLimitTagsText:z=Le=>`+${Le}`,getOptionLabel:X,groupBy:Z,handleHomeEndKeys:G=!a.freeSolo,includeInputInList:ee=!1,limitTags:Q=-1,ListboxComponent:ae="ul",ListboxProps:Te,loading:te=!1,loadingText:pe="Loading…",multiple:Oe=!1,noOptionsText:me="No options",openOnFocus:Re=!1,openText:Fe="Open",PaperComponent:et=js,PopperComponent:ct=Zy,popupIcon:Ye=YW||(YW=N.jsx(jne,{})),readOnly:nt=!1,renderGroup:ke,renderInput:qe,renderOption:Ge,renderTags:rt,selectOnFocus:Ot=!a.freeSolo,size:Ke="medium",slotProps:de={}}=a,oe=st(a,kAe),{getRootProps:ie,getInputProps:Me,getInputLabelProps:He,getPopupIndicatorProps:Be,getClearProps:ce,getTagProps:ye,getListboxProps:be,getOptionProps:we,value:Ie,dirty:ft,expanded:_t,id:At,popupOpen:pt,focused:Mt,focusedTag:it,anchorEl:bt,setAnchorEl:$t,inputValue:Xt,groupedOptions:vn}=Y_e(B({},a,{componentName:"Autocomplete"})),Cn=!I&&!w&&ft&&!nt,$n=(!q||H===!0)&&H!==!1,{onMouseDown:qn}=Me(),{ref:Ce}=Te??{},$e=be(),{ref:tt}=$e,De=st($e,CAe),wt=Vn(tt,Ce),jt=X||(Le=>{var Rt;return(Rt=Le.label)!=null?Rt:Le}),qt=B({},a,{disablePortal:L,expanded:_t,focused:Mt,fullWidth:j,getOptionLabel:jt,hasClearIcon:Cn,hasPopupIcon:$n,inputFocused:it===-1,popupOpen:pt,size:Ke}),Bt=AAe(qt);let On;if(Oe&&Ie.length>0){const Le=Rt=>B({className:Bt.tag,disabled:w},ye(Rt));rt?On=rt(Ie,Le,qt):On=Ie.map((Rt,en)=>N.jsx(N$,B({label:jt(Rt),size:Ke},Le({index:en}),p)))}if(Q>-1&&Array.isArray(On)){const Le=On.length-Q;!Mt&&Le>0&&(On=On.splice(0,Q),On.push(N.jsx("span",{className:Bt.tag,children:z(Le)},On.length)))}const ze=ke||(Le=>N.jsxs("li",{children:[N.jsx(BAe,{className:Bt.groupLabel,ownerState:qt,component:"div",children:Le.group}),N.jsx(UAe,{className:Bt.groupUl,ownerState:qt,children:Le.children})]},Le.key)),yt=Ge||((Le,Rt)=>{const{key:en}=Le,mn=st(Le,_Ae);return N.jsx("li",B({},mn,{children:jt(Rt)}),en)}),Nn=(Le,Rt)=>{const en=we({option:Le,index:Rt});return yt(B({},en,{className:Bt.option}),Le,{selected:en["aria-selected"],index:Rt,inputValue:Xt},qt)},Kt=(r=de.clearIndicator)!=null?r:x.clearIndicator,An=(i=de.paper)!=null?i:x.paper,Kr=(o=de.popper)!=null?o:x.popper,Xe=(s=de.popupIndicator)!=null?s:x.popupIndicator;return N.jsxs(P.Fragment,{children:[N.jsx(RAe,B({ref:n,className:dt(Bt.root,m),ownerState:qt},ie(oe),{children:qe({id:At,disabled:w,fullWidth:!0,size:Ke==="small"?"small":void 0,InputLabelProps:He(),InputProps:B({ref:$t,className:Bt.inputRoot,startAdornment:On,onClick:Le=>{Le.target===Le.currentTarget&&qn(Le)}},(Cn||$n)&&{endAdornment:N.jsxs(IAe,{className:Bt.endAdornment,ownerState:qt,children:[Cn?N.jsx(DAe,B({},ce(),{"aria-label":O,title:O,ownerState:qt},Kt,{className:dt(Bt.clearIndicator,Kt==null?void 0:Kt.className),children:g})):null,$n?N.jsx(NAe,B({},Be(),{disabled:w,"aria-label":pt?S:Fe,title:pt?S:Fe,ownerState:qt},Xe,{className:dt(Bt.popupIndicator,Xe==null?void 0:Xe.className),children:Ye})):null]})}),inputProps:B({className:Bt.input,disabled:w,readOnly:nt},Me())})})),bt?N.jsx(PAe,B({as:ct,disablePortal:L,style:{width:bt?bt.clientWidth:null},ownerState:qt,role:"presentation",anchorEl:bt,open:pt},Kr,{className:dt(Bt.popper,Kr==null?void 0:Kr.className),children:N.jsxs(LAe,B({ownerState:qt,as:et},An,{className:dt(Bt.paper,An==null?void 0:An.className),children:[te&&vn.length===0?N.jsx(MAe,{className:Bt.loading,ownerState:qt,children:pe}):null,vn.length===0&&!q&&!te?N.jsx($Ae,{className:Bt.noOptions,ownerState:qt,role:"presentation",onMouseDown:Le=>{Le.preventDefault()},children:me}):null,vn.length>0?N.jsx(FAe,B({as:ae,className:Bt.listbox,ownerState:qt},De,Te,{ref:wt,children:vn.map((Le,Rt)=>Z?ze({key:Le.key,group:Le.group,children:Le.options.map((en,mn)=>Nn(en,Le.index+mn))}):Nn(Le,Rt))})):null]}))})):null]})}),zAe=jAe,VAe=Po(N.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function HAe(e){return Qt("MuiAvatar",e)}const WAe=Yt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),QAe=WAe,YAe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],GAe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Vt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},HAe,t)},qAe=Ae("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:B({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:B({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),ZAe=Ae("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),XAe=Ae(VAe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function KAe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=P.useState(!1);return P.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const JAe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:p="circular"}=r,m=st(r,YAe);let g=null;const v=KAe(B({},l,{src:c,srcSet:d})),E=c||d,O=E&&v!=="error",S=B({},r,{colorDefault:!O,component:a,variant:p}),x=GAe(S);return O?g=N.jsx(ZAe,B({alt:i,srcSet:d,src:c,sizes:u,ownerState:S,className:x.img},l)):o!=null&&o!==""&&typeof o!="boolean"?g=o:E&&i?g=i[0]:g=N.jsx(XAe,{ownerState:S,className:x.fallback}),N.jsx(qAe,B({as:a,ownerState:S,className:dt(x.root,s),ref:n},m,{children:g}))}),M2=JAe;function e2e(e){return Qt("MuiAvatarGroup",e)}const t2e=Yt("MuiAvatarGroup",["root","avatar"]),n2e=t2e,r2e=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],GW={small:-16,medium:null},i2e=e=>{const{classes:t}=e;return Vt({root:["root"],avatar:["avatar"]},e2e,t)},o2e=Ae("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>B({[`& .${n2e.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&GW[t.spacing]!==void 0?GW[t.spacing]:-t.spacing;return{[`& .${QAe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),s2e=P.forwardRef(function(t,n){var r;const i=Nt({props:t,name:"MuiAvatarGroup"}),{children:o,className:s,component:a="div",componentsProps:l={},max:u=5,renderSurplus:c,slotProps:d={},spacing:p="medium",total:m,variant:g="circular"}=i,v=st(i,r2e);let E=u<2?2:u;const O=B({},i,{max:u,spacing:p,component:a,variant:g}),S=i2e(O),x=P.Children.toArray(o).filter(M=>P.isValidElement(M)),C=m||x.length;C===E&&(E+=1),E=Math.min(C+1,E);const I=Math.min(x.length,E-1),_=Math.max(C-E,C-I,0),w=c?c(_):`+${_}`,F=(r=d.additionalAvatar)!=null?r:l.additionalAvatar;return N.jsxs(o2e,B({as:a,ownerState:O,className:dt(S.root,s),ref:n},v,{children:[_?N.jsx(M2,B({variant:g},F,{className:dt(S.avatar,F==null?void 0:F.className),children:w})):null,x.slice(0,I).reverse().map(M=>P.cloneElement(M,{className:dt(M.props.className,S.avatar),variant:M.props.variant||g}))]}))}),a2e=s2e,l2e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],u2e={entering:{opacity:1},entered:{opacity:1}},c2e=P.forwardRef(function(t,n){const r=Di(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:m,onExited:g,onExiting:v,style:E,timeout:O=i,TransitionComponent:S=GS}=t,x=st(t,l2e),C=P.useRef(null),I=Vn(C,a.ref,n),_=j=>z=>{if(j){const X=C.current;z===void 0?j(X):j(X,z)}},w=_(p),F=_((j,z)=>{x$(j);const X=Ph({style:E,timeout:O,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",X),j.style.transition=r.transitions.create("opacity",X),c&&c(j,z)}),M=_(d),L=_(v),W=_(j=>{const z=Ph({style:E,timeout:O,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",z),j.style.transition=r.transitions.create("opacity",z),m&&m(j)}),H=_(g),q=j=>{o&&o(C.current,j)};return N.jsx(S,B({appear:s,in:u,nodeRef:C,onEnter:F,onEntered:M,onEntering:w,onExit:W,onExited:H,onExiting:L,addEndListener:q,timeout:O},x,{children:(j,z)=>P.cloneElement(a,B({style:B({opacity:0,visibility:j==="exited"&&!u?"hidden":void 0},u2e[j],E,a.props.style),ref:I},z))}))}),Gf=c2e;function d2e(e){return Qt("MuiBackdrop",e)}Yt("MuiBackdrop",["root","invisible"]);const f2e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],p2e=e=>{const{classes:t,invisible:n}=e;return Vt({root:["root",n&&"invisible"]},d2e,t)},h2e=Ae("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>B({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"})),m2e=P.forwardRef(function(t,n){var r,i,o;const s=Nt({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:d={},invisible:p=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:E=Gf,transitionDuration:O}=s,S=st(s,f2e),x=B({},s,{component:u,invisible:p}),C=p2e(x),I=(r=g.root)!=null?r:d.root;return N.jsx(E,B({in:m,timeout:O},S,{children:N.jsx(h2e,B({"aria-hidden":!0},I,{as:(i=(o=v.root)!=null?o:c.Root)!=null?i:u,className:dt(C.root,l,I==null?void 0:I.className),ownerState:B({},x,I==null?void 0:I.ownerState),classes:C,ref:n,children:a}))}))}),XS=m2e,g2e=Yt("MuiBox",["root"]),b2e=g2e,y2e=y$(),v2e=Rwe({themeId:mg,defaultTheme:y2e,defaultClassName:b2e.root,generateClassName:c$.generate}),Zo=v2e;function O2e(e){return Qt("MuiButton",e)}const E2e=Yt("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"]),px=E2e,S2e=P.createContext({}),T2e=S2e,w2e=P.createContext(void 0),x2e=w2e,k2e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],C2e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,a={root:["root",o,`${o}${gt(t)}`,`size${gt(i)}`,`${o}Size${gt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${gt(i)}`],endIcon:["endIcon",`iconSize${gt(i)}`]},l=Vt(a,O2e,s);return B({},s,l)},zne=e=>B({},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}}),_2e=Ae(Gl,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${gt(n.color)}`],t[`size${gt(n.size)}`],t[`${n.variant}Size${gt(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 B({},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":B({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg: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":B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${px.focusVisible}`]:B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${px.disabled}`]:B({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${In(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${px.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${px.disabled}`]:{boxShadow:"none"}}),A2e=Ae("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${gt(n.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},zne(e))),R2e=Ae("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${gt(n.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},zne(e))),I2e=P.forwardRef(function(t,n){const r=P.useContext(T2e),i=P.useContext(x2e),o=m2(r,t),s=Nt({props:o,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:E=!1,size:O="medium",startIcon:S,type:x,variant:C="text"}=s,I=st(s,k2e),_=B({},s,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:m,fullWidth:E,size:O,type:x,variant:C}),w=C2e(_),F=S&&N.jsx(A2e,{className:w.startIcon,ownerState:_,children:S}),M=g&&N.jsx(R2e,{className:w.endIcon,ownerState:_,children:g}),L=i||"";return N.jsxs(_2e,B({ownerState:_,className:dt(r.className,w.root,c,L),component:u,disabled:d,focusRipple:!m,focusVisibleClassName:dt(w.focusVisible,v),ref:n,type:x},I,{classes:w,children:[F,a,M]}))}),Ms=I2e;function D2e(e){return Qt("MuiCard",e)}Yt("MuiCard",["root"]);const N2e=["className","raised"],P2e=e=>{const{classes:t}=e;return Vt({root:["root"]},D2e,t)},L2e=Ae(js,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),M2e=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,s=st(r,N2e),a=B({},r,{raised:o}),l=P2e(a);return N.jsx(L2e,B({className:dt(l.root,i),elevation:o?8:void 0,ref:n,ownerState:a},s))}),L$=M2e;function $2e(e){return Qt("MuiCardActionArea",e)}const F2e=Yt("MuiCardActionArea",["root","focusVisible","focusHighlight"]),lN=F2e,B2e=["children","className","focusVisibleClassName"],U2e=e=>{const{classes:t}=e;return Vt({root:["root"],focusHighlight:["focusHighlight"]},$2e,t)},j2e=Ae(Gl,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${lN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${lN.focusVisible} .${lN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),z2e=Ae("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})})),V2e=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:s}=r,a=st(r,B2e),l=r,u=U2e(l);return N.jsxs(j2e,B({className:dt(u.root,o),focusVisibleClassName:dt(s,u.focusVisible),ref:n,ownerState:l},a,{children:[i,N.jsx(z2e,{className:u.focusHighlight,ownerState:l})]}))}),Vne=V2e;function H2e(e){return Qt("MuiCardContent",e)}Yt("MuiCardContent",["root"]);const W2e=["className","component"],Q2e=e=>{const{classes:t}=e;return Vt({root:["root"]},H2e,t)},Y2e=Ae("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),G2e=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,s=st(r,W2e),a=B({},r,{component:o}),l=Q2e(a);return N.jsx(Y2e,B({as:o,className:dt(l.root,i),ownerState:a,ref:n},s))}),q2e=G2e;function Z2e(e){return Qt("PrivateSwitchBase",e)}Yt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const X2e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],K2e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${gt(i)}`],input:["input"]};return Vt(o,Z2e,t)},J2e=Ae(Gl)(({ownerState:e})=>B({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),eRe=Ae("input",{shouldForwardProp:ys})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),tRe=P.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:a,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:p,inputProps:m,inputRef:g,name:v,onBlur:E,onChange:O,onFocus:S,readOnly:x,required:C=!1,tabIndex:I,type:_,value:w}=t,F=st(t,X2e),[M,L]=ms({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),W=Ud(),H=ee=>{S&&S(ee),W&&W.onFocus&&W.onFocus(ee)},q=ee=>{E&&E(ee),W&&W.onBlur&&W.onBlur(ee)},j=ee=>{if(ee.nativeEvent.defaultPrevented)return;const Q=ee.target.checked;L(Q),O&&O(ee,Q)};let z=l;W&&typeof z>"u"&&(z=W.disabled);const X=_==="checkbox"||_==="radio",Z=B({},t,{checked:M,disabled:z,disableFocusRipple:u,edge:c}),G=K2e(Z);return N.jsxs(J2e,B({component:"span",className:dt(G.root,s),centerRipple:!0,focusRipple:!u,disabled:z,tabIndex:null,role:void 0,onFocus:H,onBlur:q,ownerState:Z,ref:n},F,{children:[N.jsx(eRe,B({autoFocus:r,checked:i,defaultChecked:a,className:G.input,disabled:z,id:X?p:void 0,name:v,onChange:j,readOnly:x,ref:g,required:C,ownerState:Z,tabIndex:I,type:_},_==="checkbox"&&w===void 0?{}:{value:w},m)),M?o:d]}))}),M$=tRe,nRe=Po(N.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),rRe=Po(N.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),iRe=Po(N.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function oRe(e){return Qt("MuiCheckbox",e)}const sRe=Yt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),uN=sRe,aRe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],lRe=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${gt(r)}`,`size${gt(i)}`]},s=Vt(o,oRe,t);return B({},t,s)},uRe=Ae(M$,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${gt(n.size)}`],n.color!=="default"&&t[`color${gt(n.color)}`]]}})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${uN.checked}, &.${uN.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${uN.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),cRe=N.jsx(rRe,{}),dRe=N.jsx(nRe,{}),fRe=N.jsx(iRe,{}),pRe=P.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=cRe,color:a="primary",icon:l=dRe,indeterminate:u=!1,indeterminateIcon:c=fRe,inputProps:d,size:p="medium",className:m}=o,g=st(o,aRe),v=u?c:l,E=u?c:s,O=B({},o,{color:a,indeterminate:u,size:p}),S=lRe(O);return N.jsx(uRe,B({type:"checkbox",inputProps:B({"data-indeterminate":u},d),icon:P.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:P.cloneElement(E,{fontSize:(i=E.props.fontSize)!=null?i:p}),ownerState:O,ref:n,className:dt(S.root,m)},g,{classes:S}))}),$2=pRe;function hRe(e){return Qt("MuiCircularProgress",e)}Yt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const mRe=["className","color","disableShrink","size","style","thickness","value","variant"];let F2=e=>e,qW,ZW,XW,KW;const Rp=44,gRe=VS(qW||(qW=F2` +`),yu.rippleVisible,vke,nM,({theme:e})=>e.transitions.easing.easeInOut,yu.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,yu.child,yu.childLeaving,Oke,nM,({theme:e})=>e.transitions.easing.easeInOut,yu.childPulsate,Eke,({theme:e})=>e.transitions.easing.easeInOut),wke=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=st(r,bke),[l,u]=L.useState([]),c=L.useRef(0),d=L.useRef(null);L.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=L.useRef(!1),m=Bm(),g=L.useRef(null),v=L.useRef(null),S=L.useCallback(k=>{const{pulsate:A,rippleX:C,rippleY:x,rippleSize:F,cb:M}=k;u(P=>[...P,N.jsx(Tke,{classes:{ripple:dt(o.ripple,yu.ripple),rippleVisible:dt(o.rippleVisible,yu.rippleVisible),ripplePulsate:dt(o.ripplePulsate,yu.ripplePulsate),child:dt(o.child,yu.child),childLeaving:dt(o.childLeaving,yu.childLeaving),childPulsate:dt(o.childPulsate,yu.childPulsate)},timeout:nM,pulsate:A,rippleX:C,rippleY:x,rippleSize:F},c.current)]),c.current+=1,d.current=M},[o]),O=L.useCallback((k={},A={},C=()=>{})=>{const{pulsate:x=!1,center:F=i||A.pulsate,fakeElement:M=!1}=A;if((k==null?void 0:k.type)==="mousedown"&&f.current){f.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(f.current=!0);const P=M?null:v.current,V=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,G,j;if(F||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)W=Math.round(V.width/2),G=Math.round(V.height/2);else{const{clientX:z,clientY:X}=k.touches&&k.touches.length>0?k.touches[0]:k;W=Math.round(z-V.left),G=Math.round(X-V.top)}if(F)j=Math.sqrt((2*V.width**2+V.height**2)/3),j%2===0&&(j+=1);else{const z=Math.max(Math.abs((P?P.clientWidth:0)-W),W)*2+2,X=Math.max(Math.abs((P?P.clientHeight:0)-G),G)*2+2;j=Math.sqrt(z**2+X**2)}k!=null&&k.touches?g.current===null&&(g.current=()=>{S({pulsate:x,rippleX:W,rippleY:G,rippleSize:j,cb:C})},m.start(yke,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:x,rippleX:W,rippleY:G,rippleSize:j,cb:C})},[i,S,m]),E=L.useCallback(()=>{O({},{pulsate:!0})},[O]),w=L.useCallback((k,A)=>{if(m.clear(),(k==null?void 0:k.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{w(k,A)});return}g.current=null,u(C=>C.length>0?C.slice(1):C),d.current=A},[m]);return L.useImperativeHandle(n,()=>({pulsate:E,start:O,stop:w}),[E,O,w]),N.jsx(Ske,B({className:dt(yu.root,o.root,a),ref:v},s,{children:N.jsx(SF,{component:null,exit:!0,children:l})}))}),xke=wke;function kke(e){return Qt("MuiButtonBase",e)}const Cke=Yt("MuiButtonBase",["root","disabled","focusVisible"]),_ke=["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"],Ake=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Vt({root:["root",t&&"disabled",n&&"focusVisible"]},kke,i);return n&&r&&(a.root+=` ${r}`),a},Rke=Ie("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"},[`&.${Cke.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ike=L.forwardRef(function(t,n){const r=Nt({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:f=!1,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:S,onDragLeave:O,onFocus:E,onFocusVisible:w,onKeyDown:k,onKeyUp:A,onMouseDown:C,onMouseLeave:x,onMouseUp:F,onTouchEnd:M,onTouchMove:P,onTouchStart:V,tabIndex:W=0,TouchRippleProps:G,touchRippleRef:j,type:z}=r,X=st(r,_ke),Z=L.useRef(null),q=L.useRef(null),te=Vn(q,j),{isFocusVisibleRef:Q,onFocus:se,onBlur:he,ref:J}=fR(),[le,ve]=L.useState(!1);u&&le&&ve(!1),L.useImperativeHandle(i,()=>({focusVisible:()=>{ve(!0),Z.current.focus()}}),[]);const[ue,we]=L.useState(!1);L.useEffect(()=>{we(!0)},[]);const ke=ue&&!c&&!u;L.useEffect(()=>{le&&f&&!c&&ue&&q.current.pulsate()},[c,f,le,ue]);function Ue(De,ft,_t=d){return on(At=>(ft&&ft(At),!_t&&q.current&&q.current[De](At),!0))}const et=Ue("start",C),Me=Ue("stop",S),qe=Ue("stop",O),xe=Ue("stop",F),Ze=Ue("stop",De=>{le&&De.preventDefault(),x&&x(De)}),Xe=Ue("start",V),it=Ue("stop",M),Ot=Ue("stop",P),tt=Ue("stop",De=>{he(De),Q.current===!1&&ve(!1),g&&g(De)},!1),pe=on(De=>{Z.current||(Z.current=De.currentTarget),se(De),Q.current===!0&&(ve(!0),w&&w(De)),E&&E(De)}),oe=()=>{const De=Z.current;return l&&l!=="button"&&!(De.tagName==="A"&&De.href)},ie=L.useRef(!1),Fe=on(De=>{f&&!ie.current&&le&&q.current&&De.key===" "&&(ie.current=!0,q.current.stop(De,()=>{q.current.start(De)})),De.target===De.currentTarget&&oe()&&De.key===" "&&De.preventDefault(),k&&k(De),De.target===De.currentTarget&&oe()&&De.key==="Enter"&&!u&&(De.preventDefault(),v&&v(De))}),Qe=on(De=>{f&&De.key===" "&&q.current&&le&&!De.defaultPrevented&&(ie.current=!1,q.current.stop(De,()=>{q.current.pulsate(De)})),A&&A(De),v&&De.target===De.currentTarget&&oe()&&De.key===" "&&!De.defaultPrevented&&v(De)});let je=l;je==="button"&&(X.href||X.to)&&(je=m);const fe={};je==="button"?(fe.type=z===void 0?"button":z,fe.disabled=u):(!X.href&&!X.to&&(fe.role="button"),u&&(fe["aria-disabled"]=u));const Oe=Vn(n,J,Z),ye=B({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:W,focusVisible:le}),Ce=Ake(ye);return N.jsxs(Rke,B({as:je,className:dt(Ce.root,s),ownerState:ye,onBlur:tt,onClick:v,onContextMenu:Me,onFocus:pe,onKeyDown:Fe,onKeyUp:Qe,onMouseDown:et,onMouseLeave:Ze,onMouseUp:xe,onDragLeave:qe,onTouchEnd:it,onTouchMove:Ot,onTouchStart:Xe,ref:Oe,tabIndex:u?-1:W,type:z},fe,X,{children:[a,ke?N.jsx(xke,B({ref:te,center:o},G)):null]}))}),Gl=Ike;function Dke(e){return Qt("MuiIconButton",e)}const Nke=Yt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Pke=["edge","children","className","color","disabled","disableFocusRipple","size"],Lke=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${mt(r)}`,i&&`edge${mt(i)}`,`size${mt(o)}`]};return Vt(a,Dke,t)},Mke=Ie(Gl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${mt(n.color)}`],n.edge&&t[`edge${mt(n.edge)}`],t[`size${mt(n.size)}`]]}})(({theme:e,ownerState:t})=>B({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return B({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&B({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":B({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Nke.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),$ke=L.forwardRef(function(t,n){const r=Nt({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=st(r,Pke),f=B({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),m=Lke(f);return N.jsx(Mke,B({className:dt(m.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:f},d,{children:o}))}),Xo=$ke,Fke=Po(N.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Bke(e){return Qt("MuiTypography",e)}Yt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Uke=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],jke=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${mt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Vt(s,Bke,a)},zke=Ie("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${mt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>B({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})),SH={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Vke={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wke=e=>Vke[e]||e,Hke=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTypography"}),i=Wke(r.color),o=SR(B({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:m=SH}=o,g=st(o,Uke),v=B({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:m}),S=l||(d?"p":m[f]||SH[f])||"span",O=jke(v);return N.jsx(zke,B({as:S,ref:n,ownerState:v,className:dt(O.root,s)},g))}),$r=Hke;function Qke(e){return Qt("MuiAppBar",e)}Yt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Yke=["className","color","enableColorOnDark","position"],Gke=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${mt(t)}`,`position${mt(n)}`]};return Vt(i,Qke,r)},ox=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,qke=Ie(ja,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${mt(n.position)}`],t[`color${mt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return B({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&&B({},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"&&B({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&B({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ox(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ox(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:ox(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ox(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"}))}),Zke=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=st(r,Yke),u=B({},r,{color:o,position:s,enableColorOnDark:a}),c=Gke(u);return N.jsx(qke,B({square:!0,component:"header",ownerState:u,elevation:4,className:dt(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),vne=Zke,One="base";function Xke(e){return`${One}--${e}`}function Kke(e,t){return`${One}-${e}-${t}`}function Ene(e,t){const n=one[t];return n?Xke(n):Kke(e,t)}function Jke(e,t){const n={};return t.forEach(r=>{n[r]=Ene(e,r)}),n}function TH(e){return e.substring(2).toLowerCase()}function eCe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=Vn(t.ref,s),d=on(g=>{const v=u.current;u.current=!1;const S=ci(s.current);if(!l.current||!s.current||"clientX"in g&&eCe(g,S))return;if(a.current){a.current=!1;return}let O;g.composedPath?O=g.composedPath().indexOf(s.current)>-1:O=!S.documentElement.contains(g.target)||s.current.contains(g.target),!O&&(n||!v)&&i(g)}),f=g=>v=>{u.current=!0;const S=t.props[g];S&&S(v)},m={ref:c};return o!==!1&&(m[o]=f(o)),L.useEffect(()=>{if(o!==!1){const g=TH(o),v=ci(s.current),S=()=>{a.current=!0};return v.addEventListener(g,d),v.addEventListener("touchmove",S),()=>{v.removeEventListener(g,d),v.removeEventListener("touchmove",S)}}},[d,o]),r!==!1&&(m[r]=f(r)),L.useEffect(()=>{if(r!==!1){const g=TH(r),v=ci(s.current);return v.addEventListener(g,d),()=>{v.removeEventListener(g,d)}}},[d,r]),N.jsx(L.Fragment,{children:L.cloneElement(t,m)})}const nCe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rCe(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 iCe(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 oCe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||iCe(e))}function aCe(e){const t=[],n=[];return Array.from(e.querySelectorAll(nCe)).forEach((r,i)=>{const o=rCe(r);o===-1||!oCe(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 sCe(){return!0}function Sne(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=aCe,isEnabled:a=sCe,open:s}=e,l=L.useRef(!1),u=L.useRef(null),c=L.useRef(null),d=L.useRef(null),f=L.useRef(null),m=L.useRef(!1),g=L.useRef(null),v=Vn(t.ref,g),S=L.useRef(null);L.useEffect(()=>{!s||!g.current||(m.current=!n)},[n,s]),L.useEffect(()=>{if(!s||!g.current)return;const w=ci(g.current);return g.current.contains(w.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),L.useEffect(()=>{if(!s||!g.current)return;const w=ci(g.current),k=x=>{S.current=x,!(r||!a()||x.key!=="Tab")&&w.activeElement===g.current&&x.shiftKey&&(l.current=!0,c.current&&c.current.focus())},A=()=>{const x=g.current;if(x===null)return;if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if(x.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==c.current)return;if(w.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!m.current)return;let F=[];if((w.activeElement===u.current||w.activeElement===c.current)&&(F=o(g.current)),F.length>0){var M,P;const V=!!((M=S.current)!=null&&M.shiftKey&&((P=S.current)==null?void 0:P.key)==="Tab"),W=F[0],G=F[F.length-1];typeof W!="string"&&typeof G!="string"&&(V?G.focus():W.focus())}else x.focus()};w.addEventListener("focusin",A),w.addEventListener("keydown",k,!0);const C=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(C),w.removeEventListener("focusin",A),w.removeEventListener("keydown",k,!0)}},[n,r,i,a,s,o]);const O=w=>{d.current===null&&(d.current=w.relatedTarget),m.current=!0,f.current=w.target;const k=t.props.onFocus;k&&k(w)},E=w=>{d.current===null&&(d.current=w.relatedTarget),m.current=!0};return N.jsxs(L.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:u,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:v,onFocus:O}),N.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:c,"data-testid":"sentinelEnd"})]})}var ol="top",Uu="bottom",ju="right",al="left",wF="auto",GS=[ol,Uu,ju,al],yy="start",TE="end",lCe="clippingParents",Tne="viewport",uO="popper",uCe="reference",wH=GS.reduce(function(e,t){return e.concat([t+"-"+yy,t+"-"+TE])},[]),wne=[].concat(GS,[wF]).reduce(function(e,t){return e.concat([t,t+"-"+yy,t+"-"+TE])},[]),cCe="beforeRead",dCe="read",fCe="afterRead",pCe="beforeMain",hCe="main",mCe="afterMain",gCe="beforeWrite",bCe="write",yCe="afterWrite",vCe=[cCe,dCe,fCe,pCe,hCe,mCe,gCe,bCe,yCe];function Fd(e){return e?(e.nodeName||"").toLowerCase():null}function ql(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yg(e){var t=ql(e).Element;return e instanceof t||e instanceof Element}function Iu(e){var t=ql(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xF(e){if(typeof ShadowRoot>"u")return!1;var t=ql(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function OCe(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];!Iu(o)||!Fd(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 ECe(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},{});!Iu(i)||!Fd(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const SCe={name:"applyStyles",enabled:!0,phase:"write",fn:OCe,effect:ECe,requires:["computeStyles"]};function Nd(e){return e.split("-")[0]}var lg=Math.max,JC=Math.min,vy=Math.round;function rM(){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 xne(){return!/^((?!chrome|android).)*safari/i.test(rM())}function Oy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Iu(e)&&(i=e.offsetWidth>0&&vy(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&vy(r.height)/e.offsetHeight||1);var a=yg(e)?ql(e):window,s=a.visualViewport,l=!xne()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function kF(e){var t=Oy(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 kne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xF(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Yf(e){return ql(e).getComputedStyle(e)}function TCe(e){return["table","td","th"].indexOf(Fd(e))>=0}function qh(e){return((yg(e)?e.ownerDocument:e.document)||window.document).documentElement}function _R(e){return Fd(e)==="html"?e:e.assignedSlot||e.parentNode||(xF(e)?e.host:null)||qh(e)}function xH(e){return!Iu(e)||Yf(e).position==="fixed"?null:e.offsetParent}function wCe(e){var t=/firefox/i.test(rM()),n=/Trident/i.test(rM());if(n&&Iu(e)){var r=Yf(e);if(r.position==="fixed")return null}var i=_R(e);for(xF(i)&&(i=i.host);Iu(i)&&["html","body"].indexOf(Fd(i))<0;){var o=Yf(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 qS(e){for(var t=ql(e),n=xH(e);n&&TCe(n)&&Yf(n).position==="static";)n=xH(n);return n&&(Fd(n)==="html"||Fd(n)==="body"&&Yf(n).position==="static")?t:n||wCe(e)||t}function CF(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function S1(e,t,n){return lg(e,JC(t,n))}function xCe(e,t,n){var r=S1(e,t,n);return r>n?n:r}function Cne(){return{top:0,right:0,bottom:0,left:0}}function _ne(e){return Object.assign({},Cne(),e)}function Ane(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var kCe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_ne(typeof t!="number"?t:Ane(t,GS))};function CCe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Nd(n.placement),l=CF(s),u=[al,ju].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=kCe(i.padding,n),f=kF(o),m=l==="y"?ol:al,g=l==="y"?Uu:ju,v=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],S=a[l]-n.rects.reference[l],O=qS(o),E=O?l==="y"?O.clientHeight||0:O.clientWidth||0:0,w=v/2-S/2,k=d[m],A=E-f[c]-d[g],C=E/2-f[c]/2+w,x=S1(k,C,A),F=l;n.modifiersData[r]=(t={},t[F]=x,t.centerOffset=x-C,t)}}function _Ce(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)||kne(t.elements.popper,i)&&(t.elements.arrow=i))}const ACe={name:"arrow",enabled:!0,phase:"main",fn:CCe,effect:_Ce,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ey(e){return e.split("-")[1]}var RCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ICe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:vy(n*i)/i||0,y:vy(r*i)/i||0}}function kH(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,f=a.x,m=f===void 0?0:f,g=a.y,v=g===void 0?0:g,S=typeof c=="function"?c({x:m,y:v}):{x:m,y:v};m=S.x,v=S.y;var O=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),w=al,k=ol,A=window;if(u){var C=qS(n),x="clientHeight",F="clientWidth";if(C===ql(n)&&(C=qh(n),Yf(C).position!=="static"&&s==="absolute"&&(x="scrollHeight",F="scrollWidth")),C=C,i===ol||(i===al||i===ju)&&o===TE){k=Uu;var M=d&&C===A&&A.visualViewport?A.visualViewport.height:C[x];v-=M-r.height,v*=l?1:-1}if(i===al||(i===ol||i===Uu)&&o===TE){w=ju;var P=d&&C===A&&A.visualViewport?A.visualViewport.width:C[F];m-=P-r.width,m*=l?1:-1}}var V=Object.assign({position:s},u&&RCe),W=c===!0?ICe({x:m,y:v},ql(n)):{x:m,y:v};if(m=W.x,v=W.y,l){var G;return Object.assign({},V,(G={},G[k]=E?"0":"",G[w]=O?"0":"",G.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},V,(t={},t[k]=E?v+"px":"",t[w]=O?m+"px":"",t.transform="",t))}function DCe(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:Nd(t.placement),variation:Ey(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,kH(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,kH(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 NCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:DCe,data:{}};var ax={passive:!0};function PCe(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=ql(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,ax)}),s&&l.addEventListener("resize",n.update,ax),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ax)}),s&&l.removeEventListener("resize",n.update,ax)}}const LCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:PCe,data:{}};var MCe={left:"right",right:"left",bottom:"top",top:"bottom"};function Nk(e){return e.replace(/left|right|bottom|top/g,function(t){return MCe[t]})}var $Ce={start:"end",end:"start"};function CH(e){return e.replace(/start|end/g,function(t){return $Ce[t]})}function _F(e){var t=ql(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function AF(e){return Oy(qh(e)).left+_F(e).scrollLeft}function FCe(e,t){var n=ql(e),r=qh(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=xne();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+AF(e),y:l}}function BCe(e){var t,n=qh(e),r=_F(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=lg(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=lg(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+AF(e),l=-r.scrollTop;return Yf(i||n).direction==="rtl"&&(s+=lg(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function RF(e){var t=Yf(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Rne(e){return["html","body","#document"].indexOf(Fd(e))>=0?e.ownerDocument.body:Iu(e)&&RF(e)?e:Rne(_R(e))}function T1(e,t){var n;t===void 0&&(t=[]);var r=Rne(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ql(r),a=i?[o].concat(o.visualViewport||[],RF(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(T1(_R(a)))}function iM(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function UCe(e,t){var n=Oy(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 _H(e,t,n){return t===Tne?iM(FCe(e,n)):yg(t)?UCe(t,n):iM(BCe(qh(e)))}function jCe(e){var t=T1(_R(e)),n=["absolute","fixed"].indexOf(Yf(e).position)>=0,r=n&&Iu(e)?qS(e):e;return yg(r)?t.filter(function(i){return yg(i)&&kne(i,r)&&Fd(i)!=="body"}):[]}function zCe(e,t,n,r){var i=t==="clippingParents"?jCe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=_H(e,u,r);return l.top=lg(c.top,l.top),l.right=JC(c.right,l.right),l.bottom=JC(c.bottom,l.bottom),l.left=lg(c.left,l.left),l},_H(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 Ine(e){var t=e.reference,n=e.element,r=e.placement,i=r?Nd(r):null,o=r?Ey(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case ol:l={x:a,y:t.y-n.height};break;case Uu:l={x:a,y:t.y+t.height};break;case ju:l={x:t.x+t.width,y:s};break;case al:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?CF(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case yy:l[u]=l[u]-(t[c]/2-n[c]/2);break;case TE:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function wE(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?lCe:s,u=n.rootBoundary,c=u===void 0?Tne:u,d=n.elementContext,f=d===void 0?uO:d,m=n.altBoundary,g=m===void 0?!1:m,v=n.padding,S=v===void 0?0:v,O=_ne(typeof S!="number"?S:Ane(S,GS)),E=f===uO?uCe:uO,w=e.rects.popper,k=e.elements[g?E:f],A=zCe(yg(k)?k:k.contextElement||qh(e.elements.popper),l,c,a),C=Oy(e.elements.reference),x=Ine({reference:C,element:w,strategy:"absolute",placement:i}),F=iM(Object.assign({},w,x)),M=f===uO?F:C,P={top:A.top-M.top+O.top,bottom:M.bottom-A.bottom+O.bottom,left:A.left-M.left+O.left,right:M.right-A.right+O.right},V=e.modifiersData.offset;if(f===uO&&V){var W=V[i];Object.keys(P).forEach(function(G){var j=[ju,Uu].indexOf(G)>=0?1:-1,z=[ol,Uu].indexOf(G)>=0?"y":"x";P[G]+=W[z]*j})}return P}function VCe(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?wne:l,c=Ey(r),d=c?s?wH:wH.filter(function(g){return Ey(g)===c}):GS,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var m=f.reduce(function(g,v){return g[v]=wE(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[Nd(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function WCe(e){if(Nd(e)===wF)return[];var t=Nk(e);return[CH(e),t,CH(t)]}function HCe(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,f=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,v=n.allowedAutoPlacements,S=t.options.placement,O=Nd(S),E=O===S,w=l||(E||!g?[Nk(S)]:WCe(S)),k=[S].concat(w).reduce(function(le,ve){return le.concat(Nd(ve)===wF?VCe(t,{placement:ve,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:v}):ve)},[]),A=t.rects.reference,C=t.rects.popper,x=new Map,F=!0,M=k[0],P=0;P=0,z=j?"width":"height",X=wE(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),Z=j?G?ju:al:G?Uu:ol;A[z]>C[z]&&(Z=Nk(Z));var q=Nk(Z),te=[];if(o&&te.push(X[W]<=0),s&&te.push(X[Z]<=0,X[q]<=0),te.every(function(le){return le})){M=V,F=!1;break}x.set(V,te)}if(F)for(var Q=g?3:1,se=function(ve){var ue=k.find(function(we){var ke=x.get(we);if(ke)return ke.slice(0,ve).every(function(Ue){return Ue})});if(ue)return M=ue,"break"},he=Q;he>0;he--){var J=se(he);if(J==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const QCe={name:"flip",enabled:!0,phase:"main",fn:HCe,requiresIfExists:["offset"],data:{_skip:!1}};function AH(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 RH(e){return[ol,ju,Uu,al].some(function(t){return e[t]>=0})}function YCe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=wE(t,{elementContext:"reference"}),s=wE(t,{altBoundary:!0}),l=AH(a,r),u=AH(s,i,o),c=RH(l),d=RH(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 GCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YCe};function qCe(e,t,n){var r=Nd(e),i=[al,ol].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,[al,ju].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function ZCe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=wne.reduce(function(c,d){return c[d]=qCe(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 XCe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZCe};function KCe(e){var t=e.state,n=e.name;t.modifiersData[n]=Ine({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const JCe={name:"popperOffsets",enabled:!0,phase:"read",fn:KCe,data:{}};function e_e(e){return e==="x"?"y":"x"}function t_e(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,f=n.tether,m=f===void 0?!0:f,g=n.tetherOffset,v=g===void 0?0:g,S=wE(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),O=Nd(t.placement),E=Ey(t.placement),w=!E,k=CF(O),A=e_e(k),C=t.modifiersData.popperOffsets,x=t.rects.reference,F=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,P=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(C){if(o){var G,j=k==="y"?ol:al,z=k==="y"?Uu:ju,X=k==="y"?"height":"width",Z=C[k],q=Z+S[j],te=Z-S[z],Q=m?-F[X]/2:0,se=E===yy?x[X]:F[X],he=E===yy?-F[X]:-x[X],J=t.elements.arrow,le=m&&J?kF(J):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Cne(),ue=ve[j],we=ve[z],ke=S1(0,x[X],le[X]),Ue=w?x[X]/2-Q-ke-ue-P.mainAxis:se-ke-ue-P.mainAxis,et=w?-x[X]/2+Q+ke+we+P.mainAxis:he+ke+we+P.mainAxis,Me=t.elements.arrow&&qS(t.elements.arrow),qe=Me?k==="y"?Me.clientTop||0:Me.clientLeft||0:0,xe=(G=V==null?void 0:V[k])!=null?G:0,Ze=Z+Ue-xe-qe,Xe=Z+et-xe,it=S1(m?JC(q,Ze):q,Z,m?lg(te,Xe):te);C[k]=it,W[k]=it-Z}if(s){var Ot,tt=k==="x"?ol:al,pe=k==="x"?Uu:ju,oe=C[A],ie=A==="y"?"height":"width",Fe=oe+S[tt],Qe=oe-S[pe],je=[ol,al].indexOf(O)!==-1,fe=(Ot=V==null?void 0:V[A])!=null?Ot:0,Oe=je?Fe:oe-x[ie]-F[ie]-fe+P.altAxis,ye=je?oe+x[ie]+F[ie]-fe-P.altAxis:Qe,Ce=m&&je?xCe(Oe,oe,ye):S1(m?Oe:Fe,oe,m?ye:Qe);C[A]=Ce,W[A]=Ce-oe}t.modifiersData[r]=W}}const n_e={name:"preventOverflow",enabled:!0,phase:"main",fn:t_e,requiresIfExists:["offset"]};function r_e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function i_e(e){return e===ql(e)||!Iu(e)?_F(e):r_e(e)}function o_e(e){var t=e.getBoundingClientRect(),n=vy(t.width)/e.offsetWidth||1,r=vy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function a_e(e,t,n){n===void 0&&(n=!1);var r=Iu(t),i=Iu(t)&&o_e(t),o=qh(t),a=Oy(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Fd(t)!=="body"||RF(o))&&(s=i_e(t)),Iu(t)?(l=Oy(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=AF(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function s_e(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 l_e(e){var t=s_e(e);return vCe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function u_e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function c_e(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 IH={placement:"bottom",modifiers:[],strategy:"absolute"};function DH(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(h_e(i)||document.body)},[i,o]),Ki(()=>{if(a&&!o)return SE(n,a),()=>{SE(n,null)}},[n,a,o]),o){if(L.isValidElement(r)){const u={ref:l};return L.cloneElement(r,u)}return N.jsx(L.Fragment,{children:r})}return N.jsx(L.Fragment,{children:a&&Pg.createPortal(r,a)})}),Nne="Popper";function m_e(e){return Ene(Nne,e)}Jke(Nne,["root"]);const g_e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],b_e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function y_e(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 oM(e){return typeof e=="function"?e():e}function v_e(e){return e.nodeType!==void 0}const O_e=()=>Vt({root:["root"]},pke(m_e)),E_e={},S_e=L.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:m={},slots:g={},TransitionProps:v}=t,S=st(t,g_e),O=L.useRef(null),E=Vn(O,n),w=L.useRef(null),k=Vn(w,f),A=L.useRef(k);Ki(()=>{A.current=k},[k]),L.useImperativeHandle(f,()=>w.current,[]);const C=y_e(c,a),[x,F]=L.useState(C),[M,P]=L.useState(oM(i));L.useEffect(()=>{w.current&&w.current.forceUpdate()}),L.useEffect(()=>{i&&P(oM(i))},[i]),Ki(()=>{if(!M||!u)return;const z=q=>{F(q.placement)};let X=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{z(q)}}];l!=null&&(X=X.concat(l)),d&&d.modifiers!=null&&(X=X.concat(d.modifiers));const Z=p_e(M,O.current,B({placement:C},d,{modifiers:X}));return A.current(Z),()=>{Z.destroy(),A.current(null)}},[M,s,l,u,d,C]);const V={placement:x};v!==null&&(V.TransitionProps=v);const W=O_e(),G=(r=g.root)!=null?r:"div",j=nr({elementType:G,externalSlotProps:m.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:W.root});return N.jsx(G,B({},j,{children:typeof o=="function"?o(V):o}))}),T_e=L.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:f=E_e,popperRef:m,style:g,transition:v=!1,slotProps:S={},slots:O={}}=t,E=st(t,b_e),[w,k]=L.useState(!0),A=()=>{k(!1)},C=()=>{k(!0)};if(!l&&!c&&(!v||w))return null;let x;if(o)x=o;else if(r){const P=oM(r);x=P&&v_e(P)?ci(P).body:ci(null).body}const F=!c&&l&&(!v||w)?"none":void 0,M=v?{in:c,onEnter:A,onExited:C}:void 0;return N.jsx(Dne,{disablePortal:s,container:x,children:N.jsx(S_e,B({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:v?!w:c,placement:d,popperOptions:f,popperRef:m,slotProps:S,slots:O},E,{style:B({position:"fixed",top:0,left:0,display:F},g),TransitionProps:M,children:i}))})});function w_e(e){const t=ci(e);return t.body===e?Bu(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function w1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function NH(e){return parseInt(Bu(e).getComputedStyle(e).paddingRight,10)||0}function x_e(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 PH(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!x_e(a);s&&l&&w1(a,i)})}function iN(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function k_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(w_e(r)){const a=rne(ci(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${NH(r)+a}px`;const s=ci(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${NH(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=ci(r).body;else{const a=r.parentElement,s=Bu(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 C_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class __e{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&&w1(t.modalRef,!1);const i=C_e(n);PH(n,t.mount,t.modalRef,i,!0);const o=iN(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=iN(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=k_e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=iN(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&&w1(t.modalRef,n),PH(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&&w1(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function A_e(e){return typeof e=="function"?e():e}function R_e(e){return e?e.props.hasOwnProperty("in"):!1}const I_e=new __e;function D_e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=I_e,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,f=L.useRef({}),m=L.useRef(null),g=L.useRef(null),v=Vn(g,d),[S,O]=L.useState(!c),E=R_e(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const k=()=>ci(m.current),A=()=>(f.current.modalRef=g.current,f.current.mount=m.current,f.current),C=()=>{i.mount(A(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},x=on(()=>{const X=A_e(t)||k().body;i.add(A(),X),g.current&&C()}),F=L.useCallback(()=>i.isTopModal(A()),[i]),M=on(X=>{m.current=X,X&&(c&&F()?C():g.current&&w1(g.current,w))}),P=L.useCallback(()=>{i.remove(A(),w)},[w,i]);L.useEffect(()=>()=>{P()},[P]),L.useEffect(()=>{c?x():(!E||!o)&&P()},[c,P,E,o,x]);const V=X=>Z=>{var q;(q=X.onKeyDown)==null||q.call(X,Z),!(Z.key!=="Escape"||Z.which===229||!F())&&(n||(Z.stopPropagation(),u&&u(Z,"escapeKeyDown")))},W=X=>Z=>{var q;(q=X.onClick)==null||q.call(X,Z),Z.target===Z.currentTarget&&u&&u(Z,"backdropClick")};return{getRootProps:(X={})=>{const Z=E1(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const q=B({},Z,X);return B({role:"presentation"},q,{onKeyDown:V(q),ref:v})},getBackdropProps:(X={})=>{const Z=X;return B({"aria-hidden":!0},Z,{onClick:W(Z),open:c})},getTransitionProps:()=>{const X=()=>{O(!1),a&&a()},Z=()=>{O(!0),s&&s(),o&&P()};return{onEnter:GC(X,l==null?void 0:l.props.onEnter),onExited:GC(Z,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:M,isTopModal:F,exited:S,hasTransition:E}}const N_e=2;function Pne(e,t){return e-t}function LH(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}%`})}},F_e=e=>e;let cx;function $H(){return cx===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?cx=CSS.supports("touch-action","none"):cx=!0),cx}function B_e(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:f="horizontal",rootRef:m,scale:g=F_e,step:v=1,tabIndex:S,value:O}=e,E=L.useRef(),[w,k]=L.useState(-1),[A,C]=L.useState(-1),[x,F]=L.useState(!1),M=L.useRef(0),[P,V]=ma({controlled:O,default:n??l,name:"Slider"}),W=c&&((fe,Oe,ye)=>{const Ce=fe.nativeEvent||fe,De=new Ce.constructor(Ce.type,Ce);Object.defineProperty(De,"target",{writable:!0,value:{value:Oe,name:u}}),c(De,Oe,ye)}),G=Array.isArray(P);let j=G?P.slice().sort(Pne):[P];j=j.map(fe=>fe==null?l:Pb(fe,l,s));const z=a===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((fe,Oe)=>({value:l+v*Oe})):a||[],X=z.map(fe=>fe.value),{isFocusVisibleRef:Z,onBlur:q,onFocus:te,ref:Q}=fR(),[se,he]=L.useState(-1),J=L.useRef(),le=Vn(Q,J),ve=Vn(m,le),ue=fe=>Oe=>{var ye;const Ce=Number(Oe.currentTarget.getAttribute("data-index"));te(Oe),Z.current===!0&&he(Ce),C(Ce),fe==null||(ye=fe.onFocus)==null||ye.call(fe,Oe)},we=fe=>Oe=>{var ye;q(Oe),Z.current===!1&&he(-1),C(-1),fe==null||(ye=fe.onBlur)==null||ye.call(fe,Oe)};Ki(()=>{if(r&&J.current.contains(document.activeElement)){var fe;(fe=document.activeElement)==null||fe.blur()}},[r]),r&&w!==-1&&k(-1),r&&se!==-1&&he(-1);const ke=fe=>Oe=>{var ye;(ye=fe.onChange)==null||ye.call(fe,Oe);const Ce=Number(Oe.currentTarget.getAttribute("data-index")),De=j[Ce],ft=X.indexOf(De);let _t=Oe.target.valueAsNumber;if(z&&v==null){const At=X[X.length-1];_t>At?_t=At:_t{const{current:ye}=J,{width:Ce,height:De,bottom:ft,left:_t}=ye.getBoundingClientRect();let At;et.indexOf("vertical")===0?At=(ft-fe.y)/De:At=(fe.x-_t)/Ce,et.indexOf("-reverse")!==-1&&(At=1-At);let pt;if(pt=P_e(At,l,s),v)pt=M_e(pt,v,l);else{const ot=LH(X,pt);pt=X[ot]}pt=Pb(pt,l,s);let Mt=0;if(G){Oe?Mt=Ue.current:Mt=LH(j,pt),i&&(pt=Pb(pt,j[Mt-1]||-1/0,j[Mt+1]||1/0));const ot=pt;pt=MH({values:j,newValue:pt,index:Mt}),i&&Oe||(Mt=pt.indexOf(ot),Ue.current=Mt)}return{newValue:pt,activeIndex:Mt}},qe=on(fe=>{const Oe=sx(fe,E);if(!Oe)return;if(M.current+=1,fe.type==="mousemove"&&fe.buttons===0){xe(fe);return}const{newValue:ye,activeIndex:Ce}=Me({finger:Oe,move:!0});lx({sliderRef:J,activeIndex:Ce,setActive:k}),V(ye),!x&&M.current>N_e&&F(!0),W&&!ux(ye,P)&&W(fe,ye,Ce)}),xe=on(fe=>{const Oe=sx(fe,E);if(F(!1),!Oe)return;const{newValue:ye}=Me({finger:Oe,move:!0});k(-1),fe.type==="touchend"&&C(-1),d&&d(fe,ye),E.current=void 0,Xe()}),Ze=on(fe=>{if(r)return;$H()||fe.preventDefault();const Oe=fe.changedTouches[0];Oe!=null&&(E.current=Oe.identifier);const ye=sx(fe,E);if(ye!==!1){const{newValue:De,activeIndex:ft}=Me({finger:ye});lx({sliderRef:J,activeIndex:ft,setActive:k}),V(De),W&&!ux(De,P)&&W(fe,De,ft)}M.current=0;const Ce=ci(J.current);Ce.addEventListener("touchmove",qe,{passive:!0}),Ce.addEventListener("touchend",xe,{passive:!0})}),Xe=L.useCallback(()=>{const fe=ci(J.current);fe.removeEventListener("mousemove",qe),fe.removeEventListener("mouseup",xe),fe.removeEventListener("touchmove",qe),fe.removeEventListener("touchend",xe)},[xe,qe]);L.useEffect(()=>{const{current:fe}=J;return fe.addEventListener("touchstart",Ze,{passive:$H()}),()=>{fe.removeEventListener("touchstart",Ze),Xe()}},[Xe,Ze]),L.useEffect(()=>{r&&Xe()},[r,Xe]);const it=fe=>Oe=>{var ye;if((ye=fe.onMouseDown)==null||ye.call(fe,Oe),r||Oe.defaultPrevented||Oe.button!==0)return;Oe.preventDefault();const Ce=sx(Oe,E);if(Ce!==!1){const{newValue:ft,activeIndex:_t}=Me({finger:Ce});lx({sliderRef:J,activeIndex:_t,setActive:k}),V(ft),W&&!ux(ft,P)&&W(Oe,ft,_t)}M.current=0;const De=ci(J.current);De.addEventListener("mousemove",qe,{passive:!0}),De.addEventListener("mouseup",xe)},Ot=e_(G?j[0]:l,l,s),tt=e_(j[j.length-1],l,s)-Ot,pe=(fe={})=>{const Oe=E1(fe),ye={onMouseDown:it(Oe||{})},Ce=B({},Oe,ye);return B({},fe,{ref:ve},Ce)},oe=fe=>Oe=>{var ye;(ye=fe.onMouseOver)==null||ye.call(fe,Oe);const Ce=Number(Oe.currentTarget.getAttribute("data-index"));C(Ce)},ie=fe=>Oe=>{var ye;(ye=fe.onMouseLeave)==null||ye.call(fe,Oe),C(-1)};return{active:w,axis:et,axisProps:$_e,dragging:x,focusedThumbIndex:se,getHiddenInputProps:(fe={})=>{var Oe;const ye=E1(fe),Ce={onChange:ke(ye||{}),onFocus:ue(ye||{}),onBlur:we(ye||{})},De=B({},ye,Ce);return B({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(s),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Oe=e.step)!=null?Oe:void 0,disabled:r},fe,De,{style:B({},wTe,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:pe,getThumbProps:(fe={})=>{const Oe=E1(fe),ye={onMouseOver:oe(Oe||{}),onMouseLeave:ie(Oe||{})};return B({},fe,Oe,ye)},marks:z,open:A,range:G,rootRef:ve,trackLeap:tt,trackOffset:Ot,values:j,getThumbStyle:fe=>({pointerEvents:w!==-1&&w!==fe?"none":void 0})}}const U_e=["onChange","maxRows","minRows","style","value"];function dx(e){return parseInt(e,10)||0}const j_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function FH(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Lne=L.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=st(t,U_e),{current:u}=L.useRef(s!=null),c=L.useRef(null),d=Vn(n,c),f=L.useRef(null),m=L.useRef(0),[g,v]=L.useState({outerHeightStyle:0}),S=L.useCallback(()=>{const k=c.current,C=Bu(k).getComputedStyle(k);if(C.width==="0px")return{outerHeightStyle:0};const x=f.current;x.style.width=C.width,x.value=k.value||t.placeholder||"x",x.value.slice(-1)===` +`&&(x.value+=" ");const F=C.boxSizing,M=dx(C.paddingBottom)+dx(C.paddingTop),P=dx(C.borderBottomWidth)+dx(C.borderTopWidth),V=x.scrollHeight;x.value="x";const W=x.scrollHeight;let G=V;o&&(G=Math.max(Number(o)*W,G)),i&&(G=Math.min(Number(i)*W,G)),G=Math.max(G,W);const j=G+(F==="border-box"?M+P:0),z=Math.abs(G-V)<=1;return{outerHeightStyle:j,overflow:z}},[i,o,t.placeholder]),O=(k,A)=>{const{outerHeightStyle:C,overflow:x}=A;return m.current<20&&(C>0&&Math.abs((k.outerHeightStyle||0)-C)>1||k.overflow!==x)?(m.current+=1,{overflow:x,outerHeightStyle:C}):k},E=L.useCallback(()=>{const k=S();FH(k)||v(A=>O(A,k))},[S]);Ki(()=>{const k=()=>{const V=S();FH(V)||Pg.flushSync(()=>{v(W=>O(W,V))})},A=()=>{m.current=0,k()};let C;const x=Gy(A),F=c.current,M=Bu(F);M.addEventListener("resize",x);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(A),P.observe(F)),()=>{x.clear(),cancelAnimationFrame(C),M.removeEventListener("resize",x),P&&P.disconnect()}},[S]),Ki(()=>{E()}),L.useEffect(()=>{m.current=0},[s]);const w=k=>{m.current=0,u||E(),r&&r(k)};return N.jsxs(L.Fragment,{children:[N.jsx("textarea",B({value:s,onChange:w,ref:d,rows:o,style:B({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},a)},l)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:B({},j_e.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function BH(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function z_e(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=BH(c));const d=c?s.filter(f=>{let m=(o||u)(f);return n&&(m=m.toLowerCase()),t&&(m=BH(m)),i==="start"?m.indexOf(c)===0:m.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function oN(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 H_e(e){const{unstable_isActiveElementInListbox:t=W_e,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:f=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:v=!1,filterOptions:S=V_e,filterSelectedOptions:O=!1,freeSolo:E=!1,getOptionDisabled:w,getOptionKey:k,getOptionLabel:A=Je=>{var $e;return($e=Je.label)!=null?$e:Je},groupBy:C,handleHomeEndKeys:x=!e.freeSolo,id:F,includeInputInList:M=!1,inputValue:P,isOptionEqualToValue:V=(Je,$e)=>Je===$e,multiple:W=!1,onChange:G,onClose:j,onHighlightChange:z,onInputChange:X,onOpen:Z,open:q,openOnFocus:te=!1,options:Q,readOnly:se=!1,selectOnFocus:he=!e.freeSolo,value:J}=e,le=Ic(F);let ve=A;ve=Je=>{const $e=A(Je);return typeof $e!="string"?String($e):$e};const ue=L.useRef(!1),we=L.useRef(!0),ke=L.useRef(null),Ue=L.useRef(null),[et,Me]=L.useState(null),[qe,xe]=L.useState(-1),Ze=i?0:-1,Xe=L.useRef(Ze),[it,Ot]=ma({controlled:J,default:c,name:u}),[tt,pe]=ma({controlled:P,default:"",name:u,state:"inputValue"}),[oe,ie]=L.useState(!1),Fe=L.useCallback((Je,$e)=>{if(!(W?it.length<$e.length:$e!==null)&&!s)return;let en;if(W)en="";else if($e==null)en="";else{const mn=ve($e);en=typeof mn=="string"?mn:""}tt!==en&&(pe(en),X&&X(Je,en,"reset"))},[ve,tt,W,X,pe,s,it]),[Qe,je]=ma({controlled:q,default:!1,name:u,state:"open"}),[fe,Oe]=L.useState(!0),ye=!W&&it!=null&&tt===ve(it),Ce=Qe&&!se,De=Ce?S(Q.filter(Je=>!(O&&(W?it:[it]).some($e=>$e!==null&&V(Je,$e)))),{inputValue:ye&&fe?"":tt,getOptionLabel:ve}):[],ft=ETe({filteredOptions:De,value:it,inputValue:tt});L.useEffect(()=>{const Je=it!==ft.value;oe&&!Je||E&&!Je||Fe(null,it)},[it,Fe,oe,ft.value,E]);const _t=Qe&&De.length>0&&!se,At=on(Je=>{Je===-1?ke.current.focus():et.querySelector(`[data-tag-index="${Je}"]`).focus()});L.useEffect(()=>{W&&qe>it.length-1&&(xe(-1),At(-1))},[it,W,qe,At]);function pt(Je,$e){if(!Ue.current||Je<0||Je>=De.length)return-1;let Rt=Je;for(;;){const en=Ue.current.querySelector(`[data-option-index="${Rt}"]`),mn=g?!1:!en||en.disabled||en.getAttribute("aria-disabled")==="true";if(en&&en.hasAttribute("tabindex")&&!mn)return Rt;if($e==="next"?Rt=(Rt+1)%De.length:Rt=(Rt-1+De.length)%De.length,Rt===Je)return-1}}const Mt=on(({event:Je,index:$e,reason:Rt="auto"})=>{if(Xe.current=$e,$e===-1?ke.current.removeAttribute("aria-activedescendant"):ke.current.setAttribute("aria-activedescendant",`${le}-option-${$e}`),z&&z(Je,$e===-1?null:De[$e],Rt),!Ue.current)return;const en=Ue.current.querySelector(`[role="option"].${n}-focused`);en&&(en.classList.remove(`${n}-focused`),en.classList.remove(`${n}-focusVisible`));let mn=Ue.current;if(Ue.current.getAttribute("role")!=="listbox"&&(mn=Ue.current.parentElement.querySelector('[role="listbox"]')),!mn)return;if($e===-1){mn.scrollTop=0;return}const er=Ue.current.querySelector(`[data-option-index="${$e}"]`);if(er&&(er.classList.add(`${n}-focused`),Rt==="keyboard"&&er.classList.add(`${n}-focusVisible`),mn.scrollHeight>mn.clientHeight&&Rt!=="mouse"&&Rt!=="touch")){const Zn=er,bn=mn.clientHeight+mn.scrollTop,_n=Zn.offsetTop+Zn.offsetHeight;_n>bn?mn.scrollTop=_n-mn.clientHeight:Zn.offsetTop-Zn.offsetHeight*(C?1.3:0){if(!Ce)return;const er=pt((()=>{const Zn=De.length-1;if($e==="reset")return Ze;if($e==="start")return 0;if($e==="end")return Zn;const bn=Xe.current+$e;return bn<0?bn===-1&&M?-1:v&&Xe.current!==-1||Math.abs($e)>1?0:Zn:bn>Zn?bn===Zn+1&&M?-1:v||Math.abs($e)>1?Zn:0:bn})(),Rt);if(Mt({index:er,reason:en,event:Je}),r&&$e!=="reset")if(er===-1)ke.current.value=tt;else{const Zn=ve(De[er]);ke.current.value=Zn,Zn.toLowerCase().indexOf(tt.toLowerCase())===0&&tt.length>0&&ke.current.setSelectionRange(tt.length,Zn.length)}}),gt=()=>{const Je=($e,Rt)=>{const en=$e?ve($e):"",mn=Rt?ve(Rt):"";return en===mn};if(Xe.current!==-1&&ft.filteredOptions&&ft.filteredOptions.length!==De.length&&ft.inputValue===tt&&(W?it.length===ft.value.length&&ft.value.every(($e,Rt)=>ve(it[Rt])===ve($e)):Je(ft.value,it))){const $e=ft.filteredOptions[Xe.current];if($e&&De.some(en=>ve(en)===ve($e)))return!0}return!1},$t=L.useCallback(()=>{if(!Ce||gt())return;const Je=W?it[0]:it;if(De.length===0||Je==null){ot({diff:"reset"});return}if(Ue.current){if(Je!=null){const $e=De[Xe.current];if(W&&$e&&oN(it,en=>V($e,en))!==-1)return;const Rt=oN(De,en=>V(en,Je));Rt===-1?ot({diff:"reset"}):Mt({index:Rt});return}if(Xe.current>=De.length-1){Mt({index:De.length-1});return}Mt({index:Xe.current})}},[De.length,W?!1:it,O,ot,Mt,Ce,tt,W]),Xt=on(Je=>{SE(Ue,Je),Je&&$t()});L.useEffect(()=>{$t()},[$t]);const vn=Je=>{Qe||(je(!0),Oe(!0),Z&&Z(Je))},Cn=(Je,$e)=>{Qe&&(je(!1),j&&j(Je,$e))},$n=(Je,$e,Rt,en)=>{if(W){if(it.length===$e.length&&it.every((mn,er)=>mn===$e[er]))return}else if(it===$e)return;G&&G(Je,$e,Rt,en),Ot($e)},qn=L.useRef(!1),Ae=(Je,$e,Rt="selectOption",en="options")=>{let mn=Rt,er=$e;if(W){er=Array.isArray(it)?it.slice():[];const Zn=oN(er,bn=>V($e,bn));Zn===-1?er.push($e):en!=="freeSolo"&&(er.splice(Zn,1),mn="removeOption")}Fe(Je,er),$n(Je,er,mn,{option:$e}),!f&&(!Je||!Je.ctrlKey&&!Je.metaKey)&&Cn(Je,mn),(a===!0||a==="touch"&&qn.current||a==="mouse"&&!qn.current)&&ke.current.blur()};function Be(Je,$e){if(Je===-1)return-1;let Rt=Je;for(;;){if($e==="next"&&Rt===it.length||$e==="previous"&&Rt===-1)return-1;const en=et.querySelector(`[data-tag-index="${Rt}"]`);if(!en||!en.hasAttribute("tabindex")||en.disabled||en.getAttribute("aria-disabled")==="true")Rt+=$e==="next"?1:-1;else return Rt}}const rt=(Je,$e)=>{if(!W)return;tt===""&&Cn(Je,"toggleInput");let Rt=qe;qe===-1?tt===""&&$e==="previous"&&(Rt=it.length-1):(Rt+=$e==="next"?1:-1,Rt<0&&(Rt=0),Rt===it.length&&(Rt=-1)),Rt=Be(Rt,$e),xe(Rt),At(Rt)},Ne=Je=>{ue.current=!0,pe(""),X&&X(Je,"","clear"),$n(Je,W?[]:null,"clear")},wt=Je=>$e=>{if(Je.onKeyDown&&Je.onKeyDown($e),!$e.defaultMuiPrevented&&(qe!==-1&&["ArrowLeft","ArrowRight"].indexOf($e.key)===-1&&(xe(-1),At(-1)),$e.which!==229))switch($e.key){case"Home":Ce&&x&&($e.preventDefault(),ot({diff:"start",direction:"next",reason:"keyboard",event:$e}));break;case"End":Ce&&x&&($e.preventDefault(),ot({diff:"end",direction:"previous",reason:"keyboard",event:$e}));break;case"PageUp":$e.preventDefault(),ot({diff:-UH,direction:"previous",reason:"keyboard",event:$e}),vn($e);break;case"PageDown":$e.preventDefault(),ot({diff:UH,direction:"next",reason:"keyboard",event:$e}),vn($e);break;case"ArrowDown":$e.preventDefault(),ot({diff:1,direction:"next",reason:"keyboard",event:$e}),vn($e);break;case"ArrowUp":$e.preventDefault(),ot({diff:-1,direction:"previous",reason:"keyboard",event:$e}),vn($e);break;case"ArrowLeft":rt($e,"previous");break;case"ArrowRight":rt($e,"next");break;case"Enter":if(Xe.current!==-1&&Ce){const Rt=De[Xe.current],en=w?w(Rt):!1;if($e.preventDefault(),en)return;Ae($e,Rt,"selectOption"),r&&ke.current.setSelectionRange(ke.current.value.length,ke.current.value.length)}else E&&tt!==""&&ye===!1&&(W&&$e.preventDefault(),Ae($e,tt,"createOption","freeSolo"));break;case"Escape":Ce?($e.preventDefault(),$e.stopPropagation(),Cn($e,"escape")):l&&(tt!==""||W&&it.length>0)&&($e.preventDefault(),$e.stopPropagation(),Ne($e));break;case"Backspace":if(W&&!se&&tt===""&&it.length>0){const Rt=qe===-1?it.length-1:qe,en=it.slice();en.splice(Rt,1),$n($e,en,"removeOption",{option:it[Rt]})}break;case"Delete":if(W&&!se&&tt===""&&it.length>0&&qe!==-1){const Rt=qe,en=it.slice();en.splice(Rt,1),$n($e,en,"removeOption",{option:it[Rt]})}break}},Gt=Je=>{ie(!0),te&&!ue.current&&vn(Je)},jt=Je=>{if(t(Ue)){ke.current.focus();return}ie(!1),we.current=!0,ue.current=!1,o&&Xe.current!==-1&&Ce?Ae(Je,De[Xe.current],"blur"):o&&E&&tt!==""?Ae(Je,tt,"blur","freeSolo"):s&&Fe(Je,it),Cn(Je,"blur")},qt=Je=>{const $e=Je.target.value;tt!==$e&&(pe($e),Oe(!1),X&&X(Je,$e,"input")),$e===""?!d&&!W&&$n(Je,null,"clear"):vn(Je)},Bt=Je=>{const $e=Number(Je.currentTarget.getAttribute("data-option-index"));Xe.current!==$e&&Mt({event:Je,index:$e,reason:"mouse"})},On=Je=>{Mt({event:Je,index:Number(Je.currentTarget.getAttribute("data-option-index")),reason:"touch"}),qn.current=!0},Ve=Je=>{const $e=Number(Je.currentTarget.getAttribute("data-option-index"));Ae(Je,De[$e],"selectOption"),qn.current=!1},We=Je=>$e=>{const Rt=it.slice();Rt.splice(Je,1),$n($e,Rt,"removeOption",{option:it[Je]})},He=Je=>{Qe?Cn(Je,"toggleInput"):vn(Je)},bt=Je=>{Je.currentTarget.contains(Je.target)&&Je.target.getAttribute("id")!==le&&Je.preventDefault()},Nn=Je=>{Je.currentTarget.contains(Je.target)&&(ke.current.focus(),he&&we.current&&ke.current.selectionEnd-ke.current.selectionStart===0&&ke.current.select(),we.current=!1)},Kt=Je=>{!m&&(tt===""||!Qe)&&He(Je)};let An=E&&tt.length>0;An=An||(W?it.length>0:it!==null);let Kr=De;return C&&(Kr=De.reduce((Je,$e,Rt)=>{const en=C($e);return Je.length>0&&Je[Je.length-1].group===en?Je[Je.length-1].options.push($e):Je.push({key:Rt,index:Rt,group:en,options:[$e]}),Je},[])),m&&oe&&jt(),{getRootProps:(Je={})=>B({"aria-owns":_t?`${le}-listbox`:null},Je,{onKeyDown:wt(Je),onMouseDown:bt,onClick:Nn}),getInputLabelProps:()=>({id:`${le}-label`,htmlFor:le}),getInputProps:()=>({id:le,value:tt,onBlur:jt,onFocus:Gt,onChange:qt,onMouseDown:Kt,"aria-activedescendant":Ce?"":null,"aria-autocomplete":r?"both":"list","aria-controls":_t?`${le}-listbox`:void 0,"aria-expanded":_t,autoComplete:"off",ref:ke,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:He}),getTagProps:({index:Je})=>B({key:Je,"data-tag-index":Je,tabIndex:-1},!se&&{onDelete:We(Je)}),getListboxProps:()=>({role:"listbox",id:`${le}-listbox`,"aria-labelledby":`${le}-label`,ref:Xt,onMouseDown:Je=>{Je.preventDefault()}}),getOptionProps:({index:Je,option:$e})=>{var Rt;const en=(W?it:[it]).some(er=>er!=null&&V($e,er)),mn=w?w($e):!1;return{key:(Rt=k==null?void 0:k($e))!=null?Rt:ve($e),tabIndex:-1,role:"option",id:`${le}-option-${Je}`,onMouseMove:Bt,onClick:Ve,onTouchStart:On,"data-option-index":Je,"aria-disabled":mn,"aria-selected":en}},id:le,inputValue:tt,value:it,dirty:An,expanded:Ce&&et,popupOpen:Ce,focused:oe||qe!==-1,anchorEl:et,setAnchorEl:Me,focusedTag:qe,groupedOptions:Kr}}const Q_e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Y_e=Ie(T_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),G_e=L.forwardRef(function(t,n){var r;const i=ER(),o=Nt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:m,open:g,placement:v,popperOptions:S,popperRef:O,transition:E,slots:w,slotProps:k}=o,A=st(o,Q_e),C=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,x=B({anchorEl:a,container:c,disablePortal:d,keepMounted:f,modifiers:m,open:g,placement:v,popperOptions:S,popperRef:O,transition:E},A);return N.jsx(Y_e,B({as:s,direction:i==null?void 0:i.direction,slots:{root:C},slotProps:k??u},x,{ref:n}))}),Zy=G_e;function q_e(e){return Qt("MuiListSubheader",e)}Yt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Z_e=["className","color","component","disableGutters","disableSticky","inset"],X_e=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${mt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Vt(a,q_e,t)},K_e=Ie("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${mt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>B({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})),Mne=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=st(r,Z_e),d=B({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),f=X_e(d);return N.jsx(K_e,B({as:a,className:dt(f.root,i),ref:n,ownerState:d},c))});Mne.muiSkipListHighlight=!0;const J_e=Mne,eAe=Po(N.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function tAe(e){return Qt("MuiChip",e)}const nAe=Yt("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"]),Br=nAe,rAe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],iAe=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${mt(r)}`,`color${mt(i)}`,s&&"clickable",s&&`clickableColor${mt(i)}`,a&&"deletable",a&&`deletableColor${mt(i)}`,`${l}${mt(i)}`],label:["label",`label${mt(r)}`],avatar:["avatar",`avatar${mt(r)}`,`avatarColor${mt(i)}`],icon:["icon",`icon${mt(r)}`,`iconColor${mt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${mt(r)}`,`deleteIconColor${mt(i)}`,`deleteIcon${mt(l)}Color${mt(i)}`]};return Vt(u,tAe,t)},oAe=Ie("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[{[`& .${Br.avatar}`]:t.avatar},{[`& .${Br.avatar}`]:t[`avatar${mt(s)}`]},{[`& .${Br.avatar}`]:t[`avatarColor${mt(r)}`]},{[`& .${Br.icon}`]:t.icon},{[`& .${Br.icon}`]:t[`icon${mt(s)}`]},{[`& .${Br.icon}`]:t[`iconColor${mt(i)}`]},{[`& .${Br.deleteIcon}`]:t.deleteIcon},{[`& .${Br.deleteIcon}`]:t[`deleteIcon${mt(s)}`]},{[`& .${Br.deleteIcon}`]:t[`deleteIconColor${mt(r)}`]},{[`& .${Br.deleteIcon}`]:t[`deleteIcon${mt(l)}Color${mt(r)}`]},t.root,t[`size${mt(s)}`],t[`color${mt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${mt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${mt(r)}`],t[l],t[`${l}${mt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return B({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",[`&.${Br.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Br.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Br.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Br.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Br.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Br.icon}`]:B({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&B({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Br.deleteIcon}`]:B({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:In(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:In(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:In(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Br.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Br.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>B({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Br.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Br.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>B({},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]}`,[`&.${Br.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Br.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Br.avatar}`]:{marginLeft:4},[`& .${Br.avatarSmall}`]:{marginLeft:2},[`& .${Br.icon}`]:{marginLeft:4},[`& .${Br.iconSmall}`]:{marginLeft:2},[`& .${Br.deleteIcon}`]:{marginRight:5},[`& .${Br.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:In(e.palette[t.color].main,.7)}`,[`&.${Br.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Br.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Br.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:In(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),aAe=Ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${mt(r)}`]]}})(({ownerState:e})=>B({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 jH(e){return e.key==="Backspace"||e.key==="Delete"}const sAe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:m,onDelete:g,onKeyDown:v,onKeyUp:S,size:O="medium",variant:E="filled",tabIndex:w,skipFocusWhenDisabled:k=!1}=r,A=st(r,rAe),C=L.useRef(null),x=Vn(C,n),F=te=>{te.stopPropagation(),g&&g(te)},M=te=>{te.currentTarget===te.target&&jH(te)&&te.preventDefault(),v&&v(te)},P=te=>{te.currentTarget===te.target&&(g&&jH(te)?g(te):te.key==="Escape"&&C.current&&C.current.blur()),S&&S(te)},V=a!==!1&&m?!0:a,W=V||g?Gl:l||"div",G=B({},r,{component:W,disabled:c,size:O,color:s,iconColor:L.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:V,variant:E}),j=iAe(G),z=W===Gl?B({component:l||"div",focusVisibleClassName:j.focusVisible},g&&{disableRipple:!0}):{};let X=null;g&&(X=u&&L.isValidElement(u)?L.cloneElement(u,{className:dt(u.props.className,j.deleteIcon),onClick:F}):N.jsx(eAe,{className:dt(j.deleteIcon),onClick:F}));let Z=null;i&&L.isValidElement(i)&&(Z=L.cloneElement(i,{className:dt(j.avatar,i.props.className)}));let q=null;return d&&L.isValidElement(d)&&(q=L.cloneElement(d,{className:dt(j.icon,d.props.className)})),N.jsxs(oAe,B({as:W,className:dt(j.root,o),disabled:V&&c?!0:void 0,onClick:m,onKeyDown:M,onKeyUp:P,ref:x,tabIndex:k&&c?-1:w,ownerState:G},z,A,{children:[Z||q,N.jsx(aAe,{className:dt(j.label),ownerState:G,children:f}),X]}))}),IF=sAe;function Zh({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 lAe=L.createContext(void 0),AR=lAe;function jd(){return L.useContext(AR)}function $ne(e){return N.jsx(wwe,B({},e,{defaultTheme:kR,themeId:mg}))}function zH(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function t_(e,t=!1){return e&&(zH(e.value)&&e.value!==""||t&&zH(e.defaultValue)&&e.defaultValue!=="")}function uAe(e){return e.startAdornment}function cAe(e){return Qt("MuiInputBase",e)}const dAe=Yt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Dl=dAe,fAe=["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"],RR=(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${mt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},IR=(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]},pAe=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:f,startAdornment:m,type:g}=e,v={root:["root",`color${mt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${mt(f)}`,c&&"multiline",m&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Vt(v,cAe,t)},DR=Ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:RR})(({theme:e,ownerState:t})=>B({},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",[`&.${Dl.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&B({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),NR=Ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:IR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=B({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 B({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] + .${Dl.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},[`&.${Dl.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"})}),hAe=N.jsx($ne,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),mAe=L.forwardRef(function(t,n){var r;const i=Nt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:m,endAdornment:g,fullWidth:v=!1,id:S,inputComponent:O="input",inputProps:E={},inputRef:w,maxRows:k,minRows:A,multiline:C=!1,name:x,onBlur:F,onChange:M,onClick:P,onFocus:V,onKeyDown:W,onKeyUp:G,placeholder:j,readOnly:z,renderSuffix:X,rows:Z,slotProps:q={},slots:te={},startAdornment:Q,type:se="text",value:he}=i,J=st(i,fAe),le=E.value!=null?E.value:he,{current:ve}=L.useRef(le!=null),ue=L.useRef(),we=L.useCallback(Ce=>{},[]),ke=Vn(ue,w,E.ref,we),[Ue,et]=L.useState(!1),Me=jd(),qe=Zh({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});qe.focused=Me?Me.focused:Ue,L.useEffect(()=>{!Me&&f&&Ue&&(et(!1),F&&F())},[Me,f,Ue,F]);const xe=Me&&Me.onFilled,Ze=Me&&Me.onEmpty,Xe=L.useCallback(Ce=>{t_(Ce)?xe&&xe():Ze&&Ze()},[xe,Ze]);Ki(()=>{ve&&Xe({value:le})},[le,Xe,ve]);const it=Ce=>{if(qe.disabled){Ce.stopPropagation();return}V&&V(Ce),E.onFocus&&E.onFocus(Ce),Me&&Me.onFocus?Me.onFocus(Ce):et(!0)},Ot=Ce=>{F&&F(Ce),E.onBlur&&E.onBlur(Ce),Me&&Me.onBlur?Me.onBlur(Ce):et(!1)},tt=(Ce,...De)=>{if(!ve){const ft=Ce.target||ue.current;if(ft==null)throw new Error(Dh(1));Xe({value:ft.value})}E.onChange&&E.onChange(Ce,...De),M&&M(Ce,...De)};L.useEffect(()=>{Xe(ue.current)},[]);const pe=Ce=>{ue.current&&Ce.currentTarget===Ce.target&&ue.current.focus(),P&&P(Ce)};let oe=O,ie=E;C&&oe==="input"&&(Z?ie=B({type:void 0,minRows:Z,maxRows:Z},ie):ie=B({type:void 0,maxRows:k,minRows:A},ie),oe=Lne);const Fe=Ce=>{Xe(Ce.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};L.useEffect(()=>{Me&&Me.setAdornedStart(!!Q)},[Me,Q]);const Qe=B({},i,{color:qe.color||"primary",disabled:qe.disabled,endAdornment:g,error:qe.error,focused:qe.focused,formControl:Me,fullWidth:v,hiddenLabel:qe.hiddenLabel,multiline:C,size:qe.size,startAdornment:Q,type:se}),je=pAe(Qe),fe=te.root||u.Root||DR,Oe=q.root||c.root||{},ye=te.input||u.Input||NR;return ie=B({},ie,(r=q.input)!=null?r:c.input),N.jsxs(L.Fragment,{children:[!m&&hAe,N.jsxs(fe,B({},Oe,!Dd(fe)&&{ownerState:B({},Qe,Oe.ownerState)},{ref:n,onClick:pe},J,{className:dt(je.root,Oe.className,l,z&&"MuiInputBase-readOnly"),children:[Q,N.jsx(AR.Provider,{value:null,children:N.jsx(ye,B({ownerState:Qe,"aria-invalid":qe.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:qe.disabled,id:S,onAnimationStart:Fe,name:x,placeholder:j,readOnly:z,required:qe.required,rows:Z,value:le,onKeyDown:W,onKeyUp:G,type:se},ie,!Dd(ye)&&{as:oe,ownerState:B({},Qe,ie.ownerState)},{ref:ke,className:dt(je.input,ie.className,z&&"MuiInputBase-readOnly"),onBlur:Ot,onChange:tt,onFocus:it}))}),g,X?X(B({},qe,{startAdornment:Q})):null]}))]})}),DF=mAe;function gAe(e){return Qt("MuiInput",e)}const bAe=B({},Dl,Yt("MuiInput",["root","underline","input"])),Qp=bAe;function yAe(e){return Qt("MuiOutlinedInput",e)}const vAe=B({},Dl,Yt("MuiOutlinedInput",["root","notchedOutline","input"])),ad=vAe;function OAe(e){return Qt("MuiFilledInput",e)}const EAe=B({},Dl,Yt("MuiFilledInput",["root","underline","input"])),Nl=EAe,Fne=Po(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function SAe(e){return Qt("MuiAutocomplete",e)}const TAe=Yt("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"]),vr=TAe;var VH,WH;const wAe=["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"],xAe=["ref"],kAe=["key"],CAe=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${mt(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 Vt(d,SAe,t)},_Ae=Ie("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${vr.tag}`]:t.tag},{[`& .${vr.tag}`]:t[`tagSize${mt(s)}`]},{[`& .${vr.inputRoot}`]:t.inputRoot},{[`& .${vr.input}`]:t.input},{[`& .${vr.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>B({[`&.${vr.focused} .${vr.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${vr.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${vr.tag}`]:B({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${vr.inputRoot}`]:{flexWrap:"wrap",[`.${vr.hasPopupIcon}&, .${vr.hasClearIcon}&`]:{paddingRight:30},[`.${vr.hasPopupIcon}.${vr.hasClearIcon}&`]:{paddingRight:56},[`& .${vr.input}`]:{width:0,minWidth:30}},[`& .${Qp.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qp.root}.${Dl.sizeSmall}`]:{[`& .${Qp.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ad.root}`]:{padding:9,[`.${vr.hasPopupIcon}&, .${vr.hasClearIcon}&`]:{paddingRight:39},[`.${vr.hasPopupIcon}.${vr.hasClearIcon}&`]:{paddingRight:65},[`& .${vr.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${vr.endAdornment}`]:{right:9}},[`& .${ad.root}.${Dl.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${vr.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Nl.root}`]:{paddingTop:19,paddingLeft:8,[`.${vr.hasPopupIcon}&, .${vr.hasClearIcon}&`]:{paddingRight:39},[`.${vr.hasPopupIcon}.${vr.hasClearIcon}&`]:{paddingRight:65},[`& .${Nl.input}`]:{padding:"7px 4px"},[`& .${vr.endAdornment}`]:{right:9}},[`& .${Nl.root}.${Dl.sizeSmall}`]:{paddingBottom:1,[`& .${Nl.input}`]:{padding:"2.5px 4px"}},[`& .${Dl.hiddenLabel}`]:{paddingTop:8},[`& .${Nl.root}.${Dl.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${vr.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Nl.root}.${Dl.hiddenLabel}.${Dl.sizeSmall}`]:{[`& .${vr.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${vr.input}`]:B({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),AAe=Ie("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),RAe=Ie(Xo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),IAe=Ie(Xo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>B({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>B({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),DAe=Ie(Zy,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vr.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>B({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),NAe=Ie(ja,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>B({},e.typography.body1,{overflow:"auto"})),PAe=Ie("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),LAe=Ie("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),MAe=Ie("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",[`& .${vr.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"},[`&.${vr.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"},[`&.${vr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${vr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),$Ae=Ie(J_e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),FAe=Ie("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${vr.option}`]:{paddingLeft:24}}),BAe=L.forwardRef(function(t,n){var r,i,o,a;const s=Nt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:f,className:m,clearIcon:g=VH||(VH=N.jsx(Fke,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:S=!1,clearText:O="Clear",closeText:E="Close",componentsProps:w={},defaultValue:k=s.multiple?[]:null,disableClearable:A=!1,disableCloseOnSelect:C=!1,disabled:x=!1,disabledItemsFocusable:F=!1,disableListWrap:M=!1,disablePortal:P=!1,filterSelectedOptions:V=!1,forcePopupIcon:W="auto",freeSolo:G=!1,fullWidth:j=!1,getLimitTagsText:z=$e=>`+${$e}`,getOptionLabel:X,groupBy:Z,handleHomeEndKeys:q=!s.freeSolo,includeInputInList:te=!1,limitTags:Q=-1,ListboxComponent:se="ul",ListboxProps:he,loading:J=!1,loadingText:le="Loading…",multiple:ve=!1,noOptionsText:ue="No options",openOnFocus:we=!1,openText:ke="Open",PaperComponent:Ue=ja,PopperComponent:et=Zy,popupIcon:Me=WH||(WH=N.jsx(Fne,{})),readOnly:qe=!1,renderGroup:xe,renderInput:Ze,renderOption:Xe,renderTags:it,selectOnFocus:Ot=!s.freeSolo,size:tt="medium",slotProps:pe={}}=s,oe=st(s,wAe),{getRootProps:ie,getInputProps:Fe,getInputLabelProps:Qe,getPopupIndicatorProps:je,getClearProps:fe,getTagProps:Oe,getListboxProps:ye,getOptionProps:Ce,value:De,dirty:ft,expanded:_t,id:At,popupOpen:pt,focused:Mt,focusedTag:ot,anchorEl:gt,setAnchorEl:$t,inputValue:Xt,groupedOptions:vn}=H_e(B({},s,{componentName:"Autocomplete"})),Cn=!A&&!x&&ft&&!qe,$n=(!G||W===!0)&&W!==!1,{onMouseDown:qn}=Fe(),{ref:Ae}=he??{},Be=ye(),{ref:rt}=Be,Ne=st(Be,xAe),wt=Vn(rt,Ae),jt=X||($e=>{var Rt;return(Rt=$e.label)!=null?Rt:$e}),qt=B({},s,{disablePortal:P,expanded:_t,focused:Mt,fullWidth:j,getOptionLabel:jt,hasClearIcon:Cn,hasPopupIcon:$n,inputFocused:ot===-1,popupOpen:pt,size:tt}),Bt=CAe(qt);let On;if(ve&&De.length>0){const $e=Rt=>B({className:Bt.tag,disabled:x},Oe(Rt));it?On=it(De,$e,qt):On=De.map((Rt,en)=>N.jsx(IF,B({label:jt(Rt),size:tt},$e({index:en}),f)))}if(Q>-1&&Array.isArray(On)){const $e=On.length-Q;!Mt&&$e>0&&(On=On.splice(0,Q),On.push(N.jsx("span",{className:Bt.tag,children:z($e)},On.length)))}const We=xe||($e=>N.jsxs("li",{children:[N.jsx($Ae,{className:Bt.groupLabel,ownerState:qt,component:"div",children:$e.group}),N.jsx(FAe,{className:Bt.groupUl,ownerState:qt,children:$e.children})]},$e.key)),bt=Xe||(($e,Rt)=>{const{key:en}=$e,mn=st($e,kAe);return N.jsx("li",B({},mn,{children:jt(Rt)}),en)}),Nn=($e,Rt)=>{const en=Ce({option:$e,index:Rt});return bt(B({},en,{className:Bt.option}),$e,{selected:en["aria-selected"],index:Rt,inputValue:Xt},qt)},Kt=(r=pe.clearIndicator)!=null?r:w.clearIndicator,An=(i=pe.paper)!=null?i:w.paper,Kr=(o=pe.popper)!=null?o:w.popper,Je=(a=pe.popupIndicator)!=null?a:w.popupIndicator;return N.jsxs(L.Fragment,{children:[N.jsx(_Ae,B({ref:n,className:dt(Bt.root,m),ownerState:qt},ie(oe),{children:Ze({id:At,disabled:x,fullWidth:!0,size:tt==="small"?"small":void 0,InputLabelProps:Qe(),InputProps:B({ref:$t,className:Bt.inputRoot,startAdornment:On,onClick:$e=>{$e.target===$e.currentTarget&&qn($e)}},(Cn||$n)&&{endAdornment:N.jsxs(AAe,{className:Bt.endAdornment,ownerState:qt,children:[Cn?N.jsx(RAe,B({},fe(),{"aria-label":O,title:O,ownerState:qt},Kt,{className:dt(Bt.clearIndicator,Kt==null?void 0:Kt.className),children:g})):null,$n?N.jsx(IAe,B({},je(),{disabled:x,"aria-label":pt?E:ke,title:pt?E:ke,ownerState:qt},Je,{className:dt(Bt.popupIndicator,Je==null?void 0:Je.className),children:Me})):null]})}),inputProps:B({className:Bt.input,disabled:x,readOnly:qe},Fe())})})),gt?N.jsx(DAe,B({as:et,disablePortal:P,style:{width:gt?gt.clientWidth:null},ownerState:qt,role:"presentation",anchorEl:gt,open:pt},Kr,{className:dt(Bt.popper,Kr==null?void 0:Kr.className),children:N.jsxs(NAe,B({ownerState:qt,as:Ue},An,{className:dt(Bt.paper,An==null?void 0:An.className),children:[J&&vn.length===0?N.jsx(PAe,{className:Bt.loading,ownerState:qt,children:le}):null,vn.length===0&&!G&&!J?N.jsx(LAe,{className:Bt.noOptions,ownerState:qt,role:"presentation",onMouseDown:$e=>{$e.preventDefault()},children:ue}):null,vn.length>0?N.jsx(MAe,B({as:se,className:Bt.listbox,ownerState:qt},Ne,he,{ref:wt,children:vn.map(($e,Rt)=>Z?We({key:$e.key,group:$e.group,children:$e.options.map((en,mn)=>Nn(en,$e.index+mn))}):Nn($e,Rt))})):null]}))})):null]})}),UAe=BAe,jAe=Po(N.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function zAe(e){return Qt("MuiAvatar",e)}const VAe=Yt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),WAe=VAe,HAe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],QAe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Vt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},zAe,t)},YAe=Ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:B({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:B({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),GAe=Ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qAe=Ie(jAe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function ZAe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=L.useState(!1);return L.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 XAe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:f="circular"}=r,m=st(r,HAe);let g=null;const v=ZAe(B({},l,{src:c,srcSet:d})),S=c||d,O=S&&v!=="error",E=B({},r,{colorDefault:!O,component:s,variant:f}),w=QAe(E);return O?g=N.jsx(GAe,B({alt:i,srcSet:d,src:c,sizes:u,ownerState:E,className:w.img},l)):o!=null&&o!==""&&typeof o!="boolean"?g=o:S&&i?g=i[0]:g=N.jsx(qAe,{ownerState:E,className:w.fallback}),N.jsx(YAe,B({as:s,ownerState:E,className:dt(w.root,a),ref:n},m,{children:g}))}),PR=XAe;function KAe(e){return Qt("MuiAvatarGroup",e)}const JAe=Yt("MuiAvatarGroup",["root","avatar"]),eRe=JAe,tRe=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],HH={small:-16,medium:null},nRe=e=>{const{classes:t}=e;return Vt({root:["root"],avatar:["avatar"]},KAe,t)},rRe=Ie("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>B({[`& .${eRe.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&HH[t.spacing]!==void 0?HH[t.spacing]:-t.spacing;return{[`& .${WAe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),iRe=L.forwardRef(function(t,n){var r;const i=Nt({props:t,name:"MuiAvatarGroup"}),{children:o,className:a,component:s="div",componentsProps:l={},max:u=5,renderSurplus:c,slotProps:d={},spacing:f="medium",total:m,variant:g="circular"}=i,v=st(i,tRe);let S=u<2?2:u;const O=B({},i,{max:u,spacing:f,component:s,variant:g}),E=nRe(O),w=L.Children.toArray(o).filter(M=>L.isValidElement(M)),k=m||w.length;k===S&&(S+=1),S=Math.min(k+1,S);const A=Math.min(w.length,S-1),C=Math.max(k-S,k-A,0),x=c?c(C):`+${C}`,F=(r=d.additionalAvatar)!=null?r:l.additionalAvatar;return N.jsxs(rRe,B({as:s,ownerState:O,className:dt(E.root,a),ref:n},v,{children:[C?N.jsx(PR,B({variant:g},F,{className:dt(E.avatar,F==null?void 0:F.className),children:x})):null,w.slice(0,A).reverse().map(M=>L.cloneElement(M,{className:dt(M.props.className,E.avatar),variant:M.props.variant||g}))]}))}),oRe=iRe,aRe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sRe={entering:{opacity:1},entered:{opacity:1}},lRe=L.forwardRef(function(t,n){const r=Di(),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:f,onExit:m,onExited:g,onExiting:v,style:S,timeout:O=i,TransitionComponent:E=YS}=t,w=st(t,aRe),k=L.useRef(null),A=Vn(k,s.ref,n),C=j=>z=>{if(j){const X=k.current;z===void 0?j(X):j(X,z)}},x=C(f),F=C((j,z)=>{TF(j);const X=Ph({style:S,timeout:O,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",X),j.style.transition=r.transitions.create("opacity",X),c&&c(j,z)}),M=C(d),P=C(v),V=C(j=>{const z=Ph({style:S,timeout:O,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",z),j.style.transition=r.transitions.create("opacity",z),m&&m(j)}),W=C(g),G=j=>{o&&o(k.current,j)};return N.jsx(E,B({appear:a,in:u,nodeRef:k,onEnter:F,onEntered:M,onEntering:x,onExit:V,onExited:W,onExiting:P,addEndListener:G,timeout:O},w,{children:(j,z)=>L.cloneElement(s,B({style:B({opacity:0,visibility:j==="exited"&&!u?"hidden":void 0},sRe[j],S,s.props.style),ref:A},z))}))}),Gf=lRe;function uRe(e){return Qt("MuiBackdrop",e)}Yt("MuiBackdrop",["root","invisible"]);const cRe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],dRe=e=>{const{classes:t,invisible:n}=e;return Vt({root:["root",n&&"invisible"]},uRe,t)},fRe=Ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>B({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"})),pRe=L.forwardRef(function(t,n){var r,i,o;const a=Nt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:S=Gf,transitionDuration:O}=a,E=st(a,cRe),w=B({},a,{component:u,invisible:f}),k=dRe(w),A=(r=g.root)!=null?r:d.root;return N.jsx(S,B({in:m,timeout:O},E,{children:N.jsx(fRe,B({"aria-hidden":!0},A,{as:(i=(o=v.root)!=null?o:c.Root)!=null?i:u,className:dt(k.root,l,A==null?void 0:A.className),ownerState:B({},w,A==null?void 0:A.ownerState),classes:k,ref:n,children:s}))}))}),ZS=pRe,hRe=Yt("MuiBox",["root"]),mRe=hRe,gRe=gF(),bRe=_we({themeId:mg,defaultTheme:gRe,defaultClassName:mRe.root,generateClassName:lF.generate}),Zo=bRe;function yRe(e){return Qt("MuiButton",e)}const vRe=Yt("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"]),fx=vRe,ORe=L.createContext({}),ERe=ORe,SRe=L.createContext(void 0),TRe=SRe,wRe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],xRe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${mt(t)}`,`size${mt(i)}`,`${o}Size${mt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${mt(i)}`],endIcon:["endIcon",`iconSize${mt(i)}`]},l=Vt(s,yRe,a);return B({},a,l)},Bne=e=>B({},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}}),kRe=Ie(Gl,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${mt(n.color)}`],t[`size${mt(n.size)}`],t[`${n.variant}Size${mt(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 B({},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":B({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg: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":B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fx.focusVisible}`]:B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fx.disabled}`]:B({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${In(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fx.disabled}`]:{boxShadow:"none"}}),CRe=Ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${mt(n.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Bne(e))),_Re=Ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${mt(n.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Bne(e))),ARe=L.forwardRef(function(t,n){const r=L.useContext(ERe),i=L.useContext(TRe),o=pR(r,t),a=Nt({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:S=!1,size:O="medium",startIcon:E,type:w,variant:k="text"}=a,A=st(a,wRe),C=B({},a,{color:l,component:u,disabled:d,disableElevation:f,disableFocusRipple:m,fullWidth:S,size:O,type:w,variant:k}),x=xRe(C),F=E&&N.jsx(CRe,{className:x.startIcon,ownerState:C,children:E}),M=g&&N.jsx(_Re,{className:x.endIcon,ownerState:C,children:g}),P=i||"";return N.jsxs(kRe,B({ownerState:C,className:dt(r.className,x.root,c,P),component:u,disabled:d,focusRipple:!m,focusVisibleClassName:dt(x.focusVisible,v),ref:n,type:w},A,{classes:x,children:[F,s,M]}))}),Ma=ARe;function RRe(e){return Qt("MuiCard",e)}Yt("MuiCard",["root"]);const IRe=["className","raised"],DRe=e=>{const{classes:t}=e;return Vt({root:["root"]},RRe,t)},NRe=Ie(ja,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),PRe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=st(r,IRe),s=B({},r,{raised:o}),l=DRe(s);return N.jsx(NRe,B({className:dt(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),NF=PRe;function LRe(e){return Qt("MuiCardActionArea",e)}const MRe=Yt("MuiCardActionArea",["root","focusVisible","focusHighlight"]),aN=MRe,$Re=["children","className","focusVisibleClassName"],FRe=e=>{const{classes:t}=e;return Vt({root:["root"],focusHighlight:["focusHighlight"]},LRe,t)},BRe=Ie(Gl,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${aN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${aN.focusVisible} .${aN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),URe=Ie("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})})),jRe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=st(r,$Re),l=r,u=FRe(l);return N.jsxs(BRe,B({className:dt(u.root,o),focusVisibleClassName:dt(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,N.jsx(URe,{className:u.focusHighlight,ownerState:l})]}))}),Une=jRe;function zRe(e){return Qt("MuiCardContent",e)}Yt("MuiCardContent",["root"]);const VRe=["className","component"],WRe=e=>{const{classes:t}=e;return Vt({root:["root"]},zRe,t)},HRe=Ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),QRe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=st(r,VRe),s=B({},r,{component:o}),l=WRe(s);return N.jsx(HRe,B({as:o,className:dt(l.root,i),ownerState:s,ref:n},a))}),YRe=QRe;function GRe(e){return Qt("PrivateSwitchBase",e)}Yt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qRe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ZRe=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${mt(i)}`],input:["input"]};return Vt(o,GRe,t)},XRe=Ie(Gl)(({ownerState:e})=>B({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),KRe=Ie("input",{shouldForwardProp:ya})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),JRe=L.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:f,inputProps:m,inputRef:g,name:v,onBlur:S,onChange:O,onFocus:E,readOnly:w,required:k=!1,tabIndex:A,type:C,value:x}=t,F=st(t,qRe),[M,P]=ma({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),V=jd(),W=te=>{E&&E(te),V&&V.onFocus&&V.onFocus(te)},G=te=>{S&&S(te),V&&V.onBlur&&V.onBlur(te)},j=te=>{if(te.nativeEvent.defaultPrevented)return;const Q=te.target.checked;P(Q),O&&O(te,Q)};let z=l;V&&typeof z>"u"&&(z=V.disabled);const X=C==="checkbox"||C==="radio",Z=B({},t,{checked:M,disabled:z,disableFocusRipple:u,edge:c}),q=ZRe(Z);return N.jsxs(XRe,B({component:"span",className:dt(q.root,a),centerRipple:!0,focusRipple:!u,disabled:z,tabIndex:null,role:void 0,onFocus:W,onBlur:G,ownerState:Z,ref:n},F,{children:[N.jsx(KRe,B({autoFocus:r,checked:i,defaultChecked:s,className:q.input,disabled:z,id:X?f:void 0,name:v,onChange:j,readOnly:w,ref:g,required:k,ownerState:Z,tabIndex:A,type:C},C==="checkbox"&&x===void 0?{}:{value:x},m)),M?o:d]}))}),PF=JRe,eIe=Po(N.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),tIe=Po(N.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),nIe=Po(N.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function rIe(e){return Qt("MuiCheckbox",e)}const iIe=Yt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sN=iIe,oIe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],aIe=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${mt(r)}`,`size${mt(i)}`]},a=Vt(o,rIe,t);return B({},t,a)},sIe=Ie(PF,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${mt(n.size)}`],n.color!=="default"&&t[`color${mt(n.color)}`]]}})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sN.checked}, &.${sN.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sN.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),lIe=N.jsx(tIe,{}),uIe=N.jsx(eIe,{}),cIe=N.jsx(nIe,{}),dIe=L.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=lIe,color:s="primary",icon:l=uIe,indeterminate:u=!1,indeterminateIcon:c=cIe,inputProps:d,size:f="medium",className:m}=o,g=st(o,oIe),v=u?c:l,S=u?c:a,O=B({},o,{color:s,indeterminate:u,size:f}),E=aIe(O);return N.jsx(sIe,B({type:"checkbox",inputProps:B({"data-indeterminate":u},d),icon:L.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:f}),checkedIcon:L.cloneElement(S,{fontSize:(i=S.props.fontSize)!=null?i:f}),ownerState:O,ref:n,className:dt(E.root,m)},g,{classes:E}))}),LR=dIe;function fIe(e){return Qt("MuiCircularProgress",e)}Yt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const pIe=["className","color","disableShrink","size","style","thickness","value","variant"];let MR=e=>e,QH,YH,GH,qH;const Rp=44,hIe=zS(QH||(QH=MR` 0% { transform: rotate(0deg); } @@ -134,7 +134,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),bRe=VS(ZW||(ZW=F2` +`)),mIe=zS(YH||(YH=MR` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -149,11 +149,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),yRe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${gt(r)}`],svg:["svg"],circle:["circle",`circle${gt(n)}`,i&&"circleDisableShrink"]};return Vt(o,hRe,t)},vRe=Ae("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${gt(n.color)}`]]}})(({ownerState:e,theme:t})=>B({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"&&a$(XW||(XW=F2` +`)),gIe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${mt(r)}`],svg:["svg"],circle:["circle",`circle${mt(n)}`,i&&"circleDisableShrink"]};return Vt(o,fIe,t)},bIe=Ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${mt(n.color)}`]]}})(({ownerState:e,theme:t})=>B({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"&&oF(GH||(GH=MR` animation: ${0} 1.4s linear infinite; - `),gRe)),ORe=Ae("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ERe=Ae("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${gt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>B({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&&a$(KW||(KW=F2` + `),hIe)),yIe=Ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),vIe=Ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${mt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>B({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&&oF(qH||(qH=MR` animation: ${0} 1.4s ease-in-out infinite; - `),bRe)),SRe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,p=st(r,mRe),m=B({},r,{color:o,disableShrink:s,size:a,thickness:u,value:c,variant:d}),g=yRe(m),v={},E={},O={};if(d==="determinate"){const S=2*Math.PI*((Rp-u)/2);v.strokeDasharray=S.toFixed(3),O["aria-valuenow"]=Math.round(c),v.strokeDashoffset=`${((100-c)/100*S).toFixed(3)}px`,E.transform="rotate(-90deg)"}return N.jsx(vRe,B({className:dt(g.root,i),style:B({width:a,height:a},E,l),ownerState:m,ref:n,role:"progressbar"},O,p,{children:N.jsx(ORe,{className:g.svg,ownerState:m,viewBox:`${Rp/2} ${Rp/2} ${Rp} ${Rp}`,children:N.jsx(ERe,{className:g.circle,style:v,ownerState:m,cx:Rp,cy:Rp,r:(Rp-u)/2,fill:"none",strokeWidth:u})})}))}),op=SRe,TRe=nxe({createStyledComponent:Ae("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${gt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Nt({props:e,name:"MuiContainer"})}),wRe=TRe,xRe=(e,t)=>B({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),kRe=e=>B({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}}),CRe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let i=B({html:xRe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:B({margin:0},kRe(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 _Re(e){const t=Nt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return N.jsxs(P.Fragment,{children:[N.jsx(Une,{styles:i=>CRe(i,r)}),n]})}function ARe(e){return Qt("MuiModal",e)}Yt("MuiModal",["root","hidden","backdrop"]);const RRe=["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"],IRe=e=>{const{open:t,exited:n,classes:r}=e;return Vt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ARe,r)},DRe=Ae("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})=>B({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),NRe=Ae(XS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),PRe=P.forwardRef(function(t,n){var r,i,o,s,a,l;const u=Nt({name:"MuiModal",props:t}),{BackdropComponent:c=NRe,BackdropProps:d,className:p,closeAfterTransition:m=!1,children:g,container:v,component:E,components:O={},componentsProps:S={},disableAutoFocus:x=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:I=!1,disablePortal:_=!1,disableRestoreFocus:w=!1,disableScrollLock:F=!1,hideBackdrop:M=!1,keepMounted:L=!1,onBackdropClick:W,open:H,slotProps:q,slots:j}=u,z=st(u,RRe),X=B({},u,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:C,disableEscapeKeyDown:I,disablePortal:_,disableRestoreFocus:w,disableScrollLock:F,hideBackdrop:M,keepMounted:L}),{getRootProps:Z,getBackdropProps:G,getTransitionProps:ee,portalRef:Q,isTopModal:ae,exited:Te,hasTransition:te}=P_e(B({},X,{rootRef:n})),pe=B({},X,{exited:Te}),Oe=IRe(pe),me={};if(g.props.tabIndex===void 0&&(me.tabIndex="-1"),te){const{onEnter:ke,onExited:qe}=ee();me.onEnter=ke,me.onExited=qe}const Re=(r=(i=j==null?void 0:j.root)!=null?i:O.Root)!=null?r:DRe,Fe=(o=(s=j==null?void 0:j.backdrop)!=null?s:O.Backdrop)!=null?o:c,et=(a=q==null?void 0:q.root)!=null?a:S.root,ct=(l=q==null?void 0:q.backdrop)!=null?l:S.backdrop,Ye=nr({elementType:Re,externalSlotProps:et,externalForwardedProps:z,getSlotProps:Z,additionalProps:{ref:n,as:E},ownerState:pe,className:dt(p,et==null?void 0:et.className,Oe==null?void 0:Oe.root,!pe.open&&pe.exited&&(Oe==null?void 0:Oe.hidden))}),nt=nr({elementType:Fe,externalSlotProps:ct,additionalProps:d,getSlotProps:ke=>G(B({},ke,{onClick:qe=>{W&&W(qe),ke!=null&&ke.onClick&&ke.onClick(qe)}})),className:dt(ct==null?void 0:ct.className,d==null?void 0:d.className,Oe==null?void 0:Oe.backdrop),ownerState:pe});return!L&&!H&&(!te||Te)?null:N.jsx(Lne,{ref:Q,container:v,disablePortal:_,children:N.jsxs(Re,B({},Ye,{children:[!M&&c?N.jsx(Fe,B({},nt)):null,N.jsx(xne,{disableEnforceFocus:C,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:ae,open:H,children:P.cloneElement(g,me)})]}))})}),Xh=PRe;function LRe(e){return Qt("MuiDialog",e)}const kO=Yt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),MRe=P.createContext({}),$Re=MRe,FRe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],BRe=Ae(XS,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),URe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${gt(n)}`],paper:["paper",`paperScroll${gt(n)}`,`paperWidth${gt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Vt(s,LRe,t)},jRe=Ae(Xh,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),zRe=Ae("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${gt(n.scroll)}`]]}})(({ownerState:e})=>B({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"}})),VRe=Ae(js,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${gt(n.scroll)}`],t[`paperWidth${gt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>B({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)`,[`&.${kO.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}`,[`&.${kO.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,[`&.${kO.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),HRe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialog"}),i=Di(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:E,onClose:O,open:S,PaperComponent:x=js,PaperProps:C={},scroll:I="paper",TransitionComponent:_=Gf,transitionDuration:w=o,TransitionProps:F}=r,M=st(r,FRe),L=B({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:g,maxWidth:v,scroll:I}),W=URe(L),H=P.useRef(),q=Z=>{H.current=Z.target===Z.currentTarget},j=Z=>{H.current&&(H.current=null,E&&E(Z),O&&O(Z,"backdropClick"))},z=Ic(a),X=P.useMemo(()=>({titleId:z}),[z]);return N.jsx(jRe,B({className:dt(W.root,d),closeAfterTransition:!0,components:{Backdrop:BRe},componentsProps:{backdrop:B({transitionDuration:w,as:l},u)},disableEscapeKeyDown:p,onClose:O,open:S,ref:n,onClick:j,ownerState:L},M,{children:N.jsx(_,B({appear:!0,in:S,timeout:w,role:"presentation"},F,{children:N.jsx(zRe,{className:dt(W.container),onMouseDown:q,ownerState:L,children:N.jsx(VRe,B({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":z},C,{className:dt(W.paper,C.className),ownerState:L,children:N.jsx($Re.Provider,{value:X,children:c})}))})}))}))}),WRe=HRe;function QRe(e){return Qt("MuiDialogActions",e)}Yt("MuiDialogActions",["root","spacing"]);const YRe=["className","disableSpacing"],GRe=e=>{const{classes:t,disableSpacing:n}=e;return Vt({root:["root",!n&&"spacing"]},QRe,t)},qRe=Ae("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>B({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ZRe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,s=st(r,YRe),a=B({},r,{disableSpacing:o}),l=GRe(a);return N.jsx(qRe,B({className:dt(l.root,i),ownerState:a,ref:n},s))}),XRe=ZRe;function KRe(e){return Qt("MuiDialogContent",e)}Yt("MuiDialogContent",["root","dividers"]);const JRe=Yt("MuiDialogTitle",["root"]),eIe=JRe,tIe=["className","dividers"],nIe=e=>{const{classes:t,dividers:n}=e;return Vt({root:["root",n&&"dividers"]},KRe,t)},rIe=Ae("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>B({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}`}:{[`.${eIe.root} + &`]:{paddingTop:0}})),iIe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,s=st(r,tIe),a=B({},r,{dividers:o}),l=nIe(a);return N.jsx(rIe,B({className:dt(l.root,i),ownerState:a,ref:n},s))}),oIe=iIe;function sIe(e){return Qt("MuiDivider",e)}const aIe=Yt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),JW=aIe,lIe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],uIe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return Vt({root:["root",t&&"absolute",l,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},sIe,r)},cIe=Ae("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})=>B({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:In(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>B({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>B({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),dIe=Ae("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>B({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)`})),Hne=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,component:a=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,g=st(r,lIe),v=B({},r,{absolute:i,component:a,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:m}),E=uIe(v);return N.jsx(cIe,B({as:a,className:dt(E.root,s),role:d,ref:n,ownerState:v},g,{children:o?N.jsx(dIe,{className:E.wrapper,ownerState:v,children:o}):null}))});Hne.muiSkipListHighlight=!0;const Pf=Hne,fIe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pIe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Bu(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=o.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${o.innerWidth+a-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}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 hIe(e){return typeof e=="function"?e():e}function hx(e,t,n){const r=hIe(n),i=pIe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const mIe=P.forwardRef(function(t,n){const r=Di(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:u,direction:c="down",easing:d=i,in:p,onEnter:m,onEntered:g,onEntering:v,onExit:E,onExited:O,onExiting:S,style:x,timeout:C=o,TransitionComponent:I=GS}=t,_=st(t,fIe),w=P.useRef(null),F=Vn(l.ref,w,n),M=G=>ee=>{G&&(ee===void 0?G(w.current):G(w.current,ee))},L=M((G,ee)=>{hx(c,G,u),x$(G),m&&m(G,ee)}),W=M((G,ee)=>{const Q=Ph({timeout:C,style:x,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",B({},Q)),G.style.transition=r.transitions.create("transform",B({},Q)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,ee)}),H=M(g),q=M(S),j=M(G=>{const ee=Ph({timeout:C,style:x,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",ee),G.style.transition=r.transitions.create("transform",ee),hx(c,G,u),E&&E(G)}),z=M(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),X=G=>{s&&s(w.current,G)},Z=P.useCallback(()=>{w.current&&hx(c,w.current,u)},[c,u]);return P.useEffect(()=>{if(p||c==="down"||c==="right")return;const G=Gy(()=>{w.current&&hx(c,w.current,u)}),ee=Bu(w.current);return ee.addEventListener("resize",G),()=>{G.clear(),ee.removeEventListener("resize",G)}},[c,p,u]),P.useEffect(()=>{p||Z()},[p,Z]),N.jsx(I,B({nodeRef:w,onEnter:L,onEntered:H,onEntering:W,onExit:j,onExited:z,onExiting:q,addEndListener:X,appear:a,in:p,timeout:C},_,{children:(G,ee)=>P.cloneElement(l,B({ref:F,style:B({visibility:G==="exited"&&!p?"hidden":void 0},x,l.props.style)},ee))}))}),Wne=mIe;function gIe(e){return Qt("MuiDrawer",e)}Yt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const bIe=["BackdropProps"],yIe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Qne=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},vIe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${gt(n)}`,r!=="temporary"&&`paperAnchorDocked${gt(n)}`]};return Vt(i,gIe,t)},OIe=Ae(Xh,{name:"MuiDrawer",slot:"Root",overridesResolver:Qne})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),eQ=Ae("div",{shouldForwardProp:ys,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Qne})({flex:"0 0 auto"}),EIe=Ae(js,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${gt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${gt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>B({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}`})),Yne={left:"right",right:"left",top:"down",bottom:"up"};function SIe(e){return["left","right"].indexOf(e)!==-1}function TIe(e,t){return e.direction==="rtl"&&SIe(t)?Yne[t]:t}const wIe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDrawer"}),i=Di(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:l,className:u,elevation:c=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:m,open:g=!1,PaperProps:v={},SlideProps:E,TransitionComponent:O=Wne,transitionDuration:S=o,variant:x="temporary"}=r,C=st(r.ModalProps,bIe),I=st(r,yIe),_=P.useRef(!1);P.useEffect(()=>{_.current=!0},[]);const w=TIe(i,s),M=B({},r,{anchor:s,elevation:c,open:g,variant:x},I),L=vIe(M),W=N.jsx(EIe,B({elevation:x==="temporary"?c:0,square:!0},v,{className:dt(L.paper,v.className),ownerState:M,children:l}));if(x==="permanent")return N.jsx(eQ,B({className:dt(L.root,L.docked,u),ownerState:M,ref:n},I,{children:W}));const H=N.jsx(O,B({in:g,direction:Yne[w],timeout:S,appear:_.current},E,{children:W}));return x==="persistent"?N.jsx(eQ,B({className:dt(L.root,L.docked,u),ownerState:M,ref:n},I,{children:H})):N.jsx(OIe,B({BackdropProps:B({},a,p,{transitionDuration:S}),className:dt(L.root,L.modal,u),open:g,ownerState:M,onClose:m,hideBackdrop:d,ref:n},I,C,{children:H}))}),xIe=wIe,kIe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],CIe=e=>{const{classes:t,disableUnderline:n}=e,i=Vt({root:["root",!n&&"underline"],input:["input"]},SAe,t);return B({},t,i)},_Ie=Ae(P2,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...D2(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)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return B({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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Nl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Nl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!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"},[`&.${Nl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nl.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(.${Nl.disabled}, .${Nl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Nl.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&B({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}))}),AIe=Ae(L2,{name:"MuiFilledInput",slot:"Input",overridesResolver:N2})(({theme:e,ownerState:t})=>B({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})),Gne=P.forwardRef(function(t,n){var r,i,o,s;const a=Nt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:m,slots:g={},type:v="text"}=a,E=st(a,kIe),O=B({},a,{fullWidth:c,inputComponent:d,multiline:p,type:v}),S=CIe(a),x={root:{ownerState:O},input:{ownerState:O}},C=m??u?la(x,m??u):x,I=(r=(i=g.root)!=null?i:l.Root)!=null?r:_Ie,_=(o=(s=g.input)!=null?s:l.Input)!=null?o:AIe;return N.jsx(P$,B({slots:{root:I,input:_},componentsProps:C,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:v},E,{classes:S}))});Gne.muiName="Input";const qne=Gne;function RIe(e){return Qt("MuiFormControl",e)}Yt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const IIe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],DIe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${gt(n)}`,r&&"fullWidth"]};return Vt(i,RIe,t)},NIe=Ae("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>B({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%"})),PIe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:m="none",required:g=!1,size:v="medium",variant:E="outlined"}=r,O=st(r,IIe),S=B({},r,{color:s,component:a,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:m,required:g,size:v,variant:E}),x=DIe(S),[C,I]=P.useState(()=>{let q=!1;return i&&P.Children.forEach(i,j=>{if(!vO(j,["Input","Select"]))return;const z=vO(j,["Select"])?j.props.input:j;z&&dAe(z.props)&&(q=!0)}),q}),[_,w]=P.useState(()=>{let q=!1;return i&&P.Children.forEach(i,j=>{vO(j,["Input","Select"])&&(r_(j.props,!0)||r_(j.props.inputProps,!0))&&(q=!0)}),q}),[F,M]=P.useState(!1);l&&F&&M(!1);const L=c!==void 0&&!l?c:F;let W;const H=P.useMemo(()=>({adornedStart:C,setAdornedStart:I,color:s,disabled:l,error:u,filled:_,focused:L,fullWidth:d,hiddenLabel:p,size:v,onBlur:()=>{M(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{M(!0)},registerEffect:W,required:g,variant:E}),[C,s,l,u,_,L,d,p,W,g,v,E]);return N.jsx(I2.Provider,{value:H,children:N.jsx(NIe,B({as:a,ownerState:S,className:dt(x.root,o),ref:n},O,{children:i}))})}),Dc=PIe,LIe=cxe({createStyledComponent:Ae("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Nt({props:e,name:"MuiStack"})}),dr=LIe;function MIe(e){return Qt("MuiFormControlLabel",e)}const $Ie=Yt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Xv=$Ie,FIe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],BIe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,s={root:["root",n&&"disabled",`labelPlacement${gt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Vt(s,MIe,t)},UIe=Ae("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Xv.label}`]:t.label},t.root,t[`labelPlacement${gt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>B({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Xv.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},{[`& .${Xv.label}`]:{[`&.${Xv.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),jIe=Ae("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Xv.error}`]:{color:(e.vars||e).palette.error.main}})),zIe=P.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:m,slotProps:g={}}=o,v=st(o,FIe),E=Ud(),O=(r=u??l.props.disabled)!=null?r:E==null?void 0:E.disabled,S=m??l.props.required,x={disabled:O,required:S};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof o[M]<"u"&&(x[M]=o[M])});const C=Zh({props:o,muiFormControl:E,states:["error"]}),I=B({},o,{disabled:O,labelPlacement:p,required:S,error:C.error}),_=BIe(I),w=(i=g.typography)!=null?i:a.typography;let F=d;return F!=null&&F.type!==$r&&!c&&(F=N.jsx($r,B({component:"span"},w,{className:dt(_.label,w==null?void 0:w.className),children:F}))),N.jsxs(UIe,B({className:dt(_.root,s),ownerState:I,ref:n},v,{children:[P.cloneElement(l,x),S?N.jsxs(dr,{display:"block",children:[F,N.jsxs(jIe,{ownerState:I,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):F]}))}),kE=zIe;function VIe(e){return Qt("MuiFormGroup",e)}Yt("MuiFormGroup",["root","row","error"]);const HIe=["className","row"],WIe=e=>{const{classes:t,row:n,error:r}=e;return Vt({root:["root",n&&"row",r&&"error"]},VIe,t)},QIe=Ae("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>B({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),YIe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,s=st(r,HIe),a=Ud(),l=Zh({props:r,muiFormControl:a,states:["error"]}),u=B({},r,{row:o,error:l.error}),c=WIe(u);return N.jsx(QIe,B({className:dt(c.root,i),ownerState:u,ref:n},s))}),$$=YIe;function GIe(e){return Qt("MuiFormHelperText",e)}const qIe=Yt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),tQ=qIe;var nQ;const ZIe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],XIe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:s,focused:a,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${gt(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return Vt(u,GIe,t)},KIe=Ae("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${gt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${tQ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tQ.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),JIe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p"}=r,a=st(r,ZIe),l=Ud(),u=Zh({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=B({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=XIe(c);return N.jsx(KIe,B({as:s,ownerState:c,className:dt(d.root,o),ref:n},a,{children:i===" "?nQ||(nQ=N.jsx("span",{className:"notranslate",children:"​"})):i}))}),Xy=JIe;function eDe(e){return Qt("MuiFormLabel",e)}const CO=Yt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),tDe=["children","className","color","component","disabled","error","filled","focused","required"],nDe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:a}=e,l={root:["root",`color${gt(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]};return Vt(l,eDe,t)},rDe=Ae("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${CO.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${CO.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${CO.error}`]:{color:(e.vars||e).palette.error.main}})),iDe=Ae("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${CO.error}`]:{color:(e.vars||e).palette.error.main}})),oDe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:s="label"}=r,a=st(r,tDe),l=Ud(),u=Zh({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=B({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=nDe(c);return N.jsxs(rDe,B({as:s,ownerState:c,className:dt(d.root,o),ref:n},a,{children:[i,u.required&&N.jsxs(iDe,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),B2=oDe,sDe=P.createContext(),rQ=sDe;function aDe(e){return Qt("MuiGrid",e)}const lDe=[0,1,2,3,4,5,6,7,8,9,10],uDe=["column-reverse","column","row-reverse","row"],cDe=["nowrap","wrap-reverse","wrap"],dv=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],CE=Yt("MuiGrid",["root","container","item","zeroMinWidth",...lDe.map(e=>`spacing-xs-${e}`),...uDe.map(e=>`direction-xs-${e}`),...cDe.map(e=>`wrap-xs-${e}`),...dv.map(e=>`grid-xs-${e}`),...dv.map(e=>`grid-sm-${e}`),...dv.map(e=>`grid-md-${e}`),...dv.map(e=>`grid-lg-${e}`),...dv.map(e=>`grid-xl-${e}`)]),dDe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function _b(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function fDe({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 s=ag({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[i]:s;if(a==null)return r;const l=`${Math.round(n/a*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} + ${_b(c)})`;u={flexBasis:d,maxWidth:d}}}o=B({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 pDe({theme:e,ownerState:t}){const n=ag({values:t.direction,breakpoints:e.breakpoints.values});return ul({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${CE.item}`]={maxWidth:"none"}),i})}function Zne({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 hDe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=ag({values:r,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=Zne({breakpoints:e.breakpoints.values,values:o})),i=ul({theme:e},o,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${_b(c)}`,[`& > .${CE.item}`]:{paddingTop:_b(c)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${CE.item}`]:{paddingTop:0}}})}return i}function mDe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=ag({values:r,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=Zne({breakpoints:e.breakpoints.values,values:o})),i=ul({theme:e},o,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${_b(c)})`,marginLeft:`-${_b(c)}`,[`& > .${CE.item}`]:{paddingLeft:_b(c)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${CE.item}`]:{paddingLeft:0}}})}return i}function gDe(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 bDe=Ae("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=gDe(s,u,t));const d=[];return u.forEach(p=>{const m=n[p];m&&d.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>B({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}),pDe,hDe,mDe,fDe);function yDe(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 vDe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let u=[];n&&(u=yDe(o,l));const c=[];l.forEach(p=>{const m=e[p];m&&c.push(`grid-${p}-${String(m)}`)});const d={root:["root",n&&"container",i&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...c]};return Vt(d,aDe,t)},ODe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiGrid"}),{breakpoints:i}=Di(),o=w2(r),{className:s,columns:a,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:p=!1,rowSpacing:m,spacing:g=0,wrap:v="wrap",zeroMinWidth:E=!1}=o,O=st(o,dDe),S=m||g,x=l||g,C=P.useContext(rQ),I=c?a||12:C,_={},w=B({},O);i.keys.forEach(L=>{O[L]!=null&&(_[L]=O[L],delete w[L])});const F=B({},o,{columns:I,container:c,direction:d,item:p,rowSpacing:S,columnSpacing:x,wrap:v,zeroMinWidth:E,spacing:g},_,{breakpoints:i.keys}),M=vDe(F);return N.jsx(rQ.Provider,{value:I,children:N.jsx(bDe,B({ownerState:F,className:dt(M.root,s),as:u,ref:n},w))})}),sb=ODe,EDe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function uL(e){return`scale(${e}, ${e**2})`}const SDe={entering:{opacity:1,transform:uL(1)},entered:{opacity:1,transform:"none"}},cN=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xne=P.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:m,style:g,timeout:v="auto",TransitionComponent:E=GS}=t,O=st(t,EDe),S=Bm(),x=P.useRef(),C=Di(),I=P.useRef(null),_=Vn(I,o.ref,n),w=z=>X=>{if(z){const Z=I.current;X===void 0?z(Z):z(Z,X)}},F=w(c),M=w((z,X)=>{x$(z);const{duration:Z,delay:G,easing:ee}=Ph({style:g,timeout:v,easing:s},{mode:"enter"});let Q;v==="auto"?(Q=C.transitions.getAutoHeightDuration(z.clientHeight),x.current=Q):Q=Z,z.style.transition=[C.transitions.create("opacity",{duration:Q,delay:G}),C.transitions.create("transform",{duration:cN?Q:Q*.666,delay:G,easing:ee})].join(","),l&&l(z,X)}),L=w(u),W=w(m),H=w(z=>{const{duration:X,delay:Z,easing:G}=Ph({style:g,timeout:v,easing:s},{mode:"exit"});let ee;v==="auto"?(ee=C.transitions.getAutoHeightDuration(z.clientHeight),x.current=ee):ee=X,z.style.transition=[C.transitions.create("opacity",{duration:ee,delay:Z}),C.transitions.create("transform",{duration:cN?ee:ee*.666,delay:cN?Z:Z||ee*.333,easing:G})].join(","),z.style.opacity=0,z.style.transform=uL(.75),d&&d(z)}),q=w(p),j=z=>{v==="auto"&&S.start(x.current||0,z),r&&r(I.current,z)};return N.jsx(E,B({appear:i,in:a,nodeRef:I,onEnter:M,onEntered:L,onEntering:F,onExit:H,onExited:q,onExiting:W,addEndListener:j,timeout:v==="auto"?null:v},O,{children:(z,X)=>P.cloneElement(o,B({style:B({opacity:0,transform:uL(.75),visibility:z==="exited"&&!a?"hidden":void 0},SDe[z],g,o.props.style),ref:_},X))}))});Xne.muiSupportAuto=!0;const i_=Xne;function TDe(e,t,n,r,i){const[o,s]=P.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ji(()=>{let a=!0;if(!n)return;const l=n(e),u=()=>{a&&s(l.matches)};return u(),l.addListener(u),()=>{a=!1,l.removeListener(u)}},[e,n]),o}const Kne=P.useSyncExternalStore;function wDe(e,t,n,r,i){const o=P.useCallback(()=>t,[t]),s=P.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]),[a,l]=P.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return Kne(l,a,s)}function Ky(e,t={}){const n=T2(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=gne({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(Kne!==void 0?wDe:TDe)(l,i,o,s,a)}const xDe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kDe=e=>{const{classes:t,disableUnderline:n}=e,i=Vt({root:["root",!n&&"underline"],input:["input"]},yAe,t);return B({},t,i)},CDe=Ae(P2,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...D2(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})`),B({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"},[`&.${Qp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qp.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(.${Qp.disabled}, .${Qp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qp.disabled}:before`]:{borderBottomStyle:"dotted"}})}),_De=Ae(L2,{name:"MuiInput",slot:"Input",overridesResolver:N2})({}),Jne=P.forwardRef(function(t,n){var r,i,o,s;const a=Nt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:m=!1,slotProps:g,slots:v={},type:E="text"}=a,O=st(a,xDe),S=kDe(a),C={root:{ownerState:{disableUnderline:l}}},I=g??c?la(g??c,C):C,_=(r=(i=v.root)!=null?i:u.Root)!=null?r:CDe,w=(o=(s=v.input)!=null?s:u.Input)!=null?o:_De;return N.jsx(P$,B({slots:{root:_,input:w},slotProps:I,fullWidth:d,inputComponent:p,multiline:m,ref:n,type:E},O,{classes:S}))});Jne.muiName="Input";const ere=Jne;function ADe(e){return Qt("MuiInputAdornment",e)}const RDe=Yt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),iQ=RDe;var oQ;const IDe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],DDe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${gt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},NDe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:s}=e,a={root:["root",n&&"disablePointerEvents",i&&`position${gt(i)}`,s,r&&"hiddenLabel",o&&`size${gt(o)}`]};return Vt(a,ADe,t)},PDe=Ae("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:DDe})(({theme:e,ownerState:t})=>B({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${iQ.positionStart}&:not(.${iQ.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),LDe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:u,variant:c}=r,d=st(r,IDe),p=Ud()||{};let m=c;c&&p.variant,p&&!m&&(m=p.variant);const g=B({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:u,variant:m}),v=NDe(g);return N.jsx(I2.Provider,{value:null,children:N.jsx(PDe,B({as:s,ownerState:g,className:dt(v.root,o),ref:n},d,{children:typeof i=="string"&&!l?N.jsx($r,{color:"text.secondary",children:i}):N.jsxs(P.Fragment,{children:[u==="start"?oQ||(oQ=N.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),_E=LDe;function MDe(e){return Qt("MuiInputLabel",e)}Yt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $De=["disableAnimation","margin","shrink","variant","className"],FDe=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:a}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${gt(r)}`,s],asterisk:[a&&"asterisk"]},u=Vt(l,MDe,t);return B({},t,u)},BDe=Ae(B2,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${CO.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})=>B({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"&&B({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&&B({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"&&B({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)"}))),UDe=P.forwardRef(function(t,n){const r=Nt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:s}=r,a=st(r,$De),l=Ud();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Zh({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=B({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=FDe(d);return N.jsx(BDe,B({"data-shrink":u,ownerState:d,ref:n,className:dt(p.root,s)},a,{classes:p}))}),tre=UDe,jDe=P.createContext({}),Du=jDe;function zDe(e){return Qt("MuiList",e)}Yt("MuiList",["root","padding","dense","subheader"]);const VDe=["children","className","component","dense","disablePadding","subheader"],HDe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Vt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},zDe,t)},WDe=Ae("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})=>B({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),QDe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,c=st(r,VDe),d=P.useMemo(()=>({dense:a}),[a]),p=B({},r,{component:s,dense:a,disablePadding:l}),m=HDe(p);return N.jsx(Du.Provider,{value:d,children:N.jsxs(WDe,B({as:s,className:dt(m.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),nre=QDe;function YDe(e){return Qt("MuiListItem",e)}const GDe=Yt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),M0=GDe;function qDe(e){return Qt("MuiListItemButton",e)}const ZDe=Yt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),$0=ZDe,XDe=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],KDe=(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]},JDe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,u=Vt({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},qDe,n);return B({},n,u)},eNe=Ae(Gl,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:KDe})(({theme:e,ownerState:t})=>B({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"}},[`&.${$0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$0.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})),tNe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:d,selected:p=!1,className:m}=r,g=st(r,XDe),v=P.useContext(Du),E=P.useMemo(()=>({dense:l||v.dense||!1,alignItems:i,disableGutters:u}),[i,v.dense,l,u]),O=P.useRef(null);Ji(()=>{o&&O.current&&O.current.focus()},[o]);const S=B({},r,{alignItems:i,dense:E.dense,disableGutters:u,divider:c,selected:p}),x=JDe(S),C=Vn(O,n);return N.jsx(Du.Provider,{value:E,children:N.jsx(eNe,B({ref:C,href:g.href||g.to,component:(g.href||g.to)&&s==="div"?"button":s,focusVisibleClassName:dt(x.focusVisible,d),ownerState:S,className:dt(x.root,m)},g,{classes:x,children:a}))})}),dN=tNe;function nNe(e){return Qt("MuiListItemSecondaryAction",e)}Yt("MuiListItemSecondaryAction",["root","disableGutters"]);const rNe=["className"],iNe=e=>{const{disableGutters:t,classes:n}=e;return Vt({root:["root",t&&"disableGutters"]},nNe,n)},oNe=Ae("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>B({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),rre=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=st(r,rNe),s=P.useContext(Du),a=B({},r,{disableGutters:s.disableGutters}),l=iNe(a);return N.jsx(oNe,B({className:dt(l.root,i),ownerState:a,ref:n},o))});rre.muiName="ListItemSecondaryAction";const o_=rre,sNe=["className"],aNe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],lNe=(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]},uNe=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:u,selected:c}=e;return Vt({root:["root",i&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},YDe,r)},cNe=Ae("div",{name:"MuiListItem",slot:"Root",overridesResolver:lNe})(({theme:e,ownerState:t})=>B({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&B({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${$0.root}`]:{paddingRight:48}},{[`&.${M0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${M0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${M0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${M0.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"}},[`&.${M0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),dNe=Ae("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),fNe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:s=!1,children:a,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:g=!1,disabled:v=!1,disableGutters:E=!1,disablePadding:O=!1,divider:S=!1,focusVisibleClassName:x,secondaryAction:C,selected:I=!1,slotProps:_={},slots:w={}}=r,F=st(r.ContainerProps,sNe),M=st(r,aNe),L=P.useContext(Du),W=P.useMemo(()=>({dense:g||L.dense||!1,alignItems:i,disableGutters:E}),[i,L.dense,g,E]),H=P.useRef(null);Ji(()=>{o&&H.current&&H.current.focus()},[o]);const q=P.Children.toArray(a),j=q.length&&vO(q[q.length-1],["ListItemSecondaryAction"]),z=B({},r,{alignItems:i,autoFocus:o,button:s,dense:W.dense,disabled:v,disableGutters:E,disablePadding:O,divider:S,hasSecondaryAction:j,selected:I}),X=uNe(z),Z=Vn(H,n),G=w.root||c.Root||cNe,ee=_.root||d.root||{},Q=B({className:dt(X.root,ee.className,l),disabled:v},M);let ae=u||"li";return s&&(Q.component=u||"div",Q.focusVisibleClassName=dt(M0.focusVisible,x),ae=Gl),j?(ae=!Q.component&&!u?"div":ae,p==="li"&&(ae==="li"?ae="div":Q.component==="li"&&(Q.component="div")),N.jsx(Du.Provider,{value:W,children:N.jsxs(dNe,B({as:p,className:dt(X.container,m),ref:Z,ownerState:z},F,{children:[N.jsx(G,B({},ee,!Id(G)&&{as:ae,ownerState:B({},z,ee.ownerState)},Q,{children:q})),q.pop()]}))})):N.jsx(Du.Provider,{value:W,children:N.jsxs(G,B({},ee,{as:ae,ref:Z},!Id(G)&&{ownerState:B({},z,ee.ownerState)},Q,{children:[q,C&&N.jsx(o_,{children:C})]}))})}),F0=fNe;function pNe(e){return Qt("MuiListItemAvatar",e)}Yt("MuiListItemAvatar",["root","alignItemsFlexStart"]);const hNe=["className"],mNe=e=>{const{alignItems:t,classes:n}=e;return Vt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},pNe,n)},gNe=Ae("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>B({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),bNe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=st(r,hNe),s=P.useContext(Du),a=B({},r,{alignItems:s.alignItems}),l=mNe(a);return N.jsx(gNe,B({className:dt(l.root,i),ownerState:a,ref:n},o))}),yNe=bNe;function vNe(e){return Qt("MuiListItemIcon",e)}const ONe=Yt("MuiListItemIcon",["root","alignItemsFlexStart"]),sQ=ONe,ENe=["className"],SNe=e=>{const{alignItems:t,classes:n}=e;return Vt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},vNe,n)},TNe=Ae("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})=>B({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),wNe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=st(r,ENe),s=P.useContext(Du),a=B({},r,{alignItems:s.alignItems}),l=SNe(a);return N.jsx(TNe,B({className:dt(l.root,i),ownerState:a,ref:n},o))}),U2=wNe;function xNe(e){return Qt("MuiListItemText",e)}const kNe=Yt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),s_=kNe,CNe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_Ne=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Vt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},xNe,t)},ANe=Ae("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${s_.primary}`]:t.primary},{[`& .${s_.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>B({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),RNe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,p=st(r,CNe),{dense:m}=P.useContext(Du);let g=l??i,v=c;const E=B({},r,{disableTypography:s,inset:a,primary:!!g,secondary:!!v,dense:m}),O=_Ne(E);return g!=null&&g.type!==$r&&!s&&(g=N.jsx($r,B({variant:m?"body2":"body1",className:O.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),v!=null&&v.type!==$r&&!s&&(v=N.jsx($r,B({variant:"body2",className:O.secondary,color:"text.secondary",display:"block"},d,{children:v}))),N.jsxs(ANe,B({className:dt(O.root,o),ownerState:E,ref:n},p,{children:[g,v]}))}),Eh=RNe,INe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function fN(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function aQ(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ire(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 fv(e,t,n,r,i,o){let s=!1,a=i(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!ire(a,o)||l)a=i(e,a,n);else return a.focus(),!0}return!1}const DNe=P.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=st(t,INe),m=P.useRef(null),g=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ji(()=>{i&&m.current.focus()},[i]),P.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,C)=>{const I=!m.current.style.width;if(x.clientHeight{const C=m.current,I=x.key,_=ci(C).activeElement;if(I==="ArrowDown")x.preventDefault(),fv(C,_,u,l,fN);else if(I==="ArrowUp")x.preventDefault(),fv(C,_,u,l,aQ);else if(I==="Home")x.preventDefault(),fv(C,null,u,l,fN);else if(I==="End")x.preventDefault(),fv(C,null,u,l,aQ);else if(I.length===1){const w=g.current,F=I.toLowerCase(),M=performance.now();w.keys.length>0&&(M-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&F!==w.keys[0]&&(w.repeating=!1)),w.lastTime=M,w.keys.push(F);const L=_&&!w.repeating&&ire(_,w);w.previousKeyMatched&&(L||fv(C,_,!1,l,fN,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},E=Vn(m,n);let O=-1;P.Children.forEach(s,(x,C)=>{if(!P.isValidElement(x)){O===C&&(O+=1,O>=s.length&&(O=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||O===-1)&&(O=C),O===C&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(O+=1,O>=s.length&&(O=-1))});const S=P.Children.map(s,(x,C)=>{if(C===O){const I={};return o&&(I.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(I.tabIndex=0),P.cloneElement(x,I)}return x});return N.jsx(nre,B({role:"menu",ref:E,className:a,onKeyDown:v,tabIndex:i?0:-1},p,{children:S}))}),Jy=DNe;function NNe(e){return Qt("MuiPopover",e)}Yt("MuiPopover",["root","paper"]);const PNe=["onEntering"],LNe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],MNe=["slotProps"];function lQ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function uQ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cQ(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pN(e){return typeof e=="function"?e():e}const $Ne=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"]},NNe,t)},FNe=Ae(Xh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ore=Ae(js,{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}),BNe=P.forwardRef(function(t,n){var r,i,o;const s=Nt({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:m,container:g,elevation:v=8,marginThreshold:E=16,open:O,PaperProps:S={},slots:x,slotProps:C,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:_=i_,transitionDuration:w="auto",TransitionProps:{onEntering:F}={},disableScrollLock:M=!1}=s,L=st(s.TransitionProps,PNe),W=st(s,LNe),H=(r=C==null?void 0:C.paper)!=null?r:S,q=P.useRef(),j=Vn(q,H.ref),z=B({},s,{anchorOrigin:u,anchorReference:d,elevation:v,marginThreshold:E,externalPaperSlotProps:H,transformOrigin:I,TransitionComponent:_,transitionDuration:w,TransitionProps:L}),X=$Ne(z),Z=P.useCallback(()=>{if(d==="anchorPosition")return c;const ke=pN(l),Ge=(ke&&ke.nodeType===1?ke:ci(q.current).body).getBoundingClientRect();return{top:Ge.top+lQ(Ge,u.vertical),left:Ge.left+uQ(Ge,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),G=P.useCallback(ke=>({vertical:lQ(ke,I.vertical),horizontal:uQ(ke,I.horizontal)}),[I.horizontal,I.vertical]),ee=P.useCallback(ke=>{const qe={width:ke.offsetWidth,height:ke.offsetHeight},Ge=G(qe);if(d==="none")return{top:null,left:null,transformOrigin:cQ(Ge)};const rt=Z();let Ot=rt.top-Ge.vertical,Ke=rt.left-Ge.horizontal;const de=Ot+qe.height,oe=Ke+qe.width,ie=Bu(pN(l)),Me=ie.innerHeight-E,He=ie.innerWidth-E;if(E!==null&&OtMe){const Be=de-Me;Ot-=Be,Ge.vertical+=Be}if(E!==null&&KeHe){const Be=oe-He;Ke-=Be,Ge.horizontal+=Be}return{top:`${Math.round(Ot)}px`,left:`${Math.round(Ke)}px`,transformOrigin:cQ(Ge)}},[l,d,Z,G,E]),[Q,ae]=P.useState(O),Te=P.useCallback(()=>{const ke=q.current;if(!ke)return;const qe=ee(ke);qe.top!==null&&(ke.style.top=qe.top),qe.left!==null&&(ke.style.left=qe.left),ke.style.transformOrigin=qe.transformOrigin,ae(!0)},[ee]);P.useEffect(()=>(M&&window.addEventListener("scroll",Te),()=>window.removeEventListener("scroll",Te)),[l,M,Te]);const te=(ke,qe)=>{F&&F(ke,qe),Te()},pe=()=>{ae(!1)};P.useEffect(()=>{O&&Te()}),P.useImperativeHandle(a,()=>O?{updatePosition:()=>{Te()}}:null,[O,Te]),P.useEffect(()=>{if(!O)return;const ke=Gy(()=>{Te()}),qe=Bu(l);return qe.addEventListener("resize",ke),()=>{ke.clear(),qe.removeEventListener("resize",ke)}},[l,O,Te]);let Oe=w;w==="auto"&&!_.muiSupportAuto&&(Oe=void 0);const me=g||(l?ci(pN(l)).body:void 0),Re=(i=x==null?void 0:x.root)!=null?i:FNe,Fe=(o=x==null?void 0:x.paper)!=null?o:ore,et=nr({elementType:Fe,externalSlotProps:B({},H,{style:Q?H.style:B({},H.style,{opacity:0})}),additionalProps:{elevation:v,ref:j},ownerState:z,className:dt(X.paper,H==null?void 0:H.className)}),ct=nr({elementType:Re,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:W,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:me,open:O},ownerState:z,className:dt(X.root,m)}),{slotProps:Ye}=ct,nt=st(ct,MNe);return N.jsx(Re,B({},nt,!Id(Re)&&{slotProps:Ye,disableScrollLock:M},{children:N.jsx(_,B({appear:!0,in:O,onEntering:te,onExited:pe,timeout:Oe},L,{children:N.jsx(Fe,B({},et,{children:p}))}))}))}),j2=BNe;function UNe(e){return Qt("MuiMenu",e)}Yt("MuiMenu",["root","paper","list"]);const jNe=["onEntering"],zNe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],VNe={vertical:"top",horizontal:"right"},HNe={vertical:"top",horizontal:"left"},WNe=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"],list:["list"]},UNe,t)},QNe=Ae(j2,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YNe=Ae(ore,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),GNe=Ae(Jy,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),qNe=P.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:m={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:E}={},variant:O="selectedMenu",slots:S={},slotProps:x={}}=o,C=st(o.TransitionProps,jNe),I=st(o,zNe),_=Di(),w=_.direction==="rtl",F=B({},o,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:E,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:O}),M=WNe(F),L=s&&!u&&p,W=P.useRef(null),H=(ee,Q)=>{W.current&&W.current.adjustStyleForScrollbar(ee,_),E&&E(ee,Q)},q=ee=>{ee.key==="Tab"&&(ee.preventDefault(),d&&d(ee,"tabKeyDown"))};let j=-1;P.Children.map(a,(ee,Q)=>{P.isValidElement(ee)&&(ee.props.disabled||(O==="selectedMenu"&&ee.props.selected||j===-1)&&(j=Q))});const z=(r=S.paper)!=null?r:YNe,X=(i=x.paper)!=null?i:m,Z=nr({elementType:S.root,externalSlotProps:x.root,ownerState:F,className:[M.root,l]}),G=nr({elementType:z,externalSlotProps:X,ownerState:F,className:M.paper});return N.jsx(QNe,B({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?VNe:HNe,slots:{paper:z,root:S.root},slotProps:{root:Z,paper:G},open:p,ref:n,transitionDuration:v,TransitionProps:B({onEntering:H},C),ownerState:F},I,{classes:g,children:N.jsx(GNe,B({onKeyDown:q,actions:W,autoFocus:s&&(j===-1||u),autoFocusItem:L,variant:O},c,{className:dt(M.list,c.className),children:a}))}))}),ZNe=qNe;function XNe(e){return Qt("MuiMenuItem",e)}const KNe=Yt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),pv=KNe,JNe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ePe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},tPe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,l=Vt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},XNe,s);return B({},s,l)},nPe=Ae(Gl,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ePe})(({theme:e,ownerState:t})=>B({},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"}},[`&.${pv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${JW.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${JW.inset}`]:{marginLeft:52},[`& .${s_.root}`]:{marginTop:0,marginBottom:0},[`& .${s_.inset}`]:{paddingLeft:36},[`& .${sQ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&B({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${sQ.root} svg`]:{fontSize:"1.25rem"}}))),rPe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,m=st(r,JNe),g=P.useContext(Du),v=P.useMemo(()=>({dense:s||g.dense||!1,disableGutters:l}),[g.dense,s,l]),E=P.useRef(null);Ji(()=>{i&&E.current&&E.current.focus()},[i]);const O=B({},r,{dense:v.dense,divider:a,disableGutters:l}),S=tPe(r),x=Vn(E,n);let C;return r.disabled||(C=d!==void 0?d:-1),N.jsx(Du.Provider,{value:v,children:N.jsx(nPe,B({ref:x,role:c,tabIndex:C,component:o,focusVisibleClassName:dt(S.focusVisible,u),className:dt(S.root,p)},m,{ownerState:O,classes:S}))})}),Lh=rPe;function iPe(e){return Qt("MuiNativeSelect",e)}const oPe=Yt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),F$=oPe,sPe=["className","disabled","error","IconComponent","inputRef","variant"],aPe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${gt(n)}`,o&&"iconOpen",r&&"disabled"]};return Vt(a,iPe,t)},sre=({ownerState:e,theme:t})=>B({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":B({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${F$.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),lPe=Ae("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ys,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${F$.multiple}`]:t.multiple}]}})(sre),are=({ownerState:e,theme:t})=>B({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${F$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),uPe=Ae("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gt(n.variant)}`],n.open&&t.iconOpen]}})(are),cPe=P.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:s,inputRef:a,variant:l="standard"}=t,u=st(t,sPe),c=B({},t,{disabled:i,variant:l,error:o}),d=aPe(c);return N.jsxs(P.Fragment,{children:[N.jsx(lPe,B({ownerState:c,className:dt(d.select,r),disabled:i,ref:a||n},u)),t.multiple?null:N.jsx(uPe,{as:s,ownerState:c,className:d.icon})]})}),dPe=cPe;var dQ;const fPe=["children","classes","className","label","notched"],pPe=Ae("fieldset",{shouldForwardProp:ys})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),hPe=Ae("legend",{shouldForwardProp:ys})(({ownerState:e,theme:t})=>B({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&&B({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 mPe(e){const{className:t,label:n,notched:r}=e,i=st(e,fPe),o=n!=null&&n!=="",s=B({},e,{notched:r,withLabel:o});return N.jsx(pPe,B({"aria-hidden":!0,className:t,ownerState:s},i,{children:N.jsx(hPe,{ownerState:s,children:o?N.jsx("span",{children:n}):dQ||(dQ=N.jsx("span",{className:"notranslate",children:"​"}))})}))}const gPe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],bPe=e=>{const{classes:t}=e,r=Vt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},OAe,t);return B({},t,r)},yPe=Ae(P2,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:D2})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return B({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${sd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${sd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${sd.focused} .${sd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${sd.error} .${sd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${sd.disabled} .${sd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&B({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),vPe=Ae(mPe,{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}}),OPe=Ae(L2,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:N2})(({theme:e,ownerState:t})=>B({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})),lre=P.forwardRef(function(t,n){var r,i,o,s,a;const l=Nt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:m=!1,notched:g,slots:v={},type:E="text"}=l,O=st(l,gPe),S=bPe(l),x=Ud(),C=Zh({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=B({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:x,fullWidth:c,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:E}),_=(r=(i=v.root)!=null?i:u.Root)!=null?r:yPe,w=(o=(s=v.input)!=null?s:u.Input)!=null?o:OPe;return N.jsx(P$,B({slots:{root:_,input:w},renderSuffix:F=>N.jsx(vPe,{ownerState:I,className:S.notchedOutline,label:p!=null&&p!==""&&C.required?a||(a=N.jsxs(P.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(F.startAdornment||F.filled||F.focused)}),fullWidth:c,inputComponent:d,multiline:m,ref:n,type:E},O,{classes:B({},S,{notchedOutline:null})}))});lre.muiName="Input";const ure=lre,EPe=Po(N.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),SPe=Po(N.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),TPe=Ae("span",{shouldForwardProp:ys})({position:"relative",display:"flex"}),wPe=Ae(EPe)({transform:"scale(1)"}),xPe=Ae(SPe)(({theme:e,ownerState:t})=>B({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 cre(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=B({},e,{checked:t});return N.jsxs(TPe,{className:n.root,ownerState:i,children:[N.jsx(wPe,{fontSize:r,className:n.background,ownerState:i}),N.jsx(xPe,{fontSize:r,className:n.dot,ownerState:i})]})}const kPe=P.createContext(void 0),dre=kPe;function CPe(){return P.useContext(dre)}function _Pe(e){return Qt("MuiRadio",e)}const fQ=Yt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),APe=["checked","checkedIcon","color","icon","name","onChange","size","className"],RPe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${gt(n)}`,r!=="medium"&&`size${gt(r)}`]};return B({},t,Vt(i,_Pe,t))},IPe=Ae(M$,{shouldForwardProp:e=>ys(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${gt(n.size)}`],t[`color${gt(n.color)}`]]}})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${fQ.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${fQ.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function DPe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const pQ=N.jsx(cre,{checked:!0}),hQ=N.jsx(cre,{}),NPe=P.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=pQ,color:l="primary",icon:u=hQ,name:c,onChange:d,size:p="medium",className:m}=o,g=st(o,APe),v=B({},o,{color:l,size:p}),E=RPe(v),O=CPe();let S=s;const x=ZC(d,O&&O.onChange);let C=c;return O&&(typeof S>"u"&&(S=DPe(O.value,o.value)),typeof C>"u"&&(C=O.name)),N.jsx(IPe,B({type:"radio",icon:P.cloneElement(u,{fontSize:(r=hQ.props.fontSize)!=null?r:p}),checkedIcon:P.cloneElement(a,{fontSize:(i=pQ.props.fontSize)!=null?i:p}),ownerState:v,classes:E,name:C,checked:S,onChange:x,ref:n,className:dt(E.root,m)},g))}),mQ=NPe,PPe=["actions","children","defaultValue","name","onChange","value"],LPe=P.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:s,onChange:a,value:l}=t,u=st(t,PPe),c=P.useRef(null),[d,p]=ms({controlled:l,default:o,name:"RadioGroup"});P.useImperativeHandle(r,()=>({focus:()=>{let E=c.current.querySelector("input:not(:disabled):checked");E||(E=c.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const m=Vn(n,c),g=Ic(s),v=P.useMemo(()=>({name:g,onChange(E){p(E.target.value),a&&a(E,E.target.value)},value:d}),[g,a,p,d]);return N.jsx(dre.Provider,{value:v,children:N.jsx($$,B({role:"radiogroup",ref:m},u,{children:i}))})}),MPe=LPe;function $Pe(e){return Qt("MuiSelect",e)}const hv=Yt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var gQ;const FPe=["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"],BPe=Ae("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${hv.select}`]:t.select},{[`&.${hv.select}`]:t[n.variant]},{[`&.${hv.error}`]:t.error},{[`&.${hv.multiple}`]:t.multiple}]}})(sre,{[`&.${hv.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),UPe=Ae("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gt(n.variant)}`],n.open&&t.iconOpen]}})(are),jPe=Ae("input",{shouldForwardProp:e=>v$(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 bQ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function zPe(e){return e==null||typeof e=="string"&&!e.trim()}const VPe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${gt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Vt(a,$Pe,t)},HPe=P.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:a,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:m,error:g=!1,IconComponent:v,inputRef:E,labelId:O,MenuProps:S={},multiple:x,name:C,onBlur:I,onChange:_,onClose:w,onFocus:F,onOpen:M,open:L,readOnly:W,renderValue:H,SelectDisplayProps:q={},tabIndex:j,value:z,variant:X="standard"}=t,Z=st(t,FPe),[G,ee]=ms({controlled:z,default:d,name:"Select"}),[Q,ae]=ms({controlled:L,default:c,name:"Select"}),Te=P.useRef(null),te=P.useRef(null),[pe,Oe]=P.useState(null),{current:me}=P.useRef(L!=null),[Re,Fe]=P.useState(),et=Vn(n,E),ct=P.useCallback(pt=>{te.current=pt,pt&&Oe(pt)},[]),Ye=pe==null?void 0:pe.parentNode;P.useImperativeHandle(et,()=>({focus:()=>{te.current.focus()},node:Te.current,value:G}),[G]),P.useEffect(()=>{c&&Q&&pe&&!me&&(Fe(a?null:Ye.clientWidth),te.current.focus())},[pe,a]),P.useEffect(()=>{s&&te.current.focus()},[s]),P.useEffect(()=>{if(!O)return;const pt=ci(te.current).getElementById(O);if(pt){const Mt=()=>{getSelection().isCollapsed&&te.current.focus()};return pt.addEventListener("click",Mt),()=>{pt.removeEventListener("click",Mt)}}},[O]);const nt=(pt,Mt)=>{pt?M&&M(Mt):w&&w(Mt),me||(Fe(a?null:Ye.clientWidth),ae(pt))},ke=pt=>{pt.button===0&&(pt.preventDefault(),te.current.focus(),nt(!0,pt))},qe=pt=>{nt(!1,pt)},Ge=P.Children.toArray(l),rt=pt=>{const Mt=Ge.find(it=>it.props.value===pt.target.value);Mt!==void 0&&(ee(Mt.props.value),_&&_(pt,Mt))},Ot=pt=>Mt=>{let it;if(Mt.currentTarget.hasAttribute("tabindex")){if(x){it=Array.isArray(G)?G.slice():[];const bt=G.indexOf(pt.props.value);bt===-1?it.push(pt.props.value):it.splice(bt,1)}else it=pt.props.value;if(pt.props.onClick&&pt.props.onClick(Mt),G!==it&&(ee(it),_)){const bt=Mt.nativeEvent||Mt,$t=new bt.constructor(bt.type,bt);Object.defineProperty($t,"target",{writable:!0,value:{value:it,name:C}}),_($t,pt)}x||nt(!1,Mt)}},Ke=pt=>{W||[" ","ArrowUp","ArrowDown","Enter"].indexOf(pt.key)!==-1&&(pt.preventDefault(),nt(!0,pt))},de=pe!==null&&Q,oe=pt=>{!de&&I&&(Object.defineProperty(pt,"target",{writable:!0,value:{value:G,name:C}}),I(pt))};delete Z["aria-invalid"];let ie,Me;const He=[];let Be=!1;(r_({value:G})||m)&&(H?ie=H(G):Be=!0);const ce=Ge.map(pt=>{if(!P.isValidElement(pt))return null;let Mt;if(x){if(!Array.isArray(G))throw new Error(Dh(2));Mt=G.some(it=>bQ(it,pt.props.value)),Mt&&Be&&He.push(pt.props.children)}else Mt=bQ(G,pt.props.value),Mt&&Be&&(Me=pt.props.children);return P.cloneElement(pt,{"aria-selected":Mt?"true":"false",onClick:Ot(pt),onKeyUp:it=>{it.key===" "&&it.preventDefault(),pt.props.onKeyUp&&pt.props.onKeyUp(it)},role:"option",selected:Mt,value:void 0,"data-value":pt.props.value})});Be&&(x?He.length===0?ie=null:ie=He.reduce((pt,Mt,it)=>(pt.push(Mt),it{const{classes:t}=e;return t},B$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ys(e)&&e!=="variant",slot:"Root"},qPe=Ae(ere,B$)(""),ZPe=Ae(ure,B$)(""),XPe=Ae(qne,B$)(""),fre=P.forwardRef(function(t,n){const r=Nt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=jne,id:d,input:p,inputProps:m,label:g,labelId:v,MenuProps:E,multiple:O=!1,native:S=!1,onClose:x,onOpen:C,open:I,renderValue:_,SelectDisplayProps:w,variant:F="outlined"}=r,M=st(r,QPe),L=S?dPe:WPe,W=Ud(),H=Zh({props:r,muiFormControl:W,states:["variant","error"]}),q=H.variant||F,j=B({},r,{variant:q,classes:s}),z=GPe(j),X=st(z,YPe),Z=p||{standard:N.jsx(qPe,{ownerState:j}),outlined:N.jsx(ZPe,{label:g,ownerState:j}),filled:N.jsx(XPe,{ownerState:j})}[q],G=Vn(n,Z.ref);return N.jsx(P.Fragment,{children:P.cloneElement(Z,B({inputComponent:L,inputProps:B({children:o,error:H.error,IconComponent:c,variant:q,type:void 0,multiple:O},S?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:E,onClose:x,onOpen:C,open:I,renderValue:_,SelectDisplayProps:B({id:d},w)},m,{classes:m?la(X,m.classes):X},p?p.props.inputProps:{})},(O&&S||u)&&q==="outlined"?{notched:!0}:{},{ref:G,className:dt(Z.props.className,a,z.root)},!p&&{variant:q},M))})});fre.muiName="Select";const pre=fre,KPe=e=>!e||!Id(e);function JPe(e){return Qt("MuiSlider",e)}const bc=Yt("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"]),e3e=e=>{const{open:t}=e;return{offset:dt(t&&bc.valueLabelOpen),circle:bc.valueLabelCircle,label:bc.valueLabelLabel}};function t3e(e){const{children:t,className:n,value:r}=e,i=e3e(e);return t?P.cloneElement(t,{className:dt(t.props.className)},N.jsxs(P.Fragment,{children:[t.props.children,N.jsx("span",{className:dt(i.offset,n),"aria-hidden":!0,children:N.jsx("span",{className:i.circle,children:N.jsx("span",{className:i.label,children:r})})})]})):null}const n3e=["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 yQ(e){return e}const r3e=Ae("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${gt(n.color)}`],n.size!=="medium"&&t[`size${gt(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})=>B({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"&&B({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"&&B({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"},[`&.${bc.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${bc.dragging}`]:{[`& .${bc.thumb}, & .${bc.track}`]:{transition:"none"}}})),i3e=Ae("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>B({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})),o3e=Ae("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?C2(e.palette[t.color].main,.62):k2(e.palette[t.color].main,.5);return B({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})}),s3e=Ae("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${gt(n.color)}`],n.size!=="medium"&&t[`thumbSize${gt(n.size)}`]]}})(({theme:e,ownerState:t})=>B({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":B({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, &.${bc.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:In(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${bc.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:In(e.palette[t.color].main,.16)}`},[`&.${bc.disabled}`]:{"&:hover":{boxShadow:"none"}}})),a3e=Ae(t3e,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>B({[`&.${bc.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"})),l3e=Ae("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>v$(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>B({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})),u3e=Ae("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>v$(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>B({},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})),c3e=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${gt(a)}`,l&&`size${gt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${gt(l)}`,a&&`thumbColor${gt(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Vt(u,JPe,s)},d3e=({children:e})=>e,f3e=P.forwardRef(function(t,n){var r,i,o,s,a,l,u,c,d,p,m,g,v,E,O,S,x,C,I,_,w,F,M,L;const W=Nt({props:t,name:"MuiSlider"}),q=Di().direction==="rtl",{"aria-label":j,"aria-valuetext":z,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:ee={},color:Q="primary",classes:ae,className:Te,disableSwap:te=!1,disabled:pe=!1,getAriaLabel:Oe,getAriaValueText:me,marks:Re=!1,max:Fe=100,min:et=0,orientation:ct="horizontal",size:Ye="medium",step:nt=1,scale:ke=yQ,slotProps:qe,slots:Ge,track:rt="normal",valueLabelDisplay:Ot="off",valueLabelFormat:Ke=yQ}=W,de=st(W,n3e),oe=B({},W,{isRtl:q,max:Fe,min:et,classes:ae,disabled:pe,disableSwap:te,orientation:ct,marks:Re,color:Q,size:Ye,step:nt,scale:ke,track:rt,valueLabelDisplay:Ot,valueLabelFormat:Ke}),{axisProps:ie,getRootProps:Me,getHiddenInputProps:He,getThumbProps:Be,open:ce,active:ye,axis:be,focusedThumbIndex:we,range:Ie,dragging:ft,marks:_t,values:At,trackOffset:pt,trackLeap:Mt,getThumbStyle:it}=j_e(B({},oe,{rootRef:n}));oe.marked=_t.length>0&&_t.some(Xe=>Xe.label),oe.dragging=ft,oe.focusedThumbIndex=we;const bt=c3e(oe),$t=(r=(i=Ge==null?void 0:Ge.root)!=null?i:G.Root)!=null?r:r3e,Xt=(o=(s=Ge==null?void 0:Ge.rail)!=null?s:G.Rail)!=null?o:i3e,vn=(a=(l=Ge==null?void 0:Ge.track)!=null?l:G.Track)!=null?a:o3e,Cn=(u=(c=Ge==null?void 0:Ge.thumb)!=null?c:G.Thumb)!=null?u:s3e,$n=(d=(p=Ge==null?void 0:Ge.valueLabel)!=null?p:G.ValueLabel)!=null?d:a3e,qn=(m=(g=Ge==null?void 0:Ge.mark)!=null?g:G.Mark)!=null?m:l3e,Ce=(v=(E=Ge==null?void 0:Ge.markLabel)!=null?E:G.MarkLabel)!=null?v:u3e,$e=(O=(S=Ge==null?void 0:Ge.input)!=null?S:G.Input)!=null?O:"input",tt=(x=qe==null?void 0:qe.root)!=null?x:ee.root,De=(C=qe==null?void 0:qe.rail)!=null?C:ee.rail,wt=(I=qe==null?void 0:qe.track)!=null?I:ee.track,Gt=(_=qe==null?void 0:qe.thumb)!=null?_:ee.thumb,jt=(w=qe==null?void 0:qe.valueLabel)!=null?w:ee.valueLabel,qt=(F=qe==null?void 0:qe.mark)!=null?F:ee.mark,Bt=(M=qe==null?void 0:qe.markLabel)!=null?M:ee.markLabel,On=(L=qe==null?void 0:qe.input)!=null?L:ee.input,je=nr({elementType:$t,getSlotProps:Me,externalSlotProps:tt,externalForwardedProps:de,additionalProps:B({},KPe($t)&&{as:Z}),ownerState:B({},oe,tt==null?void 0:tt.ownerState),className:[bt.root,Te]}),ze=nr({elementType:Xt,externalSlotProps:De,ownerState:oe,className:bt.rail}),Ve=nr({elementType:vn,externalSlotProps:wt,additionalProps:{style:B({},ie[be].offset(pt),ie[be].leap(Mt))},ownerState:B({},oe,wt==null?void 0:wt.ownerState),className:bt.track}),yt=nr({elementType:Cn,getSlotProps:Be,externalSlotProps:Gt,ownerState:B({},oe,Gt==null?void 0:Gt.ownerState),className:bt.thumb}),Nn=nr({elementType:$n,externalSlotProps:jt,ownerState:B({},oe,jt==null?void 0:jt.ownerState),className:bt.valueLabel}),Kt=nr({elementType:qn,externalSlotProps:qt,ownerState:oe,className:bt.mark}),An=nr({elementType:Ce,externalSlotProps:Bt,ownerState:oe,className:bt.markLabel}),Kr=nr({elementType:$e,getSlotProps:He,externalSlotProps:On,ownerState:oe});return N.jsxs($t,B({},je,{children:[N.jsx(Xt,B({},ze)),N.jsx(vn,B({},Ve)),_t.filter(Xe=>Xe.value>=et&&Xe.value<=Fe).map((Xe,Le)=>{const Rt=n_(Xe.value,et,Fe),en=ie[be].offset(Rt);let mn;return rt===!1?mn=At.indexOf(Xe.value)!==-1:mn=rt==="normal"&&(Ie?Xe.value>=At[0]&&Xe.value<=At[At.length-1]:Xe.value<=At[0])||rt==="inverted"&&(Ie?Xe.value<=At[0]||Xe.value>=At[At.length-1]:Xe.value>=At[0]),N.jsxs(P.Fragment,{children:[N.jsx(qn,B({"data-index":Le},Kt,!Id(qn)&&{markActive:mn},{style:B({},en,Kt.style),className:dt(Kt.className,mn&&bt.markActive)})),Xe.label!=null?N.jsx(Ce,B({"aria-hidden":!0,"data-index":Le},An,!Id(Ce)&&{markLabelActive:mn},{style:B({},en,An.style),className:dt(bt.markLabel,An.className,mn&&bt.markLabelActive),children:Xe.label})):null]},Le)}),At.map((Xe,Le)=>{const Rt=n_(Xe,et,Fe),en=ie[be].offset(Rt),mn=Ot==="off"?d3e:$n;return N.jsx(mn,B({},!Id(mn)&&{valueLabelFormat:Ke,valueLabelDisplay:Ot,value:typeof Ke=="function"?Ke(ke(Xe),Le):Ke,index:Le,open:ce===Le||ye===Le||Ot==="on",disabled:pe},Nn,{children:N.jsx(Cn,B({"data-index":Le},yt,{className:dt(bt.thumb,yt.className,ye===Le&&bt.active,we===Le&&bt.focusVisible),style:B({},en,it(Le),yt.style),children:N.jsx($e,B({"data-index":Le,"aria-label":Oe?Oe(Le):j,"aria-valuenow":ke(Xe),"aria-labelledby":X,"aria-valuetext":me?me(ke(Xe),Le):z,value:At[Le]},Kr))}))}),Le)})]}))}),p3e=f3e;function h3e(e){return Qt("MuiTooltip",e)}const m3e=Yt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),sh=m3e,g3e=["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 b3e(e){return Math.round(e*1e5)/1e5}const y3e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${gt(o.split("-")[0])}`],arrow:["arrow"]};return Vt(s,h3e,t)},v3e=Ae(Zy,{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})=>B({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${sh.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${sh.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${sh.arrow}`]:B({},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"] .${sh.arrow}`]:B({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),O3e=Ae("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${gt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>B({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:In(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${b3e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${sh.popper}[data-popper-placement*="left"] &`]:B({transformOrigin:"right center"},t.isRtl?B({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):B({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${sh.popper}[data-popper-placement*="right"] &`]:B({transformOrigin:"left center"},t.isRtl?B({marginRight:"14px"},t.touch&&{marginRight:"24px"}):B({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${sh.popper}[data-popper-placement*="top"] &`]:B({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${sh.popper}[data-popper-placement*="bottom"] &`]:B({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),E3e=Ae("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:In(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let mx=!1;const vQ=new HS;let mv={x:0,y:0};function gx(e,t){return n=>{t&&t(n),e(n)}}const S3e=P.forwardRef(function(t,n){var r,i,o,s,a,l,u,c,d,p,m,g,v,E,O,S,x,C,I;const _=Nt({props:t,name:"MuiTooltip"}),{arrow:w=!1,children:F,components:M={},componentsProps:L={},describeChild:W=!1,disableFocusListener:H=!1,disableHoverListener:q=!1,disableInteractive:j=!1,disableTouchListener:z=!1,enterDelay:X=100,enterNextDelay:Z=0,enterTouchDelay:G=700,followCursor:ee=!1,id:Q,leaveDelay:ae=0,leaveTouchDelay:Te=1500,onClose:te,onOpen:pe,open:Oe,placement:me="bottom",PopperComponent:Re,PopperProps:Fe={},slotProps:et={},slots:ct={},title:Ye,TransitionComponent:nt=i_,TransitionProps:ke}=_,qe=st(_,g3e),Ge=P.isValidElement(F)?F:N.jsx("span",{children:F}),rt=Di(),Ot=rt.direction==="rtl",[Ke,de]=P.useState(),[oe,ie]=P.useState(null),Me=P.useRef(!1),He=j||ee,Be=Bm(),ce=Bm(),ye=Bm(),be=Bm(),[we,Ie]=ms({controlled:Oe,default:!1,name:"Tooltip",state:"open"});let ft=we;const _t=Ic(Q),At=P.useRef(),pt=on(()=>{At.current!==void 0&&(document.body.style.WebkitUserSelect=At.current,At.current=void 0),be.clear()});P.useEffect(()=>pt,[pt]);const Mt=bn=>{vQ.clear(),mx=!0,Ie(!0),pe&&!ft&&pe(bn)},it=on(bn=>{vQ.start(800+ae,()=>{mx=!1}),Ie(!1),te&&ft&&te(bn),Be.start(rt.transitions.duration.shortest,()=>{Me.current=!1})}),bt=bn=>{Me.current&&bn.type!=="touchstart"||(Ke&&Ke.removeAttribute("title"),ce.clear(),ye.clear(),X||mx&&Z?ce.start(mx?Z:X,()=>{Mt(bn)}):Mt(bn))},$t=bn=>{ce.clear(),ye.start(ae,()=>{it(bn)})},{isFocusVisibleRef:Xt,onBlur:vn,onFocus:Cn,ref:$n}=h2(),[,qn]=P.useState(!1),Ce=bn=>{vn(bn),Xt.current===!1&&(qn(!1),$t(bn))},$e=bn=>{Ke||de(bn.currentTarget),Cn(bn),Xt.current===!0&&(qn(!0),bt(bn))},tt=bn=>{Me.current=!0;const _n=Ge.props;_n.onTouchStart&&_n.onTouchStart(bn)},De=bt,wt=$t,Gt=bn=>{tt(bn),ye.clear(),Be.clear(),pt(),At.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.start(G,()=>{document.body.style.WebkitUserSelect=At.current,bt(bn)})},jt=bn=>{Ge.props.onTouchEnd&&Ge.props.onTouchEnd(bn),pt(),ye.start(Te,()=>{it(bn)})};P.useEffect(()=>{if(!ft)return;function bn(_n){(_n.key==="Escape"||_n.key==="Esc")&&it(_n)}return document.addEventListener("keydown",bn),()=>{document.removeEventListener("keydown",bn)}},[it,ft]);const qt=Vn(Ge.ref,$n,de,n);!Ye&&Ye!==0&&(ft=!1);const Bt=P.useRef(),On=bn=>{const _n=Ge.props;_n.onMouseMove&&_n.onMouseMove(bn),mv={x:bn.clientX,y:bn.clientY},Bt.current&&Bt.current.update()},je={},ze=typeof Ye=="string";W?(je.title=!ft&&ze&&!q?Ye:null,je["aria-describedby"]=ft?_t:null):(je["aria-label"]=ze?Ye:null,je["aria-labelledby"]=ft&&!ze?_t:null);const Ve=B({},je,qe,Ge.props,{className:dt(qe.className,Ge.props.className),onTouchStart:tt,ref:qt},ee?{onMouseMove:On}:{}),yt={};z||(Ve.onTouchStart=Gt,Ve.onTouchEnd=jt),q||(Ve.onMouseOver=gx(De,Ve.onMouseOver),Ve.onMouseLeave=gx(wt,Ve.onMouseLeave),He||(yt.onMouseOver=De,yt.onMouseLeave=wt)),H||(Ve.onFocus=gx($e,Ve.onFocus),Ve.onBlur=gx(Ce,Ve.onBlur),He||(yt.onFocus=$e,yt.onBlur=Ce));const Nn=P.useMemo(()=>{var bn;let _n=[{name:"arrow",enabled:!!oe,options:{element:oe,padding:4}}];return(bn=Fe.popperOptions)!=null&&bn.modifiers&&(_n=_n.concat(Fe.popperOptions.modifiers)),B({},Fe.popperOptions,{modifiers:_n})},[oe,Fe]),Kt=B({},_,{isRtl:Ot,arrow:w,disableInteractive:He,placement:me,PopperComponentProp:Re,touch:Me.current}),An=y3e(Kt),Kr=(r=(i=ct.popper)!=null?i:M.Popper)!=null?r:v3e,Xe=(o=(s=(a=ct.transition)!=null?a:M.Transition)!=null?s:nt)!=null?o:i_,Le=(l=(u=ct.tooltip)!=null?u:M.Tooltip)!=null?l:O3e,Rt=(c=(d=ct.arrow)!=null?d:M.Arrow)!=null?c:E3e,en=Zv(Kr,B({},Fe,(p=et.popper)!=null?p:L.popper,{className:dt(An.popper,Fe==null?void 0:Fe.className,(m=(g=et.popper)!=null?g:L.popper)==null?void 0:m.className)}),Kt),mn=Zv(Xe,B({},ke,(v=et.transition)!=null?v:L.transition),Kt),er=Zv(Le,B({},(E=et.tooltip)!=null?E:L.tooltip,{className:dt(An.tooltip,(O=(S=et.tooltip)!=null?S:L.tooltip)==null?void 0:O.className)}),Kt),Zn=Zv(Rt,B({},(x=et.arrow)!=null?x:L.arrow,{className:dt(An.arrow,(C=(I=et.arrow)!=null?I:L.arrow)==null?void 0:C.className)}),Kt);return N.jsxs(P.Fragment,{children:[P.cloneElement(Ge,Ve),N.jsx(Kr,B({as:Re??Zy,placement:me,anchorEl:ee?{getBoundingClientRect:()=>({top:mv.y,left:mv.x,right:mv.x,bottom:mv.y,width:0,height:0})}:Ke,popperRef:Bt,open:Ke?ft:!1,id:_t,transition:!0},yt,en,{popperOptions:Nn,children:({TransitionProps:bn})=>N.jsx(Xe,B({timeout:rt.transitions.duration.shorter},bn,mn,{children:N.jsxs(Le,B({},er,{children:[Ye,w?N.jsx(Rt,B({},Zn,{ref:ie})):null]}))}))}))]})}),Im=S3e;function T3e(e){return Qt("MuiSwitch",e)}const w3e=Yt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),ka=w3e,x3e=["className","color","edge","size","sx"],k3e=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,a={root:["root",n&&`edge${gt(n)}`,`size${gt(r)}`],switchBase:["switchBase",`color${gt(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Vt(a,T3e,t);return B({},t,l)},C3e=Ae("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${gt(n.edge)}`],t[`size${gt(n.size)}`]]}})(({ownerState:e})=>B({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,[`& .${ka.thumb}`]:{width:16,height:16},[`& .${ka.switchBase}`]:{padding:4,[`&.${ka.checked}`]:{transform:"translateX(16px)"}}})),_3e=Ae(M$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ka.input}`]:t.input},n.color!=="default"&&t[`color${gt(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}),[`&.${ka.checked}`]:{transform:"translateX(20px)"},[`&.${ka.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ka.checked} + .${ka.track}`]:{opacity:.5},[`&.${ka.disabled} + .${ka.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ka.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>B({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ka.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ka.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?C2(e.palette[t.color].main,.62):k2(e.palette[t.color].main,.55)}`}},[`&.${ka.checked} + .${ka.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),A3e=Ae("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}`})),R3e=Ae("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%"})),I3e=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:a="medium",sx:l}=r,u=st(r,x3e),c=B({},r,{color:o,edge:s,size:a}),d=k3e(c),p=N.jsx(R3e,{className:d.thumb,ownerState:c});return N.jsxs(C3e,{className:dt(d.root,i),sx:l,ownerState:c,children:[N.jsx(_3e,B({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:B({},d,{root:d.switchBase})})),N.jsx(A3e,{className:d.track,ownerState:c})]})}),D3e=I3e;function N3e(e){return Qt("MuiTab",e)}const P3e=Yt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ym=P3e,L3e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],M3e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:a,disabled:l}=e,u={root:["root",o&&s&&"labelIcon",`textColor${gt(n)}`,r&&"fullWidth",i&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Vt(u,N3e,t)},$3e=Ae(Gl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${gt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>B({},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,[`& > .${ym.iconWrapper}`]:B({},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,[`&.${ym.selected}`]:{opacity:1},[`&.${ym.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ym.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ym.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ym.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ym.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)})),F3e=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:u="top",indicator:c,label:d,onChange:p,onClick:m,onFocus:g,selected:v,selectionFollowsFocus:E,textColor:O="inherit",value:S,wrapped:x=!1}=r,C=st(r,L3e),I=B({},r,{disabled:o,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:u,label:!!d,fullWidth:a,textColor:O,wrapped:x}),_=M3e(I),w=l&&d&&P.isValidElement(l)?P.cloneElement(l,{className:dt(_.iconWrapper,l.props.className)}):l,F=L=>{!v&&p&&p(L,S),m&&m(L)},M=L=>{E&&!v&&p&&p(L,S),g&&g(L)};return N.jsxs($3e,B({focusRipple:!s,className:dt(_.root,i),ref:n,role:"tab","aria-selected":v,disabled:o,onClick:F,onFocus:M,ownerState:I,tabIndex:v?0:-1},C,{children:[u==="top"||u==="start"?N.jsxs(P.Fragment,{children:[w,d]}):N.jsxs(P.Fragment,{children:[d,w]}),c]}))}),OQ=F3e;function B3e(e){return Qt("MuiToolbar",e)}Yt("MuiToolbar",["root","gutters","regular","dense"]);const U3e=["className","component","disableGutters","variant"],j3e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Vt({root:["root",!n&&"gutters",r]},B3e,t)},z3e=Ae("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})=>B({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),V3e=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular"}=r,l=st(r,U3e),u=B({},r,{component:o,disableGutters:s,variant:a}),c=j3e(u);return N.jsx(z3e,B({as:o,className:dt(c.root,i),ref:n,ownerState:u},l))}),hre=V3e,H3e=Po(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),W3e=Po(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Q3e(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Y3e(e,t,n,r={},i=()=>{}){const{ease:o=Q3e,duration:s=300}=r;let a=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=p=>{if(u){i(new Error("Animation cancelled"));return}a===null&&(a=p);const m=Math.min(1,(p-a)/s);if(t[e]=o(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const G3e=["onChange"],q3e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Z3e(e){const{onChange:t}=e,n=st(e,G3e),r=P.useRef(),i=P.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Ji(()=>{const s=Gy(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),a=Bu(i.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),P.useEffect(()=>{o(),t(r.current)},[t]),N.jsx("div",B({style:q3e,ref:i},n))}function X3e(e){return Qt("MuiTabScrollButton",e)}const K3e=Yt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),J3e=K3e,eLe=["className","slots","slotProps","direction","orientation","disabled"],tLe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Vt({root:["root",n,r&&"disabled"]},X3e,t)},nLe=Ae(Gl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>B({width:40,flexShrink:0,opacity:.8,[`&.${J3e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),rLe=P.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:u}=o,c=st(o,eLe),p=Di().direction==="rtl",m=B({isRtl:p},o),g=tLe(m),v=(r=a.StartScrollButtonIcon)!=null?r:H3e,E=(i=a.EndScrollButtonIcon)!=null?i:W3e,O=nr({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),S=nr({elementType:E,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return N.jsx(nLe,B({component:"div",className:dt(g.root,s),ref:n,role:null,ownerState:m,tabIndex:null},c,{children:u==="left"?N.jsx(v,B({},O)):N.jsx(E,B({},S))}))}),iLe=rLe;function oLe(e){return Qt("MuiTabs",e)}const sLe=Yt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Mk=sLe,aLe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],EQ=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,SQ=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,bx=(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}}},lLe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return Vt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},oLe,l)},uLe=Ae("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mk.scrollButtons}`]:t.scrollButtons},{[`& .${Mk.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>B({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Mk.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),cLe=Ae("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})=>B({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"})),dLe=Ae("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})=>B({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),fLe=Ae("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>B({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})),pLe=Ae(Z3e)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),TQ={},hLe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTabs"}),i=Di(),o=i.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:l,centered:u=!1,children:c,className:d,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:g="primary",onChange:v,orientation:E="horizontal",ScrollButtonComponent:O=iLe,scrollButtons:S="auto",selectionFollowsFocus:x,slots:C={},slotProps:I={},TabIndicatorProps:_={},TabScrollButtonProps:w={},textColor:F="primary",value:M,variant:L="standard",visibleScrollbar:W=!1}=r,H=st(r,aLe),q=L==="scrollable",j=E==="vertical",z=j?"scrollTop":"scrollLeft",X=j?"top":"left",Z=j?"bottom":"right",G=j?"clientHeight":"clientWidth",ee=j?"height":"width",Q=B({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:g,orientation:E,vertical:j,scrollButtons:S,textColor:F,variant:L,visibleScrollbar:W,fixed:!q,hideScrollbar:q&&!W,scrollableX:q&&!j,scrollableY:q&&j,centered:u&&!q,scrollButtonsHideMobile:!m}),ae=lLe(Q),Te=nr({elementType:C.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:Q}),te=nr({elementType:C.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:Q}),[pe,Oe]=P.useState(!1),[me,Re]=P.useState(TQ),[Fe,et]=P.useState(!1),[ct,Ye]=P.useState(!1),[nt,ke]=P.useState(!1),[qe,Ge]=P.useState({overflow:"hidden",scrollbarWidth:0}),rt=new Map,Ot=P.useRef(null),Ke=P.useRef(null),de=()=>{const it=Ot.current;let bt;if(it){const Xt=it.getBoundingClientRect();bt={clientWidth:it.clientWidth,scrollLeft:it.scrollLeft,scrollTop:it.scrollTop,scrollLeftNormalized:STe(it,i.direction),scrollWidth:it.scrollWidth,top:Xt.top,bottom:Xt.bottom,left:Xt.left,right:Xt.right}}let $t;if(it&&M!==!1){const Xt=Ke.current.children;if(Xt.length>0){const vn=Xt[rt.get(M)];$t=vn?vn.getBoundingClientRect():null}}return{tabsMeta:bt,tabMeta:$t}},oe=on(()=>{const{tabsMeta:it,tabMeta:bt}=de();let $t=0,Xt;if(j)Xt="top",bt&&it&&($t=bt.top-it.top+it.scrollTop);else if(Xt=o?"right":"left",bt&&it){const Cn=o?it.scrollLeftNormalized+it.clientWidth-it.scrollWidth:it.scrollLeft;$t=(o?-1:1)*(bt[Xt]-it[Xt]+Cn)}const vn={[Xt]:$t,[ee]:bt?bt[ee]:0};if(isNaN(me[Xt])||isNaN(me[ee]))Re(vn);else{const Cn=Math.abs(me[Xt]-vn[Xt]),$n=Math.abs(me[ee]-vn[ee]);(Cn>=1||$n>=1)&&Re(vn)}}),ie=(it,{animation:bt=!0}={})=>{bt?Y3e(z,Ot.current,it,{duration:i.transitions.duration.standard}):Ot.current[z]=it},Me=it=>{let bt=Ot.current[z];j?bt+=it:(bt+=it*(o?-1:1),bt*=o&&ane()==="reverse"?-1:1),ie(bt)},He=()=>{const it=Ot.current[G];let bt=0;const $t=Array.from(Ke.current.children);for(let Xt=0;Xt<$t.length;Xt+=1){const vn=$t[Xt];if(bt+vn[G]>it){Xt===0&&(bt=it);break}bt+=vn[G]}return bt},Be=()=>{Me(-1*He())},ce=()=>{Me(He())},ye=P.useCallback(it=>{Ge({overflow:null,scrollbarWidth:it})},[]),be=()=>{const it={};it.scrollbarSizeListener=q?N.jsx(pLe,{onChange:ye,className:dt(ae.scrollableX,ae.hideScrollbar)}):null;const $t=q&&(S==="auto"&&(Fe||ct)||S===!0);return it.scrollButtonStart=$t?N.jsx(O,B({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Te},orientation:E,direction:o?"right":"left",onClick:Be,disabled:!Fe},w,{className:dt(ae.scrollButtons,w.className)})):null,it.scrollButtonEnd=$t?N.jsx(O,B({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:te},orientation:E,direction:o?"left":"right",onClick:ce,disabled:!ct},w,{className:dt(ae.scrollButtons,w.className)})):null,it},we=on(it=>{const{tabsMeta:bt,tabMeta:$t}=de();if(!(!$t||!bt)){if($t[X]bt[Z]){const Xt=bt[z]+($t[Z]-bt[Z]);ie(Xt,{animation:it})}}}),Ie=on(()=>{q&&S!==!1&&ke(!nt)});P.useEffect(()=>{const it=Gy(()=>{Ot.current&&oe()});let bt;const $t=Cn=>{Cn.forEach($n=>{$n.removedNodes.forEach(qn=>{var Ce;(Ce=bt)==null||Ce.unobserve(qn)}),$n.addedNodes.forEach(qn=>{var Ce;(Ce=bt)==null||Ce.observe(qn)})}),it(),Ie()},Xt=Bu(Ot.current);Xt.addEventListener("resize",it);let vn;return typeof ResizeObserver<"u"&&(bt=new ResizeObserver(it),Array.from(Ke.current.children).forEach(Cn=>{bt.observe(Cn)})),typeof MutationObserver<"u"&&(vn=new MutationObserver($t),vn.observe(Ke.current,{childList:!0})),()=>{var Cn,$n;it.clear(),Xt.removeEventListener("resize",it),(Cn=vn)==null||Cn.disconnect(),($n=bt)==null||$n.disconnect()}},[oe,Ie]),P.useEffect(()=>{const it=Array.from(Ke.current.children),bt=it.length;if(typeof IntersectionObserver<"u"&&bt>0&&q&&S!==!1){const $t=it[0],Xt=it[bt-1],vn={root:Ot.current,threshold:.99},Cn=$e=>{et(!$e[0].isIntersecting)},$n=new IntersectionObserver(Cn,vn);$n.observe($t);const qn=$e=>{Ye(!$e[0].isIntersecting)},Ce=new IntersectionObserver(qn,vn);return Ce.observe(Xt),()=>{$n.disconnect(),Ce.disconnect()}}},[q,S,nt,c==null?void 0:c.length]),P.useEffect(()=>{Oe(!0)},[]),P.useEffect(()=>{oe()}),P.useEffect(()=>{we(TQ!==me)},[we,me]),P.useImperativeHandle(l,()=>({updateIndicator:oe,updateScrollButtons:Ie}),[oe,Ie]);const ft=N.jsx(fLe,B({},_,{className:dt(ae.indicator,_.className),ownerState:Q,style:B({},me,_.style)}));let _t=0;const At=P.Children.map(c,it=>{if(!P.isValidElement(it))return null;const bt=it.props.value===void 0?_t:it.props.value;rt.set(bt,_t);const $t=bt===M;return _t+=1,P.cloneElement(it,B({fullWidth:L==="fullWidth",indicator:$t&&!pe&&ft,selected:$t,selectionFollowsFocus:x,onChange:v,textColor:F,value:bt},_t===1&&M===!1&&!it.props.tabIndex?{tabIndex:0}:{}))}),pt=it=>{const bt=Ke.current,$t=ci(bt).activeElement;if($t.getAttribute("role")!=="tab")return;let vn=E==="horizontal"?"ArrowLeft":"ArrowUp",Cn=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&o&&(vn="ArrowRight",Cn="ArrowLeft"),it.key){case vn:it.preventDefault(),bx(bt,$t,SQ);break;case Cn:it.preventDefault(),bx(bt,$t,EQ);break;case"Home":it.preventDefault(),bx(bt,null,EQ);break;case"End":it.preventDefault(),bx(bt,null,SQ);break}},Mt=be();return N.jsxs(uLe,B({className:dt(ae.root,d),ownerState:Q,ref:n,as:p},H,{children:[Mt.scrollButtonStart,Mt.scrollbarSizeListener,N.jsxs(cLe,{className:ae.scroller,ownerState:Q,style:{overflow:qe.overflow,[j?`margin${o?"Left":"Right"}`:"marginBottom"]:W?void 0:-qe.scrollbarWidth},ref:Ot,children:[N.jsx(dLe,{"aria-label":s,"aria-labelledby":a,"aria-orientation":E==="vertical"?"vertical":null,className:ae.flexContainer,ownerState:Q,onKeyDown:pt,ref:Ke,role:"tablist",children:At}),pe&&ft]}),Mt.scrollButtonEnd]}))}),mLe=hLe;function gLe(e){return Qt("MuiTextField",e)}Yt("MuiTextField",["root"]);const bLe=["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"],yLe={standard:ere,filled:qne,outlined:ure},vLe=e=>{const{classes:t}=e;return Vt({root:["root"]},gLe,t)},OLe=Ae(Dc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ELe=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:g,id:v,InputLabelProps:E,inputProps:O,InputProps:S,inputRef:x,label:C,maxRows:I,minRows:_,multiline:w=!1,name:F,onBlur:M,onChange:L,onFocus:W,placeholder:H,required:q=!1,rows:j,select:z=!1,SelectProps:X,type:Z,value:G,variant:ee="outlined"}=r,Q=st(r,bLe),ae=B({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:m,multiline:w,required:q,select:z,variant:ee}),Te=vLe(ae),te={};ee==="outlined"&&(E&&typeof E.shrink<"u"&&(te.notched=E.shrink),te.label=C),z&&((!X||!X.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const pe=Ic(v),Oe=g&&pe?`${pe}-helper-text`:void 0,me=C&&pe?`${pe}-label`:void 0,Re=yLe[ee],Fe=N.jsx(Re,B({"aria-describedby":Oe,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:m,multiline:w,name:F,rows:j,maxRows:I,minRows:_,type:Z,value:G,id:pe,inputRef:x,onBlur:M,onChange:L,onFocus:W,placeholder:H,inputProps:O},te,S));return N.jsxs(OLe,B({className:dt(Te.root,a),disabled:c,error:d,fullWidth:m,ref:n,required:q,color:l,variant:ee,ownerState:ae},Q,{children:[C!=null&&C!==""&&N.jsx(tre,B({htmlFor:pe,id:me},E,{children:C})),z?N.jsx(pre,B({"aria-describedby":Oe,id:pe,labelId:me,value:G,input:Fe},X,{children:s})):Fe,g&&N.jsx(Xy,B({id:Oe},p,{children:g}))]}))}),Kh=ELe;function SLe(e){return Qt("MuiToggleButton",e)}const TLe=Yt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ab=TLe,wLe=P.createContext({}),mre=wLe,xLe=P.createContext(void 0),gre=xLe;function kLe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const CLe=["value"],_Le=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],ALe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:s}=e,a={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${gt(o)}`,s]};return Vt(a,SLe,t)},RLe=Ae(Gl,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${gt(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),B({},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%"},{[`&.${ab.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ab.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:In(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:In(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),ILe=P.forwardRef(function(t,n){const r=P.useContext(mre),{value:i}=r,o=st(r,CLe),s=P.useContext(gre),a=m2(B({},o,{selected:kLe(t.value,i)}),t),l=Nt({props:a,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:p=!1,disableFocusRipple:m=!1,fullWidth:g=!1,onChange:v,onClick:E,selected:O,size:S="medium",value:x}=l,C=st(l,_Le),I=B({},l,{color:d,disabled:p,disableFocusRipple:m,fullWidth:g,size:S}),_=ALe(I),w=M=>{E&&(E(M,x),M.defaultPrevented)||v&&v(M,x)},F=s||"";return N.jsx(RLe,B({className:dt(o.className,_.root,c,F),disabled:p,focusRipple:!m,ref:n,onClick:w,onChange:v,value:x,ownerState:I,"aria-pressed":O},C,{children:u}))}),hN=ILe;function DLe(e){return Qt("MuiToggleButtonGroup",e)}const NLe=Yt("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Ui=NLe,PLe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],LLe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${gt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Vt(o,DLe,t)},MLe=Ae("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ui.grouped}`]:t.grouped},{[`& .${Ui.grouped}`]:t[`grouped${gt(n.orientation)}`]},{[`& .${Ui.firstButton}`]:t.firstButton},{[`& .${Ui.lastButton}`]:t.lastButton},{[`& .${Ui.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>B({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Ui.grouped}`]:B({},e.orientation==="horizontal"?{[`&.${Ui.selected} + .${Ui.grouped}.${Ui.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Ui.selected} + .${Ui.grouped}.${Ui.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Ui.firstButton},& .${Ui.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ui.lastButton},& .${Ui.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Ui.firstButton},& .${Ui.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Ui.lastButton},& .${Ui.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Ui.lastButton}.${ab.disabled},& .${Ui.middleButton}.${ab.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Ui.lastButton}.${ab.disabled},& .${Ui.middleButton}.${ab.disabled}`]:{borderTop:"1px solid transparent"}})),$Le=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:d="horizontal",size:p="medium",value:m}=r,g=st(r,PLe),v=B({},r,{disabled:a,fullWidth:u,orientation:d,size:p}),E=LLe(v),O=P.useCallback((w,F)=>{if(!c)return;const M=m&&m.indexOf(F);let L;m&&M>=0?(L=m.slice(),L.splice(M,1)):L=m?m.concat(F):[F],c(w,L)},[c,m]),S=P.useCallback((w,F)=>{c&&c(w,m===F?null:F)},[c,m]),x=P.useMemo(()=>({className:E.grouped,onChange:l?S:O,value:m,size:p,fullWidth:u,color:s,disabled:a}),[E.grouped,l,S,O,m,p,u,s,a]),C=wTe(i),I=C.length,_=w=>{const F=w===0,M=w===I-1;return F&&M?"":F?E.firstButton:M?E.lastButton:E.middleButton};return N.jsx(MLe,B({role:"group",className:dt(E.root,o),ref:n,ownerState:v},g,{children:N.jsx(mre.Provider,{value:x,children:C.map((w,F)=>N.jsx(gre.Provider,{value:_(F),children:w},F))})}))}),FLe=$Le;var bre={exports:{}},yre={};/** + `),mIe)),OIe=L.forwardRef(function(t,n){const r=Nt({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,f=st(r,pIe),m=B({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),g=gIe(m),v={},S={},O={};if(d==="determinate"){const E=2*Math.PI*((Rp-u)/2);v.strokeDasharray=E.toFixed(3),O["aria-valuenow"]=Math.round(c),v.strokeDashoffset=`${((100-c)/100*E).toFixed(3)}px`,S.transform="rotate(-90deg)"}return N.jsx(bIe,B({className:dt(g.root,i),style:B({width:s,height:s},S,l),ownerState:m,ref:n,role:"progressbar"},O,f,{children:N.jsx(yIe,{className:g.svg,ownerState:m,viewBox:`${Rp/2} ${Rp/2} ${Rp} ${Rp}`,children:N.jsx(vIe,{className:g.circle,style:v,ownerState:m,cx:Rp,cy:Rp,r:(Rp-u)/2,fill:"none",strokeWidth:u})})}))}),op=OIe,EIe=exe({createStyledComponent:Ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${mt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Nt({props:e,name:"MuiContainer"})}),SIe=EIe,TIe=(e,t)=>B({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),wIe=e=>B({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}}),xIe=(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=B({html:TIe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:B({margin:0},wIe(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 kIe(e){const t=Nt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return N.jsxs(L.Fragment,{children:[N.jsx($ne,{styles:i=>xIe(i,r)}),n]})}function CIe(e){return Qt("MuiModal",e)}Yt("MuiModal",["root","hidden","backdrop"]);const _Ie=["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"],AIe=e=>{const{open:t,exited:n,classes:r}=e;return Vt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},CIe,r)},RIe=Ie("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})=>B({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),IIe=Ie(ZS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),DIe=L.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Nt({name:"MuiModal",props:t}),{BackdropComponent:c=IIe,BackdropProps:d,className:f,closeAfterTransition:m=!1,children:g,container:v,component:S,components:O={},componentsProps:E={},disableAutoFocus:w=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:A=!1,disablePortal:C=!1,disableRestoreFocus:x=!1,disableScrollLock:F=!1,hideBackdrop:M=!1,keepMounted:P=!1,onBackdropClick:V,open:W,slotProps:G,slots:j}=u,z=st(u,_Ie),X=B({},u,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:k,disableEscapeKeyDown:A,disablePortal:C,disableRestoreFocus:x,disableScrollLock:F,hideBackdrop:M,keepMounted:P}),{getRootProps:Z,getBackdropProps:q,getTransitionProps:te,portalRef:Q,isTopModal:se,exited:he,hasTransition:J}=D_e(B({},X,{rootRef:n})),le=B({},X,{exited:he}),ve=AIe(le),ue={};if(g.props.tabIndex===void 0&&(ue.tabIndex="-1"),J){const{onEnter:xe,onExited:Ze}=te();ue.onEnter=xe,ue.onExited=Ze}const we=(r=(i=j==null?void 0:j.root)!=null?i:O.Root)!=null?r:RIe,ke=(o=(a=j==null?void 0:j.backdrop)!=null?a:O.Backdrop)!=null?o:c,Ue=(s=G==null?void 0:G.root)!=null?s:E.root,et=(l=G==null?void 0:G.backdrop)!=null?l:E.backdrop,Me=nr({elementType:we,externalSlotProps:Ue,externalForwardedProps:z,getSlotProps:Z,additionalProps:{ref:n,as:S},ownerState:le,className:dt(f,Ue==null?void 0:Ue.className,ve==null?void 0:ve.root,!le.open&&le.exited&&(ve==null?void 0:ve.hidden))}),qe=nr({elementType:ke,externalSlotProps:et,additionalProps:d,getSlotProps:xe=>q(B({},xe,{onClick:Ze=>{V&&V(Ze),xe!=null&&xe.onClick&&xe.onClick(Ze)}})),className:dt(et==null?void 0:et.className,d==null?void 0:d.className,ve==null?void 0:ve.backdrop),ownerState:le});return!P&&!W&&(!J||he)?null:N.jsx(Dne,{ref:Q,container:v,disablePortal:C,children:N.jsxs(we,B({},Me,{children:[!M&&c?N.jsx(ke,B({},qe)):null,N.jsx(Sne,{disableEnforceFocus:k,disableAutoFocus:w,disableRestoreFocus:x,isEnabled:se,open:W,children:L.cloneElement(g,ue)})]}))})}),Xh=DIe;function NIe(e){return Qt("MuiDialog",e)}const x1=Yt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),PIe=L.createContext({}),LIe=PIe,MIe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],$Ie=Ie(ZS,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),FIe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${mt(n)}`],paper:["paper",`paperScroll${mt(n)}`,`paperWidth${mt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Vt(a,NIe,t)},BIe=Ie(Xh,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),UIe=Ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${mt(n.scroll)}`]]}})(({ownerState:e})=>B({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"}})),jIe=Ie(ja,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${mt(n.scroll)}`],t[`paperWidth${mt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>B({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)`,[`&.${x1.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}`,[`&.${x1.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,[`&.${x1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),zIe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialog"}),i=Di(),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:f=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:S,onClose:O,open:E,PaperComponent:w=ja,PaperProps:k={},scroll:A="paper",TransitionComponent:C=Gf,transitionDuration:x=o,TransitionProps:F}=r,M=st(r,MIe),P=B({},r,{disableEscapeKeyDown:f,fullScreen:m,fullWidth:g,maxWidth:v,scroll:A}),V=FIe(P),W=L.useRef(),G=Z=>{W.current=Z.target===Z.currentTarget},j=Z=>{W.current&&(W.current=null,S&&S(Z),O&&O(Z,"backdropClick"))},z=Ic(s),X=L.useMemo(()=>({titleId:z}),[z]);return N.jsx(BIe,B({className:dt(V.root,d),closeAfterTransition:!0,components:{Backdrop:$Ie},componentsProps:{backdrop:B({transitionDuration:x,as:l},u)},disableEscapeKeyDown:f,onClose:O,open:E,ref:n,onClick:j,ownerState:P},M,{children:N.jsx(C,B({appear:!0,in:E,timeout:x,role:"presentation"},F,{children:N.jsx(UIe,{className:dt(V.container),onMouseDown:G,ownerState:P,children:N.jsx(jIe,B({as:w,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":z},k,{className:dt(V.paper,k.className),ownerState:P,children:N.jsx(LIe.Provider,{value:X,children:c})}))})}))}))}),VIe=zIe;function WIe(e){return Qt("MuiDialogActions",e)}Yt("MuiDialogActions",["root","spacing"]);const HIe=["className","disableSpacing"],QIe=e=>{const{classes:t,disableSpacing:n}=e;return Vt({root:["root",!n&&"spacing"]},WIe,t)},YIe=Ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>B({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),GIe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=st(r,HIe),s=B({},r,{disableSpacing:o}),l=QIe(s);return N.jsx(YIe,B({className:dt(l.root,i),ownerState:s,ref:n},a))}),qIe=GIe;function ZIe(e){return Qt("MuiDialogContent",e)}Yt("MuiDialogContent",["root","dividers"]);const XIe=Yt("MuiDialogTitle",["root"]),KIe=XIe,JIe=["className","dividers"],e2e=e=>{const{classes:t,dividers:n}=e;return Vt({root:["root",n&&"dividers"]},ZIe,t)},t2e=Ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>B({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}`}:{[`.${KIe.root} + &`]:{paddingTop:0}})),n2e=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=st(r,JIe),s=B({},r,{dividers:o}),l=e2e(s);return N.jsx(t2e,B({className:dt(l.root,i),ownerState:s,ref:n},a))}),r2e=n2e;function i2e(e){return Qt("MuiDivider",e)}const o2e=Yt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ZH=o2e,a2e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],s2e=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Vt({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"]},i2e,r)},l2e=Ie("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})=>B({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:In(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>B({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>B({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),u2e=Ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>B({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)`})),jne=L.forwardRef(function(t,n){const r=Nt({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:f="center",variant:m="fullWidth"}=r,g=st(r,a2e),v=B({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:f,variant:m}),S=s2e(v);return N.jsx(l2e,B({as:s,className:dt(S.root,a),role:d,ref:n,ownerState:v},g,{children:o?N.jsx(u2e,{className:S.wrapper,ownerState:v,children:o}):null}))});jne.muiSkipListHighlight=!0;const Pf=jne,c2e=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function d2e(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Bu(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 f2e(e){return typeof e=="function"?e():e}function px(e,t,n){const r=f2e(n),i=d2e(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const p2e=L.forwardRef(function(t,n){const r=Di(),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:f,onEnter:m,onEntered:g,onEntering:v,onExit:S,onExited:O,onExiting:E,style:w,timeout:k=o,TransitionComponent:A=YS}=t,C=st(t,c2e),x=L.useRef(null),F=Vn(l.ref,x,n),M=q=>te=>{q&&(te===void 0?q(x.current):q(x.current,te))},P=M((q,te)=>{px(c,q,u),TF(q),m&&m(q,te)}),V=M((q,te)=>{const Q=Ph({timeout:k,style:w,easing:d},{mode:"enter"});q.style.webkitTransition=r.transitions.create("-webkit-transform",B({},Q)),q.style.transition=r.transitions.create("transform",B({},Q)),q.style.webkitTransform="none",q.style.transform="none",v&&v(q,te)}),W=M(g),G=M(E),j=M(q=>{const te=Ph({timeout:k,style:w,easing:d},{mode:"exit"});q.style.webkitTransition=r.transitions.create("-webkit-transform",te),q.style.transition=r.transitions.create("transform",te),px(c,q,u),S&&S(q)}),z=M(q=>{q.style.webkitTransition="",q.style.transition="",O&&O(q)}),X=q=>{a&&a(x.current,q)},Z=L.useCallback(()=>{x.current&&px(c,x.current,u)},[c,u]);return L.useEffect(()=>{if(f||c==="down"||c==="right")return;const q=Gy(()=>{x.current&&px(c,x.current,u)}),te=Bu(x.current);return te.addEventListener("resize",q),()=>{q.clear(),te.removeEventListener("resize",q)}},[c,f,u]),L.useEffect(()=>{f||Z()},[f,Z]),N.jsx(A,B({nodeRef:x,onEnter:P,onEntered:W,onEntering:V,onExit:j,onExited:z,onExiting:G,addEndListener:X,appear:s,in:f,timeout:k},C,{children:(q,te)=>L.cloneElement(l,B({ref:F,style:B({visibility:q==="exited"&&!f?"hidden":void 0},w,l.props.style)},te))}))}),zne=p2e;function h2e(e){return Qt("MuiDrawer",e)}Yt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const m2e=["BackdropProps"],g2e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Vne=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},b2e=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${mt(n)}`,r!=="temporary"&&`paperAnchorDocked${mt(n)}`]};return Vt(i,h2e,t)},y2e=Ie(Xh,{name:"MuiDrawer",slot:"Root",overridesResolver:Vne})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),XH=Ie("div",{shouldForwardProp:ya,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Vne})({flex:"0 0 auto"}),v2e=Ie(ja,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${mt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${mt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>B({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}`})),Wne={left:"right",right:"left",top:"down",bottom:"up"};function O2e(e){return["left","right"].indexOf(e)!==-1}function E2e(e,t){return e.direction==="rtl"&&O2e(t)?Wne[t]:t}const S2e=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDrawer"}),i=Di(),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:f}={},onClose:m,open:g=!1,PaperProps:v={},SlideProps:S,TransitionComponent:O=zne,transitionDuration:E=o,variant:w="temporary"}=r,k=st(r.ModalProps,m2e),A=st(r,g2e),C=L.useRef(!1);L.useEffect(()=>{C.current=!0},[]);const x=E2e(i,a),M=B({},r,{anchor:a,elevation:c,open:g,variant:w},A),P=b2e(M),V=N.jsx(v2e,B({elevation:w==="temporary"?c:0,square:!0},v,{className:dt(P.paper,v.className),ownerState:M,children:l}));if(w==="permanent")return N.jsx(XH,B({className:dt(P.root,P.docked,u),ownerState:M,ref:n},A,{children:V}));const W=N.jsx(O,B({in:g,direction:Wne[x],timeout:E,appear:C.current},S,{children:V}));return w==="persistent"?N.jsx(XH,B({className:dt(P.root,P.docked,u),ownerState:M,ref:n},A,{children:W})):N.jsx(y2e,B({BackdropProps:B({},s,f,{transitionDuration:E}),className:dt(P.root,P.modal,u),open:g,ownerState:M,onClose:m,hideBackdrop:d,ref:n},A,k,{children:W}))}),T2e=S2e,w2e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],x2e=e=>{const{classes:t,disableUnderline:n}=e,i=Vt({root:["root",!n&&"underline"],input:["input"]},OAe,t);return B({},t,i)},k2e=Ie(DR,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...RR(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 B({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}},[`&.${Nl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Nl.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"},[`&.${Nl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nl.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(.${Nl.disabled}, .${Nl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Nl.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&B({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}))}),C2e=Ie(NR,{name:"MuiFilledInput",slot:"Input",overridesResolver:IR})(({theme:e,ownerState:t})=>B({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})),Hne=L.forwardRef(function(t,n){var r,i,o,a;const s=Nt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:m,slots:g={},type:v="text"}=s,S=st(s,w2e),O=B({},s,{fullWidth:c,inputComponent:d,multiline:f,type:v}),E=x2e(s),w={root:{ownerState:O},input:{ownerState:O}},k=m??u?ls(w,m??u):w,A=(r=(i=g.root)!=null?i:l.Root)!=null?r:k2e,C=(o=(a=g.input)!=null?a:l.Input)!=null?o:C2e;return N.jsx(DF,B({slots:{root:A,input:C},componentsProps:k,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:v},S,{classes:E}))});Hne.muiName="Input";const Qne=Hne;function _2e(e){return Qt("MuiFormControl",e)}Yt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const A2e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],R2e=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${mt(n)}`,r&&"fullWidth"]};return Vt(i,_2e,t)},I2e=Ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,t[`margin${mt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>B({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%"})),D2e=L.forwardRef(function(t,n){const r=Nt({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:f=!1,margin:m="none",required:g=!1,size:v="medium",variant:S="outlined"}=r,O=st(r,A2e),E=B({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:m,required:g,size:v,variant:S}),w=R2e(E),[k,A]=L.useState(()=>{let G=!1;return i&&L.Children.forEach(i,j=>{if(!y1(j,["Input","Select"]))return;const z=y1(j,["Select"])?j.props.input:j;z&&uAe(z.props)&&(G=!0)}),G}),[C,x]=L.useState(()=>{let G=!1;return i&&L.Children.forEach(i,j=>{y1(j,["Input","Select"])&&(t_(j.props,!0)||t_(j.props.inputProps,!0))&&(G=!0)}),G}),[F,M]=L.useState(!1);l&&F&&M(!1);const P=c!==void 0&&!l?c:F;let V;const W=L.useMemo(()=>({adornedStart:k,setAdornedStart:A,color:a,disabled:l,error:u,filled:C,focused:P,fullWidth:d,hiddenLabel:f,size:v,onBlur:()=>{M(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{M(!0)},registerEffect:V,required:g,variant:S}),[k,a,l,u,C,P,d,f,V,g,v,S]);return N.jsx(AR.Provider,{value:W,children:N.jsx(I2e,B({as:s,ownerState:E,className:dt(w.root,o),ref:n},O,{children:i}))})}),Dc=D2e,N2e=lxe({createStyledComponent:Ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Nt({props:e,name:"MuiStack"})}),dr=N2e;function P2e(e){return Qt("MuiFormControlLabel",e)}const L2e=Yt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ZO=L2e,M2e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],$2e=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${mt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Vt(a,P2e,t)},F2e=Ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ZO.label}`]:t.label},t.root,t[`labelPlacement${mt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>B({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ZO.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},{[`& .${ZO.label}`]:{[`&.${ZO.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),B2e=Ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ZO.error}`]:{color:(e.vars||e).palette.error.main}})),U2e=L.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:m,slotProps:g={}}=o,v=st(o,M2e),S=jd(),O=(r=u??l.props.disabled)!=null?r:S==null?void 0:S.disabled,E=m??l.props.required,w={disabled:O,required:E};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof o[M]<"u"&&(w[M]=o[M])});const k=Zh({props:o,muiFormControl:S,states:["error"]}),A=B({},o,{disabled:O,labelPlacement:f,required:E,error:k.error}),C=$2e(A),x=(i=g.typography)!=null?i:s.typography;let F=d;return F!=null&&F.type!==$r&&!c&&(F=N.jsx($r,B({component:"span"},x,{className:dt(C.label,x==null?void 0:x.className),children:F}))),N.jsxs(F2e,B({className:dt(C.root,a),ownerState:A,ref:n},v,{children:[L.cloneElement(l,w),E?N.jsxs(dr,{display:"block",children:[F,N.jsxs(B2e,{ownerState:A,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):F]}))}),xE=U2e;function j2e(e){return Qt("MuiFormGroup",e)}Yt("MuiFormGroup",["root","row","error"]);const z2e=["className","row"],V2e=e=>{const{classes:t,row:n,error:r}=e;return Vt({root:["root",n&&"row",r&&"error"]},j2e,t)},W2e=Ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>B({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),H2e=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=st(r,z2e),s=jd(),l=Zh({props:r,muiFormControl:s,states:["error"]}),u=B({},r,{row:o,error:l.error}),c=V2e(u);return N.jsx(W2e,B({className:dt(c.root,i),ownerState:u,ref:n},a))}),LF=H2e;function Q2e(e){return Qt("MuiFormHelperText",e)}const Y2e=Yt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KH=Y2e;var JH;const G2e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],q2e=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${mt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Vt(u,Q2e,t)},Z2e=Ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${mt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KH.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KH.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),X2e=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=st(r,G2e),l=jd(),u=Zh({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=B({},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=q2e(c);return N.jsx(Z2e,B({as:a,ownerState:c,className:dt(d.root,o),ref:n},s,{children:i===" "?JH||(JH=N.jsx("span",{className:"notranslate",children:"​"})):i}))}),Xy=X2e;function K2e(e){return Qt("MuiFormLabel",e)}const k1=Yt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),J2e=["children","className","color","component","disabled","error","filled","focused","required"],eDe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${mt(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Vt(l,K2e,t)},tDe=Ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${k1.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${k1.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${k1.error}`]:{color:(e.vars||e).palette.error.main}})),nDe=Ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${k1.error}`]:{color:(e.vars||e).palette.error.main}})),rDe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=st(r,J2e),l=jd(),u=Zh({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=B({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=eDe(c);return N.jsxs(tDe,B({as:a,ownerState:c,className:dt(d.root,o),ref:n},s,{children:[i,u.required&&N.jsxs(nDe,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),$R=rDe,iDe=L.createContext(),eQ=iDe;function oDe(e){return Qt("MuiGrid",e)}const aDe=[0,1,2,3,4,5,6,7,8,9,10],sDe=["column-reverse","column","row-reverse","row"],lDe=["nowrap","wrap-reverse","wrap"],cO=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],kE=Yt("MuiGrid",["root","container","item","zeroMinWidth",...aDe.map(e=>`spacing-xs-${e}`),...sDe.map(e=>`direction-xs-${e}`),...lDe.map(e=>`wrap-xs-${e}`),...cO.map(e=>`grid-xs-${e}`),...cO.map(e=>`grid-sm-${e}`),...cO.map(e=>`grid-md-${e}`),...cO.map(e=>`grid-lg-${e}`),...cO.map(e=>`grid-xl-${e}`)]),uDe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function _0(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function cDe({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=sg({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} + ${_0(c)})`;u={flexBasis:d,maxWidth:d}}}o=B({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 dDe({theme:e,ownerState:t}){const n=sg({values:t.direction,breakpoints:e.breakpoints.values});return ul({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${kE.item}`]={maxWidth:"none"}),i})}function Yne({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 fDe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=sg({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=Yne({breakpoints:e.breakpoints.values,values:o})),i=ul({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${_0(c)}`,[`& > .${kE.item}`]:{paddingTop:_0(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${kE.item}`]:{paddingTop:0}}})}return i}function pDe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=sg({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=Yne({breakpoints:e.breakpoints.values,values:o})),i=ul({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${_0(c)})`,marginLeft:`-${_0(c)}`,[`& > .${kE.item}`]:{paddingLeft:_0(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${kE.item}`]:{paddingLeft:0}}})}return i}function hDe(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 mDe=Ie("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=hDe(a,u,t));const d=[];return u.forEach(f=>{const m=n[f];m&&d.push(t[`grid-${f}-${String(m)}`])}),[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})=>B({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}),dDe,fDe,pDe,cDe);function gDe(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 bDe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=gDe(o,l));const c=[];l.forEach(f=>{const m=e[f];m&&c.push(`grid-${f}-${String(m)}`)});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 Vt(d,oDe,t)},yDe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiGrid"}),{breakpoints:i}=Di(),o=SR(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:m,spacing:g=0,wrap:v="wrap",zeroMinWidth:S=!1}=o,O=st(o,uDe),E=m||g,w=l||g,k=L.useContext(eQ),A=c?s||12:k,C={},x=B({},O);i.keys.forEach(P=>{O[P]!=null&&(C[P]=O[P],delete x[P])});const F=B({},o,{columns:A,container:c,direction:d,item:f,rowSpacing:E,columnSpacing:w,wrap:v,zeroMinWidth:S,spacing:g},C,{breakpoints:i.keys}),M=bDe(F);return N.jsx(eQ.Provider,{value:A,children:N.jsx(mDe,B({ownerState:F,className:dt(M.root,a),as:u,ref:n},x))})}),a0=yDe,vDe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function aM(e){return`scale(${e}, ${e**2})`}const ODe={entering:{opacity:1,transform:aM(1)},entered:{opacity:1,transform:"none"}},lN=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gne=L.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:f,onExiting:m,style:g,timeout:v="auto",TransitionComponent:S=YS}=t,O=st(t,vDe),E=Bm(),w=L.useRef(),k=Di(),A=L.useRef(null),C=Vn(A,o.ref,n),x=z=>X=>{if(z){const Z=A.current;X===void 0?z(Z):z(Z,X)}},F=x(c),M=x((z,X)=>{TF(z);const{duration:Z,delay:q,easing:te}=Ph({style:g,timeout:v,easing:a},{mode:"enter"});let Q;v==="auto"?(Q=k.transitions.getAutoHeightDuration(z.clientHeight),w.current=Q):Q=Z,z.style.transition=[k.transitions.create("opacity",{duration:Q,delay:q}),k.transitions.create("transform",{duration:lN?Q:Q*.666,delay:q,easing:te})].join(","),l&&l(z,X)}),P=x(u),V=x(m),W=x(z=>{const{duration:X,delay:Z,easing:q}=Ph({style:g,timeout:v,easing:a},{mode:"exit"});let te;v==="auto"?(te=k.transitions.getAutoHeightDuration(z.clientHeight),w.current=te):te=X,z.style.transition=[k.transitions.create("opacity",{duration:te,delay:Z}),k.transitions.create("transform",{duration:lN?te:te*.666,delay:lN?Z:Z||te*.333,easing:q})].join(","),z.style.opacity=0,z.style.transform=aM(.75),d&&d(z)}),G=x(f),j=z=>{v==="auto"&&E.start(w.current||0,z),r&&r(A.current,z)};return N.jsx(S,B({appear:i,in:s,nodeRef:A,onEnter:M,onEntered:P,onEntering:F,onExit:W,onExited:G,onExiting:V,addEndListener:j,timeout:v==="auto"?null:v},O,{children:(z,X)=>L.cloneElement(o,B({style:B({opacity:0,transform:aM(.75),visibility:z==="exited"&&!s?"hidden":void 0},ODe[z],g,o.props.style),ref:C},X))}))});Gne.muiSupportAuto=!0;const n_=Gne;function EDe(e,t,n,r,i){const[o,a]=L.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ki(()=>{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 qne=L.useSyncExternalStore;function SDe(e,t,n,r,i){const o=L.useCallback(()=>t,[t]),a=L.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]=L.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return qne(l,s,a)}function Ky(e,t={}){const n=ER(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=pne({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(qne!==void 0?SDe:EDe)(l,i,o,a,s)}const TDe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],wDe=e=>{const{classes:t,disableUnderline:n}=e,i=Vt({root:["root",!n&&"underline"],input:["input"]},gAe,t);return B({},t,i)},xDe=Ie(DR,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...RR(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})`),B({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"},[`&.${Qp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qp.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(.${Qp.disabled}, .${Qp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qp.disabled}:before`]:{borderBottomStyle:"dotted"}})}),kDe=Ie(NR,{name:"MuiInput",slot:"Input",overridesResolver:IR})({}),Zne=L.forwardRef(function(t,n){var r,i,o,a;const s=Nt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:m=!1,slotProps:g,slots:v={},type:S="text"}=s,O=st(s,TDe),E=wDe(s),k={root:{ownerState:{disableUnderline:l}}},A=g??c?ls(g??c,k):k,C=(r=(i=v.root)!=null?i:u.Root)!=null?r:xDe,x=(o=(a=v.input)!=null?a:u.Input)!=null?o:kDe;return N.jsx(DF,B({slots:{root:C,input:x},slotProps:A,fullWidth:d,inputComponent:f,multiline:m,ref:n,type:S},O,{classes:E}))});Zne.muiName="Input";const Xne=Zne;function CDe(e){return Qt("MuiInputAdornment",e)}const _De=Yt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),tQ=_De;var nQ;const ADe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],RDe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${mt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},IDe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${mt(i)}`,a,r&&"hiddenLabel",o&&`size${mt(o)}`]};return Vt(s,CDe,t)},DDe=Ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:RDe})(({theme:e,ownerState:t})=>B({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${tQ.positionStart}&:not(.${tQ.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),NDe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=st(r,ADe),f=jd()||{};let m=c;c&&f.variant,f&&!m&&(m=f.variant);const g=B({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:u,variant:m}),v=IDe(g);return N.jsx(AR.Provider,{value:null,children:N.jsx(DDe,B({as:a,ownerState:g,className:dt(v.root,o),ref:n},d,{children:typeof i=="string"&&!l?N.jsx($r,{color:"text.secondary",children:i}):N.jsxs(L.Fragment,{children:[u==="start"?nQ||(nQ=N.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),CE=NDe;function PDe(e){return Qt("MuiInputLabel",e)}Yt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const LDe=["disableAnimation","margin","shrink","variant","className"],MDe=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${mt(r)}`,a],asterisk:[s&&"asterisk"]},u=Vt(l,PDe,t);return B({},t,u)},$De=Ie($R,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${k1.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})=>B({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"&&B({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&&B({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"&&B({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)"}))),FDe=L.forwardRef(function(t,n){const r=Nt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=st(r,LDe),l=jd();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Zh({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=B({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),f=MDe(d);return N.jsx($De,B({"data-shrink":u,ownerState:d,ref:n,className:dt(f.root,a)},s,{classes:f}))}),Kne=FDe,BDe=L.createContext({}),Du=BDe;function UDe(e){return Qt("MuiList",e)}Yt("MuiList",["root","padding","dense","subheader"]);const jDe=["children","className","component","dense","disablePadding","subheader"],zDe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Vt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},UDe,t)},VDe=Ie("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})=>B({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),WDe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=st(r,jDe),d=L.useMemo(()=>({dense:s}),[s]),f=B({},r,{component:a,dense:s,disablePadding:l}),m=zDe(f);return N.jsx(Du.Provider,{value:d,children:N.jsxs(VDe,B({as:a,className:dt(m.root,o),ref:n,ownerState:f},c,{children:[u,i]}))})}),Jne=WDe;function HDe(e){return Qt("MuiListItem",e)}const QDe=Yt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Mb=QDe;function YDe(e){return Qt("MuiListItemButton",e)}const GDe=Yt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),$b=GDe,qDe=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ZDe=(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]},XDe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,u=Vt({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},YDe,n);return B({},n,u)},KDe=Ie(Gl,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:ZDe})(({theme:e,ownerState:t})=>B({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"}},[`&.${$b.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$b.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$b.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$b.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$b.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})),JDe=L.forwardRef(function(t,n){const r=Nt({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:f=!1,className:m}=r,g=st(r,qDe),v=L.useContext(Du),S=L.useMemo(()=>({dense:l||v.dense||!1,alignItems:i,disableGutters:u}),[i,v.dense,l,u]),O=L.useRef(null);Ki(()=>{o&&O.current&&O.current.focus()},[o]);const E=B({},r,{alignItems:i,dense:S.dense,disableGutters:u,divider:c,selected:f}),w=XDe(E),k=Vn(O,n);return N.jsx(Du.Provider,{value:S,children:N.jsx(KDe,B({ref:k,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,focusVisibleClassName:dt(w.focusVisible,d),ownerState:E,className:dt(w.root,m)},g,{classes:w,children:s}))})}),uN=JDe;function eNe(e){return Qt("MuiListItemSecondaryAction",e)}Yt("MuiListItemSecondaryAction",["root","disableGutters"]);const tNe=["className"],nNe=e=>{const{disableGutters:t,classes:n}=e;return Vt({root:["root",t&&"disableGutters"]},eNe,n)},rNe=Ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>B({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),ere=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=st(r,tNe),a=L.useContext(Du),s=B({},r,{disableGutters:a.disableGutters}),l=nNe(s);return N.jsx(rNe,B({className:dt(l.root,i),ownerState:s,ref:n},o))});ere.muiName="ListItemSecondaryAction";const r_=ere,iNe=["className"],oNe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],aNe=(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]},sNe=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Vt({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},HDe,r)},lNe=Ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:aNe})(({theme:e,ownerState:t})=>B({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&B({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${$b.root}`]:{paddingRight:48}},{[`&.${Mb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mb.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"}},[`&.${Mb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),uNe=Ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),cNe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:m}={},dense:g=!1,disabled:v=!1,disableGutters:S=!1,disablePadding:O=!1,divider:E=!1,focusVisibleClassName:w,secondaryAction:k,selected:A=!1,slotProps:C={},slots:x={}}=r,F=st(r.ContainerProps,iNe),M=st(r,oNe),P=L.useContext(Du),V=L.useMemo(()=>({dense:g||P.dense||!1,alignItems:i,disableGutters:S}),[i,P.dense,g,S]),W=L.useRef(null);Ki(()=>{o&&W.current&&W.current.focus()},[o]);const G=L.Children.toArray(s),j=G.length&&y1(G[G.length-1],["ListItemSecondaryAction"]),z=B({},r,{alignItems:i,autoFocus:o,button:a,dense:V.dense,disabled:v,disableGutters:S,disablePadding:O,divider:E,hasSecondaryAction:j,selected:A}),X=sNe(z),Z=Vn(W,n),q=x.root||c.Root||lNe,te=C.root||d.root||{},Q=B({className:dt(X.root,te.className,l),disabled:v},M);let se=u||"li";return a&&(Q.component=u||"div",Q.focusVisibleClassName=dt(Mb.focusVisible,w),se=Gl),j?(se=!Q.component&&!u?"div":se,f==="li"&&(se==="li"?se="div":Q.component==="li"&&(Q.component="div")),N.jsx(Du.Provider,{value:V,children:N.jsxs(uNe,B({as:f,className:dt(X.container,m),ref:Z,ownerState:z},F,{children:[N.jsx(q,B({},te,!Dd(q)&&{as:se,ownerState:B({},z,te.ownerState)},Q,{children:G})),G.pop()]}))})):N.jsx(Du.Provider,{value:V,children:N.jsxs(q,B({},te,{as:se,ref:Z},!Dd(q)&&{ownerState:B({},z,te.ownerState)},Q,{children:[G,k&&N.jsx(r_,{children:k})]}))})}),Fb=cNe;function dNe(e){return Qt("MuiListItemAvatar",e)}Yt("MuiListItemAvatar",["root","alignItemsFlexStart"]);const fNe=["className"],pNe=e=>{const{alignItems:t,classes:n}=e;return Vt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},dNe,n)},hNe=Ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>B({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),mNe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=st(r,fNe),a=L.useContext(Du),s=B({},r,{alignItems:a.alignItems}),l=pNe(s);return N.jsx(hNe,B({className:dt(l.root,i),ownerState:s,ref:n},o))}),gNe=mNe;function bNe(e){return Qt("MuiListItemIcon",e)}const yNe=Yt("MuiListItemIcon",["root","alignItemsFlexStart"]),rQ=yNe,vNe=["className"],ONe=e=>{const{alignItems:t,classes:n}=e;return Vt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},bNe,n)},ENe=Ie("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})=>B({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),SNe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=st(r,vNe),a=L.useContext(Du),s=B({},r,{alignItems:a.alignItems}),l=ONe(s);return N.jsx(ENe,B({className:dt(l.root,i),ownerState:s,ref:n},o))}),FR=SNe;function TNe(e){return Qt("MuiListItemText",e)}const wNe=Yt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),i_=wNe,xNe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],kNe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Vt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},TNe,t)},CNe=Ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${i_.primary}`]:t.primary},{[`& .${i_.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>B({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),_Ne=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=st(r,xNe),{dense:m}=L.useContext(Du);let g=l??i,v=c;const S=B({},r,{disableTypography:a,inset:s,primary:!!g,secondary:!!v,dense:m}),O=kNe(S);return g!=null&&g.type!==$r&&!a&&(g=N.jsx($r,B({variant:m?"body2":"body1",className:O.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),v!=null&&v.type!==$r&&!a&&(v=N.jsx($r,B({variant:"body2",className:O.secondary,color:"text.secondary",display:"block"},d,{children:v}))),N.jsxs(CNe,B({className:dt(O.root,o),ownerState:S,ref:n},f,{children:[g,v]}))}),Eh=_Ne,ANe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cN(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function iQ(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function tre(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 dO(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")||!tre(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const RNe=L.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,f=st(t,ANe),m=L.useRef(null),g=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ki(()=>{i&&m.current.focus()},[i]),L.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,k)=>{const A=!m.current.style.width;if(w.clientHeight{const k=m.current,A=w.key,C=ci(k).activeElement;if(A==="ArrowDown")w.preventDefault(),dO(k,C,u,l,cN);else if(A==="ArrowUp")w.preventDefault(),dO(k,C,u,l,iQ);else if(A==="Home")w.preventDefault(),dO(k,null,u,l,cN);else if(A==="End")w.preventDefault(),dO(k,null,u,l,iQ);else if(A.length===1){const x=g.current,F=A.toLowerCase(),M=performance.now();x.keys.length>0&&(M-x.lastTime>500?(x.keys=[],x.repeating=!0,x.previousKeyMatched=!0):x.repeating&&F!==x.keys[0]&&(x.repeating=!1)),x.lastTime=M,x.keys.push(F);const P=C&&!x.repeating&&tre(C,x);x.previousKeyMatched&&(P||dO(k,C,!1,l,cN,x))?w.preventDefault():x.previousKeyMatched=!1}c&&c(w)},S=Vn(m,n);let O=-1;L.Children.forEach(a,(w,k)=>{if(!L.isValidElement(w)){O===k&&(O+=1,O>=a.length&&(O=-1));return}w.props.disabled||(d==="selectedMenu"&&w.props.selected||O===-1)&&(O=k),O===k&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(O+=1,O>=a.length&&(O=-1))});const E=L.Children.map(a,(w,k)=>{if(k===O){const A={};return o&&(A.autoFocus=!0),w.props.tabIndex===void 0&&d==="selectedMenu"&&(A.tabIndex=0),L.cloneElement(w,A)}return w});return N.jsx(Jne,B({role:"menu",ref:S,className:s,onKeyDown:v,tabIndex:i?0:-1},f,{children:E}))}),Jy=RNe;function INe(e){return Qt("MuiPopover",e)}Yt("MuiPopover",["root","paper"]);const DNe=["onEntering"],NNe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],PNe=["slotProps"];function oQ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function aQ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function sQ(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function dN(e){return typeof e=="function"?e():e}const LNe=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"]},INe,t)},MNe=Ie(Xh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nre=Ie(ja,{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}),$Ne=L.forwardRef(function(t,n){var r,i,o;const a=Nt({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:m,container:g,elevation:v=8,marginThreshold:S=16,open:O,PaperProps:E={},slots:w,slotProps:k,transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:C=n_,transitionDuration:x="auto",TransitionProps:{onEntering:F}={},disableScrollLock:M=!1}=a,P=st(a.TransitionProps,DNe),V=st(a,NNe),W=(r=k==null?void 0:k.paper)!=null?r:E,G=L.useRef(),j=Vn(G,W.ref),z=B({},a,{anchorOrigin:u,anchorReference:d,elevation:v,marginThreshold:S,externalPaperSlotProps:W,transformOrigin:A,TransitionComponent:C,transitionDuration:x,TransitionProps:P}),X=LNe(z),Z=L.useCallback(()=>{if(d==="anchorPosition")return c;const xe=dN(l),Xe=(xe&&xe.nodeType===1?xe:ci(G.current).body).getBoundingClientRect();return{top:Xe.top+oQ(Xe,u.vertical),left:Xe.left+aQ(Xe,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),q=L.useCallback(xe=>({vertical:oQ(xe,A.vertical),horizontal:aQ(xe,A.horizontal)}),[A.horizontal,A.vertical]),te=L.useCallback(xe=>{const Ze={width:xe.offsetWidth,height:xe.offsetHeight},Xe=q(Ze);if(d==="none")return{top:null,left:null,transformOrigin:sQ(Xe)};const it=Z();let Ot=it.top-Xe.vertical,tt=it.left-Xe.horizontal;const pe=Ot+Ze.height,oe=tt+Ze.width,ie=Bu(dN(l)),Fe=ie.innerHeight-S,Qe=ie.innerWidth-S;if(S!==null&&OtFe){const je=pe-Fe;Ot-=je,Xe.vertical+=je}if(S!==null&&ttQe){const je=oe-Qe;tt-=je,Xe.horizontal+=je}return{top:`${Math.round(Ot)}px`,left:`${Math.round(tt)}px`,transformOrigin:sQ(Xe)}},[l,d,Z,q,S]),[Q,se]=L.useState(O),he=L.useCallback(()=>{const xe=G.current;if(!xe)return;const Ze=te(xe);Ze.top!==null&&(xe.style.top=Ze.top),Ze.left!==null&&(xe.style.left=Ze.left),xe.style.transformOrigin=Ze.transformOrigin,se(!0)},[te]);L.useEffect(()=>(M&&window.addEventListener("scroll",he),()=>window.removeEventListener("scroll",he)),[l,M,he]);const J=(xe,Ze)=>{F&&F(xe,Ze),he()},le=()=>{se(!1)};L.useEffect(()=>{O&&he()}),L.useImperativeHandle(s,()=>O?{updatePosition:()=>{he()}}:null,[O,he]),L.useEffect(()=>{if(!O)return;const xe=Gy(()=>{he()}),Ze=Bu(l);return Ze.addEventListener("resize",xe),()=>{xe.clear(),Ze.removeEventListener("resize",xe)}},[l,O,he]);let ve=x;x==="auto"&&!C.muiSupportAuto&&(ve=void 0);const ue=g||(l?ci(dN(l)).body:void 0),we=(i=w==null?void 0:w.root)!=null?i:MNe,ke=(o=w==null?void 0:w.paper)!=null?o:nre,Ue=nr({elementType:ke,externalSlotProps:B({},W,{style:Q?W.style:B({},W.style,{opacity:0})}),additionalProps:{elevation:v,ref:j},ownerState:z,className:dt(X.paper,W==null?void 0:W.className)}),et=nr({elementType:we,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:V,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ue,open:O},ownerState:z,className:dt(X.root,m)}),{slotProps:Me}=et,qe=st(et,PNe);return N.jsx(we,B({},qe,!Dd(we)&&{slotProps:Me,disableScrollLock:M},{children:N.jsx(C,B({appear:!0,in:O,onEntering:J,onExited:le,timeout:ve},P,{children:N.jsx(ke,B({},Ue,{children:f}))}))}))}),BR=$Ne;function FNe(e){return Qt("MuiMenu",e)}Yt("MuiMenu",["root","paper","list"]);const BNe=["onEntering"],UNe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],jNe={vertical:"top",horizontal:"right"},zNe={vertical:"top",horizontal:"left"},VNe=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"],list:["list"]},FNe,t)},WNe=Ie(BR,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HNe=Ie(nre,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),QNe=Ie(Jy,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),YNe=L.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:m={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:S}={},variant:O="selectedMenu",slots:E={},slotProps:w={}}=o,k=st(o.TransitionProps,BNe),A=st(o,UNe),C=Di(),x=C.direction==="rtl",F=B({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:S,PaperProps:m,transitionDuration:v,TransitionProps:k,variant:O}),M=VNe(F),P=a&&!u&&f,V=L.useRef(null),W=(te,Q)=>{V.current&&V.current.adjustStyleForScrollbar(te,C),S&&S(te,Q)},G=te=>{te.key==="Tab"&&(te.preventDefault(),d&&d(te,"tabKeyDown"))};let j=-1;L.Children.map(s,(te,Q)=>{L.isValidElement(te)&&(te.props.disabled||(O==="selectedMenu"&&te.props.selected||j===-1)&&(j=Q))});const z=(r=E.paper)!=null?r:HNe,X=(i=w.paper)!=null?i:m,Z=nr({elementType:E.root,externalSlotProps:w.root,ownerState:F,className:[M.root,l]}),q=nr({elementType:z,externalSlotProps:X,ownerState:F,className:M.paper});return N.jsx(WNe,B({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?jNe:zNe,slots:{paper:z,root:E.root},slotProps:{root:Z,paper:q},open:f,ref:n,transitionDuration:v,TransitionProps:B({onEntering:W},k),ownerState:F},A,{classes:g,children:N.jsx(QNe,B({onKeyDown:G,actions:V,autoFocus:a&&(j===-1||u),autoFocusItem:P,variant:O},c,{className:dt(M.list,c.className),children:s}))}))}),GNe=YNe;function qNe(e){return Qt("MuiMenuItem",e)}const ZNe=Yt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),fO=ZNe,XNe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],KNe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},JNe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=Vt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},qNe,a);return B({},a,l)},ePe=Ie(Gl,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:KNe})(({theme:e,ownerState:t})=>B({},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"}},[`&.${fO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fO.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fO.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZH.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZH.inset}`]:{marginLeft:52},[`& .${i_.root}`]:{marginTop:0,marginBottom:0},[`& .${i_.inset}`]:{paddingLeft:36},[`& .${rQ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&B({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${rQ.root} svg`]:{fontSize:"1.25rem"}}))),tPe=L.forwardRef(function(t,n){const r=Nt({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:f}=r,m=st(r,XNe),g=L.useContext(Du),v=L.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),S=L.useRef(null);Ki(()=>{i&&S.current&&S.current.focus()},[i]);const O=B({},r,{dense:v.dense,divider:s,disableGutters:l}),E=JNe(r),w=Vn(S,n);let k;return r.disabled||(k=d!==void 0?d:-1),N.jsx(Du.Provider,{value:v,children:N.jsx(ePe,B({ref:w,role:c,tabIndex:k,component:o,focusVisibleClassName:dt(E.focusVisible,u),className:dt(E.root,f)},m,{ownerState:O,classes:E}))})}),Lh=tPe;function nPe(e){return Qt("MuiNativeSelect",e)}const rPe=Yt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),MF=rPe,iPe=["className","disabled","error","IconComponent","inputRef","variant"],oPe=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${mt(n)}`,o&&"iconOpen",r&&"disabled"]};return Vt(s,nPe,t)},rre=({ownerState:e,theme:t})=>B({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":B({},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"},[`&.${MF.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}}),aPe=Ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ya,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${MF.multiple}`]:t.multiple}]}})(rre),ire=({ownerState:e,theme:t})=>B({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${MF.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),sPe=Ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${mt(n.variant)}`],n.open&&t.iconOpen]}})(ire),lPe=L.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=st(t,iPe),c=B({},t,{disabled:i,variant:l,error:o}),d=oPe(c);return N.jsxs(L.Fragment,{children:[N.jsx(aPe,B({ownerState:c,className:dt(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:N.jsx(sPe,{as:a,ownerState:c,className:d.icon})]})}),uPe=lPe;var lQ;const cPe=["children","classes","className","label","notched"],dPe=Ie("fieldset",{shouldForwardProp:ya})({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%"}),fPe=Ie("legend",{shouldForwardProp:ya})(({ownerState:e,theme:t})=>B({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&&B({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 pPe(e){const{className:t,label:n,notched:r}=e,i=st(e,cPe),o=n!=null&&n!=="",a=B({},e,{notched:r,withLabel:o});return N.jsx(dPe,B({"aria-hidden":!0,className:t,ownerState:a},i,{children:N.jsx(fPe,{ownerState:a,children:o?N.jsx("span",{children:n}):lQ||(lQ=N.jsx("span",{className:"notranslate",children:"​"}))})}))}const hPe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],mPe=e=>{const{classes:t}=e,r=Vt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yAe,t);return B({},t,r)},gPe=Ie(DR,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:RR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return B({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ad.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ad.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ad.focused} .${ad.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ad.error} .${ad.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ad.disabled} .${ad.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&B({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),bPe=Ie(pPe,{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}}),yPe=Ie(NR,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:IR})(({theme:e,ownerState:t})=>B({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})),ore=L.forwardRef(function(t,n){var r,i,o,a,s;const l=Nt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:m=!1,notched:g,slots:v={},type:S="text"}=l,O=st(l,hPe),E=mPe(l),w=jd(),k=Zh({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A=B({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:w,fullWidth:c,hiddenLabel:k.hiddenLabel,multiline:m,size:k.size,type:S}),C=(r=(i=v.root)!=null?i:u.Root)!=null?r:gPe,x=(o=(a=v.input)!=null?a:u.Input)!=null?o:yPe;return N.jsx(DF,B({slots:{root:C,input:x},renderSuffix:F=>N.jsx(bPe,{ownerState:A,className:E.notchedOutline,label:f!=null&&f!==""&&k.required?s||(s=N.jsxs(L.Fragment,{children:[f," ","*"]})):f,notched:typeof g<"u"?g:!!(F.startAdornment||F.filled||F.focused)}),fullWidth:c,inputComponent:d,multiline:m,ref:n,type:S},O,{classes:B({},E,{notchedOutline:null})}))});ore.muiName="Input";const are=ore,vPe=Po(N.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),OPe=Po(N.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),EPe=Ie("span",{shouldForwardProp:ya})({position:"relative",display:"flex"}),SPe=Ie(vPe)({transform:"scale(1)"}),TPe=Ie(OPe)(({theme:e,ownerState:t})=>B({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 sre(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=B({},e,{checked:t});return N.jsxs(EPe,{className:n.root,ownerState:i,children:[N.jsx(SPe,{fontSize:r,className:n.background,ownerState:i}),N.jsx(TPe,{fontSize:r,className:n.dot,ownerState:i})]})}const wPe=L.createContext(void 0),lre=wPe;function xPe(){return L.useContext(lre)}function kPe(e){return Qt("MuiRadio",e)}const uQ=Yt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),CPe=["checked","checkedIcon","color","icon","name","onChange","size","className"],_Pe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${mt(n)}`,r!=="medium"&&`size${mt(r)}`]};return B({},t,Vt(i,kPe,t))},APe=Ie(PF,{shouldForwardProp:e=>ya(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${mt(n.size)}`],t[`color${mt(n.color)}`]]}})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${uQ.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${uQ.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function RPe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const cQ=N.jsx(sre,{checked:!0}),dQ=N.jsx(sre,{}),IPe=L.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=cQ,color:l="primary",icon:u=dQ,name:c,onChange:d,size:f="medium",className:m}=o,g=st(o,CPe),v=B({},o,{color:l,size:f}),S=_Pe(v),O=xPe();let E=a;const w=GC(d,O&&O.onChange);let k=c;return O&&(typeof E>"u"&&(E=RPe(O.value,o.value)),typeof k>"u"&&(k=O.name)),N.jsx(APe,B({type:"radio",icon:L.cloneElement(u,{fontSize:(r=dQ.props.fontSize)!=null?r:f}),checkedIcon:L.cloneElement(s,{fontSize:(i=cQ.props.fontSize)!=null?i:f}),ownerState:v,classes:S,name:k,checked:E,onChange:w,ref:n,className:dt(S.root,m)},g))}),fQ=IPe,DPe=["actions","children","defaultValue","name","onChange","value"],NPe=L.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=st(t,DPe),c=L.useRef(null),[d,f]=ma({controlled:l,default:o,name:"RadioGroup"});L.useImperativeHandle(r,()=>({focus:()=>{let S=c.current.querySelector("input:not(:disabled):checked");S||(S=c.current.querySelector("input:not(:disabled)")),S&&S.focus()}}),[]);const m=Vn(n,c),g=Ic(a),v=L.useMemo(()=>({name:g,onChange(S){f(S.target.value),s&&s(S,S.target.value)},value:d}),[g,s,f,d]);return N.jsx(lre.Provider,{value:v,children:N.jsx(LF,B({role:"radiogroup",ref:m},u,{children:i}))})}),PPe=NPe;function LPe(e){return Qt("MuiSelect",e)}const pO=Yt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var pQ;const MPe=["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"],$Pe=Ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${pO.select}`]:t.select},{[`&.${pO.select}`]:t[n.variant]},{[`&.${pO.error}`]:t.error},{[`&.${pO.multiple}`]:t.multiple}]}})(rre,{[`&.${pO.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),FPe=Ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${mt(n.variant)}`],n.open&&t.iconOpen]}})(ire),BPe=Ie("input",{shouldForwardProp:e=>bF(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 hQ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function UPe(e){return e==null||typeof e=="string"&&!e.trim()}const jPe=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${mt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Vt(s,LPe,t)},zPe=L.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:f,displayEmpty:m,error:g=!1,IconComponent:v,inputRef:S,labelId:O,MenuProps:E={},multiple:w,name:k,onBlur:A,onChange:C,onClose:x,onFocus:F,onOpen:M,open:P,readOnly:V,renderValue:W,SelectDisplayProps:G={},tabIndex:j,value:z,variant:X="standard"}=t,Z=st(t,MPe),[q,te]=ma({controlled:z,default:d,name:"Select"}),[Q,se]=ma({controlled:P,default:c,name:"Select"}),he=L.useRef(null),J=L.useRef(null),[le,ve]=L.useState(null),{current:ue}=L.useRef(P!=null),[we,ke]=L.useState(),Ue=Vn(n,S),et=L.useCallback(pt=>{J.current=pt,pt&&ve(pt)},[]),Me=le==null?void 0:le.parentNode;L.useImperativeHandle(Ue,()=>({focus:()=>{J.current.focus()},node:he.current,value:q}),[q]),L.useEffect(()=>{c&&Q&&le&&!ue&&(ke(s?null:Me.clientWidth),J.current.focus())},[le,s]),L.useEffect(()=>{a&&J.current.focus()},[a]),L.useEffect(()=>{if(!O)return;const pt=ci(J.current).getElementById(O);if(pt){const Mt=()=>{getSelection().isCollapsed&&J.current.focus()};return pt.addEventListener("click",Mt),()=>{pt.removeEventListener("click",Mt)}}},[O]);const qe=(pt,Mt)=>{pt?M&&M(Mt):x&&x(Mt),ue||(ke(s?null:Me.clientWidth),se(pt))},xe=pt=>{pt.button===0&&(pt.preventDefault(),J.current.focus(),qe(!0,pt))},Ze=pt=>{qe(!1,pt)},Xe=L.Children.toArray(l),it=pt=>{const Mt=Xe.find(ot=>ot.props.value===pt.target.value);Mt!==void 0&&(te(Mt.props.value),C&&C(pt,Mt))},Ot=pt=>Mt=>{let ot;if(Mt.currentTarget.hasAttribute("tabindex")){if(w){ot=Array.isArray(q)?q.slice():[];const gt=q.indexOf(pt.props.value);gt===-1?ot.push(pt.props.value):ot.splice(gt,1)}else ot=pt.props.value;if(pt.props.onClick&&pt.props.onClick(Mt),q!==ot&&(te(ot),C)){const gt=Mt.nativeEvent||Mt,$t=new gt.constructor(gt.type,gt);Object.defineProperty($t,"target",{writable:!0,value:{value:ot,name:k}}),C($t,pt)}w||qe(!1,Mt)}},tt=pt=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(pt.key)!==-1&&(pt.preventDefault(),qe(!0,pt))},pe=le!==null&&Q,oe=pt=>{!pe&&A&&(Object.defineProperty(pt,"target",{writable:!0,value:{value:q,name:k}}),A(pt))};delete Z["aria-invalid"];let ie,Fe;const Qe=[];let je=!1;(t_({value:q})||m)&&(W?ie=W(q):je=!0);const fe=Xe.map(pt=>{if(!L.isValidElement(pt))return null;let Mt;if(w){if(!Array.isArray(q))throw new Error(Dh(2));Mt=q.some(ot=>hQ(ot,pt.props.value)),Mt&&je&&Qe.push(pt.props.children)}else Mt=hQ(q,pt.props.value),Mt&&je&&(Fe=pt.props.children);return L.cloneElement(pt,{"aria-selected":Mt?"true":"false",onClick:Ot(pt),onKeyUp:ot=>{ot.key===" "&&ot.preventDefault(),pt.props.onKeyUp&&pt.props.onKeyUp(ot)},role:"option",selected:Mt,value:void 0,"data-value":pt.props.value})});je&&(w?Qe.length===0?ie=null:ie=Qe.reduce((pt,Mt,ot)=>(pt.push(Mt),ot{const{classes:t}=e;return t},$F={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ya(e)&&e!=="variant",slot:"Root"},YPe=Ie(Xne,$F)(""),GPe=Ie(are,$F)(""),qPe=Ie(Qne,$F)(""),ure=L.forwardRef(function(t,n){const r=Nt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Fne,id:d,input:f,inputProps:m,label:g,labelId:v,MenuProps:S,multiple:O=!1,native:E=!1,onClose:w,onOpen:k,open:A,renderValue:C,SelectDisplayProps:x,variant:F="outlined"}=r,M=st(r,WPe),P=E?uPe:VPe,V=jd(),W=Zh({props:r,muiFormControl:V,states:["variant","error"]}),G=W.variant||F,j=B({},r,{variant:G,classes:a}),z=QPe(j),X=st(z,HPe),Z=f||{standard:N.jsx(YPe,{ownerState:j}),outlined:N.jsx(GPe,{label:g,ownerState:j}),filled:N.jsx(qPe,{ownerState:j})}[G],q=Vn(n,Z.ref);return N.jsx(L.Fragment,{children:L.cloneElement(Z,B({inputComponent:P,inputProps:B({children:o,error:W.error,IconComponent:c,variant:G,type:void 0,multiple:O},E?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:S,onClose:w,onOpen:k,open:A,renderValue:C,SelectDisplayProps:B({id:d},x)},m,{classes:m?ls(X,m.classes):X},f?f.props.inputProps:{})},(O&&E||u)&&G==="outlined"?{notched:!0}:{},{ref:q,className:dt(Z.props.className,s,z.root)},!f&&{variant:G},M))})});ure.muiName="Select";const cre=ure,ZPe=e=>!e||!Dd(e);function XPe(e){return Qt("MuiSlider",e)}const bc=Yt("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"]),KPe=e=>{const{open:t}=e;return{offset:dt(t&&bc.valueLabelOpen),circle:bc.valueLabelCircle,label:bc.valueLabelLabel}};function JPe(e){const{children:t,className:n,value:r}=e,i=KPe(e);return t?L.cloneElement(t,{className:dt(t.props.className)},N.jsxs(L.Fragment,{children:[t.props.children,N.jsx("span",{className:dt(i.offset,n),"aria-hidden":!0,children:N.jsx("span",{className:i.circle,children:N.jsx("span",{className:i.label,children:r})})})]})):null}const eLe=["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 mQ(e){return e}const tLe=Ie("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${mt(n.color)}`],n.size!=="medium"&&t[`size${mt(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})=>B({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"&&B({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"&&B({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"},[`&.${bc.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${bc.dragging}`]:{[`& .${bc.thumb}, & .${bc.track}`]:{transition:"none"}}})),nLe=Ie("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>B({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})),rLe=Ie("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?xR(e.palette[t.color].main,.62):wR(e.palette[t.color].main,.5);return B({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})}),iLe=Ie("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${mt(n.color)}`],n.size!=="medium"&&t[`thumbSize${mt(n.size)}`]]}})(({theme:e,ownerState:t})=>B({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":B({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, &.${bc.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:In(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${bc.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:In(e.palette[t.color].main,.16)}`},[`&.${bc.disabled}`]:{"&:hover":{boxShadow:"none"}}})),oLe=Ie(JPe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>B({[`&.${bc.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"})),aLe=Ie("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>bF(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>B({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})),sLe=Ie("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>bF(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>B({},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})),lLe=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${mt(s)}`,l&&`size${mt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${mt(l)}`,s&&`thumbColor${mt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Vt(u,XPe,a)},uLe=({children:e})=>e,cLe=L.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,f,m,g,v,S,O,E,w,k,A,C,x,F,M,P;const V=Nt({props:t,name:"MuiSlider"}),G=Di().direction==="rtl",{"aria-label":j,"aria-valuetext":z,"aria-labelledby":X,component:Z="span",components:q={},componentsProps:te={},color:Q="primary",classes:se,className:he,disableSwap:J=!1,disabled:le=!1,getAriaLabel:ve,getAriaValueText:ue,marks:we=!1,max:ke=100,min:Ue=0,orientation:et="horizontal",size:Me="medium",step:qe=1,scale:xe=mQ,slotProps:Ze,slots:Xe,track:it="normal",valueLabelDisplay:Ot="off",valueLabelFormat:tt=mQ}=V,pe=st(V,eLe),oe=B({},V,{isRtl:G,max:ke,min:Ue,classes:se,disabled:le,disableSwap:J,orientation:et,marks:we,color:Q,size:Me,step:qe,scale:xe,track:it,valueLabelDisplay:Ot,valueLabelFormat:tt}),{axisProps:ie,getRootProps:Fe,getHiddenInputProps:Qe,getThumbProps:je,open:fe,active:Oe,axis:ye,focusedThumbIndex:Ce,range:De,dragging:ft,marks:_t,values:At,trackOffset:pt,trackLeap:Mt,getThumbStyle:ot}=B_e(B({},oe,{rootRef:n}));oe.marked=_t.length>0&&_t.some(Je=>Je.label),oe.dragging=ft,oe.focusedThumbIndex=Ce;const gt=lLe(oe),$t=(r=(i=Xe==null?void 0:Xe.root)!=null?i:q.Root)!=null?r:tLe,Xt=(o=(a=Xe==null?void 0:Xe.rail)!=null?a:q.Rail)!=null?o:nLe,vn=(s=(l=Xe==null?void 0:Xe.track)!=null?l:q.Track)!=null?s:rLe,Cn=(u=(c=Xe==null?void 0:Xe.thumb)!=null?c:q.Thumb)!=null?u:iLe,$n=(d=(f=Xe==null?void 0:Xe.valueLabel)!=null?f:q.ValueLabel)!=null?d:oLe,qn=(m=(g=Xe==null?void 0:Xe.mark)!=null?g:q.Mark)!=null?m:aLe,Ae=(v=(S=Xe==null?void 0:Xe.markLabel)!=null?S:q.MarkLabel)!=null?v:sLe,Be=(O=(E=Xe==null?void 0:Xe.input)!=null?E:q.Input)!=null?O:"input",rt=(w=Ze==null?void 0:Ze.root)!=null?w:te.root,Ne=(k=Ze==null?void 0:Ze.rail)!=null?k:te.rail,wt=(A=Ze==null?void 0:Ze.track)!=null?A:te.track,Gt=(C=Ze==null?void 0:Ze.thumb)!=null?C:te.thumb,jt=(x=Ze==null?void 0:Ze.valueLabel)!=null?x:te.valueLabel,qt=(F=Ze==null?void 0:Ze.mark)!=null?F:te.mark,Bt=(M=Ze==null?void 0:Ze.markLabel)!=null?M:te.markLabel,On=(P=Ze==null?void 0:Ze.input)!=null?P:te.input,Ve=nr({elementType:$t,getSlotProps:Fe,externalSlotProps:rt,externalForwardedProps:pe,additionalProps:B({},ZPe($t)&&{as:Z}),ownerState:B({},oe,rt==null?void 0:rt.ownerState),className:[gt.root,he]}),We=nr({elementType:Xt,externalSlotProps:Ne,ownerState:oe,className:gt.rail}),He=nr({elementType:vn,externalSlotProps:wt,additionalProps:{style:B({},ie[ye].offset(pt),ie[ye].leap(Mt))},ownerState:B({},oe,wt==null?void 0:wt.ownerState),className:gt.track}),bt=nr({elementType:Cn,getSlotProps:je,externalSlotProps:Gt,ownerState:B({},oe,Gt==null?void 0:Gt.ownerState),className:gt.thumb}),Nn=nr({elementType:$n,externalSlotProps:jt,ownerState:B({},oe,jt==null?void 0:jt.ownerState),className:gt.valueLabel}),Kt=nr({elementType:qn,externalSlotProps:qt,ownerState:oe,className:gt.mark}),An=nr({elementType:Ae,externalSlotProps:Bt,ownerState:oe,className:gt.markLabel}),Kr=nr({elementType:Be,getSlotProps:Qe,externalSlotProps:On,ownerState:oe});return N.jsxs($t,B({},Ve,{children:[N.jsx(Xt,B({},We)),N.jsx(vn,B({},He)),_t.filter(Je=>Je.value>=Ue&&Je.value<=ke).map((Je,$e)=>{const Rt=e_(Je.value,Ue,ke),en=ie[ye].offset(Rt);let mn;return it===!1?mn=At.indexOf(Je.value)!==-1:mn=it==="normal"&&(De?Je.value>=At[0]&&Je.value<=At[At.length-1]:Je.value<=At[0])||it==="inverted"&&(De?Je.value<=At[0]||Je.value>=At[At.length-1]:Je.value>=At[0]),N.jsxs(L.Fragment,{children:[N.jsx(qn,B({"data-index":$e},Kt,!Dd(qn)&&{markActive:mn},{style:B({},en,Kt.style),className:dt(Kt.className,mn&>.markActive)})),Je.label!=null?N.jsx(Ae,B({"aria-hidden":!0,"data-index":$e},An,!Dd(Ae)&&{markLabelActive:mn},{style:B({},en,An.style),className:dt(gt.markLabel,An.className,mn&>.markLabelActive),children:Je.label})):null]},$e)}),At.map((Je,$e)=>{const Rt=e_(Je,Ue,ke),en=ie[ye].offset(Rt),mn=Ot==="off"?uLe:$n;return N.jsx(mn,B({},!Dd(mn)&&{valueLabelFormat:tt,valueLabelDisplay:Ot,value:typeof tt=="function"?tt(xe(Je),$e):tt,index:$e,open:fe===$e||Oe===$e||Ot==="on",disabled:le},Nn,{children:N.jsx(Cn,B({"data-index":$e},bt,{className:dt(gt.thumb,bt.className,Oe===$e&>.active,Ce===$e&>.focusVisible),style:B({},en,ot($e),bt.style),children:N.jsx(Be,B({"data-index":$e,"aria-label":ve?ve($e):j,"aria-valuenow":xe(Je),"aria-labelledby":X,"aria-valuetext":ue?ue(xe(Je),$e):z,value:At[$e]},Kr))}))}),$e)})]}))}),dLe=cLe;function fLe(e){return Qt("MuiTooltip",e)}const pLe=Yt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ah=pLe,hLe=["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 mLe(e){return Math.round(e*1e5)/1e5}const gLe=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${mt(o.split("-")[0])}`],arrow:["arrow"]};return Vt(a,fLe,t)},bLe=Ie(Zy,{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})=>B({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ah.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ah.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ah.arrow}`]:B({},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"] .${ah.arrow}`]:B({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),yLe=Ie("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${mt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>B({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:In(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${mLe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ah.popper}[data-popper-placement*="left"] &`]:B({transformOrigin:"right center"},t.isRtl?B({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):B({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ah.popper}[data-popper-placement*="right"] &`]:B({transformOrigin:"left center"},t.isRtl?B({marginRight:"14px"},t.touch&&{marginRight:"24px"}):B({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ah.popper}[data-popper-placement*="top"] &`]:B({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ah.popper}[data-popper-placement*="bottom"] &`]:B({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),vLe=Ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:In(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let hx=!1;const gQ=new VS;let hO={x:0,y:0};function mx(e,t){return n=>{t&&t(n),e(n)}}const OLe=L.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,f,m,g,v,S,O,E,w,k,A;const C=Nt({props:t,name:"MuiTooltip"}),{arrow:x=!1,children:F,components:M={},componentsProps:P={},describeChild:V=!1,disableFocusListener:W=!1,disableHoverListener:G=!1,disableInteractive:j=!1,disableTouchListener:z=!1,enterDelay:X=100,enterNextDelay:Z=0,enterTouchDelay:q=700,followCursor:te=!1,id:Q,leaveDelay:se=0,leaveTouchDelay:he=1500,onClose:J,onOpen:le,open:ve,placement:ue="bottom",PopperComponent:we,PopperProps:ke={},slotProps:Ue={},slots:et={},title:Me,TransitionComponent:qe=n_,TransitionProps:xe}=C,Ze=st(C,hLe),Xe=L.isValidElement(F)?F:N.jsx("span",{children:F}),it=Di(),Ot=it.direction==="rtl",[tt,pe]=L.useState(),[oe,ie]=L.useState(null),Fe=L.useRef(!1),Qe=j||te,je=Bm(),fe=Bm(),Oe=Bm(),ye=Bm(),[Ce,De]=ma({controlled:ve,default:!1,name:"Tooltip",state:"open"});let ft=Ce;const _t=Ic(Q),At=L.useRef(),pt=on(()=>{At.current!==void 0&&(document.body.style.WebkitUserSelect=At.current,At.current=void 0),ye.clear()});L.useEffect(()=>pt,[pt]);const Mt=bn=>{gQ.clear(),hx=!0,De(!0),le&&!ft&&le(bn)},ot=on(bn=>{gQ.start(800+se,()=>{hx=!1}),De(!1),J&&ft&&J(bn),je.start(it.transitions.duration.shortest,()=>{Fe.current=!1})}),gt=bn=>{Fe.current&&bn.type!=="touchstart"||(tt&&tt.removeAttribute("title"),fe.clear(),Oe.clear(),X||hx&&Z?fe.start(hx?Z:X,()=>{Mt(bn)}):Mt(bn))},$t=bn=>{fe.clear(),Oe.start(se,()=>{ot(bn)})},{isFocusVisibleRef:Xt,onBlur:vn,onFocus:Cn,ref:$n}=fR(),[,qn]=L.useState(!1),Ae=bn=>{vn(bn),Xt.current===!1&&(qn(!1),$t(bn))},Be=bn=>{tt||pe(bn.currentTarget),Cn(bn),Xt.current===!0&&(qn(!0),gt(bn))},rt=bn=>{Fe.current=!0;const _n=Xe.props;_n.onTouchStart&&_n.onTouchStart(bn)},Ne=gt,wt=$t,Gt=bn=>{rt(bn),Oe.clear(),je.clear(),pt(),At.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.start(q,()=>{document.body.style.WebkitUserSelect=At.current,gt(bn)})},jt=bn=>{Xe.props.onTouchEnd&&Xe.props.onTouchEnd(bn),pt(),Oe.start(he,()=>{ot(bn)})};L.useEffect(()=>{if(!ft)return;function bn(_n){(_n.key==="Escape"||_n.key==="Esc")&&ot(_n)}return document.addEventListener("keydown",bn),()=>{document.removeEventListener("keydown",bn)}},[ot,ft]);const qt=Vn(Xe.ref,$n,pe,n);!Me&&Me!==0&&(ft=!1);const Bt=L.useRef(),On=bn=>{const _n=Xe.props;_n.onMouseMove&&_n.onMouseMove(bn),hO={x:bn.clientX,y:bn.clientY},Bt.current&&Bt.current.update()},Ve={},We=typeof Me=="string";V?(Ve.title=!ft&&We&&!G?Me:null,Ve["aria-describedby"]=ft?_t:null):(Ve["aria-label"]=We?Me:null,Ve["aria-labelledby"]=ft&&!We?_t:null);const He=B({},Ve,Ze,Xe.props,{className:dt(Ze.className,Xe.props.className),onTouchStart:rt,ref:qt},te?{onMouseMove:On}:{}),bt={};z||(He.onTouchStart=Gt,He.onTouchEnd=jt),G||(He.onMouseOver=mx(Ne,He.onMouseOver),He.onMouseLeave=mx(wt,He.onMouseLeave),Qe||(bt.onMouseOver=Ne,bt.onMouseLeave=wt)),W||(He.onFocus=mx(Be,He.onFocus),He.onBlur=mx(Ae,He.onBlur),Qe||(bt.onFocus=Be,bt.onBlur=Ae));const Nn=L.useMemo(()=>{var bn;let _n=[{name:"arrow",enabled:!!oe,options:{element:oe,padding:4}}];return(bn=ke.popperOptions)!=null&&bn.modifiers&&(_n=_n.concat(ke.popperOptions.modifiers)),B({},ke.popperOptions,{modifiers:_n})},[oe,ke]),Kt=B({},C,{isRtl:Ot,arrow:x,disableInteractive:Qe,placement:ue,PopperComponentProp:we,touch:Fe.current}),An=gLe(Kt),Kr=(r=(i=et.popper)!=null?i:M.Popper)!=null?r:bLe,Je=(o=(a=(s=et.transition)!=null?s:M.Transition)!=null?a:qe)!=null?o:n_,$e=(l=(u=et.tooltip)!=null?u:M.Tooltip)!=null?l:yLe,Rt=(c=(d=et.arrow)!=null?d:M.Arrow)!=null?c:vLe,en=qO(Kr,B({},ke,(f=Ue.popper)!=null?f:P.popper,{className:dt(An.popper,ke==null?void 0:ke.className,(m=(g=Ue.popper)!=null?g:P.popper)==null?void 0:m.className)}),Kt),mn=qO(Je,B({},xe,(v=Ue.transition)!=null?v:P.transition),Kt),er=qO($e,B({},(S=Ue.tooltip)!=null?S:P.tooltip,{className:dt(An.tooltip,(O=(E=Ue.tooltip)!=null?E:P.tooltip)==null?void 0:O.className)}),Kt),Zn=qO(Rt,B({},(w=Ue.arrow)!=null?w:P.arrow,{className:dt(An.arrow,(k=(A=Ue.arrow)!=null?A:P.arrow)==null?void 0:k.className)}),Kt);return N.jsxs(L.Fragment,{children:[L.cloneElement(Xe,He),N.jsx(Kr,B({as:we??Zy,placement:ue,anchorEl:te?{getBoundingClientRect:()=>({top:hO.y,left:hO.x,right:hO.x,bottom:hO.y,width:0,height:0})}:tt,popperRef:Bt,open:tt?ft:!1,id:_t,transition:!0},bt,en,{popperOptions:Nn,children:({TransitionProps:bn})=>N.jsx(Je,B({timeout:it.transitions.duration.shorter},bn,mn,{children:N.jsxs($e,B({},er,{children:[Me,x?N.jsx(Rt,B({},Zn,{ref:ie})):null]}))}))}))]})}),Im=OLe;function ELe(e){return Qt("MuiSwitch",e)}const SLe=Yt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),ks=SLe,TLe=["className","color","edge","size","sx"],wLe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${mt(n)}`,`size${mt(r)}`],switchBase:["switchBase",`color${mt(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Vt(s,ELe,t);return B({},t,l)},xLe=Ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${mt(n.edge)}`],t[`size${mt(n.size)}`]]}})(({ownerState:e})=>B({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,[`& .${ks.thumb}`]:{width:16,height:16},[`& .${ks.switchBase}`]:{padding:4,[`&.${ks.checked}`]:{transform:"translateX(16px)"}}})),kLe=Ie(PF,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ks.input}`]:t.input},n.color!=="default"&&t[`color${mt(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}),[`&.${ks.checked}`]:{transform:"translateX(20px)"},[`&.${ks.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ks.checked} + .${ks.track}`]:{opacity:.5},[`&.${ks.disabled} + .${ks.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ks.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>B({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ks.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ks.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?xR(e.palette[t.color].main,.62):wR(e.palette[t.color].main,.55)}`}},[`&.${ks.checked} + .${ks.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),CLe=Ie("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}`})),_Le=Ie("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%"})),ALe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=st(r,TLe),c=B({},r,{color:o,edge:a,size:s}),d=wLe(c),f=N.jsx(_Le,{className:d.thumb,ownerState:c});return N.jsxs(xLe,{className:dt(d.root,i),sx:l,ownerState:c,children:[N.jsx(kLe,B({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:c},u,{classes:B({},d,{root:d.switchBase})})),N.jsx(CLe,{className:d.track,ownerState:c})]})}),RLe=ALe;function ILe(e){return Qt("MuiTab",e)}const DLe=Yt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ym=DLe,NLe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],PLe=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${mt(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Vt(u,ILe,t)},LLe=Ie(Gl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${mt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>B({},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,[`& > .${ym.iconWrapper}`]:B({},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,[`&.${ym.selected}`]:{opacity:1},[`&.${ym.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ym.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ym.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ym.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ym.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)})),MLe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:d,onChange:f,onClick:m,onFocus:g,selected:v,selectionFollowsFocus:S,textColor:O="inherit",value:E,wrapped:w=!1}=r,k=st(r,NLe),A=B({},r,{disabled:o,disableFocusRipple:a,selected:v,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:O,wrapped:w}),C=PLe(A),x=l&&d&&L.isValidElement(l)?L.cloneElement(l,{className:dt(C.iconWrapper,l.props.className)}):l,F=P=>{!v&&f&&f(P,E),m&&m(P)},M=P=>{S&&!v&&f&&f(P,E),g&&g(P)};return N.jsxs(LLe,B({focusRipple:!a,className:dt(C.root,i),ref:n,role:"tab","aria-selected":v,disabled:o,onClick:F,onFocus:M,ownerState:A,tabIndex:v?0:-1},k,{children:[u==="top"||u==="start"?N.jsxs(L.Fragment,{children:[x,d]}):N.jsxs(L.Fragment,{children:[d,x]}),c]}))}),bQ=MLe;function $Le(e){return Qt("MuiToolbar",e)}Yt("MuiToolbar",["root","gutters","regular","dense"]);const FLe=["className","component","disableGutters","variant"],BLe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Vt({root:["root",!n&&"gutters",r]},$Le,t)},ULe=Ie("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})=>B({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),jLe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=st(r,FLe),u=B({},r,{component:o,disableGutters:a,variant:s}),c=BLe(u);return N.jsx(ULe,B({as:o,className:dt(c.root,i),ref:n,ownerState:u},l))}),dre=jLe,zLe=Po(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),VLe=Po(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function WLe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function HLe(e,t,n,r={},i=()=>{}){const{ease:o=WLe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=f=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=f);const m=Math.min(1,(f-s)/a);if(t[e]=o(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const QLe=["onChange"],YLe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function GLe(e){const{onChange:t}=e,n=st(e,QLe),r=L.useRef(),i=L.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Ki(()=>{const a=Gy(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=Bu(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),L.useEffect(()=>{o(),t(r.current)},[t]),N.jsx("div",B({style:YLe,ref:i},n))}function qLe(e){return Qt("MuiTabScrollButton",e)}const ZLe=Yt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),XLe=ZLe,KLe=["className","slots","slotProps","direction","orientation","disabled"],JLe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Vt({root:["root",n,r&&"disabled"]},qLe,t)},eMe=Ie(Gl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>B({width:40,flexShrink:0,opacity:.8,[`&.${XLe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),tMe=L.forwardRef(function(t,n){var r,i;const o=Nt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=o,c=st(o,KLe),f=Di().direction==="rtl",m=B({isRtl:f},o),g=JLe(m),v=(r=s.StartScrollButtonIcon)!=null?r:zLe,S=(i=s.EndScrollButtonIcon)!=null?i:VLe,O=nr({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),E=nr({elementType:S,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return N.jsx(eMe,B({component:"div",className:dt(g.root,a),ref:n,role:null,ownerState:m,tabIndex:null},c,{children:u==="left"?N.jsx(v,B({},O)):N.jsx(S,B({},E))}))}),nMe=tMe;function rMe(e){return Qt("MuiTabs",e)}const iMe=Yt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Pk=iMe,oMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],yQ=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,vQ=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gx=(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}}},aMe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Vt({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"]},rMe,l)},sMe=Ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pk.scrollButtons}`]:t.scrollButtons},{[`& .${Pk.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>B({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Pk.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),lMe=Ie("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})=>B({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"})),uMe=Ie("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})=>B({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),cMe=Ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>B({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})),dMe=Ie(GLe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),OQ={},fMe=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTabs"}),i=Di(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:d,component:f="div",allowScrollButtonsMobile:m=!1,indicatorColor:g="primary",onChange:v,orientation:S="horizontal",ScrollButtonComponent:O=nMe,scrollButtons:E="auto",selectionFollowsFocus:w,slots:k={},slotProps:A={},TabIndicatorProps:C={},TabScrollButtonProps:x={},textColor:F="primary",value:M,variant:P="standard",visibleScrollbar:V=!1}=r,W=st(r,oMe),G=P==="scrollable",j=S==="vertical",z=j?"scrollTop":"scrollLeft",X=j?"top":"left",Z=j?"bottom":"right",q=j?"clientHeight":"clientWidth",te=j?"height":"width",Q=B({},r,{component:f,allowScrollButtonsMobile:m,indicatorColor:g,orientation:S,vertical:j,scrollButtons:E,textColor:F,variant:P,visibleScrollbar:V,fixed:!G,hideScrollbar:G&&!V,scrollableX:G&&!j,scrollableY:G&&j,centered:u&&!G,scrollButtonsHideMobile:!m}),se=aMe(Q),he=nr({elementType:k.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:Q}),J=nr({elementType:k.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:Q}),[le,ve]=L.useState(!1),[ue,we]=L.useState(OQ),[ke,Ue]=L.useState(!1),[et,Me]=L.useState(!1),[qe,xe]=L.useState(!1),[Ze,Xe]=L.useState({overflow:"hidden",scrollbarWidth:0}),it=new Map,Ot=L.useRef(null),tt=L.useRef(null),pe=()=>{const ot=Ot.current;let gt;if(ot){const Xt=ot.getBoundingClientRect();gt={clientWidth:ot.clientWidth,scrollLeft:ot.scrollLeft,scrollTop:ot.scrollTop,scrollLeftNormalized:OTe(ot,i.direction),scrollWidth:ot.scrollWidth,top:Xt.top,bottom:Xt.bottom,left:Xt.left,right:Xt.right}}let $t;if(ot&&M!==!1){const Xt=tt.current.children;if(Xt.length>0){const vn=Xt[it.get(M)];$t=vn?vn.getBoundingClientRect():null}}return{tabsMeta:gt,tabMeta:$t}},oe=on(()=>{const{tabsMeta:ot,tabMeta:gt}=pe();let $t=0,Xt;if(j)Xt="top",gt&&ot&&($t=gt.top-ot.top+ot.scrollTop);else if(Xt=o?"right":"left",gt&&ot){const Cn=o?ot.scrollLeftNormalized+ot.clientWidth-ot.scrollWidth:ot.scrollLeft;$t=(o?-1:1)*(gt[Xt]-ot[Xt]+Cn)}const vn={[Xt]:$t,[te]:gt?gt[te]:0};if(isNaN(ue[Xt])||isNaN(ue[te]))we(vn);else{const Cn=Math.abs(ue[Xt]-vn[Xt]),$n=Math.abs(ue[te]-vn[te]);(Cn>=1||$n>=1)&&we(vn)}}),ie=(ot,{animation:gt=!0}={})=>{gt?HLe(z,Ot.current,ot,{duration:i.transitions.duration.standard}):Ot.current[z]=ot},Fe=ot=>{let gt=Ot.current[z];j?gt+=ot:(gt+=ot*(o?-1:1),gt*=o&&ine()==="reverse"?-1:1),ie(gt)},Qe=()=>{const ot=Ot.current[q];let gt=0;const $t=Array.from(tt.current.children);for(let Xt=0;Xt<$t.length;Xt+=1){const vn=$t[Xt];if(gt+vn[q]>ot){Xt===0&&(gt=ot);break}gt+=vn[q]}return gt},je=()=>{Fe(-1*Qe())},fe=()=>{Fe(Qe())},Oe=L.useCallback(ot=>{Xe({overflow:null,scrollbarWidth:ot})},[]),ye=()=>{const ot={};ot.scrollbarSizeListener=G?N.jsx(dMe,{onChange:Oe,className:dt(se.scrollableX,se.hideScrollbar)}):null;const $t=G&&(E==="auto"&&(ke||et)||E===!0);return ot.scrollButtonStart=$t?N.jsx(O,B({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:he},orientation:S,direction:o?"right":"left",onClick:je,disabled:!ke},x,{className:dt(se.scrollButtons,x.className)})):null,ot.scrollButtonEnd=$t?N.jsx(O,B({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:J},orientation:S,direction:o?"left":"right",onClick:fe,disabled:!et},x,{className:dt(se.scrollButtons,x.className)})):null,ot},Ce=on(ot=>{const{tabsMeta:gt,tabMeta:$t}=pe();if(!(!$t||!gt)){if($t[X]gt[Z]){const Xt=gt[z]+($t[Z]-gt[Z]);ie(Xt,{animation:ot})}}}),De=on(()=>{G&&E!==!1&&xe(!qe)});L.useEffect(()=>{const ot=Gy(()=>{Ot.current&&oe()});let gt;const $t=Cn=>{Cn.forEach($n=>{$n.removedNodes.forEach(qn=>{var Ae;(Ae=gt)==null||Ae.unobserve(qn)}),$n.addedNodes.forEach(qn=>{var Ae;(Ae=gt)==null||Ae.observe(qn)})}),ot(),De()},Xt=Bu(Ot.current);Xt.addEventListener("resize",ot);let vn;return typeof ResizeObserver<"u"&&(gt=new ResizeObserver(ot),Array.from(tt.current.children).forEach(Cn=>{gt.observe(Cn)})),typeof MutationObserver<"u"&&(vn=new MutationObserver($t),vn.observe(tt.current,{childList:!0})),()=>{var Cn,$n;ot.clear(),Xt.removeEventListener("resize",ot),(Cn=vn)==null||Cn.disconnect(),($n=gt)==null||$n.disconnect()}},[oe,De]),L.useEffect(()=>{const ot=Array.from(tt.current.children),gt=ot.length;if(typeof IntersectionObserver<"u"&>>0&&G&&E!==!1){const $t=ot[0],Xt=ot[gt-1],vn={root:Ot.current,threshold:.99},Cn=Be=>{Ue(!Be[0].isIntersecting)},$n=new IntersectionObserver(Cn,vn);$n.observe($t);const qn=Be=>{Me(!Be[0].isIntersecting)},Ae=new IntersectionObserver(qn,vn);return Ae.observe(Xt),()=>{$n.disconnect(),Ae.disconnect()}}},[G,E,qe,c==null?void 0:c.length]),L.useEffect(()=>{ve(!0)},[]),L.useEffect(()=>{oe()}),L.useEffect(()=>{Ce(OQ!==ue)},[Ce,ue]),L.useImperativeHandle(l,()=>({updateIndicator:oe,updateScrollButtons:De}),[oe,De]);const ft=N.jsx(cMe,B({},C,{className:dt(se.indicator,C.className),ownerState:Q,style:B({},ue,C.style)}));let _t=0;const At=L.Children.map(c,ot=>{if(!L.isValidElement(ot))return null;const gt=ot.props.value===void 0?_t:ot.props.value;it.set(gt,_t);const $t=gt===M;return _t+=1,L.cloneElement(ot,B({fullWidth:P==="fullWidth",indicator:$t&&!le&&ft,selected:$t,selectionFollowsFocus:w,onChange:v,textColor:F,value:gt},_t===1&&M===!1&&!ot.props.tabIndex?{tabIndex:0}:{}))}),pt=ot=>{const gt=tt.current,$t=ci(gt).activeElement;if($t.getAttribute("role")!=="tab")return;let vn=S==="horizontal"?"ArrowLeft":"ArrowUp",Cn=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(vn="ArrowRight",Cn="ArrowLeft"),ot.key){case vn:ot.preventDefault(),gx(gt,$t,vQ);break;case Cn:ot.preventDefault(),gx(gt,$t,yQ);break;case"Home":ot.preventDefault(),gx(gt,null,yQ);break;case"End":ot.preventDefault(),gx(gt,null,vQ);break}},Mt=ye();return N.jsxs(sMe,B({className:dt(se.root,d),ownerState:Q,ref:n,as:f},W,{children:[Mt.scrollButtonStart,Mt.scrollbarSizeListener,N.jsxs(lMe,{className:se.scroller,ownerState:Q,style:{overflow:Ze.overflow,[j?`margin${o?"Left":"Right"}`:"marginBottom"]:V?void 0:-Ze.scrollbarWidth},ref:Ot,children:[N.jsx(uMe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":S==="vertical"?"vertical":null,className:se.flexContainer,ownerState:Q,onKeyDown:pt,ref:tt,role:"tablist",children:At}),le&&ft]}),Mt.scrollButtonEnd]}))}),pMe=fMe;function hMe(e){return Qt("MuiTextField",e)}Yt("MuiTextField",["root"]);const mMe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],gMe={standard:Xne,filled:Qne,outlined:are},bMe=e=>{const{classes:t}=e;return Vt({root:["root"]},hMe,t)},yMe=Ie(Dc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vMe=L.forwardRef(function(t,n){const r=Nt({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:f,fullWidth:m=!1,helperText:g,id:v,InputLabelProps:S,inputProps:O,InputProps:E,inputRef:w,label:k,maxRows:A,minRows:C,multiline:x=!1,name:F,onBlur:M,onChange:P,onFocus:V,placeholder:W,required:G=!1,rows:j,select:z=!1,SelectProps:X,type:Z,value:q,variant:te="outlined"}=r,Q=st(r,mMe),se=B({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:m,multiline:x,required:G,select:z,variant:te}),he=bMe(se),J={};te==="outlined"&&(S&&typeof S.shrink<"u"&&(J.notched=S.shrink),J.label=k),z&&((!X||!X.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const le=Ic(v),ve=g&&le?`${le}-helper-text`:void 0,ue=k&&le?`${le}-label`:void 0,we=gMe[te],ke=N.jsx(we,B({"aria-describedby":ve,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:m,multiline:x,name:F,rows:j,maxRows:A,minRows:C,type:Z,value:q,id:le,inputRef:w,onBlur:M,onChange:P,onFocus:V,placeholder:W,inputProps:O},J,E));return N.jsxs(yMe,B({className:dt(he.root,s),disabled:c,error:d,fullWidth:m,ref:n,required:G,color:l,variant:te,ownerState:se},Q,{children:[k!=null&&k!==""&&N.jsx(Kne,B({htmlFor:le,id:ue},S,{children:k})),z?N.jsx(cre,B({"aria-describedby":ve,id:le,labelId:ue,value:q,input:ke},X,{children:a})):ke,g&&N.jsx(Xy,B({id:ve},f,{children:g}))]}))}),Kh=vMe;function OMe(e){return Qt("MuiToggleButton",e)}const EMe=Yt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),s0=EMe,SMe=L.createContext({}),fre=SMe,TMe=L.createContext(void 0),pre=TMe;function wMe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const xMe=["value"],kMe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],CMe=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${mt(o)}`,a]};return Vt(s,OMe,t)},_Me=Ie(Gl,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${mt(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),B({},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%"},{[`&.${s0.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${s0.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:In(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:In(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),AMe=L.forwardRef(function(t,n){const r=L.useContext(fre),{value:i}=r,o=st(r,xMe),a=L.useContext(pre),s=pR(B({},o,{selected:wMe(t.value,i)}),t),l=Nt({props:s,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:f=!1,disableFocusRipple:m=!1,fullWidth:g=!1,onChange:v,onClick:S,selected:O,size:E="medium",value:w}=l,k=st(l,kMe),A=B({},l,{color:d,disabled:f,disableFocusRipple:m,fullWidth:g,size:E}),C=CMe(A),x=M=>{S&&(S(M,w),M.defaultPrevented)||v&&v(M,w)},F=a||"";return N.jsx(_Me,B({className:dt(o.className,C.root,c,F),disabled:f,focusRipple:!m,ref:n,onClick:x,onChange:v,value:w,ownerState:A,"aria-pressed":O},k,{children:u}))}),fN=AMe;function RMe(e){return Qt("MuiToggleButtonGroup",e)}const IMe=Yt("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Ui=IMe,DMe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],NMe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${mt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Vt(o,RMe,t)},PMe=Ie("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ui.grouped}`]:t.grouped},{[`& .${Ui.grouped}`]:t[`grouped${mt(n.orientation)}`]},{[`& .${Ui.firstButton}`]:t.firstButton},{[`& .${Ui.lastButton}`]:t.lastButton},{[`& .${Ui.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>B({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Ui.grouped}`]:B({},e.orientation==="horizontal"?{[`&.${Ui.selected} + .${Ui.grouped}.${Ui.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Ui.selected} + .${Ui.grouped}.${Ui.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Ui.firstButton},& .${Ui.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ui.lastButton},& .${Ui.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Ui.firstButton},& .${Ui.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Ui.lastButton},& .${Ui.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Ui.lastButton}.${s0.disabled},& .${Ui.middleButton}.${s0.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Ui.lastButton}.${s0.disabled},& .${Ui.middleButton}.${s0.disabled}`]:{borderTop:"1px solid transparent"}})),LMe=L.forwardRef(function(t,n){const r=Nt({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:f="medium",value:m}=r,g=st(r,DMe),v=B({},r,{disabled:s,fullWidth:u,orientation:d,size:f}),S=NMe(v),O=L.useCallback((x,F)=>{if(!c)return;const M=m&&m.indexOf(F);let P;m&&M>=0?(P=m.slice(),P.splice(M,1)):P=m?m.concat(F):[F],c(x,P)},[c,m]),E=L.useCallback((x,F)=>{c&&c(x,m===F?null:F)},[c,m]),w=L.useMemo(()=>({className:S.grouped,onChange:l?E:O,value:m,size:f,fullWidth:u,color:a,disabled:s}),[S.grouped,l,E,O,m,f,u,a,s]),k=STe(i),A=k.length,C=x=>{const F=x===0,M=x===A-1;return F&&M?"":F?S.firstButton:M?S.lastButton:S.middleButton};return N.jsx(PMe,B({role:"group",className:dt(S.root,o),ref:n,ownerState:v},g,{children:N.jsx(fre.Provider,{value:w,children:k.map((x,F)=>N.jsx(pre.Provider,{value:C(F),children:x},F))})}))}),MMe=LMe;var hre={exports:{}},mre={};/** * @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 KS=P;function BLe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ULe=typeof Object.is=="function"?Object.is:BLe,jLe=KS.useSyncExternalStore,zLe=KS.useRef,VLe=KS.useEffect,HLe=KS.useMemo,WLe=KS.useDebugValue;yre.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=zLe(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=HLe(function(){function l(m){if(!u){if(u=!0,c=m,m=r(m),i!==void 0&&s.hasValue){var g=s.value;if(i(g,m))return d=g}return d=m}if(g=d,ULe(c,m))return g;var v=r(m);return i!==void 0&&i(g,v)?g:(c=m,d=v)}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 a=jLe(e,o[0],o[1]);return VLe(function(){s.hasValue=!0,s.value=a},[a]),WLe(a),a};bre.exports=yre;var QLe=bre.exports,jl="default"in uy?cn:uy,wQ=Symbol.for("react-redux-context"),xQ=typeof globalThis<"u"?globalThis:{};function YLe(){if(!jl.createContext)return{};const e=xQ[wQ]??(xQ[wQ]=new Map);let t=e.get(jl.createContext);return t||(t=jl.createContext(null),e.set(jl.createContext,t)),t}var Mh=YLe(),GLe=()=>{throw new Error("uSES not initialized!")};function U$(e=Mh){return function(){return jl.useContext(e)}}var vre=U$(),Ore=GLe,qLe=e=>{Ore=e},ZLe=(e,t)=>e===t;function XLe(e=Mh){const t=e===Mh?vre:U$(e),n=(r,i={})=>{const{equalityFn:o=ZLe,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();jl.useRef(!0);const p=jl.useCallback({[r.name](g){return r(g)}}[r.name],[r,c,s.stabilityCheck]),m=Ore(l.addNestedSub,a.getState,u||a.getState,p,o);return jl.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var po=XLe();function KLe(e){e()}function JLe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){KLe(()=>{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 kQ={notify(){},get:()=>[]};function eMe(e,t){let n,r=kQ,i=0,o=!1;function s(v){c();const E=r.subscribe(v);let O=!1;return()=>{O||(O=!0,E(),d())}}function a(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=JLe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=kQ)}function p(){o||(o=!0,c())}function m(){o&&(o=!1,d())}const g={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:m,getListeners:()=>r};return g}var tMe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nMe=tMe?jl.useLayoutEffect:jl.useEffect;function rMe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const s=jl.useMemo(()=>{const u=eMe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),a=jl.useMemo(()=>e.getState(),[e]);nMe(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||Mh;return jl.createElement(l.Provider,{value:s},n)}var iMe=rMe;function Ere(e=Mh){const t=e===Mh?vre:U$(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var oMe=Ere();function sMe(e=Mh){const t=e===Mh?oMe:Ere(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Nc=sMe();qLe(QLe.useSyncExternalStoreWithSelector);/** + */var XS=L;function $Me(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var FMe=typeof Object.is=="function"?Object.is:$Me,BMe=XS.useSyncExternalStore,UMe=XS.useRef,jMe=XS.useEffect,zMe=XS.useMemo,VMe=XS.useDebugValue;mre.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=UMe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=zMe(function(){function l(m){if(!u){if(u=!0,c=m,m=r(m),i!==void 0&&a.hasValue){var g=a.value;if(i(g,m))return d=g}return d=m}if(g=d,FMe(c,m))return g;var v=r(m);return i!==void 0&&i(g,v)?g:(c=m,d=v)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var s=BMe(e,o[0],o[1]);return jMe(function(){a.hasValue=!0,a.value=s},[s]),VMe(s),s};hre.exports=mre;var WMe=hre.exports,jl="default"in uy?cn:uy,EQ=Symbol.for("react-redux-context"),SQ=typeof globalThis<"u"?globalThis:{};function HMe(){if(!jl.createContext)return{};const e=SQ[EQ]??(SQ[EQ]=new Map);let t=e.get(jl.createContext);return t||(t=jl.createContext(null),e.set(jl.createContext,t)),t}var Mh=HMe(),QMe=()=>{throw new Error("uSES not initialized!")};function FF(e=Mh){return function(){return jl.useContext(e)}}var gre=FF(),bre=QMe,YMe=e=>{bre=e},GMe=(e,t)=>e===t;function qMe(e=Mh){const t=e===Mh?gre:FF(e),n=(r,i={})=>{const{equalityFn:o=GMe,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();jl.useRef(!0);const f=jl.useCallback({[r.name](g){return r(g)}}[r.name],[r,c,a.stabilityCheck]),m=bre(l.addNestedSub,s.getState,u||s.getState,f,o);return jl.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var po=qMe();function ZMe(e){e()}function XMe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ZMe(()=>{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 TQ={notify(){},get:()=>[]};function KMe(e,t){let n,r=TQ,i=0,o=!1;function a(v){c();const S=r.subscribe(v);let O=!1;return()=>{O||(O=!0,S(),d())}}function s(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=XMe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=TQ)}function f(){o||(o=!0,c())}function m(){o&&(o=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:f,tryUnsubscribe:m,getListeners:()=>r};return g}var JMe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",e3e=JMe?jl.useLayoutEffect:jl.useEffect;function t3e({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=jl.useMemo(()=>{const u=KMe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=jl.useMemo(()=>e.getState(),[e]);e3e(()=>{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||Mh;return jl.createElement(l.Provider,{value:a},n)}var n3e=t3e;function yre(e=Mh){const t=e===Mh?gre:FF(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var r3e=yre();function i3e(e=Mh){const t=e===Mh?r3e:yre(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Nc=i3e();YMe(WMe.useSyncExternalStoreWithSelector);/** * @remix-run/router v1.14.2 * * Copyright (c) Remix Software Inc. @@ -170,8 +170,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function vg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lMe(){return Math.random().toString(36).substr(2,8)}function _Q(e,t){return{usr:e.state,key:e.key,idx:t}}function AE(e,t,n,r){return n===void 0&&(n=null),co({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sp(t):t,{state:n,key:t&&t.key||r||lMe()})}function JS(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 sp(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 uMe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Oo.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(co({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=Oo.Pop;let E=c(),O=E==null?null:E-u;u=E,l&&l({action:a,location:v.location,delta:O})}function p(E,O){a=Oo.Push;let S=AE(v.location,E,O);n&&n(S,E),u=c()+1;let x=_Q(S,u),C=v.createHref(S);try{s.pushState(x,"",C)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(C)}o&&l&&l({action:a,location:v.location,delta:1})}function m(E,O){a=Oo.Replace;let S=AE(v.location,E,O);n&&n(S,E),u=c();let x=_Q(S,u),C=v.createHref(S);s.replaceState(x,"",C),o&&l&&l({action:a,location:v.location,delta:0})}function g(E){let O=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof E=="string"?E:JS(E);return Or(O,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,O)}let v={get action(){return a},get location(){return e(i,s)},listen(E){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(CQ,d),l=E,()=>{i.removeEventListener(CQ,d),l=null}},createHref(E){return t(i,E)},createURL:g,encodeLocation(E){let O=g(E);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:p,replace:m,go(E){return s.go(E)}};return v}var lo;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lo||(lo={}));const cMe=new Set(["lazy","caseSensitive","path","id","index","children"]);function dMe(e){return e.index===!0}function cL(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,o],a=typeof i.id=="string"?i.id:s.join("-");if(Or(i.index!==!0||!i.children,"Cannot specify children on an index route"),Or(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),dMe(i)){let l=co({},i,t(i),{id:a});return r[a]=l,l}else{let l=co({},i,t(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=cL(i.children,t,s,r)),l}})}function lb(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?sp(t):t,i=eT(r.pathname||"/",n);if(i==null)return null;let o=Sre(e);pMe(o);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(Or(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=Sh([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Or(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Sre(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:OMe(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of Tre(o.path))i(o,s,l)}),t}function Tre(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 s=Tre(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function pMe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:EMe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hMe=/^:[\w-]+$/,mMe=3,gMe=2,bMe=1,yMe=10,vMe=-2,AQ=e=>e==="*";function OMe(e,t){let n=e.split("/"),r=n.length;return n.some(AQ)&&(r+=vMe),t&&(r+=gMe),n.filter(i=>!AQ(i)).reduce((i,o)=>i+(hMe.test(o)?mMe:o===""?bMe:yMe),r)}function EMe(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 SMe(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{let{paramName:p,isOptional:m}=c;if(p==="*"){let v=a[d]||"";s=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const g=a[d];return m&&!g?u[p]=void 0:u[p]=kMe(g||"",p),u},{}),pathname:o,pathnameBase:s,pattern:e}}function wMe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,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 xMe(e){try{return decodeURI(e)}catch(t){return vg(!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 kMe(e,t){try{return decodeURIComponent(e)}catch(n){return vg(!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 eT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function CMe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?sp(e):e;return{pathname:n?n.startsWith("/")?n:_Me(n,t):t,search:RMe(r),hash:IMe(i)}}function _Me(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 mN(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 wre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function j$(e,t){let n=wre(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function z$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=sp(e):(i=co({},e),Or(!i.pathname||!i.pathname.includes("?"),mN("?","pathname","search",i)),Or(!i.pathname||!i.pathname.includes("#"),mN("#","pathname","hash",i)),Or(!i.search||!i.search.includes("#"),mN("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}a=d>=0?t[d]:"/"}let l=CMe(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Sh=e=>e.join("/").replace(/\/\/+/g,"/"),AMe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),RMe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,IMe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class V${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 H$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xre=["post","put","patch","delete"],DMe=new Set(xre),NMe=["get",...xre],PMe=new Set(NMe),LMe=new Set([301,302,303,307,308]),MMe=new Set([307,308]),gN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$Me={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gv={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},kre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,FMe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Cre="remix-router-transitions";function BMe(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;Or(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 Ce=e.detectErrorBoundary;i=$e=>({hasErrorBoundary:Ce($e)})}else i=FMe;let o={},s=cL(e.routes,i,void 0,o),a,l=e.basename||"/",u=co({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,p=null,m=null,g=null,v=e.hydrationData!=null,E=lb(s,e.history.location,l),O=null;if(E==null){let Ce=mu(404,{pathname:e.history.location.pathname}),{matches:$e,route:tt}=$Q(s);E=$e,O={[tt.id]:Ce}}let S,x=E.some(Ce=>Ce.route.lazy),C=E.some(Ce=>Ce.route.loader);if(x)S=!1;else if(!C)S=!0;else if(u.v7_partialHydration){let Ce=e.hydrationData?e.hydrationData.loaderData:null,$e=e.hydrationData?e.hydrationData.errors:null;S=E.every(tt=>tt.route.loader&&tt.route.loader.hydrate!==!0&&(Ce&&Ce[tt.route.id]!==void 0||$e&&$e[tt.route.id]!==void 0))}else S=e.hydrationData!=null;let I,_={historyAction:e.history.action,location:e.history.location,matches:E,initialized:S,navigation:gN,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||O,fetchers:new Map,blockers:new Map},w=Oo.Pop,F=!1,M,L=!1,W=new Map,H=null,q=!1,j=!1,z=[],X=[],Z=new Map,G=0,ee=-1,Q=new Map,ae=new Set,Te=new Map,te=new Map,pe=new Set,Oe=new Map,me=new Map,Re=!1;function Fe(){if(c=e.history.listen(Ce=>{let{action:$e,location:tt,delta:De}=Ce;if(Re){Re=!1;return}vg(me.size===0||De!=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 wt=bt({currentLocation:_.location,nextLocation:tt,historyAction:$e});if(wt&&De!=null){Re=!0,e.history.go(De*-1),it(wt,{state:"blocked",location:tt,proceed(){it(wt,{state:"proceeding",proceed:void 0,reset:void 0,location:tt}),e.history.go(De)},reset(){let Gt=new Map(_.blockers);Gt.set(wt,gv),Ye({blockers:Gt})}});return}return Ge($e,tt)}),n){ZMe(t,W);let Ce=()=>XMe(t,W);t.addEventListener("pagehide",Ce),H=()=>t.removeEventListener("pagehide",Ce)}return _.initialized||Ge(Oo.Pop,_.location,{initialHydration:!0}),I}function et(){c&&c(),H&&H(),d.clear(),M&&M.abort(),_.fetchers.forEach((Ce,$e)=>be($e)),_.blockers.forEach((Ce,$e)=>Mt($e))}function ct(Ce){return d.add(Ce),()=>d.delete(Ce)}function Ye(Ce,$e){$e===void 0&&($e={}),_=co({},_,Ce);let tt=[],De=[];u.v7_fetcherPersist&&_.fetchers.forEach((wt,Gt)=>{wt.state==="idle"&&(pe.has(Gt)?De.push(Gt):tt.push(Gt))}),[...d].forEach(wt=>wt(_,{deletedFetchers:De,unstable_viewTransitionOpts:$e.viewTransitionOpts,unstable_flushSync:$e.flushSync===!0})),u.v7_fetcherPersist&&(tt.forEach(wt=>_.fetchers.delete(wt)),De.forEach(wt=>be(wt)))}function nt(Ce,$e,tt){var De,wt;let{flushSync:Gt}=tt===void 0?{}:tt,jt=_.actionData!=null&&_.navigation.formMethod!=null&&ac(_.navigation.formMethod)&&_.navigation.state==="loading"&&((De=Ce.state)==null?void 0:De._isRedirect)!==!0,qt;$e.actionData?Object.keys($e.actionData).length>0?qt=$e.actionData:qt=null:jt?qt=_.actionData:qt=null;let Bt=$e.loaderData?MQ(_.loaderData,$e.loaderData,$e.matches||[],$e.errors):_.loaderData,On=_.blockers;On.size>0&&(On=new Map(On),On.forEach((Ve,yt)=>On.set(yt,gv)));let je=F===!0||_.navigation.formMethod!=null&&ac(_.navigation.formMethod)&&((wt=Ce.state)==null?void 0:wt._isRedirect)!==!0;a&&(s=a,a=void 0),q||w===Oo.Pop||(w===Oo.Push?e.history.push(Ce,Ce.state):w===Oo.Replace&&e.history.replace(Ce,Ce.state));let ze;if(w===Oo.Pop){let Ve=W.get(_.location.pathname);Ve&&Ve.has(Ce.pathname)?ze={currentLocation:_.location,nextLocation:Ce}:W.has(Ce.pathname)&&(ze={currentLocation:Ce,nextLocation:_.location})}else if(L){let Ve=W.get(_.location.pathname);Ve?Ve.add(Ce.pathname):(Ve=new Set([Ce.pathname]),W.set(_.location.pathname,Ve)),ze={currentLocation:_.location,nextLocation:Ce}}Ye(co({},$e,{actionData:qt,loaderData:Bt,historyAction:w,location:Ce,initialized:!0,navigation:gN,revalidation:"idle",restoreScrollPosition:$n(Ce,$e.matches||_.matches),preventScrollReset:je,blockers:On}),{viewTransitionOpts:ze,flushSync:Gt===!0}),w=Oo.Pop,F=!1,L=!1,q=!1,j=!1,z=[],X=[]}async function ke(Ce,$e){if(typeof Ce=="number"){e.history.go(Ce);return}let tt=dL(_.location,_.matches,l,u.v7_prependBasename,Ce,u.v7_relativeSplatPath,$e==null?void 0:$e.fromRouteId,$e==null?void 0:$e.relative),{path:De,submission:wt,error:Gt}=RQ(u.v7_normalizeFormMethod,!1,tt,$e),jt=_.location,qt=AE(_.location,De,$e&&$e.state);qt=co({},qt,e.history.encodeLocation(qt));let Bt=$e&&$e.replace!=null?$e.replace:void 0,On=Oo.Push;Bt===!0?On=Oo.Replace:Bt===!1||wt!=null&&ac(wt.formMethod)&&wt.formAction===_.location.pathname+_.location.search&&(On=Oo.Replace);let je=$e&&"preventScrollReset"in $e?$e.preventScrollReset===!0:void 0,ze=($e&&$e.unstable_flushSync)===!0,Ve=bt({currentLocation:jt,nextLocation:qt,historyAction:On});if(Ve){it(Ve,{state:"blocked",location:qt,proceed(){it(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:qt}),ke(Ce,$e)},reset(){let yt=new Map(_.blockers);yt.set(Ve,gv),Ye({blockers:yt})}});return}return await Ge(On,qt,{submission:wt,pendingError:Gt,preventScrollReset:je,replace:$e&&$e.replace,enableViewTransition:$e&&$e.unstable_viewTransition,flushSync:ze})}function qe(){if(He(),Ye({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){Ge(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}Ge(w||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function Ge(Ce,$e,tt){M&&M.abort(),M=null,w=Ce,q=(tt&&tt.startUninterruptedRevalidation)===!0,Cn(_.location,_.matches),F=(tt&&tt.preventScrollReset)===!0,L=(tt&&tt.enableViewTransition)===!0;let De=a||s,wt=tt&&tt.overrideNavigation,Gt=lb(De,$e,l),jt=(tt&&tt.flushSync)===!0;if(!Gt){let yt=mu(404,{pathname:$e.pathname}),{matches:Nn,route:Kt}=$Q(De);$t(),nt($e,{matches:Nn,loaderData:{},errors:{[Kt.id]:yt}},{flushSync:jt});return}if(_.initialized&&!j&&HMe(_.location,$e)&&!(tt&&tt.submission&&ac(tt.submission.formMethod))){nt($e,{matches:Gt},{flushSync:jt});return}M=new AbortController;let qt=yv(e.history,$e,M.signal,tt&&tt.submission),Bt,On;if(tt&&tt.pendingError)On={[_O(Gt).route.id]:tt.pendingError};else if(tt&&tt.submission&&ac(tt.submission.formMethod)){let yt=await rt(qt,$e,tt.submission,Gt,{replace:tt.replace,flushSync:jt});if(yt.shortCircuited)return;Bt=yt.pendingActionData,On=yt.pendingActionError,wt=bN($e,tt.submission),jt=!1,qt=new Request(qt.url,{signal:qt.signal})}let{shortCircuited:je,loaderData:ze,errors:Ve}=await Ot(qt,$e,Gt,wt,tt&&tt.submission,tt&&tt.fetcherSubmission,tt&&tt.replace,tt&&tt.initialHydration===!0,jt,Bt,On);je||(M=null,nt($e,co({matches:Gt},Bt?{actionData:Bt}:{},{loaderData:ze,errors:Ve})))}async function rt(Ce,$e,tt,De,wt){wt===void 0&&(wt={}),He();let Gt=GMe($e,tt);Ye({navigation:Gt},{flushSync:wt.flushSync===!0});let jt,qt=pL(De,$e);if(!qt.route.action&&!qt.route.lazy)jt={type:lo.error,error:mu(405,{method:Ce.method,pathname:$e.pathname,routeId:qt.route.id})};else if(jt=await bv("action",Ce,qt,De,o,i,l,u.v7_relativeSplatPath),Ce.signal.aborted)return{shortCircuited:!0};if(zm(jt)){let Bt;return wt&&wt.replace!=null?Bt=wt.replace:Bt=jt.location===_.location.pathname+_.location.search,await ie(_,jt,{submission:tt,replace:Bt}),{shortCircuited:!0}}if(ub(jt)){let Bt=_O(De,qt.route.id);return(wt&&wt.replace)!==!0&&(w=Oo.Push),{pendingActionData:{},pendingActionError:{[Bt.route.id]:jt.error}}}if(jm(jt))throw mu(400,{type:"defer-action"});return{pendingActionData:{[qt.route.id]:jt.data}}}async function Ot(Ce,$e,tt,De,wt,Gt,jt,qt,Bt,On,je){let ze=De||bN($e,wt),Ve=wt||Gt||UQ(ze),yt=a||s,[Nn,Kt]=IQ(e.history,_,tt,Ve,$e,u.v7_partialHydration&&qt===!0,j,z,X,pe,Te,ae,yt,l,On,je);if($t(_n=>!(tt&&tt.some(Tr=>Tr.route.id===_n))||Nn&&Nn.some(Tr=>Tr.route.id===_n)),ee=++G,Nn.length===0&&Kt.length===0){let _n=_t();return nt($e,co({matches:tt,loaderData:{},errors:je||null},On?{actionData:On}:{},_n?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Bt}),{shortCircuited:!0}}if(!q&&(!u.v7_partialHydration||!qt)){Kt.forEach(Tr=>{let ai=_.fetchers.get(Tr.key),fi=vv(void 0,ai?ai.data:void 0);_.fetchers.set(Tr.key,fi)});let _n=On||_.actionData;Ye(co({navigation:ze},_n?Object.keys(_n).length===0?{actionData:null}:{actionData:_n}:{},Kt.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Bt})}Kt.forEach(_n=>{Z.has(_n.key)&&Ie(_n.key),_n.controller&&Z.set(_n.key,_n.controller)});let An=()=>Kt.forEach(_n=>Ie(_n.key));M&&M.signal.addEventListener("abort",An);let{results:Kr,loaderResults:Xe,fetcherResults:Le}=await Me(_.matches,tt,Nn,Kt,Ce);if(Ce.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",An),Kt.forEach(_n=>Z.delete(_n.key));let Rt=FQ(Kr);if(Rt){if(Rt.idx>=Nn.length){let _n=Kt[Rt.idx-Nn.length].key;ae.add(_n)}return await ie(_,Rt.result,{replace:jt}),{shortCircuited:!0}}let{loaderData:en,errors:mn}=LQ(_,tt,Nn,Xe,je,Kt,Le,Oe);Oe.forEach((_n,Tr)=>{_n.subscribe(ai=>{(ai||_n.done)&&Oe.delete(Tr)})});let er=_t(),Zn=At(ee),bn=er||Zn||Kt.length>0;return co({loaderData:en,errors:mn},bn?{fetchers:new Map(_.fetchers)}:{})}function Ke(Ce,$e,tt,De){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(Ce)&&Ie(Ce);let wt=(De&&De.unstable_flushSync)===!0,Gt=a||s,jt=dL(_.location,_.matches,l,u.v7_prependBasename,tt,u.v7_relativeSplatPath,$e,De==null?void 0:De.relative),qt=lb(Gt,jt,l);if(!qt){ce(Ce,$e,mu(404,{pathname:jt}),{flushSync:wt});return}let{path:Bt,submission:On,error:je}=RQ(u.v7_normalizeFormMethod,!0,jt,De);if(je){ce(Ce,$e,je,{flushSync:wt});return}let ze=pL(qt,Bt);if(F=(De&&De.preventScrollReset)===!0,On&&ac(On.formMethod)){de(Ce,$e,Bt,ze,qt,wt,On);return}Te.set(Ce,{routeId:$e,path:Bt}),oe(Ce,$e,Bt,ze,qt,wt,On)}async function de(Ce,$e,tt,De,wt,Gt,jt){if(He(),Te.delete(Ce),!De.route.action&&!De.route.lazy){let Tr=mu(405,{method:jt.formMethod,pathname:tt,routeId:$e});ce(Ce,$e,Tr,{flushSync:Gt});return}let qt=_.fetchers.get(Ce);Be(Ce,qMe(jt,qt),{flushSync:Gt});let Bt=new AbortController,On=yv(e.history,tt,Bt.signal,jt);Z.set(Ce,Bt);let je=G,ze=await bv("action",On,De,wt,o,i,l,u.v7_relativeSplatPath);if(On.signal.aborted){Z.get(Ce)===Bt&&Z.delete(Ce);return}if(u.v7_fetcherPersist&&pe.has(Ce)){if(zm(ze)||ub(ze)){Be(Ce,Pp(void 0));return}}else{if(zm(ze))if(Z.delete(Ce),ee>je){Be(Ce,Pp(void 0));return}else return ae.add(Ce),Be(Ce,vv(jt)),ie(_,ze,{fetcherSubmission:jt});if(ub(ze)){ce(Ce,$e,ze.error);return}}if(jm(ze))throw mu(400,{type:"defer-action"});let Ve=_.navigation.location||_.location,yt=yv(e.history,Ve,Bt.signal),Nn=a||s,Kt=_.navigation.state!=="idle"?lb(Nn,_.navigation.location,l):_.matches;Or(Kt,"Didn't find any matches after fetcher action");let An=++G;Q.set(Ce,An);let Kr=vv(jt,ze.data);_.fetchers.set(Ce,Kr);let[Xe,Le]=IQ(e.history,_,Kt,jt,Ve,!1,j,z,X,pe,Te,ae,Nn,l,{[De.route.id]:ze.data},void 0);Le.filter(Tr=>Tr.key!==Ce).forEach(Tr=>{let ai=Tr.key,fi=_.fetchers.get(ai),Pt=vv(void 0,fi?fi.data:void 0);_.fetchers.set(ai,Pt),Z.has(ai)&&Ie(ai),Tr.controller&&Z.set(ai,Tr.controller)}),Ye({fetchers:new Map(_.fetchers)});let Rt=()=>Le.forEach(Tr=>Ie(Tr.key));Bt.signal.addEventListener("abort",Rt);let{results:en,loaderResults:mn,fetcherResults:er}=await Me(_.matches,Kt,Xe,Le,yt);if(Bt.signal.aborted)return;Bt.signal.removeEventListener("abort",Rt),Q.delete(Ce),Z.delete(Ce),Le.forEach(Tr=>Z.delete(Tr.key));let Zn=FQ(en);if(Zn){if(Zn.idx>=Xe.length){let Tr=Le[Zn.idx-Xe.length].key;ae.add(Tr)}return ie(_,Zn.result)}let{loaderData:bn,errors:_n}=LQ(_,_.matches,Xe,mn,void 0,Le,er,Oe);if(_.fetchers.has(Ce)){let Tr=Pp(ze.data);_.fetchers.set(Ce,Tr)}At(An),_.navigation.state==="loading"&&An>ee?(Or(w,"Expected pending action"),M&&M.abort(),nt(_.navigation.location,{matches:Kt,loaderData:bn,errors:_n,fetchers:new Map(_.fetchers)})):(Ye({errors:_n,loaderData:MQ(_.loaderData,bn,Kt,_n),fetchers:new Map(_.fetchers)}),j=!1)}async function oe(Ce,$e,tt,De,wt,Gt,jt){let qt=_.fetchers.get(Ce);Be(Ce,vv(jt,qt?qt.data:void 0),{flushSync:Gt});let Bt=new AbortController,On=yv(e.history,tt,Bt.signal);Z.set(Ce,Bt);let je=G,ze=await bv("loader",On,De,wt,o,i,l,u.v7_relativeSplatPath);if(jm(ze)&&(ze=await Rre(ze,On.signal,!0)||ze),Z.get(Ce)===Bt&&Z.delete(Ce),!On.signal.aborted){if(pe.has(Ce)){Be(Ce,Pp(void 0));return}if(zm(ze))if(ee>je){Be(Ce,Pp(void 0));return}else{ae.add(Ce),await ie(_,ze);return}if(ub(ze)){ce(Ce,$e,ze.error);return}Or(!jm(ze),"Unhandled fetcher deferred data"),Be(Ce,Pp(ze.data))}}async function ie(Ce,$e,tt){let{submission:De,fetcherSubmission:wt,replace:Gt}=tt===void 0?{}:tt;$e.revalidate&&(j=!0);let jt=AE(Ce.location,$e.location,{_isRedirect:!0});if(Or(jt,"Expected a location on the redirect navigation"),n){let Ve=!1;if($e.reloadDocument)Ve=!0;else if(kre.test($e.location)){const yt=e.history.createURL($e.location);Ve=yt.origin!==t.location.origin||eT(yt.pathname,l)==null}if(Ve){Gt?t.location.replace($e.location):t.location.assign($e.location);return}}M=null;let qt=Gt===!0?Oo.Replace:Oo.Push,{formMethod:Bt,formAction:On,formEncType:je}=Ce.navigation;!De&&!wt&&Bt&&On&&je&&(De=UQ(Ce.navigation));let ze=De||wt;if(MMe.has($e.status)&&ze&&ac(ze.formMethod))await Ge(qt,jt,{submission:co({},ze,{formAction:$e.location}),preventScrollReset:F});else{let Ve=bN(jt,De);await Ge(qt,jt,{overrideNavigation:Ve,fetcherSubmission:wt,preventScrollReset:F})}}async function Me(Ce,$e,tt,De,wt){let Gt=await Promise.all([...tt.map(Bt=>bv("loader",wt,Bt,$e,o,i,l,u.v7_relativeSplatPath)),...De.map(Bt=>Bt.matches&&Bt.match&&Bt.controller?bv("loader",yv(e.history,Bt.path,Bt.controller.signal),Bt.match,Bt.matches,o,i,l,u.v7_relativeSplatPath):{type:lo.error,error:mu(404,{pathname:Bt.path})})]),jt=Gt.slice(0,tt.length),qt=Gt.slice(tt.length);return await Promise.all([BQ(Ce,tt,jt,jt.map(()=>wt.signal),!1,_.loaderData),BQ(Ce,De.map(Bt=>Bt.match),qt,De.map(Bt=>Bt.controller?Bt.controller.signal:null),!0)]),{results:Gt,loaderResults:jt,fetcherResults:qt}}function He(){j=!0,z.push(...$t()),Te.forEach((Ce,$e)=>{Z.has($e)&&(X.push($e),Ie($e))})}function Be(Ce,$e,tt){tt===void 0&&(tt={}),_.fetchers.set(Ce,$e),Ye({fetchers:new Map(_.fetchers)},{flushSync:(tt&&tt.flushSync)===!0})}function ce(Ce,$e,tt,De){De===void 0&&(De={});let wt=_O(_.matches,$e);be(Ce),Ye({errors:{[wt.route.id]:tt},fetchers:new Map(_.fetchers)},{flushSync:(De&&De.flushSync)===!0})}function ye(Ce){return u.v7_fetcherPersist&&(te.set(Ce,(te.get(Ce)||0)+1),pe.has(Ce)&&pe.delete(Ce)),_.fetchers.get(Ce)||$Me}function be(Ce){let $e=_.fetchers.get(Ce);Z.has(Ce)&&!($e&&$e.state==="loading"&&Q.has(Ce))&&Ie(Ce),Te.delete(Ce),Q.delete(Ce),ae.delete(Ce),pe.delete(Ce),_.fetchers.delete(Ce)}function we(Ce){if(u.v7_fetcherPersist){let $e=(te.get(Ce)||0)-1;$e<=0?(te.delete(Ce),pe.add(Ce)):te.set(Ce,$e)}else be(Ce);Ye({fetchers:new Map(_.fetchers)})}function Ie(Ce){let $e=Z.get(Ce);Or($e,"Expected fetch controller: "+Ce),$e.abort(),Z.delete(Ce)}function ft(Ce){for(let $e of Ce){let tt=ye($e),De=Pp(tt.data);_.fetchers.set($e,De)}}function _t(){let Ce=[],$e=!1;for(let tt of ae){let De=_.fetchers.get(tt);Or(De,"Expected fetcher: "+tt),De.state==="loading"&&(ae.delete(tt),Ce.push(tt),$e=!0)}return ft(Ce),$e}function At(Ce){let $e=[];for(let[tt,De]of Q)if(De0}function pt(Ce,$e){let tt=_.blockers.get(Ce)||gv;return me.get(Ce)!==$e&&me.set(Ce,$e),tt}function Mt(Ce){_.blockers.delete(Ce),me.delete(Ce)}function it(Ce,$e){let tt=_.blockers.get(Ce)||gv;Or(tt.state==="unblocked"&&$e.state==="blocked"||tt.state==="blocked"&&$e.state==="blocked"||tt.state==="blocked"&&$e.state==="proceeding"||tt.state==="blocked"&&$e.state==="unblocked"||tt.state==="proceeding"&&$e.state==="unblocked","Invalid blocker state transition: "+tt.state+" -> "+$e.state);let De=new Map(_.blockers);De.set(Ce,$e),Ye({blockers:De})}function bt(Ce){let{currentLocation:$e,nextLocation:tt,historyAction:De}=Ce;if(me.size===0)return;me.size>1&&vg(!1,"A router only supports one blocker at a time");let wt=Array.from(me.entries()),[Gt,jt]=wt[wt.length-1],qt=_.blockers.get(Gt);if(!(qt&&qt.state==="proceeding")&&jt({currentLocation:$e,nextLocation:tt,historyAction:De}))return Gt}function $t(Ce){let $e=[];return Oe.forEach((tt,De)=>{(!Ce||Ce(De))&&(tt.cancel(),$e.push(De),Oe.delete(De))}),$e}function Xt(Ce,$e,tt){if(p=Ce,g=$e,m=tt||null,!v&&_.navigation===gN){v=!0;let De=$n(_.location,_.matches);De!=null&&Ye({restoreScrollPosition:De})}return()=>{p=null,g=null,m=null}}function vn(Ce,$e){return m&&m(Ce,$e.map(De=>fMe(De,_.loaderData)))||Ce.key}function Cn(Ce,$e){if(p&&g){let tt=vn(Ce,$e);p[tt]=g()}}function $n(Ce,$e){if(p){let tt=vn(Ce,$e),De=p[tt];if(typeof De=="number")return De}return null}function qn(Ce){o={},a=cL(Ce,i,void 0,o)}return I={get basename(){return l},get future(){return u},get state(){return _},get routes(){return s},get window(){return t},initialize:Fe,subscribe:ct,enableScrollRestoration:Xt,navigate:ke,fetch:Ke,revalidate:qe,createHref:Ce=>e.history.createHref(Ce),encodeLocation:Ce=>e.history.encodeLocation(Ce),getFetcher:ye,deleteFetcher:we,dispose:et,getBlocker:pt,deleteBlocker:Mt,_internalFetchControllers:Z,_internalActiveDeferreds:Oe,_internalSetRoutes:qn},I}function UMe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function dL(e,t,n,r,i,o,s,a){let l,u;if(s){l=[];for(let d of t)if(l.push(d),d.route.id===s){u=d;break}}else l=t,u=t[t.length-1];let c=z$(i||".",j$(l,o),eT(e.pathname,n)||e.pathname,a==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!W$(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Sh([n,c.pathname])),JS(c)}function RQ(e,t,n,r){if(!r||!UMe(r))return{path:n};if(r.formMethod&&!YMe(r.formMethod))return{path:n,error:mu(405,{method:r.formMethod})};let i=()=>({path:n,error:mu(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),a=Are(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ac(s))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((m,g)=>{let[v,E]=g;return""+m+v+"="+E+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!ac(s))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Or(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=fL(r.formData),u=r.formData;else if(r.body instanceof FormData)l=fL(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=PQ(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=PQ(l)}catch{return i()}let c={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ac(c.formMethod))return{path:n,submission:c};let d=sp(n);return t&&d.search&&W$(d.search)&&l.append("index",""),d.search="?"+l,{path:JS(d),submission:c}}function jMe(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 IQ(e,t,n,r,i,o,s,a,l,u,c,d,p,m,g,v){let E=v?Object.values(v)[0]:g?Object.values(g)[0]:void 0,O=e.createURL(t.location),S=e.createURL(i),x=v?Object.keys(v)[0]:void 0,I=jMe(n,x).filter((w,F)=>{let{route:M}=w;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if(zMe(t.loaderData,t.matches[F],w)||a.some(H=>H===w.route.id))return!0;let L=t.matches[F],W=w;return DQ(w,co({currentUrl:O,currentParams:L.params,nextUrl:S,nextParams:W.params},r,{actionResult:E,defaultShouldRevalidate:s||O.pathname+O.search===S.pathname+S.search||O.search!==S.search||_re(L,W)}))}),_=[];return c.forEach((w,F)=>{if(o||!n.some(q=>q.route.id===w.routeId)||u.has(F))return;let M=lb(p,w.path,m);if(!M){_.push({key:F,routeId:w.routeId,path:w.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(F),W=pL(M,w.path),H=!1;d.has(F)?H=!1:l.includes(F)?H=!0:L&&L.state!=="idle"&&L.data===void 0?H=s:H=DQ(W,co({currentUrl:O,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:s})),H&&_.push({key:F,routeId:w.routeId,path:w.path,matches:M,match:W,controller:new AbortController})}),[I,_]}function zMe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function _re(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function DQ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function NQ(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Or(i,"No route found in manifest");let o={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";vg(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!cMe.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,co({},t(i),{lazy:void 0}))}async function bv(e,t,n,r,i,o,s,a,l){l===void 0&&(l={});let u,c,d,p=v=>{let E,O=new Promise((S,x)=>E=x);return d=()=>E(),t.signal.addEventListener("abort",d),Promise.race([v({request:t,params:n.params,context:l.requestContext}),O])};try{let v=n.route[e];if(n.route.lazy)if(v){let E,O=await Promise.all([p(v).catch(S=>{E=S}),NQ(n.route,o,i)]);if(E)throw E;c=O[0]}else if(await NQ(n.route,o,i),v=n.route[e],v)c=await p(v);else if(e==="action"){let E=new URL(t.url),O=E.pathname+E.search;throw mu(405,{method:t.method,pathname:O,routeId:n.route.id})}else return{type:lo.data,data:void 0};else if(v)c=await p(v);else{let E=new URL(t.url),O=E.pathname+E.search;throw mu(404,{pathname:O})}Or(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(v){u=lo.error,c=v}finally{d&&t.signal.removeEventListener("abort",d)}if(QMe(c)){let v=c.status;if(LMe.has(v)){let O=c.headers.get("Location");if(Or(O,"Redirects returned/thrown from loaders/actions must have a Location header"),!kre.test(O))O=dL(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,O,a);else if(!l.isStaticRequest){let S=new URL(t.url),x=O.startsWith("//")?new URL(S.protocol+O):new URL(O),C=eT(x.pathname,s)!=null;x.origin===S.origin&&C&&(O=x.pathname+x.search+x.hash)}if(l.isStaticRequest)throw c.headers.set("Location",O),c;return{type:lo.redirect,status:v,location:O,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===lo.error?lo.error:lo.data,response:c};let E;try{let O=c.headers.get("Content-Type");O&&/\bapplication\/json\b/.test(O)?c.body==null?E=null:E=await c.json():E=await c.text()}catch(O){return{type:lo.error,error:O}}return u===lo.error?{type:u,error:new V$(v,c.statusText,E),headers:c.headers}:{type:lo.data,data:E,statusCode:c.status,headers:c.headers}}if(u===lo.error)return{type:u,error:c};if(WMe(c)){var m,g;return{type:lo.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:lo.data,data:c}}function yv(e,t,n,r){let i=e.createURL(Are(t)).toString(),o={signal:n};if(r&&ac(r.formMethod)){let{formMethod:s,formEncType:a}=r;o.method=s.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=fL(r.formData):o.body=r.formData}return new Request(i,o)}function fL(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function PQ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function VMe(e,t,n,r,i){let o={},s=null,a,l=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(Or(!zm(c),"Cannot handle redirect results in processLoaderData"),ub(c)){let m=_O(e,p),g=c.error;r&&(g=Object.values(r)[0],r=void 0),s=s||{},s[m.route.id]==null&&(s[m.route.id]=g),o[p]=void 0,l||(l=!0,a=H$(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else jm(c)?(i.set(p,c.deferredData),o[p]=c.deferredData.data):o[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(a=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(s=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:s,statusCode:a||200,loaderHeaders:u}}function LQ(e,t,n,r,i,o,s,a){let{loaderData:l,errors:u}=VMe(t,n,r,i,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function $Q(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 mu(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,s="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?a="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"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(s="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",a='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?a="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&&(a='Invalid request method "'+i.toUpperCase()+'"')),new V$(e||500,s,new Error(a),!0)}function FQ(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(zm(n))return{result:n,idx:t}}}function Are(e){let t=typeof e=="string"?sp(e):e;return JS(co({},t,{hash:""}))}function HMe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function jm(e){return e.type===lo.deferred}function ub(e){return e.type===lo.error}function zm(e){return(e&&e.type)===lo.redirect}function WMe(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 QMe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function YMe(e){return PMe.has(e.toLowerCase())}function ac(e){return DMe.has(e.toLowerCase())}async function BQ(e,t,n,r,i,o){for(let s=0;sd.route.id===l.route.id),c=u!=null&&!_re(u,l)&&(o&&o[l.route.id])!==void 0;if(jm(a)&&(i||c)){let d=r[s];Or(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await Rre(a,d,i).then(p=>{p&&(n[s]=p||n[s])})}}}async function Rre(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:lo.data,data:e.deferredData.unwrappedData}}catch(i){return{type:lo.error,error:i}}return{type:lo.data,data:e.deferredData.data}}}function W$(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function pL(e,t){let n=typeof t=="string"?sp(t).search:t.search;if(e[e.length-1].route.index&&W$(n||""))return e[e.length-1];let r=wre(e);return r[r.length-1]}function UQ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function bN(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 GMe(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 vv(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 qMe(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 Pp(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 ZMe(e,t){try{let n=e.sessionStorage.getItem(Cre);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 XMe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Cre,JSON.stringify(n))}catch(r){vg(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function vg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function a3e(){return Math.random().toString(36).substr(2,8)}function xQ(e,t){return{usr:e.state,key:e.key,idx:t}}function _E(e,t,n,r){return n===void 0&&(n=null),co({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ap(t):t,{state:n,key:t&&t.key||r||a3e()})}function KS(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 ap(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 s3e(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Oo.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(co({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=Oo.Pop;let S=c(),O=S==null?null:S-u;u=S,l&&l({action:s,location:v.location,delta:O})}function f(S,O){s=Oo.Push;let E=_E(v.location,S,O);n&&n(E,S),u=c()+1;let w=xQ(E,u),k=v.createHref(E);try{a.pushState(w,"",k)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(k)}o&&l&&l({action:s,location:v.location,delta:1})}function m(S,O){s=Oo.Replace;let E=_E(v.location,S,O);n&&n(E,S),u=c();let w=xQ(E,u),k=v.createHref(E);a.replaceState(w,"",k),o&&l&&l({action:s,location:v.location,delta:0})}function g(S){let O=i.location.origin!=="null"?i.location.origin:i.location.href,E=typeof S=="string"?S:KS(S);return Or(O,"No window.location.(origin|href) available to create URL for href: "+E),new URL(E,O)}let v={get action(){return s},get location(){return e(i,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(wQ,d),l=S,()=>{i.removeEventListener(wQ,d),l=null}},createHref(S){return t(i,S)},createURL:g,encodeLocation(S){let O=g(S);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:f,replace:m,go(S){return a.go(S)}};return v}var lo;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lo||(lo={}));const l3e=new Set(["lazy","caseSensitive","path","id","index","children"]);function u3e(e){return e.index===!0}function sM(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(Or(i.index!==!0||!i.children,"Cannot specify children on an index route"),Or(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),u3e(i)){let l=co({},i,t(i),{id:s});return r[s]=l,l}else{let l=co({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=sM(i.children,t,a,r)),l}})}function l0(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ap(t):t,i=JS(r.pathname||"/",n);if(i==null)return null;let o=vre(e);d3e(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("/")&&(Or(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=Sh([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Or(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),vre(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:y3e(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 Ore(o.path))i(o,a,l)}),t}function Ore(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=Ore(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 d3e(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:v3e(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const f3e=/^:[\w-]+$/,p3e=3,h3e=2,m3e=1,g3e=10,b3e=-2,kQ=e=>e==="*";function y3e(e,t){let n=e.split("/"),r=n.length;return n.some(kQ)&&(r+=b3e),t&&(r+=h3e),n.filter(i=>!kQ(i)).reduce((i,o)=>i+(f3e.test(o)?p3e:o===""?m3e:g3e),r)}function v3e(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 O3e(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:f,isOptional:m}=c;if(f==="*"){let v=s[d]||"";a=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const g=s[d];return m&&!g?u[f]=void 0:u[f]=w3e(g||"",f),u},{}),pathname:o,pathnameBase:a,pattern:e}}function S3e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vg(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 T3e(e){try{return decodeURI(e)}catch(t){return vg(!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 w3e(e,t){try{return decodeURIComponent(e)}catch(n){return vg(!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 JS(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 x3e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ap(e):e;return{pathname:n?n.startsWith("/")?n:k3e(n,t):t,search:_3e(r),hash:A3e(i)}}function k3e(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 pN(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 Ere(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function BF(e,t){let n=Ere(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function UF(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ap(e):(i=co({},e),Or(!i.pathname||!i.pathname.includes("?"),pN("?","pathname","search",i)),Or(!i.pathname||!i.pathname.includes("#"),pN("#","pathname","hash",i)),Or(!i.search||!i.search.includes("#"),pN("#","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 f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=x3e(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Sh=e=>e.join("/").replace(/\/\/+/g,"/"),C3e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_3e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,A3e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class jF{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 zF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Sre=["post","put","patch","delete"],R3e=new Set(Sre),I3e=["get",...Sre],D3e=new Set(I3e),N3e=new Set([301,302,303,307,308]),P3e=new Set([307,308]),hN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},L3e={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mO={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Tre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M3e=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),wre="remix-router-transitions";function $3e(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;Or(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 Ae=e.detectErrorBoundary;i=Be=>({hasErrorBoundary:Ae(Be)})}else i=M3e;let o={},a=sM(e.routes,i,void 0,o),s,l=e.basename||"/",u=co({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,f=null,m=null,g=null,v=e.hydrationData!=null,S=l0(a,e.history.location,l),O=null;if(S==null){let Ae=mu(404,{pathname:e.history.location.pathname}),{matches:Be,route:rt}=PQ(a);S=Be,O={[rt.id]:Ae}}let E,w=S.some(Ae=>Ae.route.lazy),k=S.some(Ae=>Ae.route.loader);if(w)E=!1;else if(!k)E=!0;else if(u.v7_partialHydration){let Ae=e.hydrationData?e.hydrationData.loaderData:null,Be=e.hydrationData?e.hydrationData.errors:null;E=S.every(rt=>rt.route.loader&&rt.route.loader.hydrate!==!0&&(Ae&&Ae[rt.route.id]!==void 0||Be&&Be[rt.route.id]!==void 0))}else E=e.hydrationData!=null;let A,C={historyAction:e.history.action,location:e.history.location,matches:S,initialized:E,navigation:hN,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||O,fetchers:new Map,blockers:new Map},x=Oo.Pop,F=!1,M,P=!1,V=new Map,W=null,G=!1,j=!1,z=[],X=[],Z=new Map,q=0,te=-1,Q=new Map,se=new Set,he=new Map,J=new Map,le=new Set,ve=new Map,ue=new Map,we=!1;function ke(){if(c=e.history.listen(Ae=>{let{action:Be,location:rt,delta:Ne}=Ae;if(we){we=!1;return}vg(ue.size===0||Ne!=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 wt=gt({currentLocation:C.location,nextLocation:rt,historyAction:Be});if(wt&&Ne!=null){we=!0,e.history.go(Ne*-1),ot(wt,{state:"blocked",location:rt,proceed(){ot(wt,{state:"proceeding",proceed:void 0,reset:void 0,location:rt}),e.history.go(Ne)},reset(){let Gt=new Map(C.blockers);Gt.set(wt,mO),Me({blockers:Gt})}});return}return Xe(Be,rt)}),n){G3e(t,V);let Ae=()=>q3e(t,V);t.addEventListener("pagehide",Ae),W=()=>t.removeEventListener("pagehide",Ae)}return C.initialized||Xe(Oo.Pop,C.location,{initialHydration:!0}),A}function Ue(){c&&c(),W&&W(),d.clear(),M&&M.abort(),C.fetchers.forEach((Ae,Be)=>ye(Be)),C.blockers.forEach((Ae,Be)=>Mt(Be))}function et(Ae){return d.add(Ae),()=>d.delete(Ae)}function Me(Ae,Be){Be===void 0&&(Be={}),C=co({},C,Ae);let rt=[],Ne=[];u.v7_fetcherPersist&&C.fetchers.forEach((wt,Gt)=>{wt.state==="idle"&&(le.has(Gt)?Ne.push(Gt):rt.push(Gt))}),[...d].forEach(wt=>wt(C,{deletedFetchers:Ne,unstable_viewTransitionOpts:Be.viewTransitionOpts,unstable_flushSync:Be.flushSync===!0})),u.v7_fetcherPersist&&(rt.forEach(wt=>C.fetchers.delete(wt)),Ne.forEach(wt=>ye(wt)))}function qe(Ae,Be,rt){var Ne,wt;let{flushSync:Gt}=rt===void 0?{}:rt,jt=C.actionData!=null&&C.navigation.formMethod!=null&&sc(C.navigation.formMethod)&&C.navigation.state==="loading"&&((Ne=Ae.state)==null?void 0:Ne._isRedirect)!==!0,qt;Be.actionData?Object.keys(Be.actionData).length>0?qt=Be.actionData:qt=null:jt?qt=C.actionData:qt=null;let Bt=Be.loaderData?NQ(C.loaderData,Be.loaderData,Be.matches||[],Be.errors):C.loaderData,On=C.blockers;On.size>0&&(On=new Map(On),On.forEach((He,bt)=>On.set(bt,mO)));let Ve=F===!0||C.navigation.formMethod!=null&&sc(C.navigation.formMethod)&&((wt=Ae.state)==null?void 0:wt._isRedirect)!==!0;s&&(a=s,s=void 0),G||x===Oo.Pop||(x===Oo.Push?e.history.push(Ae,Ae.state):x===Oo.Replace&&e.history.replace(Ae,Ae.state));let We;if(x===Oo.Pop){let He=V.get(C.location.pathname);He&&He.has(Ae.pathname)?We={currentLocation:C.location,nextLocation:Ae}:V.has(Ae.pathname)&&(We={currentLocation:Ae,nextLocation:C.location})}else if(P){let He=V.get(C.location.pathname);He?He.add(Ae.pathname):(He=new Set([Ae.pathname]),V.set(C.location.pathname,He)),We={currentLocation:C.location,nextLocation:Ae}}Me(co({},Be,{actionData:qt,loaderData:Bt,historyAction:x,location:Ae,initialized:!0,navigation:hN,revalidation:"idle",restoreScrollPosition:$n(Ae,Be.matches||C.matches),preventScrollReset:Ve,blockers:On}),{viewTransitionOpts:We,flushSync:Gt===!0}),x=Oo.Pop,F=!1,P=!1,G=!1,j=!1,z=[],X=[]}async function xe(Ae,Be){if(typeof Ae=="number"){e.history.go(Ae);return}let rt=lM(C.location,C.matches,l,u.v7_prependBasename,Ae,u.v7_relativeSplatPath,Be==null?void 0:Be.fromRouteId,Be==null?void 0:Be.relative),{path:Ne,submission:wt,error:Gt}=CQ(u.v7_normalizeFormMethod,!1,rt,Be),jt=C.location,qt=_E(C.location,Ne,Be&&Be.state);qt=co({},qt,e.history.encodeLocation(qt));let Bt=Be&&Be.replace!=null?Be.replace:void 0,On=Oo.Push;Bt===!0?On=Oo.Replace:Bt===!1||wt!=null&&sc(wt.formMethod)&&wt.formAction===C.location.pathname+C.location.search&&(On=Oo.Replace);let Ve=Be&&"preventScrollReset"in Be?Be.preventScrollReset===!0:void 0,We=(Be&&Be.unstable_flushSync)===!0,He=gt({currentLocation:jt,nextLocation:qt,historyAction:On});if(He){ot(He,{state:"blocked",location:qt,proceed(){ot(He,{state:"proceeding",proceed:void 0,reset:void 0,location:qt}),xe(Ae,Be)},reset(){let bt=new Map(C.blockers);bt.set(He,mO),Me({blockers:bt})}});return}return await Xe(On,qt,{submission:wt,pendingError:Gt,preventScrollReset:Ve,replace:Be&&Be.replace,enableViewTransition:Be&&Be.unstable_viewTransition,flushSync:We})}function Ze(){if(Qe(),Me({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){Xe(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}Xe(x||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation})}}async function Xe(Ae,Be,rt){M&&M.abort(),M=null,x=Ae,G=(rt&&rt.startUninterruptedRevalidation)===!0,Cn(C.location,C.matches),F=(rt&&rt.preventScrollReset)===!0,P=(rt&&rt.enableViewTransition)===!0;let Ne=s||a,wt=rt&&rt.overrideNavigation,Gt=l0(Ne,Be,l),jt=(rt&&rt.flushSync)===!0;if(!Gt){let bt=mu(404,{pathname:Be.pathname}),{matches:Nn,route:Kt}=PQ(Ne);$t(),qe(Be,{matches:Nn,loaderData:{},errors:{[Kt.id]:bt}},{flushSync:jt});return}if(C.initialized&&!j&&z3e(C.location,Be)&&!(rt&&rt.submission&&sc(rt.submission.formMethod))){qe(Be,{matches:Gt},{flushSync:jt});return}M=new AbortController;let qt=bO(e.history,Be,M.signal,rt&&rt.submission),Bt,On;if(rt&&rt.pendingError)On={[C1(Gt).route.id]:rt.pendingError};else if(rt&&rt.submission&&sc(rt.submission.formMethod)){let bt=await it(qt,Be,rt.submission,Gt,{replace:rt.replace,flushSync:jt});if(bt.shortCircuited)return;Bt=bt.pendingActionData,On=bt.pendingActionError,wt=mN(Be,rt.submission),jt=!1,qt=new Request(qt.url,{signal:qt.signal})}let{shortCircuited:Ve,loaderData:We,errors:He}=await Ot(qt,Be,Gt,wt,rt&&rt.submission,rt&&rt.fetcherSubmission,rt&&rt.replace,rt&&rt.initialHydration===!0,jt,Bt,On);Ve||(M=null,qe(Be,co({matches:Gt},Bt?{actionData:Bt}:{},{loaderData:We,errors:He})))}async function it(Ae,Be,rt,Ne,wt){wt===void 0&&(wt={}),Qe();let Gt=Q3e(Be,rt);Me({navigation:Gt},{flushSync:wt.flushSync===!0});let jt,qt=cM(Ne,Be);if(!qt.route.action&&!qt.route.lazy)jt={type:lo.error,error:mu(405,{method:Ae.method,pathname:Be.pathname,routeId:qt.route.id})};else if(jt=await gO("action",Ae,qt,Ne,o,i,l,u.v7_relativeSplatPath),Ae.signal.aborted)return{shortCircuited:!0};if(zm(jt)){let Bt;return wt&&wt.replace!=null?Bt=wt.replace:Bt=jt.location===C.location.pathname+C.location.search,await ie(C,jt,{submission:rt,replace:Bt}),{shortCircuited:!0}}if(u0(jt)){let Bt=C1(Ne,qt.route.id);return(wt&&wt.replace)!==!0&&(x=Oo.Push),{pendingActionData:{},pendingActionError:{[Bt.route.id]:jt.error}}}if(jm(jt))throw mu(400,{type:"defer-action"});return{pendingActionData:{[qt.route.id]:jt.data}}}async function Ot(Ae,Be,rt,Ne,wt,Gt,jt,qt,Bt,On,Ve){let We=Ne||mN(Be,wt),He=wt||Gt||$Q(We),bt=s||a,[Nn,Kt]=_Q(e.history,C,rt,He,Be,u.v7_partialHydration&&qt===!0,j,z,X,le,he,se,bt,l,On,Ve);if($t(_n=>!(rt&&rt.some(Tr=>Tr.route.id===_n))||Nn&&Nn.some(Tr=>Tr.route.id===_n)),te=++q,Nn.length===0&&Kt.length===0){let _n=_t();return qe(Be,co({matches:rt,loaderData:{},errors:Ve||null},On?{actionData:On}:{},_n?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Bt}),{shortCircuited:!0}}if(!G&&(!u.v7_partialHydration||!qt)){Kt.forEach(Tr=>{let si=C.fetchers.get(Tr.key),fi=yO(void 0,si?si.data:void 0);C.fetchers.set(Tr.key,fi)});let _n=On||C.actionData;Me(co({navigation:We},_n?Object.keys(_n).length===0?{actionData:null}:{actionData:_n}:{},Kt.length>0?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Bt})}Kt.forEach(_n=>{Z.has(_n.key)&&De(_n.key),_n.controller&&Z.set(_n.key,_n.controller)});let An=()=>Kt.forEach(_n=>De(_n.key));M&&M.signal.addEventListener("abort",An);let{results:Kr,loaderResults:Je,fetcherResults:$e}=await Fe(C.matches,rt,Nn,Kt,Ae);if(Ae.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",An),Kt.forEach(_n=>Z.delete(_n.key));let Rt=LQ(Kr);if(Rt){if(Rt.idx>=Nn.length){let _n=Kt[Rt.idx-Nn.length].key;se.add(_n)}return await ie(C,Rt.result,{replace:jt}),{shortCircuited:!0}}let{loaderData:en,errors:mn}=DQ(C,rt,Nn,Je,Ve,Kt,$e,ve);ve.forEach((_n,Tr)=>{_n.subscribe(si=>{(si||_n.done)&&ve.delete(Tr)})});let er=_t(),Zn=At(te),bn=er||Zn||Kt.length>0;return co({loaderData:en,errors:mn},bn?{fetchers:new Map(C.fetchers)}:{})}function tt(Ae,Be,rt,Ne){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(Ae)&&De(Ae);let wt=(Ne&&Ne.unstable_flushSync)===!0,Gt=s||a,jt=lM(C.location,C.matches,l,u.v7_prependBasename,rt,u.v7_relativeSplatPath,Be,Ne==null?void 0:Ne.relative),qt=l0(Gt,jt,l);if(!qt){fe(Ae,Be,mu(404,{pathname:jt}),{flushSync:wt});return}let{path:Bt,submission:On,error:Ve}=CQ(u.v7_normalizeFormMethod,!0,jt,Ne);if(Ve){fe(Ae,Be,Ve,{flushSync:wt});return}let We=cM(qt,Bt);if(F=(Ne&&Ne.preventScrollReset)===!0,On&&sc(On.formMethod)){pe(Ae,Be,Bt,We,qt,wt,On);return}he.set(Ae,{routeId:Be,path:Bt}),oe(Ae,Be,Bt,We,qt,wt,On)}async function pe(Ae,Be,rt,Ne,wt,Gt,jt){if(Qe(),he.delete(Ae),!Ne.route.action&&!Ne.route.lazy){let Tr=mu(405,{method:jt.formMethod,pathname:rt,routeId:Be});fe(Ae,Be,Tr,{flushSync:Gt});return}let qt=C.fetchers.get(Ae);je(Ae,Y3e(jt,qt),{flushSync:Gt});let Bt=new AbortController,On=bO(e.history,rt,Bt.signal,jt);Z.set(Ae,Bt);let Ve=q,We=await gO("action",On,Ne,wt,o,i,l,u.v7_relativeSplatPath);if(On.signal.aborted){Z.get(Ae)===Bt&&Z.delete(Ae);return}if(u.v7_fetcherPersist&&le.has(Ae)){if(zm(We)||u0(We)){je(Ae,Pp(void 0));return}}else{if(zm(We))if(Z.delete(Ae),te>Ve){je(Ae,Pp(void 0));return}else return se.add(Ae),je(Ae,yO(jt)),ie(C,We,{fetcherSubmission:jt});if(u0(We)){fe(Ae,Be,We.error);return}}if(jm(We))throw mu(400,{type:"defer-action"});let He=C.navigation.location||C.location,bt=bO(e.history,He,Bt.signal),Nn=s||a,Kt=C.navigation.state!=="idle"?l0(Nn,C.navigation.location,l):C.matches;Or(Kt,"Didn't find any matches after fetcher action");let An=++q;Q.set(Ae,An);let Kr=yO(jt,We.data);C.fetchers.set(Ae,Kr);let[Je,$e]=_Q(e.history,C,Kt,jt,He,!1,j,z,X,le,he,se,Nn,l,{[Ne.route.id]:We.data},void 0);$e.filter(Tr=>Tr.key!==Ae).forEach(Tr=>{let si=Tr.key,fi=C.fetchers.get(si),Pt=yO(void 0,fi?fi.data:void 0);C.fetchers.set(si,Pt),Z.has(si)&&De(si),Tr.controller&&Z.set(si,Tr.controller)}),Me({fetchers:new Map(C.fetchers)});let Rt=()=>$e.forEach(Tr=>De(Tr.key));Bt.signal.addEventListener("abort",Rt);let{results:en,loaderResults:mn,fetcherResults:er}=await Fe(C.matches,Kt,Je,$e,bt);if(Bt.signal.aborted)return;Bt.signal.removeEventListener("abort",Rt),Q.delete(Ae),Z.delete(Ae),$e.forEach(Tr=>Z.delete(Tr.key));let Zn=LQ(en);if(Zn){if(Zn.idx>=Je.length){let Tr=$e[Zn.idx-Je.length].key;se.add(Tr)}return ie(C,Zn.result)}let{loaderData:bn,errors:_n}=DQ(C,C.matches,Je,mn,void 0,$e,er,ve);if(C.fetchers.has(Ae)){let Tr=Pp(We.data);C.fetchers.set(Ae,Tr)}At(An),C.navigation.state==="loading"&&An>te?(Or(x,"Expected pending action"),M&&M.abort(),qe(C.navigation.location,{matches:Kt,loaderData:bn,errors:_n,fetchers:new Map(C.fetchers)})):(Me({errors:_n,loaderData:NQ(C.loaderData,bn,Kt,_n),fetchers:new Map(C.fetchers)}),j=!1)}async function oe(Ae,Be,rt,Ne,wt,Gt,jt){let qt=C.fetchers.get(Ae);je(Ae,yO(jt,qt?qt.data:void 0),{flushSync:Gt});let Bt=new AbortController,On=bO(e.history,rt,Bt.signal);Z.set(Ae,Bt);let Ve=q,We=await gO("loader",On,Ne,wt,o,i,l,u.v7_relativeSplatPath);if(jm(We)&&(We=await Cre(We,On.signal,!0)||We),Z.get(Ae)===Bt&&Z.delete(Ae),!On.signal.aborted){if(le.has(Ae)){je(Ae,Pp(void 0));return}if(zm(We))if(te>Ve){je(Ae,Pp(void 0));return}else{se.add(Ae),await ie(C,We);return}if(u0(We)){fe(Ae,Be,We.error);return}Or(!jm(We),"Unhandled fetcher deferred data"),je(Ae,Pp(We.data))}}async function ie(Ae,Be,rt){let{submission:Ne,fetcherSubmission:wt,replace:Gt}=rt===void 0?{}:rt;Be.revalidate&&(j=!0);let jt=_E(Ae.location,Be.location,{_isRedirect:!0});if(Or(jt,"Expected a location on the redirect navigation"),n){let He=!1;if(Be.reloadDocument)He=!0;else if(Tre.test(Be.location)){const bt=e.history.createURL(Be.location);He=bt.origin!==t.location.origin||JS(bt.pathname,l)==null}if(He){Gt?t.location.replace(Be.location):t.location.assign(Be.location);return}}M=null;let qt=Gt===!0?Oo.Replace:Oo.Push,{formMethod:Bt,formAction:On,formEncType:Ve}=Ae.navigation;!Ne&&!wt&&Bt&&On&&Ve&&(Ne=$Q(Ae.navigation));let We=Ne||wt;if(P3e.has(Be.status)&&We&&sc(We.formMethod))await Xe(qt,jt,{submission:co({},We,{formAction:Be.location}),preventScrollReset:F});else{let He=mN(jt,Ne);await Xe(qt,jt,{overrideNavigation:He,fetcherSubmission:wt,preventScrollReset:F})}}async function Fe(Ae,Be,rt,Ne,wt){let Gt=await Promise.all([...rt.map(Bt=>gO("loader",wt,Bt,Be,o,i,l,u.v7_relativeSplatPath)),...Ne.map(Bt=>Bt.matches&&Bt.match&&Bt.controller?gO("loader",bO(e.history,Bt.path,Bt.controller.signal),Bt.match,Bt.matches,o,i,l,u.v7_relativeSplatPath):{type:lo.error,error:mu(404,{pathname:Bt.path})})]),jt=Gt.slice(0,rt.length),qt=Gt.slice(rt.length);return await Promise.all([MQ(Ae,rt,jt,jt.map(()=>wt.signal),!1,C.loaderData),MQ(Ae,Ne.map(Bt=>Bt.match),qt,Ne.map(Bt=>Bt.controller?Bt.controller.signal:null),!0)]),{results:Gt,loaderResults:jt,fetcherResults:qt}}function Qe(){j=!0,z.push(...$t()),he.forEach((Ae,Be)=>{Z.has(Be)&&(X.push(Be),De(Be))})}function je(Ae,Be,rt){rt===void 0&&(rt={}),C.fetchers.set(Ae,Be),Me({fetchers:new Map(C.fetchers)},{flushSync:(rt&&rt.flushSync)===!0})}function fe(Ae,Be,rt,Ne){Ne===void 0&&(Ne={});let wt=C1(C.matches,Be);ye(Ae),Me({errors:{[wt.route.id]:rt},fetchers:new Map(C.fetchers)},{flushSync:(Ne&&Ne.flushSync)===!0})}function Oe(Ae){return u.v7_fetcherPersist&&(J.set(Ae,(J.get(Ae)||0)+1),le.has(Ae)&&le.delete(Ae)),C.fetchers.get(Ae)||L3e}function ye(Ae){let Be=C.fetchers.get(Ae);Z.has(Ae)&&!(Be&&Be.state==="loading"&&Q.has(Ae))&&De(Ae),he.delete(Ae),Q.delete(Ae),se.delete(Ae),le.delete(Ae),C.fetchers.delete(Ae)}function Ce(Ae){if(u.v7_fetcherPersist){let Be=(J.get(Ae)||0)-1;Be<=0?(J.delete(Ae),le.add(Ae)):J.set(Ae,Be)}else ye(Ae);Me({fetchers:new Map(C.fetchers)})}function De(Ae){let Be=Z.get(Ae);Or(Be,"Expected fetch controller: "+Ae),Be.abort(),Z.delete(Ae)}function ft(Ae){for(let Be of Ae){let rt=Oe(Be),Ne=Pp(rt.data);C.fetchers.set(Be,Ne)}}function _t(){let Ae=[],Be=!1;for(let rt of se){let Ne=C.fetchers.get(rt);Or(Ne,"Expected fetcher: "+rt),Ne.state==="loading"&&(se.delete(rt),Ae.push(rt),Be=!0)}return ft(Ae),Be}function At(Ae){let Be=[];for(let[rt,Ne]of Q)if(Ne0}function pt(Ae,Be){let rt=C.blockers.get(Ae)||mO;return ue.get(Ae)!==Be&&ue.set(Ae,Be),rt}function Mt(Ae){C.blockers.delete(Ae),ue.delete(Ae)}function ot(Ae,Be){let rt=C.blockers.get(Ae)||mO;Or(rt.state==="unblocked"&&Be.state==="blocked"||rt.state==="blocked"&&Be.state==="blocked"||rt.state==="blocked"&&Be.state==="proceeding"||rt.state==="blocked"&&Be.state==="unblocked"||rt.state==="proceeding"&&Be.state==="unblocked","Invalid blocker state transition: "+rt.state+" -> "+Be.state);let Ne=new Map(C.blockers);Ne.set(Ae,Be),Me({blockers:Ne})}function gt(Ae){let{currentLocation:Be,nextLocation:rt,historyAction:Ne}=Ae;if(ue.size===0)return;ue.size>1&&vg(!1,"A router only supports one blocker at a time");let wt=Array.from(ue.entries()),[Gt,jt]=wt[wt.length-1],qt=C.blockers.get(Gt);if(!(qt&&qt.state==="proceeding")&&jt({currentLocation:Be,nextLocation:rt,historyAction:Ne}))return Gt}function $t(Ae){let Be=[];return ve.forEach((rt,Ne)=>{(!Ae||Ae(Ne))&&(rt.cancel(),Be.push(Ne),ve.delete(Ne))}),Be}function Xt(Ae,Be,rt){if(f=Ae,g=Be,m=rt||null,!v&&C.navigation===hN){v=!0;let Ne=$n(C.location,C.matches);Ne!=null&&Me({restoreScrollPosition:Ne})}return()=>{f=null,g=null,m=null}}function vn(Ae,Be){return m&&m(Ae,Be.map(Ne=>c3e(Ne,C.loaderData)))||Ae.key}function Cn(Ae,Be){if(f&&g){let rt=vn(Ae,Be);f[rt]=g()}}function $n(Ae,Be){if(f){let rt=vn(Ae,Be),Ne=f[rt];if(typeof Ne=="number")return Ne}return null}function qn(Ae){o={},s=sM(Ae,i,void 0,o)}return A={get basename(){return l},get future(){return u},get state(){return C},get routes(){return a},get window(){return t},initialize:ke,subscribe:et,enableScrollRestoration:Xt,navigate:xe,fetch:tt,revalidate:Ze,createHref:Ae=>e.history.createHref(Ae),encodeLocation:Ae=>e.history.encodeLocation(Ae),getFetcher:Oe,deleteFetcher:Ce,dispose:Ue,getBlocker:pt,deleteBlocker:Mt,_internalFetchControllers:Z,_internalActiveDeferreds:ve,_internalSetRoutes:qn},A}function F3e(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function lM(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=UF(i||".",BF(l,o),JS(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&&!VF(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Sh([n,c.pathname])),KS(c)}function CQ(e,t,n,r){if(!r||!F3e(r))return{path:n};if(r.formMethod&&!H3e(r.formMethod))return{path:n,error:mu(405,{method:r.formMethod})};let i=()=>({path:n,error:mu(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=kre(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!sc(a))return i();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((m,g)=>{let[v,S]=g;return""+m+v+"="+S+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!sc(a))return i();try{let f=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:f,text:void 0}}}catch{return i()}}}Or(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=uM(r.formData),u=r.formData;else if(r.body instanceof FormData)l=uM(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=IQ(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=IQ(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(sc(c.formMethod))return{path:n,submission:c};let d=ap(n);return t&&d.search&&VF(d.search)&&l.append("index",""),d.search="?"+l,{path:KS(d),submission:c}}function B3e(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 _Q(e,t,n,r,i,o,a,s,l,u,c,d,f,m,g,v){let S=v?Object.values(v)[0]:g?Object.values(g)[0]:void 0,O=e.createURL(t.location),E=e.createURL(i),w=v?Object.keys(v)[0]:void 0,A=B3e(n,w).filter((x,F)=>{let{route:M}=x;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if(U3e(t.loaderData,t.matches[F],x)||s.some(W=>W===x.route.id))return!0;let P=t.matches[F],V=x;return AQ(x,co({currentUrl:O,currentParams:P.params,nextUrl:E,nextParams:V.params},r,{actionResult:S,defaultShouldRevalidate:a||O.pathname+O.search===E.pathname+E.search||O.search!==E.search||xre(P,V)}))}),C=[];return c.forEach((x,F)=>{if(o||!n.some(G=>G.route.id===x.routeId)||u.has(F))return;let M=l0(f,x.path,m);if(!M){C.push({key:F,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get(F),V=cM(M,x.path),W=!1;d.has(F)?W=!1:l.includes(F)?W=!0:P&&P.state!=="idle"&&P.data===void 0?W=a:W=AQ(V,co({currentUrl:O,currentParams:t.matches[t.matches.length-1].params,nextUrl:E,nextParams:n[n.length-1].params},r,{actionResult:S,defaultShouldRevalidate:a})),W&&C.push({key:F,routeId:x.routeId,path:x.path,matches:M,match:V,controller:new AbortController})}),[A,C]}function U3e(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function xre(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function AQ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function RQ(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Or(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";vg(!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&&!l3e.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,co({},t(i),{lazy:void 0}))}async function gO(e,t,n,r,i,o,a,s,l){l===void 0&&(l={});let u,c,d,f=v=>{let S,O=new Promise((E,w)=>S=w);return d=()=>S(),t.signal.addEventListener("abort",d),Promise.race([v({request:t,params:n.params,context:l.requestContext}),O])};try{let v=n.route[e];if(n.route.lazy)if(v){let S,O=await Promise.all([f(v).catch(E=>{S=E}),RQ(n.route,o,i)]);if(S)throw S;c=O[0]}else if(await RQ(n.route,o,i),v=n.route[e],v)c=await f(v);else if(e==="action"){let S=new URL(t.url),O=S.pathname+S.search;throw mu(405,{method:t.method,pathname:O,routeId:n.route.id})}else return{type:lo.data,data:void 0};else if(v)c=await f(v);else{let S=new URL(t.url),O=S.pathname+S.search;throw mu(404,{pathname:O})}Or(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(v){u=lo.error,c=v}finally{d&&t.signal.removeEventListener("abort",d)}if(W3e(c)){let v=c.status;if(N3e.has(v)){let O=c.headers.get("Location");if(Or(O,"Redirects returned/thrown from loaders/actions must have a Location header"),!Tre.test(O))O=lM(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,O,s);else if(!l.isStaticRequest){let E=new URL(t.url),w=O.startsWith("//")?new URL(E.protocol+O):new URL(O),k=JS(w.pathname,a)!=null;w.origin===E.origin&&k&&(O=w.pathname+w.search+w.hash)}if(l.isStaticRequest)throw c.headers.set("Location",O),c;return{type:lo.redirect,status:v,location:O,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===lo.error?lo.error:lo.data,response:c};let S;try{let O=c.headers.get("Content-Type");O&&/\bapplication\/json\b/.test(O)?c.body==null?S=null:S=await c.json():S=await c.text()}catch(O){return{type:lo.error,error:O}}return u===lo.error?{type:u,error:new jF(v,c.statusText,S),headers:c.headers}:{type:lo.data,data:S,statusCode:c.status,headers:c.headers}}if(u===lo.error)return{type:u,error:c};if(V3e(c)){var m,g;return{type:lo.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:lo.data,data:c}}function bO(e,t,n,r){let i=e.createURL(kre(t)).toString(),o={signal:n};if(r&&sc(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=uM(r.formData):o.body=r.formData}return new Request(i,o)}function uM(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function IQ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function j3e(e,t,n,r,i){let o={},a=null,s,l=!1,u={};return n.forEach((c,d)=>{let f=t[d].route.id;if(Or(!zm(c),"Cannot handle redirect results in processLoaderData"),u0(c)){let m=C1(e,f),g=c.error;r&&(g=Object.values(r)[0],r=void 0),a=a||{},a[m.route.id]==null&&(a[m.route.id]=g),o[f]=void 0,l||(l=!0,s=zF(c.error)?c.error.status:500),c.headers&&(u[f]=c.headers)}else jm(c)?(i.set(f,c.deferredData),o[f]=c.deferredData.data):o[f]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[f]=c.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function DQ(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=j3e(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 PQ(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 mu(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 jF(e||500,a,new Error(s),!0)}function LQ(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(zm(n))return{result:n,idx:t}}}function kre(e){let t=typeof e=="string"?ap(e):e;return KS(co({},t,{hash:""}))}function z3e(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function jm(e){return e.type===lo.deferred}function u0(e){return e.type===lo.error}function zm(e){return(e&&e.type)===lo.redirect}function V3e(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 W3e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function H3e(e){return D3e.has(e.toLowerCase())}function sc(e){return R3e.has(e.toLowerCase())}async function MQ(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!xre(u,l)&&(o&&o[l.route.id])!==void 0;if(jm(s)&&(i||c)){let d=r[a];Or(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await Cre(s,d,i).then(f=>{f&&(n[a]=f||n[a])})}}}async function Cre(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:lo.data,data:e.deferredData.unwrappedData}}catch(i){return{type:lo.error,error:i}}return{type:lo.data,data:e.deferredData.data}}}function VF(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cM(e,t){let n=typeof t=="string"?ap(t).search:t.search;if(e[e.length-1].route.index&&VF(n||""))return e[e.length-1];let r=Ere(e);return r[r.length-1]}function $Q(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 mN(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 Q3e(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 yO(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 Y3e(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 Pp(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 G3e(e,t){try{let n=e.sessionStorage.getItem(wre);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 q3e(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(wre,JSON.stringify(n))}catch(r){vg(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.3 * * Copyright (c) Remix Software Inc. @@ -180,7 +180,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function RE(){return RE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),P.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=z$(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Sh([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}const JMe=P.createContext(null);function e4e(e){let t=P.useContext(ap).outlet;return t&&P.createElement(JMe.Provider,{value:e},t)}function e1(){let{matches:e}=P.useContext(ap),t=e[e.length-1];return t?t.params:{}}function t4e(e,t,n,r){nT()||Or(!1);let{navigator:i}=P.useContext(tT),{matches:o}=P.useContext(ap),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Lg(),c;if(t){var d;let E=typeof t=="string"?sp(t):t;l==="/"||(d=E.pathname)!=null&&d.startsWith(l)||Or(!1),c=E}else c=u;let p=c.pathname||"/",m=l==="/"?p:p.slice(l.length)||"/",g=lb(e,{pathname:m}),v=s4e(g&&g.map(E=>Object.assign({},E,{params:Object.assign({},a,E.params),pathname:Sh([l,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?l:Sh([l,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return t&&v?P.createElement(V2.Provider,{value:{location:RE({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Oo.Pop}},v):v}function n4e(){let e=Mre(),t=H$(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,null)}const r4e=P.createElement(n4e,null);class i4e extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(ap.Provider,{value:this.props.routeContext},P.createElement(Dre.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function o4e(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(z2);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(ap.Provider,{value:t},r)}function s4e(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 s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||Or(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,p)=>{let m,g=!1,v=null,E=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,v=d.route.errorElement||r4e,l&&(u<0&&p===0?(d4e("route-fallback",!1),g=!0,E=null):u===p&&(g=!0,E=d.route.hydrateFallbackElement||null)));let O=t.concat(s.slice(0,p+1)),S=()=>{let x;return m?x=v:g?x=E:d.route.Component?x=P.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,P.createElement(o4e,{match:d,routeContext:{outlet:c,matches:O,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?P.createElement(i4e,{location:n.location,revalidation:n.revalidation,component:v,error:m,children:S(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):S()},null)}var Pre=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Pre||{}),a_=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}(a_||{});function a4e(e){let t=P.useContext(z2);return t||Or(!1),t}function l4e(e){let t=P.useContext(Ire);return t||Or(!1),t}function u4e(e){let t=P.useContext(ap);return t||Or(!1),t}function Lre(e){let t=u4e(),n=t.matches[t.matches.length-1];return n.route.id||Or(!1),n.route.id}function Mre(){var e;let t=P.useContext(Dre),n=l4e(a_.UseRouteError),r=Lre(a_.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function c4e(){let{router:e}=a4e(Pre.UseNavigateStable),t=Lre(a_.UseNavigateStable),n=P.useRef(!1);return Nre(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,RE({fromRouteId:t},o)))},[e,t])}const jQ={};function d4e(e,t,n){!t&&!jQ[e]&&(jQ[e]=!0)}function Q$(e){let{to:t,replace:n,state:r,relative:i}=e;nT()||Or(!1);let{future:o,static:s}=P.useContext(tT),{matches:a}=P.useContext(ap),{pathname:l}=Lg(),u=lp(),c=z$(t,j$(a,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return P.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function Y$(e){return e4e(e.context)}function f4e(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Oo.Pop,navigator:o,static:s=!1,future:a}=e;nT()&&Or(!1);let l=t.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:l,navigator:o,static:s,future:RE({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=sp(r));let{pathname:c="/",search:d="",hash:p="",state:m=null,key:g="default"}=r,v=P.useMemo(()=>{let E=eT(c,l);return E==null?null:{location:{pathname:E,search:d,hash:p,state:m,key:g},navigationType:i}},[l,c,d,p,m,g,i]);return v==null?null:P.createElement(tT.Provider,{value:u},P.createElement(V2.Provider,{children:n,value:v}))}new Promise(()=>{});function p4e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function AE(){return AE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),L.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=UF(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Sh([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}const X3e=L.createContext(null);function K3e(e){let t=L.useContext(sp).outlet;return t&&L.createElement(X3e.Provider,{value:e},t)}function ev(){let{matches:e}=L.useContext(sp),t=e[e.length-1];return t?t.params:{}}function J3e(e,t,n,r){tT()||Or(!1);let{navigator:i}=L.useContext(eT),{matches:o}=L.useContext(sp),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Lg(),c;if(t){var d;let S=typeof t=="string"?ap(t):t;l==="/"||(d=S.pathname)!=null&&d.startsWith(l)||Or(!1),c=S}else c=u;let f=c.pathname||"/",m=l==="/"?f:f.slice(l.length)||"/",g=l0(e,{pathname:m}),v=i$e(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:Sh([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:Sh([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,n,r);return t&&v?L.createElement(jR.Provider,{value:{location:AE({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Oo.Pop}},v):v}function e$e(){let e=Nre(),t=zF(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 L.createElement(L.Fragment,null,L.createElement("h2",null,"Unexpected Application Error!"),L.createElement("h3",{style:{fontStyle:"italic"}},t),n?L.createElement("pre",{style:i},n):null,null)}const t$e=L.createElement(e$e,null);class n$e extends L.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?L.createElement(sp.Provider,{value:this.props.routeContext},L.createElement(Are.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function r$e(e){let{routeContext:t,match:n,children:r}=e,i=L.useContext(UR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),L.createElement(sp.Provider,{value:t},r)}function i$e(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||Or(!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,f)=>{let m,g=!1,v=null,S=null;n&&(m=s&&d.route.id?s[d.route.id]:void 0,v=d.route.errorElement||t$e,l&&(u<0&&f===0?(u$e("route-fallback",!1),g=!0,S=null):u===f&&(g=!0,S=d.route.hydrateFallbackElement||null)));let O=t.concat(a.slice(0,f+1)),E=()=>{let w;return m?w=v:g?w=S:d.route.Component?w=L.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=c,L.createElement(r$e,{match:d,routeContext:{outlet:c,matches:O,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?L.createElement(n$e,{location:n.location,revalidation:n.revalidation,component:v,error:m,children:E(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):E()},null)}var Ire=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ire||{}),o_=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}(o_||{});function o$e(e){let t=L.useContext(UR);return t||Or(!1),t}function a$e(e){let t=L.useContext(_re);return t||Or(!1),t}function s$e(e){let t=L.useContext(sp);return t||Or(!1),t}function Dre(e){let t=s$e(),n=t.matches[t.matches.length-1];return n.route.id||Or(!1),n.route.id}function Nre(){var e;let t=L.useContext(Are),n=a$e(o_.UseRouteError),r=Dre(o_.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function l$e(){let{router:e}=o$e(Ire.UseNavigateStable),t=Dre(o_.UseNavigateStable),n=L.useRef(!1);return Rre(()=>{n.current=!0}),L.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,AE({fromRouteId:t},o)))},[e,t])}const FQ={};function u$e(e,t,n){!t&&!FQ[e]&&(FQ[e]=!0)}function WF(e){let{to:t,replace:n,state:r,relative:i}=e;tT()||Or(!1);let{future:o,static:a}=L.useContext(eT),{matches:s}=L.useContext(sp),{pathname:l}=Lg(),u=lp(),c=UF(t,BF(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return L.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function HF(e){return K3e(e.context)}function c$e(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Oo.Pop,navigator:o,static:a=!1,future:s}=e;tT()&&Or(!1);let l=t.replace(/^\/*/,"/"),u=L.useMemo(()=>({basename:l,navigator:o,static:a,future:AE({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=ap(r));let{pathname:c="/",search:d="",hash:f="",state:m=null,key:g="default"}=r,v=L.useMemo(()=>{let S=JS(c,l);return S==null?null:{location:{pathname:S,search:d,hash:f,state:m,key:g},navigationType:i}},[l,c,d,f,m,g,i]);return v==null?null:L.createElement(eT.Provider,{value:u},L.createElement(jR.Provider,{children:n,value:v}))}new Promise(()=>{});function d$e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:L.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:L.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:L.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.3 * * Copyright (c) Remix Software Inc. @@ -189,39 +189,39 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function l_(){return l_=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 h4e(e,t){let n=hL(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}function m4e(e,t){return BMe({basename:t==null?void 0:t.basename,future:l_({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:aMe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||g4e(),routes:e,mapRouteProperties:p4e,window:t==null?void 0:t.window}).initialize()}function g4e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=l_({},t,{errors:b4e(t.errors)})),t}function b4e(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 V$(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 s=new o(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const y4e=P.createContext({isTransitioning:!1}),v4e=P.createContext(new Map),O4e="startTransition",zQ=uy[O4e],E4e="flushSync",VQ=jEe[E4e];function S4e(e){zQ?zQ(e):e()}function Ov(e){VQ?VQ(e):e()}class T4e{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 w4e(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=P.useState(n.state),[s,a]=P.useState(),[l,u]=P.useState({isTransitioning:!1}),[c,d]=P.useState(),[p,m]=P.useState(),[g,v]=P.useState(),E=P.useRef(new Map),{v7_startTransition:O}=r||{},S=P.useCallback(w=>{O?S4e(w):w()},[O]),x=P.useCallback((w,F)=>{let{deletedFetchers:M,unstable_flushSync:L,unstable_viewTransitionOpts:W}=F;M.forEach(q=>E.current.delete(q)),w.fetchers.forEach((q,j)=>{q.data!==void 0&&E.current.set(j,q.data)});let H=n.window==null||typeof n.window.document.startViewTransition!="function";if(!W||H){L?Ov(()=>o(w)):S(()=>o(w));return}if(L){Ov(()=>{p&&(c&&c.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let q=n.window.document.startViewTransition(()=>{Ov(()=>o(w))});q.finished.finally(()=>{Ov(()=>{d(void 0),m(void 0),a(void 0),u({isTransitioning:!1})})}),Ov(()=>m(q));return}p?(c&&c.resolve(),p.skipTransition(),v({state:w,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(a(w),u({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[n.window,p,c,E,S]);P.useLayoutEffect(()=>n.subscribe(x),[n,x]),P.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new T4e)},[l]),P.useEffect(()=>{if(c&&s&&n.window){let w=s,F=c.promise,M=n.window.document.startViewTransition(async()=>{S(()=>o(w)),await F});M.finished.finally(()=>{d(void 0),m(void 0),a(void 0),u({isTransitioning:!1})}),m(M)}},[S,s,c,n.window]),P.useEffect(()=>{c&&s&&i.location.key===s.location.key&&c.resolve()},[c,p,i.location,s]),P.useEffect(()=>{!l.isTransitioning&&g&&(a(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[l.isTransitioning,g]),P.useEffect(()=>{},[]);let C=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,F,M)=>n.navigate(w,{state:F,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(w,F,M)=>n.navigate(w,{replace:!0,state:F,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),I=n.basename||"/",_=P.useMemo(()=>({router:n,navigator:C,static:!1,basename:I}),[n,C,I]);return P.createElement(P.Fragment,null,P.createElement(z2.Provider,{value:_},P.createElement(Ire.Provider,{value:i},P.createElement(v4e.Provider,{value:E.current},P.createElement(y4e.Provider,{value:l},P.createElement(f4e,{basename:I,location:i.location,navigationType:i.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?P.createElement(x4e,{routes:n.routes,future:n.future,state:i}):t))))),null)}function x4e(e){let{routes:t,future:n,state:r}=e;return t4e(t,void 0,r,n)}var HQ;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(HQ||(HQ={}));var WQ;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(WQ||(WQ={}));function G$(e){let t=P.useRef(hL(e)),n=P.useRef(!1),r=Lg(),i=P.useMemo(()=>h4e(r.search,n.current?null:t.current),[r.search]),o=lp(),s=P.useCallback((a,l)=>{const u=hL(typeof a=="function"?a(i):a);n.current=!0,o("?"+u,l)},[o,i]);return[i,s]}function _s(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 k4e=typeof Symbol=="function"&&Symbol.observable||"@@observable",QQ=k4e,yN=()=>Math.random().toString(36).substring(7).split("").join("."),C4e={INIT:`@@redux/INIT${yN()}`,REPLACE:`@@redux/REPLACE${yN()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yN()}`},u_=C4e;function q$(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 Z$(e,t,n){if(typeof e!="function")throw new Error(_s(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(_s(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(_s(1));return n(Z$)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function u(){s===o&&(s=new Map,o.forEach((E,O)=>{s.set(O,E)}))}function c(){if(l)throw new Error(_s(3));return i}function d(E){if(typeof E!="function")throw new Error(_s(4));if(l)throw new Error(_s(5));let O=!0;u();const S=a++;return s.set(S,E),function(){if(O){if(l)throw new Error(_s(6));O=!1,u(),s.delete(S),o=null}}}function p(E){if(!q$(E))throw new Error(_s(7));if(typeof E.type>"u")throw new Error(_s(8));if(typeof E.type!="string")throw new Error(_s(17));if(l)throw new Error(_s(9));try{l=!0,i=r(i,E)}finally{l=!1}return(o=s).forEach(S=>{S()}),E}function m(E){if(typeof E!="function")throw new Error(_s(10));r=E,p({type:u_.REPLACE})}function g(){const E=d;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(_s(11));function S(){const C=O;C.next&&C.next(c())}return S(),{unsubscribe:E(S)}},[QQ](){return this}}}return p({type:u_.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:m,[QQ]:g}}function _4e(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:u_.INIT})>"u")throw new Error(_s(12));if(typeof n(void 0,{type:u_.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_s(13))})}function $re(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw a&&a.type,new Error(_s(14));u[d]=g,l=l||g!==m}return l=l||r.length!==Object.keys(s).length,l?u:s}}function c_(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function A4e(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(_s(15))};const s={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},a=e.map(l=>l(s));return o=c_(...a)(i.dispatch),{...i,dispatch:o}}}function R4e(e){return q$(e)&&"type"in e&&typeof e.type=="string"}var Fre=Symbol.for("immer-nothing"),YQ=Symbol.for("immer-draftable"),Zl=Symbol.for("immer-state");function mc(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Sy=Object.getPrototypeOf;function $h(e){return!!e&&!!e[Zl]}function qf(e){var t;return e?Bre(e)||Array.isArray(e)||!!e[YQ]||!!((t=e.constructor)!=null&&t[YQ])||W2(e)||Q2(e):!1}var I4e=Object.prototype.constructor.toString();function Bre(e){if(!e||typeof e!="object")return!1;const t=Sy(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)===I4e}function IE(e,t){H2(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function H2(e){const t=e[Zl];return t?t.type_:Array.isArray(e)?1:W2(e)?2:Q2(e)?3:0}function mL(e,t){return H2(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ure(e,t,n){const r=H2(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function D4e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function W2(e){return e instanceof Map}function Q2(e){return e instanceof Set}function Rm(e){return e.copy_||e.base_}function gL(e,t){if(W2(e))return new Map(e);if(Q2(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Bre(e))return Sy(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Zl];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=N4e),Object.freeze(e),t&&IE(e,(n,r)=>X$(r,!0))),e}function N4e(){mc(2)}function Y2(e){return Object.isFrozen(e)}var P4e={};function Og(e){const t=P4e[e];return t||mc(0,e),t}var DE;function jre(){return DE}function L4e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function GQ(e,t){t&&(Og("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function bL(e){yL(e),e.drafts_.forEach(M4e),e.drafts_=null}function yL(e){e===DE&&(DE=e.parent_)}function qQ(e){return DE=L4e(DE,e)}function M4e(e){const t=e[Zl];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ZQ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Zl].modified_&&(bL(t),mc(4)),qf(e)&&(e=d_(t,e),t.parent_||f_(t,e)),t.patches_&&Og("Patches").generateReplacementPatches_(n[Zl].base_,e,t.patches_,t.inversePatches_)):e=d_(t,n,[]),bL(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Fre?e:void 0}function d_(e,t,n){if(Y2(t))return t;const r=t[Zl];if(!r)return IE(t,(i,o)=>XQ(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return f_(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),IE(o,(a,l)=>XQ(e,r,i,a,l,n,s)),f_(e,i,!1),n&&e.patches_&&Og("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function XQ(e,t,n,r,i,o,s){if($h(i)){const a=o&&t&&t.type_!==3&&!mL(t.assigned_,r)?o.concat(r):void 0,l=d_(e,i,a);if(Ure(n,r,l),$h(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(qf(i)&&!Y2(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;d_(e,i),(!t||!t.scope_.parent_)&&f_(e,i)}}function f_(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&X$(t,n)}function $4e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:jre(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=K$;n&&(i=[r],o=NE);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var K$={get(e,t){if(t===Zl)return e;const n=Rm(e);if(!mL(n,t))return F4e(e,n,t);const r=n[t];return e.finalized_||!qf(r)?r:r===vN(e.base_,t)?(ON(e),e.copy_[t]=OL(r,e)):r},has(e,t){return t in Rm(e)},ownKeys(e){return Reflect.ownKeys(Rm(e))},set(e,t,n){const r=zre(Rm(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=vN(Rm(e),t),o=i==null?void 0:i[Zl];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(D4e(n,i)&&(n!==void 0||mL(e.base_,t)))return!0;ON(e),vL(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return vN(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ON(e),vL(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Rm(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){mc(11)},getPrototypeOf(e){return Sy(e.base_)},setPrototypeOf(){mc(12)}},NE={};IE(K$,(e,t)=>{NE[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});NE.deleteProperty=function(e,t){return NE.set.call(this,e,t,void 0)};NE.set=function(e,t,n){return K$.set.call(this,e[0],t,n,e[0])};function vN(e,t){const n=e[Zl];return(n?Rm(n):e)[t]}function F4e(e,t,n){var i;const r=zre(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function zre(e,t){if(!(t in e))return;let n=Sy(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Sy(n)}}function vL(e){e.modified_||(e.modified_=!0,e.parent_&&vL(e.parent_))}function ON(e){e.copy_||(e.copy_=gL(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var B4e=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 s=this;return function(l=o,...u){return s.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&mc(6),r!==void 0&&typeof r!="function"&&mc(7);let i;if(qf(t)){const o=qQ(this),s=OL(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?bL(o):yL(o)}return GQ(o,r),ZQ(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Fre&&(i=void 0),this.autoFreeze_&&X$(i,!0),r){const o=[],s=[];Og("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else mc(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),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){qf(e)||mc(8),$h(e)&&(e=Vre(e));const t=qQ(this),n=OL(e,void 0);return n[Zl].isManual_=!0,yL(t),n}finishDraft(e,t){const n=e&&e[Zl];(!n||!n.isManual_)&&mc(9);const{scope_:r}=n;return GQ(r,t),ZQ(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=Og("Patches").applyPatches_;return $h(e)?r(e,t):this.produce(e,i=>r(i,t))}};function OL(e,t){const n=W2(e)?Og("MapSet").proxyMap_(e,t):Q2(e)?Og("MapSet").proxySet_(e,t):$4e(e,t);return(t?t.scope_:jre()).drafts_.push(n),n}function Vre(e){return $h(e)||mc(10,e),Hre(e)}function Hre(e){if(!qf(e)||Y2(e))return e;const t=e[Zl];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=gL(e,t.scope_.immer_.useStrictShallowCopy_)}else n=gL(e,!0);return IE(n,(r,i)=>{Ure(n,r,Hre(i))}),t&&(t.finalized_=!1),n}var Xl=new B4e,Wre=Xl.produce;Xl.produceWithPatches.bind(Xl);Xl.setAutoFreeze.bind(Xl);Xl.setUseStrictShallowCopy.bind(Xl);Xl.applyPatches.bind(Xl);Xl.createDraft.bind(Xl);Xl.finishDraft.bind(Xl);function U4e(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function j4e(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function z4e(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 KQ=e=>Array.isArray(e)?e:[e];function V4e(e){const t=Array.isArray(e[0])?e[0]:e;return z4e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function H4e(e,t){const n=[],{length:r}=e;for(let i=0;i{n=yx(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function Qre(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),U4e(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:m=J$,argsMemoizeOptions:g=[],devModeChecks:v={}}=c,E=KQ(p),O=KQ(g),S=V4e(i),x=d(function(){return o++,u.apply(null,arguments)},...E),C=m(function(){s++;const _=H4e(S,arguments);return a=x.apply(null,_),a},...O);return Object.assign(C,{resultFunc:u,memoizedResultFunc:x,dependencies:S,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:m})};return Object.assign(r,{withTypes:()=>r}),r}var G4e=Qre(J$),q4e=Object.assign((e,t=G4e)=>{j4e(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((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>q4e});function Yre(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Z4e=Yre(),X4e=Yre,K4e=(...e)=>{const t=Qre(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...a)=>i($h(s)?Vre(s):s,...a);return Object.assign(o,i),o},{withTypes:()=>n});return n};K4e(J$);var J4e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?c_:c_.apply(null,arguments)};function Ty(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(al(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=>R4e(r)&&r.type===e,n}var Gre=class Kv extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Kv.prototype)}static get[Symbol.species](){return Kv}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Kv(...t[0].concat(this)):new Kv(...t.concat(this))}};function eY(e){return qf(e)?Wre(e,()=>{}):e}function tY(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(al(10));const r=n.insert(t,e);return e.set(t,r),r}function e5e(e){return typeof e=="boolean"}var t5e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new Gre;return n&&(e5e(n)?s.push(Z4e):s.push(X4e(n.extraArgument))),s},n5e="RTK_autoBatch",qre=e=>t=>{setTimeout(t,e)},r5e=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qre(10),i5e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?r5e:e.type==="callback"?e.queueNotification:qre(e.timeout),u=()=>{s=!1,o&&(o=!1,a.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const d=()=>i&&c(),p=r.subscribe(d);return a.add(c),()=>{p(),a.delete(c)}},dispatch(c){var d;try{return i=!((d=c==null?void 0:c.meta)!=null&&d[n5e]),o=!i,o&&(s||(s=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},o5e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Gre(e);return r&&i.push(i5e(typeof r=="object"?r:void 0)),i},s5e=!0;function a5e(e){const t=t5e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(q$(n))a=$re(n);else throw new Error(al(1));let l;typeof r=="function"?l=r(t):l=t();let u=c_;i&&(u=J4e({trace:!s5e,...typeof i=="object"&&i}));const c=A4e(...l),d=o5e(c);let p=typeof s=="function"?s(d):d();const m=u(...p);return Z$(a,o,m)}function Zre(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(al(28));if(a in t)throw new Error(al(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function l5e(e){return typeof e=="function"}function u5e(e,t){let[n,r,i]=Zre(t),o;if(l5e(e))o=()=>eY(e());else{const a=eY(e);o=()=>a}function s(a=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($h(c)){const m=d(c,l);return m===void 0?c:m}else{if(qf(c))return Wre(c,p=>d(p,l));{const p=d(c,l);if(p===void 0){if(c===null)return c;throw new Error(al(9))}return p}}return c},a)}return s.getInitialState=o,s}var c5e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",d5e=(e=21)=>{let t="",n=e;for(;n--;)t+=c5e[Math.random()*64|0];return t},f5e=Symbol.for("rtk-slice-createasyncthunk");function p5e(e,t){return`${e}/${t}`}function h5e({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[f5e];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(al(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(g5e()):i.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,C){const I=typeof x=="string"?x:x.type;if(!I)throw new Error(al(12));if(I in u.sliceCaseReducersByType)throw new Error(al(13));return u.sliceCaseReducersByType[I]=C,c},addMatcher(x,C){return u.sliceMatchers.push({matcher:x,reducer:C}),c},exposeAction(x,C){return u.actionCreators[x]=C,c},exposeCaseReducer(x,C){return u.sliceCaseReducersByName[x]=C,c}};l.forEach(x=>{const C=a[x],I={reducerName:x,type:p5e(o,x),createNotation:typeof i.reducers=="function"};y5e(C)?O5e(I,C,c,t):b5e(I,C,c)});function d(){const[x={},C=[],I=void 0]=typeof i.extraReducers=="function"?Zre(i.extraReducers):[i.extraReducers],_={...x,...u.sliceCaseReducersByType};return u5e(i.initialState,w=>{for(let F in _)w.addCase(F,_[F]);for(let F of u.sliceMatchers)w.addMatcher(F.matcher,F.reducer);for(let F of C)w.addMatcher(F.matcher,F.reducer);I&&w.addDefaultCase(I)})}const p=x=>x,m=new Map;let g;function v(x,C){return g||(g=d()),g(x,C)}function E(){return g||(g=d()),g.getInitialState()}function O(x,C=!1){function I(w){let F=w[x];return typeof F>"u"&&C&&(F=E()),F}function _(w=p){const F=tY(m,C,{insert:()=>new WeakMap});return tY(F,w,{insert:()=>{const M={};for(const[L,W]of Object.entries(i.selectors??{}))M[L]=m5e(W,w,E,C);return M}})}return{reducerPath:x,getSelectors:_,get selectors(){return _(I)},selectSlice:I}}const S={name:o,reducer:v,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...O(s),injectInto(x,{reducerPath:C,...I}={}){const _=C??s;return x.inject({reducerPath:_,reducer:v},I),{...S,...O(_,!0)}}};return S}}function m5e(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var t1=h5e();function g5e(){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 b5e({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!v5e(r))throw new Error(al(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?Ty(e,s):Ty(e))}function y5e(e){return e._reducerDefinitionType==="asyncThunk"}function v5e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function O5e({type:e,reducerName:t},n,r,i){if(!i)throw new Error(al(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:u,options:c}=n,d=i(e,o,c);r.exposeAction(t,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:s||vx,pending:a||vx,rejected:l||vx,settled:u||vx})}function vx(){}var E5e=(e,t)=>{if(typeof e!="function")throw new Error(al(32))},eF="listenerMiddleware",S5e=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=Ty(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(al(21));return E5e(o),{predicate:i,type:t,effect:o}},T5e=Object.assign(e=>{const{type:t,predicate:n,effect:r}=S5e(e);return{id:d5e(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(al(22))}}},{withTypes:()=>T5e}),w5e=Object.assign(Ty(`${eF}/add`),{withTypes:()=>w5e});Ty(`${eF}/removeAll`);var x5e=Object.assign(Ty(`${eF}/remove`),{withTypes:()=>x5e});function al(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 k5e={theme:"default"},Xre=t1({name:"editor",initialState:k5e,reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:C5e}=Xre.actions,Kre=e=>e.config,_5e=Xre.reducer;function Jre(e,t){return function(){return e.apply(t,arguments)}}const{toString:A5e}=Object.prototype,{getPrototypeOf:tF}=Object,G2=(e=>t=>{const n=A5e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jd=e=>(e=e.toLowerCase(),t=>G2(t)===e),q2=e=>t=>typeof t===e,{isArray:n1}=Array,PE=q2("undefined");function R5e(e){return e!==null&&!PE(e)&&e.constructor!==null&&!PE(e.constructor)&&Nu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eie=jd("ArrayBuffer");function I5e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&eie(e.buffer),t}const D5e=q2("string"),Nu=q2("function"),tie=q2("number"),Z2=e=>e!==null&&typeof e=="object",N5e=e=>e===!0||e===!1,$k=e=>{if(G2(e)!=="object")return!1;const t=tF(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},P5e=jd("Date"),L5e=jd("File"),M5e=jd("Blob"),$5e=jd("FileList"),F5e=e=>Z2(e)&&Nu(e.pipe),B5e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nu(e.append)&&((t=G2(e))==="formdata"||t==="object"&&Nu(e.toString)&&e.toString()==="[object FormData]"))},U5e=jd("URLSearchParams"),j5e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rT(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),n1(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const rie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iie=e=>!PE(e)&&e!==rie;function EL(){const{caseless:e}=iie(this)&&this||{},t={},n=(r,i)=>{const o=e&&nie(t,i)||i;$k(t[o])&&$k(r)?t[o]=EL(t[o],r):$k(r)?t[o]=EL({},r):n1(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(rT(t,(i,o)=>{n&&Nu(i)?e[o]=Jre(i,n):e[o]=i},{allOwnKeys:r}),e),V5e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),H5e=(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)},W5e=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&tF(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Q5e=(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},Y5e=e=>{if(!e)return null;if(n1(e))return e;let t=e.length;if(!tie(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},G5e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&tF(Uint8Array)),q5e=(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])}},Z5e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},X5e=jd("HTMLFormElement"),K5e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),nY=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),J5e=jd("RegExp"),oie=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};rT(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},e$e=e=>{oie(e,(t,n)=>{if(Nu(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nu(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+"'")})}})},t$e=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return n1(e)?r(e):r(String(e).split(t)),n},n$e=()=>{},r$e=(e,t)=>(e=+e,Number.isFinite(e)?e:t),EN="abcdefghijklmnopqrstuvwxyz",rY="0123456789",sie={DIGIT:rY,ALPHA:EN,ALPHA_DIGIT:EN+EN.toUpperCase()+rY},i$e=(e=16,t=sie.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function o$e(e){return!!(e&&Nu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const s$e=e=>{const t=new Array(10),n=(r,i)=>{if(Z2(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=n1(r)?[]:{};return rT(r,(s,a)=>{const l=n(s,i+1);!PE(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},a$e=jd("AsyncFunction"),l$e=e=>e&&(Z2(e)||Nu(e))&&Nu(e.then)&&Nu(e.catch),Tt={isArray:n1,isArrayBuffer:eie,isBuffer:R5e,isFormData:B5e,isArrayBufferView:I5e,isString:D5e,isNumber:tie,isBoolean:N5e,isObject:Z2,isPlainObject:$k,isUndefined:PE,isDate:P5e,isFile:L5e,isBlob:M5e,isRegExp:J5e,isFunction:Nu,isStream:F5e,isURLSearchParams:U5e,isTypedArray:G5e,isFileList:$5e,forEach:rT,merge:EL,extend:z5e,trim:j5e,stripBOM:V5e,inherits:H5e,toFlatObject:W5e,kindOf:G2,kindOfTest:jd,endsWith:Q5e,toArray:Y5e,forEachEntry:q5e,matchAll:Z5e,isHTMLForm:X5e,hasOwnProperty:nY,hasOwnProp:nY,reduceDescriptors:oie,freezeMethods:e$e,toObjectSet:t$e,toCamelCase:K5e,noop:n$e,toFiniteNumber:r$e,findKey:nie,global:rie,isContextDefined:iie,ALPHABET:sie,generateString:i$e,isSpecCompliantForm:o$e,toJSONObject:s$e,isAsyncFn:a$e,isThenable:l$e};function Rr(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)}Tt.inherits(Rr,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:Tt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const aie=Rr.prototype,lie={};["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=>{lie[e]={value:e}});Object.defineProperties(Rr,lie);Object.defineProperty(aie,"isAxiosError",{value:!0});Rr.from=(e,t,n,r,i,o)=>{const s=Object.create(aie);return Tt.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Rr.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const u$e=null;function SL(e){return Tt.isPlainObject(e)||Tt.isArray(e)}function uie(e){return Tt.endsWith(e,"[]")?e.slice(0,-2):e}function iY(e,t,n){return e?e.concat(t).map(function(i,o){return i=uie(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function c$e(e){return Tt.isArray(e)&&!e.some(SL)}const d$e=Tt.toFlatObject(Tt,{},null,function(t){return/^is[A-Z]/.test(t)});function X2(e,t,n){if(!Tt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Tt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,E){return!Tt.isUndefined(E[v])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Tt.isSpecCompliantForm(t);if(!Tt.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Tt.isDate(g))return g.toISOString();if(!l&&Tt.isBlob(g))throw new Rr("Blob is not supported. Use a Buffer instead.");return Tt.isArrayBuffer(g)||Tt.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,E){let O=g;if(g&&!E&&typeof g=="object"){if(Tt.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(Tt.isArray(g)&&c$e(g)||(Tt.isFileList(g)||Tt.endsWith(v,"[]"))&&(O=Tt.toArray(g)))return v=uie(v),O.forEach(function(x,C){!(Tt.isUndefined(x)||x===null)&&t.append(s===!0?iY([v],C,o):s===null?v:v+"[]",u(x))}),!1}return SL(g)?!0:(t.append(iY(E,v,o),u(g)),!1)}const d=[],p=Object.assign(d$e,{defaultVisitor:c,convertValue:u,isVisitable:SL});function m(g,v){if(!Tt.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(g),Tt.forEach(g,function(O,S){(!(Tt.isUndefined(O)||O===null)&&i.call(t,O,Tt.isString(S)?S.trim():S,v,p))===!0&&m(O,v?v.concat(S):[S])}),d.pop()}}if(!Tt.isObject(e))throw new TypeError("data must be an object");return m(e),t}function oY(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function nF(e,t){this._pairs=[],e&&X2(e,this,t)}const cie=nF.prototype;cie.append=function(t,n){this._pairs.push([t,n])};cie.toString=function(t){const n=t?function(r){return t.call(this,r,oY)}:oY;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function f$e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function die(e,t,n){if(!t)return e;const r=n&&n.encode||f$e,i=n&&n.serialize;let o;if(i?o=i(t,n):o=Tt.isURLSearchParams(t)?t.toString():new nF(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class sY{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){Tt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},p$e=typeof URLSearchParams<"u"?URLSearchParams:nF,h$e=typeof FormData<"u"?FormData:null,m$e=typeof Blob<"u"?Blob:null,g$e={isBrowser:!0,classes:{URLSearchParams:p$e,FormData:h$e,Blob:m$e},protocols:["http","https","file","blob","url","data"]},pie=typeof window<"u"&&typeof document<"u",b$e=(e=>pie&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),y$e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",v$e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pie,hasStandardBrowserEnv:b$e,hasStandardBrowserWebWorkerEnv:y$e},Symbol.toStringTag,{value:"Module"})),Ed={...v$e,...g$e};function O$e(e,t){return X2(e,new Ed.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Ed.isNode&&Tt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function E$e(e){return Tt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function S$e(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&Tt.isArray(i)?i.length:s,l?(Tt.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!Tt.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&Tt.isArray(i[s])&&(i[s]=S$e(i[s])),!a)}if(Tt.isFormData(e)&&Tt.isFunction(e.entries)){const n={};return Tt.forEachEntry(e,(r,i)=>{t(E$e(r),i,n,0)}),n}return null}function T$e(e,t,n){if(Tt.isString(e))try{return(t||JSON.parse)(e),Tt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const rF={transitional:fie,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=Tt.isObject(t);if(o&&Tt.isHTMLForm(t)&&(t=new FormData(t)),Tt.isFormData(t))return i?JSON.stringify(hie(t)):t;if(Tt.isArrayBuffer(t)||Tt.isBuffer(t)||Tt.isStream(t)||Tt.isFile(t)||Tt.isBlob(t))return t;if(Tt.isArrayBufferView(t))return t.buffer;if(Tt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return O$e(t,this.formSerializer).toString();if((a=Tt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return X2(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),T$e(t)):t}],transformResponse:[function(t){const n=this.transitional||rF.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&Tt.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Rr.from(a,Rr.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ed.classes.FormData,Blob:Ed.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Tt.forEach(["delete","get","head","post","put","patch"],e=>{rF.headers[e]={}});const iF=rF,w$e=Tt.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"]),x$e=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&w$e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},aY=Symbol("internals");function Ev(e){return e&&String(e).trim().toLowerCase()}function Fk(e){return e===!1||e==null?e:Tt.isArray(e)?e.map(Fk):String(e)}function k$e(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 C$e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function SN(e,t,n,r,i){if(Tt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Tt.isString(t)){if(Tt.isString(r))return t.indexOf(r)!==-1;if(Tt.isRegExp(r))return r.test(t)}}function _$e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function A$e(e,t){const n=Tt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class K2{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=Ev(l);if(!c)throw new Error("header name must be a non-empty string");const d=Tt.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=Fk(a))}const s=(a,l)=>Tt.forEach(a,(u,c)=>o(u,c,l));return Tt.isPlainObject(t)||t instanceof this.constructor?s(t,n):Tt.isString(t)&&(t=t.trim())&&!C$e(t)?s(x$e(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Ev(t),t){const r=Tt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return k$e(i);if(Tt.isFunction(n))return n.call(this,i,r);if(Tt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ev(t),t){const r=Tt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||SN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=Ev(s),s){const a=Tt.findKey(r,s);a&&(!n||SN(r,r[a],a,n))&&(delete r[a],i=!0)}}return Tt.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||SN(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return Tt.forEach(this,(i,o)=>{const s=Tt.findKey(r,o);if(s){n[s]=Fk(i),delete n[o];return}const a=t?_$e(o):String(o).trim();a!==o&&delete n[o],n[a]=Fk(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Tt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Tt.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[aY]=this[aY]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Ev(s);r[a]||(A$e(i,s),r[a]=!0)}return Tt.isArray(t)?t.forEach(o):o(t),this}}K2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Tt.reduceDescriptors(K2.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Tt.freezeMethods(K2);const Bf=K2;function TN(e,t){const n=this||iF,r=t||n,i=Bf.from(r.headers);let o=r.data;return Tt.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function mie(e){return!!(e&&e.__CANCEL__)}function iT(e,t,n){Rr.call(this,e??"canceled",Rr.ERR_CANCELED,t,n),this.name="CanceledError"}Tt.inherits(iT,Rr,{__CANCEL__:!0});function R$e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Rr("Request failed with status code "+n.status,[Rr.ERR_BAD_REQUEST,Rr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const I$e=Ed.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];Tt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Tt.isString(r)&&s.push("path="+r),Tt.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function D$e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N$e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gie(e,t){return e&&!D$e(t)?N$e(e,t):t}const P$e=Ed.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=Tt.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function L$e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function M$e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=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-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const $$e=typeof XMLHttpRequest<"u",F$e=$$e&&function(e){return new Promise(function(n,r){let i=e.data;const o=Bf.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(Tt.isFormData(i)){if(Ed.hasStandardBrowserEnv||Ed.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[v,...E]=c?c.split(";").map(O=>O.trim()).filter(Boolean):[];o.setContentType([v||"multipart/form-data",...E].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(v+":"+E))}const p=gie(e.baseURL,e.url);d.open(e.method.toUpperCase(),die(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const v=Bf.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),O={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:v,config:e,request:d};R$e(function(x){n(x),u()},function(x){r(x),u()},O),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new Rr("Request aborted",Rr.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Rr("Network Error",Rr.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const O=e.transitional||fie;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),r(new Rr(E,O.clarifyTimeoutError?Rr.ETIMEDOUT:Rr.ECONNABORTED,e,d)),d=null},Ed.hasStandardBrowserEnv&&(a&&Tt.isFunction(a)&&(a=a(e)),a||a!==!1&&P$e(p))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&I$e.read(e.xsrfCookieName);v&&o.set(e.xsrfHeaderName,v)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&Tt.forEach(o.toJSON(),function(E,O){d.setRequestHeader(O,E)}),Tt.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),s&&s!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",lY(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",lY(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=v=>{d&&(r(!v||v.type?new iT(null,e,d):v),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const g=L$e(p);if(g&&Ed.protocols.indexOf(g)===-1){r(new Rr("Unsupported protocol "+g+":",Rr.ERR_BAD_REQUEST,e));return}d.send(i||null)})},TL={http:u$e,xhr:F$e};Tt.forEach(TL,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const uY=e=>`- ${e}`,B$e=e=>Tt.isFunction(e)||e===null||e===!1,bie={getAdapter:e=>{e=Tt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : -`+o.map(uY).join(` -`):" "+uY(o[0]):"as no adapter specified";throw new Rr("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:TL};function wN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new iT(null,e)}function cY(e){return wN(e),e.headers=Bf.from(e.headers),e.data=TN.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bie.getAdapter(e.adapter||iF.adapter)(e).then(function(r){return wN(e),r.data=TN.call(e,e.transformResponse,r),r.headers=Bf.from(r.headers),r},function(r){return mie(r)||(wN(e),r&&r.response&&(r.response.data=TN.call(e,e.transformResponse,r.response),r.response.headers=Bf.from(r.response.headers))),Promise.reject(r)})}const dY=e=>e instanceof Bf?e.toJSON():e;function wy(e,t){t=t||{};const n={};function r(u,c,d){return Tt.isPlainObject(u)&&Tt.isPlainObject(c)?Tt.merge.call({caseless:d},u,c):Tt.isPlainObject(c)?Tt.merge({},c):Tt.isArray(c)?c.slice():c}function i(u,c,d){if(Tt.isUndefined(c)){if(!Tt.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!Tt.isUndefined(c))return r(void 0,c)}function s(u,c){if(Tt.isUndefined(c)){if(!Tt.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(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:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(dY(u),dY(c),!0)};return Tt.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,p=d(e[c],t[c],c);Tt.isUndefined(p)&&d!==a||(n[c]=p)}),n}const yie="1.6.7",oF={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oF[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const fY={};oF.transitional=function(t,n,r){function i(o,s){return"[Axios v"+yie+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new Rr(i(s," has been removed"+(n?" in "+n:"")),Rr.ERR_DEPRECATED);return n&&!fY[s]&&(fY[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function U$e(e,t,n){if(typeof e!="object")throw new Rr("options must be an object",Rr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Rr("option "+o+" must be "+l,Rr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Rr("Unknown option "+o,Rr.ERR_BAD_OPTION)}}const wL={assertOptions:U$e,validators:oF},Ip=wL.validators;class p_{constructor(t){this.defaults=t,this.interceptors={request:new sY,response:new sY}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wy(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&wL.assertOptions(r,{silentJSONParsing:Ip.transitional(Ip.boolean),forcedJSONParsing:Ip.transitional(Ip.boolean),clarifyTimeoutError:Ip.transitional(Ip.boolean)},!1),i!=null&&(Tt.isFunction(i)?n.paramsSerializer={serialize:i}:wL.assertOptions(i,{encode:Ip.function,serialize:Ip.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&Tt.merge(o.common,o[n.method]);o&&Tt.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=Bf.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,p;if(!l){const g=[cY.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,u),p=g.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 s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new iT(o,s,a),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 sF(function(i){t=i}),cancel:t}}}const j$e=sF;function z$e(e){return function(n){return e.apply(null,n)}}function V$e(e){return Tt.isObject(e)&&e.isAxiosError===!0}const xL={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(xL).forEach(([e,t])=>{xL[t]=e});const H$e=xL;function vie(e){const t=new Bk(e),n=Jre(Bk.prototype.request,t);return Tt.extend(n,Bk.prototype,t,{allOwnKeys:!0}),Tt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return vie(wy(e,i))},n}const gr=vie(iF);gr.Axios=Bk;gr.CanceledError=iT;gr.CancelToken=j$e;gr.isCancel=mie;gr.VERSION=yie;gr.toFormData=X2;gr.AxiosError=Rr;gr.Cancel=gr.CanceledError;gr.all=function(t){return Promise.all(t)};gr.spread=z$e;gr.isAxiosError=V$e;gr.mergeConfig=wy;gr.AxiosHeaders=Bf;gr.formToJSON=e=>hie(Tt.isHTMLForm(e)?new FormData(e):e);gr.getAdapter=bie.getAdapter;gr.HttpStatusCode=H$e;gr.default=gr;const W$e={mode:"both",shareRole:null,doc:null,client:null,cmView:null},Oie=t1({name:"editor",initialState:W$e,reducers:{setMode:(e,t)=>{e.mode=t.payload},setShareRole:(e,t)=>{e.shareRole=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload},setCmView:(e,t)=>{Object.assign(e,{cmView:t.payload})}}}),{setMode:kL,setDoc:h_,setClient:m_,setShareRole:Q$e,setCmView:Y$e}=Oie.actions,r1=e=>e.editor,G$e=Oie.reducer,q$e={data:null},Eie=t1({name:"user",initialState:q$e,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:CL}=Eie.actions,aF=e=>e.user,Z$e=Eie.reducer;var i1=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(){}},xy=typeof window>"u"||"Deno"in window;function gu(){}function X$e(e,t){return typeof e=="function"?e(t):e}function _L(e){return typeof e=="number"&&e>=0&&e!==1/0}function Sie(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pY(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==lF(s,t.options))return!1}else if(!LE(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function hY(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Eg(t.options.mutationKey)!==Eg(o))return!1}else if(!LE(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function lF(e,t){return((t==null?void 0:t.queryKeyHashFn)||Eg)(e)}function Eg(e){return JSON.stringify(e,(t,n)=>AL(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function LE(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!LE(e[n],t[n])):!1}function Tie(e,t){if(e===t)return e;const n=mY(e)&&mY(t);if(n||AL(e)&&AL(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!gY(n)||!n.hasOwnProperty("isPrototypeOf"))}function gY(e){return Object.prototype.toString.call(e)==="[object Object]"}function K$e(e){return new Promise(t=>{setTimeout(t,e)})}function RL(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tie(e,t):t}function J$e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function eFe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xm,Zp,Yb,fJ,tFe=(fJ=class extends i1{constructor(){super();gn(this,Xm,void 0);gn(this,Zp,void 0);gn(this,Yb,void 0);rn(this,Yb,t=>{if(!xy&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Pe(this,Zp)||this.setEventListener(Pe(this,Yb))}onUnsubscribe(){var t;this.hasListeners()||((t=Pe(this,Zp))==null||t.call(this),rn(this,Zp,void 0))}setEventListener(t){var n;rn(this,Yb,t),(n=Pe(this,Zp))==null||n.call(this),rn(this,Zp,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Pe(this,Xm)!==t&&(rn(this,Xm,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof Pe(this,Xm)=="boolean"?Pe(this,Xm):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xm=new WeakMap,Zp=new WeakMap,Yb=new WeakMap,fJ),b_=new tFe,Gb,Xp,qb,pJ,nFe=(pJ=class extends i1{constructor(){super();gn(this,Gb,!0);gn(this,Xp,void 0);gn(this,qb,void 0);rn(this,qb,t=>{if(!xy&&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(){Pe(this,Xp)||this.setEventListener(Pe(this,qb))}onUnsubscribe(){var t;this.hasListeners()||((t=Pe(this,Xp))==null||t.call(this),rn(this,Xp,void 0))}setEventListener(t){var n;rn(this,qb,t),(n=Pe(this,Xp))==null||n.call(this),rn(this,Xp,t(this.setOnline.bind(this)))}setOnline(t){Pe(this,Gb)!==t&&(rn(this,Gb,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Pe(this,Gb)}},Gb=new WeakMap,Xp=new WeakMap,qb=new WeakMap,pJ),y_=new nFe;function rFe(e){return Math.min(1e3*2**e,3e4)}function J2(e){return(e??"online")==="online"?y_.isOnline():!0}var wie=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xN(e){return e instanceof wie}function xie(e){let t=!1,n=0,r=!1,i,o,s;const a=new Promise((E,O)=>{o=E,s=O}),l=E=>{var O;r||(m(new wie(E)),(O=e.abort)==null||O.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!b_.isFocused()||e.networkMode!=="always"&&!y_.isOnline(),p=E=>{var O;r||(r=!0,(O=e.onSuccess)==null||O.call(e,E),i==null||i(),o(E))},m=E=>{var O;r||(r=!0,(O=e.onError)==null||O.call(e,E),i==null||i(),s(E))},g=()=>new Promise(E=>{var O;i=S=>{const x=r||!d();return x&&E(S),x},(O=e.onPause)==null||O.call(e)}).then(()=>{var E;i=void 0,r||(E=e.onContinue)==null||E.call(e)}),v=()=>{if(r)return;let E;try{E=e.fn()}catch(O){E=Promise.reject(O)}Promise.resolve(E).then(p).catch(O=>{var _;if(r)return;const S=e.retry??(xy?0:3),x=e.retryDelay??rFe,C=typeof x=="function"?x(n,O):x,I=S===!0||typeof S=="number"&&n{if(d())return g()}).then(()=>{t?m(O):v()})})};return J2(e.networkMode)?v():g().then(v),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}function iFe(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const o=p=>{i=p},s=p=>{let m;t++;try{m=p()}finally{t--,t||u()}return m},a=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...m)=>{a(()=>{p(...m)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(m=>{n(m)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:o}}var Yo=iFe(),Km,hJ,kie=(hJ=class{constructor(){gn(this,Km,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_L(this.gcTime)&&rn(this,Km,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xy?1/0:5*60*1e3))}clearGcTimeout(){Pe(this,Km)&&(clearTimeout(Pe(this,Km)),rn(this,Km,void 0))}},Km=new WeakMap,hJ),Zb,Xb,fu,Kp,pu,cs,wS,Jm,Kb,Uk,oc,Sf,mJ,oFe=(mJ=class extends kie{constructor(t){super();gn(this,Kb);gn(this,oc);gn(this,Zb,void 0);gn(this,Xb,void 0);gn(this,fu,void 0);gn(this,Kp,void 0);gn(this,pu,void 0);gn(this,cs,void 0);gn(this,wS,void 0);gn(this,Jm,void 0);rn(this,Jm,!1),rn(this,wS,t.defaultOptions),Jn(this,Kb,Uk).call(this,t.options),rn(this,cs,[]),rn(this,fu,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,rn(this,Zb,t.state||sFe(this.options)),this.state=Pe(this,Zb),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!Pe(this,cs).length&&this.state.fetchStatus==="idle"&&Pe(this,fu).remove(this)}setData(t,n){const r=RL(this.state.data,t,this.options);return Jn(this,oc,Sf).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Jn(this,oc,Sf).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=Pe(this,Kp);return(r=Pe(this,pu))==null||r.cancel(t),n?n.then(gu).catch(gu):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Pe(this,Zb))}isActive(){return Pe(this,cs).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||Pe(this,cs).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Sie(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=Pe(this,cs).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Pe(this,pu))==null||n.continue()}onOnline(){var n;const t=Pe(this,cs).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Pe(this,pu))==null||n.continue()}addObserver(t){Pe(this,cs).includes(t)||(Pe(this,cs).push(t),this.clearGcTimeout(),Pe(this,fu).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){Pe(this,cs).includes(t)&&(rn(this,cs,Pe(this,cs).filter(n=>n!==t)),Pe(this,cs).length||(Pe(this,pu)&&(Pe(this,Jm)?Pe(this,pu).cancel({revert:!0}):Pe(this,pu).cancelRetry()),this.scheduleGc()),Pe(this,fu).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return Pe(this,cs).length}invalidate(){this.state.isInvalidated||Jn(this,oc,Sf).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(Pe(this,Kp))return(u=Pe(this,pu))==null||u.continueRetry(),Pe(this,Kp)}if(t&&Jn(this,Kb,Uk).call(this,t),!this.options.queryFn){const m=Pe(this,cs).find(g=>g.options.queryFn);m&&Jn(this,Kb,Uk).call(this,m.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(rn(this,Jm,!0),r.signal)})};o(i);const s=()=>this.options.queryFn?(rn(this,Jm,!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}'`)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(a),(c=this.options.behavior)==null||c.onFetch(a,this),rn(this,Xb,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Jn(this,oc,Sf).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const l=m=>{var g,v,E,O;xN(m)&&m.silent||Jn(this,oc,Sf).call(this,{type:"error",error:m}),xN(m)||((v=(g=Pe(this,fu).config).onError)==null||v.call(g,m,this),(O=(E=Pe(this,fu).config).onSettled)==null||O.call(E,this.state.data,m,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return rn(this,pu,xie({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,v,E,O;if(typeof m>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(m),(v=(g=Pe(this,fu).config).onSuccess)==null||v.call(g,m,this),(O=(E=Pe(this,fu).config).onSettled)==null||O.call(E,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(m,g)=>{Jn(this,oc,Sf).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{Jn(this,oc,Sf).call(this,{type:"pause"})},onContinue:()=>{Jn(this,oc,Sf).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),rn(this,Kp,Pe(this,pu).promise),Pe(this,Kp)}},Zb=new WeakMap,Xb=new WeakMap,fu=new WeakMap,Kp=new WeakMap,pu=new WeakMap,cs=new WeakMap,wS=new WeakMap,Jm=new WeakMap,Kb=new WeakSet,Uk=function(t){this.options={...Pe(this,wS),...t},this.updateGcTime(this.options.gcTime)},oc=new WeakSet,Sf=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:J2(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 xN(i)&&i.revert&&Pe(this,Xb)?{...Pe(this,Xb),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),Yo.batch(()=>{Pe(this,cs).forEach(r=>{r.onQueryUpdate()}),Pe(this,fu).notify({query:this,type:"updated",action:t})})},mJ);function sFe(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 ud,gJ,Cie=(gJ=class extends i1{constructor(t={}){super();gn(this,ud,void 0);this.config=t,rn(this,ud,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??lF(i,n);let s=this.get(o);return s||(s=new oFe({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Pe(this,ud).has(t.queryHash)||(Pe(this,ud).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Pe(this,ud).get(t.queryHash);n&&(t.destroy(),n===t&&Pe(this,ud).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Yo.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Pe(this,ud).get(t)}getAll(){return[...Pe(this,ud).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>pY(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>pY(t,r)):n}notify(t){Yo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Yo.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Yo.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ud=new WeakMap,gJ),cd,xS,Cl,Jb,dd,Lp,bJ,aFe=(bJ=class extends kie{constructor(t){super();gn(this,dd);gn(this,cd,void 0);gn(this,xS,void 0);gn(this,Cl,void 0);gn(this,Jb,void 0);this.mutationId=t.mutationId,rn(this,xS,t.defaultOptions),rn(this,Cl,t.mutationCache),rn(this,cd,[]),this.state=t.state||_ie(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...Pe(this,xS),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Pe(this,cd).includes(t)||(Pe(this,cd).push(t),this.clearGcTimeout(),Pe(this,Cl).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){rn(this,cd,Pe(this,cd).filter(n=>n!==t)),this.scheduleGc(),Pe(this,Cl).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Pe(this,cd).length||(this.state.status==="pending"?this.scheduleGc():Pe(this,Cl).remove(this))}continue(){var t;return((t=Pe(this,Jb))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,a,l,u,c,d,p,m,g,v,E,O,S,x,C,I,_,w;const n=()=>(rn(this,Jb,xie({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(F,M)=>{Jn(this,dd,Lp).call(this,{type:"failed",failureCount:F,error:M})},onPause:()=>{Jn(this,dd,Lp).call(this,{type:"pause"})},onContinue:()=>{Jn(this,dd,Lp).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),Pe(this,Jb).promise),r=this.state.status==="pending";try{if(!r){Jn(this,dd,Lp).call(this,{type:"pending",variables:t}),await((o=(i=Pe(this,Cl).config).onMutate)==null?void 0:o.call(i,t,this));const M=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));M!==this.state.context&&Jn(this,dd,Lp).call(this,{type:"pending",context:M,variables:t})}const F=await n();return await((u=(l=Pe(this,Cl).config).onSuccess)==null?void 0:u.call(l,F,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,F,t,this.state.context)),await((m=(p=Pe(this,Cl).config).onSettled)==null?void 0:m.call(p,F,null,this.state.variables,this.state.context,this)),await((v=(g=this.options).onSettled)==null?void 0:v.call(g,F,null,t,this.state.context)),Jn(this,dd,Lp).call(this,{type:"success",data:F}),F}catch(F){try{throw await((O=(E=Pe(this,Cl).config).onError)==null?void 0:O.call(E,F,t,this.state.context,this)),await((x=(S=this.options).onError)==null?void 0:x.call(S,F,t,this.state.context)),await((I=(C=Pe(this,Cl).config).onSettled)==null?void 0:I.call(C,void 0,F,this.state.variables,this.state.context,this)),await((w=(_=this.options).onSettled)==null?void 0:w.call(_,void 0,F,t,this.state.context)),F}finally{Jn(this,dd,Lp).call(this,{type:"error",error:F})}}}},cd=new WeakMap,xS=new WeakMap,Cl=new WeakMap,Jb=new WeakMap,dd=new WeakSet,Lp=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:!J2(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),Yo.batch(()=>{Pe(this,cd).forEach(r=>{r.onMutationUpdate(t)}),Pe(this,Cl).notify({mutation:this,type:"updated",action:t})})},bJ);function _ie(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hu,kS,eg,yJ,lFe=(yJ=class extends i1{constructor(t={}){super();gn(this,hu,void 0);gn(this,kS,void 0);gn(this,eg,void 0);this.config=t,rn(this,hu,[]),rn(this,kS,0)}build(t,n,r){const i=new aFe({mutationCache:this,mutationId:++jw(this,kS)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){Pe(this,hu).push(t),this.notify({type:"added",mutation:t})}remove(t){rn(this,hu,Pe(this,hu).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Yo.batch(()=>{Pe(this,hu).forEach(t=>{this.remove(t)})})}getAll(){return Pe(this,hu)}find(t){const n={exact:!0,...t};return Pe(this,hu).find(r=>hY(n,r))}findAll(t={}){return Pe(this,hu).filter(n=>hY(t,n))}notify(t){Yo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return rn(this,eg,(Pe(this,eg)??Promise.resolve()).then(()=>{const t=Pe(this,hu).filter(n=>n.state.isPaused);return Yo.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(gu)),Promise.resolve()))}).then(()=>{rn(this,eg,void 0)})),Pe(this,eg)}},hu=new WeakMap,kS=new WeakMap,eg=new WeakMap,yJ);function IL(e){return{onFetch:(t,n)=>{const r=async()=>{var g,v,E,O,S;const i=t.options,o=(E=(v=(g=t.fetchOptions)==null?void 0:g.meta)==null?void 0:v.fetchMore)==null?void 0:E.direction,s=((O=t.state.data)==null?void 0:O.pages)||[],a=((S=t.state.data)==null?void 0:S.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=x=>{Object.defineProperty(x,"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(x,C,I)=>{if(u)return Promise.reject();if(C==null&&x.pages.length)return Promise.resolve(x);const _={queryKey:t.queryKey,pageParam:C,direction:I?"backward":"forward",meta:t.options.meta};c(_);const w=await d(_),{maxPages:F}=t.options,M=I?eFe:J$e;return{pages:M(x.pages,w,F),pageParams:M(x.pageParams,C,F)}};let m;if(o&&s.length){const x=o==="backward",C=x?Aie:DL,I={pages:s,pageParams:a},_=C(i,I);m=await p(I,_,x)}else{m=await p(l,a[0]??i.initialPageParam);const x=e??s.length;for(let C=1;C{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 DL(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function Aie(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function uFe(e,t){return t?DL(e,t)!=null:!1}function cFe(e,t){return!t||!e.getPreviousPageParam?!1:Aie(e,t)!=null}var zo,Jp,eh,ey,ty,th,ny,ry,vJ,dFe=(vJ=class{constructor(e={}){gn(this,zo,void 0);gn(this,Jp,void 0);gn(this,eh,void 0);gn(this,ey,void 0);gn(this,ty,void 0);gn(this,th,void 0);gn(this,ny,void 0);gn(this,ry,void 0);rn(this,zo,e.queryCache||new Cie),rn(this,Jp,e.mutationCache||new lFe),rn(this,eh,e.defaultOptions||{}),rn(this,ey,new Map),rn(this,ty,new Map),rn(this,th,0)}mount(){jw(this,th)._++,Pe(this,th)===1&&(rn(this,ny,b_.subscribe(()=>{b_.isFocused()&&(this.resumePausedMutations(),Pe(this,zo).onFocus())})),rn(this,ry,y_.subscribe(()=>{y_.isOnline()&&(this.resumePausedMutations(),Pe(this,zo).onOnline())})))}unmount(){var e,t;jw(this,th)._--,Pe(this,th)===0&&((e=Pe(this,ny))==null||e.call(this),rn(this,ny,void 0),(t=Pe(this,ry))==null||t.call(this),rn(this,ry,void 0))}isFetching(e){return Pe(this,zo).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Pe(this,Jp).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=Pe(this,zo).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=Pe(this,zo).find({queryKey:e}),i=r==null?void 0:r.state.data,o=X$e(t,i);if(typeof o>"u")return;const s=this.defaultQueryOptions({queryKey:e});return Pe(this,zo).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Yo.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=Pe(this,zo).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=Pe(this,zo);Yo.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Pe(this,zo),r={type:"active",...e};return Yo.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Yo.batch(()=>Pe(this,zo).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(gu).catch(gu)}invalidateQueries(e={},t={}){return Yo.batch(()=>{if(Pe(this,zo).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=Yo.batch(()=>Pe(this,zo).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(gu)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(gu)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=Pe(this,zo).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gu).catch(gu)}fetchInfiniteQuery(e){return e.behavior=IL(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gu).catch(gu)}resumePausedMutations(){return Pe(this,Jp).resumePausedMutations()}getQueryCache(){return Pe(this,zo)}getMutationCache(){return Pe(this,Jp)}getDefaultOptions(){return Pe(this,eh)}setDefaultOptions(e){rn(this,eh,e)}setQueryDefaults(e,t){Pe(this,ey).set(Eg(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Pe(this,ey).values()];let n={};return t.forEach(r=>{LE(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Pe(this,ty).set(Eg(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Pe(this,ty).values()];let n={};return t.forEach(r=>{LE(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...Pe(this,eh).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lF(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:{...Pe(this,eh).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Pe(this,zo).clear(),Pe(this,Jp).clear()}},zo=new WeakMap,Jp=new WeakMap,eh=new WeakMap,ey=new WeakMap,ty=new WeakMap,th=new WeakMap,ny=new WeakMap,ry=new WeakMap,vJ),Za,xi,CS,Ca,tg,iy,fd,_S,oy,sy,ng,rg,nh,ay,ig,Jv,AS,NL,RS,PL,IS,LL,DS,ML,NS,$L,PS,FL,LS,BL,kA,Iie,OJ,Rie=(OJ=class extends i1{constructor(t,n){super();gn(this,ig);gn(this,AS);gn(this,RS);gn(this,IS);gn(this,DS);gn(this,NS);gn(this,PS);gn(this,LS);gn(this,kA);gn(this,Za,void 0);gn(this,xi,void 0);gn(this,CS,void 0);gn(this,Ca,void 0);gn(this,tg,void 0);gn(this,iy,void 0);gn(this,fd,void 0);gn(this,_S,void 0);gn(this,oy,void 0);gn(this,sy,void 0);gn(this,ng,void 0);gn(this,rg,void 0);gn(this,nh,void 0);gn(this,ay,new Set);this.options=n,rn(this,Za,t),rn(this,fd,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Pe(this,xi).addObserver(this),bY(Pe(this,xi),this.options)?Jn(this,ig,Jv).call(this):this.updateResult(),Jn(this,DS,ML).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return UL(Pe(this,xi),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return UL(Pe(this,xi),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Jn(this,NS,$L).call(this),Jn(this,PS,FL).call(this),Pe(this,xi).removeObserver(this)}setOptions(t,n){const r=this.options,i=Pe(this,xi);if(this.options=Pe(this,Za).defaultQueryOptions(t),g_(r,this.options)||Pe(this,Za).getQueryCache().notify({type:"observerOptionsUpdated",query:Pe(this,xi),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),Jn(this,LS,BL).call(this);const o=this.hasListeners();o&&yY(Pe(this,xi),i,this.options,r)&&Jn(this,ig,Jv).call(this),this.updateResult(n),o&&(Pe(this,xi)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Jn(this,AS,NL).call(this);const s=Jn(this,RS,PL).call(this);o&&(Pe(this,xi)!==i||this.options.enabled!==r.enabled||s!==Pe(this,nh))&&Jn(this,IS,LL).call(this,s)}getOptimisticResult(t){const n=Pe(this,Za).getQueryCache().build(Pe(this,Za),t),r=this.createResult(n,t);return pFe(this,r)&&(rn(this,Ca,r),rn(this,iy,this.options),rn(this,tg,Pe(this,xi).state)),r}getCurrentResult(){return Pe(this,Ca)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(Pe(this,ay).add(r),t[r])})}),n}getCurrentQuery(){return Pe(this,xi)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Pe(this,Za).defaultQueryOptions(t),r=Pe(this,Za).getQueryCache().build(Pe(this,Za),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Jn(this,ig,Jv).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Pe(this,Ca)))}createResult(t,n){var _;const r=Pe(this,xi),i=this.options,o=Pe(this,Ca),s=Pe(this,tg),a=Pe(this,iy),u=t!==r?t.state:Pe(this,CS),{state:c}=t;let{error:d,errorUpdatedAt:p,fetchStatus:m,status:g}=c,v=!1,E;if(n._optimisticResults){const w=this.hasListeners(),F=!w&&bY(t,n),M=w&&yY(t,r,n,i);(F||M)&&(m=J2(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(g="pending")),n._optimisticResults==="isRestoring"&&(m="idle")}if(n.select&&typeof c.data<"u")if(o&&c.data===(s==null?void 0:s.data)&&n.select===Pe(this,_S))E=Pe(this,oy);else try{rn(this,_S,n.select),E=n.select(c.data),E=RL(o==null?void 0:o.data,E,n),rn(this,oy,E),rn(this,fd,null)}catch(w){rn(this,fd,w)}else E=c.data;if(typeof n.placeholderData<"u"&&typeof E>"u"&&g==="pending"){let w;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))w=o.data;else if(w=typeof n.placeholderData=="function"?n.placeholderData((_=Pe(this,sy))==null?void 0:_.state.data,Pe(this,sy)):n.placeholderData,n.select&&typeof w<"u")try{w=n.select(w),rn(this,fd,null)}catch(F){rn(this,fd,F)}typeof w<"u"&&(g="success",E=RL(o==null?void 0:o.data,w,n),v=!0)}Pe(this,fd)&&(d=Pe(this,fd),E=Pe(this,oy),p=Date.now(),g="error");const O=m==="fetching",S=g==="pending",x=g==="error",C=S&&O;return{status:g,fetchStatus:m,isPending:S,isSuccess:g==="success",isError:x,isInitialLoading:C,isLoading:C,data:E,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:O,isRefetching:O&&!S,isLoadingError:x&&c.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:v,isRefetchError:x&&c.dataUpdatedAt!==0,isStale:uF(t,n),refetch:this.refetch}}updateResult(t){const n=Pe(this,Ca),r=this.createResult(Pe(this,xi),this.options);if(rn(this,tg,Pe(this,xi).state),rn(this,iy,this.options),Pe(this,tg).data!==void 0&&rn(this,sy,Pe(this,xi)),g_(r,n))return;rn(this,Ca,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!Pe(this,ay).size)return!0;const l=new Set(a??Pe(this,ay));return this.options.throwOnError&&l.add("error"),Object.keys(Pe(this,Ca)).some(u=>{const c=u;return Pe(this,Ca)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),Jn(this,kA,Iie).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Jn(this,DS,ML).call(this)}},Za=new WeakMap,xi=new WeakMap,CS=new WeakMap,Ca=new WeakMap,tg=new WeakMap,iy=new WeakMap,fd=new WeakMap,_S=new WeakMap,oy=new WeakMap,sy=new WeakMap,ng=new WeakMap,rg=new WeakMap,nh=new WeakMap,ay=new WeakMap,ig=new WeakSet,Jv=function(t){Jn(this,LS,BL).call(this);let n=Pe(this,xi).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(gu)),n},AS=new WeakSet,NL=function(){if(Jn(this,NS,$L).call(this),xy||Pe(this,Ca).isStale||!_L(this.options.staleTime))return;const n=Sie(Pe(this,Ca).dataUpdatedAt,this.options.staleTime)+1;rn(this,ng,setTimeout(()=>{Pe(this,Ca).isStale||this.updateResult()},n))},RS=new WeakSet,PL=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Pe(this,xi)):this.options.refetchInterval)??!1},IS=new WeakSet,LL=function(t){Jn(this,PS,FL).call(this),rn(this,nh,t),!(xy||this.options.enabled===!1||!_L(Pe(this,nh))||Pe(this,nh)===0)&&rn(this,rg,setInterval(()=>{(this.options.refetchIntervalInBackground||b_.isFocused())&&Jn(this,ig,Jv).call(this)},Pe(this,nh)))},DS=new WeakSet,ML=function(){Jn(this,AS,NL).call(this),Jn(this,IS,LL).call(this,Jn(this,RS,PL).call(this))},NS=new WeakSet,$L=function(){Pe(this,ng)&&(clearTimeout(Pe(this,ng)),rn(this,ng,void 0))},PS=new WeakSet,FL=function(){Pe(this,rg)&&(clearInterval(Pe(this,rg)),rn(this,rg,void 0))},LS=new WeakSet,BL=function(){const t=Pe(this,Za).getQueryCache().build(Pe(this,Za),this.options);if(t===Pe(this,xi))return;const n=Pe(this,xi);rn(this,xi,t),rn(this,CS,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},kA=new WeakSet,Iie=function(t){Yo.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Pe(this,Ca))}),Pe(this,Za).getQueryCache().notify({query:Pe(this,xi),type:"observerResultsUpdated"})})},OJ);function fFe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function bY(e,t){return fFe(e,t)||e.state.dataUpdatedAt>0&&UL(e,t,t.refetchOnMount)}function UL(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&uF(e,t)}return!1}function yY(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&uF(e,n)}function uF(e,t){return e.isStaleByTime(t.staleTime)}function pFe(e,t){return!g_(e.getCurrentResult(),t)}var hFe=class extends Rie{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:IL()},t)}getOptimisticResult(e){return e.behavior=IL(),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,s=i&&((u=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:u.direction)==="forward",a=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:uFe(t,n.data),hasPreviousPage:cFe(t,n.data),isFetchingNextPage:s,isFetchingPreviousPage:a,isRefetching:o&&!s&&!a}}},rh,_f,_l,Af,ly,jk,MS,jL,EJ,mFe=(EJ=class extends i1{constructor(n,r){super();gn(this,ly);gn(this,MS);gn(this,rh,void 0);gn(this,_f,void 0);gn(this,_l,void 0);gn(this,Af,void 0);rn(this,_f,void 0),rn(this,rh,n),this.setOptions(r),this.bindMethods(),Jn(this,ly,jk).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=Pe(this,rh).defaultMutationOptions(n),g_(r,this.options)||Pe(this,rh).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Pe(this,_l),observer:this}),(i=Pe(this,_l))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&Eg(r.mutationKey)!==Eg(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=Pe(this,_l))==null||n.removeObserver(this)}onMutationUpdate(n){Jn(this,ly,jk).call(this),Jn(this,MS,jL).call(this,n)}getCurrentResult(){return Pe(this,_f)}reset(){var n;(n=Pe(this,_l))==null||n.removeObserver(this),rn(this,_l,void 0),Jn(this,ly,jk).call(this),Jn(this,MS,jL).call(this)}mutate(n,r){var i;return rn(this,Af,r),(i=Pe(this,_l))==null||i.removeObserver(this),rn(this,_l,Pe(this,rh).getMutationCache().build(Pe(this,rh),this.options)),Pe(this,_l).addObserver(this),Pe(this,_l).execute(n)}},rh=new WeakMap,_f=new WeakMap,_l=new WeakMap,Af=new WeakMap,ly=new WeakSet,jk=function(){var r;const n=((r=Pe(this,_l))==null?void 0:r.state)??_ie();rn(this,_f,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},MS=new WeakSet,jL=function(n){Yo.batch(()=>{var r,i,o,s,a,l,u,c;if(Pe(this,Af)&&this.hasListeners()){const d=Pe(this,_f).variables,p=Pe(this,_f).context;(n==null?void 0:n.type)==="success"?((i=(r=Pe(this,Af)).onSuccess)==null||i.call(r,n.data,d,p),(s=(o=Pe(this,Af)).onSettled)==null||s.call(o,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(a=Pe(this,Af)).onError)==null||l.call(a,n.error,d,p),(c=(u=Pe(this,Af)).onSettled)==null||c.call(u,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(Pe(this,_f))})})},EJ),Die=P.createContext(void 0),oT=e=>{const t=P.useContext(Die);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gFe=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),P.createElement(Die.Provider,{value:e},t)),Nie=P.createContext(!1),bFe=()=>P.useContext(Nie);Nie.Provider;function yFe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vFe=P.createContext(yFe()),OFe=()=>P.useContext(vFe);function Pie(e,t){return typeof e=="function"?e(...t):!!e}var EFe=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},SFe=e=>{P.useEffect(()=>{e.clearReset()},[e])},TFe=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Pie(n,[e.error,r]),wFe=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},xFe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,kFe=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Lie(e,t,n){const r=oT(n),i=bFe(),o=OFe(),s=r.defaultQueryOptions(e);s._optimisticResults=i?"isRestoring":"optimistic",wFe(s),EFe(s,o),SFe(o);const[a]=P.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(P.useSyncExternalStore(P.useCallback(u=>{const c=i?()=>{}:a.subscribe(Yo.batchCalls(u));return a.updateResult(),c},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),P.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),xFe(s,l))throw kFe(s,a,o);if(TFe({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:a.trackResult(l)}function sT(e,t){return Lie(e,Rie,t)}function Jh(e,t){const n=oT(t),[r]=P.useState(()=>new mFe(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);const i=P.useSyncExternalStore(P.useCallback(s=>r.subscribe(Yo.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=P.useCallback((s,a)=>{r.mutate(s,a).catch(CFe)},[r]);if(i.error&&Pie(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function CFe(){}function cF(e,t){return Lie(e,hFe,t)}const _Fe={data:null},Mie=t1({name:"document",initialState:_Fe,reducers:{setDocumentData:(e,t)=>{e.data=t.payload}}}),{setDocumentData:v_}=Mie.actions,dF=e=>e.document,AFe=Mie.reducer,$ie=e=>["workspaces",e,"documents"],RFe=(e,t)=>["workpsaces",e,"documents",t],IFe=e=>cF({queryKey:$ie(e||""),queryFn:async({pageParam:n})=>(await gr.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:30}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),DFe=(e,t)=>{const n=Nc(),r=sT({queryKey:RFe(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await gr.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}});return P.useEffect(()=>(r.data&&n(v_(r.data)),()=>{n(v_(null))}),[n,r.data]),r},NFe=e=>{const t=oT();return Jh({mutationFn:async n=>(await gr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:$ie(e)})}})},PFe=(e,t)=>Jh({mutationFn:async n=>(await gr.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data}),LFe={data:null},Fie=t1({name:"workspace",initialState:LFe,reducers:{setWorkspaceData:(e,t)=>{e.data=t.payload}}}),{setWorkspaceData:vY}=Fie.actions,fF=e=>e.workspace,MFe=Fie.reducer,$Fe=e=>["workspaces",e],Bie=()=>["workspaces"],Uie=e=>{const t=Nc(),n=sT({queryKey:$Fe(e||""),enabled:!!e,queryFn:async()=>(await gr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});return P.useEffect(()=>(n.data&&t(vY(n.data)),()=>{t(vY(null))}),[t,n.data]),n},FFe=()=>cF({queryKey:Bie(),queryFn:async({pageParam:t})=>(await gr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),BFe=()=>{const e=oT();return Jh({mutationFn:async t=>(await gr.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:Bie()})}})},UFe=e=>Jh({mutationFn:async t=>(await gr.post(`/workspaces/${e}/invite-token`,t)).data}),jFe=()=>Jh({mutationFn:async e=>(await gr.post("/workspaces/join",e)).data});function O_(){return O_=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?(M(u),L.current=u):(M(pe),L.current=pe),E&&E({position:L.current})}}},[r,t,v,g,p,c,F,a,u,E,o]),ee=P.useCallback(function(){r||(M(o),L.current=o)},[r,o]);return{position:F,endPosition:H,isDragging:I,separatorProps:O_({},j,{onPointerDown:Z,onKeyDown:G,onDoubleClick:ee}),setPosition:M,splitterProps:O_({},j,{onPointerDown:Z,onKeyDown:G,onDoubleClick:ee})}},QFe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(WFe({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 YFe=e=>{const t=P.useRef(e);return P.useEffect(()=>{t.current=e}),t},GFe=(e,t=100,n=!1)=>{const r=YFe(e),i=P.useRef(),o=[t,n,r];function s(){i.current&&clearTimeout(i.current),i.current=void 0}P.useEffect(()=>s,o);function a(){i.current=void 0}return P.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(a,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},o)},qFe=(e,t,n)=>{const r=P.useState(e);return[r[0],GFe(r[1],t,n)]};function kN(e,t,n,r){const i=P.useRef(n),o=P.useRef(r);P.useEffect(()=>{i.current=n,o.current=r}),P.useEffect(()=>{const s=e&&"current"in e?e.current:e;if(!s)return;let a=0;function l(...c){a||i.current.apply(this,c)}s.addEventListener(t,l);const u=o.current;return()=>{a=1,s.removeEventListener(t,l),u&&u()}},[e,t])}const ZFe={},AO=typeof window>"u"?null:window,XFe=AO&&typeof AO.visualViewport<"u"?AO.visualViewport:null,OY=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],KFe=function(e){e===void 0&&(e=ZFe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,s]=qFe(typeof document>"u"?[r,i]:OY,t,n),a=()=>s(OY);return kN(AO,"resize",a),kN(XFe,"resize",a),kN(AO,"orientationchange",a),o},JFe=e=>KFe(e)[0];class Ur{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]=ky(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),gd.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]=ky(this,t,n);let r=[];return this.decompose(t,n,r,0),gd.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 RO(this),o=new RO(t);for(let s=n,a=n;;){if(i.next(s),o.next(s),s=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(a+=i.value.length,i.done||a>=r)return!0}}iter(t=1){return new RO(this,t)}iterRange(t,n=this.length){return new Vie(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 Hie(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]?Ur.empty:t.length<=32?new So(t):gd.from(So.split(t,[]))}}class So extends Ur{constructor(t,n=e6e(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 s=this.text[o],a=i+s.length;if((n?r:a)>=t)return new t6e(i,a,r,s);i=a+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new So(EY(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),a=zk(o.text,s.text.slice(),0,o.length);if(a.length<=32)r.push(new So(a,s.length+o.length));else{let l=a.length>>1;r.push(new So(a.slice(0,l)),new So(a.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof So))return super.replace(t,n,r);[t,n]=ky(this,t,n);let i=zk(this.text,zk(r.text,EY(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new So(i,o):gd.from(So.split(i,[]),o)}sliceString(t,n=this.length,r=` -`){[t,n]=ky(this,t,n);let i="";for(let o=0,s=0;o<=n&&st&&s&&(i+=r),to&&(i+=a.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 So(r,i)),r=[],i=-1);return i>-1&&n.push(new So(r,i)),n}}class gd extends Ur{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 s=this.children[o],a=i+s.length,l=r+s.lines-1;if((n?l:a)>=t)return s.lineInner(t,n,r,i);i=a+1,r=l+1}}decompose(t,n,r,i){for(let o=0,s=0;s<=n&&o=s){let u=i&((s<=t?1:0)|(l>=n?2:0));s>=t&&l<=n&&!u?r.push(a):a.decompose(t-s,n-s,r,u)}s=l+1}}replace(t,n,r){if([t,n]=ky(this,t,n),r.lines=o&&n<=a){let l=s.replace(t-o,n-o,r),u=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new gd(c,this.length-(n-t)+r.length)}return super.replace(o,a,l)}o=a+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` -`){[t,n]=ky(this,t,n);let i="";for(let o=0,s=0;ot&&o&&(i+=r),ts&&(i+=a.sliceString(t-s,n-s,r)),s=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof gd))return 0;let r=0,[i,o,s,a]=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==s||o==a)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 m of t)r+=m.lines;if(r<32){let m=[];for(let g of t)g.flatten(m);return new So(m,n)}let i=Math.max(32,r>>5),o=i<<1,s=i>>1,a=[],l=0,u=-1,c=[];function d(m){let g;if(m.lines>o&&m instanceof gd)for(let v of m.children)d(v);else m.lines>s&&(l>s||!l)?(p(),a.push(m)):m instanceof So&&l&&(g=c[c.length-1])instanceof So&&m.lines+g.lines<=32?(l+=m.lines,u+=m.length+1,c[c.length-1]=new So(g.text.concat(m.text),g.length+1+m.length)):(l+m.lines>i&&p(),l+=m.lines,u+=m.length+1,c.push(m))}function p(){l!=0&&(a.push(c.length==1?c[0]:gd.from(c,u)),u=-1,l=c.length=0)}for(let m of t)d(m);return p(),a.length==1?a[0]:new gd(a,n)}}Ur.empty=new So([""],0);function e6e(e){let t=-1;for(let n of e)t+=n.length+1;return t}function zk(e,t,n=0,r=1e9){for(let i=0,o=0,s=!0;o=n&&(l>r&&(a=a.slice(0,r-i)),i0?1:(t instanceof So?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],s=o>>1,a=i instanceof So?i.text.length:i.children.length;if(s==(n>0?a: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 So){let l=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[s+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof So?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 Vie{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new RO(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 Hie{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"&&(Ur.prototype[Symbol.iterator]=function(){return this.iter()},RO.prototype[Symbol.iterator]=Vie.prototype[Symbol.iterator]=Hie.prototype[Symbol.iterator]=function(){return this});let t6e=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 ky(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let Ab="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 Ab[t-1]<=e;return!1}function SY(e){return e>=127462&&e<=127487}const TY=8205;function $s(e,t,n=!0,r=!0){return(n?Wie:r6e)(e,t,r)}function Wie(e,t,n){if(t==e.length)return t;t&&Qie(e.charCodeAt(t))&&Yie(e.charCodeAt(t-1))&&t--;let r=Ds(e,t);for(t+=wu(r);t=0&&SY(Ds(e,s));)o++,s-=2;if(o%2==0)break;t+=2}else break}return t}function r6e(e,t,n){for(;t>0;){let r=Wie(e,t-2,n);if(r=56320&&e<57344}function Yie(e){return e>=55296&&e<56320}function Ds(e,t){let n=e.charCodeAt(t);if(!Yie(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Qie(r)?(n-55296<<10)+(r-56320)+65536:n}function pF(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function wu(e){return e<65536?1:2}const zL=/\r\n?|\n/;var Ps=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Ps||(Ps={}));class Nd{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return o+(t-i);o+=a}else{if(r!=Ps.Simple&&u>=t&&(r==Ps.TrackDel&&it||r==Ps.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!a)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&&a>=t)return in?"cover":!0;i=a}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 Nd(t)}static create(t){return new Nd(t)}}class Wo extends Nd{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 VL(this,(n,r,i,o,s)=>t=t.replace(i,i+(r-n),s),!1),t}mapDesc(t,n=!1){return HL(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,o=0;i=0){n[i]=a,n[i+1]=s;let l=i>>1;for(;r.length0&&ah(r,n,o.text),o.forward(c),a+=c}let u=t[s++];for(;a>1].toJSON()))}return t}static of(t,n,r){let i=[],o=[],s=0,a=null;function l(c=!1){if(!c&&!i.length)return;sp||d<0||p>n)throw new RangeError(`Invalid change range ${d} to ${p} (in doc of length ${n})`);let g=m?typeof m=="string"?Ur.of(m.split(r||zL)):m:Ur.empty,v=g.length;if(d==p&&v==0)return;ds&&ia(i,d-s,-1),ia(i,p-d,v),ah(o,i,g),s=p}}return u(t),l(!a),a}static empty(t){return new Wo(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;ia&&typeof s!="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 ah(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)a=e.sections[s++],l=e.sections[s++];t(i,u,o,c,d),i=u,o=c}}}function HL(e,t,n,r=!1){let i=[],o=r?[]:null,s=new ME(e),a=new ME(t);for(let l=-1;;)if(s.ins==-1&&a.ins==-1){let u=Math.min(s.len,a.len);ia(i,u,-1),s.forward(u),a.forward(u)}else if(a.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(a.len=0&&l=0){let u=0,c=s.len;for(;c;)if(a.ins==-1){let d=Math.min(c,a.len);u+=d,c-=d,a.forward(d)}else if(a.ins==0&&a.lenl||s.ins>=0&&s.len>l)&&(a||r.length>u),o.forward2(l),s.forward(l)}}}}class ME{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?Ur.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?Ur.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 Vm{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 Vm(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return ht.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return ht.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return ht.range(t.anchor,t.head)}static create(t,n,r){return new Vm(t,n,r)}}class ht{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:ht.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;rt.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new ht(t.ranges.map(n=>Vm.fromJSON(n)),t.main)}static single(t,n=t){return new ht([ht.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;it?8:0)|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?ht.range(l,a):ht.range(a,l))}}return new ht(t,n)}}function qie(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let hF=0;class hn{constructor(t,n,r,i,o){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=hF++,this.default=t([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(t={}){return new hn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:mF),!!t.static,t.enables)}of(t){return new Vk([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function mF(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class Vk{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=hF++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,o=this.id,s=t[o]>>1,a=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[s]=r(d),1},update(d,p){if(l&&p.docChanged||u&&(p.docChanged||p.selection)||WL(d,c)){let m=r(d);if(a?!wY(m,d.values[s],i):!i(m,d.values[s]))return d.values[s]=m,1}return 0},reconfigure:(d,p)=>{let m,g=p.config.address[o];if(g!=null){let v=S_(p,g);if(this.dependencies.every(E=>E instanceof hn?p.facet(E)===d.facet(E):E instanceof vs?p.field(E,!1)==d.field(E,!1):!0)||(a?wY(m=r(d),v,i):i(m=r(d),v)))return d.values[s]=v,0}else m=r(d);return d.values[s]=m,1}}}}function wY(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)),s=e[t.id]>>1;function a(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(xY).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],s=this.updateF(o,i);return this.compareF(o,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,xY.of({field:this,create:t})]}get extension(){return this}}const Dm={lowest:4,low:3,default:2,high:1,highest:0};function Sv(e){return t=>new Zie(t,e)}const em={highest:Sv(Dm.highest),high:Sv(Dm.high),default:Sv(Dm.default),low:Sv(Dm.low),lowest:Sv(Dm.lowest)};class Zie{constructor(t,n){this.inner=t,this.prec=n}}class eR{of(t){return new QL(this,t)}reconfigure(t){return eR.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class QL{constructor(t,n){this.compartment=t,this.inner=n}}class E_{constructor(t,n,r,i,o,s){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],o=Object.create(null),s=new Map;for(let p of o6e(t,n,s))p instanceof vs?i.push(p):(o[p.facet.id]||(o[p.facet.id]=[])).push(p);let a=Object.create(null),l=[],u=[];for(let p of i)a[p.id]=u.length<<1,u.push(m=>p.slot(m));let c=r==null?void 0:r.config.facets;for(let p in o){let m=o[p],g=m[0].facet,v=c&&c[p]||[];if(m.every(E=>E.type==0))if(a[g.id]=l.length<<1|1,mF(v,m))l.push(r.facet(g));else{let E=g.combine(m.map(O=>O.value));l.push(r&&g.compare(E,r.facet(g))?r.facet(g):E)}else{for(let E of m)E.type==0?(a[E.id]=l.length<<1|1,l.push(E.value)):(a[E.id]=u.length<<1,u.push(O=>E.dynamicSlot(O)));a[g.id]=u.length<<1,u.push(E=>i6e(E,g,m))}}let d=u.map(p=>p(a));return new E_(t,s,d,a,l,o)}}function o6e(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(s,a){let l=i.get(s);if(l!=null){if(l<=a)return;let u=r[l].indexOf(s);u>-1&&r[l].splice(u,1),s instanceof QL&&n.delete(s.compartment)}if(i.set(s,a),Array.isArray(s))for(let u of s)o(u,a);else if(s instanceof QL){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(s.compartment)||s.inner;n.set(s.compartment,u),o(u,a)}else if(s instanceof Zie)o(s.inner,s.prec);else if(s instanceof vs)r[a].push(s),s.provides&&o(s.provides,a);else if(s instanceof Vk)r[a].push(s),s.facet.extensions&&o(s.facet.extensions,Dm.default);else{let u=s.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,a)}}return o(e,Dm.default),r.reduce((s,a)=>s.concat(a))}function IO(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 S_(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Xie=hn.define(),YL=hn.define({combine:e=>e.some(t=>t),static:!0}),Kie=hn.define({combine:e=>e.length?e[0]:void 0,static:!0}),Jie=hn.define(),eoe=hn.define(),toe=hn.define(),noe=hn.define({combine:e=>e.length?e[0]:!1});class Pc{constructor(t,n){this.type=t,this.value=n}static define(){return new s6e}}class s6e{of(t){return new Pc(this,t)}}class a6e{constructor(t){this.map=t}of(t){return new rr(this,t)}}class rr{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 rr(this.type,n)}is(t){return this.type==t}static define(t={}){return new a6e(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}}rr.reconfigure=rr.define();rr.appendConfig=rr.define();let gs=class eO{constructor(t,n,r,i,o,s){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,r&&qie(r,n.newLength),o.some(a=>a.type==eO.time)||(this.annotations=o.concat(eO.time.of(Date.now())))}static create(t,n,r,i,o,s){return new eO(t,n,r,i,o,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(eO.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}};gs.time=Pc.define();gs.userEvent=Pc.define();gs.addToHistory=Pc.define();gs.remote=Pc.define();function l6e(e,t){let n=[];for(let r=0,i=0;;){let o,s;if(r=e[r]))o=e[r++],s=e[r++];else if(i=0;i--){let o=r[i](e);o instanceof gs?e=o:Array.isArray(o)&&o.length==1&&o[0]instanceof gs?e=o[0]:e=ioe(t,Rb(o),!1)}return e}function c6e(e){let t=e.startState,n=t.facet(toe),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=roe(r,GL(t,o,e.changes.newLength),!0))}return r==e?e:gs.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const d6e=[];function Rb(e){return e==null?d6e:Array.isArray(e)?e:[e]}var Hi=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Hi||(Hi={}));const f6e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let qL;try{qL=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function p6e(e){if(qL)return qL.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||f6e.test(n)))return!0}return!1}function h6e(e){return t=>{if(!/\S/.test(t))return Hi.Space;if(p6e(t))return Hi.Word;for(let n=0;n-1)return Hi.Word;return Hi.Other}}class Ar{constructor(t,n,r,i,o,s){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(let a=0;ai.set(u,l)),n=null),i.set(a.value.compartment,a.value.extension)):a.is(rr.reconfigure)?(n=null,r=a.value):a.is(rr.appendConfig)&&(n=null,r=Rb(r).concat(a.value));let o;n?o=t.startState.values.slice():(n=E_.resolve(r,i,this),o=new Ar(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let s=t.startState.facet(YL)?t.newSelection:t.newSelection.asSingle();new Ar(n,t.newDoc,s,o,(a,l)=>l.update(a,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:ht.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),o=[r.range],s=Rb(r.effects);for(let a=1;as.spec.fromJSON(a,l)))}}return Ar.create({doc:t.doc,selection:ht.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=E_.resolve(t.extensions||[],new Map),r=t.doc instanceof Ur?t.doc:Ur.of((t.doc||"").split(n.staticFacet(Ar.lineSeparator)||zL)),i=t.selection?t.selection instanceof ht?t.selection:ht.single(t.selection.anchor,t.selection.head):ht.single(0);return qie(i,r.length),n.staticFacet(YL)||(i=i.asSingle()),new Ar(n,r,i,n.dynamicSlots.map(()=>null),(o,s)=>s.create(o),null)}get tabSize(){return this.facet(Ar.tabSize)}get lineBreak(){return this.facet(Ar.lineSeparator)||` -`}get readOnly(){return this.facet(noe)}phrase(t,...n){for(let r of this.facet(Ar.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(Xie))for(let s of o(this,n,r))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){return h6e(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),o=this.charCategorizer(t),s=t-r,a=t-r;for(;s>0;){let l=$s(n,s,!1);if(o(n.slice(l,s))!=Hi.Word)break;s=l}for(;ae.length?e[0]:4});Ar.lineSeparator=Kie;Ar.readOnly=noe;Ar.phrases=hn.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])}});Ar.languageData=Xie;Ar.changeFilter=Jie;Ar.transactionFilter=eoe;Ar.transactionExtender=toe;eR.reconfigure=rr.define();function zd(e,t,n={}){let r={};for(let i of e)for(let o of Object.keys(i)){let s=i[o],a=r[o];if(a===void 0)r[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](a,s);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 Sg{eq(t){return this==t}range(t,n=t){return ZL.create(t,n,this)}}Sg.prototype.startSide=Sg.prototype.endSide=0;Sg.prototype.point=!1;Sg.prototype.mapMode=Ps.TrackDel;let ZL=class ooe{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new ooe(t,n,r)}};function XL(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class gF{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 s=i,a=o.length;;){if(s==a)return s;let l=s+a>>1,u=o[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==s)return u>=0?s:a;u>=0?a=l:s=l+1}}between(t,n,r,i){for(let o=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,o);om||p==m&&u.startSide>0&&u.endSide<=0)continue;(m-p||u.endSide-u.startSide)<0||(s<0&&(s=p),u.point&&(a=Math.max(a,m-p)),r.push(u),i.push(p-s),o.push(m-s))}return{mapped:r.length?new gF(i,o,r,a):null,pos:s}}}class Cr{constructor(t,n,r,i){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(t,n,r,i){return new Cr(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:o=this.length}=t,s=t.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(XL)),this.isEmpty)return n.length?Cr.of(n):this;let a=new soe(this,null,-1).goto(0),l=0,u=[],c=new Fh;for(;a.value||l=0){let d=n[l++];c.addInner(d.from,d.to,d.value)||u.push(d)}else a.rangeIndex==1&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||oa.to||o=o&&t<=o+s.length&&s.between(o,t-o,n-o,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return $E.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return $E.from(t).goto(n)}static compare(t,n,r,i,o=-1){let s=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),a=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),l=kY(s,a,r),u=new Tv(s,l,o),c=new Tv(a,l,o);r.iterGaps((d,p,m)=>CY(u,d,c,p,m,i)),r.empty&&r.length==0&&CY(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),s=n.filter(c=>!c.isEmpty&&t.indexOf(c)<0);if(o.length!=s.length)return!1;if(!o.length)return!0;let a=kY(o,s),l=new Tv(o,a,0).goto(r),u=new Tv(s,a,0).goto(r);for(;;){if(l.to!=u.to||!KL(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 s=new Tv(t,null,o).goto(n),a=n,l=s.openStart;for(;;){let u=Math.min(s.to,r);if(s.point){let c=s.activeForPoint(s.to),d=s.pointFroma&&(i.span(a,u,s.active,l),l=s.openEnd(u));if(s.to>r)return l+(s.point&&s.to>r?1:0);a=s.to,s.next()}}static of(t,n=!1){let r=new Fh;for(let i of t instanceof ZL?[t]:n?m6e(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Cr.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Cr.empty;i=i.nextLayer)n=new Cr(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Cr.empty=new Cr([],[],null,-1);function m6e(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(XL);t=r}return e}Cr.empty.nextLayer=Cr.empty;class Fh{finishChunk(t){this.chunks.push(new gF(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 Fh)).add(t,n,r)}addInner(t,n,r){let i=t-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(Cr.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Cr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function kY(e,t,n){let r=new Map;for(let o of e)for(let s=0;s=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new soe(s,n,r,o));return i.length==1?i[0]:new $E(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--)CN(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--)CN(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(),CN(this.heap,0)}}}function CN(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 Tv{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=$E.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){Ox(this.active,t),Ox(this.activeTo,t),Ox(this.activeRank,t),this.minActive=_Y(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n0;)n++;Ex(this.active,n,r),Ex(this.activeTo,n,i),Ex(this.activeRank,n,o),t&&Ex(t,n,this.cursor.from),this.minActive=_Y(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&&Ox(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 CY(e,t,n,r,i,o){e.goto(t),n.goto(r);let s=r+i,a=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,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&KL(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(a,d,e.point,n.point):d>a&&!KL(e.active,n.active)&&o.compareRange(a,d,e.active,n.active),c>s)break;a=c,u<=0&&e.next(),u>=0&&n.next()}}function KL(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 _Y(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=$s(e,i)}return r===!0?-1:e.length}const eM="ͼ",AY=typeof Symbol>"u"?"__"+eM:Symbol.for(eM),tM=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),RY=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Bh{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function o(s,a,l,u){let c=[],d=/^@(\w+)\b/.exec(s[0]),p=d&&d[1]=="keyframes";if(d&&a==null)return l.push(s[0]+";");for(let m in a){let g=a[m];if(/&/.test(m))o(m.split(/,\s*/).map(v=>s.map(E=>v.replace(/&/,E))).reduce((v,E)=>v.concat(E)),g,l);else if(g&&typeof g=="object"){if(!d)throw new RangeError("The value of a property ("+m+") should be a primitive value.");o(i(m),g,c,p)}else g!=null&&c.push(m.replace(/_.*/,"").replace(/[A-Z]/g,v=>"-"+v.toLowerCase())+": "+g+";")}(c.length||p)&&l.push((r&&!d&&!u?s.map(r):s).join(", ")+" {"+c.join(" ")+"}")}for(let s in t)o(i(s),t[s],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=RY[AY]||1;return RY[AY]=t+1,eM+t.toString(36)}static mount(t,n,r){let i=t[tM],o=r&&r.nonce;i?o&&i.setNonce(o):i=new g6e(t,o),i.mount(Array.isArray(n)?n:[n])}}let IY=new Map;class g6e{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let o=IY.get(r);if(o)return t.adoptedStyleSheets=[o.sheet,...t.adoptedStyleSheets],t[tM]=o;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],IY.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[tM]=this}mount(t){let n=this.sheet,r=0,i=0;for(let o=0;o-1&&(this.modules.splice(a,1),i--,a=-1),a==-1){if(this.modules.splice(i++,0,s),n)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},b6e=typeof navigator<"u"&&/Mac/.test(navigator.platform),y6e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ns=0;Ns<10;Ns++)Uh[48+Ns]=Uh[96+Ns]=String(Ns);for(var Ns=1;Ns<=24;Ns++)Uh[Ns+111]="F"+Ns;for(var Ns=65;Ns<=90;Ns++)Uh[Ns]=String.fromCharCode(Ns+32),FE[Ns]=String.fromCharCode(Ns);for(var _N in Uh)FE.hasOwnProperty(_N)||(FE[_N]=Uh[_N]);function v6e(e){var t=b6e&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||y6e&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?FE:Uh)[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 T_(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function nM(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function O6e(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Hk(e,t){if(!t.anchorNode)return!1;try{return nM(e,t.anchorNode)}catch{return!1}}function BE(e){return e.nodeType==3?Tg(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function DO(e,t,n,r){return n?DY(e,t,n,r,-1)||DY(e,t,n,r,1):!1}function UE(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function DY(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Zf(e))){if(e.nodeName=="DIV")return!1;let o=e.parentNode;if(!o||o.nodeType!=1)return!1;t=UE(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?Zf(e):0}else return!1}}function Zf(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function bF(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function E6e(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function aoe(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 S6e(e,t,n,r,i,o,s,a){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(c.nodeType==1){let p,m=c==l.body,g=1,v=1;if(m)p=E6e(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 S=c.getBoundingClientRect();({scaleX:g,scaleY:v}=aoe(c,S)),p={left:S.left,right:S.left+c.clientWidth*g,top:S.top,bottom:S.top+c.clientHeight*v}}let E=0,O=0;if(i=="nearest")t.top0&&t.bottom>p.bottom+O&&(O=t.bottom-p.bottom+O+s)):t.bottom>p.bottom&&(O=t.bottom-p.bottom+s,n<0&&t.top-O0&&t.right>p.right+E&&(E=t.right-p.right+E+o)):t.right>p.right&&(E=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 w6e{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?Zf(n):0),r,Math.min(t.focusOffset,r?Zf(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let k0=null;function loe(e){if(e.setActive)return e.setActive();if(k0)return e.focus(k0);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(k0==null?{get preventScroll(){return k0={preventScroll:!0},!0}}:void 0),!k0){k0=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class sa{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new sa(t.parentNode,UE(t),n)}static after(t,n){return new sa(t.parentNode,UE(t)+1,n)}}const yF=[];class _i{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 s of this.children){if(s.flags&7){if(!s.dom&&(o=i?i.nextSibling:r.firstChild)){let a=_i.get(o);(!a||!a.parent&&a.canReuseDOM(s))&&s.reuseDOM(o)}s.sync(t,n),s.flags&=-8}if(o=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&o!=s.dom&&(n.written=!0),s.dom.parentNode==r)for(;o&&o!=s.dom;)o=PY(o);else r.insertBefore(s.dom,o);i=s.dom}for(o=i?i.nextSibling:r.firstChild,o&&n&&n.node==r&&(n.written=!0);o;)o=PY(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=Zf(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&&!_i.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,o=0;;i++){let s=this.children[i];if(s.dom==r)return o;o+=s.length+s.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,o=-1,s=-1,a=-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){s=l,a=c;break}c=p,u=p+d.breakAfter}return{from:o,to:a<0?r+this.length:a,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=yF){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 foe(e,t,n,r,i,o,s,a,l){let{children:u}=e,c=u.length?u[t]:null,d=o.length?o[o.length-1]:null,p=d?d.breakAfter:s;if(!(t==r&&c&&!s&&!p&&o.length<2&&c.merge(n,i,o.length?d:null,n==0,a,l))){if(r0&&(!s&&o.length&&c.merge(n,c.length,o[0],!1,a,0)?c.breakAfter=o.shift().breakAfter:(n2);var yn={mac:$Y||/Mac/.test(Fl.platform),windows:/Win/.test(Fl.platform),linux:/Linux|X11/.test(Fl.platform),ie:tR,ie_version:hoe?rM.documentMode||6:oM?+oM[1]:iM?+iM[1]:0,gecko:LY,gecko_version:LY?+(/Firefox\/(\d+)/.exec(Fl.userAgent)||[0,0])[1]:0,chrome:!!AN,chrome_version:AN?+AN[1]:0,ios:$Y,android:/Android\b/.test(Fl.userAgent),webkit:MY,safari:moe,webkit_version:MY?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:rM.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const C6e=256;class Xf extends _i{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 Xf)||this.length-(n-t)+r.length>C6e||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 Xf(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 sa(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 _6e(this.dom,t,n)}}class Kf extends _i{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(uoe(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,s){return r&&(!(r instanceof Kf&&r.mark.eq(this.mark))||t&&o<=0||nt&&n.push(r=t&&(i=o),r=l,o++}let s=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new Kf(this.mark,n,s)}domAtPos(t){return goe(this,t)}coordsAt(t,n){return yoe(this,t,n)}}function _6e(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,s=0;t==0&&n<0||t==r&&n>=0?yn.chrome||yn.gecko||(t?(i--,s=1):o=0)?0:a.length-1];return yn.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(a,u=>u.width)||l),s?bF(l,s<0):l||null}class lh extends _i{static create(t,n,r){return new lh(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=lh.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,s){return r&&(!(r instanceof lh)||!this.widget.compare(r.widget)||t>0&&o<=0||n0)?sa.before(this.dom):sa.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 s=this.side?this.side<0:t>0;for(let a=s?i.length-1:0;o=i[a],!(t>0?a==0:a==i.length-1||o.top0?sa.before(this.dom):sa.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ur.empty}get isHidden(){return!0}}Xf.prototype.children=lh.prototype.children=Cy.prototype.children=yF;function goe(e,t){let n=e.dom,{children:r}=e,i=0;for(let o=0;io&&t0;o--){let s=r[o-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let o=i;o0&&t instanceof Kf&&i.length&&(r=i[i.length-1])instanceof Kf&&r.mark.eq(t.mark)?boe(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function yoe(e,t,n){let r=null,i=-1,o=null,s=-1;function a(u,c){for(let d=0,p=0;d=c&&(m.children.length?a(m,c-p):(!o||o.isHidden&&n>0)&&(g>c||p==g&&m.getSide()>0)?(o=m,s=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 aM(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 R6e(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){vF(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){boe(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=sM(n,this.attrs||{})),r&&(this.attrs=sM({class:r},this.attrs||{}))}domAtPos(t){return goe(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(uoe(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&&(aM(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&&_i.get(i)instanceof Kf;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=_i.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!yn.ios||!this.children.some(o=>o instanceof Xf))){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 Xf)||/[^ -~]/.test(r.text))return null;let i=BE(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=yoe(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 Vo)return o;if(s>n)break}i=s+o.breakAfter}return null}}class Th extends _i{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,s){return r&&(!(r instanceof Th)||!this.widget.compare(r.widget)||t>0&&o<=0||n0}}class Lc{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 Pa=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Pa||(Pa={}));class Tn extends Sg{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 aT(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 jh(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:s}=voe(t,n);r=(o?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new jh(t,r,i,n,t.widget||null,!0)}static line(t){return new lT(t)}static set(t,n=!1){return Cr.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Tn.none=Cr.empty;class aT extends Tn{constructor(t){let{start:n,end:r}=voe(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 aT&&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))&&vF(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)}}aT.prototype.point=!1;class lT extends Tn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof lT&&this.spec.class==t.spec.class&&vF(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)}}lT.prototype.mapMode=Ps.TrackBefore;lT.prototype.point=!0;class jh extends Tn{constructor(t,n,r,i,o,s){super(n,r,o,t),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?Ps.TrackBefore:Ps.TrackAfter:Ps.TrackDel}get type(){return this.startSide!=this.endSide?Pa.WidgetRange:this.startSide<=0?Pa.WidgetBefore:Pa.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof jh&&I6e(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)}}jh.prototype.point=!0;function voe(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 I6e(e,t){return e==t||!!(e&&t&&e.compare(t))}function lM(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 NO{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 Th&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Vo),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Sx(new Cy(-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 Th)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:s,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=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(Sx(new Xf(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,s){if(this.disallowBlockEffectsFor[s]&&r instanceof jh){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 a=n-t;if(r instanceof jh)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Th(r.widget||new BY("div"),a,r));else{let l=lh.create(r.widget||new BY("span"),a,a?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(Sx(new Cy(1),i),o),o=i.length+Math.max(0,o-i.length)),d.append(Sx(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);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(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 s=new NO(t,n,r,o);return s.openEnd=Cr.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function Sx(e,t){for(let n of t)e=new Kf(n,[e],e.length);return e}class BY extends Lc{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 Ri=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Ri||(Ri={}));const wg=Ri.LTR,OF=Ri.RTL;function Ooe(e){let t=[];for(let n=0;n=n){if(a.level==r)return s;(o<0||(i!=0?i<0?a.fromn:t[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}function Soe(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;v-=3)if(ed[v+1]==-m){let E=ed[v+2],O=E&2?i:E&4?E&1?o:i:0;O&&(ui[d]=ui[ed[v]]=O),a=v;break}}else{if(ed.length==189)break;ed[a++]=d,ed[a++]=p,ed[a++]=l}else if((g=ui[d])==2||g==1){let v=g==i;l=v?0:1;for(let E=a-3;E>=0;E-=3){let O=ed[E+2];if(O&2)break;if(v)ed[E+2]|=2;else{if(O&4)break;ed[E+2]|=4}}}}}function $6e(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let s=i?n[i-1].to:e,a=il;)g==E&&(g=n[--v].from,E=v?n[v-1].to:e),ui[--g]=m;l=c}else o=u,l++}}}function cM(e,t,n,r,i,o,s){let a=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&s.push(new uh(l,v.from,m));let E=v.direction==wg!=!(m%2);dM(e,E?r+1:r,i,v.inner,v.from,v.to,s),l=v.to}g=v.to}else{if(g==n||(c?ui[g]!=a:ui[g]==a))break;g++}p?cM(e,l,g,r+1,i,p,s):lt;){let c=!0,d=!1;if(!u||l>o[u-1].to){let v=ui[l-1];v!=a&&(c=!1,d=v==16)}let p=!c&&a==1?[]:null,m=c?r:r+1,g=l;e:for(;;)if(u&&g==o[u-1].to){if(d)break e;let v=o[--u];if(!c)for(let E=v.from,O=u;;){if(E==t)break e;if(O&&o[O-1].to==E)E=o[--O].from;else{if(ui[E-1]==a)break e;break}}if(p)p.push(v);else{v.toui.length;)ui[ui.length]=256;let r=[],i=t==wg?0:1;return dM(e,i,i,n,0,e.length,r),r}function Toe(e){return[new uh(0,e,0)]}let woe="";function B6e(e,t,n,r,i){var o;let s=r.head-e.from,a=uh.find(t,s,(o=r.bidiLevel)!==null&&o!==void 0?o:-1,r.assoc),l=t[a],u=l.side(i,n);if(s==u){let p=a+=i?1:-1;if(p<0||p>=t.length)return null;l=t[a=p],s=l.side(!i,n),u=l.side(i,n)}let c=$s(e.text,s,l.forward(i,n));(cl.to)&&(c=u),woe=e.text.slice(Math.min(s,c),Math.max(s,c));let d=a==(i?t.length-1:0)?null:t[a+(i?1:-1)];return d&&c==u&&d.level+(i?0:1)e.some(t=>t)}),Doe=hn.define({combine:e=>e.some(t=>t)});class Db{constructor(t,n="nearest",r="nearest",i=5,o=5,s=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=o,this.isSnapshot=s}map(t){return t.empty?this:new Db(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 Db(ht.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Tx=rr.define({map:(e,t)=>e.map(t)});function Pu(e,t,n){let r=e.facet(_oe);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 nR=hn.define({combine:e=>e.length?e[0]:!0});let j6e=0;const tO=hn.define();class Wi{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:s}=n||{};return new Wi(j6e++,t,r,i,a=>{let l=[tO.of(a)];return s&&l.push(jE.of(u=>{let c=u.plugin(a);return c?s(c):Tn.none})),o&&l.push(o(a)),l})}static fromClass(t,n){return Wi.define(r=>new t(r),n)}}class RN{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(Pu(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){Pu(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){Pu(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Noe=hn.define(),EF=hn.define(),jE=hn.define(),Poe=hn.define(),SF=hn.define(),Loe=hn.define();function UY(e,t){let n=e.state.facet(Loe);if(!n.length)return n;let r=n.map(o=>o instanceof Function?o(e):o),i=[];return Cr.spans(r,t.from,t.to,{point(){},span(o,s,a,l){let u=o-t.from,c=s-t.from,d=i;for(let p=a.length-1;p>=0;p--,l--){let m=a[p].spec.bidiIsolate,g;if(m==null&&(m=U6e(t.text,u,c)),l>0&&d.length&&(g=d[d.length-1]).to==u&&g.direction==m)g.to=c,d=g.inner;else{let v={from:u,to:c,direction:m,inner:[]};d.push(v),d=v.inner}}}}),i}const Moe=hn.define();function $oe(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(Moe)){let s=o(e);s&&(s.left!=null&&(t=Math.max(t,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(r=Math.max(r,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const nO=hn.define();class Lu{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new Lu(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 Lu(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),s=l.toA,a=l.toB}}}class w_{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Wo.empty(this.startState.doc.length);for(let o of r)this.changes=this.changes.compose(o.changes);let i=[];this.changes.iterChangedRanges((o,s,a,l)=>i.push(new Lu(o,s,a,l))),this.changedRanges=i}static create(t,n,r){return new w_(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 jY extends _i{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 Vo],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Lu(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:!G6e(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let o=i>-1?V6e(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new Lu(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,(yn.ie||yn.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,a=this.updateDeco(),l=Q6e(s,a,t.changes);return r=Lu.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 s=yn.chrome||yn.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||i.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?i[s]:null;if(!a)break;let{fromA:l,toA:u,fromB:c,toB:d}=a,p,m,g,v;if(r&&r.range.fromBc){let C=NO.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),I=NO.build(this.view.state.doc,r.range.toB,d,this.decorations,this.dynamicDecorationMap);m=C.breakAtStart,g=C.openStart,v=I.openEnd;let _=this.compositionView(r);I.breakAtStart?_.breakAfter=1:I.content.length&&_.merge(_.length,_.length,I.content[0],!1,I.openStart,0)&&(_.breakAfter=I.content[0].breakAfter,I.content.shift()),C.content.length&&_.merge(0,0,C.content[C.content.length-1],!0,0,C.openEnd)&&C.content.pop(),p=C.content.concat(_).concat(I.content)}else({content:p,breakAtStart:m,openStart:g,openEnd:v}=NO.build(this.view.state.doc,c,d,this.decorations,this.dynamicDecorationMap));let{i:E,off:O}=o.findPos(u,1),{i:S,off:x}=o.findPos(l,-1);foe(this,S,x,E,O,p,m,g,v)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new Xf(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new Kf(i,[n],n.length);let r=new Vo;return r.append(n,0),r}fixCompositionDOM(t){let n=(o,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let a=_i.get(o);a&&a!=s&&(a.dom=null),s.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&&Hk(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||o))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),u=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(yn.gecko&&a.empty&&!this.hasComposition&&z6e(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=u=new sa(d,0),s=!0}let c=this.view.observer.selectionRange;(s||!c.focusNode||(!DO(l.node,l.offset,c.anchorNode,c.anchorOffset)||!DO(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,a))&&(this.view.observer.ignore(()=>{yn.android&&yn.chrome&&this.dom.contains(c.focusNode)&&Y6e(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=T_(this.view.root);if(d)if(a.empty){if(yn.gecko){let p=H6e(l.node,l.offset);if(p&&p!=3){let m=Boe(l.node,l.offset,p==1?1:-1);m&&(l=new sa(m.node,m.offset))}}d.collapse(l.node,l.offset),a.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=a.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(u.node,u.offset)}catch{}}else{let p=document.createRange();a.anchor>a.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 sa(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new sa(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&DO(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=T_(t.root),{anchorNode:i,anchorOffset:o}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=Vo.find(this,n.head);if(!s)return;let a=s.posAtStart;if(n.head==a||n.head==a+s.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let 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=_i.get(n.childNodes[i]);o instanceof Vo&&(r=o.domAtPos(o.length))}return r?new sa(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=_i.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n=0;s--){let a=this.children[s],l=o-a.breakAfter,u=l-a.length;if(lt||a.covers(1))&&(!r||a instanceof Vo&&!(r instanceof Vo&&n>=0))&&(r=a,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 Vo))return null;for(;i.children.length;){let{i:a,off:l}=i.childPos(r,1);for(;;a++){if(a==i.children.length)return null;if((i=i.children[a]).length)break}r=l}if(!(i instanceof Xf))return null;let o=$s(i.text,r);if(o==r)return null;let s=Tg(i.dom,r,o).getClientRects();for(let a=0;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==Ri.LTR;for(let u=0,c=0;ci)break;if(u>=r){let m=d.dom.getBoundingClientRect();if(n.push(m.height),s){let g=d.dom.lastChild,v=g?BE(g):[];if(v.length){let E=v[v.length-1],O=l?E.right-m.left:m.right-E.left;O>a&&(a=O,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"?Ri.RTL:Ri.LTR}measureTextSize(){for(let o of this.children)if(o instanceof Vo){let s=o.measureTextSize();if(s)return s}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let o=BE(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 doe(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],s=o?o.from-1:this.length;if(s>r){let a=(n.lineBlockAt(s).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(Tn.replace({widget:new zY(a),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!o)break;r=o.to+1}return Tn.set(t)}updateDeco(){let t=this.view.state.facet(jE).map((i,o)=>(this.dynamicDecorationMap[o]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(Poe).map((i,o)=>{let s=typeof i=="function";return s&&(n=!0),s?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Cr.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=$oe(this.view),s={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;S6e(this.view.scrollDOM,s,n.head0)r=r.childNodes[i-1],i=Zf(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 H6e(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function q6e(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(i.length==0)return ht.cursor(t);o==0?n=1:o==i.length&&(n=-1);let s=o,a=o;n<0?s=$s(i.text,o,!1):a=$s(i.text,o);let l=r(i.text.slice(s,a));for(;s>0;){let u=$s(i.text,s,!1);if(r(i.text.slice(u,s))!=l)break;s=u}for(;ae?t.left-e:Math.max(0,e-t.right)}function X6e(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function IN(e,t){return e.topt.top+1}function VY(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function pM(e,t,n){let r,i,o,s,a=!1,l,u,c,d;for(let g=e.firstChild;g;g=g.nextSibling){let v=BE(g);for(let E=0;Ex||s==x&&o>S){r=g,i=O,o=S,s=x;let C=x?n0?E0)}S==0?n>O.bottom&&(!c||c.bottomO.top)&&(u=g,d=O):c&&IN(c,O)?c=HY(c,O.bottom):d&&IN(d,O)&&(d=VY(d,O.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 WY(r,p,n);if(a&&r.contentEditable!="false")return pM(r,p,n);let m=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:m}}function WY(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,s=0;for(let a=0;an?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&d=(c.left+c.right)/2,m=p;if((yn.chrome||yn.gecko)&&Tg(e,a).getBoundingClientRect().left==c.right&&(m=!p),d<=0)return{node:e,offset:a+(m?1:0)};i=a+(m?1:0),o=d}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function Uoe(e,t,n,r=-1){var i,o;let s=e.contentDOM.getBoundingClientRect(),a=s.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:c,y:d}=t,p=d-a;if(p<0)return 0;if(p>u)return e.state.doc.length;for(let C=e.viewState.heightOracle.textHeight/2,I=!1;l=e.elementAtHeight(p),l.type!=Pa.Text;)for(;p=r>0?l.bottom+C:l.top-C,!(p>=0&&p<=u);){if(I)return n?null:0;I=!0,r=-r}d=a+p;let m=l.from;if(me.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:QY(e,s,l,c,d);let g=e.dom.ownerDocument,v=e.root.elementFromPoint?e.root:g,E=v.elementFromPoint(c,d);E&&!e.contentDOM.contains(E)&&(E=null),E||(c=Math.max(s.left+1,Math.min(s.right-1,c)),E=v.elementFromPoint(c,d),E&&!e.contentDOM.contains(E)&&(E=null));let O,S=-1;if(E&&((i=e.docView.nearest(E))===null||i===void 0?void 0:i.isEditable)!=!1){if(g.caretPositionFromPoint){let C=g.caretPositionFromPoint(c,d);C&&({offsetNode:O,offset:S}=C)}else if(g.caretRangeFromPoint){let C=g.caretRangeFromPoint(c,d);C&&({startContainer:O,startOffset:S}=C,(!e.contentDOM.contains(O)||yn.safari&&K6e(O,S,c)||yn.chrome&&J6e(O,S,c))&&(O=void 0))}}if(!O||!e.docView.dom.contains(O)){let C=Vo.find(e.docView,m);if(!C)return p>l.top+l.height/2?l.to:l.from;({node:O,offset:S}=pM(C.dom,c,d))}let x=e.docView.nearest(O);if(!x)return null;if(x.isWidget&&((o=x.dom)===null||o===void 0?void 0:o.nodeType)==1){let C=x.dom.getBoundingClientRect();return t.ye.defaultLineHeight*1.5){let a=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-a)*.5)/a);o+=l*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+JL(s,o,e.state.tabSize)}function K6e(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 Tg(e,r-1,r).getBoundingClientRect().left>n}function J6e(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():Tg(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function hM(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==Pa.Text))return r}return n}function eBe(e,t,n,r){let i=hM(e,t.head),o=!r||i.type!=Pa.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(o){let s=e.dom.getBoundingClientRect(),a=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(a==Ri.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(l!=null)return ht.cursor(l,n?-1:1)}return ht.cursor(n?i.to:i.from,n?-1:1)}function YY(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let a=t,l=null;;){let u=B6e(i,o,s,a,n),c=woe;if(!u){if(i.number==(n?e.state.doc.lines:1))return a;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 a}else{if(!r)return u;l=r(c)}a=u}}function tBe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return o=>{let s=r(o);return i==Hi.Space&&(i=s),i==s}}function nBe(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return ht.cursor(i,t.assoc);let s=t.goalColumn,a,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),c=e.documentTop;if(u)s==null&&(s=u.left-l.left),a=o<0?u.top:u.bottom;else{let m=e.viewState.lineBlockAt(i);s==null&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-m.from))),a=(o<0?m.top:m.bottom)+c}let d=l.left+s,p=r??e.viewState.heightOracle.textHeight>>1;for(let m=0;;m+=10){let g=a+(p+m)*o,v=Uoe(e,{x:d,y:g},!1,o);if(gl.bottom||(o<0?vi)){let E=e.docView.coordsForChar(v),O=!E||g{if(t>o&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:ht.cursor(r,rnull),yn.gecko&&vBe(t.contentDOM.ownerDocument)}handleEvent(t){!dBe(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=iBe(t),r=this.handlers,i=this.view.contentDOM;for(let o in n)if(o!="scroll"){let s=!n[o].handlers.length,a=r[o];a&&s!=!a.handlers.length&&(i.removeEventListener(o,this.handleEvent),a=null),a||i.addEventListener(o,this.handleEvent,{passive:s})}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||oBe.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,Ib(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:yn.safari&&!yn.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 GY(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Pu(n.state,i)}}}function iBe(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 s=i.domEventHandlers[o];s&&n(o).handlers.push(GY(r.value,s))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let s=i.domEventObservers[o];s&&n(o).observers.push(GY(r.value,s))}}for(let r in kc)n(r).handlers.push(kc[r]);for(let r in Cc)n(r).observers.push(Cc[r]);return t}const joe=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],oBe="dthko",zoe=[16,17,18,20,91,92,224,225],wx=6;function xx(e){return Math.max(0,e)*.7+8}function sBe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class aBe{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=T6e(t.contentDOM),this.atoms=t.state.facet(SF).map(s=>s(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(Ar.allowMultipleSelections)&&lBe(t,n),this.dragging=cBe(t,n)&&Qoe(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&&sBe(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},s=$oe(this.view);t.clientX-s.left<=o.left+wx?r=-xx(o.left-t.clientX):t.clientX+s.right>=o.right-wx&&(r=xx(t.clientX-o.right)),t.clientY-s.top<=o.top+wx?i=-xx(o.top-t.clientY):t.clientY+s.bottom>=o.bottom-wx&&(i=xx(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 lBe(e,t){let n=e.state.facet(xoe);return n.length?n[0](t):yn.mac?t.metaKey:t.ctrlKey}function uBe(e,t){let n=e.state.facet(koe);return n.length?n[0](t):yn.mac?!t.altKey:!t.ctrlKey}function cBe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=T_(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}function dBe(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=_i.get(n))&&r.ignoreEvent(t))return!1;return!0}const kc=Object.create(null),Cc=Object.create(null),Voe=yn.ie&&yn.ie_version<15||yn.ios&&yn.webkit_version<604;function fBe(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(),Hoe(e,n.value)},50)}function Hoe(e,t){let{state:n}=e,r,i=1,o=n.toText(t),s=o.lines==n.selection.ranges.length;if(mM!=null&&n.selection.ranges.every(l=>l.empty)&&mM==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((s?o.line(i++).text:t)+n.lineBreak);return{changes:{from:c.from,insert:d},range:ht.cursor(u.from+d.length)}})}else s?r=n.changeByRange(l=>{let u=o.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:ht.cursor(l.from+u.length)}}):r=n.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Cc.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};kc.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);Cc.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Cc.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};kc.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(Coe))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=mBe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new aBe(e,t,n,r)),r&&e.observer.ignore(()=>loe(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function qY(e,t,n,r){if(r==1)return ht.cursor(t,n);if(r==2)return q6e(e.state,t,n);{let i=Vo.find(e.docView,t),o=e.state.doc.lineAt(i?i.posAtEnd:t),s=i?i.posAtStart:o.from,a=i?i.posAtEnd:o.to;return ae>=t.top&&e<=t.bottom,ZY=(e,t,n)=>Woe(t,n)&&e>=n.left&&e<=n.right;function pBe(e,t,n,r){let i=Vo.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 s=i.coordsAt(o,-1);if(s&&ZY(n,r,s))return-1;let a=i.coordsAt(o,1);return a&&ZY(n,r,a)?1:s&&Woe(r,s)?-1:1}function XY(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:pBe(e,n,t.clientX,t.clientY)}}const hBe=yn.ie&&yn.ie_version<=11;let KY=null,JY=0,eG=0;function Qoe(e){if(!hBe)return e.detail;let t=KY,n=eG;return KY=e,eG=Date.now(),JY=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(JY+1)%3:1}function mBe(e,t){let n=XY(e,t),r=Qoe(t),i=e.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),i=i.map(o.changes))},get(o,s,a){let l=XY(e,o),u,c=qY(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){let d=qY(e,n.pos,n.bias,r),p=Math.min(d.from,c.from),m=Math.max(d.to,c.to);c=p1&&(u=gBe(i,l.pos))?u:a?i.addRange(c):ht.create([c])}}}function gBe(e,t){for(let n=0;n=t)return ht.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}kc.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,s=o+i.length;(o>=n.to||s<=n.from)&&(n=ht.range(o,s))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};kc.dragend=e=>(e.inputState.draggedContent=null,!1);function tG(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,s=r&&o&&uBe(e,t)?{from:o.from,to:o.to}:null,a={from:i,insert:n},l=e.state.changes(s?[s,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}kc.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&&tG(e,t,r.filter(s=>s!=null).join(e.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(r[s]=a.result),o()},a.readAsText(n[s])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return tG(e,t,r,!0),!0}return!1};kc.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=Voe?null:t.clipboardData;return n?(Hoe(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(fBe(e),!1)};function bBe(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 yBe(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 s=e.doc.lineAt(o);s.number>i&&(t.push(s.text),n.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let mM=null;kc.copy=kc.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=yBe(e.state);if(!n&&!i)return!1;mM=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=Voe?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(bBe(e,n),!1)};const Yoe=Pc.define();function Goe(e,t){let n=[];for(let r of e.facet(Roe)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Yoe.of(!0)}):null}function qoe(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Goe(e.state,t);n?e.dispatch(n):e.update([])}},10)}Cc.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),qoe(e)};Cc.blur=e=>{e.observer.clearSelectionRange(),qoe(e)};Cc.compositionstart=Cc.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};Cc.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,yn.chrome&&yn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};Cc.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};kc.beforeinput=(e,t)=>{var n;let r;if(yn.chrome&&yn.android&&(r=joe.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 nG=new Set;function vBe(e){nG.has(e)||(nG.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const rG=["pre-wrap","normal","pre-line","break-spaces"];class OBe{constructor(t){this.lineWrapping=t,this.doc=Ur.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 rG.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!=a;if(this.lineWrapping=a,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)>Qk&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return La.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let o=this,s=r.doc;for(let a=i.length-1;a>=0;a--){let{fromA:l,toA:u,fromB:c,toB:d}=i[a],p=o.lineAt(l,Ci.ByPosNoHeight,r.setDoc(n),0,0),m=p.to>=u?p:o.lineAt(u,Ci.ByPosNoHeight,r,0,0);for(d+=m.to-u,u=m.to;a>0&&p.from<=i[a-1].toA;)l=i[a-1].fromA,c=i[a-1].fromB,a--,lo*2){let a=t[n-1];a.break?t.splice(--n,1,a.left,null,a.right):t.splice(--n,1,a.left,a.right),r+=1+a.break,i-=a.size}else if(o>i*2){let a=t[r];a.break?t.splice(r,1,a.left,null,a.right):t.splice(r,1,a.left,a.right),r+=2+a.break,o-=a.size}else break;else if(i=o&&s(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 Rl extends Zoe{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new bd(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof Rl||i instanceof Rs&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Rs?i=new Rl(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):La.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 Rs extends La{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,s,a=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*o);s=l/o,this.length>o+1&&(a=(this.height-l)/(this.length-o-1))}else s=this.height/o;return{firstLine:r,lastLine:i,perLine:s,perChar:a}}blockAt(t,n,r,i){let{firstLine:o,lastLine:s,perLine:a,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=a+c.length*l,p=Math.max(r,t-d/2);return new bd(c.from,c.length,p,d,0)}else{let u=Math.max(0,Math.min(s-o,Math.floor((t-r)/a))),{from:c,length:d}=n.doc.line(o+u);return new bd(c,d,r+a*u,a,0)}}lineAt(t,n,r,i,o){if(n==Ci.ByHeight)return this.blockAt(t,r,i,o);if(n==Ci.ByPosNoHeight){let{from:m,to:g}=r.doc.lineAt(t);return new bd(m,g-m,0,0,0)}let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(r,o),u=r.doc.lineAt(t),c=a+u.length*l,d=u.number-s,p=i+a*d+l*(u.from-o-d);return new bd(u.from,u.length,Math.max(i,Math.min(p,i+this.height-c)),c,0)}forEachLine(t,n,r,i,o,s){t=Math.max(t,o),n=Math.min(n,o+this.length);let{firstLine:a,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 g=p.number-a;d+=l*g+u*(t-o-g)}let m=l+u*p.length;s(new bd(p.from,p.length,d,m,0)),d+=m,c=p.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let o=r[r.length-1];o instanceof Rs?r[r.length-1]=new Rs(o.length+i):r.push(null,new Rs(i-1))}if(t>0){let o=r[0];o instanceof Rs?r[0]=new Rs(t+o.length):r.unshift(new Rs(t-1),null)}return La.of(r)}decomposeLeft(t,n){n.push(new Rs(t-1),null)}decomposeRight(t,n){n.push(null,new Rs(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 s=[],a=Math.max(n,i.from),l=-1;for(i.from>n&&s.push(new Rs(i.from-n-1).updateHeight(t,n));a<=o&&i.more;){let c=t.doc.lineAt(a).length;s.length&&s.push(null);let d=i.heights[i.index++];l==-1?l=d:Math.abs(d-l)>=Qk&&(l=-2);let p=new Rl(c,d);p.outdated=!1,s.push(p),a+=c+1}a<=o&&s.push(null,new Rs(o-a).updateHeight(t,a));let u=La.of(s);return(l<0||Math.abs(u.height-this.height)>=Qk||Math.abs(l-this.heightMetrics(t,n).perLine)>=Qk)&&(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 SBe extends La{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 ta))return u;let c=n==Ci.ByPosNoHeight?Ci.ByPosNoHeight:Ci.ByPos;return l?u.join(this.right.lineAt(a,c,r,s,a)):this.left.lineAt(a,c,r,i,o).join(u)}forEachLine(t,n,r,i,o,s){let a=i+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,a,l,s);else{let u=this.lineAt(l,Ci.ByPos,r,i,o);t=t&&u.from<=n&&s(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,a,l,s)}}replace(t,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let o=[];t>0&&this.decomposeLeft(t,o);let s=o.length;for(let a of r)o.push(a);if(t>0&&iG(o,s-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t2*n.size||n.size>2*t.size?La.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:s}=this,a=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<=a+s.length&&i.more?l=s=s.updateHeight(t,a,r,i):s.updateHeight(t,a,r),l?this.balanced(o,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function iG(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Rs&&(r=e[t+1])instanceof Rs&&e.splice(t-1,3,new Rs(n.length+1+r.length))}const TBe=5;class TF{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 Rl?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Rl(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=TBe)&&this.addLineDeco(i,o,s)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new Rl(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Rs(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 Rl)return t;let n=new Rl(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 Rl)&&!this.isCovered?this.nodes.push(new Rl(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&d.overflow!="visible"){let p=c.getBoundingClientRect();o=Math.max(o,p.left),s=Math.min(s,p.right),a=Math.max(a,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,s)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function CBe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class NN{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 OBe(n),this.stateDeco=t.facet(jE).filter(r=>typeof r!="function"),this.heightMap=La.empty().applyChanges(this.stateDeco,Ur.empty,this.heightOracle.setDoc(t.doc),[new Lu(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Tn.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:s})=>i>=o&&i<=s)){let{from:o,to:s}=this.lineBlockAt(i);t.push(new kx(o,s))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?sG:new IBe(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:rO(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(jE).filter(c=>typeof c!="function");let i=t.changedRanges,o=Lu.extendWithRanges(i,wBe(r,this.stateDeco,t?t.changes:Wo.empty(this.state.doc.length))),s=this.heightMap.height,a=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!=s&&(t.flags|=2),a?(this.scrollAnchorPos=t.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.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(Doe)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,o=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Ri.RTL:Ri.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=n.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let u=0,c=0;if(a.width&&a.height){let{scaleX:C,scaleY:I}=aoe(n,a);(this.scaleX!=C||this.scaleY!=I)&&(this.scaleX=C,this.scaleY=I,u|=8,s=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 m=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=m&&(this.scrollAnchorHeight=-1,this.scrollTop=m),this.scrolledToBottom=coe(t.scrollDOM);let g=(this.printing?CBe:kBe)(n,this.paddingTop),v=g.top-this.pixelViewport.top,E=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let S=a.width;if((this.contentDOMWidth!=S||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let C=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(C)&&(s=!0),s||i.lineWrapping&&Math.abs(S-this.contentDOMWidth)>i.charWidth){let{lineHeight:I,charWidth:_,textHeight:w}=t.docView.measureTextSize();s=I>0&&i.refresh(o,I,_,w,S/_,C),s&&(t.docView.minWidth=0,u|=8)}v>0&&E>0?c=Math.max(v,E):v<0&&E<0&&(c=Math.min(v,E)),i.heightChanged=!1;for(let I of this.viewports){let _=I.from==this.viewport.from?C:t.docView.measureVisibleLineHeights(I);this.heightMap=(s?La.empty().applyChanges(this.stateDeco,Ur.empty,this.heightOracle,[new Lu(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new EBe(I.from,_))}i.heightChanged&&(u|=2)}let x=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return x&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||x)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,o=this.heightOracle,{visibleTop:s,visibleBottom:a}=this,l=new kx(i.lineAt(s-r*1e3,Ci.ByHeight,o,0,0).from,i.lineAt(a+(1-r)*1e3,Ci.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,Ci.ByPos,o,0,0),p;n.y=="center"?p=(d.top+d.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u=a+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&o>1,s=i<<1;if(this.defaultTextDirection!=Ri.LTR&&!r)return[];let a=[],l=(u,c,d,p)=>{if(c-uu&&EE.from>=d.from&&E.to<=d.to&&Math.abs(E.from-u)E.fromO));if(!v){if(cE.from<=c&&E.to>=c)){let E=n.moveToLineBoundary(ht.cursor(c),!1,!0).head;E>u&&(c=E)}v=new NN(u,c,this.gapSize(d,u,c,p))}a.push(v)};for(let u of this.viewportLines){if(u.lengthu.from&&l(u.from,p,u,c),mn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Cr.spans(t,this.viewport.from,this.viewport.to,{span(i,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)||rO(this.heightMap.lineAt(t,Ci.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return rO(this.heightMap.lineAt(this.scaler.fromDOM(t),Ci.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 rO(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 kx{constructor(t,n){this.from=t,this.to=n}}function ABe(e,t,n){let r=[],i=e,o=0;return Cr.spans(n,e,t,{span(){},point(s,a){s>i&&(r.push({from:i,to:s}),o+=s-i),i=a}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:o,to:s}=t[i],a=s-o;if(r<=a)return o+r;r-=a}}function _x(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 RBe(e,t){for(let n of e)if(t(n))return n}const sG={toDOM(e){return e},fromDOM(e){return e},scale:1};class IBe{constructor(t,n,r){let i=0,o=0,s=0;this.viewports=r.map(({from:a,to:l})=>{let u=n.lineAt(a,Ci.ByPos,t,0,0).top,c=n.lineAt(l,Ci.ByPos,t,0,0).bottom;return i+=c-u,{from:a,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let a of this.viewports)a.domTop=s+(a.top-o)*this.scale,s=a.domBottom=a.domTop+(a.bottom-a.top),o=a.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let o=nrO(i,t)):e._content)}const Ax=hn.define({combine:e=>e.join(" ")}),gM=hn.define({combine:e=>e.indexOf(!0)>-1}),bM=Bh.newName(),Xoe=Bh.newName(),Koe=Bh.newName(),Joe={"&light":"."+Xoe,"&dark":"."+Koe};function yM(e,t,n){return new Bh(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 DBe=yM("."+bM,{"&":{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"}},Joe),iO="￿";class NBe{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Ar.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=iO}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 s=i.nextSibling;if(s==n)break;let a=_i.get(i),l=_i.get(s);(a&&l?a.breakAfter:(a?a.breakAfter:aG(i))||aG(s)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>o)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,s=1,a;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,r),s=this.lineSeparator.length):(a=i.exec(n))&&(o=a.index,s=a[0].length),this.append(n.slice(r,o<0?n.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);r=o+s}}readNode(t){if(t.cmIgnore)return;let n=_i.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+(PBe(t,r.node,r.offset)?n:0))}}function PBe(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let a=o||s?[]:FBe(t),l=new NBe(a,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=BBe(a,this.bounds.from)}else{let a=t.observer.selectionRange,l=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!nM(t.contentDOM,a.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(a.focusNode,a.focusOffset),u=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!nM(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset),c=t.viewport;if(yn.ios&&t.state.selection.main.empty&&l!=u&&(c.from>0||c.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:a}=t.bounds,l=i.from,u=null;(o===8||yn.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))}:(yn.mac||yn.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=ht.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ur.of([" "])}):yn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=ht.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ur.of([" "])}),n){if(yn.ios&&e.inputState.flushIOSKey()||yn.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&Ib(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||o==8&&n.insert.lengthi.head)&&Ib(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&Ib(e.contentDOM,"Delete",46)))return!0;let s=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let a,l=()=>a||(a=MBe(e,n,r));return e.state.facet(Aoe).some(u=>u(e,n.from,n.to,s,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let s=!1,a="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),a=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:s,userEvent:a}),!0}else return!1}function MBe(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 a=o.fromt.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(a+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let a=i.changes(t),l=n&&n.main.to<=a.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&&Foe(e,n.main.head);if(d){let g=t.insert.length-(t.to-t.from);c={from:d.from,to:d.to-g}}else c=e.state.doc.lineAt(o.head);let p=o.to-t.to,m=o.to-o.from;r=i.changeByRange(g=>{if(g.from==o.from&&g.to==o.to)return{changes:a,range:l||g.map(a)};let v=g.to-p,E=v-u.length;if(g.to-g.from!=m||e.state.sliceDoc(E,v)!=u||g.to>=c.from&&g.from<=c.to)return{range:g};let O=i.changes({from:E,to:v,insert:t.insert}),S=g.to-o.to;return{changes:O,range:l?ht.range(Math.max(0,l.anchor+S),Math.max(0,l.head+S)):g.map(O)}})}else r={changes:a,selection:l&&i.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function $Be(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if(r=="end"){let l=Math.max(0,o-Math.min(s,a));n-=s+l-o}if(s=s?o-n:0;o-=l,a=o+(a-s),s=o}else if(a=a?o-n:0;o-=l,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function FBe(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 lG(n,r)),(i!=n||o!=r)&&t.push(new lG(i,o))),t}function BBe(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?ht.single(n+t,r+t):null}const UBe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},PN=yn.ie&&yn.ie_version<=11;class jBe{constructor(t){this.view=t,this.active=!1,this.selectionRange=new w6e,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);(yn.ie&&yn.ie_version<=11||yn.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()}),PN&&(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(nR)?r.root.activeElement!=this.dom:!Hk(r.dom,i))return;let o=i.anchorNode&&r.docView.nearest(i.anchorNode);if(o&&o.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(yn.ie&&yn.ie_version<=11||yn.android&&yn.chrome)&&!r.state.selection.main.empty&&i.focusNode&&DO(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=yn.safari&&t.root.nodeType==11&&O6e(this.dom.ownerDocument)==this.dom&&zBe(this.view)||T_(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=Hk(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&&Ib(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 s=this.readMutation(o);s&&(s.typeOver&&(i=!0),n==-1?{from:n,to:r}=s:(n=Math.min(s.from,n),r=Math.max(s.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&Hk(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 LBe(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=ese(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=uG(n,t.previousSibling||t.target.previousSibling,-1),i=uG(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 uG(e,t,n){for(;t;){let r=_i.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 zBe(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,s=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return DO(a.node,a.offset,o,s)&&([r,i,o,s]=[o,s,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s}}class un{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||x6e(t.parent)||document,this.viewState=new oG(t.state||Ar.create(t)),t.scrollTo&&t.scrollTo.is(Tx)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(tO).map(r=>new RN(r));for(let r of this.plugins)r.update(this);this.observer=new jBe(this),this.inputState=new rBe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new jY(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof gs?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 s=this.hasFocus,a=0,l=null;t.some(p=>p.annotation(Yoe))?(this.inputState.notifiedFocused=s,a=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=Goe(o,s),l||(a=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(Ar.phrases)!=this.state.facet(Ar.phrases))return this.setState(o);i=w_.create(this,o,t),i.flags|=a;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:m}=p.state.selection;d=new Db(m.empty?m:ht.cursor(m.head,m.head>m.anchor?-1:1))}for(let m of p.effects)m.is(Tx)&&(d=m.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=x_.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(nO)!=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(Ax)!=i.state.facet(Ax)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let p of this.state.facet(fM))try{p(i)}catch(m){Pu(this.state,m,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!ese(this,c)&&u.force&&Ib(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 oG(t),this.plugins=t.facet(tO).map(r=>new RN(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new jY(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(tO),r=t.state.facet(tO);if(n!=r){let i=[];for(let o of r){let s=n.indexOf(o);if(s<0)i.push(new RN(o));else{let a=this.plugins[s];a.mustUpdate=t,i.push(a)}}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:s}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(s<0)if(coe(r))o=-1,s=this.viewState.heightMap.height;else{let m=this.viewState.scrollAnchorAt(i);o=m.from,s=m.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>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(m=>{try{return m.read(this)}catch(g){return Pu(this.state,g),cG}}),d=w_.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 m=0;m1||g<-1){i=i+g,r.scrollTop=i/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let a of this.state.facet(fM))a(n)}get themeClasses(){return bM+" "+(this.state.facet(gM)?Koe:Xoe)+" "+this.state.facet(Ax)}updateAttrs(){let t=dG(this,Noe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(nR)?"true":"false",class:"cm-content",style:`${yn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),dG(this,EF,n);let r=this.observer.ignore(()=>{let i=aM(this.contentDOM,this.contentAttrs,n),o=aM(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(un.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(nO);let t=this.state.facet(un.cspNonce);Bh.mount(this.root,this.styleModules.concat(DBe).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 DN(this,t,YY(this,t,n,r))}moveByGroup(t,n){return DN(this,t,YY(this,t,n,r=>tBe(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 ht.cursor(o.side(n,i)+t.from,o.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return eBe(this,t,n,r)}moveVertically(t,n,r){return DN(this,t,nBe(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(),Uoe(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),s=o[uh.find(o,t-i.from,-1,n)];return bF(r,s.dir==Ri.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(Ioe)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>VBe)return Toe(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||Soe(o.isolates,r=UY(this,t))))return o.order;r||(r=UY(this,t));let i=F6e(t.text,n,r);return this.bidiCache.push(new x_(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||yn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{loe(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 Tx.of(new Db(typeof t=="number"?ht.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return Tx.of(new Db(ht.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return Wi.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Wi.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=Bh.newName(),i=[Ax.of(r),nO.of(yM(`.${r}`,t))];return n&&n.dark&&i.push(gM.of(!0)),i}static baseTheme(t){return em.lowest(nO.of(yM("."+bM,t,Joe)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&_i.get(r)||_i.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}un.styleModule=nO;un.inputHandler=Aoe;un.focusChangeEffect=Roe;un.perLineTextDirection=Ioe;un.exceptionSink=_oe;un.updateListener=fM;un.editable=nR;un.mouseSelectionStyle=Coe;un.dragMovesSelection=koe;un.clickAddsSelectionRange=xoe;un.decorations=jE;un.outerDecorations=Poe;un.atomicRanges=SF;un.bidiIsolatedRanges=Loe;un.scrollMargins=Moe;un.darkTheme=gM;un.cspNonce=hn.define({combine:e=>e.length?e[0]:""});un.contentAttributes=EF;un.editorAttributes=Noe;un.lineWrapping=un.contentAttributes.of({class:"cm-lineWrapping"});un.announce=rr.define();const VBe=4096,cG={};class x_{constructor(t,n,r,i,o,s){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=o,this.order=s}static update(t,n){if(n.empty&&!t.some(o=>o.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:Ri.LTR;for(let o=Math.max(0,t.length-10);o=0;i--){let o=r[i],s=typeof o=="function"?o(e):o;s&&sM(s,n)}return n}const HBe=yn.mac?"mac":yn.windows?"win":yn.linux?"linux":"key";function WBe(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,o,s,a;for(let l=0;lr.concat(i),[]))),n}function YBe(e,t,n){return nse(tse(e.state),t,e,n)}let Yp=null;const GBe=4e3;function qBe(e,t=HBe){let n=Object.create(null),r=Object.create(null),i=(s,a)=>{let l=r[s];if(l==null)r[s]=a;else if(l!=a)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},o=(s,a,l,u,c)=>{var d,p;let m=n[s]||(n[s]=Object.create(null)),g=a.split(/ (?!$)/).map(O=>WBe(O,t));for(let O=1;O{let C=Yp={view:x,prefix:S,scope:s};return setTimeout(()=>{Yp==C&&(Yp=null)},GBe),!0}]})}let v=g.join(" ");i(v,!1);let E=m[v]||(m[v]={preventDefault:!1,stopPropagation:!1,run:((p=(d=m._any)===null||d===void 0?void 0:d.run)===null||p===void 0?void 0:p.slice())||[]});l&&E.run.push(l),u&&(E.preventDefault=!0),c&&(E.stopPropagation=!0)};for(let s of e){let a=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let u of a){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(s.any)}let l=s[t]||s.key;if(l)for(let u of a)o(u,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&o(u,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return n}function nse(e,t,n,r){let i=v6e(t),o=Ds(i,0),s=wu(o)==i.length&&i!=" ",a="",l=!1,u=!1,c=!1;Yp&&Yp.view==n&&Yp.scope==r&&(a=Yp.prefix+" ",zoe.indexOf(t.keyCode)<0&&(u=!0,Yp=null));let d=new Set,p=E=>{if(E){for(let O of E.run)if(!d.has(O)&&(d.add(O),O(n,t)))return E.stopPropagation&&(c=!0),!0;E.preventDefault&&(E.stopPropagation&&(c=!0),u=!0)}return!1},m=e[r],g,v;return m&&(p(m[a+Rx(i,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(yn.windows&&t.ctrlKey&&t.altKey)&&(g=Uh[t.keyCode])&&g!=i?(p(m[a+Rx(g,t,!0)])||t.shiftKey&&(v=FE[t.keyCode])!=i&&v!=g&&p(m[a+Rx(v,t,!1)]))&&(l=!0):s&&t.shiftKey&&p(m[a+Rx(i,t,!0)])&&(l=!0),!l&&p(m._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),l}class uT{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=rse(t);return[new uT(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return ZBe(t,n,r)}}function rse(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Ri.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function pG(e,t,n){let r=ht.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:Pa.Text}}function ZBe(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==Ri.LTR,s=e.contentDOM,a=s.getBoundingClientRect(),l=rse(e),u=s.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),d=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),p=a.right-(c?parseInt(c.paddingRight):0),m=hM(e,r),g=hM(e,i),v=m.type==Pa.Text?m:null,E=g.type==Pa.Text?g:null;if(v&&(e.lineWrapping||m.widgetLineBreaks)&&(v=pG(e,r,v)),E&&(e.lineWrapping||g.widgetLineBreaks)&&(E=pG(e,i,E)),v&&E&&v.from==E.from)return S(x(n.from,n.to,v));{let I=v?x(n.from,null,v):C(m,!1),_=E?x(null,n.to,E):C(g,!0),w=[];return(v||m).to<(E||g).from-(v&&E?1:0)||m.widgetLineBreaks>1&&I.bottom+e.defaultLineHeight/2<_.top?w.push(O(d,I.bottom,p,_.top)):I.bottom<_.top&&e.elementAtHeight((I.bottom+_.top)/2).type==Pa.Text&&(I.bottom=_.top=(I.bottom+_.top)/2),S(I).concat(w).concat(S(_))}function O(I,_,w,F){return new uT(t,I-l.left,_-l.top-.01,w-I,F-_+.01)}function S({top:I,bottom:_,horizontal:w}){let F=[];for(let M=0;MH&&j.from=X)break;Q>z&&W(Math.max(ee,z),I==null&&ee<=H,Math.min(Q,X),_==null&&Q>=q,G.dir)}if(z=Z.to+1,z>=X)break}return L.length==0&&W(H,I==null,q,_==null,e.textDirection),{top:F,bottom:M,horizontal:L}}function C(I,_){let w=a.top+(_?I.top:I.bottom);return{top:w,bottom:w,horizontal:[]}}}function XBe(e,t){return e.constructor==t.constructor&&e.eq(t)}class KBe{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(Yk)!=t.state.facet(Yk)&&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(Yk);for(;n!XBe(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 Yk=hn.define();function ise(e){return[Wi.define(t=>new KBe(t,e)),Yk.of(e)]}const ose=!yn.ios,zE=hn.define({combine(e){return zd(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function JBe(e={}){return[zE.of(e),e8e,t8e,n8e,Doe.of(!0)]}function sse(e){return e.startState.facet(zE)!=e.state.facet(zE)}const e8e=ise({above:!0,markers(e){let{state:t}=e,n=t.facet(zE),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty?!o||ose:n.drawRangeCursor){let s=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=i.empty?i:ht.cursor(i.head,i.head>i.anchor?-1:1);for(let l of uT.forRange(e,s,a))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=sse(e);return n&&hG(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){hG(t.state,e)},class:"cm-cursorLayer"});function hG(e,t){t.style.animationDuration=e.facet(zE).cursorBlinkRate+"ms"}const t8e=ise({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:uT.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||sse(e)},class:"cm-selectionLayer"}),vM={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};ose&&(vM[".cm-line"].caretColor="transparent !important",vM[".cm-content"]={caretColor:"transparent !important"});const n8e=em.highest(un.theme(vM)),ase=rr.define({map(e,t){return e==null?null:t.mapPos(e)}}),oO=vs.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(ase)?r.value:n,e)}}),r8e=Wi.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(oO);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(oO)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(oO),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(oO)!=e&&this.view.dispatch({effects:ase.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 i8e(){return[oO,r8e]}function mG(e,t,n,r,i){t.lastIndex=0;for(let o=e.iterRange(n,r),s=n,a;!o.next().done;s+=o.value.length)if(!o.lineBreak)for(;a=t.exec(o.value);)i(s+a.index,a)}function o8e(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 s8e{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:o,maxLength:s=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(a,l,u,c)=>i(c,u,u+a[0].length,a,l);else if(typeof r=="function")this.addMatch=(a,l,u,c)=>{let d=r(a,l,u);d&&c(u,u+a[0].length,d)};else if(r)this.addMatch=(a,l,u,c)=>c(u,u+a[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=s}createDeco(t){let n=new Fh,r=n.add.bind(n);for(let{from:i,to:o}of o8e(t,this.maxLength))mG(t.state.doc,this.regexp,i,o,(s,a)=>this.addMatch(a,t,s,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((o,s,a,l)=>{l>t.view.viewport.from&&a1e3?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 s=Math.max(o.from,r),a=Math.min(o.to,i);if(a>s){let l=t.state.doc.lineAt(s),u=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){c=s;break}for(;ap.push(O.range(v,E));if(l==u)for(this.regexp.lastIndex=c-l.from;(m=this.regexp.exec(l.text))&&m.indexthis.addMatch(E,t,v,g));n=n.update({filterFrom:c,filterTo:d,filter:(v,E)=>vd,add:p})}}return n}}const OM=/x/.unicode!=null?"gu":"g",a8e=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,OM),l8e={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 LN=null;function u8e(){var e;if(LN==null&&typeof document<"u"&&document.body){let t=document.body.style;LN=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return LN||!1}const Gk=hn.define({combine(e){let t=zd(e,{render:null,specialChars:a8e,addSpecialChars:null});return(t.replaceTabs=!u8e())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,OM)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,OM)),t}});function c8e(e={}){return[Gk.of(e),d8e()]}let gG=null;function d8e(){return gG||(gG=Wi.fromClass(class{constructor(e){this.view=e,this.decorations=Tn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Gk)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new s8e({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=Ds(t[0],0);if(o==9){let s=i.lineAt(r),a=n.state.tabSize,l=xc(s.text,a,r-s.from);return Tn.replace({widget:new m8e((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=Tn.replace({widget:new h8e(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Gk);e.startState.facet(Gk)!=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 f8e="•";function p8e(e){return e>=32?f8e:e==10?"␤":String.fromCharCode(9216+e)}class h8e extends Lc{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=p8e(this.code),r=t.state.phrase("Control character")+" "+(l8e[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 m8e extends Lc{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 g8e(){return y8e}const b8e=Tn.line({class:"cm-activeLine"}),y8e=Wi.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(b8e.range(i.from)),t=i.from)}return Tn.set(n)}},{decorations:e=>e.decorations}),EM=2e3;function v8e(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>EM||n.off>EM||t.col<0||n.col<0){let s=Math.min(t.off,n.off),a=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=a&&o.push(ht.range(u.from+s,u.to+a))}}else{let s=Math.min(t.col,n.col),a=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),c=JL(u.text,s,e.tabSize,!0);if(c<0)o.push(ht.cursor(u.to));else{let d=JL(u.text,a,e.tabSize);o.push(ht.range(u.from+c,u.from+d))}}}return o}function O8e(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function bG(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>EM?-1:i==r.length?O8e(e,t.clientX):xc(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function E8e(e,t){let n=bG(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),s=i.state.doc.lineAt(o);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},r=r.map(i.changes)}},get(i,o,s){let a=bG(e,i);if(!a)return r;let l=v8e(e.state,n,a);return l.length?s?ht.create(l.concat(r.ranges)):ht.create(l):r}}:null}function S8e(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return un.mouseSelectionStyle.of((n,r)=>t(r)?E8e(n,r):null)}const T8e={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},w8e={style:"cursor: crosshair"};function x8e(e={}){let[t,n]=T8e[e.key||"Alt"],r=Wi.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,un.contentAttributes.of(i=>{var o;return!((o=i.plugin(r))===null||o===void 0)&&o.isDown?w8e:null})]}const wv="-10000px";class lse{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(o=>o),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 s=[],a=n?[]:null;for(let l=0;ln[u]=l),n.length=a.length),this.input=i,this.tooltips=o,this.tooltipViews=s,!0}}function k8e(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const MN=hn.define({combine:e=>{var t,n,r;return{position:yn.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)||k8e}}}),yG=new WeakMap,wF=Wi.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(MN);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new lse(e,xF,n=>this.createTooltip(n),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(MN);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=wv,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(yn.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==wv&&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 s=this.manager.tooltipViews[o];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(MN).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=e,s=[];for(let a=0;a=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1){c.style.top=wv;continue}let m=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,g=m?7:0,v=p.right-p.left,E=(t=yG.get(u))!==null&&t!==void 0?t:p.bottom-p.top,O=u.offset||_8e,S=this.view.textDirection==Ri.LTR,x=p.width>r.right-r.left?S?r.left:r.right-p.width:S?Math.min(d.left-(m?14:0)+O.x,r.right-v):Math.max(r.left,d.left-v+(m?14:0)-O.x),C=this.above[a];!l.strictSide&&(C?d.top-(p.bottom-p.top)-O.yr.bottom)&&C==r.bottom-d.bottom>d.top-r.top&&(C=this.above[a]=!C);let I=(C?d.top-r.top:r.bottom-d.bottom)-g;if(Ix&&F.top<_+E&&F.bottom>_&&(_=C?F.top-E-2-g:F.bottom+g+2);if(this.position=="absolute"?(c.style.top=(_-e.parent.top)/o+"px",c.style.left=(x-e.parent.left)/i+"px"):(c.style.top=_/o+"px",c.style.left=x/i+"px"),m){let F=d.left+(S?O.x:-O.x)-(x+14-7);m.style.left=F/i+"px"}u.overlap!==!0&&s.push({left:x,top:_,right:w,bottom:_+E}),c.classList.toggle("cm-tooltip-above",C),c.classList.toggle("cm-tooltip-below",!C),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=wv}},{eventObservers:{scroll(){this.maybeMeasure()}}}),C8e=un.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"}}}),_8e={x:0,y:0},xF=hn.define({enables:[wF,C8e]}),k_=hn.define();class rR{static create(t){return new rR(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new lse(t,k_,n=>this.createHostedView(n),n=>n.dom.remove())}createHostedView(t){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}passProp(t){let n;for(let r of this.manager.tooltipViews){let i=r[t];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const A8e=xF.compute([k_],e=>{let t=e.facet(k_).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:rR.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class R8e{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;ta.bottom||n.xa.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==Ri.RTL?-1:1;o=n.x{this.pending==a&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>Pu(t.state,l,"hover tooltip"))}else s&&t.dispatch({effects:this.setHover.of(s)})}get tooltip(){let t=this.view.plugin(wF),n=t?t.manager.tooltips.findIndex(r=>r.create==rR.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&&!I8e(i.dom,t)||this.pending){let{pos:o}=r||this.pending,s=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:o;(o==s?this.view.posAtCoords(this.lastMove)!=o:!D8e(this.view,o,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Ix=4;function I8e(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-Ix&&t.clientX<=n.right+Ix&&t.clientY>=n.top-Ix&&t.clientY<=n.bottom+Ix}function D8e(e,t,n,r,i,o){let s=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.righti||Math.min(s.bottom,a)=t&&l<=n}function N8e(e,t={}){let n=rr.define(),r=vs.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 s=o.changes.mapPos(i.pos,-1,Ps.TrackDel);if(s==null)return null;let a=Object.assign(Object.create(null),i);a.pos=s,i.end!=null&&(a.end=o.changes.mapPos(i.end)),i=a}for(let s of o.effects)s.is(n)&&(i=s.value),s.is(P8e)&&(i=null);return i},provide:i=>k_.from(i)});return[r,Wi.define(i=>new R8e(i,e,r,n,t.hoverTime||300)),A8e]}function use(e,t){let n=e.plugin(wF);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const P8e=rr.define(),vG=hn.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 VE(e,t){let n=e.plugin(cse),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const cse=Wi.fromClass(class{constructor(e){this.input=e.state.facet(HE),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(vG);this.top=new Dx(e,!0,t.topContainer),this.bottom=new Dx(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(vG);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Dx(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Dx(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(HE);if(n!=this.input){let r=n.filter(l=>l),i=[],o=[],s=[],a=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(e.view),a.push(c)):(c=this.panels[u],c.update&&c.update(e)),i.push(c),(c.top?o:s).push(c)}this.specs=r,this.panels=i,this.top.sync(o),this.bottom.sync(s);for(let l of a)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=>un.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Dx{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=OG(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=OG(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 OG(e){let t=e.nextSibling;return e.remove(),t}const HE=hn.define({enables:cse});class Jf extends Sg{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Jf.prototype.elementClass="";Jf.prototype.toDOM=void 0;Jf.prototype.mapMode=Ps.TrackBefore;Jf.prototype.startSide=Jf.prototype.endSide=-1;Jf.prototype.point=!0;const qk=hn.define(),L8e={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Cr.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},PO=hn.define();function M8e(e){return[dse(),PO.of(Object.assign(Object.assign({},L8e),e))]}const SM=hn.define({combine:e=>e.some(t=>t)});function dse(e){let t=[$8e];return e&&e.fixed===!1&&t.push(SM.of(!0)),t}const $8e=Wi.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(PO).map(t=>new SG(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(SM),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(SM)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=Cr.iter(this.view.state.facet(qk),this.view.viewport.from),r=[],i=this.gutters.map(o=>new F8e(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(o.type)){let s=!0;for(let a of o.type)if(a.type==Pa.Text&&s){TM(n,r,a.from);for(let l of i)l.line(this.view,a,r);s=!1}else if(a.widget)for(let l of i)l.widget(this.view,a)}else if(o.type==Pa.Text){TM(n,r,o.from);for(let s of i)s.line(this.view,o,r)}else if(o.widget)for(let s of i)s.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(PO),n=e.state.facet(PO),r=e.docChanged||e.heightChanged||e.viewportChanged||!Cr.eq(e.startState.facet(qk),e.state.facet(qk),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 s=t.indexOf(o);s<0?i.push(new SG(this.view,o)):(this.gutters[s].update(e),i.push(this.gutters[s]))}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=>un.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==Ri.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function EG(e){return Array.isArray(e)?e:[e]}function TM(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class F8e{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Cr.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,o=(n.top-this.height)/t.scaleY,s=n.height/t.scaleY;if(this.i==i.elements.length){let a=new fse(t,s,o,r);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(t,s,o,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];TM(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 s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class SG{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,s;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=i.clientY;let a=t.lineBlockAtHeight(s-t.documentTop);n.domEventHandlers[r](t,a,i)&&i.preventDefault()});this.markers=EG(n.markers(t)),n.initialSpacer&&(this.spacer=new fse(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=EG(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let r=t.view.viewport;return!Cr.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class fse{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":""),B8e(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let o=0,s=0;;){let a=s,l=oo(a,l,u)||s(a,l,u):s}return r}})}});class $N extends Jf{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function FN(e,t){return e.state.facet(cb).formatNumber(t,e.state)}const j8e=PO.compute([cb],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(U8e)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new $N(FN(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(cb)!=t.state.facet(cb),initialSpacer(t){return new $N(FN(t,TG(t.state.doc.lines)))},updateSpacer(t,n){let r=FN(n.view,TG(n.view.state.doc.lines));return r==t.number?t:new $N(r)},domEventHandlers:e.facet(cb).domEventHandlers}));function z8e(e={}){return[cb.of(e),dse(),j8e]}function TG(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(V8e.range(i)))}return Cr.of(t)});function W8e(){return H8e}const pse=1024;let Q8e=0;class ku{constructor(t,n){this.from=t,this.to=n}}class Gn{constructor(t={}){this.id=Q8e++,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=Ko.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Gn.closedBy=new Gn({deserialize:e=>e.split(" ")});Gn.openedBy=new Gn({deserialize:e=>e.split(" ")});Gn.group=new Gn({deserialize:e=>e.split(" ")});Gn.isolate=new Gn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Gn.contextHash=new Gn({perNode:!0});Gn.lookAhead=new Gn({perNode:!0});Gn.mounted=new Gn({perNode:!0});class WE{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Gn.mounted.id]}}const Y8e=Object.create(null);class Ko{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):Y8e,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new Ko(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(Gn.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(Gn.group),o=-1;o<(i?i.length:0);o++){let s=n[o<0?r.name:i[o]];if(s)return s}}}}Ko.none=new Ko("",Object.create(null),0,8);class cT{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(s|yi.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(a||!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:_F(Ko.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new Xr(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new Xr(Ko.none,n,r,i)))}static build(t){return X8e(t)}}Xr.empty=new Xr(Ko.none,[],[],0);class kF{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 kF(this.buffer,this.index)}}class zh{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return Ko.none}toString(){let t=[];for(let n=0;n0));l=s[l+3]);return a}slice(t,n,r){let i=this.buffer,o=new Uint16Array(n-t),s=0;for(let a=t,l=0;a=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function QE(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?a.length:-1;t!=u;t+=n){let c=a[t],d=l[t]+s.from;if(hse(i,r,d,d+c.length)){if(c instanceof zh){if(o&yi.ExcludeBuffers)continue;let p=c.findChild(0,c.buffer.length,n,r-d,i);if(p>-1)return new Sd(new G8e(s,c,t,d),null,p)}else if(o&yi.IncludeAnonymous||!c.type.isAnonymous||CF(c)){let p;if(!(o&yi.IgnoreMounts)&&(p=WE.get(c))&&!p.overlay)return new ua(p.tree,d,t,s);let m=new ua(c,d,t,s);return o&yi.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(o&yi.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&yi.IgnoreOverlays)&&(i=WE.get(this._tree))&&i.overlay){let o=t-this.from;for(let{from:s,to:a}of i.overlay)if((n>0?s<=o:s=o:a>o))return new ua(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 xG(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function wM(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 G8e{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Sd extends mse{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 Sd(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&yi.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 Sd(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 Sd(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 Sd(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 s=r.buffer[this.index+1];t.push(r.slice(i,o,s)),n.push(0)}return new Xr(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function gse(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;on.from||s.to=t){let a=new ua(s.tree,s.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(QE(a,t,n,!1))}}return i?gse(i):r}class C_{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 ua)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 ua?(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&yi.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&yi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&yi.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,s=t<0?-1:r._tree.children.length;o!=s;o+=t){let a=r._tree.children[o];if(this.mode&yi.IncludeAnonymous||a instanceof zh||!a.type.isAnonymous||CF(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=o+1;break e}i=this.stack[--o]}for(let i=r;i=0;o--){if(o<0)return wM(this.node,t,i);let s=r[n.buffer[this.stack[o]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function CF(e){return e.children.some(t=>t instanceof zh||!t.type.isAnonymous||CF(t))}function X8e(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=pse,reused:o=[],minRepeatType:s=r.types.length}=e,a=Array.isArray(n)?new kF(n,n.length):n,l=r.types,u=0,c=0;function d(I,_,w,F,M,L){let{id:W,start:H,end:q,size:j}=a,z=c;for(;j<0;)if(a.next(),j==-1){let Q=o[W];w.push(Q),F.push(H-I);return}else if(j==-3){u=W;return}else if(j==-4){c=W;return}else throw new RangeError(`Unrecognized record size: ${j}`);let X=l[W],Z,G,ee=H-I;if(q-H<=i&&(G=E(a.pos-_,M))){let Q=new Uint16Array(G.size-G.skip),ae=a.pos-G.size,Te=Q.length;for(;a.pos>ae;)Te=O(G.start,Q,Te);Z=new zh(Q,q-G.start,r),ee=G.start-I}else{let Q=a.pos-j;a.next();let ae=[],Te=[],te=W>=s?W:-1,pe=0,Oe=q;for(;a.pos>Q;)te>=0&&a.id==te&&a.size>=0?(a.end<=Oe-i&&(g(ae,Te,H,pe,a.end,Oe,te,z),pe=ae.length,Oe=a.end),a.next()):L>2500?p(H,Q,ae,Te):d(H,Q,ae,Te,te,L+1);if(te>=0&&pe>0&&pe-1&&pe>0){let me=m(X);Z=_F(X,ae,Te,0,ae.length,0,q-H,me,me)}else Z=v(X,ae,Te,q-H,z-q)}w.push(Z),F.push(ee)}function p(I,_,w,F){let M=[],L=0,W=-1;for(;a.pos>_;){let{id:H,start:q,end:j,size:z}=a;if(z>4)a.next();else{if(W>-1&&q=0;j-=3)H[z++]=M[j],H[z++]=M[j+1]-q,H[z++]=M[j+2]-q,H[z++]=z;w.push(new zh(H,M[2]-q,r)),F.push(q-I)}}function m(I){return(_,w,F)=>{let M=0,L=_.length-1,W,H;if(L>=0&&(W=_[L])instanceof Xr){if(!L&&W.type==I&&W.length==F)return W;(H=W.prop(Gn.lookAhead))&&(M=w[L]+W.length+H)}return v(I,_,w,F,M)}}function g(I,_,w,F,M,L,W,H){let q=[],j=[];for(;I.length>F;)q.push(I.pop()),j.push(_.pop()+w-M);I.push(v(r.types[W],q,j,L-M,H-L)),_.push(M-w)}function v(I,_,w,F,M=0,L){if(u){let W=[Gn.contextHash,u];L=L?[W].concat(L):[W]}if(M>25){let W=[Gn.lookAhead,M];L=L?[W].concat(L):[W]}return new Xr(I,_,w,F,L)}function E(I,_){let w=a.fork(),F=0,M=0,L=0,W=w.end-i,H={size:0,start:0,skip:0};e:for(let q=w.pos-I;w.pos>q;){let j=w.size;if(w.id==_&&j>=0){H.size=F,H.start=M,H.skip=L,L+=4,F+=4,w.next();continue}let z=w.pos-j;if(j<0||z=s?4:0,Z=w.start;for(w.next();w.pos>z;){if(w.size<0)if(w.size==-3)X+=4;else break e;else w.id>=s&&(X+=4);w.next()}M=Z,F+=j,L+=X}return(_<0||F==I)&&(H.size=F,H.start=M,H.skip=L),H.size>4?H:void 0}function O(I,_,w){let{id:F,start:M,end:L,size:W}=a;if(a.next(),W>=0&&F4){let q=a.pos-(W-4);for(;a.pos>q;)w=O(I,_,w)}_[--w]=H,_[--w]=L-I,_[--w]=M-I,_[--w]=F}else W==-3?u=F:W==-4&&(c=F);return w}let S=[],x=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,S,x,-1,0);let C=(t=e.length)!==null&&t!==void 0?t:S.length?x[0]+S[0].length:0;return new Xr(l[e.topID],S.reverse(),x.reverse(),C)}const kG=new WeakMap;function Zk(e,t){if(!e.isAnonymous||t instanceof zh||t.type!=e)return 1;let n=kG.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Xr)){n=1;break}n+=Zk(e,r)}kG.set(t,n)}return n}function _F(e,t,n,r,i,o,s,a,l){let u=0;for(let g=r;g=c)break;_+=w}if(x==C+1){if(_>c){let w=g[C];m(w.children,w.positions,0,w.children.length,v[C]+S);continue}d.push(g[C])}else{let w=v[x-1]+g[x-1].length-I;d.push(_F(e,g,v,C,x,I,w,null,l))}p.push(I+S-o)}}return m(t,n,r,i,0),(a||l)(d,p,s)}class bse{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 Sd?this.setBuffer(t.context.buffer,t.index,n):t instanceof ua&&this.map.set(t.tree,n)}get(t){return t instanceof Sd?this.getBuffer(t.context.buffer,t.index):t instanceof ua?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 Uf{constructor(t,n,r,i,o=!1,s=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new Uf(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,s=t.length?t[0]:null;for(let a=0,l=0,u=0;;a++){let c=a=r)for(;s&&s.from=p.from||d<=p.to||u){let m=Math.max(p.from,l)-u,g=Math.min(p.to,d)-u;p=m>=g?null:new Uf(m,g,p.tree,p.offset+u,a>0,!!c)}if(p&&i.push(p),s.to>d)break;s=onew ku(i.from,i.to)):[new ku(0,0)]:[new ku(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 K8e{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 yse(e){return(t,n,r,i)=>new eUe(t,e,n,r,i)}class CG{constructor(t,n,r,i,o){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=o}}function _G(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class J8e{constructor(t,n,r,i,o,s,a){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=o,this.target=s,this.prev=a,this.depth=0,this.ranges=[]}}const xM=new Gn({perNode:!0});class eUe{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 Xr(r.type,r.children,r.positions,r.length,r.propValues.concat([[xM,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[Gn.mounted.id]=new WE(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)a=!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(m=>m.fromd)&&n.ranges.push({from:d,to:p})}}a=!1}else if(r&&(s=tUe(r.ranges,i.from,i.to)))a=s!=2;else if(!i.type.isAnonymous&&(o=this.nest(i,this.input))&&(i.fromnew ku(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}):a=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new ku(i.from,i.to)),l.fromnew ku(c.from-n.start,c.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function tUe(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 AG(e,t,n,r,i,o){if(t=t&&n.enter(r,1,yi.IgnoreOverlays|yi.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 Xr)n=n.children[0];else break}return!1}}let rUe=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(xM))!==null&&n!==void 0?n:r.to,this.inner=new RG(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(xM))!==null&&t!==void 0?t:n.to,this.inner=new RG(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 s=(r=o.tree)===null||r===void 0?void 0:r.prop(Gn.mounted);if(s&&s.parser==n)for(let a=this.fragI;a=o.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:o.from-l.offset,mount:s})}}}return i}};function IG(e,t){let n=null,r=t;for(let i=1,o=0;i=a)break;l.to<=s||(n||(r=n=t.slice()),l.froma&&n.splice(o+1,0,new ku(a,l.to))):l.to>a?n[o--]=new ku(a,l.to):n.splice(o--,1))}}return r}function iUe(e,t,n,r){let i=0,o=0,s=!1,a=!1,l=-1e9,u=[];for(;;){let c=i==e.length?1e9:s?e[i].to:e[i].from,d=o==t.length?1e9:a?t[o].to:t[o].from;if(s!=a){let p=Math.max(l,n),m=Math.min(c,d,r);pnew ku(p.from+r,p.to+r)),d=iUe(t,c,l,u);for(let p=0,m=l;;p++){let g=p==d.length,v=g?u:d[p].from;if(v>m&&n.push(new Uf(m,v,i.tree,-s,o.from>=m||o.openStart,o.to<=v||o.openEnd)),g)break;m=d[p].to}}else n.push(new Uf(l,u,i.tree,-s,o.from>=s||o.openStart,o.to<=a||o.openEnd))}return n}let oUe=0;class cc{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=oUe++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new cc([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new __;return n=>n.modified.indexOf(t)>-1?n:__.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}}let sUe=0;class __{constructor(){this.instances=[],this.id=sUe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&aUe(n,a.modified));if(r)return r;let i=[],o=new cc(i,t,n);for(let a of n)a.instances.push(o);let s=lUe(n);for(let a of t.set)if(!a.modified.length)for(let l of s)i.push(__.get(a,l));return o}}function aUe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function lUe(e){let t=[[]];for(let n=0;nr.length-n.length)}function s1(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=[],s=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){s=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);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 m=i[d++];if(d==i.length&&m=="!"){s=0;break}if(m!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new A_(r,s,l>0?o.slice(0,l):null);t[u]=c.sort(t[u])}}return vse.add(t)}const vse=new Gn;class A_{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let s=i;for(let a of o)for(let l of a.set){let u=n[l.id];if(u){s=s?s+" "+u:u;break}}return s},scope:r}}function uUe(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function cUe(e,t,n,r=0,i=e.length){let o=new dUe(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class dUe{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:s,from:a,to:l}=t;if(a>=r||l<=n)return;s.isTop&&(o=this.highlighters.filter(m=>!m.scope||m.scope(s)));let u=i,c=fUe(t)||A_.empty,d=uUe(o,c.tags);if(d&&(u&&(u+=" "),u+=d,c.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,a),u),c.opaque)return;let p=t.tree&&t.tree.prop(Gn.mounted);if(p&&p.overlay){let m=t.node.enter(p.overlay[0].from+a,1),g=this.highlighters.filter(E=>!E.scope||E.scope(p.tree.type)),v=t.firstChild();for(let E=0,O=a;;E++){let S=E=x||!t.nextSibling())););if(!S||x>r)break;O=S.to+a,O>n&&(this.highlightRange(m.cursor(),Math.max(n,S.from+a),Math.min(r,O),"",g),this.startSpan(Math.min(r,O),u))}v&&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 fUe(e){let t=e.type.prop(vse);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Jt=cc.define,Px=Jt(),jp=Jt(),NG=Jt(jp),PG=Jt(jp),zp=Jt(),Lx=Jt(zp),BN=Jt(zp),id=Jt(),vm=Jt(id),td=Jt(),nd=Jt(),kM=Jt(),xv=Jt(kM),Mx=Jt(),ve={comment:Px,lineComment:Jt(Px),blockComment:Jt(Px),docComment:Jt(Px),name:jp,variableName:Jt(jp),typeName:NG,tagName:Jt(NG),propertyName:PG,attributeName:Jt(PG),className:Jt(jp),labelName:Jt(jp),namespace:Jt(jp),macroName:Jt(jp),literal:zp,string:Lx,docString:Jt(Lx),character:Jt(Lx),attributeValue:Jt(Lx),number:BN,integer:Jt(BN),float:Jt(BN),bool:Jt(zp),regexp:Jt(zp),escape:Jt(zp),color:Jt(zp),url:Jt(zp),keyword:td,self:Jt(td),null:Jt(td),atom:Jt(td),unit:Jt(td),modifier:Jt(td),operatorKeyword:Jt(td),controlKeyword:Jt(td),definitionKeyword:Jt(td),moduleKeyword:Jt(td),operator:nd,derefOperator:Jt(nd),arithmeticOperator:Jt(nd),logicOperator:Jt(nd),bitwiseOperator:Jt(nd),compareOperator:Jt(nd),updateOperator:Jt(nd),definitionOperator:Jt(nd),typeOperator:Jt(nd),controlOperator:Jt(nd),punctuation:kM,separator:Jt(kM),bracket:xv,angleBracket:Jt(xv),squareBracket:Jt(xv),paren:Jt(xv),brace:Jt(xv),content:id,heading:vm,heading1:Jt(vm),heading2:Jt(vm),heading3:Jt(vm),heading4:Jt(vm),heading5:Jt(vm),heading6:Jt(vm),contentSeparator:Jt(id),list:Jt(id),quote:Jt(id),emphasis:Jt(id),strong:Jt(id),link:Jt(id),monospace:Jt(id),strikethrough:Jt(id),inserted:Jt(),deleted:Jt(),changed:Jt(),invalid:Jt(),meta:Mx,documentMeta:Jt(Mx),annotation:Jt(Mx),processingInstruction:Jt(Mx),definition:cc.defineModifier(),constant:cc.defineModifier(),function:cc.defineModifier(),standard:cc.defineModifier(),local:cc.defineModifier(),special:cc.defineModifier()};Ose([{tag:ve.link,class:"tok-link"},{tag:ve.heading,class:"tok-heading"},{tag:ve.emphasis,class:"tok-emphasis"},{tag:ve.strong,class:"tok-strong"},{tag:ve.keyword,class:"tok-keyword"},{tag:ve.atom,class:"tok-atom"},{tag:ve.bool,class:"tok-bool"},{tag:ve.url,class:"tok-url"},{tag:ve.labelName,class:"tok-labelName"},{tag:ve.inserted,class:"tok-inserted"},{tag:ve.deleted,class:"tok-deleted"},{tag:ve.literal,class:"tok-literal"},{tag:ve.string,class:"tok-string"},{tag:ve.number,class:"tok-number"},{tag:[ve.regexp,ve.escape,ve.special(ve.string)],class:"tok-string2"},{tag:ve.variableName,class:"tok-variableName"},{tag:ve.local(ve.variableName),class:"tok-variableName tok-local"},{tag:ve.definition(ve.variableName),class:"tok-variableName tok-definition"},{tag:ve.special(ve.variableName),class:"tok-variableName2"},{tag:ve.definition(ve.propertyName),class:"tok-propertyName tok-definition"},{tag:ve.typeName,class:"tok-typeName"},{tag:ve.namespace,class:"tok-namespace"},{tag:ve.className,class:"tok-className"},{tag:ve.macroName,class:"tok-macroName"},{tag:ve.propertyName,class:"tok-propertyName"},{tag:ve.operator,class:"tok-operator"},{tag:ve.comment,class:"tok-comment"},{tag:ve.meta,class:"tok-meta"},{tag:ve.invalid,class:"tok-invalid"},{tag:ve.punctuation,class:"tok-punctuation"}]);var UN;const Hm=new Gn;function RF(e){return hn.define({combine:e?t=>t.concat(e):void 0})}const IF=new Gn;class Cu{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Ar.prototype.hasOwnProperty("tree")||Object.defineProperty(Ar.prototype,"tree",{get(){return Oi(this)}}),this.parser=n,this.extension=[Vh.of(this),Ar.languageData.of((o,s,a)=>{let l=LG(o,s,a),u=l.type.prop(Hm);if(!u)return[];let c=o.facet(u),d=l.type.prop(IF);if(d){let p=l.resolve(s-l.from,a);for(let m of d)if(m.test(p,o)){let g=o.facet(m.facet);return m.type=="replace"?g:g.concat(c)}}return c})].concat(r)}isActiveAt(t,n,r=-1){return LG(t,n,r).type.prop(Hm)==this.data}findRegions(t){let n=t.facet(Vh);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,s)=>{if(o.prop(Hm)==this.data){r.push({from:s,to:s+o.length});return}let a=o.prop(Gn.mounted);if(a){if(a.tree.prop(Hm)==this.data){if(a.overlay)for(let l of a.overlay)r.push({from:l.from+s,to:l.to+s});else r.push({from:s,to:s+o.length});return}else if(a.overlay){let l=r.length;if(i(a.tree,a.overlay[0].from+s),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new _y(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Oi(e){let t=e.field(Cu.state,!1);return t?t.tree:Xr.empty}class pUe{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 kv=null;class YE{constructor(t,n,r=[],i,o,s,a,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new YE(t,n,[],Xr.empty,0,r,[],null)}startParse(){return this.parser.startParse(new pUe(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Xr.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(Uf.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=kv;kv=this;try{return t()}finally{kv=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=MG(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:o,viewport:s,skipped:a}=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=Uf.applyChanges(r,l),i=Xr.empty,o=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){a=[];for(let u of this.skipped){let c=t.mapPos(u.from,1),d=t.mapPos(u.to,-1);ct.from&&(this.fragments=MG(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 AF{createParse(n,r,i){let o=i[0].from,s=i[i.length-1].to;return{parsedPos:o,advance(){let l=kv;if(l){for(let u of i)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new Xr(Ko.none,[],[],s-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 kv}}function MG(e,t,n){return Uf.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Ay{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 Ay(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=YE.create(t.facet(Vh).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Ay(r)}}Cu.state=vs.define({create:Ay.init,update(e,t){for(let n of t.effects)if(n.is(Cu.setState))return n.value;return t.startState.facet(Vh)!=t.state.facet(Vh)?Ay.init(t.state):e.apply(t)}});let Ese=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(Ese=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const jN=typeof navigator<"u"&&(!((UN=navigator.scheduling)===null||UN===void 0)&&UN.isInputPending)?()=>navigator.scheduling.isInputPending():null,hUe=Wi.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(Cu.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(Cu.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=Ese(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=o.context.work(()=>jN&&jN()||Date.now()>s,i+(a?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Cu.setState.of(new Ay(o.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Pu(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()}}}),Vh=hn.define({combine(e){return e.length?e[0]:null},enables:e=>[Cu.state,hUe,un.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class GE{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class R_{constructor(t,n,r,i,o,s=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=o,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new R_(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 s=n.indexOf(o);if(s>-1&&(o.length>2||!/\w/.test(n[s-1])&&!/\w/.test(n[s+o.length])))return i}return null}}const mUe=hn.define(),dT=hn.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 I_(e){let t=e.facet(dT);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function qE(e,t){let n="",r=e.tabSize,i=e.facet(dT)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let o=0;o=t?gUe(e,n,t):null}class iR{constructor(t,n={}){this.state=t,this.options=n,this.unit=I_(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+=s-this.countColumn(r,r.search(/\S|$/))),o}countColumn(t,n=t.length){return xc(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 s=o(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const fT=new Gn;function gUe(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let o=[];for(let s=i;s!=r.node;s=s.parent)o.push(s);for(let s=o.length-1;s>=0;s--)r={node:o[s],next:r}}return Sse(r,e,n)}function Sse(e,t,n){for(let r=e;r;r=r.next){let i=yUe(r.node);if(i)return i(NF.create(t,n,r))}return 0}function bUe(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function yUe(e){let t=e.type.prop(fT);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Gn.closedBy))){let i=e.lastChild,o=i&&r.indexOf(i.name)>-1;return s=>Tse(s,!0,1,void 0,o&&!bUe(s)?i.from:void 0)}return e.parent==null?vUe:null}function vUe(){return 0}class NF extends iR{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 NF(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(OUe(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return Sse(this.context.next,this.base,this.pos)}}function OUe(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function EUe(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),s=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let a=n.to;;){let l=t.childAfter(a);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromTse(r,t,n,e)}function Tse(e,t,n,r,i){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==e.pos+s,l=t?EUe(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}const TUe=e=>e.baseIndent;function Xk({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const wUe=200;function xUe(){return Ar.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+wUe)return e;let o=n.sliceString(i.from,r);if(!t.some(u=>u.test(o)))return e;let{state:s}=e,a=-1,l=[];for(let{head:u}of s.selection.ranges){let c=s.doc.lineAt(u);if(c.from==a)continue;a=c.from;let d=DF(s,c.from);if(d==null)continue;let p=/^\s*/.exec(c.text)[0],m=qE(s,d);p!=m&&l.push({from:c.from,to:c.from+p.length,insert:m})}return l.length?[e,{changes:l,sequential:!0}]:e})}const wse=hn.define(),a1=new Gn;function xse(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(o&&a.from=t&&u.to>n&&(o=u)}}return o}function CUe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function D_(e,t,n){for(let r of e.facet(wse)){let i=r(e,t,n);if(i)return i}return kUe(e,t,n)}function kse(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 oR=rr.define({map:kse}),pT=rr.define({map:kse});function Cse(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 xg=vs.define({create(){return Tn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(oR)&&!_Ue(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(PF),i=r?Tn.replace({widget:new LUe(r(t.state,n.value))}):$G;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(pT)&&(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=>un.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:s})}),i}function _Ue(e,t,n){let r=!1;return e.between(t,t,(i,o)=>{i==t&&o==n&&(r=!0)}),r}function _se(e,t){return e.field(xg,!1)?t:t.concat(rr.appendConfig.of(Rse()))}const AUe=e=>{for(let t of Cse(e)){let n=D_(e.state,t.from,t.to);if(n)return e.dispatch({effects:_se(e.state,[oR.of(n),Ase(e,n)])}),!0}return!1},RUe=e=>{if(!e.state.field(xg,!1))return!1;let t=[];for(let n of Cse(e)){let r=N_(e.state,n.from,n.to);r&&t.push(pT.of(r),Ase(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function Ase(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return un.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const IUe=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(xg,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(pT.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},NUe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:AUe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:RUe},{key:"Ctrl-Alt-[",run:IUe},{key:"Ctrl-Alt-]",run:DUe}],PUe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},PF=hn.define({combine(e){return zd(e,PUe)}});function Rse(e){let t=[xg,FUe];return e&&t.push(PF.of(e)),t}function Ise(e,t){let{state:n}=e,r=n.facet(PF),i=s=>{let a=e.lineBlockAt(e.posAtDOM(s.target)),l=N_(e.state,a.from,a.to);l&&e.dispatch({effects:pT.of(l)}),s.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 $G=Tn.replace({widget:new class extends Lc{toDOM(e){return Ise(e,null)}}});class LUe extends Lc{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Ise(t,this.value)}}const MUe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class zN extends Jf{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 $Ue(e={}){let t=Object.assign(Object.assign({},MUe),e),n=new zN(t,!0),r=new zN(t,!1),i=Wi.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(Vh)!=s.state.facet(Vh)||s.startState.field(xg,!1)!=s.state.field(xg,!1)||Oi(s.startState)!=Oi(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let a=new Fh;for(let l of s.viewportLineBlocks){let u=N_(s.state,l.from,l.to)?r:D_(s.state,l.from,l.to)?n:null;u&&a.add(l.from,l.from,u)}return a.finish()}}),{domEventHandlers:o}=t;return[i,M8e({class:"cm-foldGutter",markers(s){var a;return((a=s.plugin(i))===null||a===void 0?void 0:a.markers)||Cr.empty},initialSpacer(){return new zN(t,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(s,a,l)=>{if(o.click&&o.click(s,a,l))return!0;let u=N_(s.state,a.from,a.to);if(u)return s.dispatch({effects:pT.of(u)}),!0;let c=D_(s.state,a.from,a.to);return c?(s.dispatch({effects:oR.of(c)}),!0):!1}})}),Rse()]}const FUe=un.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 hT{constructor(t,n){this.specs=t;let r;function i(a){let l=Bh.newName();return(r||(r=Object.create(null)))["."+l]=a,l}const o=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof Cu?a=>a.prop(Hm)==s.data:s?a=>a==s:void 0,this.style=Ose(t.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:o}).style,this.module=r?new Bh(r):null,this.themeType=n.themeType}static define(t,n){return new hT(t,n||{})}}const CM=hn.define(),Dse=hn.define({combine(e){return e.length?[e[0]]:null}});function VN(e){let t=e.facet(CM);return t.length?t:e.facet(Dse)}function Nse(e,t){let n=[UUe],r;return e instanceof hT&&(e.module&&n.push(un.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(Dse.of(e)):r?n.push(CM.computeN([un.darkTheme],i=>i.facet(un.darkTheme)==(r=="dark")?[e]:[])):n.push(CM.of(e)),n}class BUe{constructor(t){this.markCache=Object.create(null),this.tree=Oi(t.state),this.decorations=this.buildDeco(t,VN(t.state))}update(t){let n=Oi(t.state),r=VN(t.state),i=r!=VN(t.startState);n.length{r.add(s,a,this.markCache[l]||(this.markCache[l]=Tn.mark({class:l})))},i,o);return r.finish()}}const UUe=em.high(Wi.fromClass(BUe,{decorations:e=>e.decorations})),jUe=hT.define([{tag:ve.meta,color:"#404740"},{tag:ve.link,textDecoration:"underline"},{tag:ve.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ve.emphasis,fontStyle:"italic"},{tag:ve.strong,fontWeight:"bold"},{tag:ve.strikethrough,textDecoration:"line-through"},{tag:ve.keyword,color:"#708"},{tag:[ve.atom,ve.bool,ve.url,ve.contentSeparator,ve.labelName],color:"#219"},{tag:[ve.literal,ve.inserted],color:"#164"},{tag:[ve.string,ve.deleted],color:"#a11"},{tag:[ve.regexp,ve.escape,ve.special(ve.string)],color:"#e40"},{tag:ve.definition(ve.variableName),color:"#00f"},{tag:ve.local(ve.variableName),color:"#30a"},{tag:[ve.typeName,ve.namespace],color:"#085"},{tag:ve.className,color:"#167"},{tag:[ve.special(ve.variableName),ve.macroName],color:"#256"},{tag:ve.definition(ve.propertyName),color:"#00c"},{tag:ve.comment,color:"#940"},{tag:ve.invalid,color:"#f00"}]),zUe=un.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Pse=1e4,Lse="()[]{}",Mse=hn.define({combine(e){return zd(e,{afterCursor:!0,brackets:Lse,maxScanDistance:Pse,renderMatch:WUe})}}),VUe=Tn.mark({class:"cm-matchingBracket"}),HUe=Tn.mark({class:"cm-nonmatchingBracket"});function WUe(e){let t=[],n=e.matched?VUe:HUe;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 QUe=vs.define({create(){return Tn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(Mse);for(let i of t.state.selection.ranges){if(!i.empty)continue;let o=Td(t.state,i.head,-1,r)||i.head>0&&Td(t.state,i.head-1,1,r)||r.afterCursor&&(Td(t.state,i.head,1,r)||i.headun.decorations.from(e)}),YUe=[QUe,zUe];function GUe(e={}){return[Mse.of(e),YUe]}const $se=new Gn;function _M(e,t,n){let r=e.prop(t<0?Gn.openedBy:Gn.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 AM(e){let t=e.type.prop($se);return t?t(e.node):e}function Td(e,t,n,r={}){let i=r.maxScanDistance||Pse,o=r.brackets||Lse,s=Oi(e),a=s.resolveInner(t,n);for(let l=a;l;l=l.parent){let u=_M(l.type,n,o);if(u&&l.from0?t>=c.from&&tc.from&&t<=c.to))return qUe(e,t,n,l,c,u,o)}}return ZUe(e,t,n,s,a.type,i,o)}function qUe(e,t,n,r,i,o,s){let a=r.parent,l={from:i.from,to:i.to},u=0,c=a==null?void 0:a.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 m=c.value;n<0&&(p+=m.length);let g=t+p*n;for(let v=n>0?0:m.length-1,E=n>0?m.length:-1;v!=E;v+=n){let O=s.indexOf(m[v]);if(!(O<0||r.resolveInner(g+v,1).type!=i))if(O%2==0==n>0)d++;else{if(d==1)return{start:u,end:{from:g+v,to:g+v+1},matched:O>>1==l>>1};d--}}n>0&&(p+=m.length)}return c.done?{start:u,matched:!1}:null}const XUe=Object.create(null),FG=[Ko.none],BG=[],UG=Object.create(null),KUe=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"]])KUe[e]=JUe(XUe,t);function HN(e,t){BG.indexOf(e)>-1||(BG.push(e),console.warn(t))}function JUe(e,t){let n=[];for(let a of t.split(" ")){let l=[];for(let u of a.split(".")){let c=e[u]||ve[u];c?typeof c=="function"?l.length?l=l.map(c):HN(u,`Modifier ${u} used at start of tag`):l.length?HN(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:HN(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(a=>a.id),o=UG[i];if(o)return o.id;let s=UG[i]=Ko.define({id:FG.length,name:r,props:[s1({[r]:n})]});return FG.push(s),s.id}Ri.RTL,Ri.LTR;const e7e=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=MF(e.state,n.from);return r.line?t7e(e):r.block?r7e(e):!1};function LF(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 t7e=LF(s7e,0),n7e=LF(Fse,0),r7e=LF((e,t)=>Fse(e,t,o7e(t)),0);function MF(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const Cv=50;function i7e(e,{open:t,close:n},r,i){let o=e.sliceDoc(r-Cv,r),s=e.sliceDoc(i,i+Cv),a=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(s)[0].length,u=o.length-a;if(o.slice(u-t.length,u)==t&&s.slice(l,l+n.length)==n)return{open:{pos:r-a,margin:a&&1},close:{pos:i+l,margin:l&&1}};let c,d;i-r<=2*Cv?c=d=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+Cv),d=e.sliceDoc(i-Cv,i));let p=/^\s*/.exec(c)[0].length,m=/\s*$/.exec(d)[0].length,g=d.length-m-n.length;return c.slice(p,p+t.length)==t&&d.slice(g,g+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(c.charAt(p+t.length))?1:0},close:{pos:i-m-n.length,margin:/\s/.test(d.charAt(g-1))?1:0}}:null}function o7e(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 Fse(e,t,n=t.selection.ranges){let r=n.map(o=>MF(t,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,s)=>i7e(t,r[s],o.from,o.to));if(e!=2&&!i.every(o=>o))return{changes:t.changes(n.map((o,s)=>i[s]?[]:[{from:o.from,insert:r[s].open+" "},{from:o.to,insert:" "+r[s].close}]))};if(e!=1&&i.some(o=>o)){let o=[];for(let s=0,a;si&&(o==s||s>d.from)){i=d.from;let p=/^\s*/.exec(d.text)[0].length,m=p==d.length,g=d.text.slice(p,p+u.length)==u?p:-1;po.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:a,token:l,indent:u,empty:c,single:d}of r)(d||!c)&&o.push({from:a.from+u,insert:l+" "});let s=t.changes(o);return{changes:s,selection:t.selection.map(s,1)}}else if(e!=1&&r.some(o=>o.comment>=0)){let o=[];for(let{line:s,comment:a,token:l}of r)if(a>=0){let u=s.from+a,c=u+l.length;s.text[c-s.from]==" "&&c++,o.push({from:u,to:c})}return{changes:o}}return null}const RM=Pc.define(),a7e=Pc.define(),l7e=hn.define(),Bse=hn.define({combine(e){return zd(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)})}}),Use=vs.define({create(){return wd.empty},update(e,t){let n=t.state.facet(Bse),r=t.annotation(RM);if(r){let l=tl.fromTransaction(t,r.selection),u=r.side,c=u==0?e.undone:e.done;return l?c=P_(c,c.length,n.minDepth,l):c=Vse(c,t.startState.selection),new wd(u==0?r.rest:c,u==0?c:r.rest)}let i=t.annotation(a7e);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(gs.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let o=tl.fromTransaction(t),s=t.annotation(gs.time),a=t.annotation(gs.userEvent);return o?e=e.addChanges(o,s,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,a,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 wd(e.done.map(tl.fromJSON),e.undone.map(tl.fromJSON))}});function u7e(e={}){return[Use,Bse.of(e),un.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?jse:t.inputType=="historyRedo"?IM:null;return r?(t.preventDefault(),r(n)):!1}})]}function sR(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Use,!1);if(!i)return!1;let o=i.pop(e,n,t);return o?(r(o),!0):!1}}const jse=sR(0,!1),IM=sR(1,!1),c7e=sR(0,!0),d7e=sR(1,!0);class tl{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 tl(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 tl(t.changes&&Wo.fromJSON(t.changes),[],t.mapped&&Nd.fromJSON(t.mapped),t.startSelection&&ht.fromJSON(t.startSelection),t.selectionsAfter.map(ht.fromJSON))}static fromTransaction(t,n){let r=_u;for(let i of t.startState.facet(l7e)){let o=i(t);o.length&&(r=r.concat(o))}return!r.length&&t.changes.empty?null:new tl(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,_u)}static selection(t){return new tl(void 0,_u,void 0,void 0,t)}}function P_(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 f7e(e,t){let n=[],r=!1;return e.iterChangedRanges((i,o)=>n.push(i,o)),t.iterChangedRanges((i,o,s,a)=>{for(let l=0;l=u&&s<=c&&(r=!0)}}),r}function p7e(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function zse(e,t){return e.length?t.length?e.concat(t):e:t}const _u=[],h7e=200;function Vse(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-h7e));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),P_(e,e.length-1,1e9,n.setSelAfter(r)))}else return[tl.selection([t])]}function m7e(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 WN(e,t){if(!e.length)return e;let n=e.length,r=_u;for(;n;){let i=g7e(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?[tl.selection(r)]:_u}function g7e(e,t,n){let r=zse(e.selectionsAfter.length?e.selectionsAfter.map(a=>a.map(t)):_u,n);if(!e.changes)return tl.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new tl(i,rr.mapEffects(e.effects,t),s,e.startSelection.map(o),r)}const b7e=/^(input\.type|delete)($|\.)/;class wd{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 wd(this.done,this.undone):this}addChanges(t,n,r,i,o){let s=this.done,a=s[s.length-1];return a&&a.changes&&!a.changes.empty&&t.changes&&(!r||b7e.test(r))&&(!a.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):aR(n,t))}function pa(e){return e.textDirectionAt(e.state.selection.main.head)==Ri.LTR}const Wse=e=>Hse(e,!pa(e)),Qse=e=>Hse(e,pa(e));function Yse(e,t){return Mc(e,n=>n.empty?e.moveByGroup(n,t):aR(n,t))}const v7e=e=>Yse(e,!pa(e)),O7e=e=>Yse(e,pa(e));function E7e(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 lR(e,t,n){let r=Oi(e).resolveInner(t.head),i=n?Gn.closedBy:Gn.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;E7e(e,u,i)?r=u:l=n?u.to:u.from}let o=r.type.prop(i),s,a;return o&&(s=n?Td(e,r.from,1):Td(e,r.to,-1))&&s.matched?a=n?s.end.to:s.end.from:a=n?r.to:r.from,ht.cursor(a,n?-1:1)}const S7e=e=>Mc(e,t=>lR(e.state,t,!pa(e))),T7e=e=>Mc(e,t=>lR(e.state,t,pa(e)));function Gse(e,t){return Mc(e,n=>{if(!n.empty)return aR(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const qse=e=>Gse(e,!1),Zse=e=>Gse(e,!0);function Xse(e){let t=e.scrollDOM.clientHeights.empty?e.moveVertically(s,t,n.height):aR(s,t));if(i.eq(r.selection))return!1;let o;if(n.selfScroll){let s=e.coordsAtPos(r.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+n.marginTop,u=a.bottom-n.marginBottom;s&&s.top>l&&s.bottomKse(e,!1),DM=e=>Kse(e,!0);function tm(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=ht.cursor(r.from+o))}return i}const w7e=e=>Mc(e,t=>tm(e,t,!0)),x7e=e=>Mc(e,t=>tm(e,t,!1)),k7e=e=>Mc(e,t=>tm(e,t,!pa(e))),C7e=e=>Mc(e,t=>tm(e,t,pa(e))),_7e=e=>Mc(e,t=>ht.cursor(e.lineBlockAt(t.head).from,1)),A7e=e=>Mc(e,t=>ht.cursor(e.lineBlockAt(t.head).to,-1));function R7e(e,t,n){let r=!1,i=l1(e.selection,o=>{let s=Td(e,o.head,-1)||Td(e,o.head,1)||o.head>0&&Td(e,o.head-1,1)||o.headR7e(e,t,!1);function Hu(e,t){let n=l1(e.state.selection,r=>{let i=t(r);return ht.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(Vd(e.state,n)),!0)}function Jse(e,t){return Hu(e,n=>e.moveByChar(n,t))}const eae=e=>Jse(e,!pa(e)),tae=e=>Jse(e,pa(e));function nae(e,t){return Hu(e,n=>e.moveByGroup(n,t))}const D7e=e=>nae(e,!pa(e)),N7e=e=>nae(e,pa(e)),P7e=e=>Hu(e,t=>lR(e.state,t,!pa(e))),L7e=e=>Hu(e,t=>lR(e.state,t,pa(e)));function rae(e,t){return Hu(e,n=>e.moveVertically(n,t))}const iae=e=>rae(e,!1),oae=e=>rae(e,!0);function sae(e,t){return Hu(e,n=>e.moveVertically(n,t,Xse(e).height))}const zG=e=>sae(e,!1),VG=e=>sae(e,!0),M7e=e=>Hu(e,t=>tm(e,t,!0)),$7e=e=>Hu(e,t=>tm(e,t,!1)),F7e=e=>Hu(e,t=>tm(e,t,!pa(e))),B7e=e=>Hu(e,t=>tm(e,t,pa(e))),U7e=e=>Hu(e,t=>ht.cursor(e.lineBlockAt(t.head).from)),j7e=e=>Hu(e,t=>ht.cursor(e.lineBlockAt(t.head).to)),HG=({state:e,dispatch:t})=>(t(Vd(e,{anchor:0})),!0),WG=({state:e,dispatch:t})=>(t(Vd(e,{anchor:e.doc.length})),!0),QG=({state:e,dispatch:t})=>(t(Vd(e,{anchor:e.selection.main.anchor,head:0})),!0),YG=({state:e,dispatch:t})=>(t(Vd(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),z7e=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),V7e=({state:e,dispatch:t})=>{let n=uR(e).map(({from:r,to:i})=>ht.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:ht.create(n),userEvent:"select"})),!0},H7e=({state:e,dispatch:t})=>{let n=l1(e.selection,r=>{var i;let o=Oi(e).resolveStack(r.from,1);for(let s=o;s;s=s.next){let{node:a}=s;if((a.from=r.to||a.to>r.to&&a.from<=r.from)&&(!((i=a.parent)===null||i===void 0)&&i.parent))return ht.range(a.to,a.from)}return r});return t(Vd(e,n)),!0},W7e=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=ht.create([n.main]):n.main.empty||(r=ht.create([ht.cursor(n.main.head)])),r?(t(Vd(e,r)),!0):!1};function mT(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(o=>{let{from:s,to:a}=o;if(s==a){let l=t(o);ls&&(n="delete.forward",l=$x(e,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=$x(e,s,!1),a=$x(e,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:ht.cursor(s,si(e)))r.between(t,t,(i,o)=>{it&&(t=n?o:i)});return t}const aae=(e,t)=>mT(e,n=>{let r=n.from,{state:i}=e,o=i.doc.lineAt(r),s,a;if(!t&&r>o.from&&raae(e,!1),lae=e=>aae(e,!0),uae=(e,t)=>mT(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),s=i.charCategorizer(r);for(let a=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=$s(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=s(u);if(a!=null&&c!=a)break;(u!=" "||r!=n.head)&&(a=c),r=l}return r}),cae=e=>uae(e,!1),Q7e=e=>uae(e,!0),Y7e=e=>mT(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headmT(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),q7e=e=>mT(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:Ur.of(["",""])},range:ht.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},X7e=({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),s=i==o.from?i-1:$s(o.text,i-o.from,!1)+o.from,a=i==o.to?i+1:$s(o.text,i-o.from,!0)+o.from;return{changes:{from:s,to:a,insert:e.doc.slice(i,a).append(e.doc.slice(s,i))},range:ht.cursor(a)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function uR(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(!r.empty&&r.to==o.from&&(o=e.doc.lineAt(r.to-1)),n>=i.number){let s=t[t.length-1];s.to=o.to,s.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function dae(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of uR(e)){if(n?o.to==e.doc.length:o.from==0)continue;let s=e.doc.lineAt(n?o.to+1:o.from-1),a=s.length+1;if(n){r.push({from:o.to,to:s.to},{from:o.from,insert:s.text+e.lineBreak});for(let l of o.ranges)i.push(ht.range(Math.min(e.doc.length,l.anchor+a),Math.min(e.doc.length,l.head+a)))}else{r.push({from:s.from,to:o.from},{from:o.to,insert:e.lineBreak+s.text});for(let l of o.ranges)i.push(ht.range(l.anchor-a,l.head-a))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:ht.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const K7e=({state:e,dispatch:t})=>dae(e,t,!1),J7e=({state:e,dispatch:t})=>dae(e,t,!0);function fae(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of uR(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const e9e=({state:e,dispatch:t})=>fae(e,t,!1),t9e=({state:e,dispatch:t})=>fae(e,t,!0),n9e=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(uR(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 r9e(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Oi(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(Gn.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 i9e=pae(!1),o9e=pae(!0);function pae(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:o,to:s}=i,a=t.doc.lineAt(o),l=!e&&o==s&&r9e(t,o);e&&(o=s=(s<=a.to?a:t.doc.lineAt(s)).to);let u=new iR(t,{simulateBreak:o,simulateDoubleBreak:!!l}),c=DF(u,o);for(c==null&&(c=xc(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));sa.from&&o{let i=[];for(let s=r.from;s<=r.to;){let a=e.doc.lineAt(s);a.number>n&&(r.empty||r.to>a.from)&&(t(a,i,r),n=a.number),s=a.to+1}let o=e.changes(i);return{changes:i,range:ht.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const s9e=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new iR(e,{overrideIndentation:o=>{let s=n[o];return s??-1}}),i=$F(e,(o,s,a)=>{let l=DF(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=qE(e,l);(u!=c||a.frome.readOnly?!1:(t(e.update($F(e,(n,r)=>{r.push({from:n.from,insert:e.facet(dT)})}),{userEvent:"input.indent"})),!0),mae=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update($F(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=xc(i,e.tabSize),s=0,a=qE(e,Math.max(0,o-I_(e)));for(;s({mac:e.key,run:e.run,shift:e.shift}))),u9e=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:S7e,shift:P7e},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:T7e,shift:L7e},{key:"Alt-ArrowUp",run:K7e},{key:"Shift-Alt-ArrowUp",run:e9e},{key:"Alt-ArrowDown",run:J7e},{key:"Shift-Alt-ArrowDown",run:t9e},{key:"Escape",run:W7e},{key:"Mod-Enter",run:o9e},{key:"Alt-l",mac:"Ctrl-l",run:V7e},{key:"Mod-i",run:H7e,preventDefault:!0},{key:"Mod-[",run:mae},{key:"Mod-]",run:hae},{key:"Mod-Alt-\\",run:s9e},{key:"Shift-Mod-k",run:n9e},{key:"Shift-Mod-\\",run:I7e},{key:"Mod-/",run:e7e},{key:"Alt-A",run:n7e}].concat(l9e),c9e={key:"Tab",run:hae,shift:mae};function bi(){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 Ry{constructor(t,n,r=0,i=t.length,o,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=o?a=>o(GG(a)):GG,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 Ds(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=pF(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=wu(t);let i=this.normalize(n);for(let o=0,s=r;;o++){let a=i.charCodeAt(o),l=this.match(a,s);if(o==i.length-1){if(l)return this.value=l,this;break}s==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=L_(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 a=new Nb(n,t.sliceString(n,r));return QN.set(t,a),a}if(i.from==n&&i.to==r)return i;let{text:o,from:s}=i;return s>n&&(o=t.sliceString(n,s)+o,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=L_(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Nb.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(yae.prototype[Symbol.iterator]=vae.prototype[Symbol.iterator]=function(){return this});function d9e(e){try{return new RegExp(e,FF),!0}catch{return!1}}function L_(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function PM(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=bi("input",{class:"cm-textfield",name:"line",value:t}),r=bi("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),e.dispatch({effects:M_.of(!1)}),e.focus()):o.keyCode==13&&(o.preventDefault(),i())},onsubmit:o=>{o.preventDefault(),i()}},bi("label",e.state.phrase("Go to line"),": ",n)," ",bi("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:s}=e,a=s.doc.lineAt(s.selection.main.head),[,l,u,c,d]=o,p=c?+c.slice(1):0,m=u?+u:a.number;if(u&&d){let E=m/100;l&&(E=E*(l=="-"?-1:1)+a.number/s.doc.lines),m=Math.round(s.doc.lines*E)}else u&&l&&(m=m*(l=="-"?-1:1)+a.number);let g=s.doc.line(Math.max(1,Math.min(s.doc.lines,m))),v=ht.cursor(g.from+Math.max(0,Math.min(p,g.length)));e.dispatch({effects:[M_.of(!1),un.scrollIntoView(v.from,{y:"center"})],selection:v}),e.focus()}return{dom:r}}const M_=rr.define(),qG=vs.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(M_)&&(e=n.value);return e},provide:e=>HE.from(e,t=>t?PM:null)}),f9e=e=>{let t=VE(e,PM);if(!t){let n=[M_.of(!0)];e.state.field(qG,!1)==null&&n.push(rr.appendConfig.of([qG,p9e])),e.dispatch({effects:n}),t=VE(e,PM)}return t&&t.dom.querySelector("input").select(),!0},p9e=un.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),h9e={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Oae=hn.define({combine(e){return zd(e,h9e,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function m9e(e){let t=[O9e,v9e];return e&&t.push(Oae.of(e)),t}const g9e=Tn.mark({class:"cm-selectionMatch"}),b9e=Tn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function ZG(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=Hi.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Hi.Word)}function y9e(e,t,n,r){return e(t.sliceDoc(n,n+1))==Hi.Word&&e(t.sliceDoc(r-1,r))==Hi.Word}const v9e=Wi.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(Oae),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Tn.none;let i=r.main,o,s=null;if(i.empty){if(!t.highlightWordAroundCursor)return Tn.none;let l=n.wordAt(i.head);if(!l)return Tn.none;s=n.charCategorizer(i.head),o=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return Tn.none;if(t.wholeWords){if(o=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!(ZG(s,n,i.from,i.to)&&y9e(s,n,i.from,i.to)))return Tn.none}else if(o=n.sliceDoc(i.from,i.to).trim(),!o)return Tn.none}let a=[];for(let l of e.visibleRanges){let u=new Ry(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:c,to:d}=u.value;if((!s||ZG(s,n,c,d))&&(i.empty&&c<=i.from&&d>=i.to?a.push(b9e.range(c,d)):(c>=i.to||d<=i.from)&&a.push(g9e.range(c,d)),a.length>t.maxMatches))return Tn.none}}return Tn.set(a)}},{decorations:e=>e.decorations}),O9e=un.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),E9e=({state:e,dispatch:t})=>{let{selection:n}=e,r=ht.create(n.ranges.map(i=>e.wordAt(i.head)||ht.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function S9e(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 s=!1,a=new Ry(e.doc,t,r[r.length-1].to);;)if(a.next(),a.done){if(s)return null;a=new Ry(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(l=>l.from==a.value.from))continue;if(o){let l=e.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}const T9e=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(o=>o.from===o.to))return E9e({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=S9e(e,r);return i?(t(e.update({selection:e.selection.addRange(ht.range(i.from,i.to),!1),effects:un.scrollIntoView(i.to)})),!0):!1},u1=hn.define({combine(e){return zd(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new L9e(t),scrollToMatch:t=>un.scrollIntoView(t)})}});class Eae{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||d9e(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 C9e(this):new x9e(this)}getCursor(t,n=0,r){let i=t.doc?t:Ar.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?U0(this,i,n,r):B0(this,i,n,r)}}class Sae{constructor(t){this.spec=t}}function B0(e,t,n,r){return new Ry(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?w9e(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function w9e(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=B0(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 U0(e,t,n,r){return new yae(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?k9e(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function $_(e,t){return e.slice($s(e,t,!1),t)}function F_(e,t){return e.slice(t,$s(e,t))}function k9e(e){return(t,n,r)=>!r[0].length||(e($_(r.input,r.index))!=Hi.Word||e(F_(r.input,r.index))!=Hi.Word)&&(e(F_(r.input,r.index+r[0].length))!=Hi.Word||e($_(r.input,r.index+r[0].length))!=Hi.Word)}class C9e extends Sae{nextMatch(t,n,r){let i=U0(this.spec,t,r,t.doc.length).next();return i.done&&(i=U0(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),s=U0(this.spec,t,o,r),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==n||a.from>o+10))return a;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=U0(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 ZE=rr.define(),BF=rr.define(),wh=vs.define({create(e){return new YN(LM(e).create(),null)},update(e,t){for(let n of t.effects)n.is(ZE)?e=new YN(n.value.create(),e.panel):n.is(BF)&&(e=new YN(e.query,n.value?UF:null));return e},provide:e=>HE.from(e,t=>t.panel)});class YN{constructor(t,n){this.query=t,this.panel=n}}const _9e=Tn.mark({class:"cm-searchMatch"}),A9e=Tn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),R9e=Wi.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(wh))}update(e){let t=e.state.field(wh);(t!=e.startState.field(wh)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Tn.none;let{view:n}=this,r=new Fh;for(let i=0,o=n.visibleRanges,s=o.length;io[i+1].from-2*250;)l=o[++i].to;e.highlight(n.state,a,l,(u,c)=>{let d=n.state.selection.ranges.some(p=>p.from==u&&p.to==c);r.add(u,c,d?A9e:_9e)})}return r.finish()}},{decorations:e=>e.decorations});function gT(e){return t=>{let n=t.state.field(wh,!1);return n&&n.query.spec.valid?e(t,n):xae(t)}}const B_=gT((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=ht.single(r.from,r.to),o=e.state.facet(u1);return e.dispatch({selection:i,effects:[jF(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),wae(e),!0}),U_=gT((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=ht.single(i.from,i.to),s=e.state.facet(u1);return e.dispatch({selection:o,effects:[jF(e,i),s.scrollToMatch(o.main,e)],userEvent:"select.search"}),wae(e),!0}),I9e=gT((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:ht.create(n.map(r=>ht.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),D9e=({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=[],s=0;for(let a=new Ry(e.doc,e.sliceDoc(r,i));!a.next().done;){if(o.length>1e3)return!1;a.value.from==r&&(s=o.length),o.push(ht.range(a.value.from,a.value.to))}return t(e.update({selection:ht.create(o,s),userEvent:"select.search.matches"})),!0},XG=gT((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 s=[],a,l,u=[];if(o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),o=t.nextMatch(n,o.from,o.to),u.push(un.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let c=s.length==0||s[0].from>=o.to?0:o.to-o.from-l.length;a=ht.single(o.from-c,o.to-c),u.push(jF(e,o)),u.push(n.facet(u1).scrollToMatch(a.main,e))}return e.dispatch({changes:s,selection:a,effects:u,userEvent:"input.replace"}),!0}),N9e=gT((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:o,to:s}=i;return{from:o,to:s,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:un.announce.of(r),userEvent:"input.replace.all"}),!0});function UF(e){return e.state.facet(u1).createPanel(e)}function LM(e,t){var n,r,i,o,s;let a=e.selection.main,l=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!l)return t;let u=e.facet(u1);return new Eae({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:(s=t==null?void 0:t.wholeWord)!==null&&s!==void 0?s:u.wholeWord})}function Tae(e){let t=VE(e,UF);return t&&t.dom.querySelector("[main-field]")}function wae(e){let t=Tae(e);t&&t==e.root.activeElement&&t.select()}const xae=e=>{let t=e.state.field(wh,!1);if(t&&t.panel){let n=Tae(e);if(n&&n!=e.root.activeElement){let r=LM(e.state,t.query.spec);r.valid&&e.dispatch({effects:ZE.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[BF.of(!0),t?ZE.of(LM(e.state,t.query.spec)):rr.appendConfig.of($9e)]});return!0},kae=e=>{let t=e.state.field(wh,!1);if(!t||!t.panel)return!1;let n=VE(e,UF);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:BF.of(!1)}),!0},P9e=[{key:"Mod-f",run:xae,scope:"editor search-panel"},{key:"F3",run:B_,shift:U_,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:B_,shift:U_,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:kae,scope:"editor search-panel"},{key:"Mod-Shift-l",run:D9e},{key:"Mod-Alt-g",run:f9e},{key:"Mod-d",run:T9e,preventDefault:!0}];class L9e{constructor(t){this.view=t;let n=this.query=t.state.field(wh).query.spec;this.commit=this.commit.bind(this),this.searchField=bi("input",{value:n.search,placeholder:Tl(t,"Find"),"aria-label":Tl(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=bi("input",{value:n.replace,placeholder:Tl(t,"Replace"),"aria-label":Tl(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=bi("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=bi("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=bi("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,o,s){return bi("button",{class:"cm-button",name:i,onclick:o,type:"button"},s)}this.dom=bi("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>B_(t),[Tl(t,"next")]),r("prev",()=>U_(t),[Tl(t,"previous")]),r("select",()=>I9e(t),[Tl(t,"all")]),bi("label",null,[this.caseField,Tl(t,"match case")]),bi("label",null,[this.reField,Tl(t,"regexp")]),bi("label",null,[this.wordField,Tl(t,"by word")]),...t.state.readOnly?[]:[bi("br"),this.replaceField,r("replace",()=>XG(t),[Tl(t,"replace")]),r("replaceAll",()=>N9e(t),[Tl(t,"replace all")])],bi("button",{name:"close",onclick:()=>kae(t),"aria-label":Tl(t,"close"),type:"button"},["×"])])}commit(){let t=new Eae({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:ZE.of(t)}))}keydown(t){YBe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?U_:B_)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),XG(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(ZE)&&!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(u1).top}}function Tl(e,t){return e.state.phrase(t)}const Fx=30,Bx=/[\s\.,:;?!]/;function jF(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-Fx),s=Math.min(i,n+Fx),a=e.state.sliceDoc(o,s);if(o!=r.from){for(let l=0;la.length-Fx;l--)if(!Bx.test(a[l-1])&&Bx.test(a[l])){a=a.slice(0,l);break}}return un.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${r.number}.`)}const M9e=un.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"}}),$9e=[wh,em.low(R9e),M9e];class zF{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=Oi(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(_ae(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 KG(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 F9e(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+$/]:F9e(t);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:t,validFor:n}:null}}function B9e(e,t){return n=>{for(let r=Oi(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 JG{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function xh(e){return e.selection.main.from}function _ae(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 Aae=Pc.define();function U9e(e,t,n,r){let{main:i}=e.selection,o=n-i.from,s=r-i.from;return Object.assign(Object.assign({},e.changeByRange(a=>a!=i&&n!=r&&e.sliceDoc(a.from+o,a.from+s)!=e.sliceDoc(n,r)?{range:a}:{changes:{from:a.from+o,to:r==i.from?a.to:a.from+s,insert:t},range:ht.cursor(a.from+o+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const eq=new WeakMap;function j9e(e){if(!Array.isArray(e))return e;let t=eq.get(e);return t||eq.set(e,t=Cae(e)),t}const j_=rr.define(),XE=rr.define();class z9e{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&I<=57||I>=97&&I<=122?2:I>=65&&I<=90?1:0:(_=pF(I))!=_.toLowerCase()?1:_!=_.toUpperCase()?2:0;(!S||w==1&&E||C==0&&w!=0)&&(n[d]==I||r[d]==I&&(p=!0)?s[d++]=S:s.length&&(O=!1)),C=w,S+=wu(I)}return d==l&&s[0]==0&&O?this.result(-100+(p?-200:0),s,t):m==l&&g==0?this.ret(-200-t.length+(v==t.length?0:-100),[0,v]):a>-1?this.ret(-700-t.length,[a,a+this.pattern.length]):m==l?this.ret(-900-t.length,[g,v]):d==l?this.result(-100+(p?-200:0)+-700+(O?0:-1100),s,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 s of n){let a=s+(this.astral?wu(Ds(r,s)):1);o&&i[o-1]==s?i[o-1]=a:(i[o++]=s,i[o++]=a)}return this.ret(t-r.length,i)}}const Ls=hn.define({combine(e){return zd(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:V9e,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=>tq(t(r),n(r)),optionClass:(t,n)=>r=>tq(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function tq(e,t){return e?t?e+" "+t:e:t}function V9e(e,t,n,r,i,o){let s=e.textDirection==Ri.RTL,a=s,l=!1,u="top",c,d,p=t.left-i.left,m=i.right-t.right,g=r.right-r.left,v=r.bottom-r.top;if(a&&p=v||S>t.top?c=n.bottom-t.top:(u="bottom",c=t.bottom-n.top)}let E=(t.bottom-t.top)/o.offsetHeight,O=(t.right-t.left)/o.offsetWidth;return{style:`${u}: ${c/E}px; max-width: ${d/O}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":a?"left":"right")}}function H9e(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 s=document.createElement("span");s.className="cm-completionLabel";let a=n.displayLabel||n.label,l=0;for(let u=0;ul&&s.appendChild(document.createTextNode(a.slice(l,c)));let p=s.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(a.slice(c,d))),p.className="cm-completionMatchedText",l=d}return ln.position-r.position).map(n=>n.render)}function GN(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 W9e{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:s}=i.open,a=t.state.facet(Ls);this.optionContent=H9e(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=GN(o.length,s,a.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(Ls).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:XE.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:s,disabled:a}=r.open;(!i.open||i.open.options!=o)&&(this.range=GN(o.length,s,t.state.facet(Ls).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),a!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}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=GN(n.options.length,n.selected,this.view.state.facet(Ls).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(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,r)}).catch(s=>Pu(this.view.state,s,"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&&Y9e(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 s=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:s.innerWidth,bottom:s.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 m=i.appendChild(document.createElement("completion-section"));m.textContent=p}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+s,c.setAttribute("role","option");let d=this.optionClass(a);d&&(c.className=d);for(let p of this.optionContent){let m=p(a,this.view.state,this.view,l);m&&c.appendChild(m)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew W9e(n,e,t)}function Y9e(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 nq(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function G9e(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 JG(c,l.source,u?u(c):[],1e9-n.length));else{let c=new z9e(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 JG(d,l.source,p,c.score+(d.boost||0)))}}}if(r){let l=Object.create(null),u=0,c=(d,p)=>{var m,g;return((m=d.rank)!==null&&m!==void 0?m:1e9)-((g=p.rank)!==null&&g!==void 0?g:1e9)||(d.namec.score-u.score||a(u.completion,c.completion))){let u=l.completion;!s||s.label!=u.label||s.detail!=u.detail||s.type!=null&&u.type!=null&&s.type!=u.type||s.apply!=u.apply||s.boost!=u.boost?o.push(l):nq(l.completion)>nq(s)&&(o[o.length-1]=l),s=l.completion}return o}class db{constructor(t,n,r,i,o,s){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=o,this.disabled=s}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new db(this.options,rq(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,o){let s=G9e(t,n);if(!s.length)return i&&t.some(l=>l.state==1)?new db(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let a=n.facet(Ls).selectOnOpen?0:-1;if(i&&i.selected!=a&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:J9e,above:o.aboveCursor},i?i.timestamp:Date.now(),a,!1)}map(t){return new db(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class z_{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new z_(X9e,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(Ls),o=(r.override||n.languageDataAt("autocomplete",xh(n)).map(j9e)).map(a=>(this.active.find(u=>u.source==a)||new Ka(a,this.active.some(u=>u.state!=0)?1:0)).update(t,r));o.length==this.active.length&&o.every((a,l)=>a==this.active[l])&&(o=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||o.some(a=>a.hasResult()&&t.changes.touchesRange(a.from,a.to))||!q9e(o,this.active)?s=db.build(o,n,this.id,s,r):s&&s.disabled&&!o.some(a=>a.state==1)&&(s=null),!s&&o.every(a=>a.state!=1)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new Ka(a.source,0):a));for(let a of t.effects)a.is(Iae)&&(s=s&&s.setSelected(a.value,this.id));return o==this.active&&s==this.open?this:new z_(o,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:Z9e}}function q9e(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const X9e=[];function MM(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Ka{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=MM(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new Ka(i.source,0));for(let o of t.effects)if(o.is(j_))i=new Ka(i.source,1,o.value?xh(t.state):-1);else if(o.is(XE))i=new Ka(i.source,0);else if(o.is(Rae))for(let s of o.value)s.source==i.source&&(i=s);return i}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new Ka(this.source,1)}handleChange(t){return t.changes.touchesRange(xh(t.startState))?new Ka(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Ka(this.source,this.state,t.mapPos(this.explicitPos))}}class Pb extends Ka{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),s=t.changes.mapPos(this.to,1),a=xh(t.state);if((this.explicitPos<0?a<=o:as||n=="delete"&&xh(t.startState)==this.from)return new Ka(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return K9e(this.result.validFor,t.state,o,s)?new Pb(this.source,l,this.result,o,s):this.result.update&&(u=this.result.update(this.result,o,s,new zF(t.state,a,l>=0)))?new Pb(this.source,l,u,u.from,(i=u.to)!==null&&i!==void 0?i:xh(t.state)):new Ka(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Ka(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new Pb(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function K9e(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):_ae(e,!0).test(i)}const Rae=rr.define({map(e,t){return e.map(n=>n.map(t))}}),Iae=rr.define(),Pl=vs.define({create(){return z_.start()},update(e,t){return e.update(t)},provide:e=>[xF.from(e,t=>t.tooltip),un.contentAttributes.from(e,t=>t.attrs)]});function Dae(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Pl).active.find(i=>i.source==t.source);return r instanceof Pb?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},U9e(e.state,n,r.from,r.to)),{annotations:Aae.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const J9e=Q9e(Pl,Dae);function Ux(e,t="option"){return n=>{let r=n.state.field(Pl,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:s-1;return a<0?a=t=="page"?0:s-1:a>=s&&(a=t=="page"?s-1:0),n.dispatch({effects:Iae.of(a)}),!0}}const eje=e=>{let t=e.state.field(Pl,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(Pl,!1)?(e.dispatch({effects:j_.of(!0)}),!0):!1,nje=e=>{let t=e.state.field(Pl,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:XE.of(null)}),!0)};class rje{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const ije=50,oje=1e3,sje=Wi.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(Pl).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(Pl);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Pl)==t)return;let n=e.transactions.some(i=>(i.selection||i.docChanged)&&!MM(i));for(let i=0;iije&&Date.now()-o.time>oje){for(let s of o.context.abortListeners)try{s()}catch(a){Pu(this.view.state,a)}o.context.abortListeners=null,this.running.splice(i--,1)}else o.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(i=>i.effects.some(o=>o.is(j_)))&&(this.pendingStart=!0);let r=this.pendingStart?50:e.state.facet(Ls).activateOnTypingDelay;if(this.debounceUpdate=t.active.some(i=>i.state==1&&!this.running.some(o=>o.active.source==i.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let i of e.transactions)MM(i)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(Pl);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=xh(t),r=new zF(t,n,e.explicitPos==n),i=new rje(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:XE.of(null)}),Pu(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(Ls).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(Ls);for(let r=0;rs.source==i.active.source);if(o&&o.state==1)if(i.done==null){let s=new Ka(i.active.source,0);for(let a of i.updates)s=s.update(a,n);s.state!=1&&t.push(s)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:Rae.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Pl,!1);if(t&&t.tooltip&&this.view.state.facet(Ls).closeOnBlur){let n=t.open&&use(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:XE.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:j_.of(!1)}),20),this.composing=0}}}),Nae=un.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 aje{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class VF{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Ps.TrackDel),r=t.mapPos(this.to,1,Ps.TrackDel);return n==null||r==null?null:new VF(this.field,n,r)}}class HF{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],o=t.doc.lineAt(n),s=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(r.length){let u=s,c=/^\t*/.exec(l)[0].length;for(let d=0;dnew VF(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:a}}static parse(t){let n=[],r=[],i=[],o;for(let s of t.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let a=o[1]?+o[1]:null,l=o[2]||o[3]||"",u=-1;for(let c=0;c=u&&d.field++}i.push(new aje(u,r.length,o.index,o.index+l.length)),s=s.slice(0,o.index)+l+s.slice(o.index+o[0].length)}for(let a;a=/\\([{}])/.exec(s);){s=s.slice(0,a.index)+a[1]+s.slice(a.index+a[0].length);for(let l of i)l.line==r.length&&l.from>a.index&&(l.from--,l.to--)}r.push(s)}return new HF(r,i)}}let lje=Tn.widget({widget:new class extends Lc{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),uje=Tn.mark({class:"cm-snippetField"});class c1{constructor(t,n){this.ranges=t,this.active=n,this.deco=Tn.set(t.map(r=>(r.from==r.to?lje:uje).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 c1(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 bT=rr.define({map(e,t){return e&&e.map(t)}}),cje=rr.define(),KE=vs.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(bT))return n.value;if(n.is(cje)&&e)return new c1(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=>un.decorations.from(e,t=>t?t.deco:Tn.none)});function WF(e,t){return ht.create(e.filter(n=>n.field==t).map(n=>ht.range(n.from,n.to)))}function dje(e){let t=HF.parse(e);return(n,r,i,o)=>{let{text:s,ranges:a}=t.instantiate(n.state,i),l={changes:{from:i,to:o,insert:Ur.of(s)},scrollIntoView:!0,annotations:r?[Aae.of(r),gs.userEvent.of("input.complete")]:void 0};if(a.length&&(l.selection=WF(a,0)),a.some(u=>u.field>0)){let u=new c1(a,0),c=l.effects=[bT.of(u)];n.state.field(KE,!1)===void 0&&c.push(rr.appendConfig.of([KE,gje,bje,Nae]))}n.dispatch(n.state.update(l))}}function Pae(e){return({state:t,dispatch:n})=>{let r=t.field(KE,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,o=e>0&&!r.ranges.some(s=>s.field==i+e);return n(t.update({selection:WF(r.ranges,i),effects:bT.of(o?null:new c1(r.ranges,i)),scrollIntoView:!0})),!0}}const fje=({state:e,dispatch:t})=>e.field(KE,!1)?(t(e.update({effects:bT.of(null)})),!0):!1,pje=Pae(1),hje=Pae(-1),mje=[{key:"Tab",run:pje,shift:hje},{key:"Escape",run:fje}],iq=hn.define({combine(e){return e.length?e[0]:mje}}),gje=em.highest(o1.compute([iq],e=>e.facet(iq)));function Ya(e,t){return Object.assign(Object.assign({},t),{apply:dje(e)})}const bje=un.domEventHandlers({mousedown(e,t){let n=t.state.field(KE,!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:WF(n.ranges,i.field),effects:bT.of(n.ranges.some(o=>o.field>i.field)?new c1(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),JE={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Wm=rr.define({map(e,t){let n=t.mapPos(e,-1,Ps.TrackAfter);return n??void 0}}),QF=new class extends Sg{};QF.startSide=1;QF.endSide=-1;const Lae=vs.define({create(){return Cr.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of t.effects)n.is(Wm)&&(e=e.update({add:[QF.range(n.value,n.value+1)]}));return e}});function yje(){return[Oje,Lae]}const qN="()[]{}<>";function Mae(e){for(let t=0;t{if((vje?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&wu(Ds(r,0))==1||t!=i.from||n!=i.to)return!1;let o=Tje(e.state,r);return o?(e.dispatch(o),!0):!1}),Eje=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=$ae(e,e.selection.main.head).brackets||JE.brackets,i=null,o=e.changeByRange(s=>{if(s.empty){let a=wje(e.doc,s.head);for(let l of r)if(l==a&&cR(e.doc,s.head)==Mae(Ds(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:ht.cursor(s.head-l.length)}}return{range:i=s}});return i||t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},Sje=[{key:"Backspace",run:Eje}];function Tje(e,t){let n=$ae(e,e.selection.main.head),r=n.brackets||JE.brackets;for(let i of r){let o=Mae(Ds(i,0));if(t==i)return o==i?Cje(e,i,r.indexOf(i+i+i)>-1,n):xje(e,i,o,n.before||JE.before);if(t==o&&Fae(e,e.selection.main.from))return kje(e,i,o)}return null}function Fae(e,t){let n=!1;return e.field(Lae).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function cR(e,t){let n=e.sliceString(t,t+2);return n.slice(0,wu(Ds(n,0)))}function wje(e,t){let n=e.sliceString(t-2,t);return wu(Ds(n,0))==n.length?n:n.slice(1)}function xje(e,t,n,r){let i=null,o=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:Wm.of(s.to+t.length),range:ht.range(s.anchor+t.length,s.head+t.length)};let a=cR(e.doc,s.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:t+n,from:s.head},effects:Wm.of(s.head+t.length),range:ht.cursor(s.head+t.length)}:{range:i=s}});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function kje(e,t,n){let r=null,i=e.changeByRange(o=>o.empty&&cR(e.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:ht.cursor(o.head+n.length)}:r={range:o});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function Cje(e,t,n,r){let i=r.stringPrefixes||JE.stringPrefixes,o=null,s=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:t,from:a.to}],effects:Wm.of(a.to+t.length),range:ht.range(a.anchor+t.length,a.head+t.length)};let l=a.head,u=cR(e.doc,l),c;if(u==t){if(oq(e,l))return{changes:{insert:t+t,from:l},effects:Wm.of(l+t.length),range:ht.cursor(l+t.length)};if(Fae(e,l)){let p=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+p.length,insert:p},range:ht.cursor(l+p.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(c=sq(e,l-2*t.length,i))>-1&&oq(e,c))return{changes:{insert:t+t+t+t,from:l},effects:Wm.of(l+t.length),range:ht.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=Hi.Word&&sq(e,l,i)>-1&&!_je(e,l,t,i))return{changes:{insert:t+t,from:l},effects:Wm.of(l+t.length),range:ht.cursor(l+t.length)}}return{range:o=a}});return o?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function oq(e,t){let n=Oi(e).resolveInner(t+1);return n.parent&&n.from==t}function _je(e,t,n,r){let i=Oi(e).resolveInner(t,-1),o=r.reduce((s,a)=>Math.max(s,a.length),0);for(let s=0;s<5;s++){let a=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),l=a.indexOf(n);if(!l||l>-1&&r.indexOf(a.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 sq(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Hi.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))!=Hi.Word)return o}return-1}function Aje(e={}){return[Pl,Ls.of(e),sje,Rje,Nae]}const Bae=[{key:"Ctrl-Space",run:tje},{key:"Escape",run:nje},{key:"ArrowDown",run:Ux(!0)},{key:"ArrowUp",run:Ux(!1)},{key:"PageDown",run:Ux(!0,"page")},{key:"PageUp",run:Ux(!1,"page")},{key:"Enter",run:eje}],Rje=em.highest(o1.computeN([Ls],e=>e.facet(Ls).defaultKeymap?[Bae]:[]));class Ije{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Nm{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,o=r.facet(zae).markerFilter;o&&(i=o(i,r));let s=Tn.set(i.map(a=>a.from==a.to||a.from==a.to-1&&r.doc.lineAt(a.from).to==a.from?Tn.widget({widget:new Uje(a),diagnostic:a}).range(a.from):Tn.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity+(a.markClass?" "+a.markClass:"")},diagnostic:a,inclusive:!0}).range(a.from,a.to)),!0);return new Nm(s,n,Iy(s))}}function Iy(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,o,{spec:s})=>{if(!(t&&s.diagnostic!=t))return r=new Ije(i,o,s.diagnostic),!1}),r}function Dje(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(Uae))||e.changes.touchesRange(n.from,n.to))}function Nje(e,t){return e.field(zl,!1)?t:t.concat(rr.appendConfig.of(Vje))}const Uae=rr.define(),YF=rr.define(),jae=rr.define(),zl=vs.define({create(){return new Nm(Tn.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=Iy(n,e.selected.diagnostic,i)||Iy(n,null,i)}e=new Nm(n,e.panel,r)}for(let n of t.effects)n.is(Uae)?e=Nm.init(n.value,e.panel,t.state):n.is(YF)?e=new Nm(e.diagnostics,n.value?dR.open:null,e.selected):n.is(jae)&&(e=new Nm(e.diagnostics,e.panel,n.value));return e},provide:e=>[HE.from(e,t=>t.panel),un.decorations.from(e,t=>t.diagnostics)]}),Pje=Tn.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function Lje(e,t,n){let{diagnostics:r}=e.state.field(zl),i=[],o=2e8,s=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)&&(tHae(e,n,!1)))}const $je=e=>{let t=e.state.field(zl,!1);(!t||!t.panel)&&e.dispatch({effects:Nje(e.state,[YF.of(!0)])});let n=VE(e,dR.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},aq=e=>{let t=e.state.field(zl,!1);return!t||!t.panel?!1:(e.dispatch({effects:YF.of(!1)}),!0)},Fje=e=>{let t=e.state.field(zl,!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)},Bje=[{key:"Mod-Shift-m",run:$je,preventDefault:!0},{key:"F8",run:Fje}],zae=hn.define({combine(e){return Object.assign({sources:e.map(t=>t.source).filter(t=>t!=null)},zd(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 Vae(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 Hae(e,t,n){var r;let i=n?Vae(t.actions):[];return bi("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},bi("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map((o,s)=>{let a=!1,l=p=>{if(p.preventDefault(),a)return;a=!0;let m=Iy(e.state.field(zl).diagnostics,t);m&&o.apply(e,m.from,m.to)},{name:u}=o,c=i[s]?u.indexOf(i[s]):-1,d=c<0?u:[u.slice(0,c),bi("u",u.slice(c,c+1)),u.slice(c+1)];return bi("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[s]})"`}.`},d)}),t.source&&bi("div",{class:"cm-diagnosticSource"},t.source))}class Uje extends Lc{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return bi("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class lq{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Hae(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class dR{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)aq(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],s=Vae(o.actions);for(let a=0;a{for(let o=0;oaq(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(zl).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:s,panel:a})=>{let l=a.height/this.list.offsetHeight;s.topa.bottom&&(this.list.scrollTop+=(s.bottom-a.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(zl),r=Iy(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:jae.of(r)})}static open(t){return new dR(t)}}function jje(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function jx(e){return jje(``,'width="6" height="3"')}const zje=un.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:jx("#d11")},".cm-lintRange-warning":{backgroundImage:jx("orange")},".cm-lintRange-info":{backgroundImage:jx("#999")},".cm-lintRange-hint":{backgroundImage:jx("#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}}}),Vje=[zl,un.decorations.compute([zl],e=>{let{selected:t,panel:n}=e.field(zl);return!t||!n||t.from==t.to?Tn.none:Tn.set([Pje.range(t.from,t.to)])}),N8e(Lje,{hideOn:Dje}),zje],Hje=[z8e(),W8e(),c8e(),u7e(),$Ue(),JBe(),i8e(),Ar.allowMultipleSelections.of(!0),xUe(),Nse(jUe,{fallback:!0}),GUe(),yje(),Aje(),S8e(),x8e(),g8e(),m9e(),o1.of([...Sje,...u9e,...P9e,...y7e,...NUe,...Bae,...Bje])];class V_{static create(t,n,r,i,o){let s=i+(i<<8)+t+(n<<4)|0;return new V_(t,n,r,s,o,[],[])}constructor(t,n,r,i,o,s,a){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=o,this.children=s,this.positions=a,this.hashProp=[[Gn.contextHash,i]]}addChild(t,n){t.prop(Gn.contextHash)!=this.hash&&(t=new Xr(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 Xr(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,o,s)=>new Xr(Ko.none,i,o,s,this.hashProp)})}}var Zt;(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"})(Zt||(Zt={}));class Wje{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class Qje{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 LO(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==Zt.OrderedList?ZF:qF)(n,t,!1);return r>0&&(e.type!=Zt.BulletList||GF(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const Wae={[Zt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(_r(Zt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Wu(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Zt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Zt.OrderedList]:uq,[Zt.BulletList]:uq,[Zt.Document](){return!0}};function Wu(e){return e==32||e==9||e==10||e==13}function LO(e,t=0){for(;tn&&Wu(e.charCodeAt(t-1));)t--;return t}function Qae(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 Gae(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function qF(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||Wu(e.text.charCodeAt(e.pos+1)))&&(!n||Gae(t,Zt.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 qae(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function Zae(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,Kae=/\?>/,FM=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,qse=/\?>/,L3=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(o)return e.append(_r(Zt.Comment,n,n+1+o[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(_r(Zt.ProcessingInstruction,n,n+1+s[0].length));let a=/^(?:![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 a?e.append(_r(Zt.HTMLTag,n,n+1+a[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),s=tS.test(i),a=tS.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!a||l||s),d=!l&&(!s||u||a),p=c&&(t==42||!d||s),m=d&&(t==42||!c||a);return e.append(new dc(t==95?ile:ole,n,r,(p?1:0)|(m?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(_r(Zt.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(_r(Zt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new dc(Av,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new dc(fq,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 dc&&(i.type==Av||i.type==fq)){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),s=e.parts[r]=Jje(e,o,i.type==Av?Zt.Link:Zt.Image,i.from,n+1);if(i.type==Av)for(let a=0;at?_r(Zt.URL,t+n,o+n):o==e.length?null:!1}}function ale(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,s=!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 dc(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 v=this.parts[l];if(v instanceof dc&&v.side&1&&v.type==i.type&&!(o&&(i.side&1||v.side&2)&&(v.to-v.from+s)%3==0&&((v.to-v.from)%3||s%3))){a=v;break}}if(!a)continue;let u=i.type.resolve,c=[],d=a.from,p=i.to;if(o){let v=Math.min(2,a.to-a.from,s);d=a.to-v,p=i.from+v,u=v==1?"Emphasis":"StrongEmphasis"}a.type.mark&&c.push(this.elt(a.type.mark,d,a.to));for(let v=l+1;v=0;n--){let r=this.parts[n];if(r instanceof dc&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return LO(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?_r(this.parser.getNodeType(t),n,r,i):new rle(t,n)}}function UM(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(Gn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=t.absoluteLineStart,s=o,a=t.block.children.length,l=s,u=a;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=ule(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let d=new Xr(t.parser.nodeSet.types[Zt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,c)}if(n.type.is("Block")&&(tze.indexOf(n.type.id)<0?(s=n.to-r,a=t.block.children.length):(s=l,a=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>a;)t.block.children.pop(),t.block.positions.pop();return s-o}};function ule(e,t){let n=e;for(let r=1;rzx[e]),Object.keys(zx).map(e=>qje[e]),Object.keys(zx),Zje,Wae,Object.keys(XN).map(e=>XN[e]),Object.keys(XN),[]);function oze(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let s=i?i.from:n;if(s>o&&r.push({from:o,to:s}),!i)break;o=i.to}return r}function sze(e){let{codeParser:t,htmlParser:n}=e;return{wrap:yse((i,o)=>{let s=i.type.id;if(t&&(s==Zt.CodeBlock||s==Zt.FencedCode)){let a="";if(s==Zt.FencedCode){let u=i.node.getChild(Zt.CodeInfo);u&&(a=o.read(u.from,u.to))}let l=t(a);if(l)return{parser:l,overlay:u=>u.type.id==Zt.CodeText}}else if(n&&(s==Zt.HTMLBlock||s==Zt.HTMLTag))return{parser:n,overlay:oze(i.node,i.from,i.to)};return null})}}const aze={resolve:"Strikethrough",mark:"StrikethroughMark"},lze={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":ve.strikethrough}},{name:"StrikethroughMark",style:ve.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),s=/\s|^$/.test(i),a=tS.test(r),l=tS.test(i);return e.addDelimiter(aze,n,n+2,!s&&(!l||o||a),!o&&(!a||s||l))},after:"Emphasis"}]};function MO(e,t,n=0,r,i=0){let o=0,s=!0,a=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+a,i+l,e.parser.parseInline(t.slice(a,l),i+a)))};for(let d=n;d-1)&&o++,s=!1,r&&(a>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),a=l=-1):(u||p!=32&&p!=9)&&(a<0&&(a=d),l=d+1),u=!u&&p==92}return a>-1&&(o++,r&&c()),o}function hq(e,t){for(let n=t;ni instanceof mq)||!hq(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return cle.test(r)&&MO(e,t.text,t.basePos)==MO(e,r,t.basePos)},before:"SetextHeading"}]};class cze{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 dze={defineNodes:[{name:"Task",block:!0,style:ve.list},{name:"TaskMarker",style:ve.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new cze:null},after:"SetextHeading"}]},gq=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,bq=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,fze=/[\w-]+\.[\w-]+($|\/)/,yq=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,vq=/\/[a-zA-Z\d@.]+/gy;function Oq(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==")"&&Oq(e,t,r,")")>Oq(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 Eq(e,t){yq.lastIndex=t;let n=yq.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 hze={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;gq.lastIndex=r;let i=gq.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=pze(e.text,r+i[0].length):i[3]?o=Eq(e.text,r):(o=Eq(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(vq.lastIndex=o,i=vq.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)}}]},mze=[uze,dze,lze,hze];function dle(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let s=[r.elt(n,o,o+1)];for(let a=o+1;an%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new H_(t,[],n,r,r,0,[],0,i?new Tq(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,s=o.dynamicPrecedence(i);if(s&&(this.score+=s),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.lastBigReductionSizea;)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&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(n==r)return;if(s.buffer[a-2]>=n){s.buffer[a-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let o=t,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new H_(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 vze(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,s;ol&1&&a==s)||i.push(n[o],s)}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 s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let a=(s>>19)-o;if(a>1){let l=s&65535,u=this.stack.length-a*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return a<<19|65536|l}}else{let a=r(s,o+1);if(a!=null)return a}})};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 Tq{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class vze{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 W_{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 W_(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 W_(this.stack,this.pos,this.index)}}function sO(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class Kk{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const wq=new Kk;class Oze{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=wq,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 s=this.ranges[++i];o+=s.from-r.to,r=s}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&&ra.to&&(this.chunk2=this.chunk2.slice(0,a.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=wq,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 Lb{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;fle(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}Lb.prototype.contextual=Lb.prototype.fallback=Lb.prototype.extend=!1;class Q_{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?sO(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,s=t.resolveOffset(1,1);if(fle(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}Q_.prototype.contextual=Lb.prototype.fallback=Lb.prototype.extend=!1;class $c{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function fle(e,t,n,r,i,o){let s=0,a=1<0){let g=e[m];if(l.allows(g)&&(t.token.value==-1||t.token.value==g||Eze(g,t.token.value,i,o))){t.acceptToken(g);break}}let c=t.next,d=0,p=e[s+2];if(t.next<0&&p>d&&e[u+p*3-3]==65535){s=e[u+p*3-1];continue e}for(;d>1,g=u+m+(m<<1),v=e[g],E=e[g+1]||65536;if(c=E)d=m+1;else{s=e[g+2],t.advance();continue e}}break}}function xq(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function Eze(e,t,n,r){let i=xq(n,r,t);return i<0||xq(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 Sze{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?kq(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?kq(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(o instanceof Xr){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+o.length}}}class Tze{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new Kk)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,s=i.stateSlot(t.state,3),a=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 Kk,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 Kk,{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 s=0;s=0&&r.p.parser.dialect.allows(a>>1)){a&1?t.extended=a>>1:t.value=a>>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 Sze(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[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(a);else{if(this.advanceStack(a,r,t))continue;{i||(i=[],o=[]),i.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!r.length){let s=i&&kze(i);if(s)return wl&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw wl&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(s)return wl&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((a,l)=>l.score-a.score);r.length>s;)r.pop();r.some(a=>a.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&u.buffer.length>500)if((a.score-u.score||a.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,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(Gn.contextHash)||0)==c))return t.useNode(d,p),wl&&console.log(s+this.stackID(t)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof Xr)||d.children.length==0||d.positions[0]>0)break;let m=d.children[0];if(m instanceof Xr&&d.positions[0]==0)d=m;else break}}let a=o.stateSlot(t.state,4);if(a>0)return t.reduce(a),wl&&console.log(s+this.stackID(t)+` (via always-reduce ${o.getName(a&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(g):r.push(g)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return Cq(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let s=0;s ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),wl&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,r))))continue;let d=a.split(),p=c;for(let m=0;d.forceReduce()&&m<10&&(wl&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));m++)wl&&(p=this.stackID(d)+" -> ");for(let m of a.recoverByInsert(l))wl&&console.log(c+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,r);this.stream.end>a.pos?(u==a.pos&&(u++,l=0),a.recoverByDelete(l,u),wl&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),Cq(a,r)):(!i||i.scoree;class ple{constructor(t){this.start=t.start,this.shift=t.shift||JN,this.reduce=t.reduce||JN,this.reuse=t.reuse||JN,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Ny extends AF{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 a=0;at.topRules[a][1]),i=[];for(let a=0;a=0)o(c,l,a[u++]);else{let d=a[u+-c];for(let p=-c;p>0;p--)o(a[u++],l,d);u++}}}this.nodeSet=new cT(n.map((a,l)=>Ko.define({name:l>=this.minRepeatTerm?void 0:a,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=pse;let s=sO(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;atypeof a=="number"?new Lb(s,a):a),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 wze(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 s=i[o++],a=s&1,l=i[o++];if(a&&r)return l;for(let u=o+(s>>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=Cf(this.data,o+2);else break;i=n(Cf(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=Cf(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,s)=>s&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(Ny.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(a=>a.from==r.external);if(!o)return r;let s=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=_q(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let o of t.split(" ")){let s=n.indexOf(o);s>=0&&(r[s]=!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 Cze=54,_ze=1,Aze=55,Rze=2,Ize=56,Dze=3,Aq=4,Nze=5,Y_=6,hle=7,mle=8,gle=9,ble=10,Pze=11,Lze=12,Mze=13,eP=57,$ze=14,Rq=58,yle=20,Fze=22,vle=23,Bze=24,jM=26,Ole=27,Uze=28,jze=31,zze=34,Vze=36,Hze=37,Wze=0,Qze=1,Yze={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},Gze={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Iq={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 qze(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function Ele(e){return e==9||e==10||e==13||e==32}let Dq=null,Nq=null,Pq=0;function zM(e,t){let n=e.pos+t;if(Pq==n&&Nq==e)return Dq;let r=e.peek(t);for(;Ele(r);)r=e.peek(++t);let i="";for(;qze(r);)i+=String.fromCharCode(r),r=e.peek(++t);return Nq=e,Pq=n,Dq=i?i.toLowerCase():r==Zze||r==Xze?void 0:null}const Sle=60,G_=62,XF=47,Zze=63,Xze=33,Kze=45;function Lq(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new Lq(zM(r,1)||"",e):e},reduce(e,t){return t==yle&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==Y_||i==Vze?new Lq(zM(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),tVe=new $c((e,t)=>{if(e.next!=Sle){e.next<0&&t.context&&e.acceptToken(eP);return}e.advance();let n=e.next==XF;n&&e.advance();let r=zM(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?$ze:Y_);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(Pze);if(i&&Gze[i])return e.acceptToken(eP,-2);if(t.dialectEnabled(Wze))return e.acceptToken(Lze);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(Mze)}else{if(r=="script")return e.acceptToken(hle);if(r=="style")return e.acceptToken(mle);if(r=="textarea")return e.acceptToken(gle);if(Yze.hasOwnProperty(r))return e.acceptToken(ble);i&&Iq[i]&&Iq[i][r]?e.acceptToken(eP,-1):e.acceptToken(Y_)}},{contextual:!0}),nVe=new $c(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(Rq);break}if(e.next==Kze)t++;else if(e.next==G_&&t>=2){n>=3&&e.acceptToken(Rq,-2);break}else t=0;e.advance()}});function rVe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const iVe=new $c((e,t)=>{if(e.next==XF&&e.peek(1)==G_){let n=t.dialectEnabled(Qze)||rVe(t.context);e.acceptToken(n?Nze:Aq,2)}else e.next==G_&&e.acceptToken(Aq,1)});function KF(e,t,n){let r=2+e.length;return new $c(i=>{for(let o=0,s=0,a=0;;a++){if(i.next<0){a&&i.acceptToken(t);break}if(o==0&&i.next==Sle||o==1&&i.next==XF||o>=2&&os?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&a){i.acceptToken(t,1);break}else o=s=0;i.advance()}})}const oVe=KF("script",Cze,_ze),sVe=KF("style",Aze,Rze),aVe=KF("textarea",Ize,Dze),lVe=s1({"Text RawText":ve.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":ve.angleBracket,TagName:ve.tagName,"MismatchedCloseTag/TagName":[ve.tagName,ve.invalid],AttributeName:ve.attributeName,"AttributeValue UnquotedAttributeValue":ve.attributeValue,Is:ve.definitionOperator,"EntityReference CharacterReference":ve.character,Comment:ve.blockComment,ProcessingInst:ve.processingInstruction,DoctypeDecl:ve.documentMeta}),uVe=Ny.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:eVe,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:[lVe],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=a.type.id;if(u==Uze)return tP(a,l,n);if(u==jze)return tP(a,l,r);if(u==zze)return tP(a,l,i);if(u==yle&&o.length){let c=a.node,d=c.firstChild,p=d&&Mq(d,l),m;if(p){for(let g of o)if(g.tag==p&&(!g.attrs||g.attrs(m||(m=Tle(c,l))))){let v=c.lastChild,E=v.type.id==Hze?v.from:c.to;if(E>d.to)return{parser:g.parser,overlay:[{from:d.to,to:E}]}}}}if(s&&u==vle){let c=a.node,d;if(d=c.firstChild){let p=s[l.read(d.from,d.to)];if(p)for(let m of p){if(m.tagName&&m.tagName!=Mq(c.parent,l))continue;let g=c.lastChild;if(g.type.id==jM){let v=g.from+1,E=g.lastChild,O=g.to-(E&&E.isError?0:1);if(O>v)return{parser:m.parser,overlay:[{from:v,to:O}]}}else if(g.type.id==Ole)return{parser:m.parser,overlay:[{from:g.from,to:g.to}]}}}}return null})}const cVe=99,$q=1,dVe=100,fVe=101,Fq=2,xle=[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],pVe=58,hVe=40,kle=95,mVe=91,Jk=45,gVe=46,bVe=35,yVe=37,vVe=38,OVe=92,EVe=10;function nS(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function SVe(e){return e>=48&&e<=57}const TVe=new $c((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(nS(o)||o==Jk||o==kle||n&&SVe(o))!n&&(o!=Jk||i>0)&&(n=!0),r===i&&o==Jk&&r++,e.advance();else if(o==OVe&&e.peek(1)!=EVe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==hVe?dVe:r==2&&t.canShift(Fq)?Fq:fVe);break}}}),wVe=new $c(e=>{if(xle.includes(e.peek(-1))){let{next:t}=e;(nS(t)||t==kle||t==bVe||t==gVe||t==mVe||t==pVe&&nS(e.peek(1))||t==Jk||t==vVe)&&e.acceptToken(cVe)}}),xVe=new $c(e=>{if(!xle.includes(e.peek(-1))){let{next:t}=e;if(t==yVe&&(e.advance(),e.acceptToken($q)),nS(t)){do e.advance();while(nS(e.next));e.acceptToken($q)}}}),kVe=s1({"AtKeyword import charset namespace keyframes media supports":ve.definitionKeyword,"from to selector":ve.keyword,NamespaceName:ve.namespace,KeyframeName:ve.labelName,KeyframeRangeName:ve.operatorKeyword,TagName:ve.tagName,ClassName:ve.className,PseudoClassName:ve.constant(ve.className),IdName:ve.labelName,"FeatureName PropertyName":ve.propertyName,AttributeName:ve.attributeName,NumberLiteral:ve.number,KeywordQuery:ve.keyword,UnaryQueryOp:ve.operatorKeyword,"CallTag ValueName":ve.atom,VariableName:ve.variableName,Callee:ve.operatorKeyword,Unit:ve.unit,"UniversalSelector NestingSelector":ve.definitionOperator,MatchOp:ve.compareOperator,"ChildOp SiblingOp, LogicOp":ve.logicOperator,BinOp:ve.arithmeticOperator,Important:ve.modifier,Comment:ve.blockComment,ColorLiteral:ve.color,"ParenthesizedContent StringLiteral":ve.string,":":ve.punctuation,"PseudoOp #":ve.derefOperator,"; ,":ve.separator,"( )":ve.paren,"[ ]":ve.squareBracket,"{ }":ve.brace}),CVe={__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},_Ve={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},AVe={__proto__:null,not:132,only:132},RVe=Ny.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:[wVe,xVe,TVe,1,2,3,4,new Q_("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>CVe[e]||-1},{term:58,get:e=>_Ve[e]||-1},{term:101,get:e=>AVe[e]||-1}],tokenPrec:1200});let nP=null;function rP(){if(!nP&&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)));nP=t.sort().map(r=>({type:"property",label:r}))}return nP||[]}const Bq=["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})),Uq=["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}))),IVe=["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})),Dp=/^(\w[\w-]*|-\w[\w-]*|)$/,DVe=/^-(-[\w-]*)?$/;function NVe(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 jq=new bse,PVe=["Declaration"];function LVe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function Cle(e,t,n){if(t.to-t.from>4096){let r=jq.get(t);if(r)return r;let i=[],o=new Set,s=t.cursor(yi.IncludeAnonymous);if(s.firstChild())do for(let a of Cle(e,s.node,n))o.has(a.label)||(o.add(a.label),i.push(a));while(s.nextSibling());return jq.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var s;if(n(o)&&o.matchContext(PVe)&&((s=o.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let a=e.sliceString(o.from,o.to);i.has(a)||(i.add(a),r.push({label:a,type:"variable"}))}}),r}}const MVe=e=>t=>{let{state:n,pos:r}=t,i=Oi(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:rP(),validFor:Dp};if(i.name=="ValueName")return{from:i.from,options:Uq,validFor:Dp};if(i.name=="PseudoClassName")return{from:i.from,options:Bq,validFor:Dp};if(e(i)||(t.explicit||o)&&NVe(i,n.doc))return{from:e(i)||o?i.from:r,options:Cle(n.doc,LVe(i),e),validFor:DVe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:rP(),validFor:Dp};return{from:i.from,options:IVe,validFor:Dp}}if(!t.explicit)return null;let s=i.resolve(r),a=s.childBefore(r);return a&&a.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:Bq,validFor:Dp}:a&&a.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:Uq,validFor:Dp}:s.name=="Block"||s.name=="Styles"?{from:r,options:rP(),validFor:Dp}:null},$Ve=MVe(e=>e.name=="VariableName"),q_=_y.define({name:"css",parser:RVe.configure({props:[fT.add({Declaration:Xk()}),a1.add({"Block KeyframeList":xse})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function FVe(){return new GE(q_,q_.data.of({autocomplete:$Ve}))}const BVe=309,zq=1,UVe=2,jVe=3,zVe=310,VVe=312,HVe=313,WVe=4,QVe=5,YVe=0,VM=[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],_le=125,GVe=59,HM=47,qVe=42,ZVe=43,XVe=45,KVe=60,JVe=44,eHe=new ple({start:!1,shift(e,t){return t==WVe||t==QVe||t==VVe?e:t==HVe},strict:!1}),tHe=new $c((e,t)=>{let{next:n}=e;(n==_le||n==-1||t.context)&&e.acceptToken(zVe)},{contextual:!0,fallback:!0}),nHe=new $c((e,t)=>{let{next:n}=e,r;VM.indexOf(n)>-1||n==HM&&((r=e.peek(1))==HM||r==qVe)||n!=_le&&n!=GVe&&n!=-1&&!t.context&&e.acceptToken(BVe)},{contextual:!0}),rHe=new $c((e,t)=>{let{next:n}=e;if((n==ZVe||n==XVe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(zq);e.acceptToken(r?zq:UVe)}},{contextual:!0});function iP(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const iHe=new $c((e,t)=>{if(e.next!=KVe||!t.dialectEnabled(YVe)||(e.advance(),e.next==HM))return;let n=0;for(;VM.indexOf(e.next)>-1;)e.advance(),n++;if(iP(e.next,!0)){for(e.advance(),n++;iP(e.next,!1);)e.advance(),n++;for(;VM.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==JVe)return;for(let r=0;;r++){if(r==7){if(!iP(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(jVe,-n)}),oHe=s1({"get set async static":ve.modifier,"for while do if else switch try catch finally return throw break continue default case":ve.controlKeyword,"in of await yield void typeof delete instanceof":ve.operatorKeyword,"let var const using function class extends":ve.definitionKeyword,"import export from":ve.moduleKeyword,"with debugger as new":ve.keyword,TemplateString:ve.special(ve.string),super:ve.atom,BooleanLiteral:ve.bool,this:ve.self,null:ve.null,Star:ve.modifier,VariableName:ve.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ve.function(ve.variableName),VariableDefinition:ve.definition(ve.variableName),Label:ve.labelName,PropertyName:ve.propertyName,PrivatePropertyName:ve.special(ve.propertyName),"CallExpression/MemberExpression/PropertyName":ve.function(ve.propertyName),"FunctionDeclaration/VariableDefinition":ve.function(ve.definition(ve.variableName)),"ClassDeclaration/VariableDefinition":ve.definition(ve.className),PropertyDefinition:ve.definition(ve.propertyName),PrivatePropertyDefinition:ve.definition(ve.special(ve.propertyName)),UpdateOp:ve.updateOperator,"LineComment Hashbang":ve.lineComment,BlockComment:ve.blockComment,Number:ve.number,String:ve.string,Escape:ve.escape,ArithOp:ve.arithmeticOperator,LogicOp:ve.logicOperator,BitOp:ve.bitwiseOperator,CompareOp:ve.compareOperator,RegExp:ve.regexp,Equals:ve.definitionOperator,Arrow:ve.function(ve.punctuation),": Spread":ve.punctuation,"( )":ve.paren,"[ ]":ve.squareBracket,"{ }":ve.brace,"InterpolationStart InterpolationEnd":ve.special(ve.brace),".":ve.derefOperator,", ;":ve.separator,"@":ve.meta,TypeName:ve.typeName,TypeDefinition:ve.definition(ve.typeName),"type enum interface implements namespace module declare":ve.definitionKeyword,"abstract global Privacy readonly override":ve.modifier,"is keyof unique infer":ve.operatorKeyword,JSXAttributeValue:ve.attributeValue,JSXText:ve.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ve.angleBracket,"JSXIdentifier JSXNameSpacedName":ve.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ve.attributeName,"JSXBuiltin/JSXIdentifier":ve.standard(ve.tagName)}),sHe={__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},aHe={__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},lHe={__proto__:null,"<":143},uHe=Ny.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:eHe,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:[oHe],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#sHe[e]||-1},{term:334,get:e=>aHe[e]||-1},{term:70,get:e=>lHe[e]||-1}],tokenPrec:14638}),Ale=[Ya("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ya("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ya("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ya("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ya("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ya(`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=j_.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 Xr(this.parser.nodeSet.types[t],Dy,Dy,(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($3(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?Xse(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=$3(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(Zt.Paragraph,t.content.length),t.start)}elt(t,n,r,i){return typeof t=="string"?_r(this.parser.getNodeType(t),n,r,i):new ele(t,n)}get buffer(){return new Jse(this.parser.nodeSet)}}function Xse(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 f=e[t+1].from-o;r+=f,c+=f,t++,o=e[t].to}}for(let c=n.firstChild;c;c=c.nextSibling){u(c.from+r,!0);let d=c.from+r,f,m=i.get(c.tree);m?f=m:c.to+r>o?(f=Xse(e,t,c,r,i),u(c.to+r,!1)):f=c.toTree(),a.push(f),s.push(d-l)}return u(n.to+r,!1),new Xr(n.type,a,s,n.to+r-l,n.tree?n.tree.propValues:void 0)}class cI extends C4{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 Zje(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}configure(t){let n=M3(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(CO(n.defineNodes)){i=Object.assign({},i);let f=r.types.slice(),m;for(let g of n.defineNodes){let{name:v,block:S,composite:O,style:E}=typeof g=="string"?{name:g}:g;if(f.some(A=>A.name==v))continue;O&&(i[f.length]=(A,C,x)=>O(C,x,A.value));let w=f.length,k=O?["Block","BlockContext"]:S?w>=Zt.ATXHeading1&&w<=Zt.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;f.push(Ko.define({id:w,name:v,props:k&&[[Gn.group,k]]})),E&&(m||(m={}),Array.isArray(E)||E instanceof cc?m[v]=E:Object.assign(m,E))}r=new uT(f),m&&(r=r.extend(av(m)))}if(CO(n.props)&&(r=r.extend(...n.props)),CO(n.remove))for(let f of n.remove){let m=this.blockNames.indexOf(f),g=this.inlineNames.indexOf(f);m>-1&&(o[m]=a[m]=void 0),g>-1&&(l[g]=void 0)}if(CO(n.parseBlock))for(let f of n.parseBlock){let m=s.indexOf(f.name);if(m>-1)o[m]=f.parse,a[m]=f.leaf;else{let g=f.before?zx(s,f.before):f.after?zx(s,f.after)+1:s.length-1;o.splice(g,0,f.parse),a.splice(g,0,f.leaf),s.splice(g,0,f.name)}f.endLeaf&&c.push(f.endLeaf)}if(CO(n.parseInline))for(let f of n.parseInline){let m=u.indexOf(f.name);if(m>-1)l[m]=f.parse;else{let g=f.before?zx(u,f.before):f.after?zx(u,f.after)+1:u.length-1;l.splice(g,0,f.parse),u.splice(g,0,f.name)}}return n.wrap&&(d=d.concat(n.wrap)),new cI(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 Kje(this,t,n);e:for(let i=n;i=0){i=s;continue e}}i++}return r.resolveMarkers(0)}}function CO(e){return e!=null&&e.length>0}function M3(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=M3(e[0]);if(e.length==1)return t;let n=M3(e.slice(1));if(!n||!t)return t||n;let r=(a,s)=>(a||Dy).concat(s||Dy),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 zx(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let Kse=[Ko.none];for(let e=1,t;t=Zt[e];e++)Kse[e]=Ko.define({id:e,name:t,props:e>=Zt.Escape?[]:[[Gn.group,e in zse?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const Dy=[];let Jse=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 Xr.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:n})}},JE=class{constructor(t,n,r,i=Dy){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 Jse(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class ele{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 Dy}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 _r(e,t,n,r){return new JE(e,t,n,r)}const tle={resolve:"Emphasis",mark:"EmphasisMark"},nle={resolve:"Emphasis",mark:"EmphasisMark"},_O={},uq={};class dc{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const cq="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let eS=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{eS=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const qN={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(_r(Zt.Autolink,n,n+1+i[0].length,[_r(Zt.LinkMark,n,n+1),_r(Zt.URL,n+1,n+i[0].length),_r(Zt.LinkMark,n+i[0].length,n+1+i[0].length)]));let o=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(o)return e.append(_r(Zt.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(_r(Zt.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(_r(Zt.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=eS.test(i),s=eS.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),f=c&&(t==42||!d||a),m=d&&(t==42||!c||s);return e.append(new dc(t==95?tle:nle,n,r,(f?1:0)|(m?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(_r(Zt.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(_r(Zt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new dc(_O,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new dc(uq,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 dc&&(i.type==_O||i.type==uq)){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]=Xje(e,o,i.type==_O?Zt.Link:Zt.Image,i.from,n+1);if(i.type==_O)for(let s=0;st?_r(Zt.URL,t+n,o+n):o==e.length?null:!1}}function ile(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 dc(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 v=this.parts[l];if(v instanceof dc&&v.side&1&&v.type==i.type&&!(o&&(i.side&1||v.side&2)&&(v.to-v.from+a)%3==0&&((v.to-v.from)%3||a%3))){s=v;break}}if(!s)continue;let u=i.type.resolve,c=[],d=s.from,f=i.to;if(o){let v=Math.min(2,s.to-s.from,a);d=s.to-v,f=i.from+v,u=v==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,d,s.to));for(let v=l+1;v=0;n--){let r=this.parts[n];if(r instanceof dc&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return P1(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?_r(this.parser.getNodeType(t),n,r,i):new ele(t,n)}}function $3(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(Gn.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=ale(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let d=new Xr(t.parser.nodeSet.types[Zt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,c)}if(n.type.is("Block")&&(Jje.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 ale(e,t){let n=e;for(let r=1;rjx[e]),Object.keys(jx).map(e=>Yje[e]),Object.keys(jx),Gje,zse,Object.keys(qN).map(e=>qN[e]),Object.keys(qN),[]);function rze(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 ize(e){let{codeParser:t,htmlParser:n}=e;return{wrap:mae((i,o)=>{let a=i.type.id;if(t&&(a==Zt.CodeBlock||a==Zt.FencedCode)){let s="";if(a==Zt.FencedCode){let u=i.node.getChild(Zt.CodeInfo);u&&(s=o.read(u.from,u.to))}let l=t(s);if(l)return{parser:l,overlay:u=>u.type.id==Zt.CodeText}}else if(n&&(a==Zt.HTMLBlock||a==Zt.HTMLTag))return{parser:n,overlay:rze(i.node,i.from,i.to)};return null})}}const oze={resolve:"Strikethrough",mark:"StrikethroughMark"},aze={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Ee.strikethrough}},{name:"StrikethroughMark",style:Ee.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=eS.test(r),l=eS.test(i);return e.addDelimiter(oze,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function L1(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||f!=32&&f!=9)&&(s<0&&(s=d),l=d+1),u=!u&&f==92}return s>-1&&(o++,r&&c()),o}function dq(e,t){for(let n=t;ni instanceof fq)||!dq(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return sle.test(r)&&L1(e,t.text,t.basePos)==L1(e,r,t.basePos)},before:"SetextHeading"}]};class lze{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 uze={defineNodes:[{name:"Task",block:!0,style:Ee.list},{name:"TaskMarker",style:Ee.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new lze:null},after:"SetextHeading"}]},pq=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,hq=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,cze=/[\w-]+\.[\w-]+($|\/)/,mq=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,gq=/\/[a-zA-Z\d@.]+/gy;function bq(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==")"&&bq(e,t,r,")")>bq(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 yq(e,t){mq.lastIndex=t;let n=mq.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 fze={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;pq.lastIndex=r;let i=pq.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=dze(e.text,r+i[0].length):i[3]?o=yq(e.text,r):(o=yq(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(gq.lastIndex=o,i=gq.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)}}]},pze=[sze,uze,aze,fze];function lle(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 z_(t,[],n,r,r,0,[],0,i?new Oq(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 z_(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 bze(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 Oq{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class bze{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 V_{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 V_(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 V_(this.stack,this.pos,this.index)}}function o1(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 Zk{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Eq=new Zk;class yze{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Eq,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=Eq,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 L0{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;ule(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}L0.prototype.contextual=L0.prototype.fallback=L0.prototype.extend=!1;class W_{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?o1(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(ule(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))}}W_.prototype.contextual=L0.prototype.fallback=L0.prototype.extend=!1;class $c{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function ule(e,t,n,r,i,o){let a=0,s=1<0){let g=e[m];if(l.allows(g)&&(t.token.value==-1||t.token.value==g||vze(g,t.token.value,i,o))){t.acceptToken(g);break}}let c=t.next,d=0,f=e[a+2];if(t.next<0&&f>d&&e[u+f*3-3]==65535){a=e[u+f*3-1];continue e}for(;d>1,g=u+m+(m<<1),v=e[g],S=e[g+1]||65536;if(c=S)d=m+1;else{a=e[g+2],t.advance();continue e}}break}}function Sq(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function vze(e,t,n,r){let i=Sq(n,r,t);return i<0||Sq(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 Oze{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?Tq(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Tq(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 Xr){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 Eze{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new Zk)}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 f=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>f))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new Zk,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 Zk,{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 Oze(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&&wze(i);if(a)return wl&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw wl&&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 wl&&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 f=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(t.state,d.type.id):-1;if(f>-1&&d.length&&(!u||(d.prop(Gn.contextHash)||0)==c))return t.useNode(d,f),wl&&console.log(a+this.stackID(t)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof Xr)||d.children.length==0||d.positions[0]>0)break;let m=d.children[0];if(m instanceof Xr&&d.positions[0]==0)d=m;else break}}let s=o.stateSlot(t.state,4);if(s>0)return t.reduce(s),wl&&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(g):r.push(g)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return wq(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(),wl&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),f=c;for(let m=0;d.forceReduce()&&m<10&&(wl&&console.log(f+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));m++)wl&&(f=this.stackID(d)+" -> ");for(let m of s.recoverByInsert(l))wl&&console.log(c+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),wl&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),wq(s,r)):(!i||i.scoree;class cle{constructor(t){this.start=t.start,this.shift=t.shift||XN,this.reduce=t.reduce||XN,this.reuse=t.reuse||XN,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Ny extends C4{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 f=-c;f>0;f--)o(s[u++],l,d);u++}}}this.nodeSet=new uT(n.map((s,l)=>Ko.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=cae;let a=o1(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 L0(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 Sze(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=_f(this.data,o+2);else break;i=n(_f(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=_f(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(Ny.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]=xq(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 xze=54,kze=1,Cze=55,_ze=2,Aze=56,Rze=3,kq=4,Ize=5,H_=6,dle=7,fle=8,ple=9,hle=10,Dze=11,Nze=12,Pze=13,KN=57,Lze=14,Cq=58,mle=20,Mze=22,gle=23,$ze=24,F3=26,ble=27,Fze=28,Bze=31,Uze=34,jze=36,zze=37,Vze=0,Wze=1,Hze={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},Qze={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},_q={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 Yze(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function yle(e){return e==9||e==10||e==13||e==32}let Aq=null,Rq=null,Iq=0;function B3(e,t){let n=e.pos+t;if(Iq==n&&Rq==e)return Aq;let r=e.peek(t);for(;yle(r);)r=e.peek(++t);let i="";for(;Yze(r);)i+=String.fromCharCode(r),r=e.peek(++t);return Rq=e,Iq=n,Aq=i?i.toLowerCase():r==Gze||r==qze?void 0:null}const vle=60,Q_=62,q4=47,Gze=63,qze=33,Zze=45;function Dq(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new Dq(B3(r,1)||"",e):e},reduce(e,t){return t==mle&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==H_||i==jze?new Dq(B3(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),Jze=new $c((e,t)=>{if(e.next!=vle){e.next<0&&t.context&&e.acceptToken(KN);return}e.advance();let n=e.next==q4;n&&e.advance();let r=B3(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?Lze:H_);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(Dze);if(i&&Qze[i])return e.acceptToken(KN,-2);if(t.dialectEnabled(Vze))return e.acceptToken(Nze);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(Pze)}else{if(r=="script")return e.acceptToken(dle);if(r=="style")return e.acceptToken(fle);if(r=="textarea")return e.acceptToken(ple);if(Hze.hasOwnProperty(r))return e.acceptToken(hle);i&&_q[i]&&_q[i][r]?e.acceptToken(KN,-1):e.acceptToken(H_)}},{contextual:!0}),eVe=new $c(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(Cq);break}if(e.next==Zze)t++;else if(e.next==Q_&&t>=2){n>=3&&e.acceptToken(Cq,-2);break}else t=0;e.advance()}});function tVe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const nVe=new $c((e,t)=>{if(e.next==q4&&e.peek(1)==Q_){let n=t.dialectEnabled(Wze)||tVe(t.context);e.acceptToken(n?Ize:kq,2)}else e.next==Q_&&e.acceptToken(kq,1)});function Z4(e,t,n){let r=2+e.length;return new $c(i=>{for(let o=0,a=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(o==0&&i.next==vle||o==1&&i.next==q4||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 rVe=Z4("script",xze,kze),iVe=Z4("style",Cze,_ze),oVe=Z4("textarea",Aze,Rze),aVe=av({"Text RawText":Ee.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Ee.angleBracket,TagName:Ee.tagName,"MismatchedCloseTag/TagName":[Ee.tagName,Ee.invalid],AttributeName:Ee.attributeName,"AttributeValue UnquotedAttributeValue":Ee.attributeValue,Is:Ee.definitionOperator,"EntityReference CharacterReference":Ee.character,Comment:Ee.blockComment,ProcessingInst:Ee.processingInstruction,DoctypeDecl:Ee.documentMeta}),sVe=Ny.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:Kze,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:[aVe],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==Fze)return JN(s,l,n);if(u==Bze)return JN(s,l,r);if(u==Uze)return JN(s,l,i);if(u==mle&&o.length){let c=s.node,d=c.firstChild,f=d&&Nq(d,l),m;if(f){for(let g of o)if(g.tag==f&&(!g.attrs||g.attrs(m||(m=Ole(c,l))))){let v=c.lastChild,S=v.type.id==zze?v.from:c.to;if(S>d.to)return{parser:g.parser,overlay:[{from:d.to,to:S}]}}}}if(a&&u==gle){let c=s.node,d;if(d=c.firstChild){let f=a[l.read(d.from,d.to)];if(f)for(let m of f){if(m.tagName&&m.tagName!=Nq(c.parent,l))continue;let g=c.lastChild;if(g.type.id==F3){let v=g.from+1,S=g.lastChild,O=g.to-(S&&S.isError?0:1);if(O>v)return{parser:m.parser,overlay:[{from:v,to:O}]}}else if(g.type.id==ble)return{parser:m.parser,overlay:[{from:g.from,to:g.to}]}}}}return null})}const lVe=99,Pq=1,uVe=100,cVe=101,Lq=2,Sle=[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],dVe=58,fVe=40,Tle=95,pVe=91,Xk=45,hVe=46,mVe=35,gVe=37,bVe=38,yVe=92,vVe=10;function tS(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function OVe(e){return e>=48&&e<=57}const EVe=new $c((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(tS(o)||o==Xk||o==Tle||n&&OVe(o))!n&&(o!=Xk||i>0)&&(n=!0),r===i&&o==Xk&&r++,e.advance();else if(o==yVe&&e.peek(1)!=vVe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==fVe?uVe:r==2&&t.canShift(Lq)?Lq:cVe);break}}}),SVe=new $c(e=>{if(Sle.includes(e.peek(-1))){let{next:t}=e;(tS(t)||t==Tle||t==mVe||t==hVe||t==pVe||t==dVe&&tS(e.peek(1))||t==Xk||t==bVe)&&e.acceptToken(lVe)}}),TVe=new $c(e=>{if(!Sle.includes(e.peek(-1))){let{next:t}=e;if(t==gVe&&(e.advance(),e.acceptToken(Pq)),tS(t)){do e.advance();while(tS(e.next));e.acceptToken(Pq)}}}),wVe=av({"AtKeyword import charset namespace keyframes media supports":Ee.definitionKeyword,"from to selector":Ee.keyword,NamespaceName:Ee.namespace,KeyframeName:Ee.labelName,KeyframeRangeName:Ee.operatorKeyword,TagName:Ee.tagName,ClassName:Ee.className,PseudoClassName:Ee.constant(Ee.className),IdName:Ee.labelName,"FeatureName PropertyName":Ee.propertyName,AttributeName:Ee.attributeName,NumberLiteral:Ee.number,KeywordQuery:Ee.keyword,UnaryQueryOp:Ee.operatorKeyword,"CallTag ValueName":Ee.atom,VariableName:Ee.variableName,Callee:Ee.operatorKeyword,Unit:Ee.unit,"UniversalSelector NestingSelector":Ee.definitionOperator,MatchOp:Ee.compareOperator,"ChildOp SiblingOp, LogicOp":Ee.logicOperator,BinOp:Ee.arithmeticOperator,Important:Ee.modifier,Comment:Ee.blockComment,ColorLiteral:Ee.color,"ParenthesizedContent StringLiteral":Ee.string,":":Ee.punctuation,"PseudoOp #":Ee.derefOperator,"; ,":Ee.separator,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace}),xVe={__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},kVe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},CVe={__proto__:null,not:132,only:132},_Ve=Ny.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:[SVe,TVe,EVe,1,2,3,4,new W_("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>xVe[e]||-1},{term:58,get:e=>kVe[e]||-1},{term:101,get:e=>CVe[e]||-1}],tokenPrec:1200});let eP=null;function tP(){if(!eP&&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)));eP=t.sort().map(r=>({type:"property",label:r}))}return eP||[]}const Mq=["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})),$q=["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}))),AVe=["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})),Dp=/^(\w[\w-]*|-\w[\w-]*|)$/,RVe=/^-(-[\w-]*)?$/;function IVe(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 Fq=new hae,DVe=["Declaration"];function NVe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function wle(e,t,n){if(t.to-t.from>4096){let r=Fq.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(yi.IncludeAnonymous);if(a.firstChild())do for(let s of wle(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return Fq.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(DVe)&&((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 PVe=e=>t=>{let{state:n,pos:r}=t,i=Oi(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:tP(),validFor:Dp};if(i.name=="ValueName")return{from:i.from,options:$q,validFor:Dp};if(i.name=="PseudoClassName")return{from:i.from,options:Mq,validFor:Dp};if(e(i)||(t.explicit||o)&&IVe(i,n.doc))return{from:e(i)||o?i.from:r,options:wle(n.doc,NVe(i),e),validFor:RVe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:tP(),validFor:Dp};return{from:i.from,options:AVe,validFor:Dp}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:Mq,validFor:Dp}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:$q,validFor:Dp}:a.name=="Block"||a.name=="Styles"?{from:r,options:tP(),validFor:Dp}:null},LVe=PVe(e=>e.name=="VariableName"),Y_=_y.define({name:"css",parser:_Ve.configure({props:[dT.add({Declaration:qk()}),sv.add({"Block KeyframeList":Sae})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function MVe(){return new YE(Y_,Y_.data.of({autocomplete:LVe}))}const $Ve=309,Bq=1,FVe=2,BVe=3,UVe=310,jVe=312,zVe=313,VVe=4,WVe=5,HVe=0,U3=[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],xle=125,QVe=59,j3=47,YVe=42,GVe=43,qVe=45,ZVe=60,XVe=44,KVe=new cle({start:!1,shift(e,t){return t==VVe||t==WVe||t==jVe?e:t==zVe},strict:!1}),JVe=new $c((e,t)=>{let{next:n}=e;(n==xle||n==-1||t.context)&&e.acceptToken(UVe)},{contextual:!0,fallback:!0}),eWe=new $c((e,t)=>{let{next:n}=e,r;U3.indexOf(n)>-1||n==j3&&((r=e.peek(1))==j3||r==YVe)||n!=xle&&n!=QVe&&n!=-1&&!t.context&&e.acceptToken($Ve)},{contextual:!0}),tWe=new $c((e,t)=>{let{next:n}=e;if((n==GVe||n==qVe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(Bq);e.acceptToken(r?Bq:FVe)}},{contextual:!0});function nP(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const nWe=new $c((e,t)=>{if(e.next!=ZVe||!t.dialectEnabled(HVe)||(e.advance(),e.next==j3))return;let n=0;for(;U3.indexOf(e.next)>-1;)e.advance(),n++;if(nP(e.next,!0)){for(e.advance(),n++;nP(e.next,!1);)e.advance(),n++;for(;U3.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==XVe)return;for(let r=0;;r++){if(r==7){if(!nP(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(BVe,-n)}),rWe=av({"get set async static":Ee.modifier,"for while do if else switch try catch finally return throw break continue default case":Ee.controlKeyword,"in of await yield void typeof delete instanceof":Ee.operatorKeyword,"let var const using function class extends":Ee.definitionKeyword,"import export from":Ee.moduleKeyword,"with debugger as new":Ee.keyword,TemplateString:Ee.special(Ee.string),super:Ee.atom,BooleanLiteral:Ee.bool,this:Ee.self,null:Ee.null,Star:Ee.modifier,VariableName:Ee.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Ee.function(Ee.variableName),VariableDefinition:Ee.definition(Ee.variableName),Label:Ee.labelName,PropertyName:Ee.propertyName,PrivatePropertyName:Ee.special(Ee.propertyName),"CallExpression/MemberExpression/PropertyName":Ee.function(Ee.propertyName),"FunctionDeclaration/VariableDefinition":Ee.function(Ee.definition(Ee.variableName)),"ClassDeclaration/VariableDefinition":Ee.definition(Ee.className),PropertyDefinition:Ee.definition(Ee.propertyName),PrivatePropertyDefinition:Ee.definition(Ee.special(Ee.propertyName)),UpdateOp:Ee.updateOperator,"LineComment Hashbang":Ee.lineComment,BlockComment:Ee.blockComment,Number:Ee.number,String:Ee.string,Escape:Ee.escape,ArithOp:Ee.arithmeticOperator,LogicOp:Ee.logicOperator,BitOp:Ee.bitwiseOperator,CompareOp:Ee.compareOperator,RegExp:Ee.regexp,Equals:Ee.definitionOperator,Arrow:Ee.function(Ee.punctuation),": Spread":Ee.punctuation,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace,"InterpolationStart InterpolationEnd":Ee.special(Ee.brace),".":Ee.derefOperator,", ;":Ee.separator,"@":Ee.meta,TypeName:Ee.typeName,TypeDefinition:Ee.definition(Ee.typeName),"type enum interface implements namespace module declare":Ee.definitionKeyword,"abstract global Privacy readonly override":Ee.modifier,"is keyof unique infer":Ee.operatorKeyword,JSXAttributeValue:Ee.attributeValue,JSXText:Ee.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Ee.angleBracket,"JSXIdentifier JSXNameSpacedName":Ee.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Ee.attributeName,"JSXBuiltin/JSXIdentifier":Ee.standard(Ee.tagName)}),iWe={__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},oWe={__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},aWe={__proto__:null,"<":143},sWe=Ny.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:KVe,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:[rWe],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#iWe[e]||-1},{term:334,get:e=>oWe[e]||-1},{term:70,get:e=>aWe[e]||-1}],tokenPrec:14638}),kle=[Ys("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ys("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ys("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ys("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ys("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ys(`try { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),Ya("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Ya(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),Ys("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Ys(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),Ya(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),Ys(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Ya('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ya('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],cHe=Ale.concat([Ya("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ya("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ya("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Vq=new bse,Rle=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Rv(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const dHe=["FunctionDeclaration"],fHe={FunctionDeclaration:Rv("function"),ClassDeclaration:Rv("class"),ClassExpression:()=>!0,EnumDeclaration:Rv("constant"),TypeAliasDeclaration:Rv("type"),NamespaceDeclaration:Rv("namespace"),VariableDefinition(e,t){e.matchContext(dHe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Ile(e,t){let n=Vq.get(t);if(n)return n;let r=[],i=!0;function o(s,a){let l=e.sliceString(s.from,s.to);r.push({label:l,type:a})}return t.cursor(yi.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let a=fHe[s.name];if(a&&a(s,o)||Rle.has(s.name))return!1}else if(s.to-s.from>8192){for(let a of Ile(e,s.node))r.push(a);return!1}}),Vq.set(t,r),r}const Hq=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Dle=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function pHe(e){let t=Oi(e.state).resolveInner(e.pos,-1);if(Dle.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&Hq.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)Rle.has(i.name)&&(r=r.concat(Ile(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:Hq}}const Pd=_y.define({name:"javascript",parser:uHe.configure({props:[fT.add({IfStatement:Xk({except:/^\s*({|else\b)/}),TryStatement:Xk({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:TUe,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:SUe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":Xk({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}}),a1.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":xse,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Nle={test:e=>/^JSX/.test(e.name),facet:RF({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Ple=Pd.configure({dialect:"ts"},"typescript"),Lle=Pd.configure({dialect:"jsx",props:[IF.add(e=>e.isTop?[Nle]:void 0)]}),Mle=Pd.configure({dialect:"jsx ts",props:[IF.add(e=>e.isTop?[Nle]:void 0)]},"typescript");let $le=e=>({label:e,type:"keyword"});const Fle="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($le),hHe=Fle.concat(["declare","implements","private","protected","public"].map($le));function mHe(e={}){let t=e.jsx?e.typescript?Mle:Lle:e.typescript?Ple:Pd,n=e.typescript?cHe.concat(hHe):Ale.concat(Fle);return new GE(t,[Pd.data.of({autocomplete:B9e(Dle,Cae(n))}),Pd.data.of({autocomplete:pHe}),e.jsx?yHe:[]])}function gHe(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 Wq(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 bHe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),yHe=un.inputHandler.of((e,t,n,r,i)=>{if((bHe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Pd.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:s}=o,a=s.changeByRange(l=>{var u;let{head:c}=l,d=Oi(s).resolveInner(c-1,-1),p;if(d.name=="JSXStartTag"&&(d=d.parent),!(s.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 m=d.parent,g=m.parent;if(g&&m.from==c-2&&((p=Wq(s.doc,g.firstChild,c))||((u=g.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let v=`${p}>`;return{range:ht.cursor(c+v.length,-1),changes:{from:c,insert:v}}}}else if(r==">"){let m=gHe(d);if(m&&!/^\/?>|^<\//.test(s.doc.sliceString(c,c+2))&&(p=Wq(s.doc,m,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return a.changes.empty?!1:(e.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Iv=["_blank","_self","_top","_parent"],oP=["ascii","utf-8","utf-16","latin1","latin1"],sP=["get","post","put","delete"],aP=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],xl=["true","false"],kn={},vHe={a:{attrs:{href:null,ping:null,type:null,media:null,target:Iv,hreflang:null}},abbr:kn,address:kn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:kn,aside:kn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:kn,base:{attrs:{href:null,target:Iv}},bdi:kn,bdo:kn,blockquote:{attrs:{cite:null}},body:kn,br:kn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:aP,formmethod:sP,formnovalidate:["novalidate"],formtarget:Iv,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:kn,center:kn,cite:kn,code:kn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:kn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:kn,div:kn,dl:kn,dt:kn,em:kn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:kn,figure:kn,footer:kn,form:{attrs:{action:null,name:null,"accept-charset":oP,autocomplete:["on","off"],enctype:aP,method:sP,novalidate:["novalidate"],target:Iv}},h1:kn,h2:kn,h3:kn,h4:kn,h5:kn,h6:kn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:kn,hgroup:kn,hr:kn,html:{attrs:{manifest:null}},i:kn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:aP,formmethod:sP,formnovalidate:["novalidate"],formtarget:Iv,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:kn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:kn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:kn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:oP,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:kn,noscript:kn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:kn,param:{attrs:{name:null,value:null}},pre:kn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:kn,rt:kn,ruby:kn,samp:kn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:oP}},section:kn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:kn,source:{attrs:{src:null,type:null,media:null}},span:kn,strong:kn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:kn,summary:kn,sup:kn,table:kn,tbody:kn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:kn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:kn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:kn,time:{attrs:{datetime:null}},title:kn,tr:kn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:kn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:kn},Ble={accesskey:null,class:null,contenteditable:xl,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:xl,autocorrect:xl,autocapitalize:xl,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":xl,"aria-autocomplete":["inline","list","both","none"],"aria-busy":xl,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":xl,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":xl,"aria-hidden":xl,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":xl,"aria-multiselectable":xl,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":xl,"aria-relevant":null,"aria-required":xl,"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},Ule="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 Ule)Ble[e]=null;let rS=class{constructor(t,n){this.tags=Object.assign(Object.assign({},vHe),t),this.globalAttrs=Object.assign(Object.assign({},Ble),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};rS.default=new rS;function Py(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 Ly(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function jle(e,t,n){let r=n.tags[Py(e,Ly(t))];return(r==null?void 0:r.children)||n.allTags}function JF(e,t){let n=[];for(let r=Ly(t);r&&!r.type.isTop;r=Ly(r.parent)){let i=Py(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 zle=/^[:\-\.\w\u00b7-\uffff]*$/;function Qq(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=Ly(n,!0);return{from:r,to:i,options:jle(e.doc,s,t).map(a=>({label:a,type:"type"})).concat(JF(e.doc,n).map((a,l)=>({label:"/"+a,apply:"/"+a+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Yq(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:JF(e.doc,t).map((o,s)=>({label:o,apply:o+i,type:"type",boost:99-s})),validFor:zle}}function OHe(e,t,n,r){let i=[],o=0;for(let s of jle(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of JF(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function EHe(e,t,n,r,i){let o=Ly(n),s=o?t.tags[Py(e.doc,o)]:null,a=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?a:a.length?a.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:zle}}function SHe(e,t,n,r,i){var o;let s=(o=n.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),a=[],l;if(s){let u=e.sliceDoc(s.from,s.to),c=t.globalAttrs[u];if(!c){let d=Ly(n),p=d?t.tags[Py(e.doc,d)]:null;c=(p==null?void 0:p.attrs)&&p.attrs[u]}if(c){let d=e.sliceDoc(r,i).toLowerCase(),p='"',m='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",m=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let g of c)a.push({label:g,apply:p+g+m,type:"constant"})}}return{from:r,to:i,options:a,validFor:l}}function Vle(e,t){let{state:n,pos:r}=t,i=Oi(n).resolveInner(r,-1),o=i.resolve(r);for(let s=r,a;o==i&&(a=i.childBefore(s));){let l=a.lastChild;if(!l||!l.type.isError||l.fromVle(r,i)}const xHe=Pd.parser.configure({top:"SingleExpression"}),Hle=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Ple.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Lle.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Mle.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:xHe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Pd.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:q_.parser}],Wle=[{name:"style",parser:q_.parser.configure({top:"Styles"})}].concat(Ule.map(e=>({name:e,parser:Pd.parser}))),Qle=_y.define({name:"html",parser:uVe.configure({props:[fT.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:"-._"}}),eC=Qle.configure({wrap:wle(Hle,Wle)});function kHe(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=wle((e.nestedLanguages||[]).concat(Hle),(e.nestedAttributes||[]).concat(Wle)));let r=n?Qle.configure({wrap:n,dialect:t}):t?eC.configure({dialect:t}):eC;return new GE(r,[eC.data.of({autocomplete:wHe(e)}),e.autoCloseTags!==!1?CHe:[],mHe().support,FVe().support])}const Gq=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),CHe=un.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!eC.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:s}=o,a=s.changeByRange(l=>{var u,c,d;let p=s.doc.sliceString(l.from-1,l.to)==r,{head:m}=l,g=Oi(s).resolveInner(m-1,-1),v;if((g.name=="TagName"||g.name=="StartTag")&&(g=g.parent),p&&r==">"&&g.name=="OpenTag"){if(((c=(u=g.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(v=Py(s.doc,g.parent,m))&&!Gq.has(v)){let E=m+(s.doc.sliceString(m,m+1)===">"?1:0),O=``;return{range:l,changes:{from:m,to:E,insert:O}}}}else if(p&&r=="/"&&g.name=="IncompleteCloseTag"){let E=g.parent;if(g.from==m-2&&((d=E.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(v=Py(s.doc,E,m))&&!Gq.has(v)){let O=m+(s.doc.sliceString(m,m+1)===">"?1:0),S=`${v}>`;return{range:ht.cursor(m+S.length,-1),changes:{from:m,to:O,insert:S}}}}return{range:l}});return a.changes.empty?!1:(e.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Yle=RF({commentTokens:{block:{open:""}}}),Gle=new Gn,qle=ize.configure({props:[a1.add(e=>!e.is("Block")||e.is("Document")||WM(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Gle.add(WM),fT.add({Document:()=>null}),Hm.add({Document:Yle})]});function WM(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function _He(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=WM(r.type))!=null&&i<=t)break;n=r}return n.to}const AHe=wse.of((e,t,n)=>{for(let r=Oi(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function e6(e){return new Cu(Yle,e,[AHe],"markdown")}const RHe=e6(qle),IHe=qle.configure([mze,bze,gze,yze,{props:[a1.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),Zle=e6(IHe);function DHe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=R_.matchLanguageName(e,n,!0),r instanceof R_)return r.support?r.support.language.parser:YE.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class Hx{constructor(t,n,r,i,o,s,a){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=o,this.type=s,this.item=a}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(+Kle(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function Xle(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],s,a=t.lineAt(o.from),l=o.from-a.from;if(o.name=="FencedCode")r.push(new Hx(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(s=/^ *>( ?)/.exec(a.text.slice(l))))r.push(new Hx(o,l,l+s[0].length,"",s[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(a.text.slice(l)))){let u=s[3],c=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new Hx(o.parent,l,l+c,s[1],u,s[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))){let u=s[4],c=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let d=s[2];s[3]&&(d+=s[3].replace(/[xX]/," ")),r.push(new Hx(o.parent,l,l+c,s[1],u,d,o))}}return r}function Kle(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function lP(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let a=Kle(o,t),l=+a[2];if(i>=0){if(l!=i+1)return;n.push({from:o.from+a[1].length,to:o.from+a[0].length,insert:String(i+2+r)})}i=l}let s=o.nextSibling;if(!s)break;o=s}}function t6(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(dT)!=" ")return e;let r=xc(e,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+e.slice(n)}const NHe=({state:e,dispatch:t})=>{let n=Oi(e),{doc:r}=e,i=null,o=e.changeByRange(s=>{if(!s.empty||!Zle.isActiveAt(e,s.from))return i={range:s};let a=s.from,l=r.lineAt(a),u=Xle(n.resolveInner(a,-1),r);for(;u.length&&u[u.length-1].from>a-l.from;)u.pop();if(!u.length)return i={range:s};let c=u[u.length-1];if(c.to-c.spaceAfter.length>a-l.from)return i={range:s};let d=a>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&d){let E=c.node.firstChild,O=c.node.getChild("ListItem","ListItem");if(E.to>=a||O&&O.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let S=u.length>1?u[u.length-2]:null,x,C="";S&&S.item?(x=l.from+S.from,C=S.marker(r,1)):x=l.from+(S?S.to:0);let I=[{from:x,to:a,insert:C}];return c.node.name=="OrderedList"&&lP(c.item,r,I,-2),S&&S.node.name=="OrderedList"&&lP(S.item,r,I),{range:ht.cursor(x+C.length),changes:I}}else{let S=Zq(u,e,l);return{range:ht.cursor(a+S.length+1),changes:{from:l.from,insert:S+e.lineBreak}}}}if(c.node.name=="Blockquote"&&d&&l.from){let E=r.lineAt(l.from-1),O=/>\s*$/.exec(E.text);if(O&&O.index==c.from){let S=e.changes([{from:E.from+O.index,to:E.to},{from:l.from+c.from,to:l.to}]);return{range:s.map(S),changes:S}}}let p=[];c.node.name=="OrderedList"&&lP(c.item,r,p);let m=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let E=0,O=u.length-1;E<=O;E++)g+=E==O&&!m?u[E].marker(r,1):u[E].blank(El.from&&/\s/.test(l.text.charAt(v-l.from-1));)v--;return g=t6(g,e),PHe(c.node,e.doc)&&(g=Zq(u,e,l)+e.lineBreak+g),p.push({from:v,to:a,insert:e.lineBreak+g}),{range:ht.cursor(v+g.length+1),changes:p}});return i?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function qq(e){return e.name=="QuoteMark"||e.name=="ListMark"}function PHe(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),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=Oi(e),r=null,i=e.changeByRange(o=>{let s=o.from,{doc:a}=e;if(o.empty&&Zle.isActiveAt(e,o.from)){let l=a.lineAt(s),u=Xle(LHe(n,s),a);if(u.length){let c=u[u.length-1],d=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(s-l.from>d&&!/\S/.test(l.text.slice(d,s-l.from)))return{range:ht.cursor(l.from+d),changes:{from:l.from+d,to:s}};if(s-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 uWe=["FunctionDeclaration"],cWe={FunctionDeclaration:AO("function"),ClassDeclaration:AO("class"),ClassExpression:()=>!0,EnumDeclaration:AO("constant"),TypeAliasDeclaration:AO("type"),NamespaceDeclaration:AO("namespace"),VariableDefinition(e,t){e.matchContext(uWe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function _le(e,t){let n=Uq.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(yi.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=cWe[a.name];if(s&&s(a,o)||Cle.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of _le(e,a.node))r.push(s);return!1}}),Uq.set(t,r),r}const jq=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Ale=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function dWe(e){let t=Oi(e.state).resolveInner(e.pos,-1);if(Ale.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&jq.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)Cle.has(i.name)&&(r=r.concat(_le(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:jq}}const Ld=_y.define({name:"javascript",parser:sWe.configure({props:[dT.add({IfStatement:qk({except:/^\s*({|else\b)/}),TryStatement:qk({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:E8e,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:O8e({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":qk({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}}),sv.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Sae,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Rle={test:e=>/^JSX/.test(e.name),facet:_4({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Ile=Ld.configure({dialect:"ts"},"typescript"),Dle=Ld.configure({dialect:"jsx",props:[A4.add(e=>e.isTop?[Rle]:void 0)]}),Nle=Ld.configure({dialect:"jsx ts",props:[A4.add(e=>e.isTop?[Rle]:void 0)]},"typescript");let Ple=e=>({label:e,type:"keyword"});const Lle="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(Ple),fWe=Lle.concat(["declare","implements","private","protected","public"].map(Ple));function pWe(e={}){let t=e.jsx?e.typescript?Nle:Dle:e.typescript?Ile:Ld,n=e.typescript?lWe.concat(fWe):kle.concat(Lle);return new YE(t,[Ld.data.of({autocomplete:$7e(Ale,wse(n))}),Ld.data.of({autocomplete:dWe}),e.jsx?gWe:[]])}function hWe(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 zq(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 mWe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),gWe=un.inputHandler.of((e,t,n,r,i)=>{if((mWe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Ld.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,d=Oi(a).resolveInner(c-1,-1),f;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 m=d.parent,g=m.parent;if(g&&m.from==c-2&&((f=zq(a.doc,g.firstChild,c))||((u=g.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let v=`${f}>`;return{range:yt.cursor(c+v.length,-1),changes:{from:c,insert:v}}}}else if(r==">"){let m=hWe(d);if(m&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(f=zq(a.doc,m,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)}),RO=["_blank","_self","_top","_parent"],rP=["ascii","utf-8","utf-16","latin1","latin1"],iP=["get","post","put","delete"],oP=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],xl=["true","false"],kn={},bWe={a:{attrs:{href:null,ping:null,type:null,media:null,target:RO,hreflang:null}},abbr:kn,address:kn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:kn,aside:kn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:kn,base:{attrs:{href:null,target:RO}},bdi:kn,bdo:kn,blockquote:{attrs:{cite:null}},body:kn,br:kn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:oP,formmethod:iP,formnovalidate:["novalidate"],formtarget:RO,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:kn,center:kn,cite:kn,code:kn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:kn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:kn,div:kn,dl:kn,dt:kn,em:kn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:kn,figure:kn,footer:kn,form:{attrs:{action:null,name:null,"accept-charset":rP,autocomplete:["on","off"],enctype:oP,method:iP,novalidate:["novalidate"],target:RO}},h1:kn,h2:kn,h3:kn,h4:kn,h5:kn,h6:kn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:kn,hgroup:kn,hr:kn,html:{attrs:{manifest:null}},i:kn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:oP,formmethod:iP,formnovalidate:["novalidate"],formtarget:RO,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:kn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:kn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:kn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:rP,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:kn,noscript:kn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:kn,param:{attrs:{name:null,value:null}},pre:kn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:kn,rt:kn,ruby:kn,samp:kn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:rP}},section:kn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:kn,source:{attrs:{src:null,type:null,media:null}},span:kn,strong:kn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:kn,summary:kn,sup:kn,table:kn,tbody:kn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:kn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:kn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:kn,time:{attrs:{datetime:null}},title:kn,tr:kn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:kn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:kn},Mle={accesskey:null,class:null,contenteditable:xl,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:xl,autocorrect:xl,autocapitalize:xl,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":xl,"aria-autocomplete":["inline","list","both","none"],"aria-busy":xl,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":xl,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":xl,"aria-hidden":xl,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":xl,"aria-multiselectable":xl,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":xl,"aria-relevant":null,"aria-required":xl,"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},$le="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 $le)Mle[e]=null;let nS=class{constructor(t,n){this.tags=Object.assign(Object.assign({},bWe),t),this.globalAttrs=Object.assign(Object.assign({},Mle),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};nS.default=new nS;function Py(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 Ly(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function Fle(e,t,n){let r=n.tags[Py(e,Ly(t))];return(r==null?void 0:r.children)||n.allTags}function X4(e,t){let n=[];for(let r=Ly(t);r&&!r.type.isTop;r=Ly(r.parent)){let i=Py(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 Ble=/^[:\-\.\w\u00b7-\uffff]*$/;function Vq(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=Ly(n,!0);return{from:r,to:i,options:Fle(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(X4(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Wq(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:X4(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:Ble}}function yWe(e,t,n,r){let i=[],o=0;for(let a of Fle(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of X4(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function vWe(e,t,n,r,i){let o=Ly(n),a=o?t.tags[Py(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:Ble}}function OWe(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=Ly(n),f=d?t.tags[Py(e.doc,d)]:null;c=(f==null?void 0:f.attrs)&&f.attrs[u]}if(c){let d=e.sliceDoc(r,i).toLowerCase(),f='"',m='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",m=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let g of c)s.push({label:g,apply:f+g+m,type:"constant"})}}return{from:r,to:i,options:s,validFor:l}}function Ule(e,t){let{state:n,pos:r}=t,i=Oi(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.fromUle(r,i)}const TWe=Ld.parser.configure({top:"SingleExpression"}),jle=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Ile.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Dle.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Nle.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:TWe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Ld.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:Y_.parser}],zle=[{name:"style",parser:Y_.parser.configure({top:"Styles"})}].concat($le.map(e=>({name:e,parser:Ld.parser}))),Vle=_y.define({name:"html",parser:sVe.configure({props:[dT.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:"-._"}}),Kk=Vle.configure({wrap:Ele(jle,zle)});function wWe(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=Ele((e.nestedLanguages||[]).concat(jle),(e.nestedAttributes||[]).concat(zle)));let r=n?Vle.configure({wrap:n,dialect:t}):t?Kk.configure({dialect:t}):Kk;return new YE(r,[Kk.data.of({autocomplete:SWe(e)}),e.autoCloseTags!==!1?xWe:[],pWe().support,MVe().support])}const Hq=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),xWe=un.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Kk.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u,c,d;let f=a.doc.sliceString(l.from-1,l.to)==r,{head:m}=l,g=Oi(a).resolveInner(m-1,-1),v;if((g.name=="TagName"||g.name=="StartTag")&&(g=g.parent),f&&r==">"&&g.name=="OpenTag"){if(((c=(u=g.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(v=Py(a.doc,g.parent,m))&&!Hq.has(v)){let S=m+(a.doc.sliceString(m,m+1)===">"?1:0),O=``;return{range:l,changes:{from:m,to:S,insert:O}}}}else if(f&&r=="/"&&g.name=="IncompleteCloseTag"){let S=g.parent;if(g.from==m-2&&((d=S.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(v=Py(a.doc,S,m))&&!Hq.has(v)){let O=m+(a.doc.sliceString(m,m+1)===">"?1:0),E=`${v}>`;return{range:yt.cursor(m+E.length,-1),changes:{from:m,to:O,insert:E}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Wle=_4({commentTokens:{block:{open:""}}}),Hle=new Gn,Qle=nze.configure({props:[sv.add(e=>!e.is("Block")||e.is("Document")||z3(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Hle.add(z3),dT.add({Document:()=>null}),Wm.add({Document:Wle})]});function z3(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function kWe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=z3(r.type))!=null&&i<=t)break;n=r}return n.to}const CWe=Eae.of((e,t,n)=>{for(let r=Oi(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function K4(e){return new Cu(Wle,e,[CWe],"markdown")}const _We=K4(Qle),AWe=Qle.configure([pze,mze,hze,gze,{props:[sv.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),Yle=K4(AWe);function RWe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=__.matchLanguageName(e,n,!0),r instanceof __)return r.support?r.support.language.parser:QE.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class Vx{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(+qle(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function Gle(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 Vx(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new Vx(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 Vx(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 Vx(o.parent,l,l+c,a[1],u,d,o))}}return r}function qle(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function aP(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=qle(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 J4(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(cT)!=" ")return e;let r=xc(e,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+e.slice(n)}const IWe=({state:e,dispatch:t})=>{let n=Oi(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!Yle.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=Gle(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 S=c.node.firstChild,O=c.node.getChild("ListItem","ListItem");if(S.to>=s||O&&O.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let E=u.length>1?u[u.length-2]:null,w,k="";E&&E.item?(w=l.from+E.from,k=E.marker(r,1)):w=l.from+(E?E.to:0);let A=[{from:w,to:s,insert:k}];return c.node.name=="OrderedList"&&aP(c.item,r,A,-2),E&&E.node.name=="OrderedList"&&aP(E.item,r,A),{range:yt.cursor(w+k.length),changes:A}}else{let E=Yq(u,e,l);return{range:yt.cursor(s+E.length+1),changes:{from:l.from,insert:E+e.lineBreak}}}}if(c.node.name=="Blockquote"&&d&&l.from){let S=r.lineAt(l.from-1),O=/>\s*$/.exec(S.text);if(O&&O.index==c.from){let E=e.changes([{from:S.from+O.index,to:S.to},{from:l.from+c.from,to:l.to}]);return{range:a.map(E),changes:E}}}let f=[];c.node.name=="OrderedList"&&aP(c.item,r,f);let m=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let S=0,O=u.length-1;S<=O;S++)g+=S==O&&!m?u[S].marker(r,1):u[S].blank(Sl.from&&/\s/.test(l.text.charAt(v-l.from-1));)v--;return g=J4(g,e),DWe(c.node,e.doc)&&(g=Yq(u,e,l)+e.lineBreak+g),f.push({from:v,to:s,insert:e.lineBreak+g}),{range:yt.cursor(v+g.length+1),changes:f}});return i?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function Qq(e){return e.name=="QuoteMark"||e.name=="ListMark"}function DWe(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=Oi(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&Yle.isActiveAt(e,o.from)){let l=s.lineAt(a),u=Gle(NWe(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:yt.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 f=l.from+c.from;if(c.item&&c.node.from(()=>{var r={646:(a,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c,StringValue:d,Timestamp:p}=u(532),m=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"}]),g=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"}]),v=c.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:z},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Ke}}]),E=c.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:de},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:O,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:ie},{no:6,name:"is_removed",kind:"scalar",T:8}]),O=c.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:S},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:x,repeated:!0},{no:4,name:"presence_change",kind:"message",T:rt}]),S=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}]),x=c.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:C,oneof:"body"},{no:2,name:"add",kind:"message",T:I,oneof:"body"},{no:3,name:"move",kind:"message",T:_,oneof:"body"},{no:4,name:"remove",kind:"message",T:w,oneof:"body"},{no:5,name:"edit",kind:"message",T:F,oneof:"body"},{no:6,name:"select",kind:"message",T:M,oneof:"body"},{no:7,name:"style",kind:"message",T:L,oneof:"body"},{no:8,name:"increase",kind:"message",T:W,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:H,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:q,oneof:"body"}]),C=c.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:j},{no:4,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Set"}),I=c.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"prev_created_at",kind:"message",T:ie},{no:3,name:"value",kind:"message",T:j},{no:4,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Add"}),_=c.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"prev_created_at",kind:"message",T:ie},{no:3,name:"created_at",kind:"message",T:ie},{no:4,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Move"}),w=c.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Remove"}),F=c.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:oe},{no:3,name:"to",kind:"message",T:oe},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:ie}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:ie},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),M=c.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:oe},{no:3,name:"to",kind:"message",T:oe},{no:4,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Select"}),L=c.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:oe},{no:3,name:"to",kind:"message",T:oe},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:ie},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:ie}}],{localName:"Operation_Style"}),W=c.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"value",kind:"message",T:j},{no:3,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Increase"}),H=c.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:ct},{no:3,name:"to",kind:"message",T:ct},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:ie}},{no:5,name:"contents",kind:"message",T:Fe,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_TreeEdit"}),q=c.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:ct},{no:3,name:"to",kind:"message",T:ct},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_TreeStyle"}),j=c.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:ie},{no:2,name:"moved_at",kind:"message",T:ie},{no:3,name:"removed_at",kind:"message",T:ie},{no:4,name:"type",kind:"enum",T:c.getEnumType(m)},{no:5,name:"value",kind:"scalar",T:12}]),z=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:G,oneof:"body"},{no:5,name:"text",kind:"message",T:ee,oneof:"body"},{no:6,name:"counter",kind:"message",T:Q,oneof:"body"},{no:7,name:"tree",kind:"message",T:ae,oneof:"body"}]),X=c.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:Te,repeated:!0},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"moved_at",kind:"message",T:ie},{no:4,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_JSONObject"}),Z=c.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:te,repeated:!0},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"moved_at",kind:"message",T:ie},{no:4,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_JSONArray"}),G=c.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:ie},{no:4,name:"moved_at",kind:"message",T:ie},{no:5,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_Primitive"}),ee=c.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:Oe,repeated:!0},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"moved_at",kind:"message",T:ie},{no:4,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_Text"}),Q=c.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:ie},{no:4,name:"moved_at",kind:"message",T:ie},{no:5,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_Counter"}),ae=c.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:Re,repeated:!0},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"moved_at",kind:"message",T:ie},{no:4,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_Tree"}),Te=c.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:z}]),te=c.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:te},{no:2,name:"element",kind:"message",T:z}]),pe=c.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:ie}]),Oe=c.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:me},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:ie},{no:4,name:"ins_prev_id",kind:"message",T:me},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:pe}}]),me=c.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:ie},{no:2,name:"offset",kind:"scalar",T:5}]),Re=c.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:et},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:ie},{no:5,name:"ins_prev_id",kind:"message",T:et},{no:6,name:"ins_next_id",kind:"message",T:et},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:pe}}]),Fe=c.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:Re,repeated:!0}]),et=c.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:ie},{no:2,name:"offset",kind:"scalar",T:5}]),ct=c.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:et},{no:2,name:"left_sibling_id",kind:"message",T:et}]),Ye=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}]),nt=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}]),ke=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:qe},{no:4,name:"client_deactivate_threshold",kind:"message",T:d}]),qe=c.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"}),Ge=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}]),rt=c.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(Ot)},{no:2,name:"presence",kind:"message",T:Ke}]),Ot=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"}]),Ke=c.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),de=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}]),oe=c.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:ie},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),ie=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}]),Me=c.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),He=c.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(g)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Me}]);l.ValueType=m,l.DocEventType=g,l.Snapshot=v,l.ChangePack=E,l.Change=O,l.ChangeID=S,l.Operation=x,l.Operation_Set=C,l.Operation_Add=I,l.Operation_Move=_,l.Operation_Remove=w,l.Operation_Edit=F,l.Operation_Select=M,l.Operation_Style=L,l.Operation_Increase=W,l.Operation_TreeEdit=H,l.Operation_TreeStyle=q,l.JSONElementSimple=j,l.JSONElement=z,l.JSONElement_JSONObject=X,l.JSONElement_JSONArray=Z,l.JSONElement_Primitive=G,l.JSONElement_Text=ee,l.JSONElement_Counter=Q,l.JSONElement_Tree=ae,l.RHTNode=Te,l.RGANode=te,l.NodeAttr=pe,l.TextNode=Oe,l.TextNodeID=me,l.TreeNode=Re,l.TreeNodes=Fe,l.TreeNodeID=et,l.TreePos=ct,l.User=Ye,l.Project=nt,l.UpdatableProjectFields=ke,l.UpdatableProjectFields_AuthWebhookMethods=qe,l.DocumentSummary=Ge,l.PresenceChange=rt,l.PresenceChange_ChangeType=Ot,l.Presence=Ke,l.Checkpoint=de,l.TextNodePos=oe,l.TimeTicket=ie,l.DocEventBody=Me,l.DocEvent=He},295:(a,l,u)=>{const{ActivateClientRequest:c,ActivateClientResponse:d,AttachDocumentRequest:p,AttachDocumentResponse:m,BroadcastRequest:g,BroadcastResponse:v,DeactivateClientRequest:E,DeactivateClientResponse:O,DetachDocumentRequest:S,DetachDocumentResponse:x,PushPullChangesRequest:C,PushPullChangesResponse:I,RemoveDocumentRequest:_,RemoveDocumentResponse:w,WatchDocumentRequest:F,WatchDocumentResponse:M}=u(176),{MethodKind:L}=u(532),W={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:c,O:d,kind:L.Unary},deactivateClient:{name:"DeactivateClient",I:E,O,kind:L.Unary},attachDocument:{name:"AttachDocument",I:p,O:m,kind:L.Unary},detachDocument:{name:"DetachDocument",I:S,O:x,kind:L.Unary},removeDocument:{name:"RemoveDocument",I:_,O:w,kind:L.Unary},pushPullChanges:{name:"PushPullChanges",I:C,O:I,kind:L.Unary},watchDocument:{name:"WatchDocument",I:F,O:M,kind:L.ServerStreaming},broadcast:{name:"Broadcast",I:g,O:v,kind:L.Unary}}};l.V=W},176:(a,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c}=u(532),{ChangePack:d,DocEvent:p}=u(646),m=c.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),g=c.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),v=c.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),E=c.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),O=c.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),S=c.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),x=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}]),C=c.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:d}]),I=c.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),_=c.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:w,oneof:"body"},{no:2,name:"event",kind:"message",T:p,oneof:"body"}]),w=c.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),F=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}]),M=c.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),L=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}]),W=c.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),H=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}]),q=c.makeMessageType("yorkie.v1.BroadcastResponse",[]);l.ActivateClientRequest=m,l.ActivateClientResponse=g,l.DeactivateClientRequest=v,l.DeactivateClientResponse=E,l.AttachDocumentRequest=O,l.AttachDocumentResponse=S,l.DetachDocumentRequest=x,l.DetachDocumentResponse=C,l.WatchDocumentRequest=I,l.WatchDocumentResponse=_,l.WatchDocumentResponse_Initialization=w,l.RemoveDocumentRequest=F,l.RemoveDocumentResponse=M,l.PushPullChangesRequest=L,l.PushPullChangesResponse=W,l.BroadcastRequest=H,l.BroadcastResponse=q},79:(a,l,u)=>{u.d(l,{Lt:()=>g,TD:()=>m,oP:()=>v});var c=u(818),d=u(120),p=u(210),m;(function(E){E[E.Varint=0]="Varint",E[E.Bit64=1]="Bit64",E[E.LengthDelimited=2]="LengthDelimited",E[E.StartGroup=3]="StartGroup",E[E.EndGroup=4]="EndGroup",E[E.Bit32=5]="Bit32"})(m||(m={}));class g{constructor(O){this.stack=[],this.textEncoder=O??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let O=0;for(let C=0;C>>0)}raw(O){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(O),this}uint32(O){for((0,d.fp)(O);O>127;)this.buf.push(O&127|128),O=O>>>7;return this.buf.push(O),this}int32(O){return(0,d.ug)(O),(0,c.fC)(O,this.buf),this}bool(O){return this.buf.push(O?1:0),this}bytes(O){return this.uint32(O.byteLength),this.raw(O)}string(O){let S=this.textEncoder.encode(O);return this.uint32(S.byteLength),this.raw(S)}float(O){(0,d.E_)(O);let S=new Uint8Array(4);return new DataView(S.buffer).setFloat32(0,O,!0),this.raw(S)}double(O){let S=new Uint8Array(8);return new DataView(S.buffer).setFloat64(0,O,!0),this.raw(S)}fixed32(O){(0,d.fp)(O);let S=new Uint8Array(4);return new DataView(S.buffer).setUint32(0,O,!0),this.raw(S)}sfixed32(O){(0,d.ug)(O);let S=new Uint8Array(4);return new DataView(S.buffer).setInt32(0,O,!0),this.raw(S)}sint32(O){return(0,d.ug)(O),O=(O<<1^O>>31)>>>0,(0,c.fC)(O,this.buf),this}sfixed64(O){let S=new Uint8Array(8),x=new DataView(S.buffer),C=p.q.enc(O);return x.setInt32(0,C.lo,!0),x.setInt32(4,C.hi,!0),this.raw(S)}fixed64(O){let S=new Uint8Array(8),x=new DataView(S.buffer),C=p.q.uEnc(O);return x.setInt32(0,C.lo,!0),x.setInt32(4,C.hi,!0),this.raw(S)}int64(O){let S=p.q.enc(O);return(0,c._y)(S.lo,S.hi,this.buf),this}sint64(O){let S=p.q.enc(O),x=S.hi>>31,C=S.lo<<1^x,I=(S.hi<<1|S.lo>>>31)^x;return(0,c._y)(C,I,this.buf),this}uint64(O){let S=p.q.uEnc(O);return(0,c._y)(S.lo,S.hi,this.buf),this}}class v{constructor(O,S){this.varint64=c.sg,this.uint32=c.jI,this.buf=O,this.len=O.length,this.pos=0,this.view=new DataView(O.buffer,O.byteOffset,O.byteLength),this.textDecoder=S??new TextDecoder}tag(){let O=this.uint32(),S=O>>>3,x=O&7;if(S<=0||x<0||x>5)throw new Error("illegal tag: field no "+S+" wire type "+x);return[S,x]}skip(O){let S=this.pos;switch(O){case m.Varint:for(;this.buf[this.pos++]&128;);break;case m.Bit64:this.pos+=4;case m.Bit32:this.pos+=4;break;case m.LengthDelimited:let x=this.uint32();this.pos+=x;break;case m.StartGroup:let C;for(;(C=this.tag()[1])!==m.EndGroup;)this.skip(C);break;default:throw new Error("cant skip wire type "+O)}return this.assertBounds(),this.buf.subarray(S,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let O=this.uint32();return O>>>1^-(O&1)}int64(){return p.q.dec(...this.varint64())}uint64(){return p.q.uDec(...this.varint64())}sint64(){let[O,S]=this.varint64(),x=-(O&1);return O=(O>>>1|(S&1)<<31)^x,S=S>>>1^x,p.q.dec(O,S)}bool(){let[O,S]=this.varint64();return O!==0||S!==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 O=this.uint32(),S=this.pos;return this.pos+=O,this.assertBounds(),this.buf.subarray(S,S+O)}string(){return this.textDecoder.decode(this.bytes())}}},465:(a,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:(a,l,u)=>{u.d(l,{I:()=>p});var c=u(561),d=u(850);class p extends c.v{constructor(g){super(),this.typeUrl="",this.value=new Uint8Array(0),d.w.util.initPartial(g,this)}toJson(g){var v;if(this.typeUrl==="")return{};const E=this.typeUrlToName(this.typeUrl),O=(v=g==null?void 0:g.typeRegistry)===null||v===void 0?void 0:v.findMessage(E);if(!O)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let x=O.fromBinary(this.value).toJson(g);return(E.startsWith("google.protobuf.")||x===null||Array.isArray(x)||typeof x!="object")&&(x={value:x}),x["@type"]=this.typeUrl,x}fromJson(g,v){var E;if(g===null||Array.isArray(g)||typeof g!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${g===null?"null":Array.isArray(g)?"array":typeof g}`);if(Object.keys(g).length==0)return this;const O=g["@type"];if(typeof O!="string"||O=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const S=this.typeUrlToName(O),x=(E=v==null?void 0:v.typeRegistry)===null||E===void 0?void 0:E.findMessage(S);if(!x)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${O} is not in the type registry`);let C;if(S.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(g,"value"))C=x.fromJson(g.value,v);else{const I=Object.assign({},g);delete I["@type"],C=x.fromJson(I,v)}return this.packFrom(C),this}packFrom(g){this.value=g.toBinary(),this.typeUrl=this.typeNameToUrl(g.getType().typeName)}unpackTo(g){return this.is(g.getType())?(g.fromBinary(this.value),!0):!1}unpack(g){if(this.typeUrl==="")return;const v=g.findMessage(this.typeUrlToName(this.typeUrl));if(v)return v.fromBinary(this.value)}is(g){if(this.typeUrl==="")return!1;const v=this.typeUrlToName(this.typeUrl);let E="";return typeof g=="string"?E=g:E=g.typeName,v===E}typeNameToUrl(g){return`type.googleapis.com/${g}`}typeUrlToName(g){if(!g.length)throw new Error(`invalid type url: ${g}`);const v=g.lastIndexOf("/"),E=v>=0?g.substring(v+1):g;if(!E.length)throw new Error(`invalid type url: ${g}`);return E}static pack(g){const v=new p;return v.packFrom(g),v}static fromBinary(g,v){return new p().fromBinary(g,v)}static fromJson(g,v){return new p().fromJson(g,v)}static fromJsonString(g,v){return new p().fromJsonString(g,v)}static equals(g,v){return d.w.util.equals(p,g,v)}}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:(a,l,u)=>{u.d(l,{Ak:()=>g,CZ:()=>m,Fd:()=>v,_y:()=>d,fC:()=>C,jI:()=>I,sg:()=>c});function c(){let _=0,w=0;for(let M=0;M<28;M+=7){let L=this.buf[this.pos++];if(_|=(L&127)<>4,!(F&128))return this.assertBounds(),[_,w];for(let M=3;M<=31;M+=7){let L=this.buf[this.pos++];if(w|=(L&127)<>>W,q=!(!(H>>>7)&&w==0),j=(q?H|128:H)&255;if(F.push(j),!q)return}const M=_>>>28&15|(w&7)<<4,L=!!(w>>3);if(F.push((L?M|128:M)&255),!!L){for(let W=3;W<31;W=W+7){const H=w>>>W,q=!!(H>>>7),j=(q?H|128:H)&255;if(F.push(j),!q)return}F.push(w>>>31&1)}}const p=4294967296;function m(_){const w=_[0]==="-";w&&(_=_.slice(1));const F=1e6;let M=0,L=0;function W(H,q){const j=Number(_.slice(H,q));L*=F,M=M*F+j,M>=p&&(L=L+(M/p|0),M=M%p)}return W(-24,-18),W(-18,-12),W(-12,-6),W(-6),w?S(M,L):O(M,L)}function g(_,w){let F=O(_,w);const M=F.hi&2147483648;M&&(F=S(F.lo,F.hi));const L=v(F.lo,F.hi);return M?"-"+L:L}function v(_,w){if({lo:_,hi:w}=E(_,w),w<=2097151)return String(p*w+_);const F=_&16777215,M=(_>>>24|w<<8)&16777215,L=w>>16&65535;let W=F+M*6777216+L*6710656,H=M+L*8147497,q=L*2;const j=1e7;return W>=j&&(H+=Math.floor(W/j),W%=j),H>=j&&(q+=Math.floor(H/j),H%=j),q.toString()+x(H)+x(W)}function E(_,w){return{lo:_>>>0,hi:w>>>0}}function O(_,w){return{lo:_|0,hi:w|0}}function S(_,w){return w=~w,_?_=~_+1:w+=1,O(_,w)}const x=_=>{const w=String(_);return"0000000".slice(w.length)+w};function C(_,w){if(_>=0){for(;_>127;)w.push(_&127|128),_=_>>>7;w.push(_)}else{for(let F=0;F<9;F++)w.push(_&127|128),_=_>>7;w.push(1)}}function I(){let _=this.buf[this.pos++],w=_&127;if(!(_&128))return this.assertBounds(),w;if(_=this.buf[this.pos++],w|=(_&127)<<7,!(_&128))return this.assertBounds(),w;if(_=this.buf[this.pos++],w|=(_&127)<<14,!(_&128))return this.assertBounds(),w;if(_=this.buf[this.pos++],w|=(_&127)<<21,!(_&128))return this.assertBounds(),w;_=this.buf[this.pos++],w|=(_&15)<<28;for(let F=5;_&128&&F<10;F++)_=this.buf[this.pos++];if(_&128)throw new Error("invalid varint");return this.assertBounds(),w>>>0}},532:(a,l,u)=>{u.r(l),u.d(l,{Any:()=>eo.I,Api:()=>va,BinaryReader:()=>H.oP,BinaryWriter:()=>H.Lt,BoolValue:()=>li,BytesValue:()=>_o,CodeGeneratorRequest:()=>Gs,CodeGeneratorResponse:()=>Mo,CodeGeneratorResponse_Feature:()=>is,CodeGeneratorResponse_File:()=>os,DescriptorProto:()=>me,DescriptorProto_ExtensionRange:()=>Re,DescriptorProto_ReservedRange:()=>Fe,DoubleValue:()=>Ti,Duration:()=>Ys,Edition:()=>te,Empty:()=>ba,Enum:()=>ml,EnumDescriptorProto:()=>rt,EnumDescriptorProto_EnumReservedRange:()=>Ot,EnumOptions:()=>_t,EnumValue:()=>br,EnumValueDescriptorProto:()=>Ke,EnumValueOptions:()=>At,ExtensionRangeOptions:()=>et,ExtensionRangeOptions_Declaration:()=>Ye,ExtensionRangeOptions_VerificationState:()=>ct,FeatureSet:()=>Xt,FeatureSetDefaults:()=>tt,FeatureSetDefaults_FeatureSetEditionDefault:()=>De,FeatureSet_EnumType:()=>Cn,FeatureSet_FieldPresence:()=>vn,FeatureSet_JsonFormat:()=>$e,FeatureSet_MessageEncoding:()=>Ce,FeatureSet_RepeatedFieldEncoding:()=>$n,FeatureSet_Utf8Validation:()=>qn,Field:()=>Qn,FieldDescriptorProto:()=>nt,FieldDescriptorProto_Label:()=>qe,FieldDescriptorProto_Type:()=>ke,FieldMask:()=>ya,FieldOptions:()=>Be,FieldOptions_CType:()=>ce,FieldOptions_EditionDefault:()=>Ie,FieldOptions_JSType:()=>ye,FieldOptions_OptionRetention:()=>be,FieldOptions_OptionTargetType:()=>we,Field_Cardinality:()=>Wc,Field_Kind:()=>mr,FileDescriptorProto:()=>Oe,FileDescriptorSet:()=>pe,FileOptions:()=>ie,FileOptions_OptimizeMode:()=>Me,FloatValue:()=>Ss,GeneratedCodeInfo:()=>jt,GeneratedCodeInfo_Annotation:()=>qt,GeneratedCodeInfo_Annotation_Semantic:()=>Bt,Int32Value:()=>Vr,Int64Value:()=>Lo,ListValue:()=>Si,LongType:()=>p.p,Message:()=>ae.v,MessageOptions:()=>He,Method:()=>Zs,MethodDescriptorProto:()=>oe,MethodIdempotency:()=>Te.w,MethodKind:()=>Te.t,MethodOptions:()=>Mt,MethodOptions_IdempotencyLevel:()=>it,Mixin:()=>ws,NullValue:()=>Ba,OneofDescriptorProto:()=>Ge,OneofOptions:()=>ft,Option:()=>Ro,ScalarType:()=>p.w,ServiceDescriptorProto:()=>de,ServiceOptions:()=>pt,SourceCodeInfo:()=>wt,SourceCodeInfo_Location:()=>Gt,SourceContext:()=>Ao,StringValue:()=>rs,Struct:()=>Ei,Syntax:()=>qs,Timestamp:()=>ns,Type:()=>hl,UInt32Value:()=>Fr,UInt64Value:()=>to,UninterpretedOption:()=>bt,UninterpretedOption_NamePart:()=>$t,Value:()=>Co,Version:()=>go,WireType:()=>H.TD,codegenInfo:()=>Q,createDescriptorSet:()=>Kt,createRegistry:()=>pp,createRegistryFromDescriptors:()=>Jd,proto2:()=>w,proto3:()=>c.w,protoBase64:()=>W.W,protoDelimited:()=>X,protoDouble:()=>M,protoInt64:()=>L.q,toPlainMessage:()=>pl});var c=u(850),d=u(493),p=u(465),m=u(744);function g(){return Object.assign(Object.assign({},(0,m.gY)()),{writeMessage(V,R,U){const he=V.getType();let xe;try{for(xe of he.fields.byNumber()){let We,Ze=xe.repeated,kt=xe.localName;if(xe.oneof){const lt=V[xe.oneof.localName];if(lt.case!==kt)continue;We=lt.value}else if(We=V[kt],We===void 0&&!xe.oneof&&!xe.opt)throw new Error(`cannot encode field ${he.typeName}.${xe.name} to binary: required field not set`);switch(xe.kind){case"scalar":case"enum":let lt=xe.kind=="enum"?p.w.INT32:xe.T;if(Ze)if(xe.packed)(0,m.Jj)(R,lt,xe.no,We);else for(const It of We)(0,m.NN)(R,lt,xe.no,It,!0);else We!==void 0&&(0,m.NN)(R,lt,xe.no,We,!0);break;case"message":if(Ze)for(const It of We)(0,m.oQ)(R,U,xe,It);else(0,m.oQ)(R,U,xe,We);break;case"map":for(const[It,Ht]of Object.entries(We))(0,m.gQ)(R,U,xe,It,Ht);break}}}catch(We){let Ze=xe?`cannot encode field ${he.typeName}.${xe==null?void 0:xe.name} to binary`:`cannot encode message ${he.typeName} to binary`,kt=We instanceof Error?We.message:String(We);throw new Error(Ze+(kt.length>0?`: ${kt}`:""))}return U.writeUnknownFields&&this.writeUnknownFields(V,R),R}})}var v=u(433),E=u(501),O=u(215),S=u(504),x=u(432),C=u(120),I=u(814);function _(){return(0,I.b)((V,R)=>function(he,xe,We){if(he.kind=="map"){const Ze={};switch(he.V.kind){case"scalar":for(const[lt,It]of Object.entries(xe)){const Ht=R(he.V.T,It,!0);(0,C.hu)(Ht!==void 0),Ze[lt.toString()]=Ht}break;case"message":for(const[lt,It]of Object.entries(xe))Ze[lt.toString()]=It.toJson(We);break;case"enum":const kt=he.V.T;for(const[lt,It]of Object.entries(xe)){(0,C.hu)(It===void 0||typeof It=="number");const Ht=V(kt,It,!0,We.enumAsInteger);(0,C.hu)(Ht!==void 0),Ze[lt.toString()]=Ht}break}return We.emitDefaultValues||Object.keys(Ze).length>0?Ze:void 0}else if(he.repeated){const Ze=[];switch(he.kind){case"scalar":for(let kt=0;kt0?Ze:void 0}else{if(xe===void 0){if(!he.oneof&&!he.opt)throw"required field not set";return}switch(he.kind){case"scalar":return R(he.T,xe,!0);case"enum":return V(he.T,xe,!0,We.enumAsInteger);case"message":return(0,x.E)(he.T,xe).toJson(We)}}})}const w=(0,d.F)("proto2",_(),g(),Object.assign(Object.assign({},(0,v.f)()),{newFieldList(V){return new E.i(V,F)},initFields(V){for(const R of V.getType().fields.byMember()){const U=R.localName,he=V;if(R.repeated){he[U]=[];continue}switch(R.kind){case"oneof":he[U]={case:void 0};break;case"map":he[U]={};break}}}}));function F(V){var R,U,he,xe,We;const Ze=[];let kt;for(const lt of typeof V=="function"?V():V){const It=lt;if(It.localName=(0,S.Rz)(lt.name,lt.oneof!==void 0),It.jsonName=(R=lt.jsonName)!==null&&R!==void 0?R:(0,S.x1)(lt.name),It.repeated=(U=lt.repeated)!==null&&U!==void 0?U:!1,lt.kind=="scalar"&&(It.L=(he=lt.L)!==null&&he!==void 0?he:p.p.BIGINT),lt.oneof!==void 0){const Ht=typeof lt.oneof=="string"?lt.oneof:lt.oneof.name;(!kt||kt.name!=Ht)&&(kt=new O.o(Ht)),It.oneof=kt,kt.addField(It)}lt.kind=="message"&&(It.delimited=(xe=lt.delimited)!==null&&xe!==void 0?xe:!1),It.packed=(We=lt.packed)!==null&&We!==void 0?We:!1,Ze.push(It)}return Ze}const M={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var L=u(210),W=u(236),H=u(79),q=function(V){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R=V[Symbol.asyncIterator],U;return R?R.call(V):(V=typeof __values=="function"?__values(V):V[Symbol.iterator](),U={},he("next"),he("throw"),he("return"),U[Symbol.asyncIterator]=function(){return this},U);function he(We){U[We]=V[We]&&function(Ze){return new Promise(function(kt,lt){Ze=V[We](Ze),xe(kt,lt,Ze.done,Ze.value)})}}function xe(We,Ze,kt,lt){Promise.resolve(lt).then(function(It){We({value:It,done:kt})},Ze)}},j=function(V){return this instanceof j?(this.v=V,this):new j(V)},z=function(V,R,U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var he=U.apply(V,R||[]),xe,We=[];return xe={},kt("next"),kt("throw"),kt("return",Ze),xe[Symbol.asyncIterator]=function(){return this},xe;function Ze(Hn){return function(pi){return Promise.resolve(pi).then(Hn,Fn)}}function kt(Hn,pi){he[Hn]&&(xe[Hn]=function(Qi){return new Promise(function(iu,Xg){We.push([Hn,Qi,iu,Xg])>1||lt(Hn,Qi)})},pi&&(xe[Hn]=pi(xe[Hn])))}function lt(Hn,pi){try{It(he[Hn](pi))}catch(Qi){Jr(We[0][3],Qi)}}function It(Hn){Hn.value instanceof j?Promise.resolve(Hn.value.v).then(Ht,Fn):Jr(We[0][2],Hn)}function Ht(Hn){lt("next",Hn)}function Fn(Hn){lt("throw",Hn)}function Jr(Hn,pi){Hn(pi),We.shift(),We.length&<(We[0][0],We[0][1])}};const X={enc(V,R){const U=(0,m.gY)().makeWriteOptions(R);return U.writerFactory().bytes(V.toBinary(U)).finish()},dec(V,R,U){const he=(0,m.gY)().makeReadOptions(U);return V.fromBinary(he.readerFactory(R).bytes(),he)},decStream(V,R){return z(this,arguments,function*(){var he,xe,We,Ze;function kt(Jr,Hn){const pi=new Uint8Array(Jr.byteLength+Hn.byteLength);return pi.set(Jr),pi.set(Hn,Jr.length),pi}let lt=new Uint8Array(0);try{for(var It=!0,Ht=q(R),Fn;Fn=yield j(Ht.next()),he=Fn.done,!he;It=!0)for(Ze=Fn.value,It=!1,lt=kt(lt,Ze);;){const Hn=X.peekSize(lt);if(Hn.eof||Hn.offset+Hn.size>lt.byteLength)break;yield yield j(X.dec(V,lt)),lt=lt.subarray(Hn.offset+Hn.size)}}catch(Jr){xe={error:Jr}}finally{try{!It&&!he&&(We=Ht.return)&&(yield j(We.call(Ht)))}finally{if(xe)throw xe.error}}if(lt.byteLength>0)throw new Error("incomplete data")})},peekSize(V){const R={eof:!0,size:null,offset:null};for(let U=0;U<10;U++){if(U>V.byteLength)return R;if(!(V[U]&128)){const he=new H.oP(V);let xe;try{xe=he.uint32()}catch(We){if(We instanceof RangeError)return R;throw We}return{eof:!1,size:xe,offset:he.pos}}}throw new Error("invalid varint")}};var Z=u(781);function G(V){switch(V.typeName){case"google.protobuf.Any":{const R=V.fields.find(he=>he.number==1&&he.fieldKind=="scalar"&&he.scalar===p.w.STRING),U=V.fields.find(he=>he.number==2&&he.fieldKind=="scalar"&&he.scalar===p.w.BYTES);if(R&&U)return{typeName:V.typeName,typeUrl:R,value:U};break}case"google.protobuf.Timestamp":{const R=V.fields.find(he=>he.number==1&&he.fieldKind=="scalar"&&he.scalar===p.w.INT64),U=V.fields.find(he=>he.number==2&&he.fieldKind=="scalar"&&he.scalar===p.w.INT32);if(R&&U)return{typeName:V.typeName,seconds:R,nanos:U};break}case"google.protobuf.Duration":{const R=V.fields.find(he=>he.number==1&&he.fieldKind=="scalar"&&he.scalar===p.w.INT64),U=V.fields.find(he=>he.number==2&&he.fieldKind=="scalar"&&he.scalar===p.w.INT32);if(R&&U)return{typeName:V.typeName,seconds:R,nanos:U};break}case"google.protobuf.Struct":{const R=V.fields.find(U=>U.number==1&&!U.repeated);if((R==null?void 0:R.fieldKind)!=="map"||R.mapValue.kind!=="message"||R.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:V.typeName,fields:R}}case"google.protobuf.Value":{const R=V.oneofs.find(lt=>lt.name==="kind"),U=V.fields.find(lt=>lt.number==1&<.oneof===R);if((U==null?void 0:U.fieldKind)!=="enum"||U.enum.typeName!=="google.protobuf.NullValue")return;const he=V.fields.find(lt=>lt.number==2&<.fieldKind=="scalar"&<.scalar===p.w.DOUBLE&<.oneof===R),xe=V.fields.find(lt=>lt.number==3&<.fieldKind=="scalar"&<.scalar===p.w.STRING&<.oneof===R),We=V.fields.find(lt=>lt.number==4&<.fieldKind=="scalar"&<.scalar===p.w.BOOL&<.oneof===R),Ze=V.fields.find(lt=>lt.number==5&<.oneof===R);if((Ze==null?void 0:Ze.fieldKind)!=="message"||Ze.message.typeName!=="google.protobuf.Struct")return;const kt=V.fields.find(lt=>lt.number==6&<.oneof===R);if((kt==null?void 0:kt.fieldKind)!=="message"||kt.message.typeName!=="google.protobuf.ListValue")return;if(R&&he&&xe&&We)return{typeName:V.typeName,kind:R,nullValue:U,numberValue:he,stringValue:xe,boolValue:We,structValue:Ze,listValue:kt};break}case"google.protobuf.ListValue":{const R=V.fields.find(U=>U.number==1&&U.repeated);if((R==null?void 0:R.fieldKind)!="message"||R.message.typeName!=="google.protobuf.Value")break;return{typeName:V.typeName,values:R}}case"google.protobuf.FieldMask":{const R=V.fields.find(U=>U.number==1&&U.fieldKind=="scalar"&&U.scalar===p.w.STRING&&U.repeated);if(R)return{typeName:V.typeName,paths:R};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 R=V.fields.find(U=>U.number==1&&U.name=="value");if(!R||R.fieldKind!=="scalar")break;return{typeName:V.typeName,value:R}}}}const ee="@bufbuild/protobuf",Q={packageName:"@bufbuild/protobuf",localName:S.r1,reifyWkt:G,getUnwrappedFieldType:x.w,scalarDefaultValue:Z.kY,safeIdentifier:S.GD,safeObjectProperty:S.ll,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:ee},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:ee},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:ee},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:ee},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:ee},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:ee},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:ee},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:ee},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:ee},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:ee},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:ee},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:ee},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:ee},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:ee},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:ee},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:ee},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:ee},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:ee},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:ee},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:ee}},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 ae=u(561),Te=u(328),te;(function(V){V[V.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",V[V.EDITION_PROTO2=998]="EDITION_PROTO2",V[V.EDITION_PROTO3=999]="EDITION_PROTO3",V[V.EDITION_2023=1e3]="EDITION_2023",V[V.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",V[V.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",V[V.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",V[V.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",V[V.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(te||(te={})),w.util.setEnumType(te,"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 pe extends ae.v{constructor(R){super(),this.file=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new pe().fromBinary(R,U)}static fromJson(R,U){return new pe().fromJson(R,U)}static fromJsonString(R,U){return new pe().fromJsonString(R,U)}static equals(R,U){return w.util.equals(pe,R,U)}}pe.runtime=w,pe.typeName="google.protobuf.FileDescriptorSet",pe.fields=w.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:Oe,repeated:!0}]);class Oe extends ae.v{constructor(R){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new Oe().fromBinary(R,U)}static fromJson(R,U){return new Oe().fromJson(R,U)}static fromJsonString(R,U){return new Oe().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Oe,R,U)}}Oe.runtime=w,Oe.typeName="google.protobuf.FileDescriptorProto",Oe.fields=w.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:me,repeated:!0},{no:5,name:"enum_type",kind:"message",T:rt,repeated:!0},{no:6,name:"service",kind:"message",T:de,repeated:!0},{no:7,name:"extension",kind:"message",T:nt,repeated:!0},{no:8,name:"options",kind:"message",T:ie,opt:!0},{no:9,name:"source_code_info",kind:"message",T:wt,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:w.getEnumType(te),opt:!0}]);class me extends ae.v{constructor(R){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new me().fromBinary(R,U)}static fromJson(R,U){return new me().fromJson(R,U)}static fromJsonString(R,U){return new me().fromJsonString(R,U)}static equals(R,U){return w.util.equals(me,R,U)}}me.runtime=w,me.typeName="google.protobuf.DescriptorProto",me.fields=w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:nt,repeated:!0},{no:6,name:"extension",kind:"message",T:nt,repeated:!0},{no:3,name:"nested_type",kind:"message",T:me,repeated:!0},{no:4,name:"enum_type",kind:"message",T:rt,repeated:!0},{no:5,name:"extension_range",kind:"message",T:Re,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:Ge,repeated:!0},{no:7,name:"options",kind:"message",T:He,opt:!0},{no:9,name:"reserved_range",kind:"message",T:Fe,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class Re extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new Re().fromBinary(R,U)}static fromJson(R,U){return new Re().fromJson(R,U)}static fromJsonString(R,U){return new Re().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Re,R,U)}}Re.runtime=w,Re.typeName="google.protobuf.DescriptorProto.ExtensionRange",Re.fields=w.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:et,opt:!0}]);class Fe extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new Fe().fromBinary(R,U)}static fromJson(R,U){return new Fe().fromJson(R,U)}static fromJsonString(R,U){return new Fe().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Fe,R,U)}}Fe.runtime=w,Fe.typeName="google.protobuf.DescriptorProto.ReservedRange",Fe.fields=w.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class et extends ae.v{constructor(R){super(),this.uninterpretedOption=[],this.declaration=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new et().fromBinary(R,U)}static fromJson(R,U){return new et().fromJson(R,U)}static fromJsonString(R,U){return new et().fromJsonString(R,U)}static equals(R,U){return w.util.equals(et,R,U)}}et.runtime=w,et.typeName="google.protobuf.ExtensionRangeOptions",et.fields=w.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:bt,repeated:!0},{no:2,name:"declaration",kind:"message",T:Ye,repeated:!0},{no:50,name:"features",kind:"message",T:Xt,opt:!0},{no:3,name:"verification",kind:"enum",T:w.getEnumType(ct),opt:!0,default:ct.UNVERIFIED}]);var ct;(function(V){V[V.DECLARATION=0]="DECLARATION",V[V.UNVERIFIED=1]="UNVERIFIED"})(ct||(ct={})),w.util.setEnumType(ct,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class Ye extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new Ye().fromBinary(R,U)}static fromJson(R,U){return new Ye().fromJson(R,U)}static fromJsonString(R,U){return new Ye().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Ye,R,U)}}Ye.runtime=w,Ye.typeName="google.protobuf.ExtensionRangeOptions.Declaration",Ye.fields=w.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 nt extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new nt().fromBinary(R,U)}static fromJson(R,U){return new nt().fromJson(R,U)}static fromJsonString(R,U){return new nt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(nt,R,U)}}nt.runtime=w,nt.typeName="google.protobuf.FieldDescriptorProto",nt.fields=w.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:w.getEnumType(qe),opt:!0},{no:5,name:"type",kind:"enum",T:w.getEnumType(ke),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:Be,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var ke;(function(V){V[V.DOUBLE=1]="DOUBLE",V[V.FLOAT=2]="FLOAT",V[V.INT64=3]="INT64",V[V.UINT64=4]="UINT64",V[V.INT32=5]="INT32",V[V.FIXED64=6]="FIXED64",V[V.FIXED32=7]="FIXED32",V[V.BOOL=8]="BOOL",V[V.STRING=9]="STRING",V[V.GROUP=10]="GROUP",V[V.MESSAGE=11]="MESSAGE",V[V.BYTES=12]="BYTES",V[V.UINT32=13]="UINT32",V[V.ENUM=14]="ENUM",V[V.SFIXED32=15]="SFIXED32",V[V.SFIXED64=16]="SFIXED64",V[V.SINT32=17]="SINT32",V[V.SINT64=18]="SINT64"})(ke||(ke={})),w.util.setEnumType(ke,"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 qe;(function(V){V[V.OPTIONAL=1]="OPTIONAL",V[V.REPEATED=3]="REPEATED",V[V.REQUIRED=2]="REQUIRED"})(qe||(qe={})),w.util.setEnumType(qe,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class Ge extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new Ge().fromBinary(R,U)}static fromJson(R,U){return new Ge().fromJson(R,U)}static fromJsonString(R,U){return new Ge().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Ge,R,U)}}Ge.runtime=w,Ge.typeName="google.protobuf.OneofDescriptorProto",Ge.fields=w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:ft,opt:!0}]);class rt extends ae.v{constructor(R){super(),this.value=[],this.reservedRange=[],this.reservedName=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new rt().fromBinary(R,U)}static fromJson(R,U){return new rt().fromJson(R,U)}static fromJsonString(R,U){return new rt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(rt,R,U)}}rt.runtime=w,rt.typeName="google.protobuf.EnumDescriptorProto",rt.fields=w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Ke,repeated:!0},{no:3,name:"options",kind:"message",T:_t,opt:!0},{no:4,name:"reserved_range",kind:"message",T:Ot,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class Ot extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new Ot().fromBinary(R,U)}static fromJson(R,U){return new Ot().fromJson(R,U)}static fromJsonString(R,U){return new Ot().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Ot,R,U)}}Ot.runtime=w,Ot.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",Ot.fields=w.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Ke extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new Ke().fromBinary(R,U)}static fromJson(R,U){return new Ke().fromJson(R,U)}static fromJsonString(R,U){return new Ke().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Ke,R,U)}}Ke.runtime=w,Ke.typeName="google.protobuf.EnumValueDescriptorProto",Ke.fields=w.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:At,opt:!0}]);class de extends ae.v{constructor(R){super(),this.method=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new de().fromBinary(R,U)}static fromJson(R,U){return new de().fromJson(R,U)}static fromJsonString(R,U){return new de().fromJsonString(R,U)}static equals(R,U){return w.util.equals(de,R,U)}}de.runtime=w,de.typeName="google.protobuf.ServiceDescriptorProto",de.fields=w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:oe,repeated:!0},{no:3,name:"options",kind:"message",T:pt,opt:!0}]);class oe extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new oe().fromBinary(R,U)}static fromJson(R,U){return new oe().fromJson(R,U)}static fromJsonString(R,U){return new oe().fromJsonString(R,U)}static equals(R,U){return w.util.equals(oe,R,U)}}oe.runtime=w,oe.typeName="google.protobuf.MethodDescriptorProto",oe.fields=w.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:Mt,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 ie extends ae.v{constructor(R){super(),this.uninterpretedOption=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new ie().fromBinary(R,U)}static fromJson(R,U){return new ie().fromJson(R,U)}static fromJsonString(R,U){return new ie().fromJsonString(R,U)}static equals(R,U){return w.util.equals(ie,R,U)}}ie.runtime=w,ie.typeName="google.protobuf.FileOptions",ie.fields=w.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:w.getEnumType(Me),opt:!0,default:Me.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:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:bt,repeated:!0}]);var Me;(function(V){V[V.SPEED=1]="SPEED",V[V.CODE_SIZE=2]="CODE_SIZE",V[V.LITE_RUNTIME=3]="LITE_RUNTIME"})(Me||(Me={})),w.util.setEnumType(Me,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class He extends ae.v{constructor(R){super(),this.uninterpretedOption=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new He().fromBinary(R,U)}static fromJson(R,U){return new He().fromJson(R,U)}static fromJsonString(R,U){return new He().fromJsonString(R,U)}static equals(R,U){return w.util.equals(He,R,U)}}He.runtime=w,He.typeName="google.protobuf.MessageOptions",He.fields=w.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:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:bt,repeated:!0}]);class Be extends ae.v{constructor(R){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new Be().fromBinary(R,U)}static fromJson(R,U){return new Be().fromJson(R,U)}static fromJsonString(R,U){return new Be().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Be,R,U)}}Be.runtime=w,Be.typeName="google.protobuf.FieldOptions",Be.fields=w.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:w.getEnumType(ce),opt:!0,default:ce.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:w.getEnumType(ye),opt:!0,default:ye.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:w.getEnumType(be),opt:!0},{no:19,name:"targets",kind:"enum",T:w.getEnumType(we),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Ie,repeated:!0},{no:21,name:"features",kind:"message",T:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:bt,repeated:!0}]);var ce;(function(V){V[V.STRING=0]="STRING",V[V.CORD=1]="CORD",V[V.STRING_PIECE=2]="STRING_PIECE"})(ce||(ce={})),w.util.setEnumType(ce,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var ye;(function(V){V[V.JS_NORMAL=0]="JS_NORMAL",V[V.JS_STRING=1]="JS_STRING",V[V.JS_NUMBER=2]="JS_NUMBER"})(ye||(ye={})),w.util.setEnumType(ye,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var be;(function(V){V[V.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",V[V.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",V[V.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(be||(be={})),w.util.setEnumType(be,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var we;(function(V){V[V.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",V[V.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",V[V.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",V[V.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",V[V.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",V[V.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",V[V.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",V[V.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",V[V.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",V[V.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(we||(we={})),w.util.setEnumType(we,"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 Ie extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new Ie().fromBinary(R,U)}static fromJson(R,U){return new Ie().fromJson(R,U)}static fromJsonString(R,U){return new Ie().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Ie,R,U)}}Ie.runtime=w,Ie.typeName="google.protobuf.FieldOptions.EditionDefault",Ie.fields=w.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:w.getEnumType(te),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class ft extends ae.v{constructor(R){super(),this.uninterpretedOption=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new ft().fromBinary(R,U)}static fromJson(R,U){return new ft().fromJson(R,U)}static fromJsonString(R,U){return new ft().fromJsonString(R,U)}static equals(R,U){return w.util.equals(ft,R,U)}}ft.runtime=w,ft.typeName="google.protobuf.OneofOptions",ft.fields=w.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:bt,repeated:!0}]);class _t extends ae.v{constructor(R){super(),this.uninterpretedOption=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new _t().fromBinary(R,U)}static fromJson(R,U){return new _t().fromJson(R,U)}static fromJsonString(R,U){return new _t().fromJsonString(R,U)}static equals(R,U){return w.util.equals(_t,R,U)}}_t.runtime=w,_t.typeName="google.protobuf.EnumOptions",_t.fields=w.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:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:bt,repeated:!0}]);class At extends ae.v{constructor(R){super(),this.uninterpretedOption=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new At().fromBinary(R,U)}static fromJson(R,U){return new At().fromJson(R,U)}static fromJsonString(R,U){return new At().fromJsonString(R,U)}static equals(R,U){return w.util.equals(At,R,U)}}At.runtime=w,At.typeName="google.protobuf.EnumValueOptions",At.fields=w.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Xt,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:bt,repeated:!0}]);class pt extends ae.v{constructor(R){super(),this.uninterpretedOption=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new pt().fromBinary(R,U)}static fromJson(R,U){return new pt().fromJson(R,U)}static fromJsonString(R,U){return new pt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(pt,R,U)}}pt.runtime=w,pt.typeName="google.protobuf.ServiceOptions",pt.fields=w.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Xt,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:bt,repeated:!0}]);class Mt extends ae.v{constructor(R){super(),this.uninterpretedOption=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new Mt().fromBinary(R,U)}static fromJson(R,U){return new Mt().fromJson(R,U)}static fromJsonString(R,U){return new Mt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Mt,R,U)}}Mt.runtime=w,Mt.typeName="google.protobuf.MethodOptions",Mt.fields=w.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:w.getEnumType(it),opt:!0,default:it.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:bt,repeated:!0}]);var it;(function(V){V[V.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",V[V.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",V[V.IDEMPOTENT=2]="IDEMPOTENT"})(it||(it={})),w.util.setEnumType(it,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class bt extends ae.v{constructor(R){super(),this.name=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new bt().fromBinary(R,U)}static fromJson(R,U){return new bt().fromJson(R,U)}static fromJsonString(R,U){return new bt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(bt,R,U)}}bt.runtime=w,bt.typeName="google.protobuf.UninterpretedOption",bt.fields=w.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:$t,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 $t extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new $t().fromBinary(R,U)}static fromJson(R,U){return new $t().fromJson(R,U)}static fromJsonString(R,U){return new $t().fromJsonString(R,U)}static equals(R,U){return w.util.equals($t,R,U)}}$t.runtime=w,$t.typeName="google.protobuf.UninterpretedOption.NamePart",$t.fields=w.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Xt extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new Xt().fromBinary(R,U)}static fromJson(R,U){return new Xt().fromJson(R,U)}static fromJsonString(R,U){return new Xt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Xt,R,U)}}Xt.runtime=w,Xt.typeName="google.protobuf.FeatureSet",Xt.fields=w.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:w.getEnumType(vn),opt:!0},{no:2,name:"enum_type",kind:"enum",T:w.getEnumType(Cn),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:w.getEnumType($n),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:w.getEnumType(qn),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:w.getEnumType(Ce),opt:!0},{no:6,name:"json_format",kind:"enum",T:w.getEnumType($e),opt:!0}]);var vn;(function(V){V[V.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",V[V.EXPLICIT=1]="EXPLICIT",V[V.IMPLICIT=2]="IMPLICIT",V[V.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(vn||(vn={})),w.util.setEnumType(vn,"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(V){V[V.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",V[V.OPEN=1]="OPEN",V[V.CLOSED=2]="CLOSED"})(Cn||(Cn={})),w.util.setEnumType(Cn,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var $n;(function(V){V[V.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",V[V.PACKED=1]="PACKED",V[V.EXPANDED=2]="EXPANDED"})($n||($n={})),w.util.setEnumType($n,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var qn;(function(V){V[V.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",V[V.NONE=1]="NONE",V[V.VERIFY=2]="VERIFY"})(qn||(qn={})),w.util.setEnumType(qn,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var Ce;(function(V){V[V.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",V[V.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",V[V.DELIMITED=2]="DELIMITED"})(Ce||(Ce={})),w.util.setEnumType(Ce,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var $e;(function(V){V[V.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",V[V.ALLOW=1]="ALLOW",V[V.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})($e||($e={})),w.util.setEnumType($e,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class tt extends ae.v{constructor(R){super(),this.defaults=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new tt().fromBinary(R,U)}static fromJson(R,U){return new tt().fromJson(R,U)}static fromJsonString(R,U){return new tt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(tt,R,U)}}tt.runtime=w,tt.typeName="google.protobuf.FeatureSetDefaults",tt.fields=w.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:De,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:w.getEnumType(te),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:w.getEnumType(te),opt:!0}]);class De extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new De().fromBinary(R,U)}static fromJson(R,U){return new De().fromJson(R,U)}static fromJsonString(R,U){return new De().fromJsonString(R,U)}static equals(R,U){return w.util.equals(De,R,U)}}De.runtime=w,De.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",De.fields=w.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:w.getEnumType(te),opt:!0},{no:2,name:"features",kind:"message",T:Xt,opt:!0}]);class wt extends ae.v{constructor(R){super(),this.location=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new wt().fromBinary(R,U)}static fromJson(R,U){return new wt().fromJson(R,U)}static fromJsonString(R,U){return new wt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(wt,R,U)}}wt.runtime=w,wt.typeName="google.protobuf.SourceCodeInfo",wt.fields=w.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Gt,repeated:!0}]);class Gt extends ae.v{constructor(R){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new Gt().fromBinary(R,U)}static fromJson(R,U){return new Gt().fromJson(R,U)}static fromJsonString(R,U){return new Gt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Gt,R,U)}}Gt.runtime=w,Gt.typeName="google.protobuf.SourceCodeInfo.Location",Gt.fields=w.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 jt extends ae.v{constructor(R){super(),this.annotation=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new jt().fromBinary(R,U)}static fromJson(R,U){return new jt().fromJson(R,U)}static fromJsonString(R,U){return new jt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(jt,R,U)}}jt.runtime=w,jt.typeName="google.protobuf.GeneratedCodeInfo",jt.fields=w.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:qt,repeated:!0}]);class qt extends ae.v{constructor(R){super(),this.path=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new qt().fromBinary(R,U)}static fromJson(R,U){return new qt().fromJson(R,U)}static fromJsonString(R,U){return new qt().fromJsonString(R,U)}static equals(R,U){return w.util.equals(qt,R,U)}}qt.runtime=w,qt.typeName="google.protobuf.GeneratedCodeInfo.Annotation",qt.fields=w.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:w.getEnumType(Bt),opt:!0}]);var Bt;(function(V){V[V.NONE=0]="NONE",V[V.SET=1]="SET",V[V.ALIAS=2]="ALIAS"})(Bt||(Bt={})),w.util.setEnumType(Bt,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function On(V,R){const U=V.values.find(he=>he.name===R);return(0,C.hu)(U,`cannot parse ${V.name} default value: ${R}`),U.number}function je(V,R){switch(V){case p.w.STRING:return R;case p.w.BYTES:{const U=ze(R);if(U===!1)throw new Error(`cannot parse ${p.w[V]} default value: ${R}`);return U}case p.w.INT64:case p.w.SFIXED64:case p.w.SINT64:return L.q.parse(R);case p.w.UINT64:case p.w.FIXED64:return L.q.uParse(R);case p.w.DOUBLE:case p.w.FLOAT:switch(R){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(R)}case p.w.BOOL:return R==="true";case p.w.INT32:case p.w.UINT32:case p.w.SINT32:case p.w.FIXED32:case p.w.SFIXED32:return parseInt(R,10)}}function ze(V){const R=[],U={tail:V,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(he){if(this.tail.length>=he){const xe=this.tail.substring(0,he);return this.tail=this.tail.substring(he),xe}return!1}};for(;U.next();)switch(U.c){case"\\":if(U.next())switch(U.c){case"\\":R.push(U.c.charCodeAt(0));break;case"b":R.push(8);break;case"f":R.push(12);break;case"n":R.push(10);break;case"r":R.push(13);break;case"t":R.push(9);break;case"v":R.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const he=U.c,xe=U.take(2);if(xe===!1)return!1;const We=parseInt(he+xe,8);if(isNaN(We))return!1;R.push(We);break}case"x":{const he=U.c,xe=U.take(2);if(xe===!1)return!1;const We=parseInt(he+xe,16);if(isNaN(We))return!1;R.push(We);break}case"u":{const he=U.c,xe=U.take(4);if(xe===!1)return!1;const We=parseInt(he+xe,16);if(isNaN(We))return!1;const Ze=new Uint8Array(4);new DataView(Ze.buffer).setInt32(0,We,!0),R.push(Ze[0],Ze[1],Ze[2],Ze[3]);break}case"U":{const he=U.c,xe=U.take(8);if(xe===!1)return!1;const We=L.q.uEnc(he+xe),Ze=new Uint8Array(8),kt=new DataView(Ze.buffer);kt.setInt32(0,We.lo,!0),kt.setInt32(4,We.hi,!0),R.push(Ze[0],Ze[1],Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7]);break}}break;default:R.push(U.c.charCodeAt(0))}return new Uint8Array(R)}const Ve=tt.fromBinary(W.W.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function yt(V){const R=V.minimumEdition,U=V.maximumEdition;if(R===void 0||U===void 0||V.defaults.some(xe=>xe.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const he=new Map;return(xe,...We)=>{var Ze,kt;let lt=he.get(xe);if(lt===void 0){if(xexe||Ht!==void 0&&Ht.e>Jr||(Ht={e:Jr,f:(kt=Fn.features)!==null&&kt!==void 0?kt:new Xt})}if(Ht===void 0)throw new Error(`No valid default found for edition ${te[xe]}`);lt=Ht.f.toBinary(),he.set(xe,lt)}const It=Xt.fromBinary(lt);for(const Ht of We)Ht!==void 0&&It.fromBinary(Ht.toBinary());if(!Nn(It))throw new Error(`Invalid FeatureSet for edition ${te[xe]}`);return It}}function Nn(V){for(const R of Xt.fields.list()){const U=V[R.localName];if(U===void 0||R.kind=="enum"&&U===0)return!1}return!0}function Kt(V,R){var U;const he={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:yt((U=R==null?void 0:R.featureSetDefaults)!==null&&U!==void 0?U:Ve)},We=(V instanceof pe?V.file:V instanceof Uint8Array?pe.fromBinary(V).file:V).map(Ze=>An(Ze,he));return Object.assign({files:We},he)}function An(V,R){var U,he;(0,C.hu)(V.name,"invalid FileDescriptorProto: missing name");const xe=Object.assign(Object.assign({kind:"file",proto:V,deprecated:(he=(U=V.options)===null||U===void 0?void 0:U.deprecated)!==null&&he!==void 0?he:!1},_n(V.syntax,V.edition)),{name:V.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return ga(this.proto.sourceCodeInfo,[Li.FileDescriptorProto_Syntax])},getPackageComments(){return ga(this.proto.sourceCodeInfo,[Li.FileDescriptorProto_Package])},getFeatures(){var We;return R.resolveFeatures(this.edition,(We=this.proto.options)===null||We===void 0?void 0:We.features)}});R.mapEntries.clear();for(const We of V.enumType)Le(We,xe,void 0,R);for(const We of V.messageType)Rt(We,xe,void 0,R);for(const We of V.service)en(We,xe,R);Kr(xe,R);for(const We of R.mapEntries.values())Xe(We,R);for(const We of xe.messages)Xe(We,R),Kr(We,R);return R.mapEntries.clear(),xe}function Kr(V,R){switch(V.kind){case"file":for(const U of V.proto.extension){const he=bn(U,V,void 0,R);V.extensions.push(he),R.extensions.set(he.typeName,he)}break;case"message":for(const U of V.proto.extension){const he=bn(U,V.file,V,R);V.nestedExtensions.push(he),R.extensions.set(he.typeName,he)}for(const U of V.nestedMessages)Kr(U,R);break}}function Xe(V,R){const U=V.proto.oneofDecl.map(xe=>er(xe,V,R)),he=new Set;for(const xe of V.proto.field){const We=Pt(xe,U),Ze=Zn(xe,V.file,V,We,R);V.fields.push(Ze),We===void 0?V.members.push(Ze):(We.fields.push(Ze),he.has(We)||(he.add(We),V.members.push(We)))}for(const xe of U.filter(We=>he.has(We)))V.oneofs.push(xe);for(const xe of V.nestedMessages)Xe(xe,R)}function Le(V,R,U,he){var xe,We,Ze;(0,C.hu)(V.name,"invalid EnumDescriptorProto: missing name");const kt={kind:"enum",proto:V,deprecated:(We=(xe=V.options)===null||xe===void 0?void 0:xe.deprecated)!==null&&We!==void 0?We:!1,file:R,parent:U,name:V.name,typeName:Tr(V,U,R),values:[],sharedPrefix:(0,S.Sm)(V.name,V.value.map(lt=>{var It;return(It=lt.name)!==null&&It!==void 0?It:""})),toString(){return`enum ${this.typeName}`},getComments(){const lt=this.parent?[...this.parent.getComments().sourcePath,Li.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[Li.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return ga(R.proto.sourceCodeInfo,lt)},getFeatures(){var lt,It,Ht;const Fn=(It=(lt=this.parent)===null||lt===void 0?void 0:lt.getFeatures())!==null&&It!==void 0?It:this.file.getFeatures();return he.resolveFeatures(this.file.edition,Fn,(Ht=this.proto.options)===null||Ht===void 0?void 0:Ht.features)}};he.enums.set(kt.typeName,kt),V.value.forEach(lt=>{var It,Ht;(0,C.hu)(lt.name,"invalid EnumValueDescriptorProto: missing name"),(0,C.hu)(lt.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),kt.values.push({kind:"enum_value",proto:lt,deprecated:(Ht=(It=lt.options)===null||It===void 0?void 0:It.deprecated)!==null&&Ht!==void 0?Ht:!1,parent:kt,name:lt.name,number:lt.number,toString(){return`enum value ${kt.typeName}.${this.name}`},declarationString(){var Fn;let Jr=`${this.name} = ${this.number}`;return((Fn=this.proto.options)===null||Fn===void 0?void 0:Fn.deprecated)===!0&&(Jr+=" [deprecated = true]"),Jr},getComments(){const Fn=[...this.parent.getComments().sourcePath,Li.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return ga(R.proto.sourceCodeInfo,Fn)},getFeatures(){var Fn;return he.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(Fn=this.proto.options)===null||Fn===void 0?void 0:Fn.features)}})}),((Ze=U==null?void 0:U.nestedEnums)!==null&&Ze!==void 0?Ze:R.enums).push(kt)}function Rt(V,R,U,he){var xe,We,Ze,kt;(0,C.hu)(V.name,"invalid DescriptorProto: missing name");const lt={kind:"message",proto:V,deprecated:(We=(xe=V.options)===null||xe===void 0?void 0:xe.deprecated)!==null&&We!==void 0?We:!1,file:R,parent:U,name:V.name,typeName:Tr(V,U,R),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const It=this.parent?[...this.parent.getComments().sourcePath,Li.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[Li.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return ga(R.proto.sourceCodeInfo,It)},getFeatures(){var It,Ht,Fn;const Jr=(Ht=(It=this.parent)===null||It===void 0?void 0:It.getFeatures())!==null&&Ht!==void 0?Ht:this.file.getFeatures();return he.resolveFeatures(this.file.edition,Jr,(Fn=this.proto.options)===null||Fn===void 0?void 0:Fn.features)}};((Ze=V.options)===null||Ze===void 0?void 0:Ze.mapEntry)===!0?he.mapEntries.set(lt.typeName,lt):(((kt=U==null?void 0:U.nestedMessages)!==null&&kt!==void 0?kt:R.messages).push(lt),he.messages.set(lt.typeName,lt));for(const It of V.enumType)Le(It,R,lt,he);for(const It of V.nestedType)Rt(It,R,lt,he)}function en(V,R,U){var he,xe;(0,C.hu)(V.name,"invalid ServiceDescriptorProto: missing name");const We={kind:"service",proto:V,deprecated:(xe=(he=V.options)===null||he===void 0?void 0:he.deprecated)!==null&&xe!==void 0?xe:!1,file:R,name:V.name,typeName:Tr(V,void 0,R),methods:[],toString(){return`service ${this.typeName}`},getComments(){const Ze=[Li.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return ga(R.proto.sourceCodeInfo,Ze)},getFeatures(){var Ze;return U.resolveFeatures(this.file.edition,this.file.getFeatures(),(Ze=this.proto.options)===null||Ze===void 0?void 0:Ze.features)}};R.services.push(We),U.services.set(We.typeName,We);for(const Ze of V.method)We.methods.push(mn(Ze,We,U))}function mn(V,R,U){var he,xe,We;(0,C.hu)(V.name,"invalid MethodDescriptorProto: missing name"),(0,C.hu)(V.inputType,"invalid MethodDescriptorProto: missing input_type"),(0,C.hu)(V.outputType,"invalid MethodDescriptorProto: missing output_type");let Ze;V.clientStreaming===!0&&V.serverStreaming===!0?Ze=Te.t.BiDiStreaming:V.clientStreaming===!0?Ze=Te.t.ClientStreaming:V.serverStreaming===!0?Ze=Te.t.ServerStreaming:Ze=Te.t.Unary;let kt;switch((he=V.options)===null||he===void 0?void 0:he.idempotencyLevel){case it.IDEMPOTENT:kt=Te.w.Idempotent;break;case it.NO_SIDE_EFFECTS:kt=Te.w.NoSideEffects;break;case it.IDEMPOTENCY_UNKNOWN:case void 0:kt=void 0;break}const lt=U.messages.get(ai(V.inputType)),It=U.messages.get(ai(V.outputType));(0,C.hu)(lt,`invalid MethodDescriptorProto: input_type ${V.inputType} not found`),(0,C.hu)(It,`invalid MethodDescriptorProto: output_type ${V.inputType} not found`);const Ht=V.name;return{kind:"rpc",proto:V,deprecated:(We=(xe=V.options)===null||xe===void 0?void 0:xe.deprecated)!==null&&We!==void 0?We:!1,parent:R,name:Ht,methodKind:Ze,input:lt,output:It,idempotency:kt,toString(){return`rpc ${R.typeName}.${Ht}`},getComments(){const Fn=[...this.parent.getComments().sourcePath,Li.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return ga(R.file.proto.sourceCodeInfo,Fn)},getFeatures(){var Fn;return U.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(Fn=this.proto.options)===null||Fn===void 0?void 0:Fn.features)}}}function er(V,R,U){return(0,C.hu)(V.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:V,deprecated:!1,parent:R,fields:[],name:V.name,toString(){return`oneof ${R.typeName}.${this.name}`},getComments(){const he=[...this.parent.getComments().sourcePath,Li.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return ga(R.file.proto.sourceCodeInfo,he)},getFeatures(){var he;return U.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(he=this.proto.options)===null||he===void 0?void 0:he.features)}}}function Zn(V,R,U,he,xe){var We,Ze,kt;(0,C.hu)(V.name,"invalid FieldDescriptorProto: missing name"),(0,C.hu)(V.number,"invalid FieldDescriptorProto: missing number"),(0,C.hu)(V.type,"invalid FieldDescriptorProto: missing type");const lt={proto:V,deprecated:(Ze=(We=V.options)===null||We===void 0?void 0:We.deprecated)!==null&&Ze!==void 0?Ze:!1,name:V.name,number:V.number,parent:U,oneof:he,optional:Pi(V,R.syntax),packedByDefault:Wn(R,V,xe.resolveFeatures),packed:Xn(R,U,V,xe.resolveFeatures),jsonName:V.jsonName===(0,S.x1)(V.name)?void 0:V.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:Xd,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Ht=[...this.parent.getComments().sourcePath,Li.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return ga(R.proto.sourceCodeInfo,Ht)},getFeatures(){var Ht;return xe.resolveFeatures(R.edition,this.parent.getFeatures(),(Ht=this.proto.options)===null||Ht===void 0?void 0:Ht.features)}},It=V.label===qe.REPEATED;switch(V.type){case ke.MESSAGE:case ke.GROUP:{(0,C.hu)(V.typeName,"invalid FieldDescriptorProto: missing type_name");const Ht=xe.mapEntries.get(ai(V.typeName));if(Ht!==void 0)return(0,C.hu)(It,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},lt),{kind:"field",fieldKind:"map",repeated:!1}),fi(Ht));const Fn=xe.messages.get(ai(V.typeName));return(0,C.hu)(Fn!==void 0,`invalid FieldDescriptorProto: type_name ${V.typeName} not found`),Object.assign(Object.assign({},lt),{kind:"field",fieldKind:"message",repeated:It,message:Fn})}case ke.ENUM:{(0,C.hu)(V.typeName,"invalid FieldDescriptorProto: missing type_name");const Ht=xe.enums.get(ai(V.typeName));return(0,C.hu)(Ht!==void 0,`invalid FieldDescriptorProto: type_name ${V.typeName} not found`),Object.assign(Object.assign({},lt),{kind:"field",fieldKind:"enum",getDefaultValue:Qs,repeated:It,enum:Ht})}default:{const Ht=Es[V.type];return(0,C.hu)(Ht,`invalid FieldDescriptorProto: unknown type ${V.type}`),Object.assign(Object.assign({},lt),{kind:"field",fieldKind:"scalar",getDefaultValue:Qs,repeated:It,scalar:Ht,longType:((kt=V.options)===null||kt===void 0?void 0:kt.jstype)==ye.JS_STRING?p.p.STRING:p.p.BIGINT})}}}function bn(V,R,U,he){(0,C.hu)(V.extendee,"invalid FieldDescriptorProto: missing extendee");const xe=Zn(V,R,null,void 0,he),We=he.messages.get(ai(V.extendee));return(0,C.hu)(We,`invalid FieldDescriptorProto: extendee ${V.extendee} not found`),Object.assign(Object.assign({},xe),{kind:"extension",typeName:Tr(V,U,R),parent:U,file:R,extendee:We,toString(){return`extension ${this.typeName}`},getComments(){const Ze=this.parent?[...this.parent.getComments().sourcePath,Li.DescriptorProto_Extension,this.parent.proto.extension.indexOf(V)]:[Li.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(V)];return ga(R.proto.sourceCodeInfo,Ze)},getFeatures(){var Ze,kt;return he.resolveFeatures(this.file.edition,((Ze=this.parent)!==null&&Ze!==void 0?Ze:this.file).getFeatures(),(kt=this.proto.options)===null||kt===void 0?void 0:kt.features)}})}function _n(V,R){let U,he;switch(V){case void 0:case"proto2":he="proto2",U=te.EDITION_PROTO2;break;case"proto3":he="proto3",U=te.EDITION_PROTO3;break;case"editions":switch(he="editions",R){case void 0:case te.EDITION_1_TEST_ONLY:case te.EDITION_2_TEST_ONLY:case te.EDITION_99997_TEST_ONLY:case te.EDITION_99998_TEST_ONLY:case te.EDITION_99999_TEST_ONLY:case te.EDITION_UNKNOWN:U=te.EDITION_UNKNOWN;break;default:U=R;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${V}`)}if(V==="editions"&&R===te.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${V} cannot have edition ${String(R)}`);return{syntax:he,edition:U}}function Tr(V,R,U){(0,C.hu)(V.name,`invalid ${V.getType().typeName}: missing name`);let he;return R?he=`${R.typeName}.${V.name}`:U.proto.package!==void 0?he=`${U.proto.package}.${V.name}`:he=`${V.name}`,he}function ai(V){return V.startsWith(".")?V.substring(1):V}function fi(V){var R,U;(0,C.hu)((R=V.proto.options)===null||R===void 0?void 0:R.mapEntry,`invalid DescriptorProto: expected ${V.toString()} to be a map entry`),(0,C.hu)(V.fields.length===2,`invalid DescriptorProto: map entry ${V.toString()} has ${V.fields.length} fields`);const he=V.fields.find(Ze=>Ze.proto.number===1);(0,C.hu)(he,`invalid DescriptorProto: map entry ${V.toString()} is missing key field`);const xe=he.scalar;(0,C.hu)(xe!==void 0&&xe!==p.w.BYTES&&xe!==p.w.FLOAT&&xe!==p.w.DOUBLE,`invalid DescriptorProto: map entry ${V.toString()} has unexpected key type ${(U=he.proto.type)!==null&&U!==void 0?U:-1}`);const We=V.fields.find(Ze=>Ze.proto.number===2);switch((0,C.hu)(We,`invalid DescriptorProto: map entry ${V.toString()} is missing value field`),We.fieldKind){case"scalar":return{mapKey:xe,mapValue:Object.assign(Object.assign({},We),{kind:"scalar"})};case"message":return{mapKey:xe,mapValue:Object.assign(Object.assign({},We),{kind:"message"})};case"enum":return{mapKey:xe,mapValue:Object.assign(Object.assign({},We),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function Pt(V,R){var U;const he=V.oneofIndex;if(he===void 0)return;let xe;return V.proto3Optional!==!0&&(xe=R[he],(0,C.hu)(xe,`invalid FieldDescriptorProto: oneof #${he} for field #${(U=V.number)!==null&&U!==void 0?U:-1} not found`)),xe}function Pi(V,R){switch(R){case"proto2":return V.oneofIndex===void 0&&V.label===qe.OPTIONAL;case"proto3":return V.proto3Optional===!0;case"editions":return!1}}function Wn(V,R,U){const{repeatedFieldEncoding:he}=U(V.edition);if(he!=$n.PACKED)return!1;switch(R.type){case ke.STRING:case ke.BYTES:case ke.GROUP:case ke.MESSAGE:return!1;default:return!0}}function Xn(V,R,U,he){var xe,We,Ze,kt,lt,It;switch(U.type){case ke.STRING:case ke.BYTES:case ke.GROUP:case ke.MESSAGE:return!1;default:switch(V.edition){case te.EDITION_PROTO2:return(We=(xe=U.options)===null||xe===void 0?void 0:xe.packed)!==null&&We!==void 0?We:!1;case te.EDITION_PROTO3:return(kt=(Ze=U.options)===null||Ze===void 0?void 0:Ze.packed)!==null&&kt!==void 0?kt:!0;default:{const{repeatedFieldEncoding:Ht}=he(V.edition,(lt=R==null?void 0:R.getFeatures())!==null&<!==void 0?lt:V.getFeatures(),(It=U.options)===null||It===void 0?void 0:It.features);return Ht==$n.PACKED}}}}const Es={[ke.DOUBLE]:p.w.DOUBLE,[ke.FLOAT]:p.w.FLOAT,[ke.INT64]:p.w.INT64,[ke.UINT64]:p.w.UINT64,[ke.INT32]:p.w.INT32,[ke.FIXED64]:p.w.FIXED64,[ke.FIXED32]:p.w.FIXED32,[ke.BOOL]:p.w.BOOL,[ke.STRING]:p.w.STRING,[ke.GROUP]:void 0,[ke.MESSAGE]:void 0,[ke.BYTES]:p.w.BYTES,[ke.UINT32]:p.w.UINT32,[ke.ENUM]:void 0,[ke.SFIXED32]:p.w.SFIXED32,[ke.SFIXED64]:p.w.SFIXED64,[ke.SINT32]:p.w.SINT32,[ke.SINT64]:p.w.SINT64};function ga(V,R){if(!V)return{leadingDetached:[],sourcePath:R};for(const U of V.location)if(U.path.length===R.length&&!U.path.some((he,xe)=>R[xe]!==he))return{leadingDetached:U.leadingDetachedComments,leading:U.leadingComments,trailing:U.trailingComments,sourcePath:R};return{leadingDetached:[],sourcePath:R}}var Li;(function(V){V[V.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",V[V.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",V[V.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",V[V.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",V[V.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",V[V.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",V[V.DescriptorProto_Field=2]="DescriptorProto_Field",V[V.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",V[V.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",V[V.DescriptorProto_Extension=6]="DescriptorProto_Extension",V[V.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",V[V.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",V[V.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(Li||(Li={}));function Xd(){var V,R,U;const he=[];this.repeated&&he.push("repeated"),this.optional&&he.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===qe.REQUIRED&&he.push("required");let We;switch(this.fieldKind){case"scalar":We=p.w[this.scalar].toLowerCase();break;case"enum":We=this.enum.typeName;break;case"message":We=this.message.typeName;break;case"map":{const lt=p.w[this.mapKey].toLowerCase();let It;switch(this.mapValue.kind){case"scalar":It=p.w[this.mapValue.scalar].toLowerCase();break;case"enum":It=this.mapValue.enum.typeName;break;case"message":It=this.mapValue.message.typeName;break}We=`map<${lt}, ${It}>`;break}}he.push(`${We} ${this.name} = ${this.number}`);const Ze=[];((V=this.proto.options)===null||V===void 0?void 0:V.packed)!==void 0&&Ze.push(`packed = ${this.proto.options.packed.toString()}`);let kt=this.proto.defaultValue;return kt!==void 0&&((this.proto.type==ke.BYTES||this.proto.type==ke.STRING)&&(kt='"'+kt.replace('"','\\"')+'"'),Ze.push(`default = ${kt}`)),this.jsonName!==void 0&&Ze.push(`json_name = "${this.jsonName}"`),((R=this.proto.options)===null||R===void 0?void 0:R.jstype)!==void 0&&Ze.push(`jstype = ${ye[this.proto.options.jstype]}`),((U=this.proto.options)===null||U===void 0?void 0:U.deprecated)===!0&&Ze.push("deprecated = true"),Ze.length>0&&he.push("["+Ze.join(", ")+"]"),he.join(" ")}function Qs(){const V=this.proto.defaultValue;if(V!==void 0)switch(this.fieldKind){case"enum":return On(this.enum,V);case"scalar":return je(this.scalar,V);default:return}}function pp(...V){const R={},U={},he={},xe={add(We){if("fields"in We){if(!this.findMessage(We.typeName)){R[We.typeName]=We;for(const Ze of We.fields.list())Ze.kind=="message"?this.add(Ze.T):Ze.kind=="map"&&Ze.V.kind=="message"?this.add(Ze.V.T):Ze.kind=="enum"&&this.add(Ze.T)}}else if("methods"in We){if(!this.findService(We.typeName)){he[We.typeName]=We;for(const Ze of Object.values(We.methods))this.add(Ze.I),this.add(Ze.O)}}else U[We.typeName]=We},findMessage(We){return R[We]},findEnum(We){return U[We]},findService(We){return he[We]}};for(const We of V)xe.add(We);return xe}class ns extends ae.v{constructor(R){super(),this.seconds=L.q.zero,this.nanos=0,c.w.util.initPartial(R,this)}fromJson(R,U){if(typeof R!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.w.json.debug(R)}`);const he=R.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(!he)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const xe=Date.parse(he[1]+"-"+he[2]+"-"+he[3]+"T"+he[4]+":"+he[5]+":"+he[6]+(he[8]?he[8]:"Z"));if(Number.isNaN(xe))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(xeDate.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=L.q.parse(xe/1e3),this.nanos=0,he[7]&&(this.nanos=parseInt("1"+he[7]+"0".repeat(9-he[7].length))-1e9),this}toJson(R){const U=Number(this.seconds)*1e3;if(UDate.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 he="Z";if(this.nanos>0){const xe=(this.nanos+1e9).toString().substring(1);xe.substring(3)==="000000"?he="."+xe.substring(0,3)+"Z":xe.substring(6)==="000"?he="."+xe.substring(0,6)+"Z":he="."+xe+"Z"}return new Date(U).toISOString().replace(".000Z",he)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return ns.fromDate(new Date)}static fromDate(R){const U=R.getTime();return new ns({seconds:L.q.parse(Math.floor(U/1e3)),nanos:U%1e3*1e6})}static fromBinary(R,U){return new ns().fromBinary(R,U)}static fromJson(R,U){return new ns().fromJson(R,U)}static fromJsonString(R,U){return new ns().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(ns,R,U)}}ns.runtime=c.w,ns.typeName="google.protobuf.Timestamp",ns.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Ys extends ae.v{constructor(R){super(),this.seconds=L.q.zero,this.nanos=0,c.w.util.initPartial(R,this)}fromJson(R,U){if(typeof R!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(R)}`);const he=R.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(he===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(R)}`);const xe=Number(he[1]);if(xe>315576e6||xe<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(R)}`);if(this.seconds=L.q.parse(xe),typeof he[2]=="string"){const We=he[2]+"0".repeat(9-he[2].length);this.nanos=parseInt(We),(xe<0||Object.is(xe,-0))&&(this.nanos=-this.nanos)}return this}toJson(R){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let U=this.seconds.toString();if(this.nanos!==0){let he=Math.abs(this.nanos).toString();he="0".repeat(9-he.length)+he,he.substring(3)==="000000"?he=he.substring(0,3):he.substring(6)==="000"&&(he=he.substring(0,6)),U+="."+he,this.nanos<0&&Number(this.seconds)==0&&(U="-"+U)}return U+"s"}static fromBinary(R,U){return new Ys().fromBinary(R,U)}static fromJson(R,U){return new Ys().fromJson(R,U)}static fromJsonString(R,U){return new Ys().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Ys,R,U)}}Ys.runtime=c.w,Ys.typeName="google.protobuf.Duration",Ys.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);var eo=u(733);class ba extends ae.v{constructor(R){super(),c.w.util.initPartial(R,this)}static fromBinary(R,U){return new ba().fromBinary(R,U)}static fromJson(R,U){return new ba().fromJson(R,U)}static fromJsonString(R,U){return new ba().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(ba,R,U)}}ba.runtime=c.w,ba.typeName="google.protobuf.Empty",ba.fields=c.w.util.newFieldList(()=>[]);class ya extends ae.v{constructor(R){super(),this.paths=[],c.w.util.initPartial(R,this)}toJson(R){function U(he){let xe=!1;const We=[];for(let Ze=0;Ze{if(he.match(/_[0-9]?_/g)||he.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+he+'" is irreversible');return U(he)}).join(",")}fromJson(R,U){if(typeof R!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+c.w.json.debug(R));if(R==="")return this;function he(xe){if(xe.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const We=xe.replace(/[A-Z]/g,Ze=>"_"+Ze.toLowerCase());return We[0]==="_"?We.substring(1):We}return this.paths=R.split(",").map(he),this}static fromBinary(R,U){return new ya().fromBinary(R,U)}static fromJson(R,U){return new ya().fromJson(R,U)}static fromJsonString(R,U){return new ya().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(ya,R,U)}}ya.runtime=c.w,ya.typeName="google.protobuf.FieldMask",ya.fields=c.w.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var Ba;(function(V){V[V.NULL_VALUE=0]="NULL_VALUE"})(Ba||(Ba={})),c.w.util.setEnumType(Ba,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class Ei extends ae.v{constructor(R){super(),this.fields={},c.w.util.initPartial(R,this)}toJson(R){const U={};for(const[he,xe]of Object.entries(this.fields))U[he]=xe.toJson(R);return U}fromJson(R,U){if(typeof R!="object"||R==null||Array.isArray(R))throw new Error("cannot decode google.protobuf.Struct from JSON "+c.w.json.debug(R));for(const[he,xe]of Object.entries(R))this.fields[he]=Co.fromJson(xe);return this}static fromBinary(R,U){return new Ei().fromBinary(R,U)}static fromJson(R,U){return new Ei().fromJson(R,U)}static fromJsonString(R,U){return new Ei().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Ei,R,U)}}Ei.runtime=c.w,Ei.typeName="google.protobuf.Struct",Ei.fields=c.w.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Co}}]);class Co extends ae.v{constructor(R){super(),this.kind={case:void 0},c.w.util.initPartial(R,this)}toJson(R){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({},R),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(R,U){switch(typeof R){case"number":this.kind={case:"numberValue",value:R};break;case"string":this.kind={case:"stringValue",value:R};break;case"boolean":this.kind={case:"boolValue",value:R};break;case"object":R===null?this.kind={case:"nullValue",value:Ba.NULL_VALUE}:Array.isArray(R)?this.kind={case:"listValue",value:Si.fromJson(R)}:this.kind={case:"structValue",value:Ei.fromJson(R)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+c.w.json.debug(R))}return this}static fromBinary(R,U){return new Co().fromBinary(R,U)}static fromJson(R,U){return new Co().fromJson(R,U)}static fromJsonString(R,U){return new Co().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Co,R,U)}}Co.runtime=c.w,Co.typeName="google.protobuf.Value",Co.fields=c.w.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:c.w.getEnumType(Ba),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:Ei,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:Si,oneof:"kind"}]);class Si extends ae.v{constructor(R){super(),this.values=[],c.w.util.initPartial(R,this)}toJson(R){return this.values.map(U=>U.toJson())}fromJson(R,U){if(!Array.isArray(R))throw new Error("cannot decode google.protobuf.ListValue from JSON "+c.w.json.debug(R));for(let he of R)this.values.push(Co.fromJson(he));return this}static fromBinary(R,U){return new Si().fromBinary(R,U)}static fromJson(R,U){return new Si().fromJson(R,U)}static fromJsonString(R,U){return new Si().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Si,R,U)}}Si.runtime=c.w,Si.typeName="google.protobuf.ListValue",Si.fields=c.w.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Co,repeated:!0}]);var Kd=u(609);class Ti extends ae.v{constructor(R){super(),this.value=0,c.w.util.initPartial(R,this)}toJson(R){return c.w.json.writeScalar(p.w.DOUBLE,this.value,!0)}fromJson(R,U){try{this.value=c.w.json.readScalar(p.w.DOUBLE,R)}catch(he){let xe='cannot decode message google.protobuf.DoubleValue from JSON"';throw he instanceof Error&&he.message.length>0&&(xe+=`: ${he.message}`),new Error(xe)}return this}static fromBinary(R,U){return new Ti().fromBinary(R,U)}static fromJson(R,U){return new Ti().fromJson(R,U)}static fromJsonString(R,U){return new Ti().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Ti,R,U)}}Ti.runtime=c.w,Ti.typeName="google.protobuf.DoubleValue",Ti.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Ti.fieldWrapper={wrapField(V){return new Ti({value:V})},unwrapField(V){return V.value}};class Ss extends ae.v{constructor(R){super(),this.value=0,c.w.util.initPartial(R,this)}toJson(R){return c.w.json.writeScalar(p.w.FLOAT,this.value,!0)}fromJson(R,U){try{this.value=c.w.json.readScalar(p.w.FLOAT,R)}catch(he){let xe='cannot decode message google.protobuf.FloatValue from JSON"';throw he instanceof Error&&he.message.length>0&&(xe+=`: ${he.message}`),new Error(xe)}return this}static fromBinary(R,U){return new Ss().fromBinary(R,U)}static fromJson(R,U){return new Ss().fromJson(R,U)}static fromJsonString(R,U){return new Ss().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Ss,R,U)}}Ss.runtime=c.w,Ss.typeName="google.protobuf.FloatValue",Ss.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),Ss.fieldWrapper={wrapField(V){return new Ss({value:V})},unwrapField(V){return V.value}};class Lo extends ae.v{constructor(R){super(),this.value=L.q.zero,c.w.util.initPartial(R,this)}toJson(R){return c.w.json.writeScalar(p.w.INT64,this.value,!0)}fromJson(R,U){try{this.value=c.w.json.readScalar(p.w.INT64,R)}catch(he){let xe='cannot decode message google.protobuf.Int64Value from JSON"';throw he instanceof Error&&he.message.length>0&&(xe+=`: ${he.message}`),new Error(xe)}return this}static fromBinary(R,U){return new Lo().fromBinary(R,U)}static fromJson(R,U){return new Lo().fromJson(R,U)}static fromJsonString(R,U){return new Lo().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Lo,R,U)}}Lo.runtime=c.w,Lo.typeName="google.protobuf.Int64Value",Lo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Lo.fieldWrapper={wrapField(V){return new Lo({value:V})},unwrapField(V){return V.value}};class to extends ae.v{constructor(R){super(),this.value=L.q.zero,c.w.util.initPartial(R,this)}toJson(R){return c.w.json.writeScalar(p.w.UINT64,this.value,!0)}fromJson(R,U){try{this.value=c.w.json.readScalar(p.w.UINT64,R)}catch(he){let xe='cannot decode message google.protobuf.UInt64Value from JSON"';throw he instanceof Error&&he.message.length>0&&(xe+=`: ${he.message}`),new Error(xe)}return this}static fromBinary(R,U){return new to().fromBinary(R,U)}static fromJson(R,U){return new to().fromJson(R,U)}static fromJsonString(R,U){return new to().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(to,R,U)}}to.runtime=c.w,to.typeName="google.protobuf.UInt64Value",to.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),to.fieldWrapper={wrapField(V){return new to({value:V})},unwrapField(V){return V.value}};class Vr extends ae.v{constructor(R){super(),this.value=0,c.w.util.initPartial(R,this)}toJson(R){return c.w.json.writeScalar(p.w.INT32,this.value,!0)}fromJson(R,U){try{this.value=c.w.json.readScalar(p.w.INT32,R)}catch(he){let xe='cannot decode message google.protobuf.Int32Value from JSON"';throw he instanceof Error&&he.message.length>0&&(xe+=`: ${he.message}`),new Error(xe)}return this}static fromBinary(R,U){return new Vr().fromBinary(R,U)}static fromJson(R,U){return new Vr().fromJson(R,U)}static fromJsonString(R,U){return new Vr().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Vr,R,U)}}Vr.runtime=c.w,Vr.typeName="google.protobuf.Int32Value",Vr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),Vr.fieldWrapper={wrapField(V){return new Vr({value:V})},unwrapField(V){return V.value}};class Fr extends ae.v{constructor(R){super(),this.value=0,c.w.util.initPartial(R,this)}toJson(R){return c.w.json.writeScalar(p.w.UINT32,this.value,!0)}fromJson(R,U){try{this.value=c.w.json.readScalar(p.w.UINT32,R)}catch(he){let xe='cannot decode message google.protobuf.UInt32Value from JSON"';throw he instanceof Error&&he.message.length>0&&(xe+=`: ${he.message}`),new Error(xe)}return this}static fromBinary(R,U){return new Fr().fromBinary(R,U)}static fromJson(R,U){return new Fr().fromJson(R,U)}static fromJsonString(R,U){return new Fr().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Fr,R,U)}}Fr.runtime=c.w,Fr.typeName="google.protobuf.UInt32Value",Fr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Fr.fieldWrapper={wrapField(V){return new Fr({value:V})},unwrapField(V){return V.value}};class li extends ae.v{constructor(R){super(),this.value=!1,c.w.util.initPartial(R,this)}toJson(R){return c.w.json.writeScalar(p.w.BOOL,this.value,!0)}fromJson(R,U){try{this.value=c.w.json.readScalar(p.w.BOOL,R)}catch(he){let xe='cannot decode message google.protobuf.BoolValue from JSON"';throw he instanceof Error&&he.message.length>0&&(xe+=`: ${he.message}`),new Error(xe)}return this}static fromBinary(R,U){return new li().fromBinary(R,U)}static fromJson(R,U){return new li().fromJson(R,U)}static fromJsonString(R,U){return new li().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(li,R,U)}}li.runtime=c.w,li.typeName="google.protobuf.BoolValue",li.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),li.fieldWrapper={wrapField(V){return new li({value:V})},unwrapField(V){return V.value}};class rs extends ae.v{constructor(R){super(),this.value="",c.w.util.initPartial(R,this)}toJson(R){return c.w.json.writeScalar(p.w.STRING,this.value,!0)}fromJson(R,U){try{this.value=c.w.json.readScalar(p.w.STRING,R)}catch(he){let xe='cannot decode message google.protobuf.StringValue from JSON"';throw he instanceof Error&&he.message.length>0&&(xe+=`: ${he.message}`),new Error(xe)}return this}static fromBinary(R,U){return new rs().fromBinary(R,U)}static fromJson(R,U){return new rs().fromJson(R,U)}static fromJsonString(R,U){return new rs().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(rs,R,U)}}rs.runtime=c.w,rs.typeName="google.protobuf.StringValue",rs.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),rs.fieldWrapper={wrapField(V){return new rs({value:V})},unwrapField(V){return V.value}};class _o extends ae.v{constructor(R){super(),this.value=new Uint8Array(0),c.w.util.initPartial(R,this)}toJson(R){return c.w.json.writeScalar(p.w.BYTES,this.value,!0)}fromJson(R,U){try{this.value=c.w.json.readScalar(p.w.BYTES,R)}catch(he){let xe='cannot decode message google.protobuf.BytesValue from JSON"';throw he instanceof Error&&he.message.length>0&&(xe+=`: ${he.message}`),new Error(xe)}return this}static fromBinary(R,U){return new _o().fromBinary(R,U)}static fromJson(R,U){return new _o().fromJson(R,U)}static fromJsonString(R,U){return new _o().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(_o,R,U)}}_o.runtime=c.w,_o.typeName="google.protobuf.BytesValue",_o.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),_o.fieldWrapper={wrapField(V){return new _o({value:V})},unwrapField(V){return V.value}};const Pn=[eo.I,Ys,ba,ya,Ei,Co,Si,ns,Ys,Ti,Ss,Lo,Vr,Fr,to,li,rs,_o],ri=[(0,Kd.V3)(Ba)];function Jd(V,R=!0){const U=V instanceof Uint8Array||V instanceof pe?Kt(V):V,he={},xe={},We={};if(R){for(const Ze of Pn)xe[Ze.typeName]=Ze;for(const Ze of ri)he[Ze.typeName]=Ze}return{findEnum(Ze){const kt=he[Ze];if(kt)return kt;const lt=U.enums.get(Ze);if(!lt)return;const Ht=(lt.file.syntax=="proto3"?c.w:w).makeEnumType(Ze,lt.values.map(Fn=>({no:Fn.number,name:Fn.name,localName:(0,S.r1)(Fn)})),{});return he[Ze]=Ht,Ht},findMessage(Ze){const kt=xe[Ze];if(kt)return kt;const lt=U.messages.get(Ze);if(!lt)return;const It=lt.file.syntax=="proto3"?c.w:w,Ht=[],Fn=It.makeMessageType(Ze,()=>Ht,{localName:(0,S.r1)(lt)});xe[Ze]=Fn;for(const Jr of lt.fields){const Hn=zc(Jr,this);Ht.push(Hn)}return Fn},findService(Ze){const kt=We[Ze];if(kt)return kt;const lt=U.services.get(Ze);if(!lt)return;const It={};for(const Ht of lt.methods){const Fn=this.findMessage(Ht.input.typeName),Jr=this.findMessage(Ht.output.typeName);(0,C.hu)(Fn,`message "${Ht.input.typeName}" for ${Ht.toString()} not found`),(0,C.hu)(Jr,`output message "${Ht.output.typeName}" for ${Ht.toString()} not found`),It[(0,S.r1)(Ht)]={name:Ht.name,I:Fn,O:Jr,kind:Ht.methodKind,idempotency:Ht.idempotency}}return We[Ze]={typeName:lt.typeName,methods:It}}}}function zc(V,R){switch(V.fieldKind){case"map":return Ts(V,R);case"message":return Zu(V,R);case"enum":{const U=Vc(V,R);return U.default=V.getDefaultValue(),U}case"scalar":{const U=ru(V);return U.default=V.getDefaultValue(),U}}}function Ts(V,R){const U={kind:"map",no:V.number,name:V.name,jsonName:V.jsonName,K:V.mapKey};if(V.mapValue.message){const he=R.findMessage(V.mapValue.message.typeName);return(0,C.hu)(he,`message "${V.mapValue.message.typeName}" for ${V.toString()} not found`),Object.assign(Object.assign({},U),{V:{kind:"message",T:he}})}if(V.mapValue.enum){const he=R.findEnum(V.mapValue.enum.typeName);return(0,C.hu)(he,`enum "${V.mapValue.enum.typeName}" for ${V.toString()} not found`),Object.assign(Object.assign({},U),{V:{kind:"enum",T:he}})}return Object.assign(Object.assign({},U),{V:{kind:"scalar",T:V.mapValue.scalar}})}function ru(V){const R=V.longType==p.p.STRING?{L:p.p.STRING}:{},U=Object.assign({kind:"scalar",no:V.number,name:V.name,jsonName:V.jsonName,T:V.scalar},R);return V.repeated?Object.assign(Object.assign({},U),{repeated:!0,packed:V.packed,oneof:void 0,T:V.scalar}):V.oneof?Object.assign(Object.assign({},U),{oneof:V.oneof.name}):V.optional?Object.assign(Object.assign({},U),{opt:!0}):U}function Zu(V,R){const U=R.findMessage(V.message.typeName);(0,C.hu)(U,`message "${V.message.typeName}" for ${V.toString()} not found`);const he={kind:"message",no:V.number,name:V.name,jsonName:V.jsonName,T:U,delimited:V.proto.type==ke.GROUP};return V.repeated?Object.assign(Object.assign({},he),{repeated:!0,packed:V.packed,oneof:void 0}):V.oneof?Object.assign(Object.assign({},he),{oneof:V.oneof.name}):V.optional?Object.assign(Object.assign({},he),{opt:!0}):he}function Vc(V,R){const U=R.findEnum(V.enum.typeName);(0,C.hu)(U,`enum "${V.enum.typeName}" for ${V.toString()} not found`);const he={kind:"enum",no:V.number,name:V.name,jsonName:V.jsonName,T:U};return V.repeated?Object.assign(Object.assign({},he),{repeated:!0,packed:V.packed,oneof:void 0}):V.oneof?Object.assign(Object.assign({},he),{oneof:V.oneof.name}):V.optional?Object.assign(Object.assign({},he),{opt:!0}):he}function pl(V){if(!(V instanceof ae.v))return V;const R=V.getType(),U={};for(const he of R.fields.byMember()){const xe=V[he.localName];let We;if(he.repeated)We=xe.map(Ze=>Hc(Ze));else if(he.kind=="map"){We={};for(const[Ze,kt]of Object.entries(xe))We[Ze]=Hc(kt)}else he.kind=="oneof"?We=he.findField(xe.case)?{case:xe.case,value:Hc(xe.value)}:{case:void 0}:We=Hc(xe);U[he.localName]=We}return U}function Hc(V){if(V===void 0)return V;if(V instanceof ae.v)return pl(V);if(V instanceof Uint8Array){const R=new Uint8Array(V.byteLength);return R.set(V),R}return V}class go extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new go().fromBinary(R,U)}static fromJson(R,U){return new go().fromJson(R,U)}static fromJsonString(R,U){return new go().fromJsonString(R,U)}static equals(R,U){return w.util.equals(go,R,U)}}go.runtime=w,go.typeName="google.protobuf.compiler.Version",go.fields=w.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 Gs extends ae.v{constructor(R){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new Gs().fromBinary(R,U)}static fromJson(R,U){return new Gs().fromJson(R,U)}static fromJsonString(R,U){return new Gs().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Gs,R,U)}}Gs.runtime=w,Gs.typeName="google.protobuf.compiler.CodeGeneratorRequest",Gs.fields=w.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:Oe,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:Oe,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:go,opt:!0}]);class Mo extends ae.v{constructor(R){super(),this.file=[],w.util.initPartial(R,this)}static fromBinary(R,U){return new Mo().fromBinary(R,U)}static fromJson(R,U){return new Mo().fromJson(R,U)}static fromJsonString(R,U){return new Mo().fromJsonString(R,U)}static equals(R,U){return w.util.equals(Mo,R,U)}}Mo.runtime=w,Mo.typeName="google.protobuf.compiler.CodeGeneratorResponse",Mo.fields=w.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:os,repeated:!0}]);var is;(function(V){V[V.NONE=0]="NONE",V[V.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",V[V.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(is||(is={})),w.util.setEnumType(is,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class os extends ae.v{constructor(R){super(),w.util.initPartial(R,this)}static fromBinary(R,U){return new os().fromBinary(R,U)}static fromJson(R,U){return new os().fromJson(R,U)}static fromJsonString(R,U){return new os().fromJsonString(R,U)}static equals(R,U){return w.util.equals(os,R,U)}}os.runtime=w,os.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",os.fields=w.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:jt,opt:!0}]);class Ao extends ae.v{constructor(R){super(),this.fileName="",c.w.util.initPartial(R,this)}static fromBinary(R,U){return new Ao().fromBinary(R,U)}static fromJson(R,U){return new Ao().fromJson(R,U)}static fromJsonString(R,U){return new Ao().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Ao,R,U)}}Ao.runtime=c.w,Ao.typeName="google.protobuf.SourceContext",Ao.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var qs;(function(V){V[V.PROTO2=0]="PROTO2",V[V.PROTO3=1]="PROTO3",V[V.EDITIONS=2]="EDITIONS"})(qs||(qs={})),c.w.util.setEnumType(qs,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class hl extends ae.v{constructor(R){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=qs.PROTO2,this.edition="",c.w.util.initPartial(R,this)}static fromBinary(R,U){return new hl().fromBinary(R,U)}static fromJson(R,U){return new hl().fromJson(R,U)}static fromJsonString(R,U){return new hl().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(hl,R,U)}}hl.runtime=c.w,hl.typeName="google.protobuf.Type",hl.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Qn,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:Ro,repeated:!0},{no:5,name:"source_context",kind:"message",T:Ao},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(qs)},{no:7,name:"edition",kind:"scalar",T:9}]);class Qn extends ae.v{constructor(R){super(),this.kind=mr.TYPE_UNKNOWN,this.cardinality=Wc.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",c.w.util.initPartial(R,this)}static fromBinary(R,U){return new Qn().fromBinary(R,U)}static fromJson(R,U){return new Qn().fromJson(R,U)}static fromJsonString(R,U){return new Qn().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Qn,R,U)}}Qn.runtime=c.w,Qn.typeName="google.protobuf.Field",Qn.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType(mr)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Wc)},{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:Ro,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var mr;(function(V){V[V.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",V[V.TYPE_DOUBLE=1]="TYPE_DOUBLE",V[V.TYPE_FLOAT=2]="TYPE_FLOAT",V[V.TYPE_INT64=3]="TYPE_INT64",V[V.TYPE_UINT64=4]="TYPE_UINT64",V[V.TYPE_INT32=5]="TYPE_INT32",V[V.TYPE_FIXED64=6]="TYPE_FIXED64",V[V.TYPE_FIXED32=7]="TYPE_FIXED32",V[V.TYPE_BOOL=8]="TYPE_BOOL",V[V.TYPE_STRING=9]="TYPE_STRING",V[V.TYPE_GROUP=10]="TYPE_GROUP",V[V.TYPE_MESSAGE=11]="TYPE_MESSAGE",V[V.TYPE_BYTES=12]="TYPE_BYTES",V[V.TYPE_UINT32=13]="TYPE_UINT32",V[V.TYPE_ENUM=14]="TYPE_ENUM",V[V.TYPE_SFIXED32=15]="TYPE_SFIXED32",V[V.TYPE_SFIXED64=16]="TYPE_SFIXED64",V[V.TYPE_SINT32=17]="TYPE_SINT32",V[V.TYPE_SINT64=18]="TYPE_SINT64"})(mr||(mr={})),c.w.util.setEnumType(mr,"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 Wc;(function(V){V[V.UNKNOWN=0]="UNKNOWN",V[V.OPTIONAL=1]="OPTIONAL",V[V.REQUIRED=2]="REQUIRED",V[V.REPEATED=3]="REPEATED"})(Wc||(Wc={})),c.w.util.setEnumType(Wc,"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 ml extends ae.v{constructor(R){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=qs.PROTO2,this.edition="",c.w.util.initPartial(R,this)}static fromBinary(R,U){return new ml().fromBinary(R,U)}static fromJson(R,U){return new ml().fromJson(R,U)}static fromJsonString(R,U){return new ml().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(ml,R,U)}}ml.runtime=c.w,ml.typeName="google.protobuf.Enum",ml.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:br,repeated:!0},{no:3,name:"options",kind:"message",T:Ro,repeated:!0},{no:4,name:"source_context",kind:"message",T:Ao},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(qs)},{no:6,name:"edition",kind:"scalar",T:9}]);class br extends ae.v{constructor(R){super(),this.name="",this.number=0,this.options=[],c.w.util.initPartial(R,this)}static fromBinary(R,U){return new br().fromBinary(R,U)}static fromJson(R,U){return new br().fromJson(R,U)}static fromJsonString(R,U){return new br().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(br,R,U)}}br.runtime=c.w,br.typeName="google.protobuf.EnumValue",br.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:Ro,repeated:!0}]);class Ro extends ae.v{constructor(R){super(),this.name="",c.w.util.initPartial(R,this)}static fromBinary(R,U){return new Ro().fromBinary(R,U)}static fromJson(R,U){return new Ro().fromJson(R,U)}static fromJsonString(R,U){return new Ro().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Ro,R,U)}}Ro.runtime=c.w,Ro.typeName="google.protobuf.Option",Ro.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:eo.I}]);class va extends ae.v{constructor(R){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=qs.PROTO2,c.w.util.initPartial(R,this)}static fromBinary(R,U){return new va().fromBinary(R,U)}static fromJson(R,U){return new va().fromJson(R,U)}static fromJsonString(R,U){return new va().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(va,R,U)}}va.runtime=c.w,va.typeName="google.protobuf.Api",va.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:Zs,repeated:!0},{no:3,name:"options",kind:"message",T:Ro,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:Ao},{no:6,name:"mixins",kind:"message",T:ws,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(qs)}]);class Zs extends ae.v{constructor(R){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=qs.PROTO2,c.w.util.initPartial(R,this)}static fromBinary(R,U){return new Zs().fromBinary(R,U)}static fromJson(R,U){return new Zs().fromJson(R,U)}static fromJsonString(R,U){return new Zs().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(Zs,R,U)}}Zs.runtime=c.w,Zs.typeName="google.protobuf.Method",Zs.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:Ro,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(qs)}]);class ws extends ae.v{constructor(R){super(),this.name="",this.root="",c.w.util.initPartial(R,this)}static fromBinary(R,U){return new ws().fromBinary(R,U)}static fromJson(R,U){return new ws().fromJson(R,U)}static fromJsonString(R,U){return new ws().fromJsonString(R,U)}static equals(R,U){return c.w.util.equals(ws,R,U)}}ws.runtime=c.w,ws.typeName="google.protobuf.Mixin",ws.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}])},561:(a,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,m){const g=this.getType(),v=g.runtime.bin,E=v.makeReadOptions(m);return v.readMessage(this,E.readerFactory(p),p.byteLength,E),this}fromJson(p,m){const g=this.getType(),v=g.runtime.json,E=v.makeReadOptions(m);return v.readMessage(g,p,E,this),this}fromJsonString(p,m){let g;try{g=JSON.parse(p)}catch(v){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${v instanceof Error?v.message:String(v)}`)}return this.fromJson(g,m)}toBinary(p){const m=this.getType(),g=m.runtime.bin,v=g.makeWriteOptions(p),E=v.writerFactory();return g.writeMessage(this,E,v),E.finish()}toJson(p){const m=this.getType(),g=m.runtime.json,v=g.makeWriteOptions(p);return g.writeMessage(this,v)}toJsonString(p){var m;const g=this.toJson(p);return JSON.stringify(g,null,(m=p==null?void 0:p.prettySpaces)!==null&&m!==void 0?m:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}},120:(a,l,u)=>{u.d(l,{E_:()=>S,fp:()=>O,hu:()=>c,ug:()=>E});function c(x,C){if(!x)throw new Error(C)}const d=34028234663852886e22,p=-34028234663852886e22,m=4294967295,g=2147483647,v=-2147483648;function E(x){if(typeof x!="number")throw new Error("invalid int 32: "+typeof x);if(!Number.isInteger(x)||x>g||xm||x<0)throw new Error("invalid uint 32: "+x)}function S(x){if(typeof x!="number")throw new Error("invalid float 32: "+typeof x);if(Number.isFinite(x)&&(x>d||x{u.d(l,{Jj:()=>q,NN:()=>H,gQ:()=>L,gY:()=>I,oQ:()=>W});var c=u(79),d=u(561),p=u(465),m=u(432),g=u(781),v=u(120);const E=Symbol("@bufbuild/protobuf/unknown-fields"),O={readUnknownFields:!0,readerFactory:j=>new c.oP(j)},S={writeUnknownFields:!0,writerFactory:()=>new c.Lt};function x(j){return j?Object.assign(Object.assign({},O),j):O}function C(j){return j?Object.assign(Object.assign({},S),j):S}function I(){return{makeReadOptions:x,makeWriteOptions:C,listUnknownFields(j){var z;return(z=j[E])!==null&&z!==void 0?z:[]},discardUnknownFields(j){delete j[E]},writeUnknownFields(j,z){const Z=j[E];if(Z)for(const G of Z)z.tag(G.no,G.wireType).raw(G.data)},onUnknownField(j,z,X,Z){const G=j;Array.isArray(G[E])||(G[E]=[]),G[E].push({no:z,wireType:X,data:Z})},readMessage(j,z,X,Z,G){const ee=j.getType(),Q=G?z.len:z.pos+X;let ae,Te;for(;z.pos0&&(Fe=F),Oe){let nt=pe[me];if(Te==c.TD.LengthDelimited&&Re!=p.w.STRING&&Re!=p.w.BYTES){let ke=z.uint32()+z.pos;for(;z.pos{u.d(l,{V3:()=>p,be:()=>g,ut:()=>v,zg:()=>m});var c=u(120);const d=Symbol("@bufbuild/protobuf/enum-type");function p(O){const S=O[d];return(0,c.hu)(S,"missing enum type on enum object"),S}function m(O,S,x,C){O[d]=g(S,x.map(I=>({no:I.no,name:I.name,localName:O[I.no]})))}function g(O,S,x){const C=Object.create(null),I=Object.create(null),_=[];for(const w of S){const F=E(w);_.push(F),C[w.name]=F,I[w.no]=F}return{typeName:O,values:_,findName(w){return C[w]},findNumber(w){return I[w]}}}function v(O,S,x){const C={};for(const I of S){const _=E(I);C[_.localName]=_.no,C[_.no]=_.localName}return m(C,O,S),C}function E(O){return"localName"in O?O:Object.assign(Object.assign({},O),{localName:O.name})}},501:(a,l,u)=>{u.d(l,{i:()=>c});class c{constructor(p,m){this._fields=p,this._normalizer=m}findJsonName(p){if(!this.jsonNames){const m={};for(const g of this.list())m[g.jsonName]=m[g.name]=g;this.jsonNames=m}return this.jsonNames[p]}find(p){if(!this.numbers){const m={};for(const g of this.list())m[g.no]=g;this.numbers=m}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,m)=>p.no-m.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const p=this.members;let m;for(const g of this.list())g.oneof?g.oneof!==m&&(m=g.oneof,p.push(m)):p.push(g)}return this.members}}},432:(a,l,u)=>{u.d(l,{E:()=>p,w:()=>m});var c=u(561),d=u(465);function p(v,E){return E instanceof c.v||!v.fieldWrapper?E:v.fieldWrapper.wrapField(E)}function m(v){if(v.fieldKind==="message"&&!v.repeated&&v.oneof==null)return g[v.message.typeName]}const g={"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:(a,l,u)=>{u.d(l,{o:()=>p});var c=u(504),d=u(120);class p{constructor(g){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=g,this.localName=(0,c.uA)(g)}addField(g){(0,d.hu)(g.oneof===this,`field ${g.name} not one of ${this.name}`),this.fields.push(g)}findField(g){if(!this._lookup){this._lookup=Object.create(null);for(let v=0;v{u.d(l,{b:()=>x});var c=u(561),d=u(465),p=u(120),m=u(210),g=u(236);const v={ignoreUnknownFields:!1},E={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function O(M){return M?Object.assign(Object.assign({},v),M):v}function S(M){return M?Object.assign(Object.assign({},E),M):E}function x(M){const L=M(w,F);return{makeReadOptions:O,makeWriteOptions:S,readMessage(W,H,q,j){if(H==null||Array.isArray(H)||typeof H!="object")throw new Error(`cannot decode message ${W.typeName} from JSON: ${this.debug(H)}`);j=j??new W;const z={};for(const[X,Z]of Object.entries(H)){const G=W.fields.findJsonName(X);if(!G){if(!q.ignoreUnknownFields)throw new Error(`cannot decode message ${W.typeName} from JSON: key "${X}" is unknown`);continue}let ee=G.localName,Q=j;if(G.oneof){if(Z===null&&G.kind=="scalar")continue;const ae=z[G.oneof.localName];if(ae)throw new Error(`cannot decode message ${W.typeName} from JSON: multiple keys for oneof "${G.oneof.name}" present: "${ae}", "${X}"`);z[G.oneof.localName]=X,Q=Q[G.oneof.localName]={case:ee},ee="value"}if(G.repeated){if(Z===null)continue;if(!Array.isArray(Z))throw new Error(`cannot decode field ${W.typeName}.${G.name} from JSON: ${this.debug(Z)}`);const ae=Q[ee];for(const Te of Z){if(Te===null)throw new Error(`cannot decode field ${W.typeName}.${G.name} from JSON: ${this.debug(Te)}`);let te;switch(G.kind){case"message":te=G.T.fromJson(Te,q);break;case"enum":if(te=_(G.T,Te,q.ignoreUnknownFields),te===void 0)continue;break;case"scalar":try{te=I(G.T,Te,G.L)}catch(pe){let Oe=`cannot decode field ${W.typeName}.${G.name} from JSON: ${this.debug(Te)}`;throw pe instanceof Error&&pe.message.length>0&&(Oe+=`: ${pe.message}`),new Error(Oe)}break}ae.push(te)}}else if(G.kind=="map"){if(Z===null)continue;if(Array.isArray(Z)||typeof Z!="object")throw new Error(`cannot decode field ${W.typeName}.${G.name} from JSON: ${this.debug(Z)}`);const ae=Q[ee];for(const[Te,te]of Object.entries(Z)){if(te===null)throw new Error(`cannot decode field ${W.typeName}.${G.name} from JSON: map value null`);let pe;switch(G.V.kind){case"message":pe=G.V.T.fromJson(te,q);break;case"enum":if(pe=_(G.V.T,te,q.ignoreUnknownFields),pe===void 0)continue;break;case"scalar":try{pe=I(G.V.T,te,d.p.BIGINT)}catch(Oe){let me=`cannot decode map value for field ${W.typeName}.${G.name} from JSON: ${this.debug(Z)}`;throw Oe instanceof Error&&Oe.message.length>0&&(me+=`: ${Oe.message}`),new Error(me)}break}try{ae[I(G.K,G.K==d.w.BOOL?Te=="true"?!0:Te=="false"?!1:Te:Te,d.p.BIGINT).toString()]=pe}catch(Oe){let me=`cannot decode map key for field ${W.typeName}.${G.name} from JSON: ${this.debug(Z)}`;throw Oe instanceof Error&&Oe.message.length>0&&(me+=`: ${Oe.message}`),new Error(me)}}}else switch(G.kind){case"message":const ae=G.T;if(Z===null&&ae.typeName!="google.protobuf.Value"){if(G.oneof)throw new Error(`cannot decode field ${W.typeName}.${G.name} from JSON: null is invalid for oneof field "${X}"`);continue}Q[ee]instanceof c.v?Q[ee].fromJson(Z,q):(Q[ee]=ae.fromJson(Z,q),ae.fieldWrapper&&!G.oneof&&(Q[ee]=ae.fieldWrapper.unwrapField(Q[ee])));break;case"enum":const Te=_(G.T,Z,q.ignoreUnknownFields);Te!==void 0&&(Q[ee]=Te);break;case"scalar":try{Q[ee]=I(G.T,Z,G.L)}catch(te){let pe=`cannot decode field ${W.typeName}.${G.name} from JSON: ${this.debug(Z)}`;throw te instanceof Error&&te.message.length>0&&(pe+=`: ${te.message}`),new Error(pe)}break}}return j},writeMessage(W,H){const q=W.getType(),j={};let z;try{for(const X of q.fields.byMember()){let Z;if(X.kind=="oneof"){const G=W[X.localName];if(G.value===void 0)continue;if(z=X.findField(G.case),!z)throw"oneof case not found: "+G.case;Z=L(z,G.value,H)}else z=X,Z=L(z,W[z.localName],H);Z!==void 0&&(j[H.useProtoFieldName?z.name:z.jsonName]=Z)}}catch(X){const Z=z?`cannot encode field ${q.typeName}.${z.name} to JSON`:`cannot encode message ${q.typeName} to JSON`,G=X instanceof Error?X.message:String(X);throw new Error(Z+(G.length>0?`: ${G}`:""))}return j},readScalar:I,writeScalar:F,debug:C}}function C(M){if(M===null)return"null";switch(typeof M){case"object":return Array.isArray(M)?"array":"object";case"string":return M.length>100?"string":`"${M.split('"').join('\\"')}"`;default:return String(M)}}function I(M,L,W){switch(M){case d.w.DOUBLE:case d.w.FLOAT:if(L===null)return 0;if(L==="NaN")return Number.NaN;if(L==="Infinity")return Number.POSITIVE_INFINITY;if(L==="-Infinity")return Number.NEGATIVE_INFINITY;if(L===""||typeof L=="string"&&L.trim().length!==L.length||typeof L!="string"&&typeof L!="number")break;const H=Number(L);if(Number.isNaN(H)||!Number.isFinite(H))break;return M==d.w.FLOAT&&(0,p.E_)(H),H;case d.w.INT32:case d.w.FIXED32:case d.w.SFIXED32:case d.w.SINT32:case d.w.UINT32:if(L===null)return 0;let q;if(typeof L=="number"?q=L:typeof L=="string"&&L.length>0&&L.trim().length===L.length&&(q=Number(L)),q===void 0)break;return M==d.w.UINT32?(0,p.fp)(q):(0,p.ug)(q),q;case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:if(L===null)return m.q.zero;if(typeof L!="number"&&typeof L!="string")break;const j=m.q.parse(L);return W?j.toString():j;case d.w.FIXED64:case d.w.UINT64:if(L===null)return m.q.zero;if(typeof L!="number"&&typeof L!="string")break;const z=m.q.uParse(L);return W?z.toString():z;case d.w.BOOL:if(L===null)return!1;if(typeof L!="boolean")break;return L;case d.w.STRING:if(L===null)return"";if(typeof L!="string")break;try{encodeURIComponent(L)}catch{throw new Error("invalid UTF8")}return L;case d.w.BYTES:if(L===null||L==="")return new Uint8Array(0);if(typeof L!="string")break;return g.W.dec(L)}throw new Error}function _(M,L,W){if(L===null)return 0;switch(typeof L){case"number":if(Number.isInteger(L))return L;break;case"string":const H=M.findName(L);if(H||W)return H==null?void 0:H.no;break}throw new Error(`cannot decode enum ${M.typeName} from JSON: ${C(L)}`)}function w(M,L,W,H){var q;if(L===void 0)return L;if(L===0&&!W)return;if(H)return L;if(M.typeName=="google.protobuf.NullValue")return null;const j=M.findNumber(L);return(q=j==null?void 0:j.name)!==null&&q!==void 0?q:L}function F(M,L,W){if(L!==void 0)switch(M){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 L=="number"),L!=0||W?L:void 0;case d.w.FLOAT:case d.w.DOUBLE:return(0,p.hu)(typeof L=="number"),Number.isNaN(L)?"NaN":L===Number.POSITIVE_INFINITY?"Infinity":L===Number.NEGATIVE_INFINITY?"-Infinity":L!==0||W?L:void 0;case d.w.STRING:return(0,p.hu)(typeof L=="string"),L.length>0||W?L:void 0;case d.w.BOOL:return(0,p.hu)(typeof L=="boolean"),L||W?L: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 L=="bigint"||typeof L=="string"||typeof L=="number"),W||L!=0?L.toString(10):void 0;case d.w.BYTES:return(0,p.hu)(L instanceof Uint8Array),W||L.byteLength>0?g.W.enc(L):void 0}}},504:(a,l,u)=>{u.d(l,{GD:()=>w,Rz:()=>d,Sm:()=>g,ll:()=>_,r1:()=>c,uA:()=>p,x1:()=>m});function c(F){switch(F.kind){case"field":return d(F.name,F.oneof!==void 0);case"oneof":return p(F.name);case"enum":case"message":case"service":{const M=F.file.proto.package,L=M===void 0?0:M.length+1,W=F.typeName.substring(L).replace(/\./g,"_");return _(w(W))}case"enum_value":{const M=F.parent.sharedPrefix;if(M===void 0)return F.name;const L=F.name.substring(M.length);return _(L)}case"rpc":{let M=F.name;return M.length==0?M:(M=M[0].toLowerCase()+M.substring(1),_(M))}}}function d(F,M){const L=E(F);return M?L:_(I(L))}function p(F){return d(F,!1)}const m=E;function g(F,M){const L=v(F)+"_";for(const W of M){if(!W.toLowerCase().startsWith(L))return;const H=W.substring(L.length);if(H.length==0||/^\d/.test(H))return}return L}function v(F){return(F.substring(0,1)+F.substring(1).replace(/[A-Z]/g,M=>"_"+M)).toLowerCase()}function E(F){let M=!1;const L=[];for(let W=0;W`${F}$`,I=F=>x.has(F)?C(F):F,_=F=>S.has(F)?C(F):F,w=F=>O.has(F)?C(F):F},493:(a,l,u)=>{u.d(l,{F:()=>m});var c=u(609),d=u(561);function p(g,v,E,O){var S;const x=(S=O==null?void 0:O.localName)!==null&&S!==void 0?S:v.substring(v.lastIndexOf(".")+1),C={[x]:function(I){g.util.initFields(this),g.util.initPartial(I,this)}}[x];return Object.setPrototypeOf(C.prototype,new d.v),Object.assign(C,{runtime:g,typeName:v,fields:g.util.newFieldList(E),fromBinary(I,_){return new C().fromBinary(I,_)},fromJson(I,_){return new C().fromJson(I,_)},fromJsonString(I,_){return new C().fromJsonString(I,_)},equals(I,_){return g.util.equals(C,I,_)}}),C}function m(g,v,E,O){return{syntax:g,json:v,bin:E,util:O,makeMessageType(S,x,C){return p(this,S,x,C)},makeEnum:c.ut,makeEnumType:c.be,getEnumType:c.V3}}},781:(a,l,u)=>{u.d(l,{AA:()=>m,T1:()=>v,kY:()=>g});var c=u(465),d=u(79),p=u(210);function m(E,O,S){if(O===S)return!0;if(E==c.w.BYTES){if(!(O instanceof Uint8Array)||!(S instanceof Uint8Array)||O.length!==S.length)return!1;for(let x=0;x{u.d(l,{f:()=>g});var c=u(609),d=u(561),p=u(465),m=u(781);function g(){return{setEnumType:c.zg,initPartial(O,S){if(O===void 0)return;const x=S.getType();for(const C of x.fields.byMember()){const I=C.localName,_=S,w=O;if(w[I]!==void 0)switch(C.kind){case"oneof":const F=w[I].case;if(F===void 0)continue;const M=C.findField(F);let L=w[I].value;M&&M.kind=="message"&&!(L instanceof M.T)?L=new M.T(L):M&&M.kind==="scalar"&&M.T===p.w.BYTES&&(L=E(L)),_[I]={case:F,value:L};break;case"scalar":case"enum":let W=w[I];C.T===p.w.BYTES&&(W=C.repeated?W.map(E):E(W)),_[I]=W;break;case"map":switch(C.V.kind){case"scalar":case"enum":if(C.V.T===p.w.BYTES)for(const[j,z]of Object.entries(w[I]))_[I][j]=E(z);else Object.assign(_[I],w[I]);break;case"message":const q=C.V.T;for(const j of Object.keys(w[I])){let z=w[I][j];q.fieldWrapper||(z=new q(z)),_[I][j]=z}break}break;case"message":const H=C.T;if(C.repeated)_[I]=w[I].map(q=>q instanceof H?q:new H(q));else if(w[I]!==void 0){const q=w[I];H.fieldWrapper?H.typeName==="google.protobuf.BytesValue"?_[I]=E(q):_[I]=q:_[I]=q instanceof H?q:new H(q)}break}}},equals(O,S,x){return S===x?!0:!S||!x?!1:O.fields.byMember().every(C=>{const I=S[C.localName],_=x[C.localName];if(C.repeated){if(I.length!==_.length)return!1;switch(C.kind){case"message":return I.every((w,F)=>C.T.equals(w,_[F]));case"scalar":return I.every((w,F)=>(0,m.AA)(C.T,w,_[F]));case"enum":return I.every((w,F)=>(0,m.AA)(p.w.INT32,w,_[F]))}throw new Error(`repeated cannot contain ${C.kind}`)}switch(C.kind){case"message":return C.T.equals(I,_);case"enum":return(0,m.AA)(p.w.INT32,I,_);case"scalar":return(0,m.AA)(C.T,I,_);case"oneof":if(I.case!==_.case)return!1;const w=C.findField(I.case);if(w===void 0)return!0;switch(w.kind){case"message":return w.T.equals(I.value,_.value);case"enum":return(0,m.AA)(p.w.INT32,I.value,_.value);case"scalar":return(0,m.AA)(w.T,I.value,_.value)}throw new Error(`oneof cannot contain ${w.kind}`);case"map":const F=Object.keys(I).concat(Object.keys(_));switch(C.V.kind){case"message":const M=C.V.T;return F.every(W=>M.equals(I[W],_[W]));case"enum":return F.every(W=>(0,m.AA)(p.w.INT32,I[W],_[W]));case"scalar":const L=C.V.T;return F.every(W=>(0,m.AA)(L,I[W],_[W]))}break}})},clone(O){const S=O.getType(),x=new S,C=x;for(const I of S.fields.byMember()){const _=O[I.localName];let w;if(I.repeated)w=_.map(v);else if(I.kind=="map"){w=C[I.localName];for(const[F,M]of Object.entries(_))w[F]=v(M)}else I.kind=="oneof"?w=I.findField(_.case)?{case:_.case,value:v(_.value)}:{case:void 0}:w=v(_);C[I.localName]=w}return x}}}function v(O){if(O===void 0)return O;if(O instanceof d.v)return O.clone();if(O instanceof Uint8Array){const S=new Uint8Array(O.byteLength);return S.set(O),S}return O}function E(O){return O instanceof Uint8Array?O:new Uint8Array(O)}},236:(a,l,u)=>{u.d(l,{W:()=>p});let c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];for(let m=0;m>4,x=S,O=2;break;case 2:v[E++]=(x&15)<<4|(S&60)>>2,x=S,O=3;break;case 3:v[E++]=(x&3)<<6|S,O=0;break}}if(O==1)throw Error("invalid base64 string.");return v.subarray(0,E)},enc(m){let g="",v=0,E,O=0;for(let S=0;S>2],O=(E&3)<<4,v=1;break;case 1:g+=c[O|E>>4],O=(E&15)<<2,v=2;break;case 2:g+=c[O|E>>6],g+=c[E&63],v=0;break}return v&&(g+=c[O],g+="=",v==1&&(g+="=")),g}}},210:(a,l,u)=>{u.d(l,{q:()=>m});var c=u(120),d=u(818);function p(){const g=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof g.getBigInt64=="function"&&typeof g.getBigUint64=="function"&&typeof g.setBigInt64=="function"&&typeof g.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const S=BigInt("-9223372036854775808"),x=BigInt("9223372036854775807"),C=BigInt("0"),I=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(_){const w=typeof _=="bigint"?_:BigInt(_);if(w>x||wI||w(0,c.hu)(/^-?[0-9]+$/.test(S),`int64 invalid: ${S}`),O=S=>(0,c.hu)(/^[0-9]+$/.test(S),`uint64 invalid: ${S}`);return{zero:"0",supported:!1,parse(S){return typeof S!="string"&&(S=S.toString()),E(S),S},uParse(S){return typeof S!="string"&&(S=S.toString()),O(S),S},enc(S){return typeof S!="string"&&(S=S.toString()),E(S),(0,d.CZ)(S)},uEnc(S){return typeof S!="string"&&(S=S.toString()),O(S),(0,d.CZ)(S)},dec(S,x){return(0,d.Ak)(S,x)},uDec(S,x){return(0,d.Fd)(S,x)}}}const m=p()},850:(a,l,u)=>{u.d(l,{w:()=>w});var c=u(493),d=u(465),p=u(744);function m(){return Object.assign(Object.assign({},(0,p.gY)()),{writeMessage(M,L,W){const H=M.getType();for(const q of H.fields.byNumber()){let j,z=q.repeated,X=q.localName;if(q.oneof){const Z=M[q.oneof.localName];if(Z.case!==X)continue;j=Z.value}else j=M[X];switch(q.kind){case"scalar":case"enum":let Z=q.kind=="enum"?d.w.INT32:q.T;if(z)if(q.packed)(0,p.Jj)(L,Z,q.no,j);else for(const G of j)(0,p.NN)(L,Z,q.no,G,!0);else j!==void 0&&(0,p.NN)(L,Z,q.no,j,!!q.oneof||q.opt);break;case"message":if(z)for(const G of j)(0,p.oQ)(L,W,q,G);else(0,p.oQ)(L,W,q,j);break;case"map":for(const[G,ee]of Object.entries(j))(0,p.gQ)(L,W,q,G,ee);break}}return W.writeUnknownFields&&this.writeUnknownFields(M,L),L}})}var g=u(432),v=u(120),E=u(814);function O(){return(0,E.b)((M,L)=>function(H,q,j){if(H.kind=="map"){const z={};switch(H.V.kind){case"scalar":for(const[Z,G]of Object.entries(q)){const ee=L(H.V.T,G,!0);(0,v.hu)(ee!==void 0),z[Z.toString()]=ee}break;case"message":for(const[Z,G]of Object.entries(q))z[Z.toString()]=G.toJson(j);break;case"enum":const X=H.V.T;for(const[Z,G]of Object.entries(q)){(0,v.hu)(G===void 0||typeof G=="number");const ee=M(X,G,!0,j.enumAsInteger);(0,v.hu)(ee!==void 0),z[Z.toString()]=ee}break}return j.emitDefaultValues||Object.keys(z).length>0?z:void 0}else if(H.repeated){const z=[];switch(H.kind){case"scalar":for(let X=0;X0?z:void 0}else switch(H.kind){case"scalar":return L(H.T,q,!!H.oneof||H.opt||j.emitDefaultValues);case"enum":return M(H.T,q,!!H.oneof||H.opt||j.emitDefaultValues,j.enumAsInteger);case"message":return q!==void 0?(0,g.E)(H.T,q).toJson(j):void 0}})}var S=u(433),x=u(501),C=u(781),I=u(215),_=u(504);const w=(0,c.F)("proto3",O(),m(),Object.assign(Object.assign({},(0,S.f)()),{newFieldList(M){return new x.i(M,F)},initFields(M){for(const L of M.getType().fields.byMember()){if(L.opt)continue;const W=L.localName,H=M;if(L.repeated){H[W]=[];continue}switch(L.kind){case"oneof":H[W]={case:void 0};break;case"enum":H[W]=0;break;case"map":H[W]={};break;case"scalar":H[W]=(0,C.kY)(L.T,L.L);break}}}}));function F(M){var L,W,H,q;const j=[];let z;for(const X of typeof M=="function"?M():M){const Z=X;if(Z.localName=(0,_.Rz)(X.name,X.oneof!==void 0),Z.jsonName=(L=X.jsonName)!==null&&L!==void 0?L:(0,_.x1)(X.name),Z.repeated=(W=X.repeated)!==null&&W!==void 0?W:!1,X.kind=="scalar"&&(Z.L=(H=X.L)!==null&&H!==void 0?H:d.p.BIGINT),X.oneof!==void 0){const G=typeof X.oneof=="string"?X.oneof:X.oneof.name;(!z||z.name!=G)&&(z=new I.o(G)),Z.oneof=z,z.addField(Z)}X.kind=="message"&&(Z.delimited=!1),Z.packed=(q=X.packed)!==null&&q!==void 0?q:X.kind=="enum"||X.kind=="scalar"&&X.T!=d.w.BYTES&&X.T!=d.w.STRING,j.push(Z)}return j}},328:(a,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(a){var l=i[a];if(l!==void 0)return l.exports;var u=i[a]={exports:{}};return r[a](u,u.exports,o),u.exports}o.d=(a,l)=>{for(var u in l)o.o(l,u)&&!o.o(a,u)&&Object.defineProperty(a,u,{enumerable:!0,get:l[u]})},o.o=(a,l)=>Object.prototype.hasOwnProperty.call(a,l),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{Change:()=>Ua,Client:()=>dm,ClientEventType:()=>Sa,ClientStatus:()=>qc,Counter:()=>rf,DocEventType:()=>tr,Document:()=>of,DocumentSyncResultType:()=>Sp,EventSourceDevPanel:()=>$I,EventSourceSDK:()=>H1,Primitive:()=>ri,StreamConnectionStatus:()=>sf,SyncMode:()=>Ks,Text:()=>a0,TimeTicket:()=>eo,Tree:()=>l0,converter:()=>Ea,default:()=>bw,setLogLevel:()=>u});var a;(function(T){T[T.Trivial=0]="Trivial",T[T.Debug=1]="Debug",T[T.Info=2]="Info",T[T.Warn=3]="Warn",T[T.Error=4]="Error",T[T.Fatal=5]="Fatal"})(a||(a={}));let l=a.Info;function u(T){l=T}const c={trivial:(...T)=>{l>a.Trivial||typeof console<"u"&&console.log("YORKIE T:",...T)},debug:(...T)=>{l>a.Debug||typeof console<"u"&&console.log("YORKIE D:",...T)},info:(...T)=>{l>a.Info||typeof console<"u"&&console.log("YORKIE I:",...T)},warn:(...T)=>{l>a.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...T):console.log("YORKIE W:",...T))},error:(...T)=>{l>a.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...T):console.log("YORKIE E:",...T))},fatal:(T,...f)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...f):console.log("YORKIE F:",...f)),new Error(`YORKIE F: ${T}`)},isEnabled:T=>l<=T};function d(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,T=>{const f=Math.random()*16|0;return(T==="x"?f:f&3|8).toString(16)})}const p=()=>{};class m{constructor(f){this.finalized=!1,this.observers=[];try{f(this)}catch(b){this.error(b)}}next(f){this.forEachObserver(b=>{b.next(f)})}error(f){this.forEachObserver(b=>{b.error(f)}),this.close(f)}complete(){this.forEachObserver(f=>{f.complete()}),this.close()}subscribe(f,b,k){let D;f||c.fatal("missing observer"),this.finalized&&c.fatal("observable is finalized due to previous error"),typeof f=="object"?D=f:D={next:f,error:b,complete:k},D.next===void 0&&(D.next=p),D.error===void 0&&(D.error=p),D.complete===void 0&&(D.complete=p);const K=d(),re=this.unsubscribeOne.bind(this,K);if(this.observers.push({subscriptionID:K,observer:D}),this.finalized)try{this.finalError?D.error(this.finalError):D.complete()}catch(fe){c.warn(fe)}return re}unsubscribeOne(f){var b;this.observers=(b=this.observers)===null||b===void 0?void 0:b.filter(k=>k.subscriptionID!==f)}forEachObserver(f){if(!this.finalized)for(let b=0;bf}}var v=o(328);function E(T,f){const b={};for(const[k,D]of Object.entries(T.methods)){const K=f(Object.assign(Object.assign({},D),{localName:k,service:T}));K!=null&&(b[k]=K)}return b}var O;(function(T){T[T.Canceled=1]="Canceled",T[T.Unknown=2]="Unknown",T[T.InvalidArgument=3]="InvalidArgument",T[T.DeadlineExceeded=4]="DeadlineExceeded",T[T.NotFound=5]="NotFound",T[T.AlreadyExists=6]="AlreadyExists",T[T.PermissionDenied=7]="PermissionDenied",T[T.ResourceExhausted=8]="ResourceExhausted",T[T.FailedPrecondition=9]="FailedPrecondition",T[T.Aborted=10]="Aborted",T[T.OutOfRange=11]="OutOfRange",T[T.Unimplemented=12]="Unimplemented",T[T.Internal=13]="Internal",T[T.Unavailable=14]="Unavailable",T[T.DataLoss=15]="DataLoss",T[T.Unauthenticated=16]="Unauthenticated"})(O||(O={}));var S=o(561);function x(T){const f=O[T];return typeof f!="string"?T.toString():f[0].toLowerCase()+f.substring(1).replace(/[A-Z]/g,b=>"_"+b.toLowerCase())}class C extends Error{constructor(f,b=O.Unknown,k,D,K){super(I(f,b)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=f,this.code=b,this.metadata=new Headers(k??{}),this.details=D??[],this.cause=K}static from(f,b=O.Unknown){return f instanceof C?f:f instanceof Error?f.name=="AbortError"?new C(f.message,O.Canceled):new C(f.message,b,void 0,void 0,f):new C(String(f),b,void 0,void 0,f)}findDetails(f){const b="typeName"in f?{findMessage:D=>D===f.typeName?f:void 0}:f,k=[];for(const D of this.details){if(D instanceof S.v){b.findMessage(D.getType().typeName)&&k.push(D);continue}const K=b.findMessage(D.type);if(K)try{k.push(K.fromBinary(D.value))}catch{}}return k}}function I(T,f){return T.length?`[${x(f)}] ${T}`:`[${x(f)}]`}var _=function(T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=T[Symbol.asyncIterator],b;return f?f.call(T):(T=typeof __values=="function"?__values(T):T[Symbol.iterator](),b={},k("next"),k("throw"),k("return"),b[Symbol.asyncIterator]=function(){return this},b);function k(K){b[K]=T[K]&&function(re){return new Promise(function(fe,Ne){re=T[K](re),D(fe,Ne,re.done,re.value)})}}function D(K,re,fe,Ne){Promise.resolve(Ne).then(function(ot){K({value:ot,done:fe})},re)}},w=function(T){return this instanceof w?(this.v=T,this):new w(T)},F=function(T,f,b){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var k=b.apply(T,f||[]),D,K=[];return D={},re("next"),re("throw"),re("return"),D[Symbol.asyncIterator]=function(){return this},D;function re(xt){k[xt]&&(D[xt]=function(wn){return new Promise(function(Un,or){K.push([xt,wn,Un,or])>1||fe(xt,wn)})})}function fe(xt,wn){try{Ne(k[xt](wn))}catch(Un){tn(K[0][3],Un)}}function Ne(xt){xt.value instanceof w?Promise.resolve(xt.value.v).then(ot,Dt):tn(K[0][2],xt)}function ot(xt){fe("next",xt)}function Dt(xt){fe("throw",xt)}function tn(xt,wn){xt(wn),K.shift(),K.length&&fe(K[0][0],K[0][1])}},M=function(T){var f,b;return f={},k("next"),k("throw",function(D){throw D}),k("return"),f[Symbol.iterator]=function(){return this},f;function k(D,K){f[D]=T[D]?function(re){return(b=!b)?{value:w(T[D](re)),done:!1}:K?K(re):re}:K}};function L(T){return F(this,arguments,function*(){yield w(yield*M(_(T)))})}var W=function(T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=T[Symbol.asyncIterator],b;return f?f.call(T):(T=typeof __values=="function"?__values(T):T[Symbol.iterator](),b={},k("next"),k("throw"),k("return"),b[Symbol.asyncIterator]=function(){return this},b);function k(K){b[K]=T[K]&&function(re){return new Promise(function(fe,Ne){re=T[K](re),D(fe,Ne,re.done,re.value)})}}function D(K,re,fe,Ne){Promise.resolve(Ne).then(function(ot){K({value:ot,done:fe})},re)}},H=function(T){return this instanceof H?(this.v=T,this):new H(T)},q=function(T){var f,b;return f={},k("next"),k("throw",function(D){throw D}),k("return"),f[Symbol.iterator]=function(){return this},f;function k(D,K){f[D]=T[D]?function(re){return(b=!b)?{value:H(T[D](re)),done:!1}:K?K(re):re}:K}},j=function(T,f,b){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var k=b.apply(T,f||[]),D,K=[];return D={},re("next"),re("throw"),re("return"),D[Symbol.asyncIterator]=function(){return this},D;function re(xt){k[xt]&&(D[xt]=function(wn){return new Promise(function(Un,or){K.push([xt,wn,Un,or])>1||fe(xt,wn)})})}function fe(xt,wn){try{Ne(k[xt](wn))}catch(Un){tn(K[0][3],Un)}}function Ne(xt){xt.value instanceof H?Promise.resolve(xt.value.v).then(ot,Dt):tn(K[0][2],xt)}function ot(xt){fe("next",xt)}function Dt(xt){fe("throw",xt)}function tn(xt,wn){xt(wn),K.shift(),K.length&&fe(K[0][0],K[0][1])}};function z(T,f){return E(T,b=>{switch(b.kind){case v.t.Unary:return X(f,T,b);case v.t.ServerStreaming:return Z(f,T,b);case v.t.ClientStreaming:return G(f,T,b);case v.t.BiDiStreaming:return ee(f,T,b);default:return null}})}function X(T,f,b){return async function(k,D){var K,re;const fe=await T.unary(f,b,D==null?void 0:D.signal,D==null?void 0:D.timeoutMs,D==null?void 0:D.headers,k,D==null?void 0:D.contextValues);return(K=D==null?void 0:D.onHeader)===null||K===void 0||K.call(D,fe.header),(re=D==null?void 0:D.onTrailer)===null||re===void 0||re.call(D,fe.trailer),fe.message}}function Z(T,f,b){return function(k,D){return Q(T.stream(f,b,D==null?void 0:D.signal,D==null?void 0:D.timeoutMs,D==null?void 0:D.headers,L([k]),D==null?void 0:D.contextValues),D)}}function G(T,f,b){return async function(k,D){var K,re,fe,Ne,ot,Dt;const tn=await T.stream(f,b,D==null?void 0:D.signal,D==null?void 0:D.timeoutMs,D==null?void 0:D.headers,k,D==null?void 0:D.contextValues);(ot=D==null?void 0:D.onHeader)===null||ot===void 0||ot.call(D,tn.header);let xt;try{for(var wn=!0,Un=W(tn.message),or;or=await Un.next(),K=or.done,!K;wn=!0)Ne=or.value,wn=!1,xt=Ne}catch(Pr){re={error:Pr}}finally{try{!wn&&!K&&(fe=Un.return)&&await fe.call(Un)}finally{if(re)throw re.error}}if(!xt)throw new C("protocol error: missing response message",O.Internal);return(Dt=D==null?void 0:D.onTrailer)===null||Dt===void 0||Dt.call(D,tn.trailer),xt}}function ee(T,f,b){return function(k,D){return Q(T.stream(f,b,D==null?void 0:D.signal,D==null?void 0:D.timeoutMs,D==null?void 0:D.headers,k,D==null?void 0:D.contextValues),D)}}function Q(T,f){const b=function(){var k,D;return j(this,arguments,function*(){const K=yield H(T);(k=f==null?void 0:f.onHeader)===null||k===void 0||k.call(f,K.header),yield H(yield*q(W(K.message))),(D=f==null?void 0:f.onTrailer)===null||D===void 0||D.call(f,K.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>b.next()})}}function ae(){return{get(T){return T.id in this?this[T.id]:T.defaultValue},set(T,f){return this[T.id]=f,this},delete(T){return delete this[T.id],this}}}function Te(T){var f;const b=Object.assign({},T);return(f=b.ignoreUnknownFields)!==null&&f!==void 0||(b.ignoreUnknownFields=!0),b}function te(T,f,b,k){const D=f?pe(T.I,k):Oe(T.I,b);return{parse:(f?pe(T.O,k):Oe(T.O,b)).parse,serialize:D.serialize}}function pe(T,f){return{parse(b){try{return T.fromBinary(b,f)}catch(k){const D=k instanceof Error?k.message:String(k);throw new C(`parse binary: ${D}`,O.InvalidArgument)}},serialize(b){try{return b.toBinary(f)}catch(k){const D=k instanceof Error?k.message:String(k);throw new C(`serialize binary: ${D}`,O.Internal)}}}}function Oe(T,f){var b,k;const D=(b=f==null?void 0:f.textEncoder)!==null&&b!==void 0?b:new TextEncoder,K=(k=f==null?void 0:f.textDecoder)!==null&&k!==void 0?k:new TextDecoder,re=Te(f);return{parse(fe){try{const Ne=K.decode(fe);return T.fromJsonString(Ne,re)}catch(Ne){throw C.from(Ne,O.InvalidArgument)}},serialize(fe){try{const Ne=fe.toJsonString(re);return D.encode(Ne)}catch(Ne){throw C.from(Ne,O.Internal)}}}}function me(...T){const f=new AbortController,b=T.filter(D=>D!==void 0).concat(f.signal);for(const D of b){if(D.aborted){k.apply(D);break}D.addEventListener("abort",k)}function k(){f.signal.aborted||f.abort(Fe(this));for(const D of b)D.removeEventListener("abort",k)}return f}function Re(T){const f=new AbortController,b=()=>{f.abort(new C("the operation timed out",O.DeadlineExceeded))};let k;return T!==void 0&&(T<=0?b():k=setTimeout(b,T)),{signal:f.signal,cleanup:()=>clearTimeout(k)}}function Fe(T){if(!T.aborted)return;if(T.reason!==void 0)return T.reason;const f=new Error("This operation was aborted");return f.name="AbortError",f}function et(T,f){return f instanceof S.v?f:new T(f)}function ct(T,f){function b(k){return k.done===!0?k:{done:k.done,value:et(T,k.value)}}return{[Symbol.asyncIterator](){const k=f[Symbol.asyncIterator](),D={next:()=>k.next().then(b)};return k.throw!==void 0&&(D.throw=K=>k.throw(K).then(b)),k.return!==void 0&&(D.return=K=>k.return(K).then(b)),D}}}function Ye(T){const f=qe(T.next,T.interceptors),[b,k,D]=ke(T),K=Object.assign(Object.assign({},T.req),{message:et(T.req.method.I,T.req.message),signal:b});return f(K).then(re=>(D(),re),k)}function nt(T){const f=qe(T.next,T.interceptors),[b,k,D]=ke(T),K=Object.assign(Object.assign({},T.req),{message:ct(T.req.method.I,T.req.message),signal:b});let re=!1;return b.addEventListener("abort",function(){var fe,Ne;const ot=T.req.message[Symbol.asyncIterator]();re||(fe=ot.throw)===null||fe===void 0||fe.call(ot,this.reason).catch(()=>{}),(Ne=ot.return)===null||Ne===void 0||Ne.call(ot).catch(()=>{})}),f(K).then(fe=>Object.assign(Object.assign({},fe),{message:{[Symbol.asyncIterator](){const Ne=fe.message[Symbol.asyncIterator]();return{next(){return Ne.next().then(ot=>(ot.done==!0&&(re=!0,D()),ot),k)}}}}}),k)}function ke(T){const{signal:f,cleanup:b}=Re(T.timeoutMs),k=me(T.signal,f);return[k.signal,function(K){const re=C.from(f.aborted?Fe(f):K);return k.abort(re),b(),Promise.reject(re)},function(){b(),k.abort()}]}function qe(T,f){var b;return(b=f==null?void 0:f.concat().reverse().reduce((k,D)=>D(k),T))!==null&&b!==void 0?b:T}function Ge(T,f,b){const k=typeof f=="string"?f:f.typeName,D=typeof b=="string"?b:b.name;return T.toString().replace(/\/?$/,`/${k}/${D}`)}function rt(T){let f,b=new Uint8Array(0);function k(D){const K=new Uint8Array(b.length+D.length);K.set(b),K.set(D,b.length),b=K}return new ReadableStream({start(){f=T.getReader()},async pull(D){let K;for(;;){if(K===void 0&&b.byteLength>=5){let Ne=0;for(let ot=1;ot<5;ot++)Ne=(Ne<<8)+b[ot];K={flags:b[0],length:Ne}}if(K!==void 0&&b.byteLength>=K.length+5)break;const fe=await f.read();if(fe.done)break;k(fe.value)}if(K===void 0){if(b.byteLength==0){D.close();return}D.error(new C("premature end of stream",O.DataLoss));return}const re=b.subarray(5,5+K.length);b=b.subarray(5+K.length),D.enqueue({flags:K.flags,data:re})}})}function Ot(T,f){const b=new Uint8Array(f.length+5);b.set(f,5);const k=new DataView(b.buffer,b.byteOffset,b.byteLength);return k.setUint8(0,T),k.setUint32(1,f.length),b}const Ke="Content-Type",de="Grpc-Timeout",oe="Grpc-Status",ie="Grpc-Message",Me="Grpc-Status-Details-Bin",He="User-Agent",Be="X-User-Agent",ce="X-Grpc-Web",ye="application/grpc-web+proto",be="application/grpc-web+json";function we(T,f,b,k){const D=new Headers(b??{});return D.set(Ke,T?ye:be),D.set(ce,"1"),D.set(Be,"connect-es/1.2.0"),k&&D.set(He,"connect-es/1.2.0"),f!==void 0&&D.set(de,`${f}m`),D}function Ie(T){switch(T){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 ft=o(850),_t=o(733);class At extends S.v{constructor(f){super(),this.code=0,this.message="",this.details=[],ft.w.util.initPartial(f,this)}static fromBinary(f,b){return new At().fromBinary(f,b)}static fromJson(f,b){return new At().fromJson(f,b)}static fromJsonString(f,b){return new At().fromJsonString(f,b)}static equals(f,b){return ft.w.util.equals(At,f,b)}}At.runtime=ft.w,At.typeName="google.rpc.Status",At.fields=ft.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:_t.I,repeated:!0}]);var pt=o(236);function Mt(T,f,b){try{const k=pt.W.dec(T);return f?f.fromBinary(k,b):k}catch(k){throw C.from(k,O.DataLoss)}}const it="0";function bt(T){var f;const b=T.get(Me);if(b!=null){const D=Mt(b,At);if(D.code==0)return;const K=new C(D.message,D.code,T);return K.details=D.details.map(re=>({type:re.typeUrl.substring(re.typeUrl.lastIndexOf("/")+1),value:re.value})),K}const k=T.get(oe);if(k!=null){if(k===it)return;const D=parseInt(k,10);return D in O?new C(decodeURIComponent((f=T.get(ie))!==null&&f!==void 0?f:""),D,T):new C(`invalid grpc-status: ${k}`,O.Internal,T)}}function $t(T,f){var b;if(T>=200&&T<300){const k=bt(f);if(k)throw k;return{foundStatus:f.has(oe)}}throw new C(decodeURIComponent((b=f.get(ie))!==null&&b!==void 0?b:`HTTP ${T}`),Ie(T),f)}const Xt=128;function vn(T){const f=new Headers,b=new TextDecoder().decode(T).split(`\r -`);for(const k of b){if(k==="")continue;const D=k.indexOf(":");if(D>0){const K=k.substring(0,D).trim(),re=k.substring(D+1).trim();f.append(K,re)}}return f}function Cn(T,f){const b=bt(T);if(b)throw f.forEach((k,D)=>{b.metadata.append(D,k)}),b}function $n(){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 qn=function(T){return this instanceof qn?(this.v=T,this):new qn(T)},Ce=function(T,f,b){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var k=b.apply(T,f||[]),D,K=[];return D={},re("next"),re("throw"),re("return"),D[Symbol.asyncIterator]=function(){return this},D;function re(xt){k[xt]&&(D[xt]=function(wn){return new Promise(function(Un,or){K.push([xt,wn,Un,or])>1||fe(xt,wn)})})}function fe(xt,wn){try{Ne(k[xt](wn))}catch(Un){tn(K[0][3],Un)}}function Ne(xt){xt.value instanceof qn?Promise.resolve(xt.value.v).then(ot,Dt):tn(K[0][2],xt)}function ot(xt){fe("next",xt)}function Dt(xt){fe("throw",xt)}function tn(xt,wn){xt(wn),K.shift(),K.length&&fe(K[0][0],K[0][1])}};function $e(T){var f;$n();const b=(f=T.useBinaryFormat)!==null&&f!==void 0?f:!0;return{async unary(k,D,K,re,fe,Ne,ot){var Dt;const{serialize:tn,parse:xt}=te(D,b,T.jsonOptions,T.binaryOptions);return re=re===void 0?T.defaultTimeoutMs:re<=0?void 0:re,await Ye({interceptors:T.interceptors,signal:K,timeoutMs:re,req:{stream:!1,service:k,method:D,url:Ge(T.baseUrl,k,D),init:{method:"POST",credentials:(Dt=T.credentials)!==null&&Dt!==void 0?Dt:"same-origin",redirect:"error",mode:"cors"},header:we(b,re,fe,!1),contextValues:ot??ae(),message:Ne},next:async wn=>{var Un;const Pr=await((Un=T.fetch)!==null&&Un!==void 0?Un:globalThis.fetch)(wn.url,Object.assign(Object.assign({},wn.init),{headers:wn.header,signal:wn.signal,body:Ot(0,tn(wn.message))}));if($t(Pr.status,Pr.headers),!Pr.body)throw"missing response body";const Bo=rt(Pr.body).getReader();let fr,Fi;for(;;){const Lr=await Bo.read();if(Lr.done)break;const{flags:ro,data:af}=Lr.value;if(ro===Xt){if(fr!==void 0)throw"extra trailer";fr=vn(af);continue}if(Fi!==void 0)throw"extra message";Fi=xt(af)}if(fr===void 0)throw"missing trailer";if(Cn(fr,Pr.headers),Fi===void 0)throw"missing message";return{stream:!1,header:Pr.headers,message:Fi,trailer:fr}}})},async stream(k,D,K,re,fe,Ne,ot){var Dt;const{serialize:tn,parse:xt}=te(D,b,T.jsonOptions,T.binaryOptions);function wn(or,Pr,Bo,fr){return Ce(this,arguments,function*(){const Lr=rt(or).getReader();if(Pr){if(!(yield qn(Lr.read())).done)throw"extra data for trailers-only";return yield qn(void 0)}let ro=!1;for(;;){const af=yield qn(Lr.read());if(af.done)break;const{flags:Tp,data:fm}=af.value;if((Tp&Xt)===Xt){if(ro)throw"extra trailer";ro=!0;const yw=vn(fm);Cn(yw,fr),yw.forEach((lf,FI)=>Bo.set(FI,lf));continue}if(ro)throw"extra message";yield yield qn(xt(fm))}if(!ro)throw"missing trailer"})}async function Un(or){if(D.kind!=v.t.ServerStreaming)throw"The fetch API does not support streaming request bodies";const Pr=await or[Symbol.asyncIterator]().next();if(Pr.done==!0)throw"missing request message";return Ot(0,tn(Pr.value))}return re=re===void 0?T.defaultTimeoutMs:re<=0?void 0:re,nt({interceptors:T.interceptors,signal:K,timeoutMs:re,req:{stream:!0,service:k,method:D,url:Ge(T.baseUrl,k,D),init:{method:"POST",credentials:(Dt=T.credentials)!==null&&Dt!==void 0?Dt:"same-origin",redirect:"error",mode:"cors"},header:we(b,re,fe,!1),contextValues:ot??ae(),message:Ne},next:async or=>{var Pr;const fr=await((Pr=T.fetch)!==null&&Pr!==void 0?Pr:globalThis.fetch)(or.url,Object.assign(Object.assign({},or.init),{headers:or.header,signal:or.signal,body:await Un(or.message)})),{foundStatus:Fi}=$t(fr.status,fr.headers);if(!fr.body)throw"missing response body";const Lr=new Headers;return Object.assign(Object.assign({},or),{header:fr.headers,trailer:Lr,message:wn(fr.body,Fi,Lr,fr.headers)})}})}}}var tt=o(295),De=o(646);/** + */(function(i,o){e.exports=o()})(md,()=>(()=>{var r={646:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c,StringValue:d,Timestamp:f}=u(532),m=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"}]),g=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"}]),v=c.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:z},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:tt}}]),S=c.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:pe},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:O,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:ie},{no:6,name:"is_removed",kind:"scalar",T:8}]),O=c.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:E},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:w,repeated:!0},{no:4,name:"presence_change",kind:"message",T:it}]),E=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}]),w=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:C,oneof:"body"},{no:4,name:"remove",kind:"message",T:x,oneof:"body"},{no:5,name:"edit",kind:"message",T:F,oneof:"body"},{no:6,name:"select",kind:"message",T:M,oneof:"body"},{no:7,name:"style",kind:"message",T:P,oneof:"body"},{no:8,name:"increase",kind:"message",T:V,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:W,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:G,oneof:"body"}]),k=c.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:j},{no:4,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Set"}),A=c.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"prev_created_at",kind:"message",T:ie},{no:3,name:"value",kind:"message",T:j},{no:4,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Add"}),C=c.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"prev_created_at",kind:"message",T:ie},{no:3,name:"created_at",kind:"message",T:ie},{no:4,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Move"}),x=c.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Remove"}),F=c.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:oe},{no:3,name:"to",kind:"message",T:oe},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:ie}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:ie},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),M=c.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:oe},{no:3,name:"to",kind:"message",T:oe},{no:4,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Select"}),P=c.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:oe},{no:3,name:"to",kind:"message",T:oe},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:ie},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:ie}}],{localName:"Operation_Style"}),V=c.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"value",kind:"message",T:j},{no:3,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_Increase"}),W=c.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:et},{no:3,name:"to",kind:"message",T:et},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:ie}},{no:5,name:"contents",kind:"message",T:ke,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_TreeEdit"}),G=c.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:ie},{no:2,name:"from",kind:"message",T:et},{no:3,name:"to",kind:"message",T:et},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:ie}],{localName:"Operation_TreeStyle"}),j=c.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:ie},{no:2,name:"moved_at",kind:"message",T:ie},{no:3,name:"removed_at",kind:"message",T:ie},{no:4,name:"type",kind:"enum",T:c.getEnumType(m)},{no:5,name:"value",kind:"scalar",T:12}]),z=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:q,oneof:"body"},{no:5,name:"text",kind:"message",T:te,oneof:"body"},{no:6,name:"counter",kind:"message",T:Q,oneof:"body"},{no:7,name:"tree",kind:"message",T:se,oneof:"body"}]),X=c.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:he,repeated:!0},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"moved_at",kind:"message",T:ie},{no:4,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_JSONObject"}),Z=c.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:J,repeated:!0},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"moved_at",kind:"message",T:ie},{no:4,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_JSONArray"}),q=c.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:ie},{no:4,name:"moved_at",kind:"message",T:ie},{no:5,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_Primitive"}),te=c.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:ve,repeated:!0},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"moved_at",kind:"message",T:ie},{no:4,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_Text"}),Q=c.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:ie},{no:4,name:"moved_at",kind:"message",T:ie},{no:5,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_Counter"}),se=c.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:we,repeated:!0},{no:2,name:"created_at",kind:"message",T:ie},{no:3,name:"moved_at",kind:"message",T:ie},{no:4,name:"removed_at",kind:"message",T:ie}],{localName:"JSONElement_Tree"}),he=c.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:z}]),J=c.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:J},{no:2,name:"element",kind:"message",T:z}]),le=c.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:ie}]),ve=c.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:ue},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:ie},{no:4,name:"ins_prev_id",kind:"message",T:ue},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:le}}]),ue=c.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:ie},{no:2,name:"offset",kind:"scalar",T:5}]),we=c.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Ue},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:ie},{no:5,name:"ins_prev_id",kind:"message",T:Ue},{no:6,name:"ins_next_id",kind:"message",T:Ue},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:le}}]),ke=c.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:we,repeated:!0}]),Ue=c.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:ie},{no:2,name:"offset",kind:"scalar",T:5}]),et=c.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Ue},{no:2,name:"left_sibling_id",kind:"message",T:Ue}]),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:f}]),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:f},{no:9,name:"updated_at",kind:"message",T:f}]),xe=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"}),Xe=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:f},{no:5,name:"accessed_at",kind:"message",T:f},{no:6,name:"updated_at",kind:"message",T:f}]),it=c.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(Ot)},{no:2,name:"presence",kind:"message",T:tt}]),Ot=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"}]),tt=c.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),pe=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}]),oe=c.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:ie},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),ie=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}]),Fe=c.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Qe=c.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(g)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Fe}]);l.ValueType=m,l.DocEventType=g,l.Snapshot=v,l.ChangePack=S,l.Change=O,l.ChangeID=E,l.Operation=w,l.Operation_Set=k,l.Operation_Add=A,l.Operation_Move=C,l.Operation_Remove=x,l.Operation_Edit=F,l.Operation_Select=M,l.Operation_Style=P,l.Operation_Increase=V,l.Operation_TreeEdit=W,l.Operation_TreeStyle=G,l.JSONElementSimple=j,l.JSONElement=z,l.JSONElement_JSONObject=X,l.JSONElement_JSONArray=Z,l.JSONElement_Primitive=q,l.JSONElement_Text=te,l.JSONElement_Counter=Q,l.JSONElement_Tree=se,l.RHTNode=he,l.RGANode=J,l.NodeAttr=le,l.TextNode=ve,l.TextNodeID=ue,l.TreeNode=we,l.TreeNodes=ke,l.TreeNodeID=Ue,l.TreePos=et,l.User=Me,l.Project=qe,l.UpdatableProjectFields=xe,l.UpdatableProjectFields_AuthWebhookMethods=Ze,l.DocumentSummary=Xe,l.PresenceChange=it,l.PresenceChange_ChangeType=Ot,l.Presence=tt,l.Checkpoint=pe,l.TextNodePos=oe,l.TimeTicket=ie,l.DocEventBody=Fe,l.DocEvent=Qe},295:(s,l,u)=>{const{ActivateClientRequest:c,ActivateClientResponse:d,AttachDocumentRequest:f,AttachDocumentResponse:m,BroadcastRequest:g,BroadcastResponse:v,DeactivateClientRequest:S,DeactivateClientResponse:O,DetachDocumentRequest:E,DetachDocumentResponse:w,PushPullChangesRequest:k,PushPullChangesResponse:A,RemoveDocumentRequest:C,RemoveDocumentResponse:x,WatchDocumentRequest:F,WatchDocumentResponse:M}=u(176),{MethodKind:P}=u(532),V={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:c,O:d,kind:P.Unary},deactivateClient:{name:"DeactivateClient",I:S,O,kind:P.Unary},attachDocument:{name:"AttachDocument",I:f,O:m,kind:P.Unary},detachDocument:{name:"DetachDocument",I:E,O:w,kind:P.Unary},removeDocument:{name:"RemoveDocument",I:C,O:x,kind:P.Unary},pushPullChanges:{name:"PushPullChanges",I:k,O:A,kind:P.Unary},watchDocument:{name:"WatchDocument",I:F,O:M,kind:P.ServerStreaming},broadcast:{name:"Broadcast",I:g,O:v,kind:P.Unary}}};l.V=V},176:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c}=u(532),{ChangePack:d,DocEvent:f}=u(646),m=c.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),g=c.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),v=c.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),S=c.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),O=c.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),E=c.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),w=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}]),C=c.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:x,oneof:"body"},{no:2,name:"event",kind:"message",T:f,oneof:"body"}]),x=c.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),F=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}]),M=c.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),P=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}]),V=c.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),W=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}]),G=c.makeMessageType("yorkie.v1.BroadcastResponse",[]);l.ActivateClientRequest=m,l.ActivateClientResponse=g,l.DeactivateClientRequest=v,l.DeactivateClientResponse=S,l.AttachDocumentRequest=O,l.AttachDocumentResponse=E,l.DetachDocumentRequest=w,l.DetachDocumentResponse=k,l.WatchDocumentRequest=A,l.WatchDocumentResponse=C,l.WatchDocumentResponse_Initialization=x,l.RemoveDocumentRequest=F,l.RemoveDocumentResponse=M,l.PushPullChangesRequest=P,l.PushPullChangesResponse=V,l.BroadcastRequest=W,l.BroadcastResponse=G},79:(s,l,u)=>{u.d(l,{Lt:()=>g,TD:()=>m,oP:()=>v});var c=u(818),d=u(120),f=u(210),m;(function(S){S[S.Varint=0]="Varint",S[S.Bit64=1]="Bit64",S[S.LengthDelimited=2]="LengthDelimited",S[S.StartGroup=3]="StartGroup",S[S.EndGroup=4]="EndGroup",S[S.Bit32=5]="Bit32"})(m||(m={}));class g{constructor(O){this.stack=[],this.textEncoder=O??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let O=0;for(let k=0;k>>0)}raw(O){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(O),this}uint32(O){for((0,d.fp)(O);O>127;)this.buf.push(O&127|128),O=O>>>7;return this.buf.push(O),this}int32(O){return(0,d.ug)(O),(0,c.fC)(O,this.buf),this}bool(O){return this.buf.push(O?1:0),this}bytes(O){return this.uint32(O.byteLength),this.raw(O)}string(O){let E=this.textEncoder.encode(O);return this.uint32(E.byteLength),this.raw(E)}float(O){(0,d.E_)(O);let E=new Uint8Array(4);return new DataView(E.buffer).setFloat32(0,O,!0),this.raw(E)}double(O){let E=new Uint8Array(8);return new DataView(E.buffer).setFloat64(0,O,!0),this.raw(E)}fixed32(O){(0,d.fp)(O);let E=new Uint8Array(4);return new DataView(E.buffer).setUint32(0,O,!0),this.raw(E)}sfixed32(O){(0,d.ug)(O);let E=new Uint8Array(4);return new DataView(E.buffer).setInt32(0,O,!0),this.raw(E)}sint32(O){return(0,d.ug)(O),O=(O<<1^O>>31)>>>0,(0,c.fC)(O,this.buf),this}sfixed64(O){let E=new Uint8Array(8),w=new DataView(E.buffer),k=f.q.enc(O);return w.setInt32(0,k.lo,!0),w.setInt32(4,k.hi,!0),this.raw(E)}fixed64(O){let E=new Uint8Array(8),w=new DataView(E.buffer),k=f.q.uEnc(O);return w.setInt32(0,k.lo,!0),w.setInt32(4,k.hi,!0),this.raw(E)}int64(O){let E=f.q.enc(O);return(0,c._y)(E.lo,E.hi,this.buf),this}sint64(O){let E=f.q.enc(O),w=E.hi>>31,k=E.lo<<1^w,A=(E.hi<<1|E.lo>>>31)^w;return(0,c._y)(k,A,this.buf),this}uint64(O){let E=f.q.uEnc(O);return(0,c._y)(E.lo,E.hi,this.buf),this}}class v{constructor(O,E){this.varint64=c.sg,this.uint32=c.jI,this.buf=O,this.len=O.length,this.pos=0,this.view=new DataView(O.buffer,O.byteOffset,O.byteLength),this.textDecoder=E??new TextDecoder}tag(){let O=this.uint32(),E=O>>>3,w=O&7;if(E<=0||w<0||w>5)throw new Error("illegal tag: field no "+E+" wire type "+w);return[E,w]}skip(O){let E=this.pos;switch(O){case m.Varint:for(;this.buf[this.pos++]&128;);break;case m.Bit64:this.pos+=4;case m.Bit32:this.pos+=4;break;case m.LengthDelimited:let w=this.uint32();this.pos+=w;break;case m.StartGroup:let k;for(;(k=this.tag()[1])!==m.EndGroup;)this.skip(k);break;default:throw new Error("cant skip wire type "+O)}return this.assertBounds(),this.buf.subarray(E,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let O=this.uint32();return O>>>1^-(O&1)}int64(){return f.q.dec(...this.varint64())}uint64(){return f.q.uDec(...this.varint64())}sint64(){let[O,E]=this.varint64(),w=-(O&1);return O=(O>>>1|(E&1)<<31)^w,E=E>>>1^w,f.q.dec(O,E)}bool(){let[O,E]=this.varint64();return O!==0||E!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return f.q.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return f.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 O=this.uint32(),E=this.pos;return this.pos+=O,this.assertBounds(),this.buf.subarray(E,E+O)}string(){return this.textDecoder.decode(this.bytes())}}},465:(s,l,u)=>{u.d(l,{p:()=>d,w:()=>c});var c;(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.BYTES=12]="BYTES",f[f.UINT32=13]="UINT32",f[f.SFIXED32=15]="SFIXED32",f[f.SFIXED64=16]="SFIXED64",f[f.SINT32=17]="SINT32",f[f.SINT64=18]="SINT64"})(c||(c={}));var d;(function(f){f[f.BIGINT=0]="BIGINT",f[f.STRING=1]="STRING"})(d||(d={}))},733:(s,l,u)=>{u.d(l,{I:()=>f});var c=u(561),d=u(850);class f extends c.v{constructor(g){super(),this.typeUrl="",this.value=new Uint8Array(0),d.w.util.initPartial(g,this)}toJson(g){var v;if(this.typeUrl==="")return{};const S=this.typeUrlToName(this.typeUrl),O=(v=g==null?void 0:g.typeRegistry)===null||v===void 0?void 0:v.findMessage(S);if(!O)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let w=O.fromBinary(this.value).toJson(g);return(S.startsWith("google.protobuf.")||w===null||Array.isArray(w)||typeof w!="object")&&(w={value:w}),w["@type"]=this.typeUrl,w}fromJson(g,v){var S;if(g===null||Array.isArray(g)||typeof g!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${g===null?"null":Array.isArray(g)?"array":typeof g}`);if(Object.keys(g).length==0)return this;const O=g["@type"];if(typeof O!="string"||O=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const E=this.typeUrlToName(O),w=(S=v==null?void 0:v.typeRegistry)===null||S===void 0?void 0:S.findMessage(E);if(!w)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${O} is not in the type registry`);let k;if(E.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(g,"value"))k=w.fromJson(g.value,v);else{const A=Object.assign({},g);delete A["@type"],k=w.fromJson(A,v)}return this.packFrom(k),this}packFrom(g){this.value=g.toBinary(),this.typeUrl=this.typeNameToUrl(g.getType().typeName)}unpackTo(g){return this.is(g.getType())?(g.fromBinary(this.value),!0):!1}unpack(g){if(this.typeUrl==="")return;const v=g.findMessage(this.typeUrlToName(this.typeUrl));if(v)return v.fromBinary(this.value)}is(g){if(this.typeUrl==="")return!1;const v=this.typeUrlToName(this.typeUrl);let S="";return typeof g=="string"?S=g:S=g.typeName,v===S}typeNameToUrl(g){return`type.googleapis.com/${g}`}typeUrlToName(g){if(!g.length)throw new Error(`invalid type url: ${g}`);const v=g.lastIndexOf("/"),S=v>=0?g.substring(v+1):g;if(!S.length)throw new Error(`invalid type url: ${g}`);return S}static pack(g){const v=new f;return v.packFrom(g),v}static fromBinary(g,v){return new f().fromBinary(g,v)}static fromJson(g,v){return new f().fromJson(g,v)}static fromJsonString(g,v){return new f().fromJsonString(g,v)}static equals(g,v){return d.w.util.equals(f,g,v)}}f.runtime=d.w,f.typeName="google.protobuf.Any",f.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:()=>g,CZ:()=>m,Fd:()=>v,_y:()=>d,fC:()=>k,jI:()=>A,sg:()=>c});function c(){let C=0,x=0;for(let M=0;M<28;M+=7){let P=this.buf[this.pos++];if(C|=(P&127)<>4,!(F&128))return this.assertBounds(),[C,x];for(let M=3;M<=31;M+=7){let P=this.buf[this.pos++];if(x|=(P&127)<>>V,G=!(!(W>>>7)&&x==0),j=(G?W|128:W)&255;if(F.push(j),!G)return}const M=C>>>28&15|(x&7)<<4,P=!!(x>>3);if(F.push((P?M|128:M)&255),!!P){for(let V=3;V<31;V=V+7){const W=x>>>V,G=!!(W>>>7),j=(G?W|128:W)&255;if(F.push(j),!G)return}F.push(x>>>31&1)}}const f=4294967296;function m(C){const x=C[0]==="-";x&&(C=C.slice(1));const F=1e6;let M=0,P=0;function V(W,G){const j=Number(C.slice(W,G));P*=F,M=M*F+j,M>=f&&(P=P+(M/f|0),M=M%f)}return V(-24,-18),V(-18,-12),V(-12,-6),V(-6),x?E(M,P):O(M,P)}function g(C,x){let F=O(C,x);const M=F.hi&2147483648;M&&(F=E(F.lo,F.hi));const P=v(F.lo,F.hi);return M?"-"+P:P}function v(C,x){if({lo:C,hi:x}=S(C,x),x<=2097151)return String(f*x+C);const F=C&16777215,M=(C>>>24|x<<8)&16777215,P=x>>16&65535;let V=F+M*6777216+P*6710656,W=M+P*8147497,G=P*2;const j=1e7;return V>=j&&(W+=Math.floor(V/j),V%=j),W>=j&&(G+=Math.floor(W/j),W%=j),G.toString()+w(W)+w(V)}function S(C,x){return{lo:C>>>0,hi:x>>>0}}function O(C,x){return{lo:C|0,hi:x|0}}function E(C,x){return x=~x,C?C=~C+1:x+=1,O(C,x)}const w=C=>{const x=String(C);return"0000000".slice(x.length)+x};function k(C,x){if(C>=0){for(;C>127;)x.push(C&127|128),C=C>>>7;x.push(C)}else{for(let F=0;F<9;F++)x.push(C&127|128),C=C>>7;x.push(1)}}function A(){let C=this.buf[this.pos++],x=C&127;if(!(C&128))return this.assertBounds(),x;if(C=this.buf[this.pos++],x|=(C&127)<<7,!(C&128))return this.assertBounds(),x;if(C=this.buf[this.pos++],x|=(C&127)<<14,!(C&128))return this.assertBounds(),x;if(C=this.buf[this.pos++],x|=(C&127)<<21,!(C&128))return this.assertBounds(),x;C=this.buf[this.pos++],x|=(C&15)<<28;for(let F=5;C&128&&F<10;F++)C=this.buf[this.pos++];if(C&128)throw new Error("invalid varint");return this.assertBounds(),x>>>0}},532:(s,l,u)=>{u.r(l),u.d(l,{Any:()=>eo.I,Api:()=>vs,BinaryReader:()=>W.oP,BinaryWriter:()=>W.Lt,BoolValue:()=>li,BytesValue:()=>_o,CodeGeneratorRequest:()=>Ga,CodeGeneratorResponse:()=>Mo,CodeGeneratorResponse_Feature:()=>ia,CodeGeneratorResponse_File:()=>oa,DescriptorProto:()=>ue,DescriptorProto_ExtensionRange:()=>we,DescriptorProto_ReservedRange:()=>ke,DoubleValue:()=>Ti,Duration:()=>Ya,Edition:()=>J,Empty:()=>bs,Enum:()=>ml,EnumDescriptorProto:()=>it,EnumDescriptorProto_EnumReservedRange:()=>Ot,EnumOptions:()=>_t,EnumValue:()=>br,EnumValueDescriptorProto:()=>tt,EnumValueOptions:()=>At,ExtensionRangeOptions:()=>Ue,ExtensionRangeOptions_Declaration:()=>Me,ExtensionRangeOptions_VerificationState:()=>et,FeatureSet:()=>Xt,FeatureSetDefaults:()=>rt,FeatureSetDefaults_FeatureSetEditionDefault:()=>Ne,FeatureSet_EnumType:()=>Cn,FeatureSet_FieldPresence:()=>vn,FeatureSet_JsonFormat:()=>Be,FeatureSet_MessageEncoding:()=>Ae,FeatureSet_RepeatedFieldEncoding:()=>$n,FeatureSet_Utf8Validation:()=>qn,Field:()=>Qn,FieldDescriptorProto:()=>qe,FieldDescriptorProto_Label:()=>Ze,FieldDescriptorProto_Type:()=>xe,FieldMask:()=>ys,FieldOptions:()=>je,FieldOptions_CType:()=>fe,FieldOptions_EditionDefault:()=>De,FieldOptions_JSType:()=>Oe,FieldOptions_OptionRetention:()=>ye,FieldOptions_OptionTargetType:()=>Ce,Field_Cardinality:()=>Hc,Field_Kind:()=>mr,FileDescriptorProto:()=>ve,FileDescriptorSet:()=>le,FileOptions:()=>ie,FileOptions_OptimizeMode:()=>Fe,FloatValue:()=>Sa,GeneratedCodeInfo:()=>jt,GeneratedCodeInfo_Annotation:()=>qt,GeneratedCodeInfo_Annotation_Semantic:()=>Bt,Int32Value:()=>Vr,Int64Value:()=>Lo,ListValue:()=>Si,LongType:()=>f.p,Message:()=>se.v,MessageOptions:()=>Qe,Method:()=>Za,MethodDescriptorProto:()=>oe,MethodIdempotency:()=>he.w,MethodKind:()=>he.t,MethodOptions:()=>Mt,MethodOptions_IdempotencyLevel:()=>ot,Mixin:()=>wa,NullValue:()=>Bs,OneofDescriptorProto:()=>Xe,OneofOptions:()=>ft,Option:()=>Ro,ScalarType:()=>f.w,ServiceDescriptorProto:()=>pe,ServiceOptions:()=>pt,SourceCodeInfo:()=>wt,SourceCodeInfo_Location:()=>Gt,SourceContext:()=>Ao,StringValue:()=>ra,Struct:()=>Ei,Syntax:()=>qa,Timestamp:()=>na,Type:()=>hl,UInt32Value:()=>Fr,UInt64Value:()=>to,UninterpretedOption:()=>gt,UninterpretedOption_NamePart:()=>$t,Value:()=>Co,Version:()=>go,WireType:()=>W.TD,codegenInfo:()=>Q,createDescriptorSet:()=>Kt,createRegistry:()=>pp,createRegistryFromDescriptors:()=>ef,proto2:()=>x,proto3:()=>c.w,protoBase64:()=>V.W,protoDelimited:()=>X,protoDouble:()=>M,protoInt64:()=>P.q,toPlainMessage:()=>pl});var c=u(850),d=u(493),f=u(465),m=u(744);function g(){return Object.assign(Object.assign({},(0,m.gY)()),{writeMessage(H,I,U){const ge=H.getType();let _e;try{for(_e of ge.fields.byNumber()){let Ye,Ke=_e.repeated,kt=_e.localName;if(_e.oneof){const ut=H[_e.oneof.localName];if(ut.case!==kt)continue;Ye=ut.value}else if(Ye=H[kt],Ye===void 0&&!_e.oneof&&!_e.opt)throw new Error(`cannot encode field ${ge.typeName}.${_e.name} to binary: required field not set`);switch(_e.kind){case"scalar":case"enum":let ut=_e.kind=="enum"?f.w.INT32:_e.T;if(Ke)if(_e.packed)(0,m.Jj)(I,ut,_e.no,Ye);else for(const It of Ye)(0,m.NN)(I,ut,_e.no,It,!0);else Ye!==void 0&&(0,m.NN)(I,ut,_e.no,Ye,!0);break;case"message":if(Ke)for(const It of Ye)(0,m.oQ)(I,U,_e,It);else(0,m.oQ)(I,U,_e,Ye);break;case"map":for(const[It,Wt]of Object.entries(Ye))(0,m.gQ)(I,U,_e,It,Wt);break}}}catch(Ye){let Ke=_e?`cannot encode field ${ge.typeName}.${_e==null?void 0:_e.name} to binary`:`cannot encode message ${ge.typeName} to binary`,kt=Ye instanceof Error?Ye.message:String(Ye);throw new Error(Ke+(kt.length>0?`: ${kt}`:""))}return U.writeUnknownFields&&this.writeUnknownFields(H,I),I}})}var v=u(433),S=u(501),O=u(215),E=u(504),w=u(432),k=u(120),A=u(814);function C(){return(0,A.b)((H,I)=>function(ge,_e,Ye){if(ge.kind=="map"){const Ke={};switch(ge.V.kind){case"scalar":for(const[ut,It]of Object.entries(_e)){const Wt=I(ge.V.T,It,!0);(0,k.hu)(Wt!==void 0),Ke[ut.toString()]=Wt}break;case"message":for(const[ut,It]of Object.entries(_e))Ke[ut.toString()]=It.toJson(Ye);break;case"enum":const kt=ge.V.T;for(const[ut,It]of Object.entries(_e)){(0,k.hu)(It===void 0||typeof It=="number");const Wt=H(kt,It,!0,Ye.enumAsInteger);(0,k.hu)(Wt!==void 0),Ke[ut.toString()]=Wt}break}return Ye.emitDefaultValues||Object.keys(Ke).length>0?Ke:void 0}else if(ge.repeated){const Ke=[];switch(ge.kind){case"scalar":for(let kt=0;kt<_e.length;kt++)Ke.push(I(ge.T,_e[kt],!0));break;case"enum":for(let kt=0;kt<_e.length;kt++)Ke.push(H(ge.T,_e[kt],!0,Ye.enumAsInteger));break;case"message":for(let kt=0;kt<_e.length;kt++)Ke.push(_e[kt].toJson(Ye));break}return Ye.emitDefaultValues||Ke.length>0?Ke:void 0}else{if(_e===void 0){if(!ge.oneof&&!ge.opt)throw"required field not set";return}switch(ge.kind){case"scalar":return I(ge.T,_e,!0);case"enum":return H(ge.T,_e,!0,Ye.enumAsInteger);case"message":return(0,w.E)(ge.T,_e).toJson(Ye)}}})}const x=(0,d.F)("proto2",C(),g(),Object.assign(Object.assign({},(0,v.f)()),{newFieldList(H){return new S.i(H,F)},initFields(H){for(const I of H.getType().fields.byMember()){const U=I.localName,ge=H;if(I.repeated){ge[U]=[];continue}switch(I.kind){case"oneof":ge[U]={case:void 0};break;case"map":ge[U]={};break}}}}));function F(H){var I,U,ge,_e,Ye;const Ke=[];let kt;for(const ut of typeof H=="function"?H():H){const It=ut;if(It.localName=(0,E.Rz)(ut.name,ut.oneof!==void 0),It.jsonName=(I=ut.jsonName)!==null&&I!==void 0?I:(0,E.x1)(ut.name),It.repeated=(U=ut.repeated)!==null&&U!==void 0?U:!1,ut.kind=="scalar"&&(It.L=(ge=ut.L)!==null&&ge!==void 0?ge:f.p.BIGINT),ut.oneof!==void 0){const Wt=typeof ut.oneof=="string"?ut.oneof:ut.oneof.name;(!kt||kt.name!=Wt)&&(kt=new O.o(Wt)),It.oneof=kt,kt.addField(It)}ut.kind=="message"&&(It.delimited=(_e=ut.delimited)!==null&&_e!==void 0?_e:!1),It.packed=(Ye=ut.packed)!==null&&Ye!==void 0?Ye:!1,Ke.push(It)}return Ke}const M={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var P=u(210),V=u(236),W=u(79),G=function(H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I=H[Symbol.asyncIterator],U;return I?I.call(H):(H=typeof __values=="function"?__values(H):H[Symbol.iterator](),U={},ge("next"),ge("throw"),ge("return"),U[Symbol.asyncIterator]=function(){return this},U);function ge(Ye){U[Ye]=H[Ye]&&function(Ke){return new Promise(function(kt,ut){Ke=H[Ye](Ke),_e(kt,ut,Ke.done,Ke.value)})}}function _e(Ye,Ke,kt,ut){Promise.resolve(ut).then(function(It){Ye({value:It,done:kt})},Ke)}},j=function(H){return this instanceof j?(this.v=H,this):new j(H)},z=function(H,I,U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge=U.apply(H,I||[]),_e,Ye=[];return _e={},kt("next"),kt("throw"),kt("return",Ke),_e[Symbol.asyncIterator]=function(){return this},_e;function Ke(Wn){return function(pi){return Promise.resolve(pi).then(Wn,Fn)}}function kt(Wn,pi){ge[Wn]&&(_e[Wn]=function(Hi){return new Promise(function(iu,Xg){Ye.push([Wn,Hi,iu,Xg])>1||ut(Wn,Hi)})},pi&&(_e[Wn]=pi(_e[Wn])))}function ut(Wn,pi){try{It(ge[Wn](pi))}catch(Hi){Jr(Ye[0][3],Hi)}}function It(Wn){Wn.value instanceof j?Promise.resolve(Wn.value.v).then(Wt,Fn):Jr(Ye[0][2],Wn)}function Wt(Wn){ut("next",Wn)}function Fn(Wn){ut("throw",Wn)}function Jr(Wn,pi){Wn(pi),Ye.shift(),Ye.length&&ut(Ye[0][0],Ye[0][1])}};const X={enc(H,I){const U=(0,m.gY)().makeWriteOptions(I);return U.writerFactory().bytes(H.toBinary(U)).finish()},dec(H,I,U){const ge=(0,m.gY)().makeReadOptions(U);return H.fromBinary(ge.readerFactory(I).bytes(),ge)},decStream(H,I){return z(this,arguments,function*(){var ge,_e,Ye,Ke;function kt(Jr,Wn){const pi=new Uint8Array(Jr.byteLength+Wn.byteLength);return pi.set(Jr),pi.set(Wn,Jr.length),pi}let ut=new Uint8Array(0);try{for(var It=!0,Wt=G(I),Fn;Fn=yield j(Wt.next()),ge=Fn.done,!ge;It=!0)for(Ke=Fn.value,It=!1,ut=kt(ut,Ke);;){const Wn=X.peekSize(ut);if(Wn.eof||Wn.offset+Wn.size>ut.byteLength)break;yield yield j(X.dec(H,ut)),ut=ut.subarray(Wn.offset+Wn.size)}}catch(Jr){_e={error:Jr}}finally{try{!It&&!ge&&(Ye=Wt.return)&&(yield j(Ye.call(Wt)))}finally{if(_e)throw _e.error}}if(ut.byteLength>0)throw new Error("incomplete data")})},peekSize(H){const I={eof:!0,size:null,offset:null};for(let U=0;U<10;U++){if(U>H.byteLength)return I;if(!(H[U]&128)){const ge=new W.oP(H);let _e;try{_e=ge.uint32()}catch(Ye){if(Ye instanceof RangeError)return I;throw Ye}return{eof:!1,size:_e,offset:ge.pos}}}throw new Error("invalid varint")}};var Z=u(781);function q(H){switch(H.typeName){case"google.protobuf.Any":{const I=H.fields.find(ge=>ge.number==1&&ge.fieldKind=="scalar"&&ge.scalar===f.w.STRING),U=H.fields.find(ge=>ge.number==2&&ge.fieldKind=="scalar"&&ge.scalar===f.w.BYTES);if(I&&U)return{typeName:H.typeName,typeUrl:I,value:U};break}case"google.protobuf.Timestamp":{const I=H.fields.find(ge=>ge.number==1&&ge.fieldKind=="scalar"&&ge.scalar===f.w.INT64),U=H.fields.find(ge=>ge.number==2&&ge.fieldKind=="scalar"&&ge.scalar===f.w.INT32);if(I&&U)return{typeName:H.typeName,seconds:I,nanos:U};break}case"google.protobuf.Duration":{const I=H.fields.find(ge=>ge.number==1&&ge.fieldKind=="scalar"&&ge.scalar===f.w.INT64),U=H.fields.find(ge=>ge.number==2&&ge.fieldKind=="scalar"&&ge.scalar===f.w.INT32);if(I&&U)return{typeName:H.typeName,seconds:I,nanos:U};break}case"google.protobuf.Struct":{const I=H.fields.find(U=>U.number==1&&!U.repeated);if((I==null?void 0:I.fieldKind)!=="map"||I.mapValue.kind!=="message"||I.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:H.typeName,fields:I}}case"google.protobuf.Value":{const I=H.oneofs.find(ut=>ut.name==="kind"),U=H.fields.find(ut=>ut.number==1&&ut.oneof===I);if((U==null?void 0:U.fieldKind)!=="enum"||U.enum.typeName!=="google.protobuf.NullValue")return;const ge=H.fields.find(ut=>ut.number==2&&ut.fieldKind=="scalar"&&ut.scalar===f.w.DOUBLE&&ut.oneof===I),_e=H.fields.find(ut=>ut.number==3&&ut.fieldKind=="scalar"&&ut.scalar===f.w.STRING&&ut.oneof===I),Ye=H.fields.find(ut=>ut.number==4&&ut.fieldKind=="scalar"&&ut.scalar===f.w.BOOL&&ut.oneof===I),Ke=H.fields.find(ut=>ut.number==5&&ut.oneof===I);if((Ke==null?void 0:Ke.fieldKind)!=="message"||Ke.message.typeName!=="google.protobuf.Struct")return;const kt=H.fields.find(ut=>ut.number==6&&ut.oneof===I);if((kt==null?void 0:kt.fieldKind)!=="message"||kt.message.typeName!=="google.protobuf.ListValue")return;if(I&&ge&&_e&&Ye)return{typeName:H.typeName,kind:I,nullValue:U,numberValue:ge,stringValue:_e,boolValue:Ye,structValue:Ke,listValue:kt};break}case"google.protobuf.ListValue":{const I=H.fields.find(U=>U.number==1&&U.repeated);if((I==null?void 0:I.fieldKind)!="message"||I.message.typeName!=="google.protobuf.Value")break;return{typeName:H.typeName,values:I}}case"google.protobuf.FieldMask":{const I=H.fields.find(U=>U.number==1&&U.fieldKind=="scalar"&&U.scalar===f.w.STRING&&U.repeated);if(I)return{typeName:H.typeName,paths:I};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 I=H.fields.find(U=>U.number==1&&U.name=="value");if(!I||I.fieldKind!=="scalar")break;return{typeName:H.typeName,value:I}}}}const te="@bufbuild/protobuf",Q={packageName:"@bufbuild/protobuf",localName:E.r1,reifyWkt:q,getUnwrappedFieldType:w.w,scalarDefaultValue:Z.kY,safeIdentifier:E.GD,safeObjectProperty:E.ll,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:te},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:te},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:te},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:te},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:te},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:te},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:te},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:te},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:te},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:te},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:te},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:te},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:te},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:te},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:te},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:te},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:te},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:te},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:te},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:te}},wktSourceFiles:["google/protobuf/compiler/plugin.proto","google/protobuf/any.proto","google/protobuf/api.proto","google/protobuf/descriptor.proto","google/protobuf/duration.proto","google/protobuf/empty.proto","google/protobuf/field_mask.proto","google/protobuf/source_context.proto","google/protobuf/struct.proto","google/protobuf/timestamp.proto","google/protobuf/type.proto","google/protobuf/wrappers.proto"]};var se=u(561),he=u(328),J;(function(H){H[H.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",H[H.EDITION_PROTO2=998]="EDITION_PROTO2",H[H.EDITION_PROTO3=999]="EDITION_PROTO3",H[H.EDITION_2023=1e3]="EDITION_2023",H[H.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",H[H.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",H[H.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",H[H.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",H[H.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(J||(J={})),x.util.setEnumType(J,"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 le extends se.v{constructor(I){super(),this.file=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new le().fromBinary(I,U)}static fromJson(I,U){return new le().fromJson(I,U)}static fromJsonString(I,U){return new le().fromJsonString(I,U)}static equals(I,U){return x.util.equals(le,I,U)}}le.runtime=x,le.typeName="google.protobuf.FileDescriptorSet",le.fields=x.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:ve,repeated:!0}]);class ve extends se.v{constructor(I){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new ve().fromBinary(I,U)}static fromJson(I,U){return new ve().fromJson(I,U)}static fromJsonString(I,U){return new ve().fromJsonString(I,U)}static equals(I,U){return x.util.equals(ve,I,U)}}ve.runtime=x,ve.typeName="google.protobuf.FileDescriptorProto",ve.fields=x.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:ue,repeated:!0},{no:5,name:"enum_type",kind:"message",T:it,repeated:!0},{no:6,name:"service",kind:"message",T:pe,repeated:!0},{no:7,name:"extension",kind:"message",T:qe,repeated:!0},{no:8,name:"options",kind:"message",T:ie,opt:!0},{no:9,name:"source_code_info",kind:"message",T:wt,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:x.getEnumType(J),opt:!0}]);class ue extends se.v{constructor(I){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new ue().fromBinary(I,U)}static fromJson(I,U){return new ue().fromJson(I,U)}static fromJsonString(I,U){return new ue().fromJsonString(I,U)}static equals(I,U){return x.util.equals(ue,I,U)}}ue.runtime=x,ue.typeName="google.protobuf.DescriptorProto",ue.fields=x.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:ue,repeated:!0},{no:4,name:"enum_type",kind:"message",T:it,repeated:!0},{no:5,name:"extension_range",kind:"message",T:we,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:Xe,repeated:!0},{no:7,name:"options",kind:"message",T:Qe,opt:!0},{no:9,name:"reserved_range",kind:"message",T:ke,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class we extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new we().fromBinary(I,U)}static fromJson(I,U){return new we().fromJson(I,U)}static fromJsonString(I,U){return new we().fromJsonString(I,U)}static equals(I,U){return x.util.equals(we,I,U)}}we.runtime=x,we.typeName="google.protobuf.DescriptorProto.ExtensionRange",we.fields=x.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:Ue,opt:!0}]);class ke extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new ke().fromBinary(I,U)}static fromJson(I,U){return new ke().fromJson(I,U)}static fromJsonString(I,U){return new ke().fromJsonString(I,U)}static equals(I,U){return x.util.equals(ke,I,U)}}ke.runtime=x,ke.typeName="google.protobuf.DescriptorProto.ReservedRange",ke.fields=x.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Ue extends se.v{constructor(I){super(),this.uninterpretedOption=[],this.declaration=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new Ue().fromBinary(I,U)}static fromJson(I,U){return new Ue().fromJson(I,U)}static fromJsonString(I,U){return new Ue().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Ue,I,U)}}Ue.runtime=x,Ue.typeName="google.protobuf.ExtensionRangeOptions",Ue.fields=x.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:gt,repeated:!0},{no:2,name:"declaration",kind:"message",T:Me,repeated:!0},{no:50,name:"features",kind:"message",T:Xt,opt:!0},{no:3,name:"verification",kind:"enum",T:x.getEnumType(et),opt:!0,default:et.UNVERIFIED}]);var et;(function(H){H[H.DECLARATION=0]="DECLARATION",H[H.UNVERIFIED=1]="UNVERIFIED"})(et||(et={})),x.util.setEnumType(et,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class Me extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new Me().fromBinary(I,U)}static fromJson(I,U){return new Me().fromJson(I,U)}static fromJsonString(I,U){return new Me().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Me,I,U)}}Me.runtime=x,Me.typeName="google.protobuf.ExtensionRangeOptions.Declaration",Me.fields=x.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 se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new qe().fromBinary(I,U)}static fromJson(I,U){return new qe().fromJson(I,U)}static fromJsonString(I,U){return new qe().fromJsonString(I,U)}static equals(I,U){return x.util.equals(qe,I,U)}}qe.runtime=x,qe.typeName="google.protobuf.FieldDescriptorProto",qe.fields=x.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:x.getEnumType(Ze),opt:!0},{no:5,name:"type",kind:"enum",T:x.getEnumType(xe),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:je,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var xe;(function(H){H[H.DOUBLE=1]="DOUBLE",H[H.FLOAT=2]="FLOAT",H[H.INT64=3]="INT64",H[H.UINT64=4]="UINT64",H[H.INT32=5]="INT32",H[H.FIXED64=6]="FIXED64",H[H.FIXED32=7]="FIXED32",H[H.BOOL=8]="BOOL",H[H.STRING=9]="STRING",H[H.GROUP=10]="GROUP",H[H.MESSAGE=11]="MESSAGE",H[H.BYTES=12]="BYTES",H[H.UINT32=13]="UINT32",H[H.ENUM=14]="ENUM",H[H.SFIXED32=15]="SFIXED32",H[H.SFIXED64=16]="SFIXED64",H[H.SINT32=17]="SINT32",H[H.SINT64=18]="SINT64"})(xe||(xe={})),x.util.setEnumType(xe,"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(H){H[H.OPTIONAL=1]="OPTIONAL",H[H.REPEATED=3]="REPEATED",H[H.REQUIRED=2]="REQUIRED"})(Ze||(Ze={})),x.util.setEnumType(Ze,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class Xe extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new Xe().fromBinary(I,U)}static fromJson(I,U){return new Xe().fromJson(I,U)}static fromJsonString(I,U){return new Xe().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Xe,I,U)}}Xe.runtime=x,Xe.typeName="google.protobuf.OneofDescriptorProto",Xe.fields=x.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:ft,opt:!0}]);class it extends se.v{constructor(I){super(),this.value=[],this.reservedRange=[],this.reservedName=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new it().fromBinary(I,U)}static fromJson(I,U){return new it().fromJson(I,U)}static fromJsonString(I,U){return new it().fromJsonString(I,U)}static equals(I,U){return x.util.equals(it,I,U)}}it.runtime=x,it.typeName="google.protobuf.EnumDescriptorProto",it.fields=x.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:tt,repeated:!0},{no:3,name:"options",kind:"message",T:_t,opt:!0},{no:4,name:"reserved_range",kind:"message",T:Ot,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class Ot extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new Ot().fromBinary(I,U)}static fromJson(I,U){return new Ot().fromJson(I,U)}static fromJsonString(I,U){return new Ot().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Ot,I,U)}}Ot.runtime=x,Ot.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",Ot.fields=x.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class tt extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new tt().fromBinary(I,U)}static fromJson(I,U){return new tt().fromJson(I,U)}static fromJsonString(I,U){return new tt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(tt,I,U)}}tt.runtime=x,tt.typeName="google.protobuf.EnumValueDescriptorProto",tt.fields=x.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:At,opt:!0}]);class pe extends se.v{constructor(I){super(),this.method=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new pe().fromBinary(I,U)}static fromJson(I,U){return new pe().fromJson(I,U)}static fromJsonString(I,U){return new pe().fromJsonString(I,U)}static equals(I,U){return x.util.equals(pe,I,U)}}pe.runtime=x,pe.typeName="google.protobuf.ServiceDescriptorProto",pe.fields=x.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:oe,repeated:!0},{no:3,name:"options",kind:"message",T:pt,opt:!0}]);class oe extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new oe().fromBinary(I,U)}static fromJson(I,U){return new oe().fromJson(I,U)}static fromJsonString(I,U){return new oe().fromJsonString(I,U)}static equals(I,U){return x.util.equals(oe,I,U)}}oe.runtime=x,oe.typeName="google.protobuf.MethodDescriptorProto",oe.fields=x.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:Mt,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 ie extends se.v{constructor(I){super(),this.uninterpretedOption=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new ie().fromBinary(I,U)}static fromJson(I,U){return new ie().fromJson(I,U)}static fromJsonString(I,U){return new ie().fromJsonString(I,U)}static equals(I,U){return x.util.equals(ie,I,U)}}ie.runtime=x,ie.typeName="google.protobuf.FileOptions",ie.fields=x.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:x.getEnumType(Fe),opt:!0,default:Fe.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:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:gt,repeated:!0}]);var Fe;(function(H){H[H.SPEED=1]="SPEED",H[H.CODE_SIZE=2]="CODE_SIZE",H[H.LITE_RUNTIME=3]="LITE_RUNTIME"})(Fe||(Fe={})),x.util.setEnumType(Fe,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Qe extends se.v{constructor(I){super(),this.uninterpretedOption=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new Qe().fromBinary(I,U)}static fromJson(I,U){return new Qe().fromJson(I,U)}static fromJsonString(I,U){return new Qe().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Qe,I,U)}}Qe.runtime=x,Qe.typeName="google.protobuf.MessageOptions",Qe.fields=x.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:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:gt,repeated:!0}]);class je extends se.v{constructor(I){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new je().fromBinary(I,U)}static fromJson(I,U){return new je().fromJson(I,U)}static fromJsonString(I,U){return new je().fromJsonString(I,U)}static equals(I,U){return x.util.equals(je,I,U)}}je.runtime=x,je.typeName="google.protobuf.FieldOptions",je.fields=x.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:x.getEnumType(fe),opt:!0,default:fe.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:x.getEnumType(Oe),opt:!0,default:Oe.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:x.getEnumType(ye),opt:!0},{no:19,name:"targets",kind:"enum",T:x.getEnumType(Ce),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:De,repeated:!0},{no:21,name:"features",kind:"message",T:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:gt,repeated:!0}]);var fe;(function(H){H[H.STRING=0]="STRING",H[H.CORD=1]="CORD",H[H.STRING_PIECE=2]="STRING_PIECE"})(fe||(fe={})),x.util.setEnumType(fe,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var Oe;(function(H){H[H.JS_NORMAL=0]="JS_NORMAL",H[H.JS_STRING=1]="JS_STRING",H[H.JS_NUMBER=2]="JS_NUMBER"})(Oe||(Oe={})),x.util.setEnumType(Oe,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var ye;(function(H){H[H.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",H[H.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",H[H.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(ye||(ye={})),x.util.setEnumType(ye,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var Ce;(function(H){H[H.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",H[H.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",H[H.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",H[H.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",H[H.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",H[H.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",H[H.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",H[H.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",H[H.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",H[H.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(Ce||(Ce={})),x.util.setEnumType(Ce,"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 De extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new De().fromBinary(I,U)}static fromJson(I,U){return new De().fromJson(I,U)}static fromJsonString(I,U){return new De().fromJsonString(I,U)}static equals(I,U){return x.util.equals(De,I,U)}}De.runtime=x,De.typeName="google.protobuf.FieldOptions.EditionDefault",De.fields=x.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:x.getEnumType(J),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class ft extends se.v{constructor(I){super(),this.uninterpretedOption=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new ft().fromBinary(I,U)}static fromJson(I,U){return new ft().fromJson(I,U)}static fromJsonString(I,U){return new ft().fromJsonString(I,U)}static equals(I,U){return x.util.equals(ft,I,U)}}ft.runtime=x,ft.typeName="google.protobuf.OneofOptions",ft.fields=x.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:gt,repeated:!0}]);class _t extends se.v{constructor(I){super(),this.uninterpretedOption=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new _t().fromBinary(I,U)}static fromJson(I,U){return new _t().fromJson(I,U)}static fromJsonString(I,U){return new _t().fromJsonString(I,U)}static equals(I,U){return x.util.equals(_t,I,U)}}_t.runtime=x,_t.typeName="google.protobuf.EnumOptions",_t.fields=x.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:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:gt,repeated:!0}]);class At extends se.v{constructor(I){super(),this.uninterpretedOption=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new At().fromBinary(I,U)}static fromJson(I,U){return new At().fromJson(I,U)}static fromJsonString(I,U){return new At().fromJsonString(I,U)}static equals(I,U){return x.util.equals(At,I,U)}}At.runtime=x,At.typeName="google.protobuf.EnumValueOptions",At.fields=x.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Xt,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:gt,repeated:!0}]);class pt extends se.v{constructor(I){super(),this.uninterpretedOption=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new pt().fromBinary(I,U)}static fromJson(I,U){return new pt().fromJson(I,U)}static fromJsonString(I,U){return new pt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(pt,I,U)}}pt.runtime=x,pt.typeName="google.protobuf.ServiceOptions",pt.fields=x.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Xt,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:gt,repeated:!0}]);class Mt extends se.v{constructor(I){super(),this.uninterpretedOption=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new Mt().fromBinary(I,U)}static fromJson(I,U){return new Mt().fromJson(I,U)}static fromJsonString(I,U){return new Mt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Mt,I,U)}}Mt.runtime=x,Mt.typeName="google.protobuf.MethodOptions",Mt.fields=x.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:x.getEnumType(ot),opt:!0,default:ot.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Xt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:gt,repeated:!0}]);var ot;(function(H){H[H.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",H[H.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",H[H.IDEMPOTENT=2]="IDEMPOTENT"})(ot||(ot={})),x.util.setEnumType(ot,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class gt extends se.v{constructor(I){super(),this.name=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new gt().fromBinary(I,U)}static fromJson(I,U){return new gt().fromJson(I,U)}static fromJsonString(I,U){return new gt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(gt,I,U)}}gt.runtime=x,gt.typeName="google.protobuf.UninterpretedOption",gt.fields=x.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:$t,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 $t extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new $t().fromBinary(I,U)}static fromJson(I,U){return new $t().fromJson(I,U)}static fromJsonString(I,U){return new $t().fromJsonString(I,U)}static equals(I,U){return x.util.equals($t,I,U)}}$t.runtime=x,$t.typeName="google.protobuf.UninterpretedOption.NamePart",$t.fields=x.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Xt extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new Xt().fromBinary(I,U)}static fromJson(I,U){return new Xt().fromJson(I,U)}static fromJsonString(I,U){return new Xt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Xt,I,U)}}Xt.runtime=x,Xt.typeName="google.protobuf.FeatureSet",Xt.fields=x.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:x.getEnumType(vn),opt:!0},{no:2,name:"enum_type",kind:"enum",T:x.getEnumType(Cn),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:x.getEnumType($n),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:x.getEnumType(qn),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:x.getEnumType(Ae),opt:!0},{no:6,name:"json_format",kind:"enum",T:x.getEnumType(Be),opt:!0}]);var vn;(function(H){H[H.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",H[H.EXPLICIT=1]="EXPLICIT",H[H.IMPLICIT=2]="IMPLICIT",H[H.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(vn||(vn={})),x.util.setEnumType(vn,"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(H){H[H.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",H[H.OPEN=1]="OPEN",H[H.CLOSED=2]="CLOSED"})(Cn||(Cn={})),x.util.setEnumType(Cn,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var $n;(function(H){H[H.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",H[H.PACKED=1]="PACKED",H[H.EXPANDED=2]="EXPANDED"})($n||($n={})),x.util.setEnumType($n,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var qn;(function(H){H[H.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",H[H.NONE=1]="NONE",H[H.VERIFY=2]="VERIFY"})(qn||(qn={})),x.util.setEnumType(qn,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var Ae;(function(H){H[H.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",H[H.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",H[H.DELIMITED=2]="DELIMITED"})(Ae||(Ae={})),x.util.setEnumType(Ae,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var Be;(function(H){H[H.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",H[H.ALLOW=1]="ALLOW",H[H.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(Be||(Be={})),x.util.setEnumType(Be,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class rt extends se.v{constructor(I){super(),this.defaults=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new rt().fromBinary(I,U)}static fromJson(I,U){return new rt().fromJson(I,U)}static fromJsonString(I,U){return new rt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(rt,I,U)}}rt.runtime=x,rt.typeName="google.protobuf.FeatureSetDefaults",rt.fields=x.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:Ne,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:x.getEnumType(J),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:x.getEnumType(J),opt:!0}]);class Ne extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new Ne().fromBinary(I,U)}static fromJson(I,U){return new Ne().fromJson(I,U)}static fromJsonString(I,U){return new Ne().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Ne,I,U)}}Ne.runtime=x,Ne.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",Ne.fields=x.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:x.getEnumType(J),opt:!0},{no:2,name:"features",kind:"message",T:Xt,opt:!0}]);class wt extends se.v{constructor(I){super(),this.location=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new wt().fromBinary(I,U)}static fromJson(I,U){return new wt().fromJson(I,U)}static fromJsonString(I,U){return new wt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(wt,I,U)}}wt.runtime=x,wt.typeName="google.protobuf.SourceCodeInfo",wt.fields=x.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Gt,repeated:!0}]);class Gt extends se.v{constructor(I){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new Gt().fromBinary(I,U)}static fromJson(I,U){return new Gt().fromJson(I,U)}static fromJsonString(I,U){return new Gt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Gt,I,U)}}Gt.runtime=x,Gt.typeName="google.protobuf.SourceCodeInfo.Location",Gt.fields=x.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 jt extends se.v{constructor(I){super(),this.annotation=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new jt().fromBinary(I,U)}static fromJson(I,U){return new jt().fromJson(I,U)}static fromJsonString(I,U){return new jt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(jt,I,U)}}jt.runtime=x,jt.typeName="google.protobuf.GeneratedCodeInfo",jt.fields=x.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:qt,repeated:!0}]);class qt extends se.v{constructor(I){super(),this.path=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new qt().fromBinary(I,U)}static fromJson(I,U){return new qt().fromJson(I,U)}static fromJsonString(I,U){return new qt().fromJsonString(I,U)}static equals(I,U){return x.util.equals(qt,I,U)}}qt.runtime=x,qt.typeName="google.protobuf.GeneratedCodeInfo.Annotation",qt.fields=x.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:x.getEnumType(Bt),opt:!0}]);var Bt;(function(H){H[H.NONE=0]="NONE",H[H.SET=1]="SET",H[H.ALIAS=2]="ALIAS"})(Bt||(Bt={})),x.util.setEnumType(Bt,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function On(H,I){const U=H.values.find(ge=>ge.name===I);return(0,k.hu)(U,`cannot parse ${H.name} default value: ${I}`),U.number}function Ve(H,I){switch(H){case f.w.STRING:return I;case f.w.BYTES:{const U=We(I);if(U===!1)throw new Error(`cannot parse ${f.w[H]} default value: ${I}`);return U}case f.w.INT64:case f.w.SFIXED64:case f.w.SINT64:return P.q.parse(I);case f.w.UINT64:case f.w.FIXED64:return P.q.uParse(I);case f.w.DOUBLE:case f.w.FLOAT:switch(I){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(I)}case f.w.BOOL:return I==="true";case f.w.INT32:case f.w.UINT32:case f.w.SINT32:case f.w.FIXED32:case f.w.SFIXED32:return parseInt(I,10)}}function We(H){const I=[],U={tail:H,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(ge){if(this.tail.length>=ge){const _e=this.tail.substring(0,ge);return this.tail=this.tail.substring(ge),_e}return!1}};for(;U.next();)switch(U.c){case"\\":if(U.next())switch(U.c){case"\\":I.push(U.c.charCodeAt(0));break;case"b":I.push(8);break;case"f":I.push(12);break;case"n":I.push(10);break;case"r":I.push(13);break;case"t":I.push(9);break;case"v":I.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const ge=U.c,_e=U.take(2);if(_e===!1)return!1;const Ye=parseInt(ge+_e,8);if(isNaN(Ye))return!1;I.push(Ye);break}case"x":{const ge=U.c,_e=U.take(2);if(_e===!1)return!1;const Ye=parseInt(ge+_e,16);if(isNaN(Ye))return!1;I.push(Ye);break}case"u":{const ge=U.c,_e=U.take(4);if(_e===!1)return!1;const Ye=parseInt(ge+_e,16);if(isNaN(Ye))return!1;const Ke=new Uint8Array(4);new DataView(Ke.buffer).setInt32(0,Ye,!0),I.push(Ke[0],Ke[1],Ke[2],Ke[3]);break}case"U":{const ge=U.c,_e=U.take(8);if(_e===!1)return!1;const Ye=P.q.uEnc(ge+_e),Ke=new Uint8Array(8),kt=new DataView(Ke.buffer);kt.setInt32(0,Ye.lo,!0),kt.setInt32(4,Ye.hi,!0),I.push(Ke[0],Ke[1],Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7]);break}}break;default:I.push(U.c.charCodeAt(0))}return new Uint8Array(I)}const He=rt.fromBinary(V.W.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function bt(H){const I=H.minimumEdition,U=H.maximumEdition;if(I===void 0||U===void 0||H.defaults.some(_e=>_e.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const ge=new Map;return(_e,...Ye)=>{var Ke,kt;let ut=ge.get(_e);if(ut===void 0){if(_e_e||Wt!==void 0&&Wt.e>Jr||(Wt={e:Jr,f:(kt=Fn.features)!==null&&kt!==void 0?kt:new Xt})}if(Wt===void 0)throw new Error(`No valid default found for edition ${J[_e]}`);ut=Wt.f.toBinary(),ge.set(_e,ut)}const It=Xt.fromBinary(ut);for(const Wt of Ye)Wt!==void 0&&It.fromBinary(Wt.toBinary());if(!Nn(It))throw new Error(`Invalid FeatureSet for edition ${J[_e]}`);return It}}function Nn(H){for(const I of Xt.fields.list()){const U=H[I.localName];if(U===void 0||I.kind=="enum"&&U===0)return!1}return!0}function Kt(H,I){var U;const ge={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:bt((U=I==null?void 0:I.featureSetDefaults)!==null&&U!==void 0?U:He)},Ye=(H instanceof le?H.file:H instanceof Uint8Array?le.fromBinary(H).file:H).map(Ke=>An(Ke,ge));return Object.assign({files:Ye},ge)}function An(H,I){var U,ge;(0,k.hu)(H.name,"invalid FileDescriptorProto: missing name");const _e=Object.assign(Object.assign({kind:"file",proto:H,deprecated:(ge=(U=H.options)===null||U===void 0?void 0:U.deprecated)!==null&&ge!==void 0?ge:!1},_n(H.syntax,H.edition)),{name:H.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return gs(this.proto.sourceCodeInfo,[Li.FileDescriptorProto_Syntax])},getPackageComments(){return gs(this.proto.sourceCodeInfo,[Li.FileDescriptorProto_Package])},getFeatures(){var Ye;return I.resolveFeatures(this.edition,(Ye=this.proto.options)===null||Ye===void 0?void 0:Ye.features)}});I.mapEntries.clear();for(const Ye of H.enumType)$e(Ye,_e,void 0,I);for(const Ye of H.messageType)Rt(Ye,_e,void 0,I);for(const Ye of H.service)en(Ye,_e,I);Kr(_e,I);for(const Ye of I.mapEntries.values())Je(Ye,I);for(const Ye of _e.messages)Je(Ye,I),Kr(Ye,I);return I.mapEntries.clear(),_e}function Kr(H,I){switch(H.kind){case"file":for(const U of H.proto.extension){const ge=bn(U,H,void 0,I);H.extensions.push(ge),I.extensions.set(ge.typeName,ge)}break;case"message":for(const U of H.proto.extension){const ge=bn(U,H.file,H,I);H.nestedExtensions.push(ge),I.extensions.set(ge.typeName,ge)}for(const U of H.nestedMessages)Kr(U,I);break}}function Je(H,I){const U=H.proto.oneofDecl.map(_e=>er(_e,H,I)),ge=new Set;for(const _e of H.proto.field){const Ye=Pt(_e,U),Ke=Zn(_e,H.file,H,Ye,I);H.fields.push(Ke),Ye===void 0?H.members.push(Ke):(Ye.fields.push(Ke),ge.has(Ye)||(ge.add(Ye),H.members.push(Ye)))}for(const _e of U.filter(Ye=>ge.has(Ye)))H.oneofs.push(_e);for(const _e of H.nestedMessages)Je(_e,I)}function $e(H,I,U,ge){var _e,Ye,Ke;(0,k.hu)(H.name,"invalid EnumDescriptorProto: missing name");const kt={kind:"enum",proto:H,deprecated:(Ye=(_e=H.options)===null||_e===void 0?void 0:_e.deprecated)!==null&&Ye!==void 0?Ye:!1,file:I,parent:U,name:H.name,typeName:Tr(H,U,I),values:[],sharedPrefix:(0,E.Sm)(H.name,H.value.map(ut=>{var It;return(It=ut.name)!==null&&It!==void 0?It:""})),toString(){return`enum ${this.typeName}`},getComments(){const ut=this.parent?[...this.parent.getComments().sourcePath,Li.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[Li.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return gs(I.proto.sourceCodeInfo,ut)},getFeatures(){var ut,It,Wt;const Fn=(It=(ut=this.parent)===null||ut===void 0?void 0:ut.getFeatures())!==null&&It!==void 0?It:this.file.getFeatures();return ge.resolveFeatures(this.file.edition,Fn,(Wt=this.proto.options)===null||Wt===void 0?void 0:Wt.features)}};ge.enums.set(kt.typeName,kt),H.value.forEach(ut=>{var It,Wt;(0,k.hu)(ut.name,"invalid EnumValueDescriptorProto: missing name"),(0,k.hu)(ut.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),kt.values.push({kind:"enum_value",proto:ut,deprecated:(Wt=(It=ut.options)===null||It===void 0?void 0:It.deprecated)!==null&&Wt!==void 0?Wt:!1,parent:kt,name:ut.name,number:ut.number,toString(){return`enum value ${kt.typeName}.${this.name}`},declarationString(){var Fn;let Jr=`${this.name} = ${this.number}`;return((Fn=this.proto.options)===null||Fn===void 0?void 0:Fn.deprecated)===!0&&(Jr+=" [deprecated = true]"),Jr},getComments(){const Fn=[...this.parent.getComments().sourcePath,Li.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return gs(I.proto.sourceCodeInfo,Fn)},getFeatures(){var Fn;return ge.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(Fn=this.proto.options)===null||Fn===void 0?void 0:Fn.features)}})}),((Ke=U==null?void 0:U.nestedEnums)!==null&&Ke!==void 0?Ke:I.enums).push(kt)}function Rt(H,I,U,ge){var _e,Ye,Ke,kt;(0,k.hu)(H.name,"invalid DescriptorProto: missing name");const ut={kind:"message",proto:H,deprecated:(Ye=(_e=H.options)===null||_e===void 0?void 0:_e.deprecated)!==null&&Ye!==void 0?Ye:!1,file:I,parent:U,name:H.name,typeName:Tr(H,U,I),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const It=this.parent?[...this.parent.getComments().sourcePath,Li.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[Li.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return gs(I.proto.sourceCodeInfo,It)},getFeatures(){var It,Wt,Fn;const Jr=(Wt=(It=this.parent)===null||It===void 0?void 0:It.getFeatures())!==null&&Wt!==void 0?Wt:this.file.getFeatures();return ge.resolveFeatures(this.file.edition,Jr,(Fn=this.proto.options)===null||Fn===void 0?void 0:Fn.features)}};((Ke=H.options)===null||Ke===void 0?void 0:Ke.mapEntry)===!0?ge.mapEntries.set(ut.typeName,ut):(((kt=U==null?void 0:U.nestedMessages)!==null&&kt!==void 0?kt:I.messages).push(ut),ge.messages.set(ut.typeName,ut));for(const It of H.enumType)$e(It,I,ut,ge);for(const It of H.nestedType)Rt(It,I,ut,ge)}function en(H,I,U){var ge,_e;(0,k.hu)(H.name,"invalid ServiceDescriptorProto: missing name");const Ye={kind:"service",proto:H,deprecated:(_e=(ge=H.options)===null||ge===void 0?void 0:ge.deprecated)!==null&&_e!==void 0?_e:!1,file:I,name:H.name,typeName:Tr(H,void 0,I),methods:[],toString(){return`service ${this.typeName}`},getComments(){const Ke=[Li.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return gs(I.proto.sourceCodeInfo,Ke)},getFeatures(){var Ke;return U.resolveFeatures(this.file.edition,this.file.getFeatures(),(Ke=this.proto.options)===null||Ke===void 0?void 0:Ke.features)}};I.services.push(Ye),U.services.set(Ye.typeName,Ye);for(const Ke of H.method)Ye.methods.push(mn(Ke,Ye,U))}function mn(H,I,U){var ge,_e,Ye;(0,k.hu)(H.name,"invalid MethodDescriptorProto: missing name"),(0,k.hu)(H.inputType,"invalid MethodDescriptorProto: missing input_type"),(0,k.hu)(H.outputType,"invalid MethodDescriptorProto: missing output_type");let Ke;H.clientStreaming===!0&&H.serverStreaming===!0?Ke=he.t.BiDiStreaming:H.clientStreaming===!0?Ke=he.t.ClientStreaming:H.serverStreaming===!0?Ke=he.t.ServerStreaming:Ke=he.t.Unary;let kt;switch((ge=H.options)===null||ge===void 0?void 0:ge.idempotencyLevel){case ot.IDEMPOTENT:kt=he.w.Idempotent;break;case ot.NO_SIDE_EFFECTS:kt=he.w.NoSideEffects;break;case ot.IDEMPOTENCY_UNKNOWN:case void 0:kt=void 0;break}const ut=U.messages.get(si(H.inputType)),It=U.messages.get(si(H.outputType));(0,k.hu)(ut,`invalid MethodDescriptorProto: input_type ${H.inputType} not found`),(0,k.hu)(It,`invalid MethodDescriptorProto: output_type ${H.inputType} not found`);const Wt=H.name;return{kind:"rpc",proto:H,deprecated:(Ye=(_e=H.options)===null||_e===void 0?void 0:_e.deprecated)!==null&&Ye!==void 0?Ye:!1,parent:I,name:Wt,methodKind:Ke,input:ut,output:It,idempotency:kt,toString(){return`rpc ${I.typeName}.${Wt}`},getComments(){const Fn=[...this.parent.getComments().sourcePath,Li.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return gs(I.file.proto.sourceCodeInfo,Fn)},getFeatures(){var Fn;return U.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(Fn=this.proto.options)===null||Fn===void 0?void 0:Fn.features)}}}function er(H,I,U){return(0,k.hu)(H.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:H,deprecated:!1,parent:I,fields:[],name:H.name,toString(){return`oneof ${I.typeName}.${this.name}`},getComments(){const ge=[...this.parent.getComments().sourcePath,Li.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return gs(I.file.proto.sourceCodeInfo,ge)},getFeatures(){var ge;return U.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(ge=this.proto.options)===null||ge===void 0?void 0:ge.features)}}}function Zn(H,I,U,ge,_e){var Ye,Ke,kt;(0,k.hu)(H.name,"invalid FieldDescriptorProto: missing name"),(0,k.hu)(H.number,"invalid FieldDescriptorProto: missing number"),(0,k.hu)(H.type,"invalid FieldDescriptorProto: missing type");const ut={proto:H,deprecated:(Ke=(Ye=H.options)===null||Ye===void 0?void 0:Ye.deprecated)!==null&&Ke!==void 0?Ke:!1,name:H.name,number:H.number,parent:U,oneof:ge,optional:Pi(H,I.syntax),packedByDefault:Hn(I,H,_e.resolveFeatures),packed:Xn(I,U,H,_e.resolveFeatures),jsonName:H.jsonName===(0,E.x1)(H.name)?void 0:H.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:Kd,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Wt=[...this.parent.getComments().sourcePath,Li.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return gs(I.proto.sourceCodeInfo,Wt)},getFeatures(){var Wt;return _e.resolveFeatures(I.edition,this.parent.getFeatures(),(Wt=this.proto.options)===null||Wt===void 0?void 0:Wt.features)}},It=H.label===Ze.REPEATED;switch(H.type){case xe.MESSAGE:case xe.GROUP:{(0,k.hu)(H.typeName,"invalid FieldDescriptorProto: missing type_name");const Wt=_e.mapEntries.get(si(H.typeName));if(Wt!==void 0)return(0,k.hu)(It,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},ut),{kind:"field",fieldKind:"map",repeated:!1}),fi(Wt));const Fn=_e.messages.get(si(H.typeName));return(0,k.hu)(Fn!==void 0,`invalid FieldDescriptorProto: type_name ${H.typeName} not found`),Object.assign(Object.assign({},ut),{kind:"field",fieldKind:"message",repeated:It,message:Fn})}case xe.ENUM:{(0,k.hu)(H.typeName,"invalid FieldDescriptorProto: missing type_name");const Wt=_e.enums.get(si(H.typeName));return(0,k.hu)(Wt!==void 0,`invalid FieldDescriptorProto: type_name ${H.typeName} not found`),Object.assign(Object.assign({},ut),{kind:"field",fieldKind:"enum",getDefaultValue:Qa,repeated:It,enum:Wt})}default:{const Wt=Ea[H.type];return(0,k.hu)(Wt,`invalid FieldDescriptorProto: unknown type ${H.type}`),Object.assign(Object.assign({},ut),{kind:"field",fieldKind:"scalar",getDefaultValue:Qa,repeated:It,scalar:Wt,longType:((kt=H.options)===null||kt===void 0?void 0:kt.jstype)==Oe.JS_STRING?f.p.STRING:f.p.BIGINT})}}}function bn(H,I,U,ge){(0,k.hu)(H.extendee,"invalid FieldDescriptorProto: missing extendee");const _e=Zn(H,I,null,void 0,ge),Ye=ge.messages.get(si(H.extendee));return(0,k.hu)(Ye,`invalid FieldDescriptorProto: extendee ${H.extendee} not found`),Object.assign(Object.assign({},_e),{kind:"extension",typeName:Tr(H,U,I),parent:U,file:I,extendee:Ye,toString(){return`extension ${this.typeName}`},getComments(){const Ke=this.parent?[...this.parent.getComments().sourcePath,Li.DescriptorProto_Extension,this.parent.proto.extension.indexOf(H)]:[Li.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(H)];return gs(I.proto.sourceCodeInfo,Ke)},getFeatures(){var Ke,kt;return ge.resolveFeatures(this.file.edition,((Ke=this.parent)!==null&&Ke!==void 0?Ke:this.file).getFeatures(),(kt=this.proto.options)===null||kt===void 0?void 0:kt.features)}})}function _n(H,I){let U,ge;switch(H){case void 0:case"proto2":ge="proto2",U=J.EDITION_PROTO2;break;case"proto3":ge="proto3",U=J.EDITION_PROTO3;break;case"editions":switch(ge="editions",I){case void 0:case J.EDITION_1_TEST_ONLY:case J.EDITION_2_TEST_ONLY:case J.EDITION_99997_TEST_ONLY:case J.EDITION_99998_TEST_ONLY:case J.EDITION_99999_TEST_ONLY:case J.EDITION_UNKNOWN:U=J.EDITION_UNKNOWN;break;default:U=I;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${H}`)}if(H==="editions"&&I===J.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${H} cannot have edition ${String(I)}`);return{syntax:ge,edition:U}}function Tr(H,I,U){(0,k.hu)(H.name,`invalid ${H.getType().typeName}: missing name`);let ge;return I?ge=`${I.typeName}.${H.name}`:U.proto.package!==void 0?ge=`${U.proto.package}.${H.name}`:ge=`${H.name}`,ge}function si(H){return H.startsWith(".")?H.substring(1):H}function fi(H){var I,U;(0,k.hu)((I=H.proto.options)===null||I===void 0?void 0:I.mapEntry,`invalid DescriptorProto: expected ${H.toString()} to be a map entry`),(0,k.hu)(H.fields.length===2,`invalid DescriptorProto: map entry ${H.toString()} has ${H.fields.length} fields`);const ge=H.fields.find(Ke=>Ke.proto.number===1);(0,k.hu)(ge,`invalid DescriptorProto: map entry ${H.toString()} is missing key field`);const _e=ge.scalar;(0,k.hu)(_e!==void 0&&_e!==f.w.BYTES&&_e!==f.w.FLOAT&&_e!==f.w.DOUBLE,`invalid DescriptorProto: map entry ${H.toString()} has unexpected key type ${(U=ge.proto.type)!==null&&U!==void 0?U:-1}`);const Ye=H.fields.find(Ke=>Ke.proto.number===2);switch((0,k.hu)(Ye,`invalid DescriptorProto: map entry ${H.toString()} is missing value field`),Ye.fieldKind){case"scalar":return{mapKey:_e,mapValue:Object.assign(Object.assign({},Ye),{kind:"scalar"})};case"message":return{mapKey:_e,mapValue:Object.assign(Object.assign({},Ye),{kind:"message"})};case"enum":return{mapKey:_e,mapValue:Object.assign(Object.assign({},Ye),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function Pt(H,I){var U;const ge=H.oneofIndex;if(ge===void 0)return;let _e;return H.proto3Optional!==!0&&(_e=I[ge],(0,k.hu)(_e,`invalid FieldDescriptorProto: oneof #${ge} for field #${(U=H.number)!==null&&U!==void 0?U:-1} not found`)),_e}function Pi(H,I){switch(I){case"proto2":return H.oneofIndex===void 0&&H.label===Ze.OPTIONAL;case"proto3":return H.proto3Optional===!0;case"editions":return!1}}function Hn(H,I,U){const{repeatedFieldEncoding:ge}=U(H.edition);if(ge!=$n.PACKED)return!1;switch(I.type){case xe.STRING:case xe.BYTES:case xe.GROUP:case xe.MESSAGE:return!1;default:return!0}}function Xn(H,I,U,ge){var _e,Ye,Ke,kt,ut,It;switch(U.type){case xe.STRING:case xe.BYTES:case xe.GROUP:case xe.MESSAGE:return!1;default:switch(H.edition){case J.EDITION_PROTO2:return(Ye=(_e=U.options)===null||_e===void 0?void 0:_e.packed)!==null&&Ye!==void 0?Ye:!1;case J.EDITION_PROTO3:return(kt=(Ke=U.options)===null||Ke===void 0?void 0:Ke.packed)!==null&&kt!==void 0?kt:!0;default:{const{repeatedFieldEncoding:Wt}=ge(H.edition,(ut=I==null?void 0:I.getFeatures())!==null&&ut!==void 0?ut:H.getFeatures(),(It=U.options)===null||It===void 0?void 0:It.features);return Wt==$n.PACKED}}}}const Ea={[xe.DOUBLE]:f.w.DOUBLE,[xe.FLOAT]:f.w.FLOAT,[xe.INT64]:f.w.INT64,[xe.UINT64]:f.w.UINT64,[xe.INT32]:f.w.INT32,[xe.FIXED64]:f.w.FIXED64,[xe.FIXED32]:f.w.FIXED32,[xe.BOOL]:f.w.BOOL,[xe.STRING]:f.w.STRING,[xe.GROUP]:void 0,[xe.MESSAGE]:void 0,[xe.BYTES]:f.w.BYTES,[xe.UINT32]:f.w.UINT32,[xe.ENUM]:void 0,[xe.SFIXED32]:f.w.SFIXED32,[xe.SFIXED64]:f.w.SFIXED64,[xe.SINT32]:f.w.SINT32,[xe.SINT64]:f.w.SINT64};function gs(H,I){if(!H)return{leadingDetached:[],sourcePath:I};for(const U of H.location)if(U.path.length===I.length&&!U.path.some((ge,_e)=>I[_e]!==ge))return{leadingDetached:U.leadingDetachedComments,leading:U.leadingComments,trailing:U.trailingComments,sourcePath:I};return{leadingDetached:[],sourcePath:I}}var Li;(function(H){H[H.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",H[H.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",H[H.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",H[H.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",H[H.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",H[H.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",H[H.DescriptorProto_Field=2]="DescriptorProto_Field",H[H.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",H[H.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",H[H.DescriptorProto_Extension=6]="DescriptorProto_Extension",H[H.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",H[H.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",H[H.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(Li||(Li={}));function Kd(){var H,I,U;const ge=[];this.repeated&&ge.push("repeated"),this.optional&&ge.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===Ze.REQUIRED&&ge.push("required");let Ye;switch(this.fieldKind){case"scalar":Ye=f.w[this.scalar].toLowerCase();break;case"enum":Ye=this.enum.typeName;break;case"message":Ye=this.message.typeName;break;case"map":{const ut=f.w[this.mapKey].toLowerCase();let It;switch(this.mapValue.kind){case"scalar":It=f.w[this.mapValue.scalar].toLowerCase();break;case"enum":It=this.mapValue.enum.typeName;break;case"message":It=this.mapValue.message.typeName;break}Ye=`map<${ut}, ${It}>`;break}}ge.push(`${Ye} ${this.name} = ${this.number}`);const Ke=[];((H=this.proto.options)===null||H===void 0?void 0:H.packed)!==void 0&&Ke.push(`packed = ${this.proto.options.packed.toString()}`);let kt=this.proto.defaultValue;return kt!==void 0&&((this.proto.type==xe.BYTES||this.proto.type==xe.STRING)&&(kt='"'+kt.replace('"','\\"')+'"'),Ke.push(`default = ${kt}`)),this.jsonName!==void 0&&Ke.push(`json_name = "${this.jsonName}"`),((I=this.proto.options)===null||I===void 0?void 0:I.jstype)!==void 0&&Ke.push(`jstype = ${Oe[this.proto.options.jstype]}`),((U=this.proto.options)===null||U===void 0?void 0:U.deprecated)===!0&&Ke.push("deprecated = true"),Ke.length>0&&ge.push("["+Ke.join(", ")+"]"),ge.join(" ")}function Qa(){const H=this.proto.defaultValue;if(H!==void 0)switch(this.fieldKind){case"enum":return On(this.enum,H);case"scalar":return Ve(this.scalar,H);default:return}}function pp(...H){const I={},U={},ge={},_e={add(Ye){if("fields"in Ye){if(!this.findMessage(Ye.typeName)){I[Ye.typeName]=Ye;for(const Ke of Ye.fields.list())Ke.kind=="message"?this.add(Ke.T):Ke.kind=="map"&&Ke.V.kind=="message"?this.add(Ke.V.T):Ke.kind=="enum"&&this.add(Ke.T)}}else if("methods"in Ye){if(!this.findService(Ye.typeName)){ge[Ye.typeName]=Ye;for(const Ke of Object.values(Ye.methods))this.add(Ke.I),this.add(Ke.O)}}else U[Ye.typeName]=Ye},findMessage(Ye){return I[Ye]},findEnum(Ye){return U[Ye]},findService(Ye){return ge[Ye]}};for(const Ye of H)_e.add(Ye);return _e}class na extends se.v{constructor(I){super(),this.seconds=P.q.zero,this.nanos=0,c.w.util.initPartial(I,this)}fromJson(I,U){if(typeof I!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.w.json.debug(I)}`);const ge=I.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(!ge)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const _e=Date.parse(ge[1]+"-"+ge[2]+"-"+ge[3]+"T"+ge[4]+":"+ge[5]+":"+ge[6]+(ge[8]?ge[8]:"Z"));if(Number.isNaN(_e))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(_eDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=P.q.parse(_e/1e3),this.nanos=0,ge[7]&&(this.nanos=parseInt("1"+ge[7]+"0".repeat(9-ge[7].length))-1e9),this}toJson(I){const U=Number(this.seconds)*1e3;if(UDate.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 ge="Z";if(this.nanos>0){const _e=(this.nanos+1e9).toString().substring(1);_e.substring(3)==="000000"?ge="."+_e.substring(0,3)+"Z":_e.substring(6)==="000"?ge="."+_e.substring(0,6)+"Z":ge="."+_e+"Z"}return new Date(U).toISOString().replace(".000Z",ge)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return na.fromDate(new Date)}static fromDate(I){const U=I.getTime();return new na({seconds:P.q.parse(Math.floor(U/1e3)),nanos:U%1e3*1e6})}static fromBinary(I,U){return new na().fromBinary(I,U)}static fromJson(I,U){return new na().fromJson(I,U)}static fromJsonString(I,U){return new na().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(na,I,U)}}na.runtime=c.w,na.typeName="google.protobuf.Timestamp",na.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Ya extends se.v{constructor(I){super(),this.seconds=P.q.zero,this.nanos=0,c.w.util.initPartial(I,this)}fromJson(I,U){if(typeof I!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(I)}`);const ge=I.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(ge===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(I)}`);const _e=Number(ge[1]);if(_e>315576e6||_e<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(I)}`);if(this.seconds=P.q.parse(_e),typeof ge[2]=="string"){const Ye=ge[2]+"0".repeat(9-ge[2].length);this.nanos=parseInt(Ye),(_e<0||Object.is(_e,-0))&&(this.nanos=-this.nanos)}return this}toJson(I){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let U=this.seconds.toString();if(this.nanos!==0){let ge=Math.abs(this.nanos).toString();ge="0".repeat(9-ge.length)+ge,ge.substring(3)==="000000"?ge=ge.substring(0,3):ge.substring(6)==="000"&&(ge=ge.substring(0,6)),U+="."+ge,this.nanos<0&&Number(this.seconds)==0&&(U="-"+U)}return U+"s"}static fromBinary(I,U){return new Ya().fromBinary(I,U)}static fromJson(I,U){return new Ya().fromJson(I,U)}static fromJsonString(I,U){return new Ya().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Ya,I,U)}}Ya.runtime=c.w,Ya.typeName="google.protobuf.Duration",Ya.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);var eo=u(733);class bs extends se.v{constructor(I){super(),c.w.util.initPartial(I,this)}static fromBinary(I,U){return new bs().fromBinary(I,U)}static fromJson(I,U){return new bs().fromJson(I,U)}static fromJsonString(I,U){return new bs().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(bs,I,U)}}bs.runtime=c.w,bs.typeName="google.protobuf.Empty",bs.fields=c.w.util.newFieldList(()=>[]);class ys extends se.v{constructor(I){super(),this.paths=[],c.w.util.initPartial(I,this)}toJson(I){function U(ge){let _e=!1;const Ye=[];for(let Ke=0;Ke{if(ge.match(/_[0-9]?_/g)||ge.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+ge+'" is irreversible');return U(ge)}).join(",")}fromJson(I,U){if(typeof I!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+c.w.json.debug(I));if(I==="")return this;function ge(_e){if(_e.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const Ye=_e.replace(/[A-Z]/g,Ke=>"_"+Ke.toLowerCase());return Ye[0]==="_"?Ye.substring(1):Ye}return this.paths=I.split(",").map(ge),this}static fromBinary(I,U){return new ys().fromBinary(I,U)}static fromJson(I,U){return new ys().fromJson(I,U)}static fromJsonString(I,U){return new ys().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(ys,I,U)}}ys.runtime=c.w,ys.typeName="google.protobuf.FieldMask",ys.fields=c.w.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var Bs;(function(H){H[H.NULL_VALUE=0]="NULL_VALUE"})(Bs||(Bs={})),c.w.util.setEnumType(Bs,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class Ei extends se.v{constructor(I){super(),this.fields={},c.w.util.initPartial(I,this)}toJson(I){const U={};for(const[ge,_e]of Object.entries(this.fields))U[ge]=_e.toJson(I);return U}fromJson(I,U){if(typeof I!="object"||I==null||Array.isArray(I))throw new Error("cannot decode google.protobuf.Struct from JSON "+c.w.json.debug(I));for(const[ge,_e]of Object.entries(I))this.fields[ge]=Co.fromJson(_e);return this}static fromBinary(I,U){return new Ei().fromBinary(I,U)}static fromJson(I,U){return new Ei().fromJson(I,U)}static fromJsonString(I,U){return new Ei().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Ei,I,U)}}Ei.runtime=c.w,Ei.typeName="google.protobuf.Struct",Ei.fields=c.w.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Co}}]);class Co extends se.v{constructor(I){super(),this.kind={case:void 0},c.w.util.initPartial(I,this)}toJson(I){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({},I),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(I,U){switch(typeof I){case"number":this.kind={case:"numberValue",value:I};break;case"string":this.kind={case:"stringValue",value:I};break;case"boolean":this.kind={case:"boolValue",value:I};break;case"object":I===null?this.kind={case:"nullValue",value:Bs.NULL_VALUE}:Array.isArray(I)?this.kind={case:"listValue",value:Si.fromJson(I)}:this.kind={case:"structValue",value:Ei.fromJson(I)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+c.w.json.debug(I))}return this}static fromBinary(I,U){return new Co().fromBinary(I,U)}static fromJson(I,U){return new Co().fromJson(I,U)}static fromJsonString(I,U){return new Co().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Co,I,U)}}Co.runtime=c.w,Co.typeName="google.protobuf.Value",Co.fields=c.w.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:c.w.getEnumType(Bs),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:Ei,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:Si,oneof:"kind"}]);class Si extends se.v{constructor(I){super(),this.values=[],c.w.util.initPartial(I,this)}toJson(I){return this.values.map(U=>U.toJson())}fromJson(I,U){if(!Array.isArray(I))throw new Error("cannot decode google.protobuf.ListValue from JSON "+c.w.json.debug(I));for(let ge of I)this.values.push(Co.fromJson(ge));return this}static fromBinary(I,U){return new Si().fromBinary(I,U)}static fromJson(I,U){return new Si().fromJson(I,U)}static fromJsonString(I,U){return new Si().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Si,I,U)}}Si.runtime=c.w,Si.typeName="google.protobuf.ListValue",Si.fields=c.w.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Co,repeated:!0}]);var Jd=u(609);class Ti extends se.v{constructor(I){super(),this.value=0,c.w.util.initPartial(I,this)}toJson(I){return c.w.json.writeScalar(f.w.DOUBLE,this.value,!0)}fromJson(I,U){try{this.value=c.w.json.readScalar(f.w.DOUBLE,I)}catch(ge){let _e='cannot decode message google.protobuf.DoubleValue from JSON"';throw ge instanceof Error&&ge.message.length>0&&(_e+=`: ${ge.message}`),new Error(_e)}return this}static fromBinary(I,U){return new Ti().fromBinary(I,U)}static fromJson(I,U){return new Ti().fromJson(I,U)}static fromJsonString(I,U){return new Ti().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Ti,I,U)}}Ti.runtime=c.w,Ti.typeName="google.protobuf.DoubleValue",Ti.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Ti.fieldWrapper={wrapField(H){return new Ti({value:H})},unwrapField(H){return H.value}};class Sa extends se.v{constructor(I){super(),this.value=0,c.w.util.initPartial(I,this)}toJson(I){return c.w.json.writeScalar(f.w.FLOAT,this.value,!0)}fromJson(I,U){try{this.value=c.w.json.readScalar(f.w.FLOAT,I)}catch(ge){let _e='cannot decode message google.protobuf.FloatValue from JSON"';throw ge instanceof Error&&ge.message.length>0&&(_e+=`: ${ge.message}`),new Error(_e)}return this}static fromBinary(I,U){return new Sa().fromBinary(I,U)}static fromJson(I,U){return new Sa().fromJson(I,U)}static fromJsonString(I,U){return new Sa().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Sa,I,U)}}Sa.runtime=c.w,Sa.typeName="google.protobuf.FloatValue",Sa.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),Sa.fieldWrapper={wrapField(H){return new Sa({value:H})},unwrapField(H){return H.value}};class Lo extends se.v{constructor(I){super(),this.value=P.q.zero,c.w.util.initPartial(I,this)}toJson(I){return c.w.json.writeScalar(f.w.INT64,this.value,!0)}fromJson(I,U){try{this.value=c.w.json.readScalar(f.w.INT64,I)}catch(ge){let _e='cannot decode message google.protobuf.Int64Value from JSON"';throw ge instanceof Error&&ge.message.length>0&&(_e+=`: ${ge.message}`),new Error(_e)}return this}static fromBinary(I,U){return new Lo().fromBinary(I,U)}static fromJson(I,U){return new Lo().fromJson(I,U)}static fromJsonString(I,U){return new Lo().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Lo,I,U)}}Lo.runtime=c.w,Lo.typeName="google.protobuf.Int64Value",Lo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Lo.fieldWrapper={wrapField(H){return new Lo({value:H})},unwrapField(H){return H.value}};class to extends se.v{constructor(I){super(),this.value=P.q.zero,c.w.util.initPartial(I,this)}toJson(I){return c.w.json.writeScalar(f.w.UINT64,this.value,!0)}fromJson(I,U){try{this.value=c.w.json.readScalar(f.w.UINT64,I)}catch(ge){let _e='cannot decode message google.protobuf.UInt64Value from JSON"';throw ge instanceof Error&&ge.message.length>0&&(_e+=`: ${ge.message}`),new Error(_e)}return this}static fromBinary(I,U){return new to().fromBinary(I,U)}static fromJson(I,U){return new to().fromJson(I,U)}static fromJsonString(I,U){return new to().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(to,I,U)}}to.runtime=c.w,to.typeName="google.protobuf.UInt64Value",to.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),to.fieldWrapper={wrapField(H){return new to({value:H})},unwrapField(H){return H.value}};class Vr extends se.v{constructor(I){super(),this.value=0,c.w.util.initPartial(I,this)}toJson(I){return c.w.json.writeScalar(f.w.INT32,this.value,!0)}fromJson(I,U){try{this.value=c.w.json.readScalar(f.w.INT32,I)}catch(ge){let _e='cannot decode message google.protobuf.Int32Value from JSON"';throw ge instanceof Error&&ge.message.length>0&&(_e+=`: ${ge.message}`),new Error(_e)}return this}static fromBinary(I,U){return new Vr().fromBinary(I,U)}static fromJson(I,U){return new Vr().fromJson(I,U)}static fromJsonString(I,U){return new Vr().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Vr,I,U)}}Vr.runtime=c.w,Vr.typeName="google.protobuf.Int32Value",Vr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),Vr.fieldWrapper={wrapField(H){return new Vr({value:H})},unwrapField(H){return H.value}};class Fr extends se.v{constructor(I){super(),this.value=0,c.w.util.initPartial(I,this)}toJson(I){return c.w.json.writeScalar(f.w.UINT32,this.value,!0)}fromJson(I,U){try{this.value=c.w.json.readScalar(f.w.UINT32,I)}catch(ge){let _e='cannot decode message google.protobuf.UInt32Value from JSON"';throw ge instanceof Error&&ge.message.length>0&&(_e+=`: ${ge.message}`),new Error(_e)}return this}static fromBinary(I,U){return new Fr().fromBinary(I,U)}static fromJson(I,U){return new Fr().fromJson(I,U)}static fromJsonString(I,U){return new Fr().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Fr,I,U)}}Fr.runtime=c.w,Fr.typeName="google.protobuf.UInt32Value",Fr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Fr.fieldWrapper={wrapField(H){return new Fr({value:H})},unwrapField(H){return H.value}};class li extends se.v{constructor(I){super(),this.value=!1,c.w.util.initPartial(I,this)}toJson(I){return c.w.json.writeScalar(f.w.BOOL,this.value,!0)}fromJson(I,U){try{this.value=c.w.json.readScalar(f.w.BOOL,I)}catch(ge){let _e='cannot decode message google.protobuf.BoolValue from JSON"';throw ge instanceof Error&&ge.message.length>0&&(_e+=`: ${ge.message}`),new Error(_e)}return this}static fromBinary(I,U){return new li().fromBinary(I,U)}static fromJson(I,U){return new li().fromJson(I,U)}static fromJsonString(I,U){return new li().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(li,I,U)}}li.runtime=c.w,li.typeName="google.protobuf.BoolValue",li.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),li.fieldWrapper={wrapField(H){return new li({value:H})},unwrapField(H){return H.value}};class ra extends se.v{constructor(I){super(),this.value="",c.w.util.initPartial(I,this)}toJson(I){return c.w.json.writeScalar(f.w.STRING,this.value,!0)}fromJson(I,U){try{this.value=c.w.json.readScalar(f.w.STRING,I)}catch(ge){let _e='cannot decode message google.protobuf.StringValue from JSON"';throw ge instanceof Error&&ge.message.length>0&&(_e+=`: ${ge.message}`),new Error(_e)}return this}static fromBinary(I,U){return new ra().fromBinary(I,U)}static fromJson(I,U){return new ra().fromJson(I,U)}static fromJsonString(I,U){return new ra().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(ra,I,U)}}ra.runtime=c.w,ra.typeName="google.protobuf.StringValue",ra.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),ra.fieldWrapper={wrapField(H){return new ra({value:H})},unwrapField(H){return H.value}};class _o extends se.v{constructor(I){super(),this.value=new Uint8Array(0),c.w.util.initPartial(I,this)}toJson(I){return c.w.json.writeScalar(f.w.BYTES,this.value,!0)}fromJson(I,U){try{this.value=c.w.json.readScalar(f.w.BYTES,I)}catch(ge){let _e='cannot decode message google.protobuf.BytesValue from JSON"';throw ge instanceof Error&&ge.message.length>0&&(_e+=`: ${ge.message}`),new Error(_e)}return this}static fromBinary(I,U){return new _o().fromBinary(I,U)}static fromJson(I,U){return new _o().fromJson(I,U)}static fromJsonString(I,U){return new _o().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(_o,I,U)}}_o.runtime=c.w,_o.typeName="google.protobuf.BytesValue",_o.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),_o.fieldWrapper={wrapField(H){return new _o({value:H})},unwrapField(H){return H.value}};const Pn=[eo.I,Ya,bs,ys,Ei,Co,Si,na,Ya,Ti,Sa,Lo,Vr,Fr,to,li,ra,_o],ri=[(0,Jd.V3)(Bs)];function ef(H,I=!0){const U=H instanceof Uint8Array||H instanceof le?Kt(H):H,ge={},_e={},Ye={};if(I){for(const Ke of Pn)_e[Ke.typeName]=Ke;for(const Ke of ri)ge[Ke.typeName]=Ke}return{findEnum(Ke){const kt=ge[Ke];if(kt)return kt;const ut=U.enums.get(Ke);if(!ut)return;const Wt=(ut.file.syntax=="proto3"?c.w:x).makeEnumType(Ke,ut.values.map(Fn=>({no:Fn.number,name:Fn.name,localName:(0,E.r1)(Fn)})),{});return ge[Ke]=Wt,Wt},findMessage(Ke){const kt=_e[Ke];if(kt)return kt;const ut=U.messages.get(Ke);if(!ut)return;const It=ut.file.syntax=="proto3"?c.w:x,Wt=[],Fn=It.makeMessageType(Ke,()=>Wt,{localName:(0,E.r1)(ut)});_e[Ke]=Fn;for(const Jr of ut.fields){const Wn=zc(Jr,this);Wt.push(Wn)}return Fn},findService(Ke){const kt=Ye[Ke];if(kt)return kt;const ut=U.services.get(Ke);if(!ut)return;const It={};for(const Wt of ut.methods){const Fn=this.findMessage(Wt.input.typeName),Jr=this.findMessage(Wt.output.typeName);(0,k.hu)(Fn,`message "${Wt.input.typeName}" for ${Wt.toString()} not found`),(0,k.hu)(Jr,`output message "${Wt.output.typeName}" for ${Wt.toString()} not found`),It[(0,E.r1)(Wt)]={name:Wt.name,I:Fn,O:Jr,kind:Wt.methodKind,idempotency:Wt.idempotency}}return Ye[Ke]={typeName:ut.typeName,methods:It}}}}function zc(H,I){switch(H.fieldKind){case"map":return Ta(H,I);case"message":return Zu(H,I);case"enum":{const U=Vc(H,I);return U.default=H.getDefaultValue(),U}case"scalar":{const U=ru(H);return U.default=H.getDefaultValue(),U}}}function Ta(H,I){const U={kind:"map",no:H.number,name:H.name,jsonName:H.jsonName,K:H.mapKey};if(H.mapValue.message){const ge=I.findMessage(H.mapValue.message.typeName);return(0,k.hu)(ge,`message "${H.mapValue.message.typeName}" for ${H.toString()} not found`),Object.assign(Object.assign({},U),{V:{kind:"message",T:ge}})}if(H.mapValue.enum){const ge=I.findEnum(H.mapValue.enum.typeName);return(0,k.hu)(ge,`enum "${H.mapValue.enum.typeName}" for ${H.toString()} not found`),Object.assign(Object.assign({},U),{V:{kind:"enum",T:ge}})}return Object.assign(Object.assign({},U),{V:{kind:"scalar",T:H.mapValue.scalar}})}function ru(H){const I=H.longType==f.p.STRING?{L:f.p.STRING}:{},U=Object.assign({kind:"scalar",no:H.number,name:H.name,jsonName:H.jsonName,T:H.scalar},I);return H.repeated?Object.assign(Object.assign({},U),{repeated:!0,packed:H.packed,oneof:void 0,T:H.scalar}):H.oneof?Object.assign(Object.assign({},U),{oneof:H.oneof.name}):H.optional?Object.assign(Object.assign({},U),{opt:!0}):U}function Zu(H,I){const U=I.findMessage(H.message.typeName);(0,k.hu)(U,`message "${H.message.typeName}" for ${H.toString()} not found`);const ge={kind:"message",no:H.number,name:H.name,jsonName:H.jsonName,T:U,delimited:H.proto.type==xe.GROUP};return H.repeated?Object.assign(Object.assign({},ge),{repeated:!0,packed:H.packed,oneof:void 0}):H.oneof?Object.assign(Object.assign({},ge),{oneof:H.oneof.name}):H.optional?Object.assign(Object.assign({},ge),{opt:!0}):ge}function Vc(H,I){const U=I.findEnum(H.enum.typeName);(0,k.hu)(U,`enum "${H.enum.typeName}" for ${H.toString()} not found`);const ge={kind:"enum",no:H.number,name:H.name,jsonName:H.jsonName,T:U};return H.repeated?Object.assign(Object.assign({},ge),{repeated:!0,packed:H.packed,oneof:void 0}):H.oneof?Object.assign(Object.assign({},ge),{oneof:H.oneof.name}):H.optional?Object.assign(Object.assign({},ge),{opt:!0}):ge}function pl(H){if(!(H instanceof se.v))return H;const I=H.getType(),U={};for(const ge of I.fields.byMember()){const _e=H[ge.localName];let Ye;if(ge.repeated)Ye=_e.map(Ke=>Wc(Ke));else if(ge.kind=="map"){Ye={};for(const[Ke,kt]of Object.entries(_e))Ye[Ke]=Wc(kt)}else ge.kind=="oneof"?Ye=ge.findField(_e.case)?{case:_e.case,value:Wc(_e.value)}:{case:void 0}:Ye=Wc(_e);U[ge.localName]=Ye}return U}function Wc(H){if(H===void 0)return H;if(H instanceof se.v)return pl(H);if(H instanceof Uint8Array){const I=new Uint8Array(H.byteLength);return I.set(H),I}return H}class go extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new go().fromBinary(I,U)}static fromJson(I,U){return new go().fromJson(I,U)}static fromJsonString(I,U){return new go().fromJsonString(I,U)}static equals(I,U){return x.util.equals(go,I,U)}}go.runtime=x,go.typeName="google.protobuf.compiler.Version",go.fields=x.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 Ga extends se.v{constructor(I){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new Ga().fromBinary(I,U)}static fromJson(I,U){return new Ga().fromJson(I,U)}static fromJsonString(I,U){return new Ga().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Ga,I,U)}}Ga.runtime=x,Ga.typeName="google.protobuf.compiler.CodeGeneratorRequest",Ga.fields=x.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:ve,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:ve,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:go,opt:!0}]);class Mo extends se.v{constructor(I){super(),this.file=[],x.util.initPartial(I,this)}static fromBinary(I,U){return new Mo().fromBinary(I,U)}static fromJson(I,U){return new Mo().fromJson(I,U)}static fromJsonString(I,U){return new Mo().fromJsonString(I,U)}static equals(I,U){return x.util.equals(Mo,I,U)}}Mo.runtime=x,Mo.typeName="google.protobuf.compiler.CodeGeneratorResponse",Mo.fields=x.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:oa,repeated:!0}]);var ia;(function(H){H[H.NONE=0]="NONE",H[H.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",H[H.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(ia||(ia={})),x.util.setEnumType(ia,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class oa extends se.v{constructor(I){super(),x.util.initPartial(I,this)}static fromBinary(I,U){return new oa().fromBinary(I,U)}static fromJson(I,U){return new oa().fromJson(I,U)}static fromJsonString(I,U){return new oa().fromJsonString(I,U)}static equals(I,U){return x.util.equals(oa,I,U)}}oa.runtime=x,oa.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",oa.fields=x.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:jt,opt:!0}]);class Ao extends se.v{constructor(I){super(),this.fileName="",c.w.util.initPartial(I,this)}static fromBinary(I,U){return new Ao().fromBinary(I,U)}static fromJson(I,U){return new Ao().fromJson(I,U)}static fromJsonString(I,U){return new Ao().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Ao,I,U)}}Ao.runtime=c.w,Ao.typeName="google.protobuf.SourceContext",Ao.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var qa;(function(H){H[H.PROTO2=0]="PROTO2",H[H.PROTO3=1]="PROTO3",H[H.EDITIONS=2]="EDITIONS"})(qa||(qa={})),c.w.util.setEnumType(qa,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class hl extends se.v{constructor(I){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=qa.PROTO2,this.edition="",c.w.util.initPartial(I,this)}static fromBinary(I,U){return new hl().fromBinary(I,U)}static fromJson(I,U){return new hl().fromJson(I,U)}static fromJsonString(I,U){return new hl().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(hl,I,U)}}hl.runtime=c.w,hl.typeName="google.protobuf.Type",hl.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Qn,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:Ro,repeated:!0},{no:5,name:"source_context",kind:"message",T:Ao},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(qa)},{no:7,name:"edition",kind:"scalar",T:9}]);class Qn extends se.v{constructor(I){super(),this.kind=mr.TYPE_UNKNOWN,this.cardinality=Hc.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",c.w.util.initPartial(I,this)}static fromBinary(I,U){return new Qn().fromBinary(I,U)}static fromJson(I,U){return new Qn().fromJson(I,U)}static fromJsonString(I,U){return new Qn().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Qn,I,U)}}Qn.runtime=c.w,Qn.typeName="google.protobuf.Field",Qn.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType(mr)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Hc)},{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:Ro,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var mr;(function(H){H[H.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",H[H.TYPE_DOUBLE=1]="TYPE_DOUBLE",H[H.TYPE_FLOAT=2]="TYPE_FLOAT",H[H.TYPE_INT64=3]="TYPE_INT64",H[H.TYPE_UINT64=4]="TYPE_UINT64",H[H.TYPE_INT32=5]="TYPE_INT32",H[H.TYPE_FIXED64=6]="TYPE_FIXED64",H[H.TYPE_FIXED32=7]="TYPE_FIXED32",H[H.TYPE_BOOL=8]="TYPE_BOOL",H[H.TYPE_STRING=9]="TYPE_STRING",H[H.TYPE_GROUP=10]="TYPE_GROUP",H[H.TYPE_MESSAGE=11]="TYPE_MESSAGE",H[H.TYPE_BYTES=12]="TYPE_BYTES",H[H.TYPE_UINT32=13]="TYPE_UINT32",H[H.TYPE_ENUM=14]="TYPE_ENUM",H[H.TYPE_SFIXED32=15]="TYPE_SFIXED32",H[H.TYPE_SFIXED64=16]="TYPE_SFIXED64",H[H.TYPE_SINT32=17]="TYPE_SINT32",H[H.TYPE_SINT64=18]="TYPE_SINT64"})(mr||(mr={})),c.w.util.setEnumType(mr,"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 Hc;(function(H){H[H.UNKNOWN=0]="UNKNOWN",H[H.OPTIONAL=1]="OPTIONAL",H[H.REQUIRED=2]="REQUIRED",H[H.REPEATED=3]="REPEATED"})(Hc||(Hc={})),c.w.util.setEnumType(Hc,"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 ml extends se.v{constructor(I){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=qa.PROTO2,this.edition="",c.w.util.initPartial(I,this)}static fromBinary(I,U){return new ml().fromBinary(I,U)}static fromJson(I,U){return new ml().fromJson(I,U)}static fromJsonString(I,U){return new ml().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(ml,I,U)}}ml.runtime=c.w,ml.typeName="google.protobuf.Enum",ml.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:br,repeated:!0},{no:3,name:"options",kind:"message",T:Ro,repeated:!0},{no:4,name:"source_context",kind:"message",T:Ao},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(qa)},{no:6,name:"edition",kind:"scalar",T:9}]);class br extends se.v{constructor(I){super(),this.name="",this.number=0,this.options=[],c.w.util.initPartial(I,this)}static fromBinary(I,U){return new br().fromBinary(I,U)}static fromJson(I,U){return new br().fromJson(I,U)}static fromJsonString(I,U){return new br().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(br,I,U)}}br.runtime=c.w,br.typeName="google.protobuf.EnumValue",br.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:Ro,repeated:!0}]);class Ro extends se.v{constructor(I){super(),this.name="",c.w.util.initPartial(I,this)}static fromBinary(I,U){return new Ro().fromBinary(I,U)}static fromJson(I,U){return new Ro().fromJson(I,U)}static fromJsonString(I,U){return new Ro().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Ro,I,U)}}Ro.runtime=c.w,Ro.typeName="google.protobuf.Option",Ro.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:eo.I}]);class vs extends se.v{constructor(I){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=qa.PROTO2,c.w.util.initPartial(I,this)}static fromBinary(I,U){return new vs().fromBinary(I,U)}static fromJson(I,U){return new vs().fromJson(I,U)}static fromJsonString(I,U){return new vs().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(vs,I,U)}}vs.runtime=c.w,vs.typeName="google.protobuf.Api",vs.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:Za,repeated:!0},{no:3,name:"options",kind:"message",T:Ro,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:Ao},{no:6,name:"mixins",kind:"message",T:wa,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(qa)}]);class Za extends se.v{constructor(I){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=qa.PROTO2,c.w.util.initPartial(I,this)}static fromBinary(I,U){return new Za().fromBinary(I,U)}static fromJson(I,U){return new Za().fromJson(I,U)}static fromJsonString(I,U){return new Za().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(Za,I,U)}}Za.runtime=c.w,Za.typeName="google.protobuf.Method",Za.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:Ro,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(qa)}]);class wa extends se.v{constructor(I){super(),this.name="",this.root="",c.w.util.initPartial(I,this)}static fromBinary(I,U){return new wa().fromBinary(I,U)}static fromJson(I,U){return new wa().fromJson(I,U)}static fromJsonString(I,U){return new wa().fromJsonString(I,U)}static equals(I,U){return c.w.util.equals(wa,I,U)}}wa.runtime=c.w,wa.typeName="google.protobuf.Mixin",wa.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(f){return this.getType().runtime.util.equals(this.getType(),this,f)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(f,m){const g=this.getType(),v=g.runtime.bin,S=v.makeReadOptions(m);return v.readMessage(this,S.readerFactory(f),f.byteLength,S),this}fromJson(f,m){const g=this.getType(),v=g.runtime.json,S=v.makeReadOptions(m);return v.readMessage(g,f,S,this),this}fromJsonString(f,m){let g;try{g=JSON.parse(f)}catch(v){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${v instanceof Error?v.message:String(v)}`)}return this.fromJson(g,m)}toBinary(f){const m=this.getType(),g=m.runtime.bin,v=g.makeWriteOptions(f),S=v.writerFactory();return g.writeMessage(this,S,v),S.finish()}toJson(f){const m=this.getType(),g=m.runtime.json,v=g.makeWriteOptions(f);return g.writeMessage(this,v)}toJsonString(f){var m;const g=this.toJson(f);return JSON.stringify(g,null,(m=f==null?void 0:f.prettySpaces)!==null&&m!==void 0?m:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}},120:(s,l,u)=>{u.d(l,{E_:()=>E,fp:()=>O,hu:()=>c,ug:()=>S});function c(w,k){if(!w)throw new Error(k)}const d=34028234663852886e22,f=-34028234663852886e22,m=4294967295,g=2147483647,v=-2147483648;function S(w){if(typeof w!="number")throw new Error("invalid int 32: "+typeof w);if(!Number.isInteger(w)||w>g||wm||w<0)throw new Error("invalid uint 32: "+w)}function E(w){if(typeof w!="number")throw new Error("invalid float 32: "+typeof w);if(Number.isFinite(w)&&(w>d||w{u.d(l,{Jj:()=>G,NN:()=>W,gQ:()=>P,gY:()=>A,oQ:()=>V});var c=u(79),d=u(561),f=u(465),m=u(432),g=u(781),v=u(120);const S=Symbol("@bufbuild/protobuf/unknown-fields"),O={readUnknownFields:!0,readerFactory:j=>new c.oP(j)},E={writeUnknownFields:!0,writerFactory:()=>new c.Lt};function w(j){return j?Object.assign(Object.assign({},O),j):O}function k(j){return j?Object.assign(Object.assign({},E),j):E}function A(){return{makeReadOptions:w,makeWriteOptions:k,listUnknownFields(j){var z;return(z=j[S])!==null&&z!==void 0?z:[]},discardUnknownFields(j){delete j[S]},writeUnknownFields(j,z){const Z=j[S];if(Z)for(const q of Z)z.tag(q.no,q.wireType).raw(q.data)},onUnknownField(j,z,X,Z){const q=j;Array.isArray(q[S])||(q[S]=[]),q[S].push({no:z,wireType:X,data:Z})},readMessage(j,z,X,Z,q){const te=j.getType(),Q=q?z.len:z.pos+X;let se,he;for(;z.pos0&&(ke=F),ve){let qe=le[ue];if(he==c.TD.LengthDelimited&&we!=f.w.STRING&&we!=f.w.BYTES){let xe=z.uint32()+z.pos;for(;z.pos{u.d(l,{V3:()=>f,be:()=>g,ut:()=>v,zg:()=>m});var c=u(120);const d=Symbol("@bufbuild/protobuf/enum-type");function f(O){const E=O[d];return(0,c.hu)(E,"missing enum type on enum object"),E}function m(O,E,w,k){O[d]=g(E,w.map(A=>({no:A.no,name:A.name,localName:O[A.no]})))}function g(O,E,w){const k=Object.create(null),A=Object.create(null),C=[];for(const x of E){const F=S(x);C.push(F),k[x.name]=F,A[x.no]=F}return{typeName:O,values:C,findName(x){return k[x]},findNumber(x){return A[x]}}}function v(O,E,w){const k={};for(const A of E){const C=S(A);k[C.localName]=C.no,k[C.no]=C.localName}return m(k,O,E),k}function S(O){return"localName"in O?O:Object.assign(Object.assign({},O),{localName:O.name})}},501:(s,l,u)=>{u.d(l,{i:()=>c});class c{constructor(f,m){this._fields=f,this._normalizer=m}findJsonName(f){if(!this.jsonNames){const m={};for(const g of this.list())m[g.jsonName]=m[g.name]=g;this.jsonNames=m}return this.jsonNames[f]}find(f){if(!this.numbers){const m={};for(const g of this.list())m[g.no]=g;this.numbers=m}return this.numbers[f]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((f,m)=>f.no-m.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const f=this.members;let m;for(const g of this.list())g.oneof?g.oneof!==m&&(m=g.oneof,f.push(m)):f.push(g)}return this.members}}},432:(s,l,u)=>{u.d(l,{E:()=>f,w:()=>m});var c=u(561),d=u(465);function f(v,S){return S instanceof c.v||!v.fieldWrapper?S:v.fieldWrapper.wrapField(S)}function m(v){if(v.fieldKind==="message"&&!v.repeated&&v.oneof==null)return g[v.message.typeName]}const g={"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:()=>f});var c=u(504),d=u(120);class f{constructor(g){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=g,this.localName=(0,c.uA)(g)}addField(g){(0,d.hu)(g.oneof===this,`field ${g.name} not one of ${this.name}`),this.fields.push(g)}findField(g){if(!this._lookup){this._lookup=Object.create(null);for(let v=0;v{u.d(l,{b:()=>w});var c=u(561),d=u(465),f=u(120),m=u(210),g=u(236);const v={ignoreUnknownFields:!1},S={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function O(M){return M?Object.assign(Object.assign({},v),M):v}function E(M){return M?Object.assign(Object.assign({},S),M):S}function w(M){const P=M(x,F);return{makeReadOptions:O,makeWriteOptions:E,readMessage(V,W,G,j){if(W==null||Array.isArray(W)||typeof W!="object")throw new Error(`cannot decode message ${V.typeName} from JSON: ${this.debug(W)}`);j=j??new V;const z={};for(const[X,Z]of Object.entries(W)){const q=V.fields.findJsonName(X);if(!q){if(!G.ignoreUnknownFields)throw new Error(`cannot decode message ${V.typeName} from JSON: key "${X}" is unknown`);continue}let te=q.localName,Q=j;if(q.oneof){if(Z===null&&q.kind=="scalar")continue;const se=z[q.oneof.localName];if(se)throw new Error(`cannot decode message ${V.typeName} from JSON: multiple keys for oneof "${q.oneof.name}" present: "${se}", "${X}"`);z[q.oneof.localName]=X,Q=Q[q.oneof.localName]={case:te},te="value"}if(q.repeated){if(Z===null)continue;if(!Array.isArray(Z))throw new Error(`cannot decode field ${V.typeName}.${q.name} from JSON: ${this.debug(Z)}`);const se=Q[te];for(const he of Z){if(he===null)throw new Error(`cannot decode field ${V.typeName}.${q.name} from JSON: ${this.debug(he)}`);let J;switch(q.kind){case"message":J=q.T.fromJson(he,G);break;case"enum":if(J=C(q.T,he,G.ignoreUnknownFields),J===void 0)continue;break;case"scalar":try{J=A(q.T,he,q.L)}catch(le){let ve=`cannot decode field ${V.typeName}.${q.name} from JSON: ${this.debug(he)}`;throw le instanceof Error&&le.message.length>0&&(ve+=`: ${le.message}`),new Error(ve)}break}se.push(J)}}else if(q.kind=="map"){if(Z===null)continue;if(Array.isArray(Z)||typeof Z!="object")throw new Error(`cannot decode field ${V.typeName}.${q.name} from JSON: ${this.debug(Z)}`);const se=Q[te];for(const[he,J]of Object.entries(Z)){if(J===null)throw new Error(`cannot decode field ${V.typeName}.${q.name} from JSON: map value null`);let le;switch(q.V.kind){case"message":le=q.V.T.fromJson(J,G);break;case"enum":if(le=C(q.V.T,J,G.ignoreUnknownFields),le===void 0)continue;break;case"scalar":try{le=A(q.V.T,J,d.p.BIGINT)}catch(ve){let ue=`cannot decode map value for field ${V.typeName}.${q.name} from JSON: ${this.debug(Z)}`;throw ve instanceof Error&&ve.message.length>0&&(ue+=`: ${ve.message}`),new Error(ue)}break}try{se[A(q.K,q.K==d.w.BOOL?he=="true"?!0:he=="false"?!1:he:he,d.p.BIGINT).toString()]=le}catch(ve){let ue=`cannot decode map key for field ${V.typeName}.${q.name} from JSON: ${this.debug(Z)}`;throw ve instanceof Error&&ve.message.length>0&&(ue+=`: ${ve.message}`),new Error(ue)}}}else switch(q.kind){case"message":const se=q.T;if(Z===null&&se.typeName!="google.protobuf.Value"){if(q.oneof)throw new Error(`cannot decode field ${V.typeName}.${q.name} from JSON: null is invalid for oneof field "${X}"`);continue}Q[te]instanceof c.v?Q[te].fromJson(Z,G):(Q[te]=se.fromJson(Z,G),se.fieldWrapper&&!q.oneof&&(Q[te]=se.fieldWrapper.unwrapField(Q[te])));break;case"enum":const he=C(q.T,Z,G.ignoreUnknownFields);he!==void 0&&(Q[te]=he);break;case"scalar":try{Q[te]=A(q.T,Z,q.L)}catch(J){let le=`cannot decode field ${V.typeName}.${q.name} from JSON: ${this.debug(Z)}`;throw J instanceof Error&&J.message.length>0&&(le+=`: ${J.message}`),new Error(le)}break}}return j},writeMessage(V,W){const G=V.getType(),j={};let z;try{for(const X of G.fields.byMember()){let Z;if(X.kind=="oneof"){const q=V[X.localName];if(q.value===void 0)continue;if(z=X.findField(q.case),!z)throw"oneof case not found: "+q.case;Z=P(z,q.value,W)}else z=X,Z=P(z,V[z.localName],W);Z!==void 0&&(j[W.useProtoFieldName?z.name:z.jsonName]=Z)}}catch(X){const Z=z?`cannot encode field ${G.typeName}.${z.name} to JSON`:`cannot encode message ${G.typeName} to JSON`,q=X instanceof Error?X.message:String(X);throw new Error(Z+(q.length>0?`: ${q}`:""))}return j},readScalar:A,writeScalar:F,debug:k}}function k(M){if(M===null)return"null";switch(typeof M){case"object":return Array.isArray(M)?"array":"object";case"string":return M.length>100?"string":`"${M.split('"').join('\\"')}"`;default:return String(M)}}function A(M,P,V){switch(M){case d.w.DOUBLE:case d.w.FLOAT:if(P===null)return 0;if(P==="NaN")return Number.NaN;if(P==="Infinity")return Number.POSITIVE_INFINITY;if(P==="-Infinity")return Number.NEGATIVE_INFINITY;if(P===""||typeof P=="string"&&P.trim().length!==P.length||typeof P!="string"&&typeof P!="number")break;const W=Number(P);if(Number.isNaN(W)||!Number.isFinite(W))break;return M==d.w.FLOAT&&(0,f.E_)(W),W;case d.w.INT32:case d.w.FIXED32:case d.w.SFIXED32:case d.w.SINT32:case d.w.UINT32:if(P===null)return 0;let G;if(typeof P=="number"?G=P:typeof P=="string"&&P.length>0&&P.trim().length===P.length&&(G=Number(P)),G===void 0)break;return M==d.w.UINT32?(0,f.fp)(G):(0,f.ug)(G),G;case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:if(P===null)return m.q.zero;if(typeof P!="number"&&typeof P!="string")break;const j=m.q.parse(P);return V?j.toString():j;case d.w.FIXED64:case d.w.UINT64:if(P===null)return m.q.zero;if(typeof P!="number"&&typeof P!="string")break;const z=m.q.uParse(P);return V?z.toString():z;case d.w.BOOL:if(P===null)return!1;if(typeof P!="boolean")break;return P;case d.w.STRING:if(P===null)return"";if(typeof P!="string")break;try{encodeURIComponent(P)}catch{throw new Error("invalid UTF8")}return P;case d.w.BYTES:if(P===null||P==="")return new Uint8Array(0);if(typeof P!="string")break;return g.W.dec(P)}throw new Error}function C(M,P,V){if(P===null)return 0;switch(typeof P){case"number":if(Number.isInteger(P))return P;break;case"string":const W=M.findName(P);if(W||V)return W==null?void 0:W.no;break}throw new Error(`cannot decode enum ${M.typeName} from JSON: ${k(P)}`)}function x(M,P,V,W){var G;if(P===void 0)return P;if(P===0&&!V)return;if(W)return P;if(M.typeName=="google.protobuf.NullValue")return null;const j=M.findNumber(P);return(G=j==null?void 0:j.name)!==null&&G!==void 0?G:P}function F(M,P,V){if(P!==void 0)switch(M){case d.w.INT32:case d.w.SFIXED32:case d.w.SINT32:case d.w.FIXED32:case d.w.UINT32:return(0,f.hu)(typeof P=="number"),P!=0||V?P:void 0;case d.w.FLOAT:case d.w.DOUBLE:return(0,f.hu)(typeof P=="number"),Number.isNaN(P)?"NaN":P===Number.POSITIVE_INFINITY?"Infinity":P===Number.NEGATIVE_INFINITY?"-Infinity":P!==0||V?P:void 0;case d.w.STRING:return(0,f.hu)(typeof P=="string"),P.length>0||V?P:void 0;case d.w.BOOL:return(0,f.hu)(typeof P=="boolean"),P||V?P:void 0;case d.w.UINT64:case d.w.FIXED64:case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:return(0,f.hu)(typeof P=="bigint"||typeof P=="string"||typeof P=="number"),V||P!=0?P.toString(10):void 0;case d.w.BYTES:return(0,f.hu)(P instanceof Uint8Array),V||P.byteLength>0?g.W.enc(P):void 0}}},504:(s,l,u)=>{u.d(l,{GD:()=>x,Rz:()=>d,Sm:()=>g,ll:()=>C,r1:()=>c,uA:()=>f,x1:()=>m});function c(F){switch(F.kind){case"field":return d(F.name,F.oneof!==void 0);case"oneof":return f(F.name);case"enum":case"message":case"service":{const M=F.file.proto.package,P=M===void 0?0:M.length+1,V=F.typeName.substring(P).replace(/\./g,"_");return C(x(V))}case"enum_value":{const M=F.parent.sharedPrefix;if(M===void 0)return F.name;const P=F.name.substring(M.length);return C(P)}case"rpc":{let M=F.name;return M.length==0?M:(M=M[0].toLowerCase()+M.substring(1),C(M))}}}function d(F,M){const P=S(F);return M?P:C(A(P))}function f(F){return d(F,!1)}const m=S;function g(F,M){const P=v(F)+"_";for(const V of M){if(!V.toLowerCase().startsWith(P))return;const W=V.substring(P.length);if(W.length==0||/^\d/.test(W))return}return P}function v(F){return(F.substring(0,1)+F.substring(1).replace(/[A-Z]/g,M=>"_"+M)).toLowerCase()}function S(F){let M=!1;const P=[];for(let V=0;V`${F}$`,A=F=>w.has(F)?k(F):F,C=F=>E.has(F)?k(F):F,x=F=>O.has(F)?k(F):F},493:(s,l,u)=>{u.d(l,{F:()=>m});var c=u(609),d=u(561);function f(g,v,S,O){var E;const w=(E=O==null?void 0:O.localName)!==null&&E!==void 0?E:v.substring(v.lastIndexOf(".")+1),k={[w]:function(A){g.util.initFields(this),g.util.initPartial(A,this)}}[w];return Object.setPrototypeOf(k.prototype,new d.v),Object.assign(k,{runtime:g,typeName:v,fields:g.util.newFieldList(S),fromBinary(A,C){return new k().fromBinary(A,C)},fromJson(A,C){return new k().fromJson(A,C)},fromJsonString(A,C){return new k().fromJsonString(A,C)},equals(A,C){return g.util.equals(k,A,C)}}),k}function m(g,v,S,O){return{syntax:g,json:v,bin:S,util:O,makeMessageType(E,w,k){return f(this,E,w,k)},makeEnum:c.ut,makeEnumType:c.be,getEnumType:c.V3}}},781:(s,l,u)=>{u.d(l,{AA:()=>m,T1:()=>v,kY:()=>g});var c=u(465),d=u(79),f=u(210);function m(S,O,E){if(O===E)return!0;if(S==c.w.BYTES){if(!(O instanceof Uint8Array)||!(E instanceof Uint8Array)||O.length!==E.length)return!1;for(let w=0;w{u.d(l,{f:()=>g});var c=u(609),d=u(561),f=u(465),m=u(781);function g(){return{setEnumType:c.zg,initPartial(O,E){if(O===void 0)return;const w=E.getType();for(const k of w.fields.byMember()){const A=k.localName,C=E,x=O;if(x[A]!==void 0)switch(k.kind){case"oneof":const F=x[A].case;if(F===void 0)continue;const M=k.findField(F);let P=x[A].value;M&&M.kind=="message"&&!(P instanceof M.T)?P=new M.T(P):M&&M.kind==="scalar"&&M.T===f.w.BYTES&&(P=S(P)),C[A]={case:F,value:P};break;case"scalar":case"enum":let V=x[A];k.T===f.w.BYTES&&(V=k.repeated?V.map(S):S(V)),C[A]=V;break;case"map":switch(k.V.kind){case"scalar":case"enum":if(k.V.T===f.w.BYTES)for(const[j,z]of Object.entries(x[A]))C[A][j]=S(z);else Object.assign(C[A],x[A]);break;case"message":const G=k.V.T;for(const j of Object.keys(x[A])){let z=x[A][j];G.fieldWrapper||(z=new G(z)),C[A][j]=z}break}break;case"message":const W=k.T;if(k.repeated)C[A]=x[A].map(G=>G instanceof W?G:new W(G));else if(x[A]!==void 0){const G=x[A];W.fieldWrapper?W.typeName==="google.protobuf.BytesValue"?C[A]=S(G):C[A]=G:C[A]=G instanceof W?G:new W(G)}break}}},equals(O,E,w){return E===w?!0:!E||!w?!1:O.fields.byMember().every(k=>{const A=E[k.localName],C=w[k.localName];if(k.repeated){if(A.length!==C.length)return!1;switch(k.kind){case"message":return A.every((x,F)=>k.T.equals(x,C[F]));case"scalar":return A.every((x,F)=>(0,m.AA)(k.T,x,C[F]));case"enum":return A.every((x,F)=>(0,m.AA)(f.w.INT32,x,C[F]))}throw new Error(`repeated cannot contain ${k.kind}`)}switch(k.kind){case"message":return k.T.equals(A,C);case"enum":return(0,m.AA)(f.w.INT32,A,C);case"scalar":return(0,m.AA)(k.T,A,C);case"oneof":if(A.case!==C.case)return!1;const x=k.findField(A.case);if(x===void 0)return!0;switch(x.kind){case"message":return x.T.equals(A.value,C.value);case"enum":return(0,m.AA)(f.w.INT32,A.value,C.value);case"scalar":return(0,m.AA)(x.T,A.value,C.value)}throw new Error(`oneof cannot contain ${x.kind}`);case"map":const F=Object.keys(A).concat(Object.keys(C));switch(k.V.kind){case"message":const M=k.V.T;return F.every(V=>M.equals(A[V],C[V]));case"enum":return F.every(V=>(0,m.AA)(f.w.INT32,A[V],C[V]));case"scalar":const P=k.V.T;return F.every(V=>(0,m.AA)(P,A[V],C[V]))}break}})},clone(O){const E=O.getType(),w=new E,k=w;for(const A of E.fields.byMember()){const C=O[A.localName];let x;if(A.repeated)x=C.map(v);else if(A.kind=="map"){x=k[A.localName];for(const[F,M]of Object.entries(C))x[F]=v(M)}else A.kind=="oneof"?x=A.findField(C.case)?{case:C.case,value:v(C.value)}:{case:void 0}:x=v(C);k[A.localName]=x}return w}}}function v(O){if(O===void 0)return O;if(O instanceof d.v)return O.clone();if(O instanceof Uint8Array){const E=new Uint8Array(O.byteLength);return E.set(O),E}return O}function S(O){return O instanceof Uint8Array?O:new Uint8Array(O)}},236:(s,l,u)=>{u.d(l,{W:()=>f});let c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];for(let m=0;m>4,w=E,O=2;break;case 2:v[S++]=(w&15)<<4|(E&60)>>2,w=E,O=3;break;case 3:v[S++]=(w&3)<<6|E,O=0;break}}if(O==1)throw Error("invalid base64 string.");return v.subarray(0,S)},enc(m){let g="",v=0,S,O=0;for(let E=0;E>2],O=(S&3)<<4,v=1;break;case 1:g+=c[O|S>>4],O=(S&15)<<2,v=2;break;case 2:g+=c[O|S>>6],g+=c[S&63],v=0;break}return v&&(g+=c[O],g+="=",v==1&&(g+="=")),g}}},210:(s,l,u)=>{u.d(l,{q:()=>m});var c=u(120),d=u(818);function f(){const g=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof g.getBigInt64=="function"&&typeof g.getBigUint64=="function"&&typeof g.setBigInt64=="function"&&typeof g.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const E=BigInt("-9223372036854775808"),w=BigInt("9223372036854775807"),k=BigInt("0"),A=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(C){const x=typeof C=="bigint"?C:BigInt(C);if(x>w||xA||x(0,c.hu)(/^-?[0-9]+$/.test(E),`int64 invalid: ${E}`),O=E=>(0,c.hu)(/^[0-9]+$/.test(E),`uint64 invalid: ${E}`);return{zero:"0",supported:!1,parse(E){return typeof E!="string"&&(E=E.toString()),S(E),E},uParse(E){return typeof E!="string"&&(E=E.toString()),O(E),E},enc(E){return typeof E!="string"&&(E=E.toString()),S(E),(0,d.CZ)(E)},uEnc(E){return typeof E!="string"&&(E=E.toString()),O(E),(0,d.CZ)(E)},dec(E,w){return(0,d.Ak)(E,w)},uDec(E,w){return(0,d.Fd)(E,w)}}}const m=f()},850:(s,l,u)=>{u.d(l,{w:()=>x});var c=u(493),d=u(465),f=u(744);function m(){return Object.assign(Object.assign({},(0,f.gY)()),{writeMessage(M,P,V){const W=M.getType();for(const G of W.fields.byNumber()){let j,z=G.repeated,X=G.localName;if(G.oneof){const Z=M[G.oneof.localName];if(Z.case!==X)continue;j=Z.value}else j=M[X];switch(G.kind){case"scalar":case"enum":let Z=G.kind=="enum"?d.w.INT32:G.T;if(z)if(G.packed)(0,f.Jj)(P,Z,G.no,j);else for(const q of j)(0,f.NN)(P,Z,G.no,q,!0);else j!==void 0&&(0,f.NN)(P,Z,G.no,j,!!G.oneof||G.opt);break;case"message":if(z)for(const q of j)(0,f.oQ)(P,V,G,q);else(0,f.oQ)(P,V,G,j);break;case"map":for(const[q,te]of Object.entries(j))(0,f.gQ)(P,V,G,q,te);break}}return V.writeUnknownFields&&this.writeUnknownFields(M,P),P}})}var g=u(432),v=u(120),S=u(814);function O(){return(0,S.b)((M,P)=>function(W,G,j){if(W.kind=="map"){const z={};switch(W.V.kind){case"scalar":for(const[Z,q]of Object.entries(G)){const te=P(W.V.T,q,!0);(0,v.hu)(te!==void 0),z[Z.toString()]=te}break;case"message":for(const[Z,q]of Object.entries(G))z[Z.toString()]=q.toJson(j);break;case"enum":const X=W.V.T;for(const[Z,q]of Object.entries(G)){(0,v.hu)(q===void 0||typeof q=="number");const te=M(X,q,!0,j.enumAsInteger);(0,v.hu)(te!==void 0),z[Z.toString()]=te}break}return j.emitDefaultValues||Object.keys(z).length>0?z:void 0}else if(W.repeated){const z=[];switch(W.kind){case"scalar":for(let X=0;X0?z:void 0}else switch(W.kind){case"scalar":return P(W.T,G,!!W.oneof||W.opt||j.emitDefaultValues);case"enum":return M(W.T,G,!!W.oneof||W.opt||j.emitDefaultValues,j.enumAsInteger);case"message":return G!==void 0?(0,g.E)(W.T,G).toJson(j):void 0}})}var E=u(433),w=u(501),k=u(781),A=u(215),C=u(504);const x=(0,c.F)("proto3",O(),m(),Object.assign(Object.assign({},(0,E.f)()),{newFieldList(M){return new w.i(M,F)},initFields(M){for(const P of M.getType().fields.byMember()){if(P.opt)continue;const V=P.localName,W=M;if(P.repeated){W[V]=[];continue}switch(P.kind){case"oneof":W[V]={case:void 0};break;case"enum":W[V]=0;break;case"map":W[V]={};break;case"scalar":W[V]=(0,k.kY)(P.T,P.L);break}}}}));function F(M){var P,V,W,G;const j=[];let z;for(const X of typeof M=="function"?M():M){const Z=X;if(Z.localName=(0,C.Rz)(X.name,X.oneof!==void 0),Z.jsonName=(P=X.jsonName)!==null&&P!==void 0?P:(0,C.x1)(X.name),Z.repeated=(V=X.repeated)!==null&&V!==void 0?V:!1,X.kind=="scalar"&&(Z.L=(W=X.L)!==null&&W!==void 0?W:d.p.BIGINT),X.oneof!==void 0){const q=typeof X.oneof=="string"?X.oneof:X.oneof.name;(!z||z.name!=q)&&(z=new A.o(q)),Z.oneof=z,z.addField(Z)}X.kind=="message"&&(Z.delimited=!1),Z.packed=(G=X.packed)!==null&&G!==void 0?G:X.kind=="enum"||X.kind=="scalar"&&X.T!=d.w.BYTES&&X.T!=d.w.STRING,j.push(Z)}return j}},328:(s,l,u)=>{u.d(l,{t:()=>c,w:()=>d});var c;(function(f){f[f.Unary=0]="Unary",f[f.ServerStreaming=1]="ServerStreaming",f[f.ClientStreaming=2]="ClientStreaming",f[f.BiDiStreaming=3]="BiDiStreaming"})(c||(c={}));var d;(function(f){f[f.NoSideEffects=1]="NoSideEffects",f[f.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:()=>Us,Client:()=>dm,ClientEventType:()=>Ss,ClientStatus:()=>qc,Counter:()=>of,DocEventType:()=>tr,Document:()=>af,DocumentSyncResultType:()=>Sp,EventSourceDevPanel:()=>L2,EventSourceSDK:()=>Vv,Primitive:()=>ri,StreamConnectionStatus:()=>sf,SyncMode:()=>Ka,Text:()=>sb,TimeTicket:()=>eo,Tree:()=>lb,converter:()=>Es,default:()=>gw,setLogLevel:()=>u});var s;(function(T){T[T.Trivial=0]="Trivial",T[T.Debug=1]="Debug",T[T.Info=2]="Info",T[T.Warn=3]="Warn",T[T.Error=4]="Error",T[T.Fatal=5]="Fatal"})(s||(s={}));let l=s.Info;function u(T){l=T}const c={trivial:(...T)=>{l>s.Trivial||typeof console<"u"&&console.log("YORKIE T:",...T)},debug:(...T)=>{l>s.Debug||typeof console<"u"&&console.log("YORKIE D:",...T)},info:(...T)=>{l>s.Info||typeof console<"u"&&console.log("YORKIE I:",...T)},warn:(...T)=>{l>s.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...T):console.log("YORKIE W:",...T))},error:(...T)=>{l>s.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...T):console.log("YORKIE E:",...T))},fatal:(T,...p)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...p):console.log("YORKIE F:",...p)),new Error(`YORKIE F: ${T}`)},isEnabled:T=>l<=T};function d(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,T=>{const p=Math.random()*16|0;return(T==="x"?p:p&3|8).toString(16)})}const f=()=>{};class m{constructor(p){this.finalized=!1,this.observers=[];try{p(this)}catch(b){this.error(b)}}next(p){this.forEachObserver(b=>{b.next(p)})}error(p){this.forEachObserver(b=>{b.error(p)}),this.close(p)}complete(){this.forEachObserver(p=>{p.complete()}),this.close()}subscribe(p,b,_){let D;p||c.fatal("missing observer"),this.finalized&&c.fatal("observable is finalized due to previous error"),typeof p=="object"?D=p:D={next:p,error:b,complete:_},D.next===void 0&&(D.next=f),D.error===void 0&&(D.error=f),D.complete===void 0&&(D.complete=f);const K=d(),re=this.unsubscribeOne.bind(this,K);if(this.observers.push({subscriptionID:K,observer:D}),this.finalized)try{this.finalError?D.error(this.finalError):D.complete()}catch(me){c.warn(me)}return re}unsubscribeOne(p){var b;this.observers=(b=this.observers)===null||b===void 0?void 0:b.filter(_=>_.subscriptionID!==p)}forEachObserver(p){if(!this.finalized)for(let b=0;bp}}var v=o(328);function S(T,p){const b={};for(const[_,D]of Object.entries(T.methods)){const K=p(Object.assign(Object.assign({},D),{localName:_,service:T}));K!=null&&(b[_]=K)}return b}var O;(function(T){T[T.Canceled=1]="Canceled",T[T.Unknown=2]="Unknown",T[T.InvalidArgument=3]="InvalidArgument",T[T.DeadlineExceeded=4]="DeadlineExceeded",T[T.NotFound=5]="NotFound",T[T.AlreadyExists=6]="AlreadyExists",T[T.PermissionDenied=7]="PermissionDenied",T[T.ResourceExhausted=8]="ResourceExhausted",T[T.FailedPrecondition=9]="FailedPrecondition",T[T.Aborted=10]="Aborted",T[T.OutOfRange=11]="OutOfRange",T[T.Unimplemented=12]="Unimplemented",T[T.Internal=13]="Internal",T[T.Unavailable=14]="Unavailable",T[T.DataLoss=15]="DataLoss",T[T.Unauthenticated=16]="Unauthenticated"})(O||(O={}));var E=o(561);function w(T){const p=O[T];return typeof p!="string"?T.toString():p[0].toLowerCase()+p.substring(1).replace(/[A-Z]/g,b=>"_"+b.toLowerCase())}class k extends Error{constructor(p,b=O.Unknown,_,D,K){super(A(p,b)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=p,this.code=b,this.metadata=new Headers(_??{}),this.details=D??[],this.cause=K}static from(p,b=O.Unknown){return p instanceof k?p:p instanceof Error?p.name=="AbortError"?new k(p.message,O.Canceled):new k(p.message,b,void 0,void 0,p):new k(String(p),b,void 0,void 0,p)}findDetails(p){const b="typeName"in p?{findMessage:D=>D===p.typeName?p:void 0}:p,_=[];for(const D of this.details){if(D instanceof E.v){b.findMessage(D.getType().typeName)&&_.push(D);continue}const K=b.findMessage(D.type);if(K)try{_.push(K.fromBinary(D.value))}catch{}}return _}}function A(T,p){return T.length?`[${w(p)}] ${T}`:`[${w(p)}]`}var C=function(T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var p=T[Symbol.asyncIterator],b;return p?p.call(T):(T=typeof __values=="function"?__values(T):T[Symbol.iterator](),b={},_("next"),_("throw"),_("return"),b[Symbol.asyncIterator]=function(){return this},b);function _(K){b[K]=T[K]&&function(re){return new Promise(function(me,Pe){re=T[K](re),D(me,Pe,re.done,re.value)})}}function D(K,re,me,Pe){Promise.resolve(Pe).then(function(at){K({value:at,done:me})},re)}},x=function(T){return this instanceof x?(this.v=T,this):new x(T)},F=function(T,p,b){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _=b.apply(T,p||[]),D,K=[];return D={},re("next"),re("throw"),re("return"),D[Symbol.asyncIterator]=function(){return this},D;function re(xt){_[xt]&&(D[xt]=function(wn){return new Promise(function(Un,or){K.push([xt,wn,Un,or])>1||me(xt,wn)})})}function me(xt,wn){try{Pe(_[xt](wn))}catch(Un){tn(K[0][3],Un)}}function Pe(xt){xt.value instanceof x?Promise.resolve(xt.value.v).then(at,Dt):tn(K[0][2],xt)}function at(xt){me("next",xt)}function Dt(xt){me("throw",xt)}function tn(xt,wn){xt(wn),K.shift(),K.length&&me(K[0][0],K[0][1])}},M=function(T){var p,b;return p={},_("next"),_("throw",function(D){throw D}),_("return"),p[Symbol.iterator]=function(){return this},p;function _(D,K){p[D]=T[D]?function(re){return(b=!b)?{value:x(T[D](re)),done:!1}:K?K(re):re}:K}};function P(T){return F(this,arguments,function*(){yield x(yield*M(C(T)))})}var V=function(T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var p=T[Symbol.asyncIterator],b;return p?p.call(T):(T=typeof __values=="function"?__values(T):T[Symbol.iterator](),b={},_("next"),_("throw"),_("return"),b[Symbol.asyncIterator]=function(){return this},b);function _(K){b[K]=T[K]&&function(re){return new Promise(function(me,Pe){re=T[K](re),D(me,Pe,re.done,re.value)})}}function D(K,re,me,Pe){Promise.resolve(Pe).then(function(at){K({value:at,done:me})},re)}},W=function(T){return this instanceof W?(this.v=T,this):new W(T)},G=function(T){var p,b;return p={},_("next"),_("throw",function(D){throw D}),_("return"),p[Symbol.iterator]=function(){return this},p;function _(D,K){p[D]=T[D]?function(re){return(b=!b)?{value:W(T[D](re)),done:!1}:K?K(re):re}:K}},j=function(T,p,b){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _=b.apply(T,p||[]),D,K=[];return D={},re("next"),re("throw"),re("return"),D[Symbol.asyncIterator]=function(){return this},D;function re(xt){_[xt]&&(D[xt]=function(wn){return new Promise(function(Un,or){K.push([xt,wn,Un,or])>1||me(xt,wn)})})}function me(xt,wn){try{Pe(_[xt](wn))}catch(Un){tn(K[0][3],Un)}}function Pe(xt){xt.value instanceof W?Promise.resolve(xt.value.v).then(at,Dt):tn(K[0][2],xt)}function at(xt){me("next",xt)}function Dt(xt){me("throw",xt)}function tn(xt,wn){xt(wn),K.shift(),K.length&&me(K[0][0],K[0][1])}};function z(T,p){return S(T,b=>{switch(b.kind){case v.t.Unary:return X(p,T,b);case v.t.ServerStreaming:return Z(p,T,b);case v.t.ClientStreaming:return q(p,T,b);case v.t.BiDiStreaming:return te(p,T,b);default:return null}})}function X(T,p,b){return async function(_,D){var K,re;const me=await T.unary(p,b,D==null?void 0:D.signal,D==null?void 0:D.timeoutMs,D==null?void 0:D.headers,_,D==null?void 0:D.contextValues);return(K=D==null?void 0:D.onHeader)===null||K===void 0||K.call(D,me.header),(re=D==null?void 0:D.onTrailer)===null||re===void 0||re.call(D,me.trailer),me.message}}function Z(T,p,b){return function(_,D){return Q(T.stream(p,b,D==null?void 0:D.signal,D==null?void 0:D.timeoutMs,D==null?void 0:D.headers,P([_]),D==null?void 0:D.contextValues),D)}}function q(T,p,b){return async function(_,D){var K,re,me,Pe,at,Dt;const tn=await T.stream(p,b,D==null?void 0:D.signal,D==null?void 0:D.timeoutMs,D==null?void 0:D.headers,_,D==null?void 0:D.contextValues);(at=D==null?void 0:D.onHeader)===null||at===void 0||at.call(D,tn.header);let xt;try{for(var wn=!0,Un=V(tn.message),or;or=await Un.next(),K=or.done,!K;wn=!0)Pe=or.value,wn=!1,xt=Pe}catch(Pr){re={error:Pr}}finally{try{!wn&&!K&&(me=Un.return)&&await me.call(Un)}finally{if(re)throw re.error}}if(!xt)throw new k("protocol error: missing response message",O.Internal);return(Dt=D==null?void 0:D.onTrailer)===null||Dt===void 0||Dt.call(D,tn.trailer),xt}}function te(T,p,b){return function(_,D){return Q(T.stream(p,b,D==null?void 0:D.signal,D==null?void 0:D.timeoutMs,D==null?void 0:D.headers,_,D==null?void 0:D.contextValues),D)}}function Q(T,p){const b=function(){var _,D;return j(this,arguments,function*(){const K=yield W(T);(_=p==null?void 0:p.onHeader)===null||_===void 0||_.call(p,K.header),yield W(yield*G(V(K.message))),(D=p==null?void 0:p.onTrailer)===null||D===void 0||D.call(p,K.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>b.next()})}}function se(){return{get(T){return T.id in this?this[T.id]:T.defaultValue},set(T,p){return this[T.id]=p,this},delete(T){return delete this[T.id],this}}}function he(T){var p;const b=Object.assign({},T);return(p=b.ignoreUnknownFields)!==null&&p!==void 0||(b.ignoreUnknownFields=!0),b}function J(T,p,b,_){const D=p?le(T.I,_):ve(T.I,b);return{parse:(p?le(T.O,_):ve(T.O,b)).parse,serialize:D.serialize}}function le(T,p){return{parse(b){try{return T.fromBinary(b,p)}catch(_){const D=_ instanceof Error?_.message:String(_);throw new k(`parse binary: ${D}`,O.InvalidArgument)}},serialize(b){try{return b.toBinary(p)}catch(_){const D=_ instanceof Error?_.message:String(_);throw new k(`serialize binary: ${D}`,O.Internal)}}}}function ve(T,p){var b,_;const D=(b=p==null?void 0:p.textEncoder)!==null&&b!==void 0?b:new TextEncoder,K=(_=p==null?void 0:p.textDecoder)!==null&&_!==void 0?_:new TextDecoder,re=he(p);return{parse(me){try{const Pe=K.decode(me);return T.fromJsonString(Pe,re)}catch(Pe){throw k.from(Pe,O.InvalidArgument)}},serialize(me){try{const Pe=me.toJsonString(re);return D.encode(Pe)}catch(Pe){throw k.from(Pe,O.Internal)}}}}function ue(...T){const p=new AbortController,b=T.filter(D=>D!==void 0).concat(p.signal);for(const D of b){if(D.aborted){_.apply(D);break}D.addEventListener("abort",_)}function _(){p.signal.aborted||p.abort(ke(this));for(const D of b)D.removeEventListener("abort",_)}return p}function we(T){const p=new AbortController,b=()=>{p.abort(new k("the operation timed out",O.DeadlineExceeded))};let _;return T!==void 0&&(T<=0?b():_=setTimeout(b,T)),{signal:p.signal,cleanup:()=>clearTimeout(_)}}function ke(T){if(!T.aborted)return;if(T.reason!==void 0)return T.reason;const p=new Error("This operation was aborted");return p.name="AbortError",p}function Ue(T,p){return p instanceof E.v?p:new T(p)}function et(T,p){function b(_){return _.done===!0?_:{done:_.done,value:Ue(T,_.value)}}return{[Symbol.asyncIterator](){const _=p[Symbol.asyncIterator](),D={next:()=>_.next().then(b)};return _.throw!==void 0&&(D.throw=K=>_.throw(K).then(b)),_.return!==void 0&&(D.return=K=>_.return(K).then(b)),D}}}function Me(T){const p=Ze(T.next,T.interceptors),[b,_,D]=xe(T),K=Object.assign(Object.assign({},T.req),{message:Ue(T.req.method.I,T.req.message),signal:b});return p(K).then(re=>(D(),re),_)}function qe(T){const p=Ze(T.next,T.interceptors),[b,_,D]=xe(T),K=Object.assign(Object.assign({},T.req),{message:et(T.req.method.I,T.req.message),signal:b});let re=!1;return b.addEventListener("abort",function(){var me,Pe;const at=T.req.message[Symbol.asyncIterator]();re||(me=at.throw)===null||me===void 0||me.call(at,this.reason).catch(()=>{}),(Pe=at.return)===null||Pe===void 0||Pe.call(at).catch(()=>{})}),p(K).then(me=>Object.assign(Object.assign({},me),{message:{[Symbol.asyncIterator](){const Pe=me.message[Symbol.asyncIterator]();return{next(){return Pe.next().then(at=>(at.done==!0&&(re=!0,D()),at),_)}}}}}),_)}function xe(T){const{signal:p,cleanup:b}=we(T.timeoutMs),_=ue(T.signal,p);return[_.signal,function(K){const re=k.from(p.aborted?ke(p):K);return _.abort(re),b(),Promise.reject(re)},function(){b(),_.abort()}]}function Ze(T,p){var b;return(b=p==null?void 0:p.concat().reverse().reduce((_,D)=>D(_),T))!==null&&b!==void 0?b:T}function Xe(T,p,b){const _=typeof p=="string"?p:p.typeName,D=typeof b=="string"?b:b.name;return T.toString().replace(/\/?$/,`/${_}/${D}`)}function it(T){let p,b=new Uint8Array(0);function _(D){const K=new Uint8Array(b.length+D.length);K.set(b),K.set(D,b.length),b=K}return new ReadableStream({start(){p=T.getReader()},async pull(D){let K;for(;;){if(K===void 0&&b.byteLength>=5){let Pe=0;for(let at=1;at<5;at++)Pe=(Pe<<8)+b[at];K={flags:b[0],length:Pe}}if(K!==void 0&&b.byteLength>=K.length+5)break;const me=await p.read();if(me.done)break;_(me.value)}if(K===void 0){if(b.byteLength==0){D.close();return}D.error(new k("premature end of stream",O.DataLoss));return}const re=b.subarray(5,5+K.length);b=b.subarray(5+K.length),D.enqueue({flags:K.flags,data:re})}})}function Ot(T,p){const b=new Uint8Array(p.length+5);b.set(p,5);const _=new DataView(b.buffer,b.byteOffset,b.byteLength);return _.setUint8(0,T),_.setUint32(1,p.length),b}const tt="Content-Type",pe="Grpc-Timeout",oe="Grpc-Status",ie="Grpc-Message",Fe="Grpc-Status-Details-Bin",Qe="User-Agent",je="X-User-Agent",fe="X-Grpc-Web",Oe="application/grpc-web+proto",ye="application/grpc-web+json";function Ce(T,p,b,_){const D=new Headers(b??{});return D.set(tt,T?Oe:ye),D.set(fe,"1"),D.set(je,"connect-es/1.2.0"),_&&D.set(Qe,"connect-es/1.2.0"),p!==void 0&&D.set(pe,`${p}m`),D}function De(T){switch(T){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 ft=o(850),_t=o(733);class At extends E.v{constructor(p){super(),this.code=0,this.message="",this.details=[],ft.w.util.initPartial(p,this)}static fromBinary(p,b){return new At().fromBinary(p,b)}static fromJson(p,b){return new At().fromJson(p,b)}static fromJsonString(p,b){return new At().fromJsonString(p,b)}static equals(p,b){return ft.w.util.equals(At,p,b)}}At.runtime=ft.w,At.typeName="google.rpc.Status",At.fields=ft.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:_t.I,repeated:!0}]);var pt=o(236);function Mt(T,p,b){try{const _=pt.W.dec(T);return p?p.fromBinary(_,b):_}catch(_){throw k.from(_,O.DataLoss)}}const ot="0";function gt(T){var p;const b=T.get(Fe);if(b!=null){const D=Mt(b,At);if(D.code==0)return;const K=new k(D.message,D.code,T);return K.details=D.details.map(re=>({type:re.typeUrl.substring(re.typeUrl.lastIndexOf("/")+1),value:re.value})),K}const _=T.get(oe);if(_!=null){if(_===ot)return;const D=parseInt(_,10);return D in O?new k(decodeURIComponent((p=T.get(ie))!==null&&p!==void 0?p:""),D,T):new k(`invalid grpc-status: ${_}`,O.Internal,T)}}function $t(T,p){var b;if(T>=200&&T<300){const _=gt(p);if(_)throw _;return{foundStatus:p.has(oe)}}throw new k(decodeURIComponent((b=p.get(ie))!==null&&b!==void 0?b:`HTTP ${T}`),De(T),p)}const Xt=128;function vn(T){const p=new Headers,b=new TextDecoder().decode(T).split(`\r +`);for(const _ of b){if(_==="")continue;const D=_.indexOf(":");if(D>0){const K=_.substring(0,D).trim(),re=_.substring(D+1).trim();p.append(K,re)}}return p}function Cn(T,p){const b=gt(T);if(b)throw p.forEach((_,D)=>{b.metadata.append(D,_)}),b}function $n(){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 qn=function(T){return this instanceof qn?(this.v=T,this):new qn(T)},Ae=function(T,p,b){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _=b.apply(T,p||[]),D,K=[];return D={},re("next"),re("throw"),re("return"),D[Symbol.asyncIterator]=function(){return this},D;function re(xt){_[xt]&&(D[xt]=function(wn){return new Promise(function(Un,or){K.push([xt,wn,Un,or])>1||me(xt,wn)})})}function me(xt,wn){try{Pe(_[xt](wn))}catch(Un){tn(K[0][3],Un)}}function Pe(xt){xt.value instanceof qn?Promise.resolve(xt.value.v).then(at,Dt):tn(K[0][2],xt)}function at(xt){me("next",xt)}function Dt(xt){me("throw",xt)}function tn(xt,wn){xt(wn),K.shift(),K.length&&me(K[0][0],K[0][1])}};function Be(T){var p;$n();const b=(p=T.useBinaryFormat)!==null&&p!==void 0?p:!0;return{async unary(_,D,K,re,me,Pe,at){var Dt;const{serialize:tn,parse:xt}=J(D,b,T.jsonOptions,T.binaryOptions);return re=re===void 0?T.defaultTimeoutMs:re<=0?void 0:re,await Me({interceptors:T.interceptors,signal:K,timeoutMs:re,req:{stream:!1,service:_,method:D,url:Xe(T.baseUrl,_,D),init:{method:"POST",credentials:(Dt=T.credentials)!==null&&Dt!==void 0?Dt:"same-origin",redirect:"error",mode:"cors"},header:Ce(b,re,me,!1),contextValues:at??se(),message:Pe},next:async wn=>{var Un;const Pr=await((Un=T.fetch)!==null&&Un!==void 0?Un:globalThis.fetch)(wn.url,Object.assign(Object.assign({},wn.init),{headers:wn.header,signal:wn.signal,body:Ot(0,tn(wn.message))}));if($t(Pr.status,Pr.headers),!Pr.body)throw"missing response body";const Bo=it(Pr.body).getReader();let fr,Fi;for(;;){const Lr=await Bo.read();if(Lr.done)break;const{flags:ro,data:lf}=Lr.value;if(ro===Xt){if(fr!==void 0)throw"extra trailer";fr=vn(lf);continue}if(Fi!==void 0)throw"extra message";Fi=xt(lf)}if(fr===void 0)throw"missing trailer";if(Cn(fr,Pr.headers),Fi===void 0)throw"missing message";return{stream:!1,header:Pr.headers,message:Fi,trailer:fr}}})},async stream(_,D,K,re,me,Pe,at){var Dt;const{serialize:tn,parse:xt}=J(D,b,T.jsonOptions,T.binaryOptions);function wn(or,Pr,Bo,fr){return Ae(this,arguments,function*(){const Lr=it(or).getReader();if(Pr){if(!(yield qn(Lr.read())).done)throw"extra data for trailers-only";return yield qn(void 0)}let ro=!1;for(;;){const lf=yield qn(Lr.read());if(lf.done)break;const{flags:Tp,data:fm}=lf.value;if((Tp&Xt)===Xt){if(ro)throw"extra trailer";ro=!0;const bw=vn(fm);Cn(bw,fr),bw.forEach((uf,M2)=>Bo.set(M2,uf));continue}if(ro)throw"extra message";yield yield qn(xt(fm))}if(!ro)throw"missing trailer"})}async function Un(or){if(D.kind!=v.t.ServerStreaming)throw"The fetch API does not support streaming request bodies";const Pr=await or[Symbol.asyncIterator]().next();if(Pr.done==!0)throw"missing request message";return Ot(0,tn(Pr.value))}return re=re===void 0?T.defaultTimeoutMs:re<=0?void 0:re,qe({interceptors:T.interceptors,signal:K,timeoutMs:re,req:{stream:!0,service:_,method:D,url:Xe(T.baseUrl,_,D),init:{method:"POST",credentials:(Dt=T.credentials)!==null&&Dt!==void 0?Dt:"same-origin",redirect:"error",mode:"cors"},header:Ce(b,re,me,!1),contextValues:at??se(),message:Pe},next:async or=>{var Pr;const fr=await((Pr=T.fetch)!==null&&Pr!==void 0?Pr:globalThis.fetch)(or.url,Object.assign(Object.assign({},or.init),{headers:or.header,signal:or.signal,body:await Un(or.message)})),{foundStatus:Fi}=$t(fr.status,fr.headers);if(!fr.body)throw"missing response body";const Lr=new Headers;return Object.assign(Object.assign({},or),{header:fr.headers,trailer:Lr,message:wn(fr.body,Fi,Lr,fr.headers)})}})}}}var rt=o(295),Ne=o(646);/** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. @@ -262,124 +262,124 @@ Error generating stack: `+o.message+` * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 - */var wt=null;try{wt=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 Gt(T,f,b){this.low=T|0,this.high=f|0,this.unsigned=!!b}Gt.prototype.__isLong__,Object.defineProperty(Gt.prototype,"__isLong__",{value:!0});function jt(T){return(T&&T.__isLong__)===!0}function qt(T){var f=Math.clz32(T&-T);return T?31-f:f}Gt.isLong=jt;var Bt={},On={};function je(T,f){var b,k,D;return f?(T>>>=0,(D=0<=T&&T<256)&&(k=On[T],k)?k:(b=Ve(T,0,!0),D&&(On[T]=b),b)):(T|=0,(D=-128<=T&&T<128)&&(k=Bt[T],k)?k:(b=Ve(T,T<0?-1:0,!1),D&&(Bt[T]=b),b))}Gt.fromInt=je;function ze(T,f){if(isNaN(T))return f?er:mn;if(f){if(T<0)return er;if(T>=Le)return ai}else{if(T<=-Rt)return fi;if(T+1>=Rt)return Tr}return T<0?ze(-T,f).neg():Ve(T%Xe|0,T/Xe|0,f)}Gt.fromNumber=ze;function Ve(T,f,b){return new Gt(T,f,b)}Gt.fromBits=Ve;var yt=Math.pow;function Nn(T,f,b){if(T.length===0)throw Error("empty string");if(typeof f=="number"?(b=f,f=!1):f=!!f,T==="NaN"||T==="Infinity"||T==="+Infinity"||T==="-Infinity")return f?er:mn;if(b=b||10,b<2||360)throw Error("interior hyphen");if(k===0)return Nn(T.substring(1),f,b).neg();for(var D=ze(yt(b,8)),K=mn,re=0;re>>0:this.low},Pt.toNumber=function(){return this.unsigned?(this.high>>>0)*Xe+(this.low>>>0):this.high*Xe+(this.low>>>0)},Pt.toString=function(f){if(f=f||10,f<2||36>>0,Dt=ot.toString(f);if(re=Ne,re.isZero())return Dt+fe;for(;Dt.length<6;)Dt="0"+Dt;fe=""+Dt+fe}},Pt.getHighBits=function(){return this.high},Pt.getHighBitsUnsigned=function(){return this.high>>>0},Pt.getLowBits=function(){return this.low},Pt.getLowBitsUnsigned=function(){return this.low>>>0},Pt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(fi)?64:this.neg().getNumBitsAbs();for(var f=this.high!=0?this.high:this.low,b=31;b>0&&!(f&1<=0},Pt.isOdd=function(){return(this.low&1)===1},Pt.isEven=function(){return(this.low&1)===0},Pt.equals=function(f){return jt(f)||(f=Kt(f)),this.unsigned!==f.unsigned&&this.high>>>31===1&&f.high>>>31===1?!1:this.high===f.high&&this.low===f.low},Pt.eq=Pt.equals,Pt.notEquals=function(f){return!this.eq(f)},Pt.neq=Pt.notEquals,Pt.ne=Pt.notEquals,Pt.lessThan=function(f){return this.comp(f)<0},Pt.lt=Pt.lessThan,Pt.lessThanOrEqual=function(f){return this.comp(f)<=0},Pt.lte=Pt.lessThanOrEqual,Pt.le=Pt.lessThanOrEqual,Pt.greaterThan=function(f){return this.comp(f)>0},Pt.gt=Pt.greaterThan,Pt.greaterThanOrEqual=function(f){return this.comp(f)>=0},Pt.gte=Pt.greaterThanOrEqual,Pt.ge=Pt.greaterThanOrEqual,Pt.compare=function(f){if(jt(f)||(f=Kt(f)),this.eq(f))return 0;var b=this.isNegative(),k=f.isNegative();return b&&!k?-1:!b&&k?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},Pt.comp=Pt.compare,Pt.negate=function(){return!this.unsigned&&this.eq(fi)?fi:this.not().add(Zn)},Pt.neg=Pt.negate,Pt.add=function(f){jt(f)||(f=Kt(f));var b=this.high>>>16,k=this.high&65535,D=this.low>>>16,K=this.low&65535,re=f.high>>>16,fe=f.high&65535,Ne=f.low>>>16,ot=f.low&65535,Dt=0,tn=0,xt=0,wn=0;return wn+=K+ot,xt+=wn>>>16,wn&=65535,xt+=D+Ne,tn+=xt>>>16,xt&=65535,tn+=k+fe,Dt+=tn>>>16,tn&=65535,Dt+=b+re,Dt&=65535,Ve(xt<<16|wn,Dt<<16|tn,this.unsigned)},Pt.subtract=function(f){return jt(f)||(f=Kt(f)),this.add(f.neg())},Pt.sub=Pt.subtract,Pt.multiply=function(f){if(this.isZero())return this;if(jt(f)||(f=Kt(f)),wt){var b=wt.mul(this.low,this.high,f.low,f.high);return Ve(b,wt.get_high(),this.unsigned)}if(f.isZero())return this.unsigned?er:mn;if(this.eq(fi))return f.isOdd()?fi:mn;if(f.eq(fi))return this.isOdd()?fi:mn;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(en)&&f.lt(en))return ze(this.toNumber()*f.toNumber(),this.unsigned);var k=this.high>>>16,D=this.high&65535,K=this.low>>>16,re=this.low&65535,fe=f.high>>>16,Ne=f.high&65535,ot=f.low>>>16,Dt=f.low&65535,tn=0,xt=0,wn=0,Un=0;return Un+=re*Dt,wn+=Un>>>16,Un&=65535,wn+=K*Dt,xt+=wn>>>16,wn&=65535,wn+=re*ot,xt+=wn>>>16,wn&=65535,xt+=D*Dt,tn+=xt>>>16,xt&=65535,xt+=K*ot,tn+=xt>>>16,xt&=65535,xt+=re*Ne,tn+=xt>>>16,xt&=65535,tn+=k*Dt+D*ot+K*Ne+re*fe,tn&=65535,Ve(wn<<16|Un,tn<<16|xt,this.unsigned)},Pt.mul=Pt.multiply,Pt.divide=function(f){if(jt(f)||(f=Kt(f)),f.isZero())throw Error("division by zero");if(wt){if(!this.unsigned&&this.high===-2147483648&&f.low===-1&&f.high===-1)return this;var b=(this.unsigned?wt.div_u:wt.div_s)(this.low,this.high,f.low,f.high);return Ve(b,wt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?er:mn;var k,D,K;if(this.unsigned){if(f.unsigned||(f=f.toUnsigned()),f.gt(this))return er;if(f.gt(this.shru(1)))return bn;K=er}else{if(this.eq(fi)){if(f.eq(Zn)||f.eq(_n))return fi;if(f.eq(fi))return Zn;var re=this.shr(1);return k=re.div(f).shl(1),k.eq(mn)?f.isNegative()?Zn:_n:(D=this.sub(f.mul(k)),K=k.add(D.div(f)),K)}else if(f.eq(fi))return this.unsigned?er:mn;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();K=mn}for(D=this;D.gte(f);){k=Math.max(1,Math.floor(D.toNumber()/f.toNumber()));for(var fe=Math.ceil(Math.log(k)/Math.LN2),Ne=fe<=48?1:yt(2,fe-48),ot=ze(k),Dt=ot.mul(f);Dt.isNegative()||Dt.gt(D);)k-=Ne,ot=ze(k,this.unsigned),Dt=ot.mul(f);ot.isZero()&&(ot=Zn),K=K.add(ot),D=D.sub(Dt)}return K},Pt.div=Pt.divide,Pt.modulo=function(f){if(jt(f)||(f=Kt(f)),wt){var b=(this.unsigned?wt.rem_u:wt.rem_s)(this.low,this.high,f.low,f.high);return Ve(b,wt.get_high(),this.unsigned)}return this.sub(this.div(f).mul(f))},Pt.mod=Pt.modulo,Pt.rem=Pt.modulo,Pt.not=function(){return Ve(~this.low,~this.high,this.unsigned)},Pt.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Pt.clz=Pt.countLeadingZeros,Pt.countTrailingZeros=function(){return this.low?qt(this.low):qt(this.high)+32},Pt.ctz=Pt.countTrailingZeros,Pt.and=function(f){return jt(f)||(f=Kt(f)),Ve(this.low&f.low,this.high&f.high,this.unsigned)},Pt.or=function(f){return jt(f)||(f=Kt(f)),Ve(this.low|f.low,this.high|f.high,this.unsigned)},Pt.xor=function(f){return jt(f)||(f=Kt(f)),Ve(this.low^f.low,this.high^f.high,this.unsigned)},Pt.shiftLeft=function(f){return jt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?Ve(this.low<>>32-f,this.unsigned):Ve(0,this.low<>>f|this.high<<32-f,this.high>>f,this.unsigned):Ve(this.high>>f-32,this.high>=0?0:-1,this.unsigned)},Pt.shr=Pt.shiftRight,Pt.shiftRightUnsigned=function(f){return jt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?Ve(this.low>>>f|this.high<<32-f,this.high>>>f,this.unsigned):f===32?Ve(this.high,0,this.unsigned):Ve(this.high>>>f-32,0,this.unsigned)},Pt.shru=Pt.shiftRightUnsigned,Pt.shr_u=Pt.shiftRightUnsigned,Pt.rotateLeft=function(f){var b;return jt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?Ve(this.high,this.low,this.unsigned):f<32?(b=32-f,Ve(this.low<>>b,this.high<>>b,this.unsigned)):(f-=32,b=32-f,Ve(this.high<>>b,this.low<>>b,this.unsigned))},Pt.rotl=Pt.rotateLeft,Pt.rotateRight=function(f){var b;return jt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?Ve(this.high,this.low,this.unsigned):f<32?(b=32-f,Ve(this.high<>>f,this.low<>>f,this.unsigned)):(f-=32,b=32-f,Ve(this.low<>>f,this.high<>>f,this.unsigned))},Pt.rotr=Pt.rotateRight,Pt.toSigned=function(){return this.unsigned?Ve(this.low,this.high,!1):this},Pt.toUnsigned=function(){return this.unsigned?this:Ve(this.low,this.high,!0)},Pt.toBytes=function(f){return f?this.toBytesLE():this.toBytesBE()},Pt.toBytesLE=function(){var f=this.high,b=this.low;return[b&255,b>>>8&255,b>>>16&255,b>>>24,f&255,f>>>8&255,f>>>16&255,f>>>24]},Pt.toBytesBE=function(){var f=this.high,b=this.low;return[f>>>24,f>>>16&255,f>>>8&255,f&255,b>>>24,b>>>16&255,b>>>8&255,b&255]},Gt.fromBytes=function(f,b,k){return k?Gt.fromBytesLE(f,b):Gt.fromBytesBE(f,b)},Gt.fromBytesLE=function(f,b){return new Gt(f[0]|f[1]<<8|f[2]<<16|f[3]<<24,f[4]|f[5]<<8|f[6]<<16|f[7]<<24,b)},Gt.fromBytesBE=function(f,b){return new Gt(f[4]<<24|f[5]<<16|f[6]<<8|f[7],f[0]<<24|f[1]<<16|f[2]<<8|f[3],b)};const Pi=Gt;var Wn;(function(T){T.Ok="ok",T.ClientNotActive="client-not-active",T.Unimplemented="unimplemented",T.Unsupported="unsupported",T.DocumentNotAttached="document-not-attached",T.DocumentNotDetached="document-not-detached",T.DocumentRemoved="document-removed",T.InvalidObjectKey="invalid-object-key",T.InvalidArgument="invalid-argument"})(Wn||(Wn={}));class Xn extends Error{constructor(f,b){super(b),this.code=f,this.message=b,this.name="YorkieError",this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function Es(T){if(T instanceof Map){const f=Array.from(T);return new Map(JSON.parse(JSON.stringify(f)))}return JSON.parse(JSON.stringify(T))}const ga=T=>T?Object.entries(T).length===0:!0,Li=T=>{const f={};for(const[b,k]of Object.entries(T))f[b]=JSON.stringify(k);return f},Xd=T=>{const f={};for(const[b,k]of Object.entries(T))f[b]=JSON.parse(k);return f};var Qs;(function(T){T.Put="put",T.Clear="clear"})(Qs||(Qs={}));class pp{constructor(f,b){this.context=f,this.presence=b}set(f,b){for(const k of Object.keys(f))this.presence[k]=f[k];this.context.setPresenceChange({type:Qs.Put,presence:Es(this.presence)}),this.context.setReversePresence(f,b)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Qs.Clear})}}const ns="000000000000000000000000",Ys="FFFFFFFFFFFFFFFFFFFFFFFF";class eo{constructor(f,b,k){this.lamport=f,this.delimiter=b,this.actorID=k}static of(f,b,k){return new eo(f,b,k)}static fromStruct(f){return eo.of(Pi.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 eo(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 b=this.actorID.localeCompare(f.actorID);return b!==0?b:this.delimiter>f.delimiter?1:f.delimiter>this.delimiter?-1:0}}const ba=0,ya=4294967295,Ba=Pi.MAX_VALUE,Ei=new eo(Pi.fromNumber(0),ba,ns),Co=new eo(Ba,ya,Ys);function Si(T){return T.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 Kd{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 Ti extends Kd{constructor(f){super(f)}}class Ss extends Kd{}class Lo{constructor(f,b){this.strKey=f,this.value=b}static of(f,b){return new Lo(f,b)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(f){return this.value.remove(f)}}class to{constructor(){this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new to}set(f,b,k){let D;const K=this.nodeMapByKey.get(f);K!=null&&!K.isRemoved()&&K.remove(k)&&(D=K.getValue());const re=Lo.of(f,b);return this.nodeMapByCreatedAt.set(b.getCreatedAt().toIDString(),re),(K==null||k.after(K.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(f,re),b.setMovedAt(k)),D}delete(f,b){this.nodeMapByCreatedAt.has(f.toIDString())||c.fatal(`fail to find ${f.toIDString()}`);const k=this.nodeMapByCreatedAt.get(f.toIDString());return k.remove(b),k.getValue()}subPathOf(f){const b=this.nodeMapByCreatedAt.get(f.toIDString());if(b)return b.getStrKey()}purge(f){const b=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());if(!b){c.fatal(`fail to find ${f.getCreatedAt().toIDString()}`);return}const k=this.nodeMapByKey.get(b.getStrKey());b===k&&this.nodeMapByKey.delete(k.getStrKey()),this.nodeMapByCreatedAt.delete(b.getValue().getCreatedAt().toIDString())}deleteByKey(f,b){const k=this.nodeMapByKey.get(f);if(k!=null&&k.remove(b))return k.getValue()}has(f){const b=this.nodeMapByKey.get(f);return b==null?!1:!b.isRemoved()}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}get(f){const b=this.nodeMapByKey.get(f);if(!(!b||b.isRemoved()))return b}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}class Vr extends Ti{constructor(f,b){super(f),this.memberNodes=b}static create(f,b){if(!b)return new Vr(f,to.create());const k=to.create();for(const[D,K]of Object.entries(b))k.set(D,K.deepcopy(),K.getCreatedAt());return new Vr(f,k)}subPathOf(f){return this.memberNodes.subPathOf(f)}purge(f){this.memberNodes.purge(f)}set(f,b,k){return this.memberNodes.set(f,b,k)}delete(f,b){return this.memberNodes.delete(f,b)}deleteByKey(f,b){return this.memberNodes.deleteByKey(f,b)}get(f){const b=this.memberNodes.get(f);return b==null?void 0:b.getValue()}getByID(f){const b=this.memberNodes.getByID(f);return b==null?void 0:b.getValue()}has(f){return this.memberNodes.has(f)}toJSON(){const f=[];for(const[b,k]of this)f.push(`"${Si(b)}":${k.toJSON()}`);return`{${f.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(const[b,k]of this){const{createdAt:D,value:K,type:re}=k.toJSForTest();f[b]={key:b,createdAt:D,value:K,type:re}}return{createdAt:this.getCreatedAt().toTestString(),value:f,type:"YORKIE_OBJECT"}}getKeys(){const f=Array();for(const[b]of this)f.push(b);return f}toSortedJSON(){var f;const b=Array();for(const[D]of this)b.push(D);const k=[];for(const D of b.sort()){const K=(f=this.memberNodes.get(D))===null||f===void 0?void 0:f.getValue();k.push(`"${Si(D)}":${K.toSortedJSON()}`)}return`{${k.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const f=Vr.create(this.getCreatedAt());for(const b of this.memberNodes)f.memberNodes.set(b.getStrKey(),b.getValue().deepcopy(),this.getPositionedAt());return f.remove(this.getRemovedAt()),f}getDescendants(f){for(const b of this.memberNodes){const k=b.getValue();if(f(k,this))return;k instanceof Ti&&k.getDescendants(f)}}*[Symbol.iterator](){const f=new Set;for(const b of this.memberNodes)f.has(b.getStrKey())||(f.add(b.getStrKey()),b.isRemoved()||(yield[b.getStrKey(),b.getValue()]))}}var Fr;(function(T){T.Local="local",T.Remote="remote",T.UndoRedo="undoredo"})(Fr||(Fr={}));class li{constructor(f,b){this.parentCreatedAt=f,this.executedAt=b}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 rs{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 _o{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 b=this.root;for(;;)if(b.hasLeft()&&f<=b.getLeftWeight())b=b.getLeft();else if(b.hasRight()&&b.getLeftWeight()+b.getLength()b.getLength()&&c.fatal(`out of index range: pos: ${f} > node.length: ${b.getLength()}`),[b,f]}indexOf(f){if(!f||f!==this.root&&!f.hasLinks())return-1;let b=0,k=f,D;for(;k;)(!D||D===k.getRight())&&(b+=k.getLength()+(k.hasLeft()?k.getLeftWeight():0)),D=k,k=k.getParent();return b-f.getLength()}getRoot(){return this.root}insert(f){return this.insertAfter(this.root,f)}insertAfter(f,b){return f?(this.splayNode(f),this.root=b,b.setRight(f.getRight()),f.hasRight()&&f.getRight().setParent(b),b.setLeft(f),f.setParent(b),f.setRight(),this.updateWeight(f),this.updateWeight(b),b):(this.root=b,b)}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 b=new _o(f.getLeft());b.root&&b.root.setParent();const k=new _o(f.getRight());if(k.root&&k.root.setParent(),b.root){const D=b.getRightmost();b.splayNode(D),b.root.setRight(k.root),k.root&&k.root.setParent(b.root),this.root=b.root}else this.root=k.root;f.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(f,b){if(!b){this.splayNode(f),this.cutOffRight(f);return}this.splayNode(f),this.splayNode(b),b.getLeft()!=f&&this.rotateRight(f),this.cutOffRight(f)}cutOffRight(f){const b=[];this.traversePostorder(f.getRight(),b);for(const k of b)k.initWeight();this.updateTreeWeight(f)}toTestString(){const f=[];return this.traverseInorder(this.root,f),f.map(b=>`[${b.getWeight()},${b.getLength()}]${b.getValue()||""}`).join("")}checkWeight(){const f=[];this.traverseInorder(this.root,f);for(const b of f)if(b.getWeight()!=b.getLength()+b.getLeftWeight()+b.getRightWeight())return!1;return!0}getRightmost(){let f=this.root;for(;f.hasRight();)f=f.getRight();return f}traverseInorder(f,b){f&&(this.traverseInorder(f.getLeft(),b),b.push(f),this.traverseInorder(f.getRight(),b))}traversePostorder(f,b){f&&(this.traversePostorder(f.getLeft(),b),this.traversePostorder(f.getRight(),b),b.push(f))}rotateLeft(f){const b=f.getParent();b.hasParent()?b===b.getParent().getLeft()?b.getParent().setLeft(f):b.getParent().setRight(f):this.root=f,f.setParent(b.getParent()),b.setRight(f.getLeft()),b.hasRight()&&b.getRight().setParent(b),f.setLeft(b),f.getLeft().setParent(f),this.updateWeight(b),this.updateWeight(f)}rotateRight(f){const b=f.getParent();b.hasParent()?b===b.getParent().getLeft()?b.getParent().setLeft(f):b.getParent().setRight(f):this.root=f,f.setParent(b.getParent()),b.setLeft(f.getRight()),b.hasLeft()&&b.getLeft().setParent(b),f.setRight(b),f.getRight().setParent(f),this.updateWeight(b),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 Pn;(function(T){T[T.Null=0]="Null",T[T.Boolean=1]="Boolean",T[T.Integer=2]="Integer",T[T.Long=3]="Long",T[T.Double=4]="Double",T[T.String=5]="String",T[T.Bytes=6]="Bytes",T[T.Date=7]="Date"})(Pn||(Pn={}));class ri extends Kd{constructor(f,b){super(b),this.valueType=ri.getPrimitiveType(f),this.value=f===void 0?null:f}static of(f,b){return new ri(f,b)}static valueFromBytes(f,b){switch(f){case Pn.Null:return null;case Pn.Boolean:return!!b[0];case Pn.Integer:return b[0]|b[1]<<8|b[2]<<16|b[3]<<24;case Pn.Double:{const k=new DataView(b.buffer);return b.forEach(function(D,K){k.setUint8(K,D)}),k.getFloat64(0,!0)}case Pn.String:return new TextDecoder("utf-8").decode(b);case Pn.Long:return Pi.fromBytesLE(Array.from(b));case Pn.Bytes:return b;case Pn.Date:return new Date(Pi.fromBytesLE(Array.from(b),!0).toNumber());default:throw new Xn(Wn.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return this.valueType===Pn.String?`"${Si(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const f=ri.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 Pn.Null;case"boolean":return Pn.Boolean;case"number":return this.isInteger(f)?Pn.Integer:Pn.Double;case"string":return Pn.String;case"object":if(f===null)return Pn.Null;if(f instanceof Pi)return Pn.Long;if(f instanceof Uint8Array)return Pn.Bytes;if(f instanceof Date)return Pn.Date}}static isSupport(f){return ri.getPrimitiveType(f)!==void 0}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===Pn.Integer||f===Pn.Long||f===Pn.Double}getValue(){return this.value}toBytes(){switch(this.valueType){case Pn.Null:return new Uint8Array;case Pn.Boolean:return this.value?new Uint8Array([1]):new Uint8Array([0]);case Pn.Integer:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case Pn.Double:{const f=this.value,b=new Uint8Array(8);return new DataView(b.buffer).setFloat64(0,f,!0),b}case Pn.String:return new TextEncoder().encode(this.value);case Pn.Long:{const b=this.value.toBytesLE();return Uint8Array.from(b)}case Pn.Bytes:return this.value;case Pn.Date:{const f=this.value,b=Pi.fromNumber(f.getTime(),!0).toBytesLE();return Uint8Array.from(b)}default:throw new Xn(Wn.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class Jd extends rs{constructor(f){super(f),this.value=f}static createAfter(f,b){const k=new Jd(b),D=f.next;return f.next=k,k.prev=f,k.next=D,D&&(D.prev=k),k}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 zc{constructor(){const f=ri.of(0,Ei);f.setRemovedAt(Ei),this.dummyHead=new Jd(f),this.last=this.dummyHead,this.nodeMapByIndex=new _o,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new zc}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(f,b){let k=this.nodeMapByCreatedAt.get(f.toIDString());for(k||c.fatal(`cant find the given node: ${f.toIDString()}`);k.getNext()&&k.getNext().getPositionedAt().after(b);)k=k.getNext();return k}release(f){this.last===f&&(this.last=f.getPrev()),f.release(),this.nodeMapByIndex.delete(f),this.nodeMapByCreatedAt.delete(f.getValue().getCreatedAt().toIDString())}insertAfter(f,b,k=b.getCreatedAt()){const D=this.findNextBeforeExecutedAt(f,k),K=Jd.createAfter(D,b);D===this.last&&(this.last=K),this.nodeMapByIndex.insertAfter(D,K),this.nodeMapByCreatedAt.set(K.getCreatedAt().toIDString(),K)}moveAfter(f,b,k){const D=this.nodeMapByCreatedAt.get(f.toIDString());D||c.fatal(`cant find the given node: ${f.toIDString()}`);const K=this.nodeMapByCreatedAt.get(b.toIDString());K||c.fatal(`cant find the given node: ${b.toIDString()}`),D!==K&&(!K.getValue().getMovedAt()||k.after(K.getValue().getMovedAt()))&&(this.release(K),this.insertAfter(D.getCreatedAt(),K.getValue(),k),K.getValue().setMovedAt(k))}insert(f){this.insertAfter(this.last.getCreatedAt(),f)}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}subPathOf(f){const b=this.nodeMapByCreatedAt.get(f.toIDString());if(b)return String(this.nodeMapByIndex.indexOf(b))}purge(f){const b=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());b||c.fatal(`fail to find the given createdAt: ${f.getCreatedAt().toIDString()}`),this.release(b)}getByIndex(f){if(f>=this.length)return;const[b,k]=this.nodeMapByIndex.find(f);let D=b;if(f===0&&b===this.dummyHead||k>0)do D&&(D=D.getNext());while(D&&D.isRemoved());return D}getPrevCreatedAt(f){let b=this.nodeMapByCreatedAt.get(f.toIDString());do b=b.getPrev();while(this.dummyHead!==b&&b.isRemoved());return b.getValue().getCreatedAt()}delete(f,b){const k=this.nodeMapByCreatedAt.get(f.toIDString()),D=k.isRemoved();return k.remove(b)&&!D&&this.nodeMapByIndex.splayNode(k),k.getValue()}deleteByIndex(f,b){const k=this.getByIndex(f);if(k)return k.remove(b)&&this.nodeMapByIndex.splayNode(k),k.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const f=[];for(const b of this){const k=`${b.getCreatedAt().toIDString()}:${b.getValue().toJSON()}`;b.isRemoved()?f.push(`{${k}}`):f.push(`[${k}]`)}return f.join("")}*[Symbol.iterator](){let f=this.dummyHead.getNext();for(;f;)yield f,f=f.getNext()}}class Ts extends Ti{constructor(f,b){super(f),this.elements=b}static create(f,b){if(!b)return new Ts(f,zc.create());const k=zc.create();for(const D of b)k.insertAfter(k.getLastCreatedAt(),D.deepcopy());return new Ts(f,k)}subPathOf(f){return this.elements.subPathOf(f)}purge(f){this.elements.purge(f)}insertAfter(f,b){this.elements.insertAfter(f,b)}moveAfter(f,b,k){this.elements.moveAfter(f,b,k)}get(f){const b=this.elements.getByIndex(f);return b==null?void 0:b.getValue()}getByID(f){const b=this.elements.getByID(f);return b==null?void 0:b.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(f){return this.elements.getPrevCreatedAt(f)}delete(f,b){return this.elements.delete(f,b)}deleteByIndex(f,b){return this.elements.deleteByIndex(f,b)}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 b of this.elements){const k=b.getValue();if(f(k,this))return;k instanceof Ti&&k.getDescendants(f)}}toJSON(){const f=[];for(const b of this)f.push(b.toJSON());return`[${f.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(let b=0;bb[0].localeCompare(k[0])).map(([b,k])=>`${b}="${JSON.parse(k.getValue())}"`).join(" ")}`:""}size(){return this.nodeMapByKey.size}toObject(){const f={};for(const[b,k]of this.nodeMapByKey)f[b]=k.getValue();return f}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}var Gs;(function(T){T.Content="content",T.Style="style"})(Gs||(Gs={}));class Mo{constructor(f){this.attributes=go.create(),this.content=f}static create(f){return new Mo(f)}get length(){return this.content.length}substring(f,b){const k=new Mo(this.content.substring(f,b));return k.attributes=this.attributes.deepcopy(),k}setAttr(f,b,k){this.attributes.set(f,b,k)}getAttrs(){return this.attributes}toString(){return this.content}toJSON(){const f=Si(this.content),b=this.attributes.toObject(),k=[];for(const[D,K]of Object.entries(b)){const re=JSON.parse(K),fe=typeof re=="string"?`"${Si(D)}":"${Si(re)}"`:`"${Si(D)}":${String(re)}`;k.push(fe)}return k.sort(),k.length===0?`{"val":"${f}"}`:`{"attrs":{${k.join(",")}},"val":"${f}"}`}getAttributes(){return this.attributes.toObject()}getContent(){return this.content}}class is extends Ss{constructor(f,b){super(b),this.rgaTreeSplit=f}static create(f,b){return new is(f,b)}edit(f,b,k,D,K){const re=b?Mo.create(b):void 0;if(re&&D)for(const[tn,xt]of Object.entries(D))re.setAttr(tn,xt,k);const[fe,Ne,ot]=this.rgaTreeSplit.edit(f,k,re,K),Dt=ot.map(tn=>({...tn,value:tn.value?{attributes:Xd(tn.value.getAttributes()),content:tn.value.getContent()}:{attributes:void 0,content:""},type:Gs.Content}));return[Ne,Dt,[fe,fe]]}setStyle(f,b,k,D){const[,K]=this.rgaTreeSplit.findNodeWithSplit(f[1],k),[,re]=this.rgaTreeSplit.findNodeWithSplit(f[0],k),fe=[],Ne=this.rgaTreeSplit.findBetween(re,K),ot=new Map,Dt=[];for(const tn of Ne){const xt=tn.getCreatedAt().getActorID(),wn=D!=null&&D.size?D.has(xt)?D.get(xt):Ei:Co;if(tn.canStyle(k,wn)){const Un=ot.get(xt),or=tn.getCreatedAt();(!Un||or.after(Un))&&ot.set(xt,or),Dt.push(tn)}}for(const tn of Dt){if(tn.isRemoved())continue;const[xt,wn]=this.rgaTreeSplit.findIndexesFromRange(tn.createPosRange());fe.push({type:Gs.Style,actor:k.getActorID(),from:xt,to:wn,value:{attributes:Xd(b)}});for(const[Un,or]of Object.entries(b))tn.getValue().setAttr(Un,or,k)}return[ot,fe]}indexRangeToPosRange(f,b){const k=this.rgaTreeSplit.indexToPos(f);return f===b?[k,k]:[k,this.rgaTreeSplit.indexToPos(b)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const f=[];for(const b of this.rgaTreeSplit)b.isRemoved()||f.push(b.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 b of this.rgaTreeSplit)if(!b.isRemoved()){const k=b.getValue();f.push({attributes:Xd(k.getAttributes()),content:k.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 is(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return f.remove(this.getRemovedAt()),f}findIndexesFromRange(f){return this.rgaTreeSplit.findIndexesFromRange(f)}}class os extends li{constructor(f,b,k,D,K,re,fe){super(f,fe),this.fromPos=b,this.toPos=k,this.maxCreatedAtMapByActor=D,this.content=K,this.attributes=re}static create(f,b,k,D,K,re,fe){return new os(f,b,k,D,K,re,fe)}execute(f){const b=f.findByCreatedAt(this.getParentCreatedAt());b||c.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof is||c.fatal("fail to execute, only Text can execute edit");const k=b,[,D]=k.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(k),{opInfos:D.map(({from:K,to:re,value:fe})=>({type:"edit",from:K,to:re,value:fe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),b=this.fromPos.toTestString(),k=this.toPos.toTestString(),D=this.content;return`${f}.EDIT(${b},${k},${D})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Ao extends li{constructor(f,b,k,D,K,re){super(f,re),this.fromPos=b,this.toPos=k,this.maxCreatedAtMapByActor=D,this.attributes=K}static create(f,b,k,D,K,re){return new Ao(f,b,k,D,K,re)}execute(f){const b=f.findByCreatedAt(this.getParentCreatedAt());b||c.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof is||c.fatal("fail to execute, only Text can execute edit");const k=b,[,D]=k.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);return{opInfos:D.map(({from:K,to:re,value:fe})=>({type:"style",from:K,to:re,value:fe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),b=this.fromPos.toTestString(),k=this.toPos.toTestString(),D=this.attributes;return`${f}.STYL(${b},${k},${JSON.stringify(D)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const qs=2,hl="root",Qn="text";function mr(T,f){let b=0;const k=T.children;for(let D=0;D0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let f=this.parent;const b=this.isRemoved?-1:1;for(;f;)f.size+=this.paddedSize*b,f=f.parent}get isText(){return this.type===Qn}get paddedSize(){return this.size+(this.isText?0:qs)}isAncestorOf(f){return ml(this,f)}get nextSibling(){const f=this.parent.findOffset(this),b=this.parent.children[f+1];if(b)return b}splitText(f,b){if(f===0||f===this.size)return;const k=this.value.slice(0,f),D=this.value.slice(f);if(!D.length)return;this.value=k;const K=this.cloneText(f+b);return K.value=D,this.parent.insertAfterInternal(K,this),K}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 b of f)b.parent=this,b.updateAncestorsSize()}prepend(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...f);for(const b of f)b.parent=this,b.isRemoved||b.updateAncestorsSize()}insertBefore(f,b){if(this.isText)throw new Error("Text node cannot have children");const k=this._children.indexOf(b);if(k===-1)throw new Error("child not found");this.insertAtInternal(f,k),f.updateAncestorsSize()}insertAfter(f,b){if(this.isText)throw new Error("Text node cannot have children");const k=this._children.indexOf(b);if(k===-1)throw new Error("child not found");this.insertAtInternal(f,k+1),f.updateAncestorsSize()}insertAt(f,b){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(f,b),f.updateAncestorsSize()}removeChild(f){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(f);if(b===-1)throw new Error("child not found");this._children.splice(b,1),f.parent=void 0}splitElement(f,b){const k=this.cloneElement(b);this.parent.insertAfterInternal(k,this),k.updateAncestorsSize();const D=this.children.slice(0,f),K=this.children.slice(f);this._children=D,k._children=K,this.size=this._children.reduce((re,fe)=>re+fe.paddedSize,0),k.size=k._children.reduce((re,fe)=>re+fe.paddedSize,0);for(const re of k._children)re.parent=k;return k}insertAfterInternal(f,b){if(this.isText)throw new Error("Text node cannot have children");const k=this._children.indexOf(b);if(k===-1)throw new Error("child not found");this.insertAtInternal(f,k+1)}insertAtInternal(f,b){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(b,0,f),f.parent=this}findOffset(f){if(this.isText)throw new Error("Text node cannot have children");if(f.isRemoved){const b=this._children.indexOf(f);return this.allChildren.splice(0,b).filter(D=>!D.isRemoved).length}return this.children.indexOf(f)}findBranchOffset(f){if(this.isText)throw new Error("Text node cannot have children");let b=f;for(;b;){const k=this._children.indexOf(b);if(k!==-1)return k;b=b.parent}return-1}}function ml(T,f){if(T===f)return!1;for(;f.parent;){if(f.parent===T)return!0;f=f.parent}return!1}var br;(function(T){T.Start="Start",T.End="End",T.Text="Text"})(br||(br={}));function Ro(T,f,b,k){if(f>b)throw new Error(`from is greater than to: ${f} > ${b}`);if(f>T.size)throw new Error(`from is out of range: ${f} > ${T.size}`);if(b>T.size)throw new Error(`to is out of range: ${b} > ${T.size}`);if(f===b)return;let D=0;for(const K of T.children){if(f-K.paddedSizeK.size;(K.isText||Ne)&&k([K,K.isText?br.Text:br.Start],ot),Ro(K,Math.max(0,re),Math.min(fe,K.size),k),ot&&k([K,br.End],ot)}D+=K.paddedSize}}function va(T,f,b=0){for(const k of T.children)va(k,f,b+1);f(T,b)}function Zs(T,f,b=0){for(const k of T._children)Zs(k,f,b+1);f(T,b)}function ws(T,f,b=!0){if(f>T.size)throw new Error(`index is out of range: ${f} > ${T.size}`);if(T.isText)return{node:T,offset:f};let k=0,D=0;for(const K of T.children){if(b&&K.isText&&K.size>=f-D)return ws(K,f-D,b);if(f===D)return{node:T,offset:k};if(!b&&K.paddedSize===f-D)return{node:T,offset:k+1};if(K.paddedSize>f-D)return ws(K,f-D-1,b);D+=K.paddedSize,k+=1}return{node:T,offset:k}}function V(T){return T.isText||T.children.length===0?T:V(T.children[0])}function R(T,f){if(T.sizeT===f?0:T0)if(b.right)b.right.parent=b,b=b.right;else return b;else if(k<0)if(b.left)b.left.parent=b,b=b.left;else{let D=b.parent,K=b;for(;D&&K===D.left;)K=D,D=D.parent;return D}else return b}}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,b){for(;b;){const k=this.comparator(f,b.key);if(k===0)return b;k<0?b=b.left:k>0&&(b=b.right)}}putInternal(f,b,k){if(!k)return this.counter+=1,new xe(f,b,!0);const D=this.comparator(f,k.key);return D<0?k.left=this.putInternal(f,b,k.left):D>0?k.right=this.putInternal(f,b,k.right):k.value=b,this.isRed(k.right)&&!this.isRed(k.left)&&(k=this.rotateLeft(k)),this.isRed(k.left)&&this.isRed(k.left.left)&&(k=this.rotateRight(k)),this.isRed(k.left)&&this.isRed(k.right)&&this.flipColors(k),k}removeInternal(f,b){if(this.comparator(b,f.key)<0)!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeInternal(f.left,b);else{if(this.isRed(f.left)&&(f=this.rotateRight(f)),this.comparator(b,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(b,f.key)===0){this.counter-=1;const k=this.min(f.right);f.value=k.value,f.key=k.key,f.right=this.removeMin(f.right)}else f.right=this.removeInternal(f.right,b)}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 b=f.right;return f.right=b.left,b.left=f,b.isRed=b.left.isRed,b.left.isRed=!0,b}rotateRight(f){const b=f.left;return f.left=b.right,b.right=f,b.isRed=b.right.isRed,b.right.isRed=!0,b}flipColors(f){f.isRed=!f.isRed,f.left.isRed=!f.left.isRed,f.right.isRed=!f.right.isRed}}var kt;(function(T){T.Content="content",T.Style="style"})(kt||(kt={}));class lt{constructor(f,b){this.parentID=f,this.leftSiblingID=b}static of(f,b){return new lt(f,b)}static fromTreePos(f){const{offset:b}=f;let{node:k}=f,D;return k.isText?(k.parent.children[0]===k&&b===0?D=k.parent:D=k,k=k.parent):b===0?D=k:D=k.children[b-1],lt.of(k.id,It.of(D.getCreatedAt(),D.getOffset()+b))}getParentID(){return this.parentID}static fromStruct(f){return lt.of(It.of(eo.fromStruct(f.parentID.createdAt),f.parentID.offset),It.of(eo.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 b=this.getParentID(),k=this.getLeftSiblingID(),D=f.findFloorNode(b);let K=f.findFloorNode(k);if(!D||!K)throw new Error(`cannot find node at ${this}`);return!k.equals(b)&&k.getOffset()>0&&k.getOffset()===K.id.getOffset()&&K.insPrevID&&(K=f.findFloorNode(K.insPrevID)),[D,K]}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 It{constructor(f,b){this.createdAt=f,this.offset=b}static of(f,b){return new It(f,b)}static fromStruct(f){return It.of(eo.fromStruct(f.createdAt),f.offset)}static createComparator(){return(f,b)=>{const k=f.getCreatedAt().compare(b.getCreatedAt());return k!==0?k:f.getOffset()>b.getOffset()?1:f.getOffset(){const D=k.deepcopy();return D.parent=b,D}),b}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 b=!this.removedAt;(!this.removedAt||this.removedAt.compare(f)>0)&&(this.removedAt=f),b&&(this.parent.removedAt?this.parent.size-=this.paddedSize:this.updateAncestorsSize())}cloneText(f){return new Ht(It.of(this.id.getCreatedAt(),f),this.type,void 0,void 0,this.removedAt)}cloneElement(f){return new Ht(It.of(f(),0),this.type,void 0,void 0,this.removedAt)}split(f,b,k){const D=this.isText?this.splitText(b,this.id.getOffset()):this.splitElement(b,k);if(D){if(D.insPrevID=this.id,this.insNextID){const K=f.findFloorNode(this.insNextID);K.insPrevID=D.id,D.insNextID=this.insNextID}this.insNextID=D.id,f.registerNode(D)}return D}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(f,b){return!this.getCreatedAt().after(b)&&(!this.removedAt||f.after(this.removedAt))}}function Fn(T){var f;if(T.isText){const b=T;return{type:b.type,value:b.value}}return{type:T.type,children:T.children.map(Fn),attributes:T.attrs?Xd((f=T.attrs)===null||f===void 0?void 0:f.toObject()):void 0}}function Jr(T){var f;return T.isText?T.value:`<${T.type}${((f=T.attrs)===null||f===void 0?void 0:f.toXML())||""}>${T.children.map(b=>Jr(b)).join("")}`}function Hn(T){if(T.isText){const f=T;return{type:f.type,value:f.value,size:f.size,isRemoved:f.isRemoved}}return{type:T.type,children:T.children.map(Hn),size:T.size,isRemoved:T.isRemoved}}class pi extends Ss{constructor(f,b){super(b),this.indexTree=new U(f),this.nodeMapByID=new Ze(It.createComparator()),this.removedNodeMap=new Map,this.indexTree.traverse(k=>{this.nodeMapByID.put(k.id,k)})}static create(f,b){return new pi(f,b)}findFloorNode(f){const b=this.nodeMapByID.floorEntry(f);if(!(!b||!b.key.getCreatedAt().equals(f.getCreatedAt())))return b.value}registerNode(f){this.nodeMapByID.put(f.id,f)}findNodesAndSplitText(f,b){const[k,D]=f.toTreeNodes(this);let K=D;const re=k===K,fe=K.parent&&!re?K.parent:k;if(K.isText&&K.split(this,f.getLeftSiblingID().getOffset()-K.id.getOffset()),b){const Ne=fe.allChildren,ot=re?0:Ne.indexOf(K)+1;for(let Dt=ot;Dt{if(!Dt.isRemoved&&!Dt.isText&&b){Dt.attrs||(Dt.attrs=new go);for(const[tn,xt]of Object.entries(b))Dt.attrs.set(tn,xt,k);Ne.push({type:kt.Style,from:this.toIndex(D,K),to:this.toIndex(re,fe),fromPath:this.toPath(D,K),toPath:this.toPath(re,fe),actor:k.getActorID(),value:ot})}}),Ne}edit(f,b,k,D,K,re){const[fe,Ne]=this.findNodesAndSplitText(f[0],D),[ot,Dt]=this.findNodesAndSplitText(f[1],D),tn=this.toIndex(fe,Ne),xt=this.toPath(fe,Ne),wn=[],Un=[],or=[],Pr=new Map;this.traverseInPosRange(fe,Ne,ot,Dt,([fr,Fi],Lr)=>{if(Fi===br.Start&&!Lr)for(const Tp of fr.children)or.push(Tp);const ro=fr.getCreatedAt().getActorID(),af=re?re.has(ro)?re.get(ro):Ei:Co;if(fr.canDelete(D,af)||wn.includes(fr.parent)){const Tp=Pr.get(ro),fm=fr.getCreatedAt();(!Tp||fm.after(Tp))&&Pr.set(ro,fm),(Fi===br.Text||Fi===br.Start)&&wn.push(fr),Un.push([fr,Fi])}});const Bo=this.makeDeletionChanges(Un,D);for(const fr of wn)fr.remove(D),fr.isRemoved&&this.removedNodeMap.set(fr.id.toIDString(),fr);for(const fr of or)fr.removedAt||fe.append(fr);if(k>0){let fr=0,Fi=fe,Lr=Ne;for(;fr{fe.isRemoved&&(ro.remove(D),this.removedNodeMap.set(ro.id.toIDString(),ro)),this.nodeMapByID.put(ro.id,ro)}),Lr.isRemoved||fr.push(Lr);if(fr.length){const Lr=fr.map(ro=>Fn(ro));Bo.length&&Bo[Bo.length-1].from===tn?Bo[Bo.length-1].value=Lr:Bo.push({type:kt.Content,from:tn,to:tn,fromPath:xt,toPath:xt,actor:D.getActorID(),value:Lr})}}return[Bo,Pr]}editT(f,b,k,D,K){const re=this.findPos(f[0]),fe=this.findPos(f[1]);this.edit([re,fe],b,k,D,K)}move(f,b,k){throw new Error(`not implemented: ${f}, ${b}, ${k}`)}purgeRemovedNodesBefore(f){var b;const k=new Set;let D=0;for(const[,K]of this.removedNodeMap)K.removedAt&&f.compare(K.removedAt)>=0&&(k.add(K),D++);for(const K of k)(b=K.parent)===null||b===void 0||b.removeChild(K),this.nodeMapByID.remove(K.id),this.purge(K),this.removedNodeMap.delete(K.id.toIDString());return D}purge(f){const b=f.insPrevID,k=f.insNextID;if(b){const D=this.findFloorNode(b);D.insNextID=k}if(k){const D=this.findFloorNode(k);D.insPrevID=b}f.insPrevID=void 0,f.insNextID=void 0}findPos(f,b=!0){const k=this.indexTree.findTreePos(f,b);return lt.fromTreePos(k)}getRemovedNodesLen(){return this.removedNodeMap.size}pathToPosRange(f){const b=this.pathToIndex(f);return[this.findPos(b),this.findPos(b+1)]}pathToPos(f){const b=this.indexTree.pathToIndex(f);return this.findPos(b)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getIndexTree(){return this.indexTree}toXML(){return Jr(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(),b=(k,D=void 0,K=0)=>{var re,fe,Ne;const ot={type:k.type,parent:D,size:k.size,id:k.id.toTestString(),removedAt:(re=k.removedAt)===null||re===void 0?void 0:re.toTestString(),insPrev:(fe=k.insPrevID)===null||fe===void 0?void 0:fe.toTestString(),insNext:(Ne=k.insNextID)===null||Ne===void 0?void 0:Ne.toTestString(),value:k.isText?k.value:void 0,isRemoved:k.isRemoved,children:[],depth:K};for(const Dt of k.children)ot.children.push(b(Dt,ot.id,K+1));return ot};return b(f)}getRootTreeNode(){return Fn(this.indexTree.getRoot())}toTestTreeNode(){return Hn(this.indexTree.getRoot())}toSortedJSON(){return this.toJSON()}deepcopy(){const f=this.getRoot();return new pi(f.deepcopy(),this.getCreatedAt())}toPath(f,b){const k=this.toTreePos(f,b);return k?this.indexTree.treePosToPath(k):[]}toIndex(f,b){const k=this.toTreePos(f,b);return k?this.indexTree.indexOf(k):-1}indexToPath(f){return this.indexTree.indexToPath(f)}pathToIndex(f){return this.indexTree.pathToIndex(f)}indexRangeToPosRange(f){const b=this.findPos(f[0]);return f[0]===f[1]?[b,b]:[b,this.findPos(f[1])]}indexRangeToPosStructRange(f){const[b,k]=f,D=this.findPos(b);return b===k?[D.toStruct(),D.toStruct()]:[D.toStruct(),this.findPos(k).toStruct()]}posRangeToPathRange(f){const[b,k]=this.findNodesAndSplitText(f[0]),[D,K]=this.findNodesAndSplitText(f[1]);return[this.toPath(b,k),this.toPath(D,K)]}posRangeToIndexRange(f){const[b,k]=this.findNodesAndSplitText(f[0]),[D,K]=this.findNodesAndSplitText(f[1]);return[this.toIndex(b,k),this.toIndex(D,K)]}traverseInPosRange(f,b,k,D,K){const re=this.toIndex(f,b),fe=this.toIndex(k,D);return this.indexTree.tokensBetween(re,fe,K)}toTreePos(f,b){if(!f||!b)return;if(f.isRemoved){let D;for(;f.isRemoved;)D=f,f=D.parent;const K=f.findOffset(D);return{node:f,offset:K}}if(f===b)return{node:f,offset:0};let k=f.findOffset(b);if(!b.isRemoved){if(b.isText)return{node:b,offset:b.paddedSize};k++}return{node:f,offset:k}}makeDeletionChanges(f,b){const k=[],D=[];let K=null,re=null;for(let fe=0;fe0&&Pr===k[k.length-1].to?(k[k.length-1].to=Bo,k[k.length-1].toPath=this.toPath(or,xt)):k.push({type:kt.Content,from:Pr,to:Bo,fromPath:this.toPath(Un,Dt),toPath:this.toPath(or,xt),actor:b.getActorID()}))}return k}findRightToken([f,b]){if(b===br.Start){const fe=f.allChildren;return fe.length>0?[fe[0],fe[0].isText?br.Text:br.Start]:[f,br.End]}const k=f.parent,D=k.allChildren,K=D.indexOf(f);if(k&&K===D.length-1)return[k,br.End];const re=D[K+1];return[re,re.isText?br.Text:br.Start]}findLeftToken([f,b]){if(b===br.End){const fe=f.allChildren;if(fe.length>0){const Ne=fe[fe.length-1];return[Ne,Ne.isText?br.Text:br.End]}return[f,br.Start]}const k=f.parent,D=k.allChildren,K=D.indexOf(f);if(k&&K===0)return[k,br.Start];const re=D[K-1];return[re,re.isText?br.Text:br.End]}}class Qi extends li{constructor(f,b,k,D,K,re,fe){super(f,fe),this.fromPos=b,this.toPos=k,this.contents=D,this.splitLevel=K,this.maxCreatedAtMapByActor=re}static create(f,b,k,D,K,re,fe){return new Qi(f,b,k,D,K,re,fe)}execute(f){var b;const k=f.findByCreatedAt(this.getParentCreatedAt());k||c.fatal(`fail to find ${this.getParentCreatedAt()}`),k instanceof pi||c.fatal("fail to execute, only Tree can execute edit");const D=this.getExecutedAt(),K=k,[re]=K.edit([this.fromPos,this.toPos],(b=this.contents)===null||b===void 0?void 0:b.map(fe=>fe.deepcopy()),this.splitLevel,D,(()=>{let fe=D.getDelimiter();return this.contents!==void 0&&(fe+=this.contents.length),()=>eo.of(D.getLamport(),++fe,D.getActorID())})(),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(K),{opInfos:re.map(({from:fe,to:Ne,value:ot,splitLevel:Dt,fromPath:tn,toPath:xt})=>({type:"tree-edit",path:f.createPath(this.getParentCreatedAt()),from:fe,to:Ne,value:ot,splitLevel:Dt,fromPath:tn,toPath:xt}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),b=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,k=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`,D=this.contents;return`${f}.EDIT(${b},${k},${D==null?void 0:D.join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class iu{constructor(f,b,k){this.clientSeq=f,this.lamport=b,this.actor=k}static of(f,b,k){return new iu(f,b,k)}next(){return new iu(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(f){return f.greaterThan(this.lamport)?new iu(this.clientSeq,f,this.actor):new iu(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(f){return eo.of(this.lamport,f,this.actor)}setActor(f){return new iu(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 Xg=new iu(0,Pi.fromInt(0,!0),ns);class Ua{constructor({id:f,operations:b,presenceChange:k,message:D}){this.id=f,this.operations=b||[],this.presenceChange=k,this.message=D}static create({id:f,operations:b,presenceChange:k,message:D}){return new Ua({id:f,operations:b,presenceChange:k,message:D})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(f){for(const b of this.operations)b.setActor(f);this.id=this.id.setActor(f)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(f,b,k){const D=[],K=[];for(const re of this.operations){const fe=re.execute(f,k);if(!fe)continue;const{opInfos:Ne,reverseOp:ot}=fe;D.push(...Ne),ot&&K.unshift(ot)}return this.presenceChange&&(this.presenceChange.type===Qs.Put?b.set(this.id.getActorID(),Es(this.presenceChange.presence)):b.delete(this.id.getActorID())),{opInfos:D,reverseOps:K}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class ef{constructor(f,b,k,D,K,re){this.documentKey=f,this.checkpoint=b,this.isRemoved=k,this.changes=D,this.snapshot=K,this.minSyncedTicket=re}static create(f,b,k,D,K,re){return new ef(f,b,k,D,K,re)}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 Qc{constructor(f,b){this.serverSeq=f,this.clientSeq=b}static of(f,b){return new Qc(f,b)}increaseClientSeq(f){return f===0?this:new Qc(this.serverSeq,this.clientSeq+f)}forward(f){if(this.equals(f))return this;const b=this.serverSeq.greaterThan(f.serverSeq)?this.serverSeq:f.serverSeq,k=Math.max(this.clientSeq,f.clientSeq);return Qc.of(b,k)}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 hi=new Qc(Pi.fromInt(0,!0),0);class $o{constructor(f,b){this.createdAt=f,this.offset=b}static of(f,b){return new $o(f,b)}static fromStruct(f){return $o.of(eo.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 $o(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 D1=$o.of(Ei,0);class gl{constructor(f,b){this.id=f,this.relativeOffset=b}static of(f,b){return new gl(f,b)}static fromStruct(f){const b=$o.fromStruct(f.id);return gl.of(b,f.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return $o.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 ou extends rs{constructor(f,b,k){super(b),this.id=f,this.removedAt=k}static create(f,b){return new ou(f,b)}static createComparator(){return(f,b)=>{const k=f.getCreatedAt().compare(b.getCreatedAt());return k!==0?k:f.getOffset()>b.getOffset()?1:f.getOffset()0&&b.getID().getOffset()==f.getOffset()){if(!b.hasInsPrev())return b;b=b.getInsPrev()}return b}findFloorNode(f){const b=this.treeByID.floorEntry(f);if(b&&!(!b.key.equals(f)&&!b.key.hasSameCreatedAt(f)))return b.value}findBetween(f,b){const k=[];let D=f;for(;D&&D!==b;)k.push(D),D=D.getNext();return k}splitNode(f,b){if(b>f.getContentLength()&&c.fatal("offset should be less than or equal to length"),b===0)return f;if(b===f.getContentLength())return f.getNext();const k=f.split(b);this.treeByIndex.updateWeight(k),this.insertAfter(f,k);const D=f.getInsNext();return D&&D.setInsPrev(k),k.setInsPrev(f),k}deleteNodes(f,b,k){if(!f.length)return[[],new Map,new Map];const[D,K]=this.filterNodes(f,b,k),re=new Map,fe=new Map,Ne=this.makeChanges(K,b);for(const ot of D){const Dt=ot.getCreatedAt().getActorID();(!re.has(Dt)||ot.getID().getCreatedAt().after(re.get(Dt)))&&re.set(Dt,ot.getID().getCreatedAt()),fe.set(ot.getID().toIDString(),ot),ot.remove(b)}return this.deleteIndexNodes(K),[Ne,re,fe]}filterNodes(f,b,k){const D=!!k,K=[],re=[],[fe,Ne]=this.findEdgesOfCandidates(f);re.push(fe);for(const ot of f){const Dt=ot.getCreatedAt().getActorID(),tn=D?k.has(Dt)?k.get(Dt):Ei:Co;ot.canDelete(b,tn)?K.push(ot):re.push(ot)}return re.push(Ne),[K,re]}findEdgesOfCandidates(f){return[f[0].getPrev(),f[f.length-1].getNext()]}makeChanges(f,b){const k=[];let D,K;for(let re=0;re=0&&(this.treeByIndex.delete(k),this.purge(k),this.treeByID.remove(k.getID()),this.removedNodeMap.delete(k.getID().toIDString()),b++);return b}purge(f){const b=f.getPrev(),k=f.getNext(),D=f.getInsPrev(),K=f.getInsNext();b&&b.setNext(k),k&&k.setPrev(b),f.setPrev(void 0),f.setNext(void 0),D&&D.setInsNext(K),K&&K.setInsPrev(D),f.setInsPrev(void 0),f.setInsNext(void 0)}}const KT=T=>T<0?Math.ceil(T):Math.floor(T);var Yi;(function(T){T[T.IntegerCnt=0]="IntegerCnt",T[T.LongCnt=1]="LongCnt"})(Yi||(Yi={}));class Xs extends Kd{constructor(f,b,k){switch(super(k),this.valueType=f,f){case Yi.IntegerCnt:typeof b=="number"?b>Math.pow(2,31)-1||b<-Math.pow(2,31)?this.value=Pi.fromNumber(b).toInt():this.value=KT(b):this.value=b.toInt();break;case Yi.LongCnt:typeof b=="number"?this.value=Pi.fromNumber(b):this.value=b;break;default:throw new Xn(Wn.Unimplemented,`unimplemented type: ${f}`)}}static create(f,b,k){return new Xs(f,b,k)}static valueFromBytes(f,b){switch(f){case Yi.IntegerCnt:return b[0]|b[1]<<8|b[2]<<16|b[3]<<24;case Yi.LongCnt:return Pi.fromBytesLE(Array.from(b));default:throw new Xn(Wn.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=Xs.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 Pi?Yi.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?Yi.LongCnt:Yi.IntegerCnt;default:return}}static isSupport(f){return!!Xs.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===Yi.IntegerCnt||f===Yi.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case Yi.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case Yi.LongCnt:{const b=this.value.toBytesLE();return Uint8Array.from(b)}default:throw new Xn(Wn.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(f){function b(k){if(!k.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof k.getValue()}`)}return b(this),b(f),this.valueType===Yi.LongCnt?this.value=this.value.add(f.getValue()):f.getType()===Pn.Long?this.value=this.value+f.getValue().toInt():this.value=Pi.fromNumber(this.value+KT(f.getValue())).toInt(),this}}class Xu extends li{constructor(f,b,k){super(f,k),this.value=b}static create(f,b,k){return new Xu(f,b,k)}execute(f){const b=f.findByCreatedAt(this.getParentCreatedAt());b||c.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof Xs||c.fatal("fail to execute, only Counter can execute increase");const k=b,D=this.value.deepcopy();return k.increase(D),{opInfos:[{type:"increase",path:f.createPath(this.getParentCreatedAt()),value:D.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const f=this.value.deepcopy(),k=f.getType()===Pn.Long?f.getValue().multiply(-1):f.getValue()*-1;return Xu.create(this.getParentCreatedAt(),ri.of(k,f.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class bl extends li{constructor(f,b,k,D,K){super(f,K),this.fromPos=b,this.toPos=k,this.attributes=D}static create(f,b,k,D,K){return new bl(f,b,k,D,K)}execute(f){const b=f.findByCreatedAt(this.getParentCreatedAt());b||c.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof pi||c.fatal("fail to execute, only Tree can execute edit");const k={};return[...this.attributes].forEach(([re,fe])=>k[re]=fe),{opInfos:b.style([this.fromPos,this.toPos],k,this.getExecutedAt()).map(({from:re,to:fe,value:Ne,fromPath:ot})=>({type:"tree-style",from:re,to:fe,value:Ne,fromPath:ot,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),b=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,k=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${f}.STYLE(${b},${k},${Object.entries(this.attributes||{}).map(([D,K])=>`${D}:"${K}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}}function wI(T){const f=new De.Presence,b=f.data;for(const[k,D]of Object.entries(T))b[k]=JSON.stringify(D);return f}function JT(T){if(T.type===Qs.Put)return new De.PresenceChange({type:De.PresenceChange_ChangeType.PUT,presence:wI(T.presence)});if(T.type===Qs.Clear)return new De.PresenceChange({type:De.PresenceChange_ChangeType.CLEAR});throw new Xn(Wn.Unimplemented,"unimplemented type")}function ew(T){return new De.Checkpoint({serverSeq:T.getServerSeqAsString(),clientSeq:T.getClientSeq()})}function N1(T){return new De.ChangeID({clientSeq:T.getClientSeq(),lamport:T.getLamportAsString(),actorId:o0(T.getActorID())})}function En(T){if(T)return new De.TimeTicket({lamport:T.getLamportAsString(),delimiter:T.getDelimiter(),actorId:o0(T.getActorID())})}function P1(T){switch(T){case Pn.Null:return De.ValueType.NULL;case Pn.Boolean:return De.ValueType.BOOLEAN;case Pn.Integer:return De.ValueType.INTEGER;case Pn.Long:return De.ValueType.LONG;case Pn.Double:return De.ValueType.DOUBLE;case Pn.String:return De.ValueType.STRING;case Pn.Bytes:return De.ValueType.BYTES;case Pn.Date:return De.ValueType.DATE;default:throw new Xn(Wn.Unsupported,`unsupported type: ${T}`)}}function tw(T){switch(T){case Yi.IntegerCnt:return De.ValueType.INTEGER_CNT;case Yi.LongCnt:return De.ValueType.LONG_CNT;default:throw new Xn(Wn.Unsupported,`unsupported type: ${T}`)}}function sm(T){if(T instanceof Vr)return new De.JSONElementSimple({type:De.ValueType.JSON_OBJECT,createdAt:En(T.getCreatedAt()),value:U1(T)});if(T instanceof Ts)return new De.JSONElementSimple({type:De.ValueType.JSON_ARRAY,createdAt:En(T.getCreatedAt()),value:NI(T)});if(T instanceof is)return new De.JSONElementSimple({type:De.ValueType.TEXT,createdAt:En(T.getCreatedAt())});if(T instanceof ri)return new De.JSONElementSimple({type:P1(T.getType()),createdAt:En(T.getCreatedAt()),value:T.toBytes()});if(T instanceof Xs)return new De.JSONElementSimple({type:tw(T.getType()),createdAt:En(T.getCreatedAt()),value:T.toBytes()});if(T instanceof pi)return new De.JSONElementSimple({type:De.ValueType.TREE,createdAt:En(T.getCreatedAt()),value:LI(T)});throw new Xn(Wn.Unimplemented,"unimplemented element")}function L1(T){return new De.TextNodeID({createdAt:En(T.getCreatedAt()),offset:T.getOffset()})}function Kg(T){return new De.TextNodePos({createdAt:En(T.getID().getCreatedAt()),offset:T.getID().getOffset(),relativeOffset:T.getRelativeOffset()})}function am(T){return new De.TreePos({parentId:Fo(T.getParentID()),leftSiblingId:Fo(T.getLeftSiblingID())})}function Fo(T){return new De.TreeNodeID({createdAt:En(T.getCreatedAt()),offset:T.getOffset()})}function M1(T){const f=new De.Operation;if(T instanceof Zu){const b=T,k=new De.Operation_Set;k.parentCreatedAt=En(b.getParentCreatedAt()),k.key=b.getKey(),k.value=sm(b.getValue()),k.executedAt=En(b.getExecutedAt()),f.body.case="set",f.body.value=k}else if(T instanceof Vc){const b=T,k=new De.Operation_Add;k.parentCreatedAt=En(b.getParentCreatedAt()),k.prevCreatedAt=En(b.getPrevCreatedAt()),k.value=sm(b.getValue()),k.executedAt=En(b.getExecutedAt()),f.body.case="add",f.body.value=k}else if(T instanceof pl){const b=T,k=new De.Operation_Move;k.parentCreatedAt=En(b.getParentCreatedAt()),k.prevCreatedAt=En(b.getPrevCreatedAt()),k.createdAt=En(b.getCreatedAt()),k.executedAt=En(b.getExecutedAt()),f.body.case="move",f.body.value=k}else if(T instanceof ru){const b=T,k=new De.Operation_Remove;k.parentCreatedAt=En(b.getParentCreatedAt()),k.createdAt=En(b.getCreatedAt()),k.executedAt=En(b.getExecutedAt()),f.body.case="remove",f.body.value=k}else if(T instanceof os){const b=T,k=new De.Operation_Edit;k.parentCreatedAt=En(b.getParentCreatedAt()),k.from=Kg(b.getFromPos()),k.to=Kg(b.getToPos());const D=k.createdAtMapByActor;for(const[re,fe]of b.getMaxCreatedAtMapByActor())D[re]=En(fe);k.content=b.getContent();const K=k.attributes;for(const[re,fe]of b.getAttributes())K[re]=fe;k.executedAt=En(b.getExecutedAt()),f.body.case="edit",f.body.value=k}else if(T instanceof Ao){const b=T,k=new De.Operation_Style;k.parentCreatedAt=En(b.getParentCreatedAt()),k.from=Kg(b.getFromPos()),k.to=Kg(b.getToPos());const D=k.createdAtMapByActor;for(const[re,fe]of b.getMaxCreatedAtMapByActor())D[re]=En(fe);const K=k.attributes;for(const[re,fe]of b.getAttributes())K[re]=fe;k.executedAt=En(b.getExecutedAt()),f.body.case="style",f.body.value=k}else if(T instanceof Xu){const b=T,k=new De.Operation_Increase;k.parentCreatedAt=En(b.getParentCreatedAt()),k.value=sm(b.getValue()),k.executedAt=En(b.getExecutedAt()),f.body.case="increase",f.body.value=k}else if(T instanceof Qi){const b=T,k=new De.Operation_TreeEdit,D=k.createdAtMapByActor;for(const[K,re]of b.getMaxCreatedAtMapByActor())D[K]=En(re);k.parentCreatedAt=En(b.getParentCreatedAt()),k.from=am(b.getFromPos()),k.to=am(b.getToPos()),k.contents=_I(b.getContents()),k.splitLevel=b.getSplitLevel(),k.executedAt=En(b.getExecutedAt()),f.body.case="treeEdit",f.body.value=k}else if(T instanceof bl){const b=T,k=new De.Operation_TreeStyle;k.parentCreatedAt=En(b.getParentCreatedAt()),k.from=am(b.getFromPos()),k.to=am(b.getToPos());const D=k.attributes;for(const[K,re]of b.getAttributes())D[K]=re;k.executedAt=En(b.getExecutedAt()),f.body.case="treeStyle",f.body.value=k}else throw new Xn(Wn.Unimplemented,"unimplemented operation");return f}function lm(T){const f=[];for(const b of T)f.push(M1(b));return f}function nw(T){const f=new De.Change({id:N1(T.getID()),message:T.getMessage()});return T.hasOperations()&&(f.operations=lm(T.getOperations())),T.hasPresenceChange()&&(f.presenceChange=JT(T.getPresenceChange())),f}function rw(T){const f=[];for(const b of T)f.push(nw(b));return f}function xI(T){const f=[];for(const b of T)f.push(new De.RHTNode({key:b.getStrKey(),element:gp(b.getValue())}));return f}function kI(T){const f=[];for(const b of T)f.push(new De.RGANode({element:gp(b.getValue())}));return f}function CI(T){const f=[];for(const b of T){const k=new De.TextNode;k.id=L1(b.getID()),k.value=b.getValue().getContent(),k.removedAt=En(b.getRemovedAt());const D=k.attributes,K=b.getValue().getAttrs();for(const re of K){const fe=new De.NodeAttr;fe.value=re.getValue(),fe.updatedAt=En(re.getUpdatedAt()),D[re.getKey()]=fe}f.push(k)}return f}function _I(T){const f=[];if(!T||!T.length)return f;for(const b of T)f.push(new De.TreeNodes({content:iw(b)}));return f}function iw(T){if(!T)return[];const f=[];return va(T,(b,k)=>{const D=new De.TreeNode({id:Fo(b.id),type:b.type,removedAt:En(b.removedAt),depth:k});if(b.isText&&(D.value=b.value),b.insPrevID&&(D.insPrevId=Fo(b.insPrevID)),b.insNextID&&(D.insNextId=Fo(b.insNextID)),b.attrs)for(const K of b.attrs)D.attributes[K.getKey()]=new De.NodeAttr({value:K.getValue(),updatedAt:En(K.getUpdatedAt())});f.push(D)}),f}function mp(T){const f=new De.JSONElement;return f.body.case="jsonObject",f.body.value=new De.JSONElement_JSONObject({nodes:xI(T.getRHT()),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),f}function ow(T){const f=new De.JSONElement;return f.body.case="jsonArray",f.body.value=new De.JSONElement_JSONArray({nodes:kI(T.getElements()),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),f}function AI(T){const f=new De.JSONElement;return f.body.case="primitive",f.body.value=new De.JSONElement_Primitive({type:P1(T.getType()),value:T.toBytes(),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),f}function $1(T){const f=new De.JSONElement;return f.body.case="text",f.body.value=new De.JSONElement_Text({nodes:CI(T.getRGATreeSplit()),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),f}function sw(T){const f=new De.JSONElement;return f.body.case="counter",f.body.value=new De.JSONElement_Counter({type:tw(T.getType()),value:T.toBytes(),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),f}function Ku(T){const f=new De.JSONElement;return f.body.case="tree",f.body.value=new De.JSONElement_Tree({nodes:iw(T.getRoot()),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),f}function gp(T){if(T instanceof Vr)return mp(T);if(T instanceof Ts)return ow(T);if(T instanceof ri)return AI(T);if(T instanceof is)return $1(T);if(T instanceof Xs)return sw(T);if(T instanceof pi)return Ku(T);throw new Xn(Wn.Unimplemented,"unimplemented element")}function RI(T){return new De.ChangePack({documentKey:T.getDocumentKey(),checkpoint:ew(T.getCheckpoint()),isRemoved:T.getIsRemoved(),changes:rw(T.getChanges()),snapshot:T.getSnapshot(),minSyncedTicket:En(T.getMinSyncedTicket())})}function II(T){return iu.of(T.clientSeq,Pi.fromString(T.lamport,!0),su(T.actorId))}function Rn(T){if(T)return eo.of(Pi.fromString(T.lamport,!0),T.delimiter,su(T.actorId))}function Yc(T){const f={};return Object.entries(T.data).forEach(([b,k])=>{f[b]=JSON.parse(k)}),f}function yl(T){const f=T.type;if(f===De.PresenceChange_ChangeType.PUT){const b=Yc(T.presence);return{type:Qs.Put,presence:b}}if(f===De.PresenceChange_ChangeType.CLEAR)return{type:Qs.Clear};throw new Xn(Wn.Unsupported,`unsupported type: ${f}`)}function aw(T){const f=new Map;return Object.entries(T).forEach(([b,k])=>{f.set(b,Yc(k))}),f}function lw(T){switch(T){case De.ValueType.NULL:return Pn.Null;case De.ValueType.BOOLEAN:return Pn.Boolean;case De.ValueType.INTEGER:return Pn.Integer;case De.ValueType.LONG:return Pn.Long;case De.ValueType.DOUBLE:return Pn.Double;case De.ValueType.STRING:return Pn.String;case De.ValueType.BYTES:return Pn.Bytes;case De.ValueType.DATE:return Pn.Date}throw new Xn(Wn.Unimplemented,`unimplemented value type: ${T}`)}function Jg(T){switch(T){case De.ValueType.INTEGER_CNT:return Yi.IntegerCnt;case De.ValueType.LONG_CNT:return Yi.LongCnt}throw new Xn(Wn.Unimplemented,`unimplemented value type: ${T}`)}function F1(T){switch(T.type){case De.ValueType.JSON_OBJECT:return T.value?dw(T.value):Vr.create(Rn(T.createdAt));case De.ValueType.JSON_ARRAY:return T.value?n0(T.value):Ts.create(Rn(T.createdAt));case De.ValueType.TEXT:return is.create(hp.create(),Rn(T.createdAt));case De.ValueType.TREE:return PI(T.value);case De.ValueType.NULL:case De.ValueType.BOOLEAN:case De.ValueType.INTEGER:case De.ValueType.LONG:case De.ValueType.DOUBLE:case De.ValueType.STRING:case De.ValueType.BYTES:case De.ValueType.DATE:return ri.of(ri.valueFromBytes(lw(T.type),T.value),Rn(T.createdAt));case De.ValueType.INTEGER_CNT:case De.ValueType.LONG_CNT:return Xs.create(Jg(T.type),Xs.valueFromBytes(Jg(T.type),T.value),Rn(T.createdAt))}}function e0(T){return gl.of($o.of(Rn(T.createdAt),T.offset),T.relativeOffset)}function uw(T){return $o.of(Rn(T.createdAt),T.offset)}function bp(T){const f=Mo.create(T.value);Object.entries(T.attributes).forEach(([k,D])=>{f.setAttr(k,D.value,Rn(D.updatedAt))});const b=ou.create(uw(T.id),f);return b.remove(Rn(T.removedAt)),b}function Ue(T){return lt.of(mt(T.parentId),mt(T.leftSiblingId))}function mt(T){return It.of(Rn(T.createdAt),T.offset)}function at(T){if(!T.length)return;const f=[];return T.forEach(b=>{const k=dn(b.content);f.push(k)}),f}function dn(T){if(T.length===0)return;const f=[];for(const k of T)f.push(Yn(k));const b=f[f.length-1];for(let k=f.length-2;k>=0;k--){let D;for(let K=k+1;K{k.set(D,K.value,Rn(K.updatedAt))}),b.attrs=k}return T.insPrevId&&(b.insPrevID=mt(T.insPrevId)),T.insNextId&&(b.insNextID=mt(T.insNextId)),b.removedAt=Rn(T.removedAt),b}function Nr(T){const f=[];for(const b of T){let k;if(b.body.case==="set"){const D=b.body.value;k=Zu.create(D.key,F1(D.value),Rn(D.parentCreatedAt),Rn(D.executedAt))}else if(b.body.case==="add"){const D=b.body.value;k=Vc.create(Rn(D.parentCreatedAt),Rn(D.prevCreatedAt),F1(D.value),Rn(D.executedAt))}else if(b.body.case==="move"){const D=b.body.value;k=pl.create(Rn(D.parentCreatedAt),Rn(D.prevCreatedAt),Rn(D.createdAt),Rn(D.executedAt))}else if(b.body.case==="remove"){const D=b.body.value;k=ru.create(Rn(D.parentCreatedAt),Rn(D.createdAt),Rn(D.executedAt))}else if(b.body.case==="edit"){const D=b.body.value,K=new Map;Object.entries(D.createdAtMapByActor).forEach(([fe,Ne])=>{K.set(fe,Rn(Ne))});const re=new Map;Object.entries(D.attributes).forEach(([fe,Ne])=>{re.set(fe,Ne)}),k=os.create(Rn(D.parentCreatedAt),e0(D.from),e0(D.to),K,D.content,re,Rn(D.executedAt))}else if(b.body.case==="style"){const D=b.body.value,K=new Map;Object.entries(D.createdAtMapByActor).forEach(([fe,Ne])=>{K.set(fe,Rn(Ne))});const re=new Map;Object.entries(D.attributes).forEach(([fe,Ne])=>{re.set(fe,Ne)}),k=Ao.create(Rn(D.parentCreatedAt),e0(D.from),e0(D.to),K,re,Rn(D.executedAt))}else{if(b.body.case==="select")continue;if(b.body.case==="increase"){const D=b.body.value;k=Xu.create(Rn(D.parentCreatedAt),F1(D.value),Rn(D.executedAt))}else if(b.body.case==="treeEdit"){const D=b.body.value,K=new Map;Object.entries(D.createdAtMapByActor).forEach(([re,fe])=>{K.set(re,Rn(fe))}),k=Qi.create(Rn(D.parentCreatedAt),Ue(D.from),Ue(D.to),at(D.contents),D.splitLevel,K,Rn(D.executedAt))}else if(b.body.case==="treeStyle"){const D=b.body.value,K=new Map;Object.entries(D.attributes).forEach(([re,fe])=>{K.set(re,fe)}),k=bl.create(Rn(D.parentCreatedAt),Ue(D.from),Ue(D.to),K,Rn(D.executedAt))}else throw new Xn(Wn.Unimplemented,"unimplemented operation")}f.push(k)}return f}function no(T){const f=[];for(const b of T)f.push(Ua.create({id:II(b.id),operations:Nr(b.operations),presenceChange:b.presenceChange?yl(b.presenceChange):void 0,message:b.message}));return f}function ei(T){return Qc.of(Pi.fromString(T.serverSeq,!0),T.clientSeq)}function B1(T){return ef.create(T.documentKey,ei(T.checkpoint),T.isRemoved,no(T.changes),T.snapshot,Rn(T.minSyncedTicket))}function cw(T){const f=new to;for(const k of T.nodes){const D=vp(k.element);f.set(k.key,D,D.getPositionedAt())}const b=new Vr(Rn(T.createdAt),f);return b.setMovedAt(Rn(T.movedAt)),b.setRemovedAt(Rn(T.removedAt)),b}function Oa(T){const f=new zc;for(const k of T.nodes)f.insert(vp(k.element));const b=new Ts(Rn(T.createdAt),f);return b.setMovedAt(Rn(T.movedAt)),b.setRemovedAt(Rn(T.removedAt)),b}function t0(T){const f=ri.of(ri.valueFromBytes(lw(T.type),T.value),Rn(T.createdAt));return f.setMovedAt(Rn(T.movedAt)),f.setRemovedAt(Rn(T.removedAt)),f}function DI(T){const f=new hp;let b=f.getHead();for(const D of T.nodes){const K=f.insertAfter(b,bp(D));D.insPrevId&&K.setInsPrev(f.findNode(uw(D.insPrevId))),b=K}const k=new is(f,Rn(T.createdAt));return k.setMovedAt(Rn(T.movedAt)),k.setRemovedAt(Rn(T.removedAt)),k}function yp(T){const f=Xs.create(Jg(T.type),Xs.valueFromBytes(Jg(T.type),T.value),Rn(T.createdAt));return f.setMovedAt(Rn(T.movedAt)),f.setRemovedAt(Rn(T.removedAt)),f}function um(T){const f=dn(T.nodes);return pi.create(f,Rn(T.createdAt))}function vp(T){if(T.body.case==="jsonObject")return cw(T.body.value);if(T.body.case==="jsonArray")return Oa(T.body.value);if(T.body.case==="primitive")return t0(T.body.value);if(T.body.case==="text")return DI(T.body.value);if(T.body.case==="counter")return yp(T.body.value);if(T.body.case==="tree")return um(T.body.value);throw new Xn(Wn.Unimplemented,"unimplemented element")}function Hr(T){if(!T)return{root:Vr.create(Ei),presences:new Map};const f=De.Snapshot.fromBinary(T);return{root:vp(f.root),presences:aw(f.presences)}}function dw(T){if(!T)throw new Error("bytes is empty");const f=De.JSONElement.fromBinary(T);return cw(f.body.value)}function U1(T){return gp(T).toBinary()}function n0(T){if(!T)throw new Error("bytes is empty");const f=De.JSONElement.fromBinary(T);return Oa(f.body.value)}function NI(T){return ow(T).toBinary()}function PI(T){if(!T)throw new Error("bytes is empty");const f=De.JSONElement.fromBinary(T);return um(f.body.value)}function LI(T){return Ku(T).toBinary()}function r0(T){return T?Array.from(T).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function su(T){return r0(T)}function i0(T){return new Uint8Array(T.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function o0(T){return i0(T)}const Ea={fromPresence:Yc,toChangePack:RI,fromChangePack:B1,fromChanges:no,objectToBytes:U1,bytesToObject:dw,bytesToSnapshot:Hr,toHexString:su,toUint8Array:o0};class fw{constructor(f,b,k,D){this.reconnectStreamDelay=f,this.doc=b,this.docID=k,this.isRealtimeSync=D,this.syncMode=Ks.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 b=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(b,this.reconnectStreamDelay)})}catch{}};await b()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}class tf{constructor(f,b,k,D){this.id=f,this.delimiter=ba,this.root=b,this.operations=[],this.previousPresence=Es(k),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=D}static create(f,b,k,D){return new tf(f,b,k,D)}push(f){this.operations.push(f)}registerElement(f,b){this.root.registerElement(f,b)}registerRemovedElement(f){this.root.registerRemovedElement(f)}registerElementHasRemovedNodes(f){this.root.registerElementHasRemovedNodes(f)}getChange(){return Ua.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,b){for(const k of Object.keys(f))b!=null&&b.addToHistory?this.reversePresenceKeys.add(k):this.reversePresenceKeys.delete(k)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const f={};for(const b of this.reversePresenceKeys)f[b]=this.previousPresence[b];return f}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class Gc{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 Gc(Vr.create(Ei))}findByCreatedAt(f){const b=this.elementPairMapByCreatedAt.get(f.toIDString());if(b)return b.element}findElementPairByCreatedAt(f){return this.elementPairMapByCreatedAt.get(f.toIDString())}createSubPaths(f){let b=this.elementPairMapByCreatedAt.get(f.toIDString());if(!b)return[];const k=[];for(;b.parent;){const D=b.element.getCreatedAt(),K=b.parent.subPathOf(D);K===void 0&&c.fatal(`cant find the given element: ${D.toIDString()}`),k.unshift(K),b=this.elementPairMapByCreatedAt.get(b.parent.getCreatedAt().toIDString())}return k.unshift("$"),k}createPath(f){return this.createSubPaths(f).join(".")}registerElement(f,b){this.elementPairMapByCreatedAt.set(f.getCreatedAt().toIDString(),{parent:b,element:f}),f instanceof Ti&&f.getDescendants((k,D)=>(this.registerElement(k,D),!1))}deregisterElement(f){let b=0;const k=D=>{const K=D.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(K),this.removedElementSetByCreatedAt.delete(K),b++};return k(f),f instanceof Ti&&f.getDescendants(D=>(k(D),!1)),b}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 b=new Set;for(const k of this.removedElementSetByCreatedAt){b.add(k);const D=this.elementPairMapByCreatedAt.get(k);D.element instanceof Ti&&D.element.getDescendants(K=>(b.add(K.getCreatedAt().toIDString()),!1))}f+=b.size;for(const k of this.elementHasRemovedNodesSetByCreatedAt){const K=this.elementPairMapByCreatedAt.get(k).element;f+=K.getRemovedNodesLen()}return f}deepcopy(){return new Gc(this.rootObject.deepcopy())}garbageCollect(f){let b=0;for(const k of this.removedElementSetByCreatedAt){const D=this.elementPairMapByCreatedAt.get(k);D.element.getRemovedAt()&&f.compare(D.element.getRemovedAt())>=0&&(D.parent.purge(D.element),b+=this.deregisterElement(D.element))}for(const k of this.elementHasRemovedNodesSetByCreatedAt){const K=this.elementPairMapByCreatedAt.get(k).element,re=K.purgeRemovedNodesBefore(f);re>0&&this.elementHasRemovedNodesSetByCreatedAt.delete(K.getCreatedAt().toIDString()),b+=re}return b}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function j1(T,f){const b=new Ju(T);return new Proxy(f,b.getHandlers())}class Ju{constructor(f){this.context=f,this.handlers={set:(b,k,D)=>(c.isEnabled(a.Trivial)&&c.trivial(`obj[${k}]=${JSON.stringify(D)}`),Ju.setInternal(f,b,k,D),!0),get:(b,k)=>(c.isEnabled(a.Trivial)&&c.trivial(`obj[${k}]`),k==="getID"?()=>b.getCreatedAt():k==="toJSON"||k==="toString"?()=>b.toJSON():k==="toJS"?()=>b.toJS():k==="toJSForTest"?()=>b.toJSForTest():$i(f,b.get(k))),ownKeys:b=>b.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(b,k)=>(c.isEnabled(a.Trivial)&&c.trivial(`obj[${k}]`),Ju.deleteInternal(f,b,k),!0)}}static setInternal(f,b,k,D){if(k.includes("."))throw new Xn(Wn.InvalidObjectKey,"key must not contain the '.'.");const K=f.issueTimeTicket(),re=u0(f,D,K),fe=b.set(k,re,K);f.registerElement(re,b),fe&&f.registerRemovedElement(fe),f.push(Zu.create(k,re.deepcopy(),b.getCreatedAt(),K))}static buildObjectMembers(f,b){const k={};for(const[D,K]of Object.entries(b)){if(D.includes("."))throw new Xn(Wn.InvalidObjectKey,"key must not contain the '.'.");const re=f.issueTimeTicket(),fe=u0(f,K,re);k[D]=fe}return k}static deleteInternal(f,b,k){const D=f.issueTimeTicket(),K=b.deleteByKey(k,D);K&&(f.push(ru.create(b.getCreatedAt(),K.getCreatedAt(),D)),f.registerRemovedElement(K))}getHandlers(){return this.handlers}}function nf(T,f){const b=new Mi(T,f);return new Proxy(f,b.getHandlers())}function s0(T){return typeof T=="string"||T instanceof String?!isNaN(T):!1}function MI(T){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(T)}class Mi{constructor(f,b){this.context=f,this.array=b,this.handlers={get:(k,D,K)=>D==="getID"?()=>k.getCreatedAt():D==="getElementByID"?re=>{const fe=k.getByID(re);if(!(!fe||fe.isRemoved()))return ii(f,fe)}:D==="getElementByIndex"?re=>{const fe=k.get(re);return ii(f,fe)}:D==="getLast"?()=>ii(f,k.getLast()):D==="deleteByID"?re=>{const fe=Mi.deleteInternalByID(f,k,re);return ii(f,fe)}:D==="insertAfter"?(re,fe)=>{const Ne=Mi.insertAfterInternal(f,k,re,fe);return ii(f,Ne)}:D==="insertBefore"?(re,fe)=>{const Ne=Mi.insertBeforeInternal(f,k,re,fe);return ii(f,Ne)}:D==="moveBefore"?(re,fe)=>{Mi.moveBeforeInternal(f,k,re,fe)}:D==="moveAfter"?(re,fe)=>{Mi.moveAfterInternal(f,k,re,fe)}:D==="moveFront"?re=>{Mi.moveFrontInternal(f,k,re)}:D==="moveLast"?re=>{Mi.moveLastInternal(f,k,re)}:s0(D)?$i(f,k.get(Number(D))):D==="push"?re=>Mi.pushInternal(f,k,re):D==="splice"?(re,fe,...Ne)=>Mi.splice(f,k,re,fe,...Ne):D==="length"?k.length:typeof D=="symbol"&&D===Symbol.iterator?Mi.iteratorInternal.bind(this,f,k):D==="includes"?(re,fe)=>Mi.includes(f,k,re,fe):D==="indexOf"?(re,fe)=>Mi.indexOf(f,k,re,fe):D==="lastIndexOf"?(re,fe)=>Mi.lastIndexOf(f,k,re,fe):D==="toTestString"?()=>Mi.toTestString(k):typeof D=="string"&&MI(D)?(...re)=>{const fe=Array.from(k).map(Ne=>$i(f,Ne));return Array.prototype[D].apply(fe,re)}:Reflect.get(k,D,K),deleteProperty:(k,D)=>(c.isEnabled(a.Trivial)&&c.trivial(`array[${D}]`),Mi.deleteInternalByIndex(f,k,Number.parseInt(D)),!0)}}static*iteratorInternal(f,b){for(const k of b)yield ii(f,k)}static buildArrayElements(f,b){const k=[];for(const D of b){const K=f.issueTimeTicket(),re=u0(f,D,K);k.push(re)}return k}static pushInternal(f,b,k){return Mi.insertAfterInternal(f,b,b.getLastCreatedAt(),k),b.length}static moveBeforeInternal(f,b,k,D){const K=f.issueTimeTicket(),re=b.getPrevCreatedAt(k);b.moveAfter(re,D,K),f.push(pl.create(b.getCreatedAt(),re,D,K))}static moveAfterInternal(f,b,k,D){const K=f.issueTimeTicket();b.moveAfter(k,D,K),f.push(pl.create(b.getCreatedAt(),k,D,K))}static moveFrontInternal(f,b,k){const D=f.issueTimeTicket(),K=b.getHead();b.moveAfter(K.getCreatedAt(),k,D),f.push(pl.create(b.getCreatedAt(),K.getCreatedAt(),k,D))}static moveLastInternal(f,b,k){const D=f.issueTimeTicket(),K=b.getLastCreatedAt();b.moveAfter(K,k,D),f.push(pl.create(b.getCreatedAt(),K,k,D))}static insertAfterInternal(f,b,k,D){const K=f.issueTimeTicket(),re=u0(f,D,K);return b.insertAfter(k,re),f.registerElement(re,b),f.push(Vc.create(b.getCreatedAt(),k,re.deepcopy(),K)),re}static insertBeforeInternal(f,b,k,D){return Mi.insertAfterInternal(f,b,b.getPrevCreatedAt(k),D)}static deleteInternalByIndex(f,b,k){const D=f.issueTimeTicket(),K=b.deleteByIndex(k,D);if(K)return f.push(ru.create(b.getCreatedAt(),K.getCreatedAt(),D)),f.registerRemovedElement(K),K}static deleteInternalByID(f,b,k){const D=f.issueTimeTicket(),K=b.delete(k,D);return f.push(ru.create(b.getCreatedAt(),K.getCreatedAt(),D)),f.registerRemovedElement(K),K}static splice(f,b,k,D,...K){const re=b.length,fe=k>=0?Math.min(k,re):Math.max(re+k,0),Ne=D===void 0?re:D<0?fe:Math.min(fe+D,re),ot=[];for(let Dt=fe;Dt=re)return!1;if(ri.isSupport(k))return Array.from(b).map(ot=>$i(f,ot)).includes(k,fe);for(let Ne=fe;Ne=re)return-1;if(ri.isSupport(k))return Array.from(b).map(ot=>$i(f,ot)).indexOf(k,fe);for(let Ne=fe;Ne=re?re-1:D<0?D+re:D;if(fe<0)return-1;if(ri.isSupport(k))return Array.from(b).map(ot=>$i(f,ot)).lastIndexOf(k,fe);for(let Ne=fe;Ne>0;Ne--)if(((K=b.get(Ne))===null||K===void 0?void 0:K.getID())===k.getID())return Ne;return-1}static toTestString(f){return f.toTestString()}getHandlers(){return this.handlers}}class a0{constructor(f,b){this.context=f,this.text=b}initialize(f,b){this.context=f,this.text=b}getID(){return this.text.getID()}edit(f,b,k,D){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}if(f>b){c.fatal("from should be less than or equal to to");return}const K=this.text.indexRangeToPosRange(f,b);c.isEnabled(a.Debug)&&c.debug(`EDIT: f:${f}->${K[0].toTestString()}, t:${b}->${K[1].toTestString()} c:${k}`);const re=D?Li(D):void 0,fe=this.context.issueTimeTicket(),[Ne,,ot]=this.text.edit(K,k,fe,re);return this.context.push(new os(this.text.getCreatedAt(),K[0],K[1],Ne,k,re?new Map(Object.entries(re)):new Map,fe)),K[0].equals(K[1])||this.context.registerElementHasRemovedNodes(this.text),this.text.findIndexesFromRange(ot)}delete(f,b){return this.edit(f,b,"")}empty(){return this.edit(0,this.length,"")}setStyle(f,b,k){if(!this.context||!this.text)return c.fatal("it is not initialized yet"),!1;if(f>b)return c.fatal("from should be less than or equal to to"),!1;const D=this.text.indexRangeToPosRange(f,b);c.isEnabled(a.Debug)&&c.debug(`STYL: f:${f}->${D[0].toTestString()}, t:${b}->${D[1].toTestString()} a:${JSON.stringify(k)}`);const K=Li(k),re=this.context.issueTimeTicket(),[fe]=this.text.setStyle(D,K,re);return this.context.push(new Ao(this.text.getCreatedAt(),D[0],D[1],fe,new Map(Object.entries(K)),re)),!0}indexRangeToPosRange(f){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}const b=this.text.indexRangeToPosRange(f[0],f[1]);return[b[0].toStruct(),b[1].toStruct()]}posRangeToIndexRange(f){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}const b=this.text.findIndexesFromRange([gl.fromStruct(f[0]),gl.fromStruct(f[1])]);return[b[0],b[1]]}toTestString(){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){c.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?(c.fatal("it is not initialized yet"),""):this.text.toString()}createRangeForTest(f,b){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(f,b)}}class rf{constructor(f,b){this.valueType=f,this.value=b}initialize(f,b){this.valueType=b.getValueType(),this.context=f,this.counter=b,this.value=b.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(f){if(!this.context||!this.counter){c.fatal("it is not initialized yet");return}const b=this.context.issueTimeTicket(),k=ri.of(f,b);if(!k.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof k.getValue()}`);return this.counter.increase(k),this.context.push(Xu.create(this.counter.getCreatedAt(),k,b)),this}}function Op(T,f,b){const{type:k}=T,D=b.issueTimeTicket();if(k===Qn){pw(T);const{value:K}=T,re=Ht.create(It.of(D,0),k,K);f.append(re)}else{const{children:K=[]}=T;let{attributes:re}=T,fe;if(typeof re=="object"&&!ga(re)){re=Li(re),fe=new go;for(const[ot,Dt]of Object.entries(re))fe.set(ot,Dt,D)}const Ne=Ht.create(It.of(D,0),k,void 0,fe);f.append(Ne);for(const ot of K)Op(ot,Ne,b)}}function z1(T,f){const{type:b}=f,k=T.issueTimeTicket();let D;if(f.type===Qn){const{value:K}=f;D=Ht.create(It.of(k,0),b,K)}else if(f){const{children:K=[]}=f;let{attributes:re}=f,fe;if(typeof re=="object"&&!ga(re)){re=Li(re),fe=new go;for(const[Ne,ot]of Object.entries(re))fe.set(Ne,ot,k)}D=Ht.create(It.of(T.issueTimeTicket(),0),b,void 0,fe);for(const Ne of K)Op(Ne,D,T)}return D}function pw(T){if(!T.value.length)throw new Error("text node cannot have empty value");return!0}function V1(T){if(!T.length)return!0;if(T[0].type===Qn)for(const b of T){const{type:k}=b;if(k!==Qn)throw new Error("element node and text node cannot be passed together");pw(b)}else for(const b of T){const{type:k}=b;if(k===Qn)throw new Error("element node and text node cannot be passed together")}return!0}class l0{constructor(f){this.initialRoot=f}initialize(f,b){this.context=f,this.tree=b}getID(){return this.tree.getID()}buildRoot(f){if(!this.initialRoot)return Ht.create(It.of(f.issueTimeTicket(),0),hl);const b=Ht.create(It.of(f.issueTimeTicket(),0),this.initialRoot.type);for(const k of this.initialRoot.children)Op(k,b,f);return b}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,b){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[k,D]=this.tree.pathToPosRange(f),K=this.context.issueTimeTicket(),re=b?Li(b):void 0;this.tree.style([k,D],re,K),this.context.push(bl.create(this.tree.getCreatedAt(),k,D,re?new Map(Object.entries(re)):new Map,K))}style(f,b,k){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>b)throw new Error("from should be less than or equal to to");const D=this.tree.findPos(f),K=this.tree.findPos(b),re=this.context.issueTimeTicket(),fe=k?Li(k):void 0;this.tree.style([D,K],fe,re),this.context.push(bl.create(this.tree.getCreatedAt(),D,K,fe?new Map(Object.entries(fe)):new Map,re))}editInternal(f,b,k,D=0){var K;if(k.length!==0&&k[0]&&(V1(k),k[0].type!==Qn))for(const ot of k){const{children:Dt=[]}=ot;V1(Dt)}const re=this.context.getLastTimeTicket();let fe=new Array;if(((K=k[0])===null||K===void 0?void 0:K.type)===Qn){let ot="";for(const Dt of k){const{value:tn}=Dt;ot+=tn}fe.push(Ht.create(It.of(this.context.issueTimeTicket(),0),Qn,ot))}else fe=k.map(ot=>ot&&z1(this.context,ot)).filter(ot=>ot);const[,Ne]=this.tree.edit([f,b],fe.length?fe.map(ot=>ot==null?void 0:ot.deepcopy()):void 0,D,re,()=>this.context.issueTimeTicket());return this.context.push(Qi.create(this.tree.getCreatedAt(),f,b,fe.length?fe:void 0,D,Ne,re)),f.equals(b)||this.context.registerElementHasRemovedNodes(this.tree),!0}editByPath(f,b,k,D=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==b.length)throw new Error("path length should be equal");if(!f.length||!b.length)throw new Error("path should not be empty");const K=this.tree.pathToPos(f),re=this.tree.pathToPos(b);return this.editInternal(K,re,k?[k]:[],D)}editBulkByPath(f,b,k,D=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==b.length)throw new Error("path length should be equal");if(!f.length||!b.length)throw new Error("path should not be empty");const K=this.tree.pathToPos(f),re=this.tree.pathToPos(b);return this.editInternal(K,re,k,D)}edit(f,b,k,D=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>b)throw new Error("from should be less than or equal to to");const K=this.tree.findPos(f),re=this.tree.findPos(b);return this.editInternal(K,re,k?[k]:[],D)}editBulk(f,b,k,D=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>b)throw new Error("from should be less than or equal to to");const K=this.tree.findPos(f),re=this.tree.findPos(b);return this.editInternal(K,re,k,D)}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){c.fatal("it is not initialized yet");return}const b=[this.tree.pathToIndex(f[0]),this.tree.pathToIndex(f[1])],k=this.tree.indexRangeToPosRange(b);return[k[0].toStruct(),k[1].toStruct()]}indexRangeToPosRange(f){if(!this.context||!this.tree){c.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(f)}posRangeToIndexRange(f){if(!this.context||!this.tree){c.fatal("it is not initialized yet");return}const b=[lt.fromStruct(f[0]),lt.fromStruct(f[1])];return this.tree.posRangeToIndexRange(b)}posRangeToPathRange(f){if(!this.context||!this.tree){c.fatal("it is not initialized yet");return}const b=[lt.fromStruct(f[0]),lt.fromStruct(f[1])];return this.tree.posRangeToPathRange(b)}}function hw(T,f){return j1(T,f)}function ii(T,f){if(f){if(f instanceof ri)return f;if(f instanceof Vr)return j1(T,f);if(f instanceof Ts)return nf(T,f);if(f instanceof is)return new a0(T,f);if(f instanceof Xs){const b=new rf(Yi.IntegerCnt,0);return b.initialize(T,f),b}else if(f instanceof pi){const b=new l0;return b.initialize(T,f),b}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function $i(T,f){const b=ii(T,f);return b instanceof ri?b.getValue():b}function u0(T,f,b){let k;if(ri.isSupport(f))k=ri.of(f,b);else if(Array.isArray(f))k=Ts.create(b,Mi.buildArrayElements(T,f));else if(typeof f=="object")f instanceof a0?(k=is.create(hp.create(),b),f.initialize(T,k)):f instanceof rf?(k=Xs.create(f.getValueType(),f.getValue(),b),f.initialize(T,k)):f instanceof l0?(k=pi.create(f.buildRoot(T),b),f.initialize(T,k)):k=Vr.create(b,Ju.buildObjectMembers(T,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return k}const mw=50;class gw{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=mw&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=mw&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const $I="yorkie-devtools-panel",H1="yorkie-devtools-sdk";var ss;(function(T){T.Detached="detached",T.Attached="attached",T.Removed="removed"})(ss||(ss={}));var tr;(function(T){T.Snapshot="snapshot",T.LocalChange="local-change",T.RemoteChange="remote-change",T.Initialized="initialized",T.Watched="watched",T.Unwatched="unwatched",T.PresenceChanged="presence-changed"})(tr||(tr={}));class of{constructor(f,b){this.opts=b||{},this.key=f,this.status=ss.Detached,this.root=Gc.create(),this.changeID=Xg,this.checkpoint=hi,this.localChanges=[],this.eventStream=g(k=>{this.eventStreamObserver=k}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new gw,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)}}update(f,b){if(this.getStatus()===ss.Removed)throw new Xn(Wn.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const k=this.changeID.getActorID(),D=tf.create(this.changeID.next(),this.clone.root,this.clone.presences.get(k)||{},b);try{const K=hw(D,this.clone.root.getObject());this.presences.has(k)||this.clone.presences.set(k,{}),this.isUpdating=!0,f(K,new pp(D,this.clone.presences.get(k)))}catch(K){throw this.clone=void 0,c.error(K),K}finally{this.isUpdating=!1}if(D.hasChange()){c.isEnabled(a.Trivial)&&c.trivial(`trying to update a local change: ${this.toJSON()}`);const K=D.getChange(),{opInfos:re,reverseOps:fe}=K.execute(this.root,this.presences,Fr.Local),Ne=D.getReversePresence();Ne&&fe.push({type:"presence",value:Ne}),this.localChanges.push(K),fe.length>0&&this.internalHistory.pushUndo(fe),re.length>0&&this.internalHistory.clearRedo(),this.changeID=K.getID(),re.length>0&&this.publish({type:tr.LocalChange,value:{message:K.getMessage()||"",operations:re,actor:k}}),K.hasPresenceChange()&&this.publish({type:tr.PresenceChanged,value:{clientID:k,presence:this.getPresence(k)}}),c.isEnabled(a.Trivial)&&c.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(f,b,k,D){if(typeof f=="string"){if(typeof b!="function")throw new Error("Second argument must be a callback function");if(f==="presence"){const fe=b;return this.eventStream.subscribe(Ne=>{Ne.type!==tr.Initialized&&Ne.type!==tr.Watched&&Ne.type!==tr.Unwatched&&Ne.type!==tr.PresenceChanged||fe(Ne)},k,D)}if(f==="my-presence"){const fe=b;return this.eventStream.subscribe(Ne=>{Ne.type!==tr.Initialized&&Ne.type!==tr.Watched&&Ne.type!==tr.Unwatched&&Ne.type!==tr.PresenceChanged||Ne.type!==tr.Initialized&&Ne.value.clientID!==this.changeID.getActorID()||fe(Ne)},k,D)}if(f==="others"){const fe=b;return this.eventStream.subscribe(Ne=>{Ne.type!==tr.Watched&&Ne.type!==tr.Unwatched&&Ne.type!==tr.PresenceChanged||Ne.value.clientID!==this.changeID.getActorID()&&fe(Ne)},k,D)}const K=f,re=b;return this.eventStream.subscribe(fe=>{if(fe.type===tr.Initialized||fe.type===tr.Watched||fe.type===tr.Unwatched||fe.type===tr.PresenceChanged)return;if(fe.type===tr.Snapshot){K==="$"&&re(fe);return}const{message:Ne,operations:ot,actor:Dt}=fe.value,tn=[];for(const xt of ot)this.isSameElementOrChildOf(xt.path,K)&&tn.push(xt);tn.length&&re({type:fe.type,value:{message:Ne,operations:tn,actor:Dt}})},k,D)}if(typeof f=="function"){const K=f,re=b,fe=k;return this.eventStream.subscribe(Ne=>{Ne.type===tr.Initialized||Ne.type===tr.Watched||Ne.type===tr.Unwatched||Ne.type===tr.PresenceChanged||K(Ne)},re,fe)}throw new Error(`"${f}" is not a valid`)}publish(f){this.eventStreamObserver&&this.eventStreamObserver.next(f)}isSameElementOrChildOf(f,b){if(b===f)return!0;const k=f.split(".");return b.split(".").every((K,re)=>K===k[re])}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),c.isEnabled(a.Trivial)&&c.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:Es(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),b=this.checkpoint.increaseClientSeq(f.length);return ef.create(this.key,b,!1,f)}setActor(f){for(const b of this.localChanges)b.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=tf.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return hw(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,b){const{root:k,presences:D}=Ea.bytesToSnapshot(b);this.root=new Gc(k),this.presences=D,this.changeID=this.changeID.syncLamport(f),this.clone=void 0,this.publish({type:tr.Snapshot,value:b})}applyChanges(f){c.isEnabled(a.Debug)&&c.debug(`trying to apply ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`),c.isEnabled(a.Trivial)&&c.trivial(f.map(b=>`${b.getID().toTestString()} ${b.toTestString()}`).join(` -`)),this.ensureClone();for(const b of f){b.execute(this.clone.root,this.clone.presences,Fr.Remote);let k;const D=b.getID().getActorID();if(b.hasPresenceChange()&&this.onlineClients.has(D)){const re=b.getPresenceChange();switch(re.type){case Qs.Put:k={type:this.presences.has(D)?tr.PresenceChanged:tr.Watched,value:{clientID:D,presence:re.presence}};break;case Qs.Clear:k={type:tr.Unwatched,value:{clientID:D,presence:this.getPresence(D)}},this.removeOnlineClient(D);break}}const{opInfos:K}=b.execute(this.root,this.presences,Fr.Remote);K.length>0&&this.publish({type:tr.RemoteChange,value:{actor:D,message:b.getMessage()||"",operations:K}}),k&&this.publish(k),this.changeID=this.changeID.syncLamport(b.getID().getLamport())}c.isEnabled(a.Debug)&&c.debug(`after appling ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`)}getValueByPath(f){if(!f.startsWith("$"))throw new Xn(Wn.InvalidArgument,'path must start with "$"');const b=f.split(".");b.shift();let k=this.getRoot();for(const D of b)if(k=k[D],k===void 0)return;return k}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 Es(f)}getPresence(f){if(!this.onlineClients.has(f))return;const b=this.presences.get(f);return b?Es(b):void 0}getPresenceForTest(f){const b=this.presences.get(f);return b?Es(b):void 0}getPresences(){const f=[];for(const b of this.onlineClients)this.presences.has(b)&&f.push({clientID:b,presence:Es(this.presences.get(b))});return f}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const f=this.getChangeID().getActorID();return this.getPresences().filter(b=>b.clientID!==f).sort((b,k)=>b.clientID>k.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 b=tf.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ne of f){if(!(Ne instanceof li)){new pp(b,Es(this.clone.presences.get(this.changeID.getActorID()))).set(Ne.value,{addToHistory:!0});continue}const ot=b.issueTimeTicket();Ne.setExecutedAt(ot),b.push(Ne)}const k=b.getChange();k.execute(this.clone.root,this.clone.presences,Fr.UndoRedo);const{opInfos:D,reverseOps:K}=k.execute(this.root,this.presences,Fr.UndoRedo),re=b.getReversePresence();if(re&&K.push({type:"presence",value:re}),K.length>0&&this.internalHistory.pushRedo(K),!k.hasPresenceChange()&&D.length===0)return;this.localChanges.push(k),this.changeID=k.getID();const fe=this.changeID.getActorID();D.length>0&&this.publish({type:tr.LocalChange,value:{message:k.getMessage()||"",operations:D,actor:fe}}),k.hasPresenceChange()&&this.publish({type:tr.PresenceChanged,value:{clientID:fe,presence:this.getPresence(fe)}})}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 b=tf.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ne of f){if(!(Ne instanceof li)){new pp(b,Es(this.clone.presences.get(this.changeID.getActorID()))).set(Ne.value,{addToHistory:!0});continue}const ot=b.issueTimeTicket();Ne.setExecutedAt(ot),b.push(Ne)}const k=b.getChange();k.execute(this.clone.root,this.clone.presences,Fr.UndoRedo);const{opInfos:D,reverseOps:K}=k.execute(this.root,this.presences,Fr.UndoRedo),re=b.getReversePresence();if(re&&K.push({type:"presence",value:re}),K.length>0&&this.internalHistory.pushUndo(K),!k.hasPresenceChange()&&D.length===0)return;this.localChanges.push(k),this.changeID=k.getID();const fe=this.changeID.getActorID();D.length>0&&this.publish({type:tr.LocalChange,value:{message:k.getMessage()||"",operations:D,actor:fe}}),k.hasPresenceChange()&&this.publish({type:tr.PresenceChanged,value:{clientID:fe,presence:this.getPresence(fe)}})}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function cm(T,f){return b=>async k=>(T&&k.header.set("x-api-key",T),f&&k.header.set("authorization",f),await b(k))}const Ep=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.15-rc"}');function c0(){return T=>async f=>(f.header.set("x-yorkie-user-agent",Ep.u2+"/"+Ep.i8),await T(f))}var Ks;(function(T){T.PushPull="pushpull",T.PushOnly="pushonly"})(Ks||(Ks={}));var qc;(function(T){T.Deactivated="deactivated",T.Activated="activated"})(qc||(qc={}));var sf;(function(T){T.Connected="connected",T.Disconnected="disconnected"})(sf||(sf={}));var Sp;(function(T){T.Synced="synced",T.SyncFailed="sync-failed"})(Sp||(Sp={}));var Sa;(function(T){T.StatusChanged="status-changed",T.DocumentChanged="document-changed",T.StreamConnectionStatusChanged="stream-connection-status-changed",T.DocumentSynced="document-synced"})(Sa||(Sa={}));const d0={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class dm{constructor(f,b){b=b||d0,this.key=b.key?b.key:d(),this.status=qc.Deactivated,this.attachmentMap=new Map,this.apiKey=b.apiKey||"",this.syncLoopDuration=b.syncLoopDuration||d0.syncLoopDuration,this.reconnectStreamDelay=b.reconnectStreamDelay||d0.reconnectStreamDelay,this.retrySyncLoopDelay=b.retrySyncLoopDelay||d0.retrySyncLoopDelay,this.rpcClient=z(tt.V,$e({baseUrl:f,interceptors:[cm(b.apiKey,b.token),c0()]})),this.eventStream=g(k=>{this.eventStreamObserver=k})}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=qc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:Sa.StatusChanged,value:this.status}),c.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(f=>{throw c.error(`[AC] c:"${this.getKey()}" err :`,f),f})}deactivate(){if(this.status===qc.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=qc.Deactivated,this.eventStreamObserver.next({type:Sa.StatusChanged,value:this.status}),c.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(f=>{throw c.error(`[DC] c:"${this.getKey()}" err :`,f),f})}attach(f,b={}){var k;if(!this.isActive())throw new Xn(Wn.ClientNotActive,`${this.key} is not active`);if(f.getStatus()!==ss.Detached)throw new Xn(Wn.DocumentNotDetached,`${f.getKey()} is not detached`);f.setActor(this.id),f.update((K,re)=>re.set(b.initialPresence||{}));const D=(k=b.isRealtimeSync)!==null&&k!==void 0?k:!0;return this.rpcClient.attachDocument({clientId:this.id,changePack:Ea.toChangePack(f.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(async K=>{const re=Ea.fromChangePack(K.changePack);return f.applyChangePack(re),f.getStatus()===ss.Removed||(f.setStatus(ss.Attached),this.attachmentMap.set(f.getKey(),new fw(this.reconnectStreamDelay,f,K.documentId,D)),D&&await this.runWatchLoop(f.getKey()),c.info(`[AD] c:"${this.getKey()}" attaches d:"${f.getKey()}"`)),f}).catch(K=>{throw c.error(`[AD] c:"${this.getKey()}" err :`,K),K})}detach(f,b={}){var k;if(!this.isActive())throw new Xn(Wn.ClientNotActive,`${this.key} is not active`);const D=this.attachmentMap.get(f.getKey());if(!D)throw new Xn(Wn.DocumentNotAttached,`${f.getKey()} is not attached`);return f.update((K,re)=>re.clear()),this.rpcClient.detachDocument({clientId:this.id,documentId:D.docID,changePack:Ea.toChangePack(f.createChangePack()),removeIfNotAttached:(k=b.removeIfNotAttached)!==null&&k!==void 0?k:!1},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(K=>{const re=Ea.fromChangePack(K.changePack);return f.applyChangePack(re),f.getStatus()!==ss.Removed&&f.setStatus(ss.Detached),this.detachInternal(f.getKey()),c.info(`[DD] c:"${this.getKey()}" detaches d:"${f.getKey()}"`),f}).catch(K=>{throw c.error(`[DD] c:"${this.getKey()}" err :`,K),K})}pause(f){if(!this.isActive())throw new Xn(Wn.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!1)}resume(f){if(!this.isActive())throw new Xn(Wn.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!0)}pauseRemoteChanges(f){if(!this.isActive())throw new Xn(Wn.ClientNotActive,`${this.key} is not active`);const b=this.attachmentMap.get(f.getKey());if(!b)throw new Xn(Wn.DocumentNotAttached,`${f.getKey()} is not attached`);b.changeSyncMode(Ks.PushOnly)}resumeRemoteChanges(f){if(!this.isActive())throw new Xn(Wn.ClientNotActive,`${this.key} is not active`);const b=this.attachmentMap.get(f.getKey());if(!b)throw new Xn(Wn.DocumentNotAttached,`${f.getKey()} is not attached`);b.changeSyncMode(Ks.PushPull),b.remoteChangeEventReceived=!0}async changeRealtimeSync(f,b){const k=this.attachmentMap.get(f.getKey());if(!k)throw new Xn(Wn.DocumentNotAttached,`${f.getKey()} is not attached`);return k.changeRealtimeSync(b)?b?(k.remoteChangeEventReceived=!0,await this.runWatchLoop(f.getKey()),f):(this.eventStreamObserver.next({type:Sa.StreamConnectionStatusChanged,value:sf.Disconnected}),c.debug(`[WD] c:"${this.getKey()}" unwatches`),f):f}sync(f,b=Ks.PushPull){if(!this.isActive())throw new Xn(Wn.ClientNotActive,`${this.key} is not active`);const k=[];if(f){const D=this.attachmentMap.get(f.getKey());if(!D)throw new Xn(Wn.DocumentNotAttached,`${f.getKey()} is not attached`);k.push(this.syncInternal(D,b))}else this.attachmentMap.forEach(D=>{k.push(this.syncInternal(D,D.syncMode))});return Promise.all(k).catch(D=>{throw this.eventStreamObserver.next({type:Sa.DocumentSynced,value:Sp.SyncFailed}),D})}remove(f){if(!this.isActive())throw new Xn(Wn.ClientNotActive,`${this.key} is not active`);const b=this.attachmentMap.get(f.getKey());if(!b)throw new Xn(Wn.DocumentNotAttached,`${f.getKey()} is not attached`);f.setActor(this.id);const k=Ea.toChangePack(f.createChangePack());return k.isRemoved=!0,this.rpcClient.removeDocument({clientId:this.id,documentId:b.docID,changePack:k},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(D=>{const K=Ea.fromChangePack(D.changePack);f.applyChangePack(K),this.detachInternal(f.getKey()),c.info(`[RD] c:"${this.getKey()}" removes d:"${f.getKey()}"`)}).catch(D=>{throw c.error(`[RD] c:"${this.getKey()}" err :`,D),D})}subscribe(f,b,k){return this.eventStream.subscribe(f,b,k)}getID(){return this.id}getKey(){return this.key}isActive(){return this.status===qc.Activated}getStatus(){return this.status}runSyncLoop(){const f=()=>{if(!this.isActive()){c.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const b=[];for(const[,k]of this.attachmentMap)k.needRealtimeSync()&&(k.remoteChangeEventReceived=!1,b.push(this.syncInternal(k,k.syncMode)));Promise.all(b).then(()=>setTimeout(f,this.syncLoopDuration)).catch(k=>{c.error(`[SL] c:"${this.getKey()}" sync failed:`,k),this.eventStreamObserver.next({type:Sa.DocumentSynced,value:Sp.SyncFailed}),setTimeout(f,this.retrySyncLoopDelay)})};c.debug(`[SL] c:"${this.getKey()}" run sync loop`),f()}async runWatchLoop(f){const b=this.attachmentMap.get(f);if(!b)throw new Xn(Wn.DocumentNotAttached,`${f} is not attached`);return b.runWatchLoop(k=>{if(!this.isActive())return Promise.reject(new Xn(Wn.ClientNotActive,`${this.key} is not active`));const D=new AbortController,K=this.rpcClient.watchDocument({clientId:this.id,documentId:b.docID},{headers:{"x-shard-key":`${this.apiKey}/${f}`},signal:D.signal});return this.eventStreamObserver.next({type:Sa.StreamConnectionStatusChanged,value:sf.Connected}),c.info(`[WD] c:"${this.getKey()}" watches d:"${f}"`),new Promise((re,fe)=>{(async()=>{try{for await(const ot of K)this.handleWatchDocumentsResponse(b,ot),ot.body.case==="initialization"&&re([K,D])}catch(ot){this.eventStreamObserver.next({type:Sa.StreamConnectionStatusChanged,value:sf.Disconnected}),c.debug(`[WD] c:"${this.getKey()}" unwatches`),k(),fe(ot)}})()})})}handleWatchDocumentsResponse(f,b){const k=f.doc.getKey();if(b.body.case==="initialization"){const D=b.body.value.clientIds,K=new Set;for(const re of D)K.add(re);f.doc.setOnlineClients(K),f.doc.publish({type:tr.Initialized,value:f.doc.getPresences()});return}else if(b.body.case==="event"){const D=b.body.value,K=D.type,re=D.publisher;switch(K){case De.DocEventType.DOCUMENT_CHANGED:f.remoteChangeEventReceived=!0,this.eventStreamObserver.next({type:Sa.DocumentChanged,value:[k]});break;case De.DocEventType.DOCUMENT_WATCHED:f.doc.addOnlineClient(re),f.doc.hasPresence(re)&&f.doc.publish({type:tr.Watched,value:{clientID:re,presence:f.doc.getPresence(re)}});break;case De.DocEventType.DOCUMENT_UNWATCHED:{const fe=f.doc.getPresence(re);f.doc.removeOnlineClient(re),fe&&f.doc.publish({type:tr.Unwatched,value:{clientID:re,presence:fe}});break}}}}detachInternal(f){const b=this.attachmentMap.get(f);b&&(b.cancelWatchStream(),c.debug(`[WD] c:"${this.getKey()}" unwatches`),this.eventStreamObserver.next({type:Sa.StreamConnectionStatusChanged,value:sf.Disconnected}),this.attachmentMap.delete(f))}syncInternal(f,b){const{doc:k,docID:D}=f,K=k.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:D,changePack:Ea.toChangePack(K),pushOnly:b===Ks.PushOnly},{headers:{"x-shard-key":`${this.apiKey}/${k.getKey()}`}}).then(re=>{const fe=Ea.fromChangePack(re.changePack);if(fe.hasChanges()&&b===Ks.PushOnly)return k;k.applyChangePack(fe),this.eventStreamObserver.next({type:Sa.DocumentSynced,value:Sp.Synced}),k.getStatus()===ss.Removed&&this.detachInternal(k.getKey());const Ne=k.getKey(),ot=fe.getChangeSize();return c.info(`[PP] c:"${this.getKey()}" sync d:"${Ne}", push:${K.getChangeSize()} pull:${ot} cp:${fe.getCheckpoint().toTestString()}`),k}).catch(re=>{throw c.error(`[PP] c:"${this.getKey()}" err :`,re),re})}}const bw={Client:dm,Document:of,Primitive:ri,Text:a0,Counter:rf,Tree:l0,IntType:Yi.IntegerCnt,LongType:Yi.LongCnt}})(),s})())})(Jle);var Z_=Jle.exports;class jHe{constructor(t,n){ks(this,"doc");ks(this,"client");this.doc=t,this.client=n}}const n6=hn.define({combine(e){return e[e.length-1]}});Pc.define();class zHe{constructor(t){ks(this,"view");ks(this,"conf");ks(this,"_doc");this.view=t,this.conf=t.state.facet(n6),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[gs.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new Z_.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const o=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:o,annotations:[gs.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(o=>n.isUserEvent(o))||n.annotation(gs.remote))continue;let i=0;n.changes.iterChanges((o,s,a,l,u)=>{const c=u.toJSON().join(` -`);this._doc.update(d=>{d.content.edit(o+i,s+i,c)}),i+=c.length-(s-o)})}}}const VHe=Wi.fromClass(zHe);class HHe{constructor(t,n){this.left=t,this.right=n}}const Qm=(e,t)=>new HHe(e,t),WHe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Hd=typeof document<"u"?document:{},QHe=e=>Hd.createElement(e),YHe=()=>Hd.createDocumentFragment(),GHe=e=>Hd.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const qHe=(e,t)=>(WHe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),ZHe=e=>{const t=YHe();for(let n=0;n(eue(e,ZHe(t)),e),tC=(e,t=[],n=[])=>XHe(qHe(QHe(e),t),n),Wx=GHe,eue=(e,t)=>e.appendChild(t);Hd.ELEMENT_NODE;Hd.TEXT_NODE;Hd.CDATA_SECTION_NODE;Hd.COMMENT_NODE;Hd.DOCUMENT_NODE;Hd.DOCUMENT_TYPE_NODE;Hd.DOCUMENT_FRAGMENT_NODE;var X_={exports:{}};/** + */var wt=null;try{wt=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 Gt(T,p,b){this.low=T|0,this.high=p|0,this.unsigned=!!b}Gt.prototype.__isLong__,Object.defineProperty(Gt.prototype,"__isLong__",{value:!0});function jt(T){return(T&&T.__isLong__)===!0}function qt(T){var p=Math.clz32(T&-T);return T?31-p:p}Gt.isLong=jt;var Bt={},On={};function Ve(T,p){var b,_,D;return p?(T>>>=0,(D=0<=T&&T<256)&&(_=On[T],_)?_:(b=He(T,0,!0),D&&(On[T]=b),b)):(T|=0,(D=-128<=T&&T<128)&&(_=Bt[T],_)?_:(b=He(T,T<0?-1:0,!1),D&&(Bt[T]=b),b))}Gt.fromInt=Ve;function We(T,p){if(isNaN(T))return p?er:mn;if(p){if(T<0)return er;if(T>=$e)return si}else{if(T<=-Rt)return fi;if(T+1>=Rt)return Tr}return T<0?We(-T,p).neg():He(T%Je|0,T/Je|0,p)}Gt.fromNumber=We;function He(T,p,b){return new Gt(T,p,b)}Gt.fromBits=He;var bt=Math.pow;function Nn(T,p,b){if(T.length===0)throw Error("empty string");if(typeof p=="number"?(b=p,p=!1):p=!!p,T==="NaN"||T==="Infinity"||T==="+Infinity"||T==="-Infinity")return p?er:mn;if(b=b||10,b<2||360)throw Error("interior hyphen");if(_===0)return Nn(T.substring(1),p,b).neg();for(var D=We(bt(b,8)),K=mn,re=0;re>>0:this.low},Pt.toNumber=function(){return this.unsigned?(this.high>>>0)*Je+(this.low>>>0):this.high*Je+(this.low>>>0)},Pt.toString=function(p){if(p=p||10,p<2||36>>0,Dt=at.toString(p);if(re=Pe,re.isZero())return Dt+me;for(;Dt.length<6;)Dt="0"+Dt;me=""+Dt+me}},Pt.getHighBits=function(){return this.high},Pt.getHighBitsUnsigned=function(){return this.high>>>0},Pt.getLowBits=function(){return this.low},Pt.getLowBitsUnsigned=function(){return this.low>>>0},Pt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(fi)?64:this.neg().getNumBitsAbs();for(var p=this.high!=0?this.high:this.low,b=31;b>0&&!(p&1<=0},Pt.isOdd=function(){return(this.low&1)===1},Pt.isEven=function(){return(this.low&1)===0},Pt.equals=function(p){return jt(p)||(p=Kt(p)),this.unsigned!==p.unsigned&&this.high>>>31===1&&p.high>>>31===1?!1:this.high===p.high&&this.low===p.low},Pt.eq=Pt.equals,Pt.notEquals=function(p){return!this.eq(p)},Pt.neq=Pt.notEquals,Pt.ne=Pt.notEquals,Pt.lessThan=function(p){return this.comp(p)<0},Pt.lt=Pt.lessThan,Pt.lessThanOrEqual=function(p){return this.comp(p)<=0},Pt.lte=Pt.lessThanOrEqual,Pt.le=Pt.lessThanOrEqual,Pt.greaterThan=function(p){return this.comp(p)>0},Pt.gt=Pt.greaterThan,Pt.greaterThanOrEqual=function(p){return this.comp(p)>=0},Pt.gte=Pt.greaterThanOrEqual,Pt.ge=Pt.greaterThanOrEqual,Pt.compare=function(p){if(jt(p)||(p=Kt(p)),this.eq(p))return 0;var b=this.isNegative(),_=p.isNegative();return b&&!_?-1:!b&&_?1:this.unsigned?p.high>>>0>this.high>>>0||p.high===this.high&&p.low>>>0>this.low>>>0?-1:1:this.sub(p).isNegative()?-1:1},Pt.comp=Pt.compare,Pt.negate=function(){return!this.unsigned&&this.eq(fi)?fi:this.not().add(Zn)},Pt.neg=Pt.negate,Pt.add=function(p){jt(p)||(p=Kt(p));var b=this.high>>>16,_=this.high&65535,D=this.low>>>16,K=this.low&65535,re=p.high>>>16,me=p.high&65535,Pe=p.low>>>16,at=p.low&65535,Dt=0,tn=0,xt=0,wn=0;return wn+=K+at,xt+=wn>>>16,wn&=65535,xt+=D+Pe,tn+=xt>>>16,xt&=65535,tn+=_+me,Dt+=tn>>>16,tn&=65535,Dt+=b+re,Dt&=65535,He(xt<<16|wn,Dt<<16|tn,this.unsigned)},Pt.subtract=function(p){return jt(p)||(p=Kt(p)),this.add(p.neg())},Pt.sub=Pt.subtract,Pt.multiply=function(p){if(this.isZero())return this;if(jt(p)||(p=Kt(p)),wt){var b=wt.mul(this.low,this.high,p.low,p.high);return He(b,wt.get_high(),this.unsigned)}if(p.isZero())return this.unsigned?er:mn;if(this.eq(fi))return p.isOdd()?fi:mn;if(p.eq(fi))return this.isOdd()?fi:mn;if(this.isNegative())return p.isNegative()?this.neg().mul(p.neg()):this.neg().mul(p).neg();if(p.isNegative())return this.mul(p.neg()).neg();if(this.lt(en)&&p.lt(en))return We(this.toNumber()*p.toNumber(),this.unsigned);var _=this.high>>>16,D=this.high&65535,K=this.low>>>16,re=this.low&65535,me=p.high>>>16,Pe=p.high&65535,at=p.low>>>16,Dt=p.low&65535,tn=0,xt=0,wn=0,Un=0;return Un+=re*Dt,wn+=Un>>>16,Un&=65535,wn+=K*Dt,xt+=wn>>>16,wn&=65535,wn+=re*at,xt+=wn>>>16,wn&=65535,xt+=D*Dt,tn+=xt>>>16,xt&=65535,xt+=K*at,tn+=xt>>>16,xt&=65535,xt+=re*Pe,tn+=xt>>>16,xt&=65535,tn+=_*Dt+D*at+K*Pe+re*me,tn&=65535,He(wn<<16|Un,tn<<16|xt,this.unsigned)},Pt.mul=Pt.multiply,Pt.divide=function(p){if(jt(p)||(p=Kt(p)),p.isZero())throw Error("division by zero");if(wt){if(!this.unsigned&&this.high===-2147483648&&p.low===-1&&p.high===-1)return this;var b=(this.unsigned?wt.div_u:wt.div_s)(this.low,this.high,p.low,p.high);return He(b,wt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?er:mn;var _,D,K;if(this.unsigned){if(p.unsigned||(p=p.toUnsigned()),p.gt(this))return er;if(p.gt(this.shru(1)))return bn;K=er}else{if(this.eq(fi)){if(p.eq(Zn)||p.eq(_n))return fi;if(p.eq(fi))return Zn;var re=this.shr(1);return _=re.div(p).shl(1),_.eq(mn)?p.isNegative()?Zn:_n:(D=this.sub(p.mul(_)),K=_.add(D.div(p)),K)}else if(p.eq(fi))return this.unsigned?er:mn;if(this.isNegative())return p.isNegative()?this.neg().div(p.neg()):this.neg().div(p).neg();if(p.isNegative())return this.div(p.neg()).neg();K=mn}for(D=this;D.gte(p);){_=Math.max(1,Math.floor(D.toNumber()/p.toNumber()));for(var me=Math.ceil(Math.log(_)/Math.LN2),Pe=me<=48?1:bt(2,me-48),at=We(_),Dt=at.mul(p);Dt.isNegative()||Dt.gt(D);)_-=Pe,at=We(_,this.unsigned),Dt=at.mul(p);at.isZero()&&(at=Zn),K=K.add(at),D=D.sub(Dt)}return K},Pt.div=Pt.divide,Pt.modulo=function(p){if(jt(p)||(p=Kt(p)),wt){var b=(this.unsigned?wt.rem_u:wt.rem_s)(this.low,this.high,p.low,p.high);return He(b,wt.get_high(),this.unsigned)}return this.sub(this.div(p).mul(p))},Pt.mod=Pt.modulo,Pt.rem=Pt.modulo,Pt.not=function(){return He(~this.low,~this.high,this.unsigned)},Pt.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Pt.clz=Pt.countLeadingZeros,Pt.countTrailingZeros=function(){return this.low?qt(this.low):qt(this.high)+32},Pt.ctz=Pt.countTrailingZeros,Pt.and=function(p){return jt(p)||(p=Kt(p)),He(this.low&p.low,this.high&p.high,this.unsigned)},Pt.or=function(p){return jt(p)||(p=Kt(p)),He(this.low|p.low,this.high|p.high,this.unsigned)},Pt.xor=function(p){return jt(p)||(p=Kt(p)),He(this.low^p.low,this.high^p.high,this.unsigned)},Pt.shiftLeft=function(p){return jt(p)&&(p=p.toInt()),(p&=63)===0?this:p<32?He(this.low<>>32-p,this.unsigned):He(0,this.low<>>p|this.high<<32-p,this.high>>p,this.unsigned):He(this.high>>p-32,this.high>=0?0:-1,this.unsigned)},Pt.shr=Pt.shiftRight,Pt.shiftRightUnsigned=function(p){return jt(p)&&(p=p.toInt()),(p&=63)===0?this:p<32?He(this.low>>>p|this.high<<32-p,this.high>>>p,this.unsigned):p===32?He(this.high,0,this.unsigned):He(this.high>>>p-32,0,this.unsigned)},Pt.shru=Pt.shiftRightUnsigned,Pt.shr_u=Pt.shiftRightUnsigned,Pt.rotateLeft=function(p){var b;return jt(p)&&(p=p.toInt()),(p&=63)===0?this:p===32?He(this.high,this.low,this.unsigned):p<32?(b=32-p,He(this.low<>>b,this.high<>>b,this.unsigned)):(p-=32,b=32-p,He(this.high<>>b,this.low<>>b,this.unsigned))},Pt.rotl=Pt.rotateLeft,Pt.rotateRight=function(p){var b;return jt(p)&&(p=p.toInt()),(p&=63)===0?this:p===32?He(this.high,this.low,this.unsigned):p<32?(b=32-p,He(this.high<>>p,this.low<>>p,this.unsigned)):(p-=32,b=32-p,He(this.low<>>p,this.high<>>p,this.unsigned))},Pt.rotr=Pt.rotateRight,Pt.toSigned=function(){return this.unsigned?He(this.low,this.high,!1):this},Pt.toUnsigned=function(){return this.unsigned?this:He(this.low,this.high,!0)},Pt.toBytes=function(p){return p?this.toBytesLE():this.toBytesBE()},Pt.toBytesLE=function(){var p=this.high,b=this.low;return[b&255,b>>>8&255,b>>>16&255,b>>>24,p&255,p>>>8&255,p>>>16&255,p>>>24]},Pt.toBytesBE=function(){var p=this.high,b=this.low;return[p>>>24,p>>>16&255,p>>>8&255,p&255,b>>>24,b>>>16&255,b>>>8&255,b&255]},Gt.fromBytes=function(p,b,_){return _?Gt.fromBytesLE(p,b):Gt.fromBytesBE(p,b)},Gt.fromBytesLE=function(p,b){return new Gt(p[0]|p[1]<<8|p[2]<<16|p[3]<<24,p[4]|p[5]<<8|p[6]<<16|p[7]<<24,b)},Gt.fromBytesBE=function(p,b){return new Gt(p[4]<<24|p[5]<<16|p[6]<<8|p[7],p[0]<<24|p[1]<<16|p[2]<<8|p[3],b)};const Pi=Gt;var Hn;(function(T){T.Ok="ok",T.ClientNotActive="client-not-active",T.Unimplemented="unimplemented",T.Unsupported="unsupported",T.DocumentNotAttached="document-not-attached",T.DocumentNotDetached="document-not-detached",T.DocumentRemoved="document-removed",T.InvalidObjectKey="invalid-object-key",T.InvalidArgument="invalid-argument"})(Hn||(Hn={}));class Xn extends Error{constructor(p,b){super(b),this.code=p,this.message=b,this.name="YorkieError",this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function Ea(T){if(T instanceof Map){const p=Array.from(T);return new Map(JSON.parse(JSON.stringify(p)))}return JSON.parse(JSON.stringify(T))}const gs=T=>T?Object.entries(T).length===0:!0,Li=T=>{const p={};for(const[b,_]of Object.entries(T))p[b]=JSON.stringify(_);return p},Kd=T=>{const p={};for(const[b,_]of Object.entries(T))p[b]=JSON.parse(_);return p};var Qa;(function(T){T.Put="put",T.Clear="clear"})(Qa||(Qa={}));class pp{constructor(p,b){this.context=p,this.presence=b}set(p,b){for(const _ of Object.keys(p))this.presence[_]=p[_];this.context.setPresenceChange({type:Qa.Put,presence:Ea(this.presence)}),this.context.setReversePresence(p,b)}get(p){return this.presence[p]}clear(){this.presence={},this.context.setPresenceChange({type:Qa.Clear})}}const na="000000000000000000000000",Ya="FFFFFFFFFFFFFFFFFFFFFFFF";class eo{constructor(p,b,_){this.lamport=p,this.delimiter=b,this.actorID=_}static of(p,b,_){return new eo(p,b,_)}static fromStruct(p){return eo.of(Pi.fromString(p.lamport,!0),p.delimiter,p.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(p){return new eo(this.lamport,this.delimiter,p)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(p){return this.compare(p)>0}equals(p){return this.compare(p)===0}compare(p){if(this.lamport.greaterThan(p.lamport))return 1;if(p.lamport.greaterThan(this.lamport))return-1;const b=this.actorID.localeCompare(p.actorID);return b!==0?b:this.delimiter>p.delimiter?1:p.delimiter>this.delimiter?-1:0}}const bs=0,ys=4294967295,Bs=Pi.MAX_VALUE,Ei=new eo(Pi.fromNumber(0),bs,na),Co=new eo(Bs,ys,Ya);function Si(T){return T.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(p){switch(p){case'"':case"\\":return"\\"+p;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 p}})}class Jd{constructor(p){this.createdAt=p}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(p){return!this.movedAt||p&&p.after(this.movedAt)?(this.movedAt=p,!0):!1}setRemovedAt(p){this.removedAt=p}remove(p){return p&&p.after(this.getPositionedAt())&&(!this.removedAt||p.after(this.removedAt))?(this.removedAt=p,!0):!1}isRemoved(){return!!this.removedAt}}class Ti extends Jd{constructor(p){super(p)}}class Sa extends Jd{}class Lo{constructor(p,b){this.strKey=p,this.value=b}static of(p,b){return new Lo(p,b)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(p){return this.value.remove(p)}}class to{constructor(){this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new to}set(p,b,_){let D;const K=this.nodeMapByKey.get(p);K!=null&&!K.isRemoved()&&K.remove(_)&&(D=K.getValue());const re=Lo.of(p,b);return this.nodeMapByCreatedAt.set(b.getCreatedAt().toIDString(),re),(K==null||_.after(K.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(p,re),b.setMovedAt(_)),D}delete(p,b){this.nodeMapByCreatedAt.has(p.toIDString())||c.fatal(`fail to find ${p.toIDString()}`);const _=this.nodeMapByCreatedAt.get(p.toIDString());return _.remove(b),_.getValue()}subPathOf(p){const b=this.nodeMapByCreatedAt.get(p.toIDString());if(b)return b.getStrKey()}purge(p){const b=this.nodeMapByCreatedAt.get(p.getCreatedAt().toIDString());if(!b){c.fatal(`fail to find ${p.getCreatedAt().toIDString()}`);return}const _=this.nodeMapByKey.get(b.getStrKey());b===_&&this.nodeMapByKey.delete(_.getStrKey()),this.nodeMapByCreatedAt.delete(b.getValue().getCreatedAt().toIDString())}deleteByKey(p,b){const _=this.nodeMapByKey.get(p);if(_!=null&&_.remove(b))return _.getValue()}has(p){const b=this.nodeMapByKey.get(p);return b==null?!1:!b.isRemoved()}getByID(p){return this.nodeMapByCreatedAt.get(p.toIDString())}get(p){const b=this.nodeMapByKey.get(p);if(!(!b||b.isRemoved()))return b}*[Symbol.iterator](){for(const[,p]of this.nodeMapByKey)yield p}}class Vr extends Ti{constructor(p,b){super(p),this.memberNodes=b}static create(p,b){if(!b)return new Vr(p,to.create());const _=to.create();for(const[D,K]of Object.entries(b))_.set(D,K.deepcopy(),K.getCreatedAt());return new Vr(p,_)}subPathOf(p){return this.memberNodes.subPathOf(p)}purge(p){this.memberNodes.purge(p)}set(p,b,_){return this.memberNodes.set(p,b,_)}delete(p,b){return this.memberNodes.delete(p,b)}deleteByKey(p,b){return this.memberNodes.deleteByKey(p,b)}get(p){const b=this.memberNodes.get(p);return b==null?void 0:b.getValue()}getByID(p){const b=this.memberNodes.getByID(p);return b==null?void 0:b.getValue()}has(p){return this.memberNodes.has(p)}toJSON(){const p=[];for(const[b,_]of this)p.push(`"${Si(b)}":${_.toJSON()}`);return`{${p.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const p={};for(const[b,_]of this){const{createdAt:D,value:K,type:re}=_.toJSForTest();p[b]={key:b,createdAt:D,value:K,type:re}}return{createdAt:this.getCreatedAt().toTestString(),value:p,type:"YORKIE_OBJECT"}}getKeys(){const p=Array();for(const[b]of this)p.push(b);return p}toSortedJSON(){var p;const b=Array();for(const[D]of this)b.push(D);const _=[];for(const D of b.sort()){const K=(p=this.memberNodes.get(D))===null||p===void 0?void 0:p.getValue();_.push(`"${Si(D)}":${K.toSortedJSON()}`)}return`{${_.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const p=Vr.create(this.getCreatedAt());for(const b of this.memberNodes)p.memberNodes.set(b.getStrKey(),b.getValue().deepcopy(),this.getPositionedAt());return p.remove(this.getRemovedAt()),p}getDescendants(p){for(const b of this.memberNodes){const _=b.getValue();if(p(_,this))return;_ instanceof Ti&&_.getDescendants(p)}}*[Symbol.iterator](){const p=new Set;for(const b of this.memberNodes)p.has(b.getStrKey())||(p.add(b.getStrKey()),b.isRemoved()||(yield[b.getStrKey(),b.getValue()]))}}var Fr;(function(T){T.Local="local",T.Remote="remote",T.UndoRedo="undoredo"})(Fr||(Fr={}));class li{constructor(p,b){this.parentCreatedAt=p,this.executedAt=b}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(p){this.executedAt&&(this.executedAt=this.executedAt.setActor(p))}setExecutedAt(p){this.executedAt=p}}class ra{constructor(p){this.value=p,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(p){this.left=p}setRight(p){this.right=p}setParent(p){this.parent=p}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(p){this.weight+=p}initWeight(){this.weight=this.getLength()}}class _o{constructor(p){this.root=p}get length(){return this.root?this.root.getWeight():0}find(p){if(!this.root||p<0)return[void 0,0];let b=this.root;for(;;)if(b.hasLeft()&&p<=b.getLeftWeight())b=b.getLeft();else if(b.hasRight()&&b.getLeftWeight()+b.getLength()b.getLength()&&c.fatal(`out of index range: pos: ${p} > node.length: ${b.getLength()}`),[b,p]}indexOf(p){if(!p||p!==this.root&&!p.hasLinks())return-1;let b=0,_=p,D;for(;_;)(!D||D===_.getRight())&&(b+=_.getLength()+(_.hasLeft()?_.getLeftWeight():0)),D=_,_=_.getParent();return b-p.getLength()}getRoot(){return this.root}insert(p){return this.insertAfter(this.root,p)}insertAfter(p,b){return p?(this.splayNode(p),this.root=b,b.setRight(p.getRight()),p.hasRight()&&p.getRight().setParent(b),b.setLeft(p),p.setParent(b),p.setRight(),this.updateWeight(p),this.updateWeight(b),b):(this.root=b,b)}updateWeight(p){p.initWeight(),p.hasLeft()&&p.increaseWeight(p.getLeftWeight()),p.hasRight()&&p.increaseWeight(p.getRightWeight())}updateTreeWeight(p){for(;p;)this.updateWeight(p),p=p.getParent()}splayNode(p){if(p)for(;;)if(this.isLeftChild(p.getParent())&&this.isRightChild(p))this.rotateLeft(p),this.rotateRight(p);else if(this.isRightChild(p.getParent())&&this.isLeftChild(p))this.rotateRight(p),this.rotateLeft(p);else if(this.isLeftChild(p.getParent())&&this.isLeftChild(p))this.rotateRight(p.getParent()),this.rotateRight(p);else if(this.isRightChild(p.getParent())&&this.isRightChild(p))this.rotateLeft(p.getParent()),this.rotateLeft(p);else{this.isLeftChild(p)?this.rotateRight(p):this.isRightChild(p)&&this.rotateLeft(p),this.updateWeight(p);return}}delete(p){this.splayNode(p);const b=new _o(p.getLeft());b.root&&b.root.setParent();const _=new _o(p.getRight());if(_.root&&_.root.setParent(),b.root){const D=b.getRightmost();b.splayNode(D),b.root.setRight(_.root),_.root&&_.root.setParent(b.root),this.root=b.root}else this.root=_.root;p.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(p,b){if(!b){this.splayNode(p),this.cutOffRight(p);return}this.splayNode(p),this.splayNode(b),b.getLeft()!=p&&this.rotateRight(p),this.cutOffRight(p)}cutOffRight(p){const b=[];this.traversePostorder(p.getRight(),b);for(const _ of b)_.initWeight();this.updateTreeWeight(p)}toTestString(){const p=[];return this.traverseInorder(this.root,p),p.map(b=>`[${b.getWeight()},${b.getLength()}]${b.getValue()||""}`).join("")}checkWeight(){const p=[];this.traverseInorder(this.root,p);for(const b of p)if(b.getWeight()!=b.getLength()+b.getLeftWeight()+b.getRightWeight())return!1;return!0}getRightmost(){let p=this.root;for(;p.hasRight();)p=p.getRight();return p}traverseInorder(p,b){p&&(this.traverseInorder(p.getLeft(),b),b.push(p),this.traverseInorder(p.getRight(),b))}traversePostorder(p,b){p&&(this.traversePostorder(p.getLeft(),b),this.traversePostorder(p.getRight(),b),b.push(p))}rotateLeft(p){const b=p.getParent();b.hasParent()?b===b.getParent().getLeft()?b.getParent().setLeft(p):b.getParent().setRight(p):this.root=p,p.setParent(b.getParent()),b.setRight(p.getLeft()),b.hasRight()&&b.getRight().setParent(b),p.setLeft(b),p.getLeft().setParent(p),this.updateWeight(b),this.updateWeight(p)}rotateRight(p){const b=p.getParent();b.hasParent()?b===b.getParent().getLeft()?b.getParent().setLeft(p):b.getParent().setRight(p):this.root=p,p.setParent(b.getParent()),b.setLeft(p.getRight()),b.hasLeft()&&b.getLeft().setParent(b),p.setRight(b),p.getRight().setParent(p),this.updateWeight(b),this.updateWeight(p)}isLeftChild(p){return p&&p.hasParent()?p.getParent().getLeft()===p:!1}isRightChild(p){return p&&p.hasParent()?p.getParent().getRight()===p:!1}}var Pn;(function(T){T[T.Null=0]="Null",T[T.Boolean=1]="Boolean",T[T.Integer=2]="Integer",T[T.Long=3]="Long",T[T.Double=4]="Double",T[T.String=5]="String",T[T.Bytes=6]="Bytes",T[T.Date=7]="Date"})(Pn||(Pn={}));class ri extends Jd{constructor(p,b){super(b),this.valueType=ri.getPrimitiveType(p),this.value=p===void 0?null:p}static of(p,b){return new ri(p,b)}static valueFromBytes(p,b){switch(p){case Pn.Null:return null;case Pn.Boolean:return!!b[0];case Pn.Integer:return b[0]|b[1]<<8|b[2]<<16|b[3]<<24;case Pn.Double:{const _=new DataView(b.buffer);return b.forEach(function(D,K){_.setUint8(K,D)}),_.getFloat64(0,!0)}case Pn.String:return new TextDecoder("utf-8").decode(b);case Pn.Long:return Pi.fromBytesLE(Array.from(b));case Pn.Bytes:return b;case Pn.Date:return new Date(Pi.fromBytesLE(Array.from(b),!0).toNumber());default:throw new Xn(Hn.Unimplemented,`unimplemented type: ${p}`)}}toJSON(){return this.valueType===Pn.String?`"${Si(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const p=ri.of(this.value,this.getCreatedAt());return p.setMovedAt(this.getMovedAt()),p.setRemovedAt(this.getRemovedAt()),p}getType(){return this.valueType}static getPrimitiveType(p){switch(typeof p){case"undefined":return Pn.Null;case"boolean":return Pn.Boolean;case"number":return this.isInteger(p)?Pn.Integer:Pn.Double;case"string":return Pn.String;case"object":if(p===null)return Pn.Null;if(p instanceof Pi)return Pn.Long;if(p instanceof Uint8Array)return Pn.Bytes;if(p instanceof Date)return Pn.Date}}static isSupport(p){return ri.getPrimitiveType(p)!==void 0}static isInteger(p){return p%1===0}isNumericType(){const p=this.valueType;return p===Pn.Integer||p===Pn.Long||p===Pn.Double}getValue(){return this.value}toBytes(){switch(this.valueType){case Pn.Null:return new Uint8Array;case Pn.Boolean:return this.value?new Uint8Array([1]):new Uint8Array([0]);case Pn.Integer:{const p=this.value;return new Uint8Array([p&255,p>>8&255,p>>16&255,p>>24&255])}case Pn.Double:{const p=this.value,b=new Uint8Array(8);return new DataView(b.buffer).setFloat64(0,p,!0),b}case Pn.String:return new TextEncoder().encode(this.value);case Pn.Long:{const b=this.value.toBytesLE();return Uint8Array.from(b)}case Pn.Bytes:return this.value;case Pn.Date:{const p=this.value,b=Pi.fromNumber(p.getTime(),!0).toBytesLE();return Uint8Array.from(b)}default:throw new Xn(Hn.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class ef extends ra{constructor(p){super(p),this.value=p}static createAfter(p,b){const _=new ef(b),D=p.next;return p.next=_,_.prev=p,_.next=D,D&&(D.prev=_),_}remove(p){return this.value.remove(p)}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 zc{constructor(){const p=ri.of(0,Ei);p.setRemovedAt(Ei),this.dummyHead=new ef(p),this.last=this.dummyHead,this.nodeMapByIndex=new _o,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new zc}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(p,b){let _=this.nodeMapByCreatedAt.get(p.toIDString());for(_||c.fatal(`cant find the given node: ${p.toIDString()}`);_.getNext()&&_.getNext().getPositionedAt().after(b);)_=_.getNext();return _}release(p){this.last===p&&(this.last=p.getPrev()),p.release(),this.nodeMapByIndex.delete(p),this.nodeMapByCreatedAt.delete(p.getValue().getCreatedAt().toIDString())}insertAfter(p,b,_=b.getCreatedAt()){const D=this.findNextBeforeExecutedAt(p,_),K=ef.createAfter(D,b);D===this.last&&(this.last=K),this.nodeMapByIndex.insertAfter(D,K),this.nodeMapByCreatedAt.set(K.getCreatedAt().toIDString(),K)}moveAfter(p,b,_){const D=this.nodeMapByCreatedAt.get(p.toIDString());D||c.fatal(`cant find the given node: ${p.toIDString()}`);const K=this.nodeMapByCreatedAt.get(b.toIDString());K||c.fatal(`cant find the given node: ${b.toIDString()}`),D!==K&&(!K.getValue().getMovedAt()||_.after(K.getValue().getMovedAt()))&&(this.release(K),this.insertAfter(D.getCreatedAt(),K.getValue(),_),K.getValue().setMovedAt(_))}insert(p){this.insertAfter(this.last.getCreatedAt(),p)}getByID(p){return this.nodeMapByCreatedAt.get(p.toIDString())}subPathOf(p){const b=this.nodeMapByCreatedAt.get(p.toIDString());if(b)return String(this.nodeMapByIndex.indexOf(b))}purge(p){const b=this.nodeMapByCreatedAt.get(p.getCreatedAt().toIDString());b||c.fatal(`fail to find the given createdAt: ${p.getCreatedAt().toIDString()}`),this.release(b)}getByIndex(p){if(p>=this.length)return;const[b,_]=this.nodeMapByIndex.find(p);let D=b;if(p===0&&b===this.dummyHead||_>0)do D&&(D=D.getNext());while(D&&D.isRemoved());return D}getPrevCreatedAt(p){let b=this.nodeMapByCreatedAt.get(p.toIDString());do b=b.getPrev();while(this.dummyHead!==b&&b.isRemoved());return b.getValue().getCreatedAt()}delete(p,b){const _=this.nodeMapByCreatedAt.get(p.toIDString()),D=_.isRemoved();return _.remove(b)&&!D&&this.nodeMapByIndex.splayNode(_),_.getValue()}deleteByIndex(p,b){const _=this.getByIndex(p);if(_)return _.remove(b)&&this.nodeMapByIndex.splayNode(_),_.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const p=[];for(const b of this){const _=`${b.getCreatedAt().toIDString()}:${b.getValue().toJSON()}`;b.isRemoved()?p.push(`{${_}}`):p.push(`[${_}]`)}return p.join("")}*[Symbol.iterator](){let p=this.dummyHead.getNext();for(;p;)yield p,p=p.getNext()}}class Ta extends Ti{constructor(p,b){super(p),this.elements=b}static create(p,b){if(!b)return new Ta(p,zc.create());const _=zc.create();for(const D of b)_.insertAfter(_.getLastCreatedAt(),D.deepcopy());return new Ta(p,_)}subPathOf(p){return this.elements.subPathOf(p)}purge(p){this.elements.purge(p)}insertAfter(p,b){this.elements.insertAfter(p,b)}moveAfter(p,b,_){this.elements.moveAfter(p,b,_)}get(p){const b=this.elements.getByIndex(p);return b==null?void 0:b.getValue()}getByID(p){const b=this.elements.getByID(p);return b==null?void 0:b.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(p){return this.elements.getPrevCreatedAt(p)}delete(p,b){return this.elements.delete(p,b)}deleteByIndex(p,b){return this.elements.deleteByIndex(p,b)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const p of this.elements)p.isRemoved()||(yield p.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(p){for(const b of this.elements){const _=b.getValue();if(p(_,this))return;_ instanceof Ti&&_.getDescendants(p)}}toJSON(){const p=[];for(const b of this)p.push(b.toJSON());return`[${p.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const p={};for(let b=0;bb[0].localeCompare(_[0])).map(([b,_])=>`${b}="${JSON.parse(_.getValue())}"`).join(" ")}`:""}size(){return this.nodeMapByKey.size}toObject(){const p={};for(const[b,_]of this.nodeMapByKey)p[b]=_.getValue();return p}*[Symbol.iterator](){for(const[,p]of this.nodeMapByKey)yield p}}var Ga;(function(T){T.Content="content",T.Style="style"})(Ga||(Ga={}));class Mo{constructor(p){this.attributes=go.create(),this.content=p}static create(p){return new Mo(p)}get length(){return this.content.length}substring(p,b){const _=new Mo(this.content.substring(p,b));return _.attributes=this.attributes.deepcopy(),_}setAttr(p,b,_){this.attributes.set(p,b,_)}getAttrs(){return this.attributes}toString(){return this.content}toJSON(){const p=Si(this.content),b=this.attributes.toObject(),_=[];for(const[D,K]of Object.entries(b)){const re=JSON.parse(K),me=typeof re=="string"?`"${Si(D)}":"${Si(re)}"`:`"${Si(D)}":${String(re)}`;_.push(me)}return _.sort(),_.length===0?`{"val":"${p}"}`:`{"attrs":{${_.join(",")}},"val":"${p}"}`}getAttributes(){return this.attributes.toObject()}getContent(){return this.content}}class ia extends Sa{constructor(p,b){super(b),this.rgaTreeSplit=p}static create(p,b){return new ia(p,b)}edit(p,b,_,D,K){const re=b?Mo.create(b):void 0;if(re&&D)for(const[tn,xt]of Object.entries(D))re.setAttr(tn,xt,_);const[me,Pe,at]=this.rgaTreeSplit.edit(p,_,re,K),Dt=at.map(tn=>({...tn,value:tn.value?{attributes:Kd(tn.value.getAttributes()),content:tn.value.getContent()}:{attributes:void 0,content:""},type:Ga.Content}));return[Pe,Dt,[me,me]]}setStyle(p,b,_,D){const[,K]=this.rgaTreeSplit.findNodeWithSplit(p[1],_),[,re]=this.rgaTreeSplit.findNodeWithSplit(p[0],_),me=[],Pe=this.rgaTreeSplit.findBetween(re,K),at=new Map,Dt=[];for(const tn of Pe){const xt=tn.getCreatedAt().getActorID(),wn=D!=null&&D.size?D.has(xt)?D.get(xt):Ei:Co;if(tn.canStyle(_,wn)){const Un=at.get(xt),or=tn.getCreatedAt();(!Un||or.after(Un))&&at.set(xt,or),Dt.push(tn)}}for(const tn of Dt){if(tn.isRemoved())continue;const[xt,wn]=this.rgaTreeSplit.findIndexesFromRange(tn.createPosRange());me.push({type:Ga.Style,actor:_.getActorID(),from:xt,to:wn,value:{attributes:Kd(b)}});for(const[Un,or]of Object.entries(b))tn.getValue().setAttr(Un,or,_)}return[at,me]}indexRangeToPosRange(p,b){const _=this.rgaTreeSplit.indexToPos(p);return p===b?[_,_]:[_,this.rgaTreeSplit.indexToPos(b)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const p=[];for(const b of this.rgaTreeSplit)b.isRemoved()||p.push(b.getValue().toJSON());return`[${p.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 p=[];for(const b of this.rgaTreeSplit)if(!b.isRemoved()){const _=b.getValue();p.push({attributes:Kd(_.getAttributes()),content:_.getContent()})}return p}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}getRemovedNodesLen(){return this.rgaTreeSplit.getRemovedNodesLen()}purgeRemovedNodesBefore(p){return this.rgaTreeSplit.purgeRemovedNodesBefore(p)}deepcopy(){const p=new ia(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return p.remove(this.getRemovedAt()),p}findIndexesFromRange(p){return this.rgaTreeSplit.findIndexesFromRange(p)}}class oa extends li{constructor(p,b,_,D,K,re,me){super(p,me),this.fromPos=b,this.toPos=_,this.maxCreatedAtMapByActor=D,this.content=K,this.attributes=re}static create(p,b,_,D,K,re,me){return new oa(p,b,_,D,K,re,me)}execute(p){const b=p.findByCreatedAt(this.getParentCreatedAt());b||c.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof ia||c.fatal("fail to execute, only Text can execute edit");const _=b,[,D]=_.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||p.registerElementHasRemovedNodes(_),{opInfos:D.map(({from:K,to:re,value:me})=>({type:"edit",from:K,to:re,value:me,path:p.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const p=this.getParentCreatedAt().toTestString(),b=this.fromPos.toTestString(),_=this.toPos.toTestString(),D=this.content;return`${p}.EDIT(${b},${_},${D})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Ao extends li{constructor(p,b,_,D,K,re){super(p,re),this.fromPos=b,this.toPos=_,this.maxCreatedAtMapByActor=D,this.attributes=K}static create(p,b,_,D,K,re){return new Ao(p,b,_,D,K,re)}execute(p){const b=p.findByCreatedAt(this.getParentCreatedAt());b||c.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof ia||c.fatal("fail to execute, only Text can execute edit");const _=b,[,D]=_.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);return{opInfos:D.map(({from:K,to:re,value:me})=>({type:"style",from:K,to:re,value:me,path:p.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const p=this.getParentCreatedAt().toTestString(),b=this.fromPos.toTestString(),_=this.toPos.toTestString(),D=this.attributes;return`${p}.STYL(${b},${_},${JSON.stringify(D)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const qa=2,hl="root",Qn="text";function mr(T,p){let b=0;const _=T.children;for(let D=0;D0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let p=this.parent;const b=this.isRemoved?-1:1;for(;p;)p.size+=this.paddedSize*b,p=p.parent}get isText(){return this.type===Qn}get paddedSize(){return this.size+(this.isText?0:qa)}isAncestorOf(p){return ml(this,p)}get nextSibling(){const p=this.parent.findOffset(this),b=this.parent.children[p+1];if(b)return b}splitText(p,b){if(p===0||p===this.size)return;const _=this.value.slice(0,p),D=this.value.slice(p);if(!D.length)return;this.value=_;const K=this.cloneText(p+b);return K.value=D,this.parent.insertAfterInternal(K,this),K}get children(){return this._children.filter(p=>!p.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.some(p=>p.isText)}append(...p){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...p);for(const b of p)b.parent=this,b.updateAncestorsSize()}prepend(...p){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...p);for(const b of p)b.parent=this,b.isRemoved||b.updateAncestorsSize()}insertBefore(p,b){if(this.isText)throw new Error("Text node cannot have children");const _=this._children.indexOf(b);if(_===-1)throw new Error("child not found");this.insertAtInternal(p,_),p.updateAncestorsSize()}insertAfter(p,b){if(this.isText)throw new Error("Text node cannot have children");const _=this._children.indexOf(b);if(_===-1)throw new Error("child not found");this.insertAtInternal(p,_+1),p.updateAncestorsSize()}insertAt(p,b){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(p,b),p.updateAncestorsSize()}removeChild(p){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(p);if(b===-1)throw new Error("child not found");this._children.splice(b,1),p.parent=void 0}splitElement(p,b){const _=this.cloneElement(b);this.parent.insertAfterInternal(_,this),_.updateAncestorsSize();const D=this.children.slice(0,p),K=this.children.slice(p);this._children=D,_._children=K,this.size=this._children.reduce((re,me)=>re+me.paddedSize,0),_.size=_._children.reduce((re,me)=>re+me.paddedSize,0);for(const re of _._children)re.parent=_;return _}insertAfterInternal(p,b){if(this.isText)throw new Error("Text node cannot have children");const _=this._children.indexOf(b);if(_===-1)throw new Error("child not found");this.insertAtInternal(p,_+1)}insertAtInternal(p,b){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(b,0,p),p.parent=this}findOffset(p){if(this.isText)throw new Error("Text node cannot have children");if(p.isRemoved){const b=this._children.indexOf(p);return this.allChildren.splice(0,b).filter(D=>!D.isRemoved).length}return this.children.indexOf(p)}findBranchOffset(p){if(this.isText)throw new Error("Text node cannot have children");let b=p;for(;b;){const _=this._children.indexOf(b);if(_!==-1)return _;b=b.parent}return-1}}function ml(T,p){if(T===p)return!1;for(;p.parent;){if(p.parent===T)return!0;p=p.parent}return!1}var br;(function(T){T.Start="Start",T.End="End",T.Text="Text"})(br||(br={}));function Ro(T,p,b,_){if(p>b)throw new Error(`from is greater than to: ${p} > ${b}`);if(p>T.size)throw new Error(`from is out of range: ${p} > ${T.size}`);if(b>T.size)throw new Error(`to is out of range: ${b} > ${T.size}`);if(p===b)return;let D=0;for(const K of T.children){if(p-K.paddedSizeK.size;(K.isText||Pe)&&_([K,K.isText?br.Text:br.Start],at),Ro(K,Math.max(0,re),Math.min(me,K.size),_),at&&_([K,br.End],at)}D+=K.paddedSize}}function vs(T,p,b=0){for(const _ of T.children)vs(_,p,b+1);p(T,b)}function Za(T,p,b=0){for(const _ of T._children)Za(_,p,b+1);p(T,b)}function wa(T,p,b=!0){if(p>T.size)throw new Error(`index is out of range: ${p} > ${T.size}`);if(T.isText)return{node:T,offset:p};let _=0,D=0;for(const K of T.children){if(b&&K.isText&&K.size>=p-D)return wa(K,p-D,b);if(p===D)return{node:T,offset:_};if(!b&&K.paddedSize===p-D)return{node:T,offset:_+1};if(K.paddedSize>p-D)return wa(K,p-D-1,b);D+=K.paddedSize,_+=1}return{node:T,offset:_}}function H(T){return T.isText||T.children.length===0?T:H(T.children[0])}function I(T,p){if(T.sizeT===p?0:T0)if(b.right)b.right.parent=b,b=b.right;else return b;else if(_<0)if(b.left)b.left.parent=b,b=b.left;else{let D=b.parent,K=b;for(;D&&K===D.left;)K=D,D=D.parent;return D}else return b}}lastEntry(){if(!this.root)return this.root;let p=this.root;for(;p.right;)p=p.right;return p}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(p,b){for(;b;){const _=this.comparator(p,b.key);if(_===0)return b;_<0?b=b.left:_>0&&(b=b.right)}}putInternal(p,b,_){if(!_)return this.counter+=1,new _e(p,b,!0);const D=this.comparator(p,_.key);return D<0?_.left=this.putInternal(p,b,_.left):D>0?_.right=this.putInternal(p,b,_.right):_.value=b,this.isRed(_.right)&&!this.isRed(_.left)&&(_=this.rotateLeft(_)),this.isRed(_.left)&&this.isRed(_.left.left)&&(_=this.rotateRight(_)),this.isRed(_.left)&&this.isRed(_.right)&&this.flipColors(_),_}removeInternal(p,b){if(this.comparator(b,p.key)<0)!this.isRed(p.left)&&!this.isRed(p.left.left)&&(p=this.moveRedLeft(p)),p.left=this.removeInternal(p.left,b);else{if(this.isRed(p.left)&&(p=this.rotateRight(p)),this.comparator(b,p.key)===0&&!p.right){this.counter-=1;return}if(!this.isRed(p.right)&&!this.isRed(p.right.left)&&(p=this.moveRedRight(p)),this.comparator(b,p.key)===0){this.counter-=1;const _=this.min(p.right);p.value=_.value,p.key=_.key,p.right=this.removeMin(p.right)}else p.right=this.removeInternal(p.right,b)}return this.fixUp(p)}min(p){return p.left?this.min(p.left):p}removeMin(p){if(p.left)return!this.isRed(p.left)&&!this.isRed(p.left.left)&&(p=this.moveRedLeft(p)),p.left=this.removeMin(p.left),this.fixUp(p)}fixUp(p){return this.isRed(p.right)&&(p=this.rotateLeft(p)),this.isRed(p.left)&&this.isRed(p.left.left)&&(p=this.rotateRight(p)),this.isRed(p.left)&&this.isRed(p.right)&&this.flipColors(p),p}moveRedLeft(p){return this.flipColors(p),this.isRed(p.right.left)&&(p.right=this.rotateRight(p.right),p=this.rotateLeft(p),this.flipColors(p)),p}moveRedRight(p){return this.flipColors(p),this.isRed(p.left.left)&&(p=this.rotateRight(p),this.flipColors(p)),p}isRed(p){return p&&p.isRed}rotateLeft(p){const b=p.right;return p.right=b.left,b.left=p,b.isRed=b.left.isRed,b.left.isRed=!0,b}rotateRight(p){const b=p.left;return p.left=b.right,b.right=p,b.isRed=b.right.isRed,b.right.isRed=!0,b}flipColors(p){p.isRed=!p.isRed,p.left.isRed=!p.left.isRed,p.right.isRed=!p.right.isRed}}var kt;(function(T){T.Content="content",T.Style="style"})(kt||(kt={}));class ut{constructor(p,b){this.parentID=p,this.leftSiblingID=b}static of(p,b){return new ut(p,b)}static fromTreePos(p){const{offset:b}=p;let{node:_}=p,D;return _.isText?(_.parent.children[0]===_&&b===0?D=_.parent:D=_,_=_.parent):b===0?D=_:D=_.children[b-1],ut.of(_.id,It.of(D.getCreatedAt(),D.getOffset()+b))}getParentID(){return this.parentID}static fromStruct(p){return ut.of(It.of(eo.fromStruct(p.parentID.createdAt),p.parentID.offset),It.of(eo.fromStruct(p.leftSiblingID.createdAt),p.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(p){const b=this.getParentID(),_=this.getLeftSiblingID(),D=p.findFloorNode(b);let K=p.findFloorNode(_);if(!D||!K)throw new Error(`cannot find node at ${this}`);return!_.equals(b)&&_.getOffset()>0&&_.getOffset()===K.id.getOffset()&&K.insPrevID&&(K=p.findFloorNode(K.insPrevID)),[D,K]}getLeftSiblingID(){return this.leftSiblingID}equals(p){return this.getParentID().getCreatedAt().equals(p.getParentID().getCreatedAt())&&this.getParentID().getOffset()===p.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(p.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===p.getLeftSiblingID().getOffset()}}class It{constructor(p,b){this.createdAt=p,this.offset=b}static of(p,b){return new It(p,b)}static fromStruct(p){return It.of(eo.fromStruct(p.createdAt),p.offset)}static createComparator(){return(p,b)=>{const _=p.getCreatedAt().compare(b.getCreatedAt());return _!==0?_:p.getOffset()>b.getOffset()?1:p.getOffset(){const D=_.deepcopy();return D.parent=b,D}),b}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(p){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=p,this.size=p.length}get isRemoved(){return!!this.removedAt}remove(p){const b=!this.removedAt;(!this.removedAt||this.removedAt.compare(p)>0)&&(this.removedAt=p),b&&(this.parent.removedAt?this.parent.size-=this.paddedSize:this.updateAncestorsSize())}cloneText(p){return new Wt(It.of(this.id.getCreatedAt(),p),this.type,void 0,void 0,this.removedAt)}cloneElement(p){return new Wt(It.of(p(),0),this.type,void 0,void 0,this.removedAt)}split(p,b,_){const D=this.isText?this.splitText(b,this.id.getOffset()):this.splitElement(b,_);if(D){if(D.insPrevID=this.id,this.insNextID){const K=p.findFloorNode(this.insNextID);K.insPrevID=D.id,D.insNextID=this.insNextID}this.insNextID=D.id,p.registerNode(D)}return D}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(p,b){return!this.getCreatedAt().after(b)&&(!this.removedAt||p.after(this.removedAt))}}function Fn(T){var p;if(T.isText){const b=T;return{type:b.type,value:b.value}}return{type:T.type,children:T.children.map(Fn),attributes:T.attrs?Kd((p=T.attrs)===null||p===void 0?void 0:p.toObject()):void 0}}function Jr(T){var p;return T.isText?T.value:`<${T.type}${((p=T.attrs)===null||p===void 0?void 0:p.toXML())||""}>${T.children.map(b=>Jr(b)).join("")}`}function Wn(T){if(T.isText){const p=T;return{type:p.type,value:p.value,size:p.size,isRemoved:p.isRemoved}}return{type:T.type,children:T.children.map(Wn),size:T.size,isRemoved:T.isRemoved}}class pi extends Sa{constructor(p,b){super(b),this.indexTree=new U(p),this.nodeMapByID=new Ke(It.createComparator()),this.removedNodeMap=new Map,this.indexTree.traverse(_=>{this.nodeMapByID.put(_.id,_)})}static create(p,b){return new pi(p,b)}findFloorNode(p){const b=this.nodeMapByID.floorEntry(p);if(!(!b||!b.key.getCreatedAt().equals(p.getCreatedAt())))return b.value}registerNode(p){this.nodeMapByID.put(p.id,p)}findNodesAndSplitText(p,b){const[_,D]=p.toTreeNodes(this);let K=D;const re=_===K,me=K.parent&&!re?K.parent:_;if(K.isText&&K.split(this,p.getLeftSiblingID().getOffset()-K.id.getOffset()),b){const Pe=me.allChildren,at=re?0:Pe.indexOf(K)+1;for(let Dt=at;Dt{if(!Dt.isRemoved&&!Dt.isText&&b){Dt.attrs||(Dt.attrs=new go);for(const[tn,xt]of Object.entries(b))Dt.attrs.set(tn,xt,_);Pe.push({type:kt.Style,from:this.toIndex(D,K),to:this.toIndex(re,me),fromPath:this.toPath(D,K),toPath:this.toPath(re,me),actor:_.getActorID(),value:at})}}),Pe}edit(p,b,_,D,K,re){const[me,Pe]=this.findNodesAndSplitText(p[0],D),[at,Dt]=this.findNodesAndSplitText(p[1],D),tn=this.toIndex(me,Pe),xt=this.toPath(me,Pe),wn=[],Un=[],or=[],Pr=new Map;this.traverseInPosRange(me,Pe,at,Dt,([fr,Fi],Lr)=>{if(Fi===br.Start&&!Lr)for(const Tp of fr.children)or.push(Tp);const ro=fr.getCreatedAt().getActorID(),lf=re?re.has(ro)?re.get(ro):Ei:Co;if(fr.canDelete(D,lf)||wn.includes(fr.parent)){const Tp=Pr.get(ro),fm=fr.getCreatedAt();(!Tp||fm.after(Tp))&&Pr.set(ro,fm),(Fi===br.Text||Fi===br.Start)&&wn.push(fr),Un.push([fr,Fi])}});const Bo=this.makeDeletionChanges(Un,D);for(const fr of wn)fr.remove(D),fr.isRemoved&&this.removedNodeMap.set(fr.id.toIDString(),fr);for(const fr of or)fr.removedAt||me.append(fr);if(_>0){let fr=0,Fi=me,Lr=Pe;for(;fr<_;)Fi.split(this,Fi.findOffset(Lr)+1,K),Lr=Fi,Fi=Fi.parent,fr++;Bo.push({type:kt.Content,from:tn,to:tn,fromPath:xt,toPath:xt,actor:D.getActorID()})}if(b!=null&&b.length){const fr=[];let Fi=Pe;for(const Lr of b)Fi===me?me.insertAt(Lr,0):me.insertAfter(Lr,Fi),Fi=Lr,Za(Lr,ro=>{me.isRemoved&&(ro.remove(D),this.removedNodeMap.set(ro.id.toIDString(),ro)),this.nodeMapByID.put(ro.id,ro)}),Lr.isRemoved||fr.push(Lr);if(fr.length){const Lr=fr.map(ro=>Fn(ro));Bo.length&&Bo[Bo.length-1].from===tn?Bo[Bo.length-1].value=Lr:Bo.push({type:kt.Content,from:tn,to:tn,fromPath:xt,toPath:xt,actor:D.getActorID(),value:Lr})}}return[Bo,Pr]}editT(p,b,_,D,K){const re=this.findPos(p[0]),me=this.findPos(p[1]);this.edit([re,me],b,_,D,K)}move(p,b,_){throw new Error(`not implemented: ${p}, ${b}, ${_}`)}purgeRemovedNodesBefore(p){var b;const _=new Set;let D=0;for(const[,K]of this.removedNodeMap)K.removedAt&&p.compare(K.removedAt)>=0&&(_.add(K),D++);for(const K of _)(b=K.parent)===null||b===void 0||b.removeChild(K),this.nodeMapByID.remove(K.id),this.purge(K),this.removedNodeMap.delete(K.id.toIDString());return D}purge(p){const b=p.insPrevID,_=p.insNextID;if(b){const D=this.findFloorNode(b);D.insNextID=_}if(_){const D=this.findFloorNode(_);D.insPrevID=b}p.insPrevID=void 0,p.insNextID=void 0}findPos(p,b=!0){const _=this.indexTree.findTreePos(p,b);return ut.fromTreePos(_)}getRemovedNodesLen(){return this.removedNodeMap.size}pathToPosRange(p){const b=this.pathToIndex(p);return[this.findPos(b),this.findPos(b+1)]}pathToPos(p){const b=this.indexTree.pathToIndex(p);return this.findPos(b)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getIndexTree(){return this.indexTree}toXML(){return Jr(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 p=this.indexTree.getRoot(),b=(_,D=void 0,K=0)=>{var re,me,Pe;const at={type:_.type,parent:D,size:_.size,id:_.id.toTestString(),removedAt:(re=_.removedAt)===null||re===void 0?void 0:re.toTestString(),insPrev:(me=_.insPrevID)===null||me===void 0?void 0:me.toTestString(),insNext:(Pe=_.insNextID)===null||Pe===void 0?void 0:Pe.toTestString(),value:_.isText?_.value:void 0,isRemoved:_.isRemoved,children:[],depth:K};for(const Dt of _.children)at.children.push(b(Dt,at.id,K+1));return at};return b(p)}getRootTreeNode(){return Fn(this.indexTree.getRoot())}toTestTreeNode(){return Wn(this.indexTree.getRoot())}toSortedJSON(){return this.toJSON()}deepcopy(){const p=this.getRoot();return new pi(p.deepcopy(),this.getCreatedAt())}toPath(p,b){const _=this.toTreePos(p,b);return _?this.indexTree.treePosToPath(_):[]}toIndex(p,b){const _=this.toTreePos(p,b);return _?this.indexTree.indexOf(_):-1}indexToPath(p){return this.indexTree.indexToPath(p)}pathToIndex(p){return this.indexTree.pathToIndex(p)}indexRangeToPosRange(p){const b=this.findPos(p[0]);return p[0]===p[1]?[b,b]:[b,this.findPos(p[1])]}indexRangeToPosStructRange(p){const[b,_]=p,D=this.findPos(b);return b===_?[D.toStruct(),D.toStruct()]:[D.toStruct(),this.findPos(_).toStruct()]}posRangeToPathRange(p){const[b,_]=this.findNodesAndSplitText(p[0]),[D,K]=this.findNodesAndSplitText(p[1]);return[this.toPath(b,_),this.toPath(D,K)]}posRangeToIndexRange(p){const[b,_]=this.findNodesAndSplitText(p[0]),[D,K]=this.findNodesAndSplitText(p[1]);return[this.toIndex(b,_),this.toIndex(D,K)]}traverseInPosRange(p,b,_,D,K){const re=this.toIndex(p,b),me=this.toIndex(_,D);return this.indexTree.tokensBetween(re,me,K)}toTreePos(p,b){if(!p||!b)return;if(p.isRemoved){let D;for(;p.isRemoved;)D=p,p=D.parent;const K=p.findOffset(D);return{node:p,offset:K}}if(p===b)return{node:p,offset:0};let _=p.findOffset(b);if(!b.isRemoved){if(b.isText)return{node:b,offset:b.paddedSize};_++}return{node:p,offset:_}}makeDeletionChanges(p,b){const _=[],D=[];let K=null,re=null;for(let me=0;me0&&Pr===_[_.length-1].to?(_[_.length-1].to=Bo,_[_.length-1].toPath=this.toPath(or,xt)):_.push({type:kt.Content,from:Pr,to:Bo,fromPath:this.toPath(Un,Dt),toPath:this.toPath(or,xt),actor:b.getActorID()}))}return _}findRightToken([p,b]){if(b===br.Start){const me=p.allChildren;return me.length>0?[me[0],me[0].isText?br.Text:br.Start]:[p,br.End]}const _=p.parent,D=_.allChildren,K=D.indexOf(p);if(_&&K===D.length-1)return[_,br.End];const re=D[K+1];return[re,re.isText?br.Text:br.Start]}findLeftToken([p,b]){if(b===br.End){const me=p.allChildren;if(me.length>0){const Pe=me[me.length-1];return[Pe,Pe.isText?br.Text:br.End]}return[p,br.Start]}const _=p.parent,D=_.allChildren,K=D.indexOf(p);if(_&&K===0)return[_,br.Start];const re=D[K-1];return[re,re.isText?br.Text:br.End]}}class Hi extends li{constructor(p,b,_,D,K,re,me){super(p,me),this.fromPos=b,this.toPos=_,this.contents=D,this.splitLevel=K,this.maxCreatedAtMapByActor=re}static create(p,b,_,D,K,re,me){return new Hi(p,b,_,D,K,re,me)}execute(p){var b;const _=p.findByCreatedAt(this.getParentCreatedAt());_||c.fatal(`fail to find ${this.getParentCreatedAt()}`),_ instanceof pi||c.fatal("fail to execute, only Tree can execute edit");const D=this.getExecutedAt(),K=_,[re]=K.edit([this.fromPos,this.toPos],(b=this.contents)===null||b===void 0?void 0:b.map(me=>me.deepcopy()),this.splitLevel,D,(()=>{let me=D.getDelimiter();return this.contents!==void 0&&(me+=this.contents.length),()=>eo.of(D.getLamport(),++me,D.getActorID())})(),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||p.registerElementHasRemovedNodes(K),{opInfos:re.map(({from:me,to:Pe,value:at,splitLevel:Dt,fromPath:tn,toPath:xt})=>({type:"tree-edit",path:p.createPath(this.getParentCreatedAt()),from:me,to:Pe,value:at,splitLevel:Dt,fromPath:tn,toPath:xt}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const p=this.getParentCreatedAt().toTestString(),b=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,_=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`,D=this.contents;return`${p}.EDIT(${b},${_},${D==null?void 0:D.join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class iu{constructor(p,b,_){this.clientSeq=p,this.lamport=b,this.actor=_}static of(p,b,_){return new iu(p,b,_)}next(){return new iu(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(p){return p.greaterThan(this.lamport)?new iu(this.clientSeq,p,this.actor):new iu(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(p){return eo.of(this.lamport,p,this.actor)}setActor(p){return new iu(this.clientSeq,this.lamport,p)}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 Xg=new iu(0,Pi.fromInt(0,!0),na);class Us{constructor({id:p,operations:b,presenceChange:_,message:D}){this.id=p,this.operations=b||[],this.presenceChange=_,this.message=D}static create({id:p,operations:b,presenceChange:_,message:D}){return new Us({id:p,operations:b,presenceChange:_,message:D})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(p){for(const b of this.operations)b.setActor(p);this.id=this.id.setActor(p)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(p,b,_){const D=[],K=[];for(const re of this.operations){const me=re.execute(p,_);if(!me)continue;const{opInfos:Pe,reverseOp:at}=me;D.push(...Pe),at&&K.unshift(at)}return this.presenceChange&&(this.presenceChange.type===Qa.Put?b.set(this.id.getActorID(),Ea(this.presenceChange.presence)):b.delete(this.id.getActorID())),{opInfos:D,reverseOps:K}}toTestString(){return`${this.operations.map(p=>p.toTestString()).join(",")}`}}class tf{constructor(p,b,_,D,K,re){this.documentKey=p,this.checkpoint=b,this.isRemoved=_,this.changes=D,this.snapshot=K,this.minSyncedTicket=re}static create(p,b,_,D,K,re){return new tf(p,b,_,D,K,re)}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 Qc{constructor(p,b){this.serverSeq=p,this.clientSeq=b}static of(p,b){return new Qc(p,b)}increaseClientSeq(p){return p===0?this:new Qc(this.serverSeq,this.clientSeq+p)}forward(p){if(this.equals(p))return this;const b=this.serverSeq.greaterThan(p.serverSeq)?this.serverSeq:p.serverSeq,_=Math.max(this.clientSeq,p.clientSeq);return Qc.of(b,_)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(p){return this.clientSeq===p.clientSeq&&this.serverSeq.equals(p.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const hi=new Qc(Pi.fromInt(0,!0),0);class $o{constructor(p,b){this.createdAt=p,this.offset=b}static of(p,b){return new $o(p,b)}static fromStruct(p){return $o.of(eo.fromStruct(p.createdAt),p.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(p){return this.createdAt.compare(p.createdAt)===0&&this.offset===p.offset}hasSameCreatedAt(p){return this.createdAt.compare(p.createdAt)===0}split(p){return new $o(this.createdAt,this.offset+p)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const Iv=$o.of(Ei,0);class gl{constructor(p,b){this.id=p,this.relativeOffset=b}static of(p,b){return new gl(p,b)}static fromStruct(p){const b=$o.fromStruct(p.id);return gl.of(b,p.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return $o.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(p){return this.id.equals(p.id)?this.relativeOffset===p.relativeOffset:!1}}class ou extends ra{constructor(p,b,_){super(b),this.id=p,this.removedAt=_}static create(p,b){return new ou(p,b)}static createComparator(){return(p,b)=>{const _=p.getCreatedAt().compare(b.getCreatedAt());return _!==0?_:p.getOffset()>b.getOffset()?1:p.getOffset()0&&b.getID().getOffset()==p.getOffset()){if(!b.hasInsPrev())return b;b=b.getInsPrev()}return b}findFloorNode(p){const b=this.treeByID.floorEntry(p);if(b&&!(!b.key.equals(p)&&!b.key.hasSameCreatedAt(p)))return b.value}findBetween(p,b){const _=[];let D=p;for(;D&&D!==b;)_.push(D),D=D.getNext();return _}splitNode(p,b){if(b>p.getContentLength()&&c.fatal("offset should be less than or equal to length"),b===0)return p;if(b===p.getContentLength())return p.getNext();const _=p.split(b);this.treeByIndex.updateWeight(_),this.insertAfter(p,_);const D=p.getInsNext();return D&&D.setInsPrev(_),_.setInsPrev(p),_}deleteNodes(p,b,_){if(!p.length)return[[],new Map,new Map];const[D,K]=this.filterNodes(p,b,_),re=new Map,me=new Map,Pe=this.makeChanges(K,b);for(const at of D){const Dt=at.getCreatedAt().getActorID();(!re.has(Dt)||at.getID().getCreatedAt().after(re.get(Dt)))&&re.set(Dt,at.getID().getCreatedAt()),me.set(at.getID().toIDString(),at),at.remove(b)}return this.deleteIndexNodes(K),[Pe,re,me]}filterNodes(p,b,_){const D=!!_,K=[],re=[],[me,Pe]=this.findEdgesOfCandidates(p);re.push(me);for(const at of p){const Dt=at.getCreatedAt().getActorID(),tn=D?_.has(Dt)?_.get(Dt):Ei:Co;at.canDelete(b,tn)?K.push(at):re.push(at)}return re.push(Pe),[K,re]}findEdgesOfCandidates(p){return[p[0].getPrev(),p[p.length-1].getNext()]}makeChanges(p,b){const _=[];let D,K;for(let re=0;re=0&&(this.treeByIndex.delete(_),this.purge(_),this.treeByID.remove(_.getID()),this.removedNodeMap.delete(_.getID().toIDString()),b++);return b}purge(p){const b=p.getPrev(),_=p.getNext(),D=p.getInsPrev(),K=p.getInsNext();b&&b.setNext(_),_&&_.setPrev(b),p.setPrev(void 0),p.setNext(void 0),D&&D.setInsNext(K),K&&K.setInsPrev(D),p.setInsPrev(void 0),p.setInsNext(void 0)}}const XT=T=>T<0?Math.ceil(T):Math.floor(T);var Qi;(function(T){T[T.IntegerCnt=0]="IntegerCnt",T[T.LongCnt=1]="LongCnt"})(Qi||(Qi={}));class Xa extends Jd{constructor(p,b,_){switch(super(_),this.valueType=p,p){case Qi.IntegerCnt:typeof b=="number"?b>Math.pow(2,31)-1||b<-Math.pow(2,31)?this.value=Pi.fromNumber(b).toInt():this.value=XT(b):this.value=b.toInt();break;case Qi.LongCnt:typeof b=="number"?this.value=Pi.fromNumber(b):this.value=b;break;default:throw new Xn(Hn.Unimplemented,`unimplemented type: ${p}`)}}static create(p,b,_){return new Xa(p,b,_)}static valueFromBytes(p,b){switch(p){case Qi.IntegerCnt:return b[0]|b[1]<<8|b[2]<<16|b[3]<<24;case Qi.LongCnt:return Pi.fromBytesLE(Array.from(b));default:throw new Xn(Hn.Unimplemented,`unimplemented type: ${p}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const p=Xa.create(this.valueType,this.value,this.getCreatedAt());return p.setMovedAt(this.getMovedAt()),p}getType(){return this.valueType}static getCounterType(p){switch(typeof p){case"object":return p instanceof Pi?Qi.LongCnt:void 0;case"number":return p>Math.pow(2,31)-1||p<-Math.pow(2,31)?Qi.LongCnt:Qi.IntegerCnt;default:return}}static isSupport(p){return!!Xa.getCounterType(p)}static isInteger(p){return p%1===0}isNumericType(){const p=this.valueType;return p===Qi.IntegerCnt||p===Qi.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case Qi.IntegerCnt:{const p=this.value;return new Uint8Array([p&255,p>>8&255,p>>16&255,p>>24&255])}case Qi.LongCnt:{const b=this.value.toBytesLE();return Uint8Array.from(b)}default:throw new Xn(Hn.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(p){function b(_){if(!_.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof _.getValue()}`)}return b(this),b(p),this.valueType===Qi.LongCnt?this.value=this.value.add(p.getValue()):p.getType()===Pn.Long?this.value=this.value+p.getValue().toInt():this.value=Pi.fromNumber(this.value+XT(p.getValue())).toInt(),this}}class Xu extends li{constructor(p,b,_){super(p,_),this.value=b}static create(p,b,_){return new Xu(p,b,_)}execute(p){const b=p.findByCreatedAt(this.getParentCreatedAt());b||c.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof Xa||c.fatal("fail to execute, only Counter can execute increase");const _=b,D=this.value.deepcopy();return _.increase(D),{opInfos:[{type:"increase",path:p.createPath(this.getParentCreatedAt()),value:D.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const p=this.value.deepcopy(),_=p.getType()===Pn.Long?p.getValue().multiply(-1):p.getValue()*-1;return Xu.create(this.getParentCreatedAt(),ri.of(_,p.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class bl extends li{constructor(p,b,_,D,K){super(p,K),this.fromPos=b,this.toPos=_,this.attributes=D}static create(p,b,_,D,K){return new bl(p,b,_,D,K)}execute(p){const b=p.findByCreatedAt(this.getParentCreatedAt());b||c.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof pi||c.fatal("fail to execute, only Tree can execute edit");const _={};return[...this.attributes].forEach(([re,me])=>_[re]=me),{opInfos:b.style([this.fromPos,this.toPos],_,this.getExecutedAt()).map(({from:re,to:me,value:Pe,fromPath:at})=>({type:"tree-style",from:re,to:me,value:Pe,fromPath:at,path:p.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const p=this.getParentCreatedAt().toTestString(),b=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,_=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${p}.STYLE(${b},${_},${Object.entries(this.attributes||{}).map(([D,K])=>`${D}:"${K}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}}function S2(T){const p=new Ne.Presence,b=p.data;for(const[_,D]of Object.entries(T))b[_]=JSON.stringify(D);return p}function KT(T){if(T.type===Qa.Put)return new Ne.PresenceChange({type:Ne.PresenceChange_ChangeType.PUT,presence:S2(T.presence)});if(T.type===Qa.Clear)return new Ne.PresenceChange({type:Ne.PresenceChange_ChangeType.CLEAR});throw new Xn(Hn.Unimplemented,"unimplemented type")}function JT(T){return new Ne.Checkpoint({serverSeq:T.getServerSeqAsString(),clientSeq:T.getClientSeq()})}function Dv(T){return new Ne.ChangeID({clientSeq:T.getClientSeq(),lamport:T.getLamportAsString(),actorId:ob(T.getActorID())})}function En(T){if(T)return new Ne.TimeTicket({lamport:T.getLamportAsString(),delimiter:T.getDelimiter(),actorId:ob(T.getActorID())})}function Nv(T){switch(T){case Pn.Null:return Ne.ValueType.NULL;case Pn.Boolean:return Ne.ValueType.BOOLEAN;case Pn.Integer:return Ne.ValueType.INTEGER;case Pn.Long:return Ne.ValueType.LONG;case Pn.Double:return Ne.ValueType.DOUBLE;case Pn.String:return Ne.ValueType.STRING;case Pn.Bytes:return Ne.ValueType.BYTES;case Pn.Date:return Ne.ValueType.DATE;default:throw new Xn(Hn.Unsupported,`unsupported type: ${T}`)}}function ew(T){switch(T){case Qi.IntegerCnt:return Ne.ValueType.INTEGER_CNT;case Qi.LongCnt:return Ne.ValueType.LONG_CNT;default:throw new Xn(Hn.Unsupported,`unsupported type: ${T}`)}}function am(T){if(T instanceof Vr)return new Ne.JSONElementSimple({type:Ne.ValueType.JSON_OBJECT,createdAt:En(T.getCreatedAt()),value:Bv(T)});if(T instanceof Ta)return new Ne.JSONElementSimple({type:Ne.ValueType.JSON_ARRAY,createdAt:En(T.getCreatedAt()),value:I2(T)});if(T instanceof ia)return new Ne.JSONElementSimple({type:Ne.ValueType.TEXT,createdAt:En(T.getCreatedAt())});if(T instanceof ri)return new Ne.JSONElementSimple({type:Nv(T.getType()),createdAt:En(T.getCreatedAt()),value:T.toBytes()});if(T instanceof Xa)return new Ne.JSONElementSimple({type:ew(T.getType()),createdAt:En(T.getCreatedAt()),value:T.toBytes()});if(T instanceof pi)return new Ne.JSONElementSimple({type:Ne.ValueType.TREE,createdAt:En(T.getCreatedAt()),value:N2(T)});throw new Xn(Hn.Unimplemented,"unimplemented element")}function Pv(T){return new Ne.TextNodeID({createdAt:En(T.getCreatedAt()),offset:T.getOffset()})}function Kg(T){return new Ne.TextNodePos({createdAt:En(T.getID().getCreatedAt()),offset:T.getID().getOffset(),relativeOffset:T.getRelativeOffset()})}function sm(T){return new Ne.TreePos({parentId:Fo(T.getParentID()),leftSiblingId:Fo(T.getLeftSiblingID())})}function Fo(T){return new Ne.TreeNodeID({createdAt:En(T.getCreatedAt()),offset:T.getOffset()})}function Lv(T){const p=new Ne.Operation;if(T instanceof Zu){const b=T,_=new Ne.Operation_Set;_.parentCreatedAt=En(b.getParentCreatedAt()),_.key=b.getKey(),_.value=am(b.getValue()),_.executedAt=En(b.getExecutedAt()),p.body.case="set",p.body.value=_}else if(T instanceof Vc){const b=T,_=new Ne.Operation_Add;_.parentCreatedAt=En(b.getParentCreatedAt()),_.prevCreatedAt=En(b.getPrevCreatedAt()),_.value=am(b.getValue()),_.executedAt=En(b.getExecutedAt()),p.body.case="add",p.body.value=_}else if(T instanceof pl){const b=T,_=new Ne.Operation_Move;_.parentCreatedAt=En(b.getParentCreatedAt()),_.prevCreatedAt=En(b.getPrevCreatedAt()),_.createdAt=En(b.getCreatedAt()),_.executedAt=En(b.getExecutedAt()),p.body.case="move",p.body.value=_}else if(T instanceof ru){const b=T,_=new Ne.Operation_Remove;_.parentCreatedAt=En(b.getParentCreatedAt()),_.createdAt=En(b.getCreatedAt()),_.executedAt=En(b.getExecutedAt()),p.body.case="remove",p.body.value=_}else if(T instanceof oa){const b=T,_=new Ne.Operation_Edit;_.parentCreatedAt=En(b.getParentCreatedAt()),_.from=Kg(b.getFromPos()),_.to=Kg(b.getToPos());const D=_.createdAtMapByActor;for(const[re,me]of b.getMaxCreatedAtMapByActor())D[re]=En(me);_.content=b.getContent();const K=_.attributes;for(const[re,me]of b.getAttributes())K[re]=me;_.executedAt=En(b.getExecutedAt()),p.body.case="edit",p.body.value=_}else if(T instanceof Ao){const b=T,_=new Ne.Operation_Style;_.parentCreatedAt=En(b.getParentCreatedAt()),_.from=Kg(b.getFromPos()),_.to=Kg(b.getToPos());const D=_.createdAtMapByActor;for(const[re,me]of b.getMaxCreatedAtMapByActor())D[re]=En(me);const K=_.attributes;for(const[re,me]of b.getAttributes())K[re]=me;_.executedAt=En(b.getExecutedAt()),p.body.case="style",p.body.value=_}else if(T instanceof Xu){const b=T,_=new Ne.Operation_Increase;_.parentCreatedAt=En(b.getParentCreatedAt()),_.value=am(b.getValue()),_.executedAt=En(b.getExecutedAt()),p.body.case="increase",p.body.value=_}else if(T instanceof Hi){const b=T,_=new Ne.Operation_TreeEdit,D=_.createdAtMapByActor;for(const[K,re]of b.getMaxCreatedAtMapByActor())D[K]=En(re);_.parentCreatedAt=En(b.getParentCreatedAt()),_.from=sm(b.getFromPos()),_.to=sm(b.getToPos()),_.contents=k2(b.getContents()),_.splitLevel=b.getSplitLevel(),_.executedAt=En(b.getExecutedAt()),p.body.case="treeEdit",p.body.value=_}else if(T instanceof bl){const b=T,_=new Ne.Operation_TreeStyle;_.parentCreatedAt=En(b.getParentCreatedAt()),_.from=sm(b.getFromPos()),_.to=sm(b.getToPos());const D=_.attributes;for(const[K,re]of b.getAttributes())D[K]=re;_.executedAt=En(b.getExecutedAt()),p.body.case="treeStyle",p.body.value=_}else throw new Xn(Hn.Unimplemented,"unimplemented operation");return p}function lm(T){const p=[];for(const b of T)p.push(Lv(b));return p}function tw(T){const p=new Ne.Change({id:Dv(T.getID()),message:T.getMessage()});return T.hasOperations()&&(p.operations=lm(T.getOperations())),T.hasPresenceChange()&&(p.presenceChange=KT(T.getPresenceChange())),p}function nw(T){const p=[];for(const b of T)p.push(tw(b));return p}function T2(T){const p=[];for(const b of T)p.push(new Ne.RHTNode({key:b.getStrKey(),element:gp(b.getValue())}));return p}function w2(T){const p=[];for(const b of T)p.push(new Ne.RGANode({element:gp(b.getValue())}));return p}function x2(T){const p=[];for(const b of T){const _=new Ne.TextNode;_.id=Pv(b.getID()),_.value=b.getValue().getContent(),_.removedAt=En(b.getRemovedAt());const D=_.attributes,K=b.getValue().getAttrs();for(const re of K){const me=new Ne.NodeAttr;me.value=re.getValue(),me.updatedAt=En(re.getUpdatedAt()),D[re.getKey()]=me}p.push(_)}return p}function k2(T){const p=[];if(!T||!T.length)return p;for(const b of T)p.push(new Ne.TreeNodes({content:rw(b)}));return p}function rw(T){if(!T)return[];const p=[];return vs(T,(b,_)=>{const D=new Ne.TreeNode({id:Fo(b.id),type:b.type,removedAt:En(b.removedAt),depth:_});if(b.isText&&(D.value=b.value),b.insPrevID&&(D.insPrevId=Fo(b.insPrevID)),b.insNextID&&(D.insNextId=Fo(b.insNextID)),b.attrs)for(const K of b.attrs)D.attributes[K.getKey()]=new Ne.NodeAttr({value:K.getValue(),updatedAt:En(K.getUpdatedAt())});p.push(D)}),p}function mp(T){const p=new Ne.JSONElement;return p.body.case="jsonObject",p.body.value=new Ne.JSONElement_JSONObject({nodes:T2(T.getRHT()),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),p}function iw(T){const p=new Ne.JSONElement;return p.body.case="jsonArray",p.body.value=new Ne.JSONElement_JSONArray({nodes:w2(T.getElements()),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),p}function C2(T){const p=new Ne.JSONElement;return p.body.case="primitive",p.body.value=new Ne.JSONElement_Primitive({type:Nv(T.getType()),value:T.toBytes(),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),p}function Mv(T){const p=new Ne.JSONElement;return p.body.case="text",p.body.value=new Ne.JSONElement_Text({nodes:x2(T.getRGATreeSplit()),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),p}function ow(T){const p=new Ne.JSONElement;return p.body.case="counter",p.body.value=new Ne.JSONElement_Counter({type:ew(T.getType()),value:T.toBytes(),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),p}function Ku(T){const p=new Ne.JSONElement;return p.body.case="tree",p.body.value=new Ne.JSONElement_Tree({nodes:rw(T.getRoot()),createdAt:En(T.getCreatedAt()),movedAt:En(T.getMovedAt()),removedAt:En(T.getRemovedAt())}),p}function gp(T){if(T instanceof Vr)return mp(T);if(T instanceof Ta)return iw(T);if(T instanceof ri)return C2(T);if(T instanceof ia)return Mv(T);if(T instanceof Xa)return ow(T);if(T instanceof pi)return Ku(T);throw new Xn(Hn.Unimplemented,"unimplemented element")}function _2(T){return new Ne.ChangePack({documentKey:T.getDocumentKey(),checkpoint:JT(T.getCheckpoint()),isRemoved:T.getIsRemoved(),changes:nw(T.getChanges()),snapshot:T.getSnapshot(),minSyncedTicket:En(T.getMinSyncedTicket())})}function A2(T){return iu.of(T.clientSeq,Pi.fromString(T.lamport,!0),au(T.actorId))}function Rn(T){if(T)return eo.of(Pi.fromString(T.lamport,!0),T.delimiter,au(T.actorId))}function Yc(T){const p={};return Object.entries(T.data).forEach(([b,_])=>{p[b]=JSON.parse(_)}),p}function yl(T){const p=T.type;if(p===Ne.PresenceChange_ChangeType.PUT){const b=Yc(T.presence);return{type:Qa.Put,presence:b}}if(p===Ne.PresenceChange_ChangeType.CLEAR)return{type:Qa.Clear};throw new Xn(Hn.Unsupported,`unsupported type: ${p}`)}function aw(T){const p=new Map;return Object.entries(T).forEach(([b,_])=>{p.set(b,Yc(_))}),p}function sw(T){switch(T){case Ne.ValueType.NULL:return Pn.Null;case Ne.ValueType.BOOLEAN:return Pn.Boolean;case Ne.ValueType.INTEGER:return Pn.Integer;case Ne.ValueType.LONG:return Pn.Long;case Ne.ValueType.DOUBLE:return Pn.Double;case Ne.ValueType.STRING:return Pn.String;case Ne.ValueType.BYTES:return Pn.Bytes;case Ne.ValueType.DATE:return Pn.Date}throw new Xn(Hn.Unimplemented,`unimplemented value type: ${T}`)}function Jg(T){switch(T){case Ne.ValueType.INTEGER_CNT:return Qi.IntegerCnt;case Ne.ValueType.LONG_CNT:return Qi.LongCnt}throw new Xn(Hn.Unimplemented,`unimplemented value type: ${T}`)}function $v(T){switch(T.type){case Ne.ValueType.JSON_OBJECT:return T.value?cw(T.value):Vr.create(Rn(T.createdAt));case Ne.ValueType.JSON_ARRAY:return T.value?nb(T.value):Ta.create(Rn(T.createdAt));case Ne.ValueType.TEXT:return ia.create(hp.create(),Rn(T.createdAt));case Ne.ValueType.TREE:return D2(T.value);case Ne.ValueType.NULL:case Ne.ValueType.BOOLEAN:case Ne.ValueType.INTEGER:case Ne.ValueType.LONG:case Ne.ValueType.DOUBLE:case Ne.ValueType.STRING:case Ne.ValueType.BYTES:case Ne.ValueType.DATE:return ri.of(ri.valueFromBytes(sw(T.type),T.value),Rn(T.createdAt));case Ne.ValueType.INTEGER_CNT:case Ne.ValueType.LONG_CNT:return Xa.create(Jg(T.type),Xa.valueFromBytes(Jg(T.type),T.value),Rn(T.createdAt))}}function eb(T){return gl.of($o.of(Rn(T.createdAt),T.offset),T.relativeOffset)}function lw(T){return $o.of(Rn(T.createdAt),T.offset)}function bp(T){const p=Mo.create(T.value);Object.entries(T.attributes).forEach(([_,D])=>{p.setAttr(_,D.value,Rn(D.updatedAt))});const b=ou.create(lw(T.id),p);return b.remove(Rn(T.removedAt)),b}function ze(T){return ut.of(ht(T.parentId),ht(T.leftSiblingId))}function ht(T){return It.of(Rn(T.createdAt),T.offset)}function lt(T){if(!T.length)return;const p=[];return T.forEach(b=>{const _=dn(b.content);p.push(_)}),p}function dn(T){if(T.length===0)return;const p=[];for(const _ of T)p.push(Yn(_));const b=p[p.length-1];for(let _=p.length-2;_>=0;_--){let D;for(let K=_+1;K{_.set(D,K.value,Rn(K.updatedAt))}),b.attrs=_}return T.insPrevId&&(b.insPrevID=ht(T.insPrevId)),T.insNextId&&(b.insNextID=ht(T.insNextId)),b.removedAt=Rn(T.removedAt),b}function Nr(T){const p=[];for(const b of T){let _;if(b.body.case==="set"){const D=b.body.value;_=Zu.create(D.key,$v(D.value),Rn(D.parentCreatedAt),Rn(D.executedAt))}else if(b.body.case==="add"){const D=b.body.value;_=Vc.create(Rn(D.parentCreatedAt),Rn(D.prevCreatedAt),$v(D.value),Rn(D.executedAt))}else if(b.body.case==="move"){const D=b.body.value;_=pl.create(Rn(D.parentCreatedAt),Rn(D.prevCreatedAt),Rn(D.createdAt),Rn(D.executedAt))}else if(b.body.case==="remove"){const D=b.body.value;_=ru.create(Rn(D.parentCreatedAt),Rn(D.createdAt),Rn(D.executedAt))}else if(b.body.case==="edit"){const D=b.body.value,K=new Map;Object.entries(D.createdAtMapByActor).forEach(([me,Pe])=>{K.set(me,Rn(Pe))});const re=new Map;Object.entries(D.attributes).forEach(([me,Pe])=>{re.set(me,Pe)}),_=oa.create(Rn(D.parentCreatedAt),eb(D.from),eb(D.to),K,D.content,re,Rn(D.executedAt))}else if(b.body.case==="style"){const D=b.body.value,K=new Map;Object.entries(D.createdAtMapByActor).forEach(([me,Pe])=>{K.set(me,Rn(Pe))});const re=new Map;Object.entries(D.attributes).forEach(([me,Pe])=>{re.set(me,Pe)}),_=Ao.create(Rn(D.parentCreatedAt),eb(D.from),eb(D.to),K,re,Rn(D.executedAt))}else{if(b.body.case==="select")continue;if(b.body.case==="increase"){const D=b.body.value;_=Xu.create(Rn(D.parentCreatedAt),$v(D.value),Rn(D.executedAt))}else if(b.body.case==="treeEdit"){const D=b.body.value,K=new Map;Object.entries(D.createdAtMapByActor).forEach(([re,me])=>{K.set(re,Rn(me))}),_=Hi.create(Rn(D.parentCreatedAt),ze(D.from),ze(D.to),lt(D.contents),D.splitLevel,K,Rn(D.executedAt))}else if(b.body.case==="treeStyle"){const D=b.body.value,K=new Map;Object.entries(D.attributes).forEach(([re,me])=>{K.set(re,me)}),_=bl.create(Rn(D.parentCreatedAt),ze(D.from),ze(D.to),K,Rn(D.executedAt))}else throw new Xn(Hn.Unimplemented,"unimplemented operation")}p.push(_)}return p}function no(T){const p=[];for(const b of T)p.push(Us.create({id:A2(b.id),operations:Nr(b.operations),presenceChange:b.presenceChange?yl(b.presenceChange):void 0,message:b.message}));return p}function ei(T){return Qc.of(Pi.fromString(T.serverSeq,!0),T.clientSeq)}function Fv(T){return tf.create(T.documentKey,ei(T.checkpoint),T.isRemoved,no(T.changes),T.snapshot,Rn(T.minSyncedTicket))}function uw(T){const p=new to;for(const _ of T.nodes){const D=vp(_.element);p.set(_.key,D,D.getPositionedAt())}const b=new Vr(Rn(T.createdAt),p);return b.setMovedAt(Rn(T.movedAt)),b.setRemovedAt(Rn(T.removedAt)),b}function Os(T){const p=new zc;for(const _ of T.nodes)p.insert(vp(_.element));const b=new Ta(Rn(T.createdAt),p);return b.setMovedAt(Rn(T.movedAt)),b.setRemovedAt(Rn(T.removedAt)),b}function tb(T){const p=ri.of(ri.valueFromBytes(sw(T.type),T.value),Rn(T.createdAt));return p.setMovedAt(Rn(T.movedAt)),p.setRemovedAt(Rn(T.removedAt)),p}function R2(T){const p=new hp;let b=p.getHead();for(const D of T.nodes){const K=p.insertAfter(b,bp(D));D.insPrevId&&K.setInsPrev(p.findNode(lw(D.insPrevId))),b=K}const _=new ia(p,Rn(T.createdAt));return _.setMovedAt(Rn(T.movedAt)),_.setRemovedAt(Rn(T.removedAt)),_}function yp(T){const p=Xa.create(Jg(T.type),Xa.valueFromBytes(Jg(T.type),T.value),Rn(T.createdAt));return p.setMovedAt(Rn(T.movedAt)),p.setRemovedAt(Rn(T.removedAt)),p}function um(T){const p=dn(T.nodes);return pi.create(p,Rn(T.createdAt))}function vp(T){if(T.body.case==="jsonObject")return uw(T.body.value);if(T.body.case==="jsonArray")return Os(T.body.value);if(T.body.case==="primitive")return tb(T.body.value);if(T.body.case==="text")return R2(T.body.value);if(T.body.case==="counter")return yp(T.body.value);if(T.body.case==="tree")return um(T.body.value);throw new Xn(Hn.Unimplemented,"unimplemented element")}function Wr(T){if(!T)return{root:Vr.create(Ei),presences:new Map};const p=Ne.Snapshot.fromBinary(T);return{root:vp(p.root),presences:aw(p.presences)}}function cw(T){if(!T)throw new Error("bytes is empty");const p=Ne.JSONElement.fromBinary(T);return uw(p.body.value)}function Bv(T){return gp(T).toBinary()}function nb(T){if(!T)throw new Error("bytes is empty");const p=Ne.JSONElement.fromBinary(T);return Os(p.body.value)}function I2(T){return iw(T).toBinary()}function D2(T){if(!T)throw new Error("bytes is empty");const p=Ne.JSONElement.fromBinary(T);return um(p.body.value)}function N2(T){return Ku(T).toBinary()}function rb(T){return T?Array.from(T).map(p=>p.toString(16).padStart(2,"0")).join(""):""}function au(T){return rb(T)}function ib(T){return new Uint8Array(T.match(/.{1,2}/g).map(p=>parseInt(p,16)))}function ob(T){return ib(T)}const Es={fromPresence:Yc,toChangePack:_2,fromChangePack:Fv,fromChanges:no,objectToBytes:Bv,bytesToObject:cw,bytesToSnapshot:Wr,toHexString:au,toUint8Array:ob};class dw{constructor(p,b,_,D){this.reconnectStreamDelay=p,this.doc=b,this.docID=_,this.isRealtimeSync=D,this.syncMode=Ka.PushPull,this.remoteChangeEventReceived=!1}changeRealtimeSync(p){return this.isRealtimeSync===p?!1:p?(this.isRealtimeSync=!0,!0):(this.cancelWatchStream(),this.isRealtimeSync=!1,!0)}changeSyncMode(p){this.syncMode=p}needRealtimeSync(){return this.isRealtimeSync&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(p){const b=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await p(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(b,this.reconnectStreamDelay)})}catch{}};await b()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}class nf{constructor(p,b,_,D){this.id=p,this.delimiter=bs,this.root=b,this.operations=[],this.previousPresence=Ea(_),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=D}static create(p,b,_,D){return new nf(p,b,_,D)}push(p){this.operations.push(p)}registerElement(p,b){this.root.registerElement(p,b)}registerRemovedElement(p){this.root.registerRemovedElement(p)}registerElementHasRemovedNodes(p){this.root.registerElementHasRemovedNodes(p)}getChange(){return Us.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(p){this.presenceChange=p}setReversePresence(p,b){for(const _ of Object.keys(p))b!=null&&b.addToHistory?this.reversePresenceKeys.add(_):this.reversePresenceKeys.delete(_)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const p={};for(const b of this.reversePresenceKeys)p[b]=this.previousPresence[b];return p}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class Gc{constructor(p){this.rootObject=p,this.elementPairMapByCreatedAt=new Map,this.removedElementSetByCreatedAt=new Set,this.elementHasRemovedNodesSetByCreatedAt=new Set,this.opsForTest=[],this.registerElement(p,void 0)}static create(){return new Gc(Vr.create(Ei))}findByCreatedAt(p){const b=this.elementPairMapByCreatedAt.get(p.toIDString());if(b)return b.element}findElementPairByCreatedAt(p){return this.elementPairMapByCreatedAt.get(p.toIDString())}createSubPaths(p){let b=this.elementPairMapByCreatedAt.get(p.toIDString());if(!b)return[];const _=[];for(;b.parent;){const D=b.element.getCreatedAt(),K=b.parent.subPathOf(D);K===void 0&&c.fatal(`cant find the given element: ${D.toIDString()}`),_.unshift(K),b=this.elementPairMapByCreatedAt.get(b.parent.getCreatedAt().toIDString())}return _.unshift("$"),_}createPath(p){return this.createSubPaths(p).join(".")}registerElement(p,b){this.elementPairMapByCreatedAt.set(p.getCreatedAt().toIDString(),{parent:b,element:p}),p instanceof Ti&&p.getDescendants((_,D)=>(this.registerElement(_,D),!1))}deregisterElement(p){let b=0;const _=D=>{const K=D.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(K),this.removedElementSetByCreatedAt.delete(K),b++};return _(p),p instanceof Ti&&p.getDescendants(D=>(_(D),!1)),b}registerRemovedElement(p){this.removedElementSetByCreatedAt.add(p.getCreatedAt().toIDString())}registerElementHasRemovedNodes(p){this.elementHasRemovedNodesSetByCreatedAt.add(p.getCreatedAt().toIDString())}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getRemovedElementSetSize(){return this.removedElementSetByCreatedAt.size}getObject(){return this.rootObject}getGarbageLen(){let p=0;const b=new Set;for(const _ of this.removedElementSetByCreatedAt){b.add(_);const D=this.elementPairMapByCreatedAt.get(_);D.element instanceof Ti&&D.element.getDescendants(K=>(b.add(K.getCreatedAt().toIDString()),!1))}p+=b.size;for(const _ of this.elementHasRemovedNodesSetByCreatedAt){const K=this.elementPairMapByCreatedAt.get(_).element;p+=K.getRemovedNodesLen()}return p}deepcopy(){return new Gc(this.rootObject.deepcopy())}garbageCollect(p){let b=0;for(const _ of this.removedElementSetByCreatedAt){const D=this.elementPairMapByCreatedAt.get(_);D.element.getRemovedAt()&&p.compare(D.element.getRemovedAt())>=0&&(D.parent.purge(D.element),b+=this.deregisterElement(D.element))}for(const _ of this.elementHasRemovedNodesSetByCreatedAt){const K=this.elementPairMapByCreatedAt.get(_).element,re=K.purgeRemovedNodesBefore(p);re>0&&this.elementHasRemovedNodesSetByCreatedAt.delete(K.getCreatedAt().toIDString()),b+=re}return b}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function Uv(T,p){const b=new Ju(T);return new Proxy(p,b.getHandlers())}class Ju{constructor(p){this.context=p,this.handlers={set:(b,_,D)=>(c.isEnabled(s.Trivial)&&c.trivial(`obj[${_}]=${JSON.stringify(D)}`),Ju.setInternal(p,b,_,D),!0),get:(b,_)=>(c.isEnabled(s.Trivial)&&c.trivial(`obj[${_}]`),_==="getID"?()=>b.getCreatedAt():_==="toJSON"||_==="toString"?()=>b.toJSON():_==="toJS"?()=>b.toJS():_==="toJSForTest"?()=>b.toJSForTest():$i(p,b.get(_))),ownKeys:b=>b.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(b,_)=>(c.isEnabled(s.Trivial)&&c.trivial(`obj[${_}]`),Ju.deleteInternal(p,b,_),!0)}}static setInternal(p,b,_,D){if(_.includes("."))throw new Xn(Hn.InvalidObjectKey,"key must not contain the '.'.");const K=p.issueTimeTicket(),re=ub(p,D,K),me=b.set(_,re,K);p.registerElement(re,b),me&&p.registerRemovedElement(me),p.push(Zu.create(_,re.deepcopy(),b.getCreatedAt(),K))}static buildObjectMembers(p,b){const _={};for(const[D,K]of Object.entries(b)){if(D.includes("."))throw new Xn(Hn.InvalidObjectKey,"key must not contain the '.'.");const re=p.issueTimeTicket(),me=ub(p,K,re);_[D]=me}return _}static deleteInternal(p,b,_){const D=p.issueTimeTicket(),K=b.deleteByKey(_,D);K&&(p.push(ru.create(b.getCreatedAt(),K.getCreatedAt(),D)),p.registerRemovedElement(K))}getHandlers(){return this.handlers}}function rf(T,p){const b=new Mi(T,p);return new Proxy(p,b.getHandlers())}function ab(T){return typeof T=="string"||T instanceof String?!isNaN(T):!1}function P2(T){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(T)}class Mi{constructor(p,b){this.context=p,this.array=b,this.handlers={get:(_,D,K)=>D==="getID"?()=>_.getCreatedAt():D==="getElementByID"?re=>{const me=_.getByID(re);if(!(!me||me.isRemoved()))return ii(p,me)}:D==="getElementByIndex"?re=>{const me=_.get(re);return ii(p,me)}:D==="getLast"?()=>ii(p,_.getLast()):D==="deleteByID"?re=>{const me=Mi.deleteInternalByID(p,_,re);return ii(p,me)}:D==="insertAfter"?(re,me)=>{const Pe=Mi.insertAfterInternal(p,_,re,me);return ii(p,Pe)}:D==="insertBefore"?(re,me)=>{const Pe=Mi.insertBeforeInternal(p,_,re,me);return ii(p,Pe)}:D==="moveBefore"?(re,me)=>{Mi.moveBeforeInternal(p,_,re,me)}:D==="moveAfter"?(re,me)=>{Mi.moveAfterInternal(p,_,re,me)}:D==="moveFront"?re=>{Mi.moveFrontInternal(p,_,re)}:D==="moveLast"?re=>{Mi.moveLastInternal(p,_,re)}:ab(D)?$i(p,_.get(Number(D))):D==="push"?re=>Mi.pushInternal(p,_,re):D==="splice"?(re,me,...Pe)=>Mi.splice(p,_,re,me,...Pe):D==="length"?_.length:typeof D=="symbol"&&D===Symbol.iterator?Mi.iteratorInternal.bind(this,p,_):D==="includes"?(re,me)=>Mi.includes(p,_,re,me):D==="indexOf"?(re,me)=>Mi.indexOf(p,_,re,me):D==="lastIndexOf"?(re,me)=>Mi.lastIndexOf(p,_,re,me):D==="toTestString"?()=>Mi.toTestString(_):typeof D=="string"&&P2(D)?(...re)=>{const me=Array.from(_).map(Pe=>$i(p,Pe));return Array.prototype[D].apply(me,re)}:Reflect.get(_,D,K),deleteProperty:(_,D)=>(c.isEnabled(s.Trivial)&&c.trivial(`array[${D}]`),Mi.deleteInternalByIndex(p,_,Number.parseInt(D)),!0)}}static*iteratorInternal(p,b){for(const _ of b)yield ii(p,_)}static buildArrayElements(p,b){const _=[];for(const D of b){const K=p.issueTimeTicket(),re=ub(p,D,K);_.push(re)}return _}static pushInternal(p,b,_){return Mi.insertAfterInternal(p,b,b.getLastCreatedAt(),_),b.length}static moveBeforeInternal(p,b,_,D){const K=p.issueTimeTicket(),re=b.getPrevCreatedAt(_);b.moveAfter(re,D,K),p.push(pl.create(b.getCreatedAt(),re,D,K))}static moveAfterInternal(p,b,_,D){const K=p.issueTimeTicket();b.moveAfter(_,D,K),p.push(pl.create(b.getCreatedAt(),_,D,K))}static moveFrontInternal(p,b,_){const D=p.issueTimeTicket(),K=b.getHead();b.moveAfter(K.getCreatedAt(),_,D),p.push(pl.create(b.getCreatedAt(),K.getCreatedAt(),_,D))}static moveLastInternal(p,b,_){const D=p.issueTimeTicket(),K=b.getLastCreatedAt();b.moveAfter(K,_,D),p.push(pl.create(b.getCreatedAt(),K,_,D))}static insertAfterInternal(p,b,_,D){const K=p.issueTimeTicket(),re=ub(p,D,K);return b.insertAfter(_,re),p.registerElement(re,b),p.push(Vc.create(b.getCreatedAt(),_,re.deepcopy(),K)),re}static insertBeforeInternal(p,b,_,D){return Mi.insertAfterInternal(p,b,b.getPrevCreatedAt(_),D)}static deleteInternalByIndex(p,b,_){const D=p.issueTimeTicket(),K=b.deleteByIndex(_,D);if(K)return p.push(ru.create(b.getCreatedAt(),K.getCreatedAt(),D)),p.registerRemovedElement(K),K}static deleteInternalByID(p,b,_){const D=p.issueTimeTicket(),K=b.delete(_,D);return p.push(ru.create(b.getCreatedAt(),K.getCreatedAt(),D)),p.registerRemovedElement(K),K}static splice(p,b,_,D,...K){const re=b.length,me=_>=0?Math.min(_,re):Math.max(re+_,0),Pe=D===void 0?re:D<0?me:Math.min(me+D,re),at=[];for(let Dt=me;Dt=re)return!1;if(ri.isSupport(_))return Array.from(b).map(at=>$i(p,at)).includes(_,me);for(let Pe=me;Pe=re)return-1;if(ri.isSupport(_))return Array.from(b).map(at=>$i(p,at)).indexOf(_,me);for(let Pe=me;Pe=re?re-1:D<0?D+re:D;if(me<0)return-1;if(ri.isSupport(_))return Array.from(b).map(at=>$i(p,at)).lastIndexOf(_,me);for(let Pe=me;Pe>0;Pe--)if(((K=b.get(Pe))===null||K===void 0?void 0:K.getID())===_.getID())return Pe;return-1}static toTestString(p){return p.toTestString()}getHandlers(){return this.handlers}}class sb{constructor(p,b){this.context=p,this.text=b}initialize(p,b){this.context=p,this.text=b}getID(){return this.text.getID()}edit(p,b,_,D){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}if(p>b){c.fatal("from should be less than or equal to to");return}const K=this.text.indexRangeToPosRange(p,b);c.isEnabled(s.Debug)&&c.debug(`EDIT: f:${p}->${K[0].toTestString()}, t:${b}->${K[1].toTestString()} c:${_}`);const re=D?Li(D):void 0,me=this.context.issueTimeTicket(),[Pe,,at]=this.text.edit(K,_,me,re);return this.context.push(new oa(this.text.getCreatedAt(),K[0],K[1],Pe,_,re?new Map(Object.entries(re)):new Map,me)),K[0].equals(K[1])||this.context.registerElementHasRemovedNodes(this.text),this.text.findIndexesFromRange(at)}delete(p,b){return this.edit(p,b,"")}empty(){return this.edit(0,this.length,"")}setStyle(p,b,_){if(!this.context||!this.text)return c.fatal("it is not initialized yet"),!1;if(p>b)return c.fatal("from should be less than or equal to to"),!1;const D=this.text.indexRangeToPosRange(p,b);c.isEnabled(s.Debug)&&c.debug(`STYL: f:${p}->${D[0].toTestString()}, t:${b}->${D[1].toTestString()} a:${JSON.stringify(_)}`);const K=Li(_),re=this.context.issueTimeTicket(),[me]=this.text.setStyle(D,K,re);return this.context.push(new Ao(this.text.getCreatedAt(),D[0],D[1],me,new Map(Object.entries(K)),re)),!0}indexRangeToPosRange(p){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}const b=this.text.indexRangeToPosRange(p[0],p[1]);return[b[0].toStruct(),b[1].toStruct()]}posRangeToIndexRange(p){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}const b=this.text.findIndexesFromRange([gl.fromStruct(p[0]),gl.fromStruct(p[1])]);return[b[0],b[1]]}toTestString(){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){c.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?(c.fatal("it is not initialized yet"),""):this.text.toString()}createRangeForTest(p,b){if(!this.context||!this.text){c.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(p,b)}}class of{constructor(p,b){this.valueType=p,this.value=b}initialize(p,b){this.valueType=b.getValueType(),this.context=p,this.counter=b,this.value=b.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(p){if(!this.context||!this.counter){c.fatal("it is not initialized yet");return}const b=this.context.issueTimeTicket(),_=ri.of(p,b);if(!_.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof _.getValue()}`);return this.counter.increase(_),this.context.push(Xu.create(this.counter.getCreatedAt(),_,b)),this}}function Op(T,p,b){const{type:_}=T,D=b.issueTimeTicket();if(_===Qn){fw(T);const{value:K}=T,re=Wt.create(It.of(D,0),_,K);p.append(re)}else{const{children:K=[]}=T;let{attributes:re}=T,me;if(typeof re=="object"&&!gs(re)){re=Li(re),me=new go;for(const[at,Dt]of Object.entries(re))me.set(at,Dt,D)}const Pe=Wt.create(It.of(D,0),_,void 0,me);p.append(Pe);for(const at of K)Op(at,Pe,b)}}function jv(T,p){const{type:b}=p,_=T.issueTimeTicket();let D;if(p.type===Qn){const{value:K}=p;D=Wt.create(It.of(_,0),b,K)}else if(p){const{children:K=[]}=p;let{attributes:re}=p,me;if(typeof re=="object"&&!gs(re)){re=Li(re),me=new go;for(const[Pe,at]of Object.entries(re))me.set(Pe,at,_)}D=Wt.create(It.of(T.issueTimeTicket(),0),b,void 0,me);for(const Pe of K)Op(Pe,D,T)}return D}function fw(T){if(!T.value.length)throw new Error("text node cannot have empty value");return!0}function zv(T){if(!T.length)return!0;if(T[0].type===Qn)for(const b of T){const{type:_}=b;if(_!==Qn)throw new Error("element node and text node cannot be passed together");fw(b)}else for(const b of T){const{type:_}=b;if(_===Qn)throw new Error("element node and text node cannot be passed together")}return!0}class lb{constructor(p){this.initialRoot=p}initialize(p,b){this.context=p,this.tree=b}getID(){return this.tree.getID()}buildRoot(p){if(!this.initialRoot)return Wt.create(It.of(p.issueTimeTicket(),0),hl);const b=Wt.create(It.of(p.issueTimeTicket(),0),this.initialRoot.type);for(const _ of this.initialRoot.children)Op(_,b,p);return b}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(p,b){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!p.length)throw new Error("path should not be empty");const[_,D]=this.tree.pathToPosRange(p),K=this.context.issueTimeTicket(),re=b?Li(b):void 0;this.tree.style([_,D],re,K),this.context.push(bl.create(this.tree.getCreatedAt(),_,D,re?new Map(Object.entries(re)):new Map,K))}style(p,b,_){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(p>b)throw new Error("from should be less than or equal to to");const D=this.tree.findPos(p),K=this.tree.findPos(b),re=this.context.issueTimeTicket(),me=_?Li(_):void 0;this.tree.style([D,K],me,re),this.context.push(bl.create(this.tree.getCreatedAt(),D,K,me?new Map(Object.entries(me)):new Map,re))}editInternal(p,b,_,D=0){var K;if(_.length!==0&&_[0]&&(zv(_),_[0].type!==Qn))for(const at of _){const{children:Dt=[]}=at;zv(Dt)}const re=this.context.getLastTimeTicket();let me=new Array;if(((K=_[0])===null||K===void 0?void 0:K.type)===Qn){let at="";for(const Dt of _){const{value:tn}=Dt;at+=tn}me.push(Wt.create(It.of(this.context.issueTimeTicket(),0),Qn,at))}else me=_.map(at=>at&&jv(this.context,at)).filter(at=>at);const[,Pe]=this.tree.edit([p,b],me.length?me.map(at=>at==null?void 0:at.deepcopy()):void 0,D,re,()=>this.context.issueTimeTicket());return this.context.push(Hi.create(this.tree.getCreatedAt(),p,b,me.length?me:void 0,D,Pe,re)),p.equals(b)||this.context.registerElementHasRemovedNodes(this.tree),!0}editByPath(p,b,_,D=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(p.length!==b.length)throw new Error("path length should be equal");if(!p.length||!b.length)throw new Error("path should not be empty");const K=this.tree.pathToPos(p),re=this.tree.pathToPos(b);return this.editInternal(K,re,_?[_]:[],D)}editBulkByPath(p,b,_,D=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(p.length!==b.length)throw new Error("path length should be equal");if(!p.length||!b.length)throw new Error("path should not be empty");const K=this.tree.pathToPos(p),re=this.tree.pathToPos(b);return this.editInternal(K,re,_,D)}edit(p,b,_,D=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(p>b)throw new Error("from should be less than or equal to to");const K=this.tree.findPos(p),re=this.tree.findPos(b);return this.editInternal(K,re,_?[_]:[],D)}editBulk(p,b,_,D=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(p>b)throw new Error("from should be less than or equal to to");const K=this.tree.findPos(p),re=this.tree.findPos(b);return this.editInternal(K,re,_,D)}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(p){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(p)}pathToIndex(p){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(p)}pathRangeToPosRange(p){if(!this.context||!this.tree){c.fatal("it is not initialized yet");return}const b=[this.tree.pathToIndex(p[0]),this.tree.pathToIndex(p[1])],_=this.tree.indexRangeToPosRange(b);return[_[0].toStruct(),_[1].toStruct()]}indexRangeToPosRange(p){if(!this.context||!this.tree){c.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(p)}posRangeToIndexRange(p){if(!this.context||!this.tree){c.fatal("it is not initialized yet");return}const b=[ut.fromStruct(p[0]),ut.fromStruct(p[1])];return this.tree.posRangeToIndexRange(b)}posRangeToPathRange(p){if(!this.context||!this.tree){c.fatal("it is not initialized yet");return}const b=[ut.fromStruct(p[0]),ut.fromStruct(p[1])];return this.tree.posRangeToPathRange(b)}}function pw(T,p){return Uv(T,p)}function ii(T,p){if(p){if(p instanceof ri)return p;if(p instanceof Vr)return Uv(T,p);if(p instanceof Ta)return rf(T,p);if(p instanceof ia)return new sb(T,p);if(p instanceof Xa){const b=new of(Qi.IntegerCnt,0);return b.initialize(T,p),b}else if(p instanceof pi){const b=new lb;return b.initialize(T,p),b}}else return;throw new TypeError(`Unsupported type of element: ${typeof p}`)}function $i(T,p){const b=ii(T,p);return b instanceof ri?b.getValue():b}function ub(T,p,b){let _;if(ri.isSupport(p))_=ri.of(p,b);else if(Array.isArray(p))_=Ta.create(b,Mi.buildArrayElements(T,p));else if(typeof p=="object")p instanceof sb?(_=ia.create(hp.create(),b),p.initialize(T,_)):p instanceof of?(_=Xa.create(p.getValueType(),p.getValue(),b),p.initialize(T,_)):p instanceof lb?(_=pi.create(p.buildRoot(T),b),p.initialize(T,_)):_=Vr.create(b,Ju.buildObjectMembers(T,p));else throw new TypeError(`Unsupported type of value: ${typeof p}`);return _}const hw=50;class mw{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(p){this.undoStack.length>=hw&&this.undoStack.shift(),this.undoStack.push(p)}popUndo(){return this.undoStack.pop()}pushRedo(p){this.redoStack.length>=hw&&this.redoStack.shift(),this.redoStack.push(p)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const L2="yorkie-devtools-panel",Vv="yorkie-devtools-sdk";var aa;(function(T){T.Detached="detached",T.Attached="attached",T.Removed="removed"})(aa||(aa={}));var tr;(function(T){T.Snapshot="snapshot",T.LocalChange="local-change",T.RemoteChange="remote-change",T.Initialized="initialized",T.Watched="watched",T.Unwatched="unwatched",T.PresenceChanged="presence-changed"})(tr||(tr={}));class af{constructor(p,b){this.opts=b||{},this.key=p,this.status=aa.Detached,this.root=Gc.create(),this.changeID=Xg,this.checkpoint=hi,this.localChanges=[],this.eventStream=g(_=>{this.eventStreamObserver=_}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new mw,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)}}update(p,b){if(this.getStatus()===aa.Removed)throw new Xn(Hn.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const _=this.changeID.getActorID(),D=nf.create(this.changeID.next(),this.clone.root,this.clone.presences.get(_)||{},b);try{const K=pw(D,this.clone.root.getObject());this.presences.has(_)||this.clone.presences.set(_,{}),this.isUpdating=!0,p(K,new pp(D,this.clone.presences.get(_)))}catch(K){throw this.clone=void 0,c.error(K),K}finally{this.isUpdating=!1}if(D.hasChange()){c.isEnabled(s.Trivial)&&c.trivial(`trying to update a local change: ${this.toJSON()}`);const K=D.getChange(),{opInfos:re,reverseOps:me}=K.execute(this.root,this.presences,Fr.Local),Pe=D.getReversePresence();Pe&&me.push({type:"presence",value:Pe}),this.localChanges.push(K),me.length>0&&this.internalHistory.pushUndo(me),re.length>0&&this.internalHistory.clearRedo(),this.changeID=K.getID(),re.length>0&&this.publish({type:tr.LocalChange,value:{message:K.getMessage()||"",operations:re,actor:_}}),K.hasPresenceChange()&&this.publish({type:tr.PresenceChanged,value:{clientID:_,presence:this.getPresence(_)}}),c.isEnabled(s.Trivial)&&c.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(p,b,_,D){if(typeof p=="string"){if(typeof b!="function")throw new Error("Second argument must be a callback function");if(p==="presence"){const me=b;return this.eventStream.subscribe(Pe=>{Pe.type!==tr.Initialized&&Pe.type!==tr.Watched&&Pe.type!==tr.Unwatched&&Pe.type!==tr.PresenceChanged||me(Pe)},_,D)}if(p==="my-presence"){const me=b;return this.eventStream.subscribe(Pe=>{Pe.type!==tr.Initialized&&Pe.type!==tr.Watched&&Pe.type!==tr.Unwatched&&Pe.type!==tr.PresenceChanged||Pe.type!==tr.Initialized&&Pe.value.clientID!==this.changeID.getActorID()||me(Pe)},_,D)}if(p==="others"){const me=b;return this.eventStream.subscribe(Pe=>{Pe.type!==tr.Watched&&Pe.type!==tr.Unwatched&&Pe.type!==tr.PresenceChanged||Pe.value.clientID!==this.changeID.getActorID()&&me(Pe)},_,D)}const K=p,re=b;return this.eventStream.subscribe(me=>{if(me.type===tr.Initialized||me.type===tr.Watched||me.type===tr.Unwatched||me.type===tr.PresenceChanged)return;if(me.type===tr.Snapshot){K==="$"&&re(me);return}const{message:Pe,operations:at,actor:Dt}=me.value,tn=[];for(const xt of at)this.isSameElementOrChildOf(xt.path,K)&&tn.push(xt);tn.length&&re({type:me.type,value:{message:Pe,operations:tn,actor:Dt}})},_,D)}if(typeof p=="function"){const K=p,re=b,me=_;return this.eventStream.subscribe(Pe=>{Pe.type===tr.Initialized||Pe.type===tr.Watched||Pe.type===tr.Unwatched||Pe.type===tr.PresenceChanged||K(Pe)},re,me)}throw new Error(`"${p}" is not a valid`)}publish(p){this.eventStreamObserver&&this.eventStreamObserver.next(p)}isSameElementOrChildOf(p,b){if(b===p)return!0;const _=p.split(".");return b.split(".").every((K,re)=>K===_[re])}applyChangePack(p){for(p.hasSnapshot()?this.applySnapshot(p.getCheckpoint().getServerSeq(),p.getSnapshot()):p.hasChanges()&&this.applyChanges(p.getChanges());this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>p.getCheckpoint().getClientSeq());)this.localChanges.shift();this.checkpoint=this.checkpoint.forward(p.getCheckpoint()),this.garbageCollect(p.getMinSyncedTicket()),p.getIsRemoved()&&this.setStatus(aa.Removed),c.isEnabled(s.Trivial)&&c.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:Ea(this.presences)})}createChangePack(){const p=Array.from(this.localChanges),b=this.checkpoint.increaseClientSeq(p.length);return tf.create(this.key,b,!1,p)}setActor(p){for(const b of this.localChanges)b.setActor(p);this.changeID=this.changeID.setActor(p)}getKey(){return this.key}setStatus(p){this.status=p}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const p=nf.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return pw(p,this.clone.root.getObject())}getOpsForTest(){return this.root.opsForTest}garbageCollect(p){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(p),this.root.garbageCollect(p))}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(p,b){const{root:_,presences:D}=Es.bytesToSnapshot(b);this.root=new Gc(_),this.presences=D,this.changeID=this.changeID.syncLamport(p),this.clone=void 0,this.publish({type:tr.Snapshot,value:b})}applyChanges(p){c.isEnabled(s.Debug)&&c.debug(`trying to apply ${p.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`),c.isEnabled(s.Trivial)&&c.trivial(p.map(b=>`${b.getID().toTestString()} ${b.toTestString()}`).join(` +`)),this.ensureClone();for(const b of p){b.execute(this.clone.root,this.clone.presences,Fr.Remote);let _;const D=b.getID().getActorID();if(b.hasPresenceChange()&&this.onlineClients.has(D)){const re=b.getPresenceChange();switch(re.type){case Qa.Put:_={type:this.presences.has(D)?tr.PresenceChanged:tr.Watched,value:{clientID:D,presence:re.presence}};break;case Qa.Clear:_={type:tr.Unwatched,value:{clientID:D,presence:this.getPresence(D)}},this.removeOnlineClient(D);break}}const{opInfos:K}=b.execute(this.root,this.presences,Fr.Remote);K.length>0&&this.publish({type:tr.RemoteChange,value:{actor:D,message:b.getMessage()||"",operations:K}}),_&&this.publish(_),this.changeID=this.changeID.syncLamport(b.getID().getLamport())}c.isEnabled(s.Debug)&&c.debug(`after appling ${p.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`)}getValueByPath(p){if(!p.startsWith("$"))throw new Xn(Hn.InvalidArgument,'path must start with "$"');const b=p.split(".");b.shift();let _=this.getRoot();for(const D of b)if(_=_[D],_===void 0)return;return _}setOnlineClients(p){this.onlineClients=p}addOnlineClient(p){this.onlineClients.add(p)}removeOnlineClient(p){this.onlineClients.delete(p)}hasPresence(p){return this.presences.has(p)}getMyPresence(){if(this.status!==aa.Attached)return{};const p=this.presences.get(this.changeID.getActorID());return Ea(p)}getPresence(p){if(!this.onlineClients.has(p))return;const b=this.presences.get(p);return b?Ea(b):void 0}getPresenceForTest(p){const b=this.presences.get(p);return b?Ea(b):void 0}getPresences(){const p=[];for(const b of this.onlineClients)this.presences.has(b)&&p.push({clientID:b,presence:Ea(this.presences.get(b))});return p}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const p=this.getChangeID().getActorID();return this.getPresences().filter(b=>b.clientID!==p).sort((b,_)=>b.clientID>_.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 p=this.internalHistory.popUndo();if(p===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const b=nf.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Pe of p){if(!(Pe instanceof li)){new pp(b,Ea(this.clone.presences.get(this.changeID.getActorID()))).set(Pe.value,{addToHistory:!0});continue}const at=b.issueTimeTicket();Pe.setExecutedAt(at),b.push(Pe)}const _=b.getChange();_.execute(this.clone.root,this.clone.presences,Fr.UndoRedo);const{opInfos:D,reverseOps:K}=_.execute(this.root,this.presences,Fr.UndoRedo),re=b.getReversePresence();if(re&&K.push({type:"presence",value:re}),K.length>0&&this.internalHistory.pushRedo(K),!_.hasPresenceChange()&&D.length===0)return;this.localChanges.push(_),this.changeID=_.getID();const me=this.changeID.getActorID();D.length>0&&this.publish({type:tr.LocalChange,value:{message:_.getMessage()||"",operations:D,actor:me}}),_.hasPresenceChange()&&this.publish({type:tr.PresenceChanged,value:{clientID:me,presence:this.getPresence(me)}})}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const p=this.internalHistory.popRedo();if(p===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const b=nf.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Pe of p){if(!(Pe instanceof li)){new pp(b,Ea(this.clone.presences.get(this.changeID.getActorID()))).set(Pe.value,{addToHistory:!0});continue}const at=b.issueTimeTicket();Pe.setExecutedAt(at),b.push(Pe)}const _=b.getChange();_.execute(this.clone.root,this.clone.presences,Fr.UndoRedo);const{opInfos:D,reverseOps:K}=_.execute(this.root,this.presences,Fr.UndoRedo),re=b.getReversePresence();if(re&&K.push({type:"presence",value:re}),K.length>0&&this.internalHistory.pushUndo(K),!_.hasPresenceChange()&&D.length===0)return;this.localChanges.push(_),this.changeID=_.getID();const me=this.changeID.getActorID();D.length>0&&this.publish({type:tr.LocalChange,value:{message:_.getMessage()||"",operations:D,actor:me}}),_.hasPresenceChange()&&this.publish({type:tr.PresenceChanged,value:{clientID:me,presence:this.getPresence(me)}})}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function cm(T,p){return b=>async _=>(T&&_.header.set("x-api-key",T),p&&_.header.set("authorization",p),await b(_))}const Ep=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.15-rc"}');function cb(){return T=>async p=>(p.header.set("x-yorkie-user-agent",Ep.u2+"/"+Ep.i8),await T(p))}var Ka;(function(T){T.PushPull="pushpull",T.PushOnly="pushonly"})(Ka||(Ka={}));var qc;(function(T){T.Deactivated="deactivated",T.Activated="activated"})(qc||(qc={}));var sf;(function(T){T.Connected="connected",T.Disconnected="disconnected"})(sf||(sf={}));var Sp;(function(T){T.Synced="synced",T.SyncFailed="sync-failed"})(Sp||(Sp={}));var Ss;(function(T){T.StatusChanged="status-changed",T.DocumentChanged="document-changed",T.StreamConnectionStatusChanged="stream-connection-status-changed",T.DocumentSynced="document-synced"})(Ss||(Ss={}));const db={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class dm{constructor(p,b){b=b||db,this.key=b.key?b.key:d(),this.status=qc.Deactivated,this.attachmentMap=new Map,this.apiKey=b.apiKey||"",this.syncLoopDuration=b.syncLoopDuration||db.syncLoopDuration,this.reconnectStreamDelay=b.reconnectStreamDelay||db.reconnectStreamDelay,this.retrySyncLoopDelay=b.retrySyncLoopDelay||db.retrySyncLoopDelay,this.rpcClient=z(rt.V,Be({baseUrl:p,interceptors:[cm(b.apiKey,b.token),cb()]})),this.eventStream=g(_=>{this.eventStreamObserver=_})}activate(){return this.isActive()?Promise.resolve():this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(p=>{this.id=p.clientId,this.status=qc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:Ss.StatusChanged,value:this.status}),c.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(p=>{throw c.error(`[AC] c:"${this.getKey()}" err :`,p),p})}deactivate(){if(this.status===qc.Deactivated)return Promise.resolve();for(const[p]of this.attachmentMap)this.detachInternal(p);return this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status=qc.Deactivated,this.eventStreamObserver.next({type:Ss.StatusChanged,value:this.status}),c.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(p=>{throw c.error(`[DC] c:"${this.getKey()}" err :`,p),p})}attach(p,b={}){var _;if(!this.isActive())throw new Xn(Hn.ClientNotActive,`${this.key} is not active`);if(p.getStatus()!==aa.Detached)throw new Xn(Hn.DocumentNotDetached,`${p.getKey()} is not detached`);p.setActor(this.id),p.update((K,re)=>re.set(b.initialPresence||{}));const D=(_=b.isRealtimeSync)!==null&&_!==void 0?_:!0;return this.rpcClient.attachDocument({clientId:this.id,changePack:Es.toChangePack(p.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${p.getKey()}`}}).then(async K=>{const re=Es.fromChangePack(K.changePack);return p.applyChangePack(re),p.getStatus()===aa.Removed||(p.setStatus(aa.Attached),this.attachmentMap.set(p.getKey(),new dw(this.reconnectStreamDelay,p,K.documentId,D)),D&&await this.runWatchLoop(p.getKey()),c.info(`[AD] c:"${this.getKey()}" attaches d:"${p.getKey()}"`)),p}).catch(K=>{throw c.error(`[AD] c:"${this.getKey()}" err :`,K),K})}detach(p,b={}){var _;if(!this.isActive())throw new Xn(Hn.ClientNotActive,`${this.key} is not active`);const D=this.attachmentMap.get(p.getKey());if(!D)throw new Xn(Hn.DocumentNotAttached,`${p.getKey()} is not attached`);return p.update((K,re)=>re.clear()),this.rpcClient.detachDocument({clientId:this.id,documentId:D.docID,changePack:Es.toChangePack(p.createChangePack()),removeIfNotAttached:(_=b.removeIfNotAttached)!==null&&_!==void 0?_:!1},{headers:{"x-shard-key":`${this.apiKey}/${p.getKey()}`}}).then(K=>{const re=Es.fromChangePack(K.changePack);return p.applyChangePack(re),p.getStatus()!==aa.Removed&&p.setStatus(aa.Detached),this.detachInternal(p.getKey()),c.info(`[DD] c:"${this.getKey()}" detaches d:"${p.getKey()}"`),p}).catch(K=>{throw c.error(`[DD] c:"${this.getKey()}" err :`,K),K})}pause(p){if(!this.isActive())throw new Xn(Hn.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(p,!1)}resume(p){if(!this.isActive())throw new Xn(Hn.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(p,!0)}pauseRemoteChanges(p){if(!this.isActive())throw new Xn(Hn.ClientNotActive,`${this.key} is not active`);const b=this.attachmentMap.get(p.getKey());if(!b)throw new Xn(Hn.DocumentNotAttached,`${p.getKey()} is not attached`);b.changeSyncMode(Ka.PushOnly)}resumeRemoteChanges(p){if(!this.isActive())throw new Xn(Hn.ClientNotActive,`${this.key} is not active`);const b=this.attachmentMap.get(p.getKey());if(!b)throw new Xn(Hn.DocumentNotAttached,`${p.getKey()} is not attached`);b.changeSyncMode(Ka.PushPull),b.remoteChangeEventReceived=!0}async changeRealtimeSync(p,b){const _=this.attachmentMap.get(p.getKey());if(!_)throw new Xn(Hn.DocumentNotAttached,`${p.getKey()} is not attached`);return _.changeRealtimeSync(b)?b?(_.remoteChangeEventReceived=!0,await this.runWatchLoop(p.getKey()),p):(this.eventStreamObserver.next({type:Ss.StreamConnectionStatusChanged,value:sf.Disconnected}),c.debug(`[WD] c:"${this.getKey()}" unwatches`),p):p}sync(p,b=Ka.PushPull){if(!this.isActive())throw new Xn(Hn.ClientNotActive,`${this.key} is not active`);const _=[];if(p){const D=this.attachmentMap.get(p.getKey());if(!D)throw new Xn(Hn.DocumentNotAttached,`${p.getKey()} is not attached`);_.push(this.syncInternal(D,b))}else this.attachmentMap.forEach(D=>{_.push(this.syncInternal(D,D.syncMode))});return Promise.all(_).catch(D=>{throw this.eventStreamObserver.next({type:Ss.DocumentSynced,value:Sp.SyncFailed}),D})}remove(p){if(!this.isActive())throw new Xn(Hn.ClientNotActive,`${this.key} is not active`);const b=this.attachmentMap.get(p.getKey());if(!b)throw new Xn(Hn.DocumentNotAttached,`${p.getKey()} is not attached`);p.setActor(this.id);const _=Es.toChangePack(p.createChangePack());return _.isRemoved=!0,this.rpcClient.removeDocument({clientId:this.id,documentId:b.docID,changePack:_},{headers:{"x-shard-key":`${this.apiKey}/${p.getKey()}`}}).then(D=>{const K=Es.fromChangePack(D.changePack);p.applyChangePack(K),this.detachInternal(p.getKey()),c.info(`[RD] c:"${this.getKey()}" removes d:"${p.getKey()}"`)}).catch(D=>{throw c.error(`[RD] c:"${this.getKey()}" err :`,D),D})}subscribe(p,b,_){return this.eventStream.subscribe(p,b,_)}getID(){return this.id}getKey(){return this.key}isActive(){return this.status===qc.Activated}getStatus(){return this.status}runSyncLoop(){const p=()=>{if(!this.isActive()){c.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const b=[];for(const[,_]of this.attachmentMap)_.needRealtimeSync()&&(_.remoteChangeEventReceived=!1,b.push(this.syncInternal(_,_.syncMode)));Promise.all(b).then(()=>setTimeout(p,this.syncLoopDuration)).catch(_=>{c.error(`[SL] c:"${this.getKey()}" sync failed:`,_),this.eventStreamObserver.next({type:Ss.DocumentSynced,value:Sp.SyncFailed}),setTimeout(p,this.retrySyncLoopDelay)})};c.debug(`[SL] c:"${this.getKey()}" run sync loop`),p()}async runWatchLoop(p){const b=this.attachmentMap.get(p);if(!b)throw new Xn(Hn.DocumentNotAttached,`${p} is not attached`);return b.runWatchLoop(_=>{if(!this.isActive())return Promise.reject(new Xn(Hn.ClientNotActive,`${this.key} is not active`));const D=new AbortController,K=this.rpcClient.watchDocument({clientId:this.id,documentId:b.docID},{headers:{"x-shard-key":`${this.apiKey}/${p}`},signal:D.signal});return this.eventStreamObserver.next({type:Ss.StreamConnectionStatusChanged,value:sf.Connected}),c.info(`[WD] c:"${this.getKey()}" watches d:"${p}"`),new Promise((re,me)=>{(async()=>{try{for await(const at of K)this.handleWatchDocumentsResponse(b,at),at.body.case==="initialization"&&re([K,D])}catch(at){this.eventStreamObserver.next({type:Ss.StreamConnectionStatusChanged,value:sf.Disconnected}),c.debug(`[WD] c:"${this.getKey()}" unwatches`),_(),me(at)}})()})})}handleWatchDocumentsResponse(p,b){const _=p.doc.getKey();if(b.body.case==="initialization"){const D=b.body.value.clientIds,K=new Set;for(const re of D)K.add(re);p.doc.setOnlineClients(K),p.doc.publish({type:tr.Initialized,value:p.doc.getPresences()});return}else if(b.body.case==="event"){const D=b.body.value,K=D.type,re=D.publisher;switch(K){case Ne.DocEventType.DOCUMENT_CHANGED:p.remoteChangeEventReceived=!0,this.eventStreamObserver.next({type:Ss.DocumentChanged,value:[_]});break;case Ne.DocEventType.DOCUMENT_WATCHED:p.doc.addOnlineClient(re),p.doc.hasPresence(re)&&p.doc.publish({type:tr.Watched,value:{clientID:re,presence:p.doc.getPresence(re)}});break;case Ne.DocEventType.DOCUMENT_UNWATCHED:{const me=p.doc.getPresence(re);p.doc.removeOnlineClient(re),me&&p.doc.publish({type:tr.Unwatched,value:{clientID:re,presence:me}});break}}}}detachInternal(p){const b=this.attachmentMap.get(p);b&&(b.cancelWatchStream(),c.debug(`[WD] c:"${this.getKey()}" unwatches`),this.eventStreamObserver.next({type:Ss.StreamConnectionStatusChanged,value:sf.Disconnected}),this.attachmentMap.delete(p))}syncInternal(p,b){const{doc:_,docID:D}=p,K=_.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:D,changePack:Es.toChangePack(K),pushOnly:b===Ka.PushOnly},{headers:{"x-shard-key":`${this.apiKey}/${_.getKey()}`}}).then(re=>{const me=Es.fromChangePack(re.changePack);if(me.hasChanges()&&b===Ka.PushOnly)return _;_.applyChangePack(me),this.eventStreamObserver.next({type:Ss.DocumentSynced,value:Sp.Synced}),_.getStatus()===aa.Removed&&this.detachInternal(_.getKey());const Pe=_.getKey(),at=me.getChangeSize();return c.info(`[PP] c:"${this.getKey()}" sync d:"${Pe}", push:${K.getChangeSize()} pull:${at} cp:${me.getCheckpoint().toTestString()}`),_}).catch(re=>{throw c.error(`[PP] c:"${this.getKey()}" err :`,re),re})}}const gw={Client:dm,Document:af,Primitive:ri,Text:sb,Counter:of,Tree:lb,IntType:Qi.IntegerCnt,LongType:Qi.LongCnt}})(),a})())})(Zle);var G_=Zle.exports;class BWe{constructor(t,n){ka(this,"doc");ka(this,"client");this.doc=t,this.client=n}}const eB=hn.define({combine(e){return e[e.length-1]}});Pc.define();class UWe{constructor(t){ka(this,"view");ka(this,"conf");ka(this,"_doc");this.view=t,this.conf=t.state.facet(eB),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[ga.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new G_.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const o=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:o,annotations:[ga.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(o=>n.isUserEvent(o))||n.annotation(ga.remote))continue;let i=0;n.changes.iterChanges((o,a,s,l,u)=>{const c=u.toJSON().join(` +`);this._doc.update(d=>{d.content.edit(o+i,a+i,c)}),i+=c.length-(a-o)})}}}const jWe=Ji.fromClass(UWe);class zWe{constructor(t,n){this.left=t,this.right=n}}const Qm=(e,t)=>new zWe(e,t),VWe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Hd=typeof document<"u"?document:{},WWe=e=>Hd.createElement(e),HWe=()=>Hd.createDocumentFragment(),QWe=e=>Hd.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const YWe=(e,t)=>(VWe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),GWe=e=>{const t=HWe();for(let n=0;n(Xle(e,GWe(t)),e),Jk=(e,t=[],n=[])=>qWe(YWe(WWe(e),t),n),Wx=QWe,Xle=(e,t)=>e.appendChild(t);Hd.ELEMENT_NODE;Hd.TEXT_NODE;Hd.CDATA_SECTION_NODE;Hd.COMMENT_NODE;Hd.DOCUMENT_NODE;Hd.DOCUMENT_TYPE_NODE;Hd.DOCUMENT_FRAGMENT_NODE;var q_={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */X_.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",d=1,p=2,m=4,g=1,v=2,E=1,O=2,S=4,x=8,C=16,I=32,_=64,w=128,F=256,M=512,L=30,W="...",H=800,q=16,j=1,z=2,X=3,Z=1/0,G=9007199254740991,ee=17976931348623157e292,Q=NaN,ae=4294967295,Te=ae-1,te=ae>>>1,pe=[["ary",w],["bind",E],["bindKey",O],["curry",x],["curryRight",C],["flip",M],["partial",I],["partialRight",_],["rearg",F]],Oe="[object Arguments]",me="[object Array]",Re="[object AsyncFunction]",Fe="[object Boolean]",et="[object Date]",ct="[object DOMException]",Ye="[object Error]",nt="[object Function]",ke="[object GeneratorFunction]",qe="[object Map]",Ge="[object Number]",rt="[object Null]",Ot="[object Object]",Ke="[object Promise]",de="[object Proxy]",oe="[object RegExp]",ie="[object Set]",Me="[object String]",He="[object Symbol]",Be="[object Undefined]",ce="[object WeakMap]",ye="[object WeakSet]",be="[object ArrayBuffer]",we="[object DataView]",Ie="[object Float32Array]",ft="[object Float64Array]",_t="[object Int8Array]",At="[object Int16Array]",pt="[object Int32Array]",Mt="[object Uint8Array]",it="[object Uint8ClampedArray]",bt="[object Uint16Array]",$t="[object Uint32Array]",Xt=/\b__p \+= '';/g,vn=/\b(__p \+=) '' \+/g,Cn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$n=/&(?:amp|lt|gt|quot|#39);/g,qn=/[&<>"']/g,Ce=RegExp($n.source),$e=RegExp(qn.source),tt=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,wt=/<%=([\s\S]+?)%>/g,Gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jt=/^\w*$/,qt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bt=/[\\^$.*+?()[\]{}|]/g,On=RegExp(Bt.source),je=/^\s+/,ze=/\s/,Ve=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yt=/\{\n\/\* \[wrapped with (.+)\] \*/,Nn=/,? & /,Kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,An=/[()=,{}\[\]\/\s]/,Kr=/\\(\\)?/g,Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Le=/\w*$/,Rt=/^[-+]0x[0-9a-f]+$/i,en=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,er=/^0o[0-7]+$/i,Zn=/^(?:0|[1-9]\d*)$/,bn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_n=/($^)/,Tr=/['\n\r\u2028\u2029\\]/g,ai="\\ud800-\\udfff",fi="\\u0300-\\u036f",Pt="\\ufe20-\\ufe2f",Pi="\\u20d0-\\u20ff",Wn=fi+Pt+Pi,Xn="\\u2700-\\u27bf",Es="a-z\\xdf-\\xf6\\xf8-\\xff",ga="\\xac\\xb1\\xd7\\xf7",Li="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xd="\\u2000-\\u206f",Qs=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pp="A-Z\\xc0-\\xd6\\xd8-\\xde",ns="\\ufe0e\\ufe0f",Ys=ga+Li+Xd+Qs,eo="['’]",ba="["+ai+"]",ya="["+Ys+"]",Ba="["+Wn+"]",Ei="\\d+",Co="["+Xn+"]",Si="["+Es+"]",Kd="[^"+ai+Ys+Ei+Xn+Es+pp+"]",Ti="\\ud83c[\\udffb-\\udfff]",Ss="(?:"+Ba+"|"+Ti+")",Lo="[^"+ai+"]",to="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Fr="["+pp+"]",li="\\u200d",rs="(?:"+Si+"|"+Kd+")",_o="(?:"+Fr+"|"+Kd+")",Pn="(?:"+eo+"(?:d|ll|m|re|s|t|ve))?",ri="(?:"+eo+"(?:D|LL|M|RE|S|T|VE))?",Jd=Ss+"?",zc="["+ns+"]?",Ts="(?:"+li+"(?:"+[Lo,to,Vr].join("|")+")"+zc+Jd+")*",ru="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vc=zc+Jd+Ts,pl="(?:"+[Co,to,Vr].join("|")+")"+Vc,Hc="(?:"+[Lo+Ba+"?",Ba,to,Vr,ba].join("|")+")",go=RegExp(eo,"g"),Gs=RegExp(Ba,"g"),Mo=RegExp(Ti+"(?="+Ti+")|"+Hc+Vc,"g"),is=RegExp([Fr+"?"+Si+"+"+Pn+"(?="+[ya,Fr,"$"].join("|")+")",_o+"+"+ri+"(?="+[ya,Fr+rs,"$"].join("|")+")",Fr+"?"+rs+"+"+Pn,Fr+"+"+ri,Zu,ru,Ei,pl].join("|"),"g"),os=RegExp("["+li+ai+Wn+ns+"]"),Ao=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hl=-1,Qn={};Qn[Ie]=Qn[ft]=Qn[_t]=Qn[At]=Qn[pt]=Qn[Mt]=Qn[it]=Qn[bt]=Qn[$t]=!0,Qn[Oe]=Qn[me]=Qn[be]=Qn[Fe]=Qn[we]=Qn[et]=Qn[Ye]=Qn[nt]=Qn[qe]=Qn[Ge]=Qn[Ot]=Qn[oe]=Qn[ie]=Qn[Me]=Qn[ce]=!1;var mr={};mr[Oe]=mr[me]=mr[be]=mr[we]=mr[Fe]=mr[et]=mr[Ie]=mr[ft]=mr[_t]=mr[At]=mr[pt]=mr[qe]=mr[Ge]=mr[Ot]=mr[oe]=mr[ie]=mr[Me]=mr[He]=mr[Mt]=mr[it]=mr[bt]=mr[$t]=!0,mr[Ye]=mr[nt]=mr[ce]=!1;var Wc={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ml={"&":"&","<":"<",">":">",'"':""","'":"'"},br={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ro={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},va=parseFloat,Zs=parseInt,ws=typeof Rf=="object"&&Rf&&Rf.Object===Object&&Rf,V=typeof self=="object"&&self&&self.Object===Object&&self,R=ws||V||Function("return this")(),U=t&&!t.nodeType&&t,he=U&&!0&&e&&!e.nodeType&&e,xe=he&&he.exports===U,We=xe&&ws.process,Ze=function(){try{var Ue=he&&he.require&&he.require("util").types;return Ue||We&&We.binding&&We.binding("util")}catch{}}(),kt=Ze&&Ze.isArrayBuffer,lt=Ze&&Ze.isDate,It=Ze&&Ze.isMap,Ht=Ze&&Ze.isRegExp,Fn=Ze&&Ze.isSet,Jr=Ze&&Ze.isTypedArray;function Hn(Ue,mt,at){switch(at.length){case 0:return Ue.call(mt);case 1:return Ue.call(mt,at[0]);case 2:return Ue.call(mt,at[0],at[1]);case 3:return Ue.call(mt,at[0],at[1],at[2])}return Ue.apply(mt,at)}function pi(Ue,mt,at,dn){for(var Yn=-1,Nr=Ue==null?0:Ue.length;++Yn-1}function Qc(Ue,mt,at){for(var dn=-1,Yn=Ue==null?0:Ue.length;++dn-1;);return at}function rw(Ue,mt){for(var at=Ue.length;at--&&bl(mt,Ue[at],0)>-1;);return at}function xI(Ue,mt){for(var at=Ue.length,dn=0;at--;)Ue[at]===mt&&++dn;return dn}var kI=En(Wc),CI=En(ml);function _I(Ue){return"\\"+Ro[Ue]}function iw(Ue,mt){return Ue==null?n:Ue[mt]}function mp(Ue){return os.test(Ue)}function ow(Ue){return Ao.test(Ue)}function AI(Ue){for(var mt,at=[];!(mt=Ue.next()).done;)at.push(mt.value);return at}function $1(Ue){var mt=-1,at=Array(Ue.size);return Ue.forEach(function(dn,Yn){at[++mt]=[Yn,dn]}),at}function sw(Ue,mt){return function(at){return Ue(mt(at))}}function Ku(Ue,mt){for(var at=-1,dn=Ue.length,Yn=0,Nr=[];++at-1}function Fi(h,y){var A=this.__data__,Y=vw(A,h);return Y<0?(++this.size,A.push([h,y])):A[Y][1]=y,this}Un.prototype.clear=or,Un.prototype.delete=Pr,Un.prototype.get=Bo,Un.prototype.has=fr,Un.prototype.set=Fi;function Lr(h){var y=-1,A=h==null?0:h.length;for(this.clear();++y=y?h:y)),h}function au(h,y,A,Y,ne,le){var Ee,_e=y&d,Qe=y&p,Et=y&m;if(A&&(Ee=ne?A(h,Y,ne,le):A(h)),Ee!==n)return Ee;if(!Gi(h))return h;var St=Kn(h);if(St){if(Ee=zge(h),!_e)return ja(h,Ee)}else{var Ct=Js(h),nn=Ct==nt||Ct==ke;if(_p(h))return Az(h,_e);if(Ct==Ot||Ct==Oe||nn&&!ne){if(Ee=Qe||nn?{}:Gz(h),!_e)return Qe?Ige(h,ege(Ee,h)):Rge(h,oz(Ee,h))}else{if(!mr[Ct])return ne?h:{};Ee=Vge(h,Ct,_e)}}le||(le=new ec);var xn=le.get(h);if(xn)return xn;le.set(h,Ee),TV(h)?h.forEach(function(zn){Ee.add(au(zn,y,A,zn,h,le))}):EV(h)&&h.forEach(function(zn,yr){Ee.set(yr,au(zn,y,A,yr,h,le))});var jn=Et?Qe?sD:oD:Qe?Va:as,cr=St?n:jn(h);return Qi(cr||h,function(zn,yr){cr&&(yr=zn,zn=h[yr]),W1(Ee,yr,au(zn,y,A,yr,h,le))}),Ee}function tge(h){var y=as(h);return function(A){return sz(A,h,y)}}function sz(h,y,A){var Y=A.length;if(h==null)return!Y;for(h=ei(h);Y--;){var ne=A[Y],le=y[ne],Ee=h[ne];if(Ee===n&&!(ne in h)||!le(Ee))return!1}return!0}function az(h,y,A){if(typeof h!="function")throw new Oa(s);return K1(function(){h.apply(n,A)},y)}function Q1(h,y,A,Y){var ne=-1,le=ef,Ee=!0,_e=h.length,Qe=[],Et=y.length;if(!_e)return Qe;A&&(y=hi(y,Fo(A))),Y?(le=Qc,Ee=!1):y.length>=i&&(le=lm,Ee=!1,y=new lf(y));e:for(;++ne<_e;){var St=h[ne],Ct=A==null?St:A(St);if(St=Y||St!==0?St:0,Ee&&Ct===Ct){for(var nn=Et;nn--;)if(y[nn]===Ct)continue e;Qe.push(St)}else le(y,Ct,Y)||Qe.push(St)}return Qe}var wp=Pz(Zc),lz=Pz(zI,!0);function nge(h,y){var A=!0;return wp(h,function(Y,ne,le){return A=!!y(Y,ne,le),A}),A}function Ow(h,y,A){for(var Y=-1,ne=h.length;++Yne?0:ne+A),Y=Y===n||Y>ne?ne:sr(Y),Y<0&&(Y+=ne),Y=A>Y?0:xV(Y);A0&&A(_e)?y>1?xs(_e,y-1,A,Y,ne):$o(ne,_e):Y||(ne[ne.length]=_e)}return ne}var jI=Lz(),cz=Lz(!0);function Zc(h,y){return h&&jI(h,y,as)}function zI(h,y){return h&&cz(h,y,as)}function Ew(h,y){return Ua(y,function(A){return pf(h[A])})}function hm(h,y){y=kp(y,h);for(var A=0,Y=y.length;h!=null&&Ay}function ige(h,y){return h!=null&&Hr.call(h,y)}function oge(h,y){return h!=null&&y in ei(h)}function sge(h,y,A){return h>=$i(y,A)&&h=120&&St.length>=120)?new lf(Ee&&St):n}St=h[0];var Ct=-1,nn=_e[0];e:for(;++Ct-1;)_e!==h&&Gc.call(_e,Qe,1),Gc.call(h,Qe,1);return h}function Ez(h,y){for(var A=h?y.length:0,Y=A-1;A--;){var ne=y[A];if(A==Y||ne!==le){var le=ne;ff(ne)?Gc.call(h,ne,1):KI(h,ne)}}return h}function qI(h,y){return h+Op(gw()*(y-h+1))}function vge(h,y,A,Y){for(var ne=-1,le=ii(rf((y-h)/(A||1)),0),Ee=at(le);le--;)Ee[Y?le:++ne]=h,h+=A;return Ee}function ZI(h,y){var A="";if(!h||y<1||y>G)return A;do y%2&&(A+=h),y=Op(y/2),y&&(h+=h);while(y);return A}function pr(h,y){return pD(Xz(h,y,Ha),h+"")}function Oge(h){return iz(b0(h))}function Ege(h,y){var A=b0(h);return Dw(A,pm(y,0,A.length))}function q1(h,y,A,Y){if(!Gi(h))return h;y=kp(y,h);for(var ne=-1,le=y.length,Ee=le-1,_e=h;_e!=null&&++nene?0:ne+y),A=A>ne?ne:A,A<0&&(A+=ne),ne=y>A?0:A-y>>>0,y>>>=0;for(var le=at(ne);++Y>>1,Ee=h[le];Ee!==null&&!Ol(Ee)&&(A?Ee<=y:Ee=i){var Et=y?null:Lge(h);if(Et)return gp(Et);Ee=!1,ne=lm,Qe=new lf}else Qe=y?[]:_e;e:for(;++Y=Y?h:lu(h,y,A)}var _z=MI||function(h){return R.clearTimeout(h)};function Az(h,y){if(y)return h.slice();var A=h.length,Y=o0?o0(A):new h.constructor(A);return h.copy(Y),Y}function nD(h){var y=new h.constructor(h.byteLength);return new i0(y).set(new i0(h)),y}function kge(h,y){var A=y?nD(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.byteLength)}function Cge(h){var y=new h.constructor(h.source,Le.exec(h));return y.lastIndex=h.lastIndex,y}function _ge(h){return f0?ei(f0.call(h)):{}}function Rz(h,y){var A=y?nD(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.length)}function Iz(h,y){if(h!==y){var A=h!==n,Y=h===null,ne=h===h,le=Ol(h),Ee=y!==n,_e=y===null,Qe=y===y,Et=Ol(y);if(!_e&&!Et&&!le&&h>y||le&&Ee&&Qe&&!_e&&!Et||Y&&Ee&&Qe||!A&&Qe||!ne)return 1;if(!Y&&!le&&!Et&&h=_e)return Qe;var Et=A[Y];return Qe*(Et=="desc"?-1:1)}}return h.index-y.index}function Dz(h,y,A,Y){for(var ne=-1,le=h.length,Ee=A.length,_e=-1,Qe=y.length,Et=ii(le-Ee,0),St=at(Qe+Et),Ct=!Y;++_e1?A[ne-1]:n,Ee=ne>2?A[2]:n;for(le=h.length>3&&typeof le=="function"?(ne--,le):n,Ee&&wa(A[0],A[1],Ee)&&(le=ne<3?n:le,ne=1),y=ei(y);++Y-1?ne[le?y[Ee]:Ee]:n}}function Fz(h){return df(function(y){var A=y.length,Y=A,ne=k.prototype.thru;for(h&&y.reverse();Y--;){var le=y[Y];if(typeof le!="function")throw new Oa(s);if(ne&&!Ee&&Rw(le)=="wrapper")var Ee=new k([],!0)}for(Y=Ee?Y:A;++Y1&&kr.reverse(),St&&Qe_e))return!1;var Et=le.get(h),St=le.get(y);if(Et&&St)return Et==y&&St==h;var Ct=-1,nn=!0,xn=A&v?new lf:n;for(le.set(h,y),le.set(y,h);++Ct<_e;){var jn=h[Ct],cr=y[Ct];if(Y)var zn=Ee?Y(cr,jn,Ct,y,h,le):Y(jn,cr,Ct,h,y,le);if(zn!==n){if(zn)continue;nn=!1;break}if(xn){if(!ou(y,function(yr,kr){if(!lm(xn,kr)&&(jn===yr||ne(jn,yr,A,Y,le)))return xn.push(kr)})){nn=!1;break}}else if(!(jn===cr||ne(jn,cr,A,Y,le))){nn=!1;break}}return le.delete(h),le.delete(y),nn}function $ge(h,y,A,Y,ne,le,Ee){switch(A){case we:if(h.byteLength!=y.byteLength||h.byteOffset!=y.byteOffset)return!1;h=h.buffer,y=y.buffer;case be:return!(h.byteLength!=y.byteLength||!le(new i0(h),new i0(y)));case Fe:case et:case Ge:return tc(+h,+y);case Ye:return h.name==y.name&&h.message==y.message;case oe:case Me:return h==y+"";case qe:var _e=$1;case ie:var Qe=Y&g;if(_e||(_e=gp),h.size!=y.size&&!Qe)return!1;var Et=Ee.get(h);if(Et)return Et==y;Y|=v,Ee.set(h,y);var St=Wz(_e(h),_e(y),Y,ne,le,Ee);return Ee.delete(h),St;case He:if(f0)return f0.call(h)==f0.call(y)}return!1}function Fge(h,y,A,Y,ne,le){var Ee=A&g,_e=oD(h),Qe=_e.length,Et=oD(y),St=Et.length;if(Qe!=St&&!Ee)return!1;for(var Ct=Qe;Ct--;){var nn=_e[Ct];if(!(Ee?nn in y:Hr.call(y,nn)))return!1}var xn=le.get(h),jn=le.get(y);if(xn&&jn)return xn==y&&jn==h;var cr=!0;le.set(h,y),le.set(y,h);for(var zn=Ee;++Ct1?"& ":"")+y[Y],y=y.join(A>2?", ":" "),h.replace(Ve,`{ + */q_.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",d=1,f=2,m=4,g=1,v=2,S=1,O=2,E=4,w=8,k=16,A=32,C=64,x=128,F=256,M=512,P=30,V="...",W=800,G=16,j=1,z=2,X=3,Z=1/0,q=9007199254740991,te=17976931348623157e292,Q=NaN,se=4294967295,he=se-1,J=se>>>1,le=[["ary",x],["bind",S],["bindKey",O],["curry",w],["curryRight",k],["flip",M],["partial",A],["partialRight",C],["rearg",F]],ve="[object Arguments]",ue="[object Array]",we="[object AsyncFunction]",ke="[object Boolean]",Ue="[object Date]",et="[object DOMException]",Me="[object Error]",qe="[object Function]",xe="[object GeneratorFunction]",Ze="[object Map]",Xe="[object Number]",it="[object Null]",Ot="[object Object]",tt="[object Promise]",pe="[object Proxy]",oe="[object RegExp]",ie="[object Set]",Fe="[object String]",Qe="[object Symbol]",je="[object Undefined]",fe="[object WeakMap]",Oe="[object WeakSet]",ye="[object ArrayBuffer]",Ce="[object DataView]",De="[object Float32Array]",ft="[object Float64Array]",_t="[object Int8Array]",At="[object Int16Array]",pt="[object Int32Array]",Mt="[object Uint8Array]",ot="[object Uint8ClampedArray]",gt="[object Uint16Array]",$t="[object Uint32Array]",Xt=/\b__p \+= '';/g,vn=/\b(__p \+=) '' \+/g,Cn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$n=/&(?:amp|lt|gt|quot|#39);/g,qn=/[&<>"']/g,Ae=RegExp($n.source),Be=RegExp(qn.source),rt=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,wt=/<%=([\s\S]+?)%>/g,Gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jt=/^\w*$/,qt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bt=/[\\^$.*+?()[\]{}|]/g,On=RegExp(Bt.source),Ve=/^\s+/,We=/\s/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bt=/\{\n\/\* \[wrapped with (.+)\] \*/,Nn=/,? & /,Kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,An=/[()=,{}\[\]\/\s]/,Kr=/\\(\\)?/g,Je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,Rt=/^[-+]0x[0-9a-f]+$/i,en=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,er=/^0o[0-7]+$/i,Zn=/^(?:0|[1-9]\d*)$/,bn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_n=/($^)/,Tr=/['\n\r\u2028\u2029\\]/g,si="\\ud800-\\udfff",fi="\\u0300-\\u036f",Pt="\\ufe20-\\ufe2f",Pi="\\u20d0-\\u20ff",Hn=fi+Pt+Pi,Xn="\\u2700-\\u27bf",Ea="a-z\\xdf-\\xf6\\xf8-\\xff",gs="\\xac\\xb1\\xd7\\xf7",Li="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Kd="\\u2000-\\u206f",Qa=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pp="A-Z\\xc0-\\xd6\\xd8-\\xde",na="\\ufe0e\\ufe0f",Ya=gs+Li+Kd+Qa,eo="['’]",bs="["+si+"]",ys="["+Ya+"]",Bs="["+Hn+"]",Ei="\\d+",Co="["+Xn+"]",Si="["+Ea+"]",Jd="[^"+si+Ya+Ei+Xn+Ea+pp+"]",Ti="\\ud83c[\\udffb-\\udfff]",Sa="(?:"+Bs+"|"+Ti+")",Lo="[^"+si+"]",to="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Fr="["+pp+"]",li="\\u200d",ra="(?:"+Si+"|"+Jd+")",_o="(?:"+Fr+"|"+Jd+")",Pn="(?:"+eo+"(?:d|ll|m|re|s|t|ve))?",ri="(?:"+eo+"(?:D|LL|M|RE|S|T|VE))?",ef=Sa+"?",zc="["+na+"]?",Ta="(?:"+li+"(?:"+[Lo,to,Vr].join("|")+")"+zc+ef+")*",ru="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vc=zc+ef+Ta,pl="(?:"+[Co,to,Vr].join("|")+")"+Vc,Wc="(?:"+[Lo+Bs+"?",Bs,to,Vr,bs].join("|")+")",go=RegExp(eo,"g"),Ga=RegExp(Bs,"g"),Mo=RegExp(Ti+"(?="+Ti+")|"+Wc+Vc,"g"),ia=RegExp([Fr+"?"+Si+"+"+Pn+"(?="+[ys,Fr,"$"].join("|")+")",_o+"+"+ri+"(?="+[ys,Fr+ra,"$"].join("|")+")",Fr+"?"+ra+"+"+Pn,Fr+"+"+ri,Zu,ru,Ei,pl].join("|"),"g"),oa=RegExp("["+li+si+Hn+na+"]"),Ao=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hl=-1,Qn={};Qn[De]=Qn[ft]=Qn[_t]=Qn[At]=Qn[pt]=Qn[Mt]=Qn[ot]=Qn[gt]=Qn[$t]=!0,Qn[ve]=Qn[ue]=Qn[ye]=Qn[ke]=Qn[Ce]=Qn[Ue]=Qn[Me]=Qn[qe]=Qn[Ze]=Qn[Xe]=Qn[Ot]=Qn[oe]=Qn[ie]=Qn[Fe]=Qn[fe]=!1;var mr={};mr[ve]=mr[ue]=mr[ye]=mr[Ce]=mr[ke]=mr[Ue]=mr[De]=mr[ft]=mr[_t]=mr[At]=mr[pt]=mr[Ze]=mr[Xe]=mr[Ot]=mr[oe]=mr[ie]=mr[Fe]=mr[Qe]=mr[Mt]=mr[ot]=mr[gt]=mr[$t]=!0,mr[Me]=mr[qe]=mr[fe]=!1;var Hc={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ml={"&":"&","<":"<",">":">",'"':""","'":"'"},br={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ro={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vs=parseFloat,Za=parseInt,wa=typeof md=="object"&&md&&md.Object===Object&&md,H=typeof self=="object"&&self&&self.Object===Object&&self,I=wa||H||Function("return this")(),U=t&&!t.nodeType&&t,ge=U&&!0&&e&&!e.nodeType&&e,_e=ge&&ge.exports===U,Ye=_e&&wa.process,Ke=function(){try{var ze=ge&&ge.require&&ge.require("util").types;return ze||Ye&&Ye.binding&&Ye.binding("util")}catch{}}(),kt=Ke&&Ke.isArrayBuffer,ut=Ke&&Ke.isDate,It=Ke&&Ke.isMap,Wt=Ke&&Ke.isRegExp,Fn=Ke&&Ke.isSet,Jr=Ke&&Ke.isTypedArray;function Wn(ze,ht,lt){switch(lt.length){case 0:return ze.call(ht);case 1:return ze.call(ht,lt[0]);case 2:return ze.call(ht,lt[0],lt[1]);case 3:return ze.call(ht,lt[0],lt[1],lt[2])}return ze.apply(ht,lt)}function pi(ze,ht,lt,dn){for(var Yn=-1,Nr=ze==null?0:ze.length;++Yn-1}function Qc(ze,ht,lt){for(var dn=-1,Yn=ze==null?0:ze.length;++dn-1;);return lt}function nw(ze,ht){for(var lt=ze.length;lt--&&bl(ht,ze[lt],0)>-1;);return lt}function T2(ze,ht){for(var lt=ze.length,dn=0;lt--;)ze[lt]===ht&&++dn;return dn}var w2=En(Hc),x2=En(ml);function k2(ze){return"\\"+Ro[ze]}function rw(ze,ht){return ze==null?n:ze[ht]}function mp(ze){return oa.test(ze)}function iw(ze){return Ao.test(ze)}function C2(ze){for(var ht,lt=[];!(ht=ze.next()).done;)lt.push(ht.value);return lt}function Mv(ze){var ht=-1,lt=Array(ze.size);return ze.forEach(function(dn,Yn){lt[++ht]=[Yn,dn]}),lt}function ow(ze,ht){return function(lt){return ze(ht(lt))}}function Ku(ze,ht){for(var lt=-1,dn=ze.length,Yn=0,Nr=[];++lt-1}function Fi(h,y){var R=this.__data__,Y=yw(R,h);return Y<0?(++this.size,R.push([h,y])):R[Y][1]=y,this}Un.prototype.clear=or,Un.prototype.delete=Pr,Un.prototype.get=Bo,Un.prototype.has=fr,Un.prototype.set=Fi;function Lr(h){var y=-1,R=h==null?0:h.length;for(this.clear();++y=y?h:y)),h}function su(h,y,R,Y,ne,ce){var Se,Re=y&d,Ge=y&f,Et=y&m;if(R&&(Se=ne?R(h,Y,ne,ce):R(h)),Se!==n)return Se;if(!Yi(h))return h;var St=Kn(h);if(St){if(Se=Uge(h),!Re)return js(h,Se)}else{var Ct=Ja(h),nn=Ct==qe||Ct==xe;if(_p(h))return kz(h,Re);if(Ct==Ot||Ct==ve||nn&&!ne){if(Se=Ge||nn?{}:Hz(h),!Re)return Ge?Age(h,Kme(Se,h)):_ge(h,nz(Se,h))}else{if(!mr[Ct])return ne?h:{};Se=jge(h,Ct,Re)}}ce||(ce=new ec);var xn=ce.get(h);if(xn)return xn;ce.set(h,Se),OV(h)?h.forEach(function(zn){Se.add(su(zn,y,R,zn,h,ce))}):yV(h)&&h.forEach(function(zn,yr){Se.set(yr,su(zn,y,R,yr,h,ce))});var jn=Et?Ge?iD:rD:Ge?Vs:sa,cr=St?n:jn(h);return Hi(cr||h,function(zn,yr){cr&&(yr=zn,zn=h[yr]),Wv(Se,yr,su(zn,y,R,yr,h,ce))}),Se}function Jme(h){var y=sa(h);return function(R){return rz(R,h,y)}}function rz(h,y,R){var Y=R.length;if(h==null)return!Y;for(h=ei(h);Y--;){var ne=R[Y],ce=y[ne],Se=h[ne];if(Se===n&&!(ne in h)||!ce(Se))return!1}return!0}function iz(h,y,R){if(typeof h!="function")throw new Os(a);return Xv(function(){h.apply(n,R)},y)}function Hv(h,y,R,Y){var ne=-1,ce=tf,Se=!0,Re=h.length,Ge=[],Et=y.length;if(!Re)return Ge;R&&(y=hi(y,Fo(R))),Y?(ce=Qc,Se=!1):y.length>=i&&(ce=lm,Se=!1,y=new uf(y));e:for(;++nene?0:ne+R),Y=Y===n||Y>ne?ne:ar(Y),Y<0&&(Y+=ne),Y=R>Y?0:SV(Y);R0&&R(Re)?y>1?xa(Re,y-1,R,Y,ne):$o(ne,Re):Y||(ne[ne.length]=Re)}return ne}var B2=Dz(),sz=Dz(!0);function Zc(h,y){return h&&B2(h,y,sa)}function U2(h,y){return h&&sz(h,y,sa)}function Ow(h,y){return Us(y,function(R){return hf(h[R])})}function hm(h,y){y=kp(y,h);for(var R=0,Y=y.length;h!=null&&Ry}function nge(h,y){return h!=null&&Wr.call(h,y)}function rge(h,y){return h!=null&&y in ei(h)}function ige(h,y,R){return h>=$i(y,R)&&h=120&&St.length>=120)?new uf(Se&&St):n}St=h[0];var Ct=-1,nn=Re[0];e:for(;++Ct-1;)Re!==h&&Gc.call(Re,Ge,1),Gc.call(h,Ge,1);return h}function yz(h,y){for(var R=h?y.length:0,Y=R-1;R--;){var ne=y[R];if(R==Y||ne!==ce){var ce=ne;pf(ne)?Gc.call(h,ne,1):Z2(h,ne)}}return h}function Y2(h,y){return h+Op(mw()*(y-h+1))}function bge(h,y,R,Y){for(var ne=-1,ce=ii(of((y-h)/(R||1)),0),Se=lt(ce);ce--;)Se[Y?ce:++ne]=h,h+=R;return Se}function G2(h,y){var R="";if(!h||y<1||y>q)return R;do y%2&&(R+=h),y=Op(y/2),y&&(h+=h);while(y);return R}function pr(h,y){return dD(Gz(h,y,Ws),h+"")}function yge(h){return tz(bb(h))}function vge(h,y){var R=bb(h);return Iw(R,pm(y,0,R.length))}function Gv(h,y,R,Y){if(!Yi(h))return h;y=kp(y,h);for(var ne=-1,ce=y.length,Se=ce-1,Re=h;Re!=null&&++nene?0:ne+y),R=R>ne?ne:R,R<0&&(R+=ne),ne=y>R?0:R-y>>>0,y>>>=0;for(var ce=lt(ne);++Y>>1,Se=h[ce];Se!==null&&!Ol(Se)&&(R?Se<=y:Se=i){var Et=y?null:Nge(h);if(Et)return gp(Et);Se=!1,ne=lm,Ge=new uf}else Ge=y?[]:Re;e:for(;++Y=Y?h:lu(h,y,R)}var xz=P2||function(h){return I.clearTimeout(h)};function kz(h,y){if(y)return h.slice();var R=h.length,Y=ob?ob(R):new h.constructor(R);return h.copy(Y),Y}function eD(h){var y=new h.constructor(h.byteLength);return new ib(y).set(new ib(h)),y}function wge(h,y){var R=y?eD(h.buffer):h.buffer;return new h.constructor(R,h.byteOffset,h.byteLength)}function xge(h){var y=new h.constructor(h.source,$e.exec(h));return y.lastIndex=h.lastIndex,y}function kge(h){return fb?ei(fb.call(h)):{}}function Cz(h,y){var R=y?eD(h.buffer):h.buffer;return new h.constructor(R,h.byteOffset,h.length)}function _z(h,y){if(h!==y){var R=h!==n,Y=h===null,ne=h===h,ce=Ol(h),Se=y!==n,Re=y===null,Ge=y===y,Et=Ol(y);if(!Re&&!Et&&!ce&&h>y||ce&&Se&&Ge&&!Re&&!Et||Y&&Se&&Ge||!R&&Ge||!ne)return 1;if(!Y&&!ce&&!Et&&h=Re)return Ge;var Et=R[Y];return Ge*(Et=="desc"?-1:1)}}return h.index-y.index}function Az(h,y,R,Y){for(var ne=-1,ce=h.length,Se=R.length,Re=-1,Ge=y.length,Et=ii(ce-Se,0),St=lt(Ge+Et),Ct=!Y;++Re1?R[ne-1]:n,Se=ne>2?R[2]:n;for(ce=h.length>3&&typeof ce=="function"?(ne--,ce):n,Se&&ws(R[0],R[1],Se)&&(ce=ne<3?n:ce,ne=1),y=ei(y);++Y-1?ne[ce?y[Se]:Se]:n}}function Lz(h){return ff(function(y){var R=y.length,Y=R,ne=_.prototype.thru;for(h&&y.reverse();Y--;){var ce=y[Y];if(typeof ce!="function")throw new Os(a);if(ne&&!Se&&Aw(ce)=="wrapper")var Se=new _([],!0)}for(Y=Se?Y:R;++Y1&&kr.reverse(),St&&GeRe))return!1;var Et=ce.get(h),St=ce.get(y);if(Et&&St)return Et==y&&St==h;var Ct=-1,nn=!0,xn=R&v?new uf:n;for(ce.set(h,y),ce.set(y,h);++Ct1?"& ":"")+y[Y],y=y.join(R>2?", ":" "),h.replace(He,`{ /* [wrapped with `+y+`] */ -`)}function Wge(h){return Kn(h)||bm(h)||!!(j1&&h&&h[j1])}function ff(h,y){var A=typeof h;return y=y??G,!!y&&(A=="number"||A!="symbol"&&Zn.test(h))&&h>-1&&h%1==0&&h0){if(++y>=H)return arguments[0]}else y=0;return h.apply(n,arguments)}}function Dw(h,y){var A=-1,Y=h.length,ne=Y-1;for(y=y===n?Y:y;++A1?h[y-1]:n;return A=typeof A=="function"?(h.pop(),A):n,uV(h,A)});function cV(h){var y=T(h);return y.__chain__=!0,y}function nbe(h,y){return y(h),h}function Nw(h,y){return y(h)}var rbe=df(function(h){var y=h.length,A=y?h[0]:0,Y=this.__wrapped__,ne=function(le){return UI(le,h)};return y>1||this.__actions__.length||!(Y instanceof D)||!ff(A)?this.thru(ne):(Y=Y.slice(A,+A+(y?1:0)),Y.__actions__.push({func:Nw,args:[ne],thisArg:n}),new k(Y,this.__chain__).thru(function(le){return y&&!le.length&&le.push(n),le}))});function ibe(){return cV(this)}function obe(){return new k(this.value(),this.__chain__)}function sbe(){this.__values__===n&&(this.__values__=wV(this.value()));var h=this.__index__>=this.__values__.length,y=h?n:this.__values__[this.__index__++];return{done:h,value:y}}function abe(){return this}function lbe(h){for(var y,A=this;A instanceof b;){var Y=rV(A);Y.__index__=0,Y.__values__=n,y?ne.__wrapped__=Y:y=Y;var ne=Y;A=A.__wrapped__}return ne.__wrapped__=h,y}function ube(){var h=this.__wrapped__;if(h instanceof D){var y=h;return this.__actions__.length&&(y=new D(this)),y=y.reverse(),y.__actions__.push({func:Nw,args:[hD],thisArg:n}),new k(y,this.__chain__)}return this.thru(hD)}function cbe(){return kz(this.__wrapped__,this.__actions__)}var dbe=xw(function(h,y,A){Hr.call(h,A)?++h[A]:uf(h,A,1)});function fbe(h,y,A){var Y=Kn(h)?Xg:nge;return A&&wa(h,y,A)&&(y=n),Y(h,Bn(y,3))}function pbe(h,y){var A=Kn(h)?Ua:uz;return A(h,Bn(y,3))}var hbe=$z(iV),mbe=$z(oV);function gbe(h,y){return xs(Pw(h,y),1)}function bbe(h,y){return xs(Pw(h,y),Z)}function ybe(h,y,A){return A=A===n?1:sr(A),xs(Pw(h,y),A)}function dV(h,y){var A=Kn(h)?Qi:wp;return A(h,Bn(y,3))}function fV(h,y){var A=Kn(h)?iu:lz;return A(h,Bn(y,3))}var vbe=xw(function(h,y,A){Hr.call(h,A)?h[A].push(y):uf(h,A,[y])});function Obe(h,y,A,Y){h=za(h)?h:b0(h),A=A&&!Y?sr(A):0;var ne=h.length;return A<0&&(A=ii(ne+A,0)),Bw(h)?A<=ne&&h.indexOf(y,A)>-1:!!ne&&bl(h,y,A)>-1}var Ebe=pr(function(h,y,A){var Y=-1,ne=typeof y=="function",le=za(h)?at(h.length):[];return wp(h,function(Ee){le[++Y]=ne?Hn(y,Ee,A):Y1(Ee,y,A)}),le}),Sbe=xw(function(h,y,A){uf(h,A,y)});function Pw(h,y){var A=Kn(h)?hi:mz;return A(h,Bn(y,3))}function Tbe(h,y,A,Y){return h==null?[]:(Kn(y)||(y=y==null?[]:[y]),A=Y?n:A,Kn(A)||(A=A==null?[]:[A]),vz(h,y,A))}var wbe=xw(function(h,y,A){h[A?0:1].push(y)},function(){return[[],[]]});function xbe(h,y,A){var Y=Kn(h)?D1:P1,ne=arguments.length<3;return Y(h,Bn(y,4),A,ne,wp)}function kbe(h,y,A){var Y=Kn(h)?gl:P1,ne=arguments.length<3;return Y(h,Bn(y,4),A,ne,lz)}function Cbe(h,y){var A=Kn(h)?Ua:uz;return A(h,$w(Bn(y,3)))}function _be(h){var y=Kn(h)?iz:Oge;return y(h)}function Abe(h,y,A){(A?wa(h,y,A):y===n)?y=1:y=sr(y);var Y=Kn(h)?Xme:Ege;return Y(h,y)}function Rbe(h){var y=Kn(h)?Kme:Tge;return y(h)}function Ibe(h){if(h==null)return 0;if(za(h))return Bw(h)?Yc(h):h.length;var y=Js(h);return y==qe||y==ie?h.size:QI(h).length}function Dbe(h,y,A){var Y=Kn(h)?ou:wge;return A&&wa(h,y,A)&&(y=n),Y(h,Bn(y,3))}var Nbe=pr(function(h,y){if(h==null)return[];var A=y.length;return A>1&&wa(h,y[0],y[1])?y=[]:A>2&&wa(y[0],y[1],y[2])&&(y=[y[0]]),vz(h,xs(y,1),[])}),Lw=Mi||function(){return R.Date.now()};function Pbe(h,y){if(typeof y!="function")throw new Oa(s);return h=sr(h),function(){if(--h<1)return y.apply(this,arguments)}}function pV(h,y,A){return y=A?n:y,y=h&&y==null?h.length:y,cf(h,w,n,n,n,n,y)}function hV(h,y){var A;if(typeof y!="function")throw new Oa(s);return h=sr(h),function(){return--h>0&&(A=y.apply(this,arguments)),h<=1&&(y=n),A}}var gD=pr(function(h,y,A){var Y=E;if(A.length){var ne=Ku(A,m0(gD));Y|=I}return cf(h,Y,y,A,ne)}),mV=pr(function(h,y,A){var Y=E|O;if(A.length){var ne=Ku(A,m0(mV));Y|=I}return cf(y,Y,h,A,ne)});function gV(h,y,A){y=A?n:y;var Y=cf(h,x,n,n,n,n,n,y);return Y.placeholder=gV.placeholder,Y}function bV(h,y,A){y=A?n:y;var Y=cf(h,C,n,n,n,n,n,y);return Y.placeholder=bV.placeholder,Y}function yV(h,y,A){var Y,ne,le,Ee,_e,Qe,Et=0,St=!1,Ct=!1,nn=!0;if(typeof h!="function")throw new Oa(s);y=cu(y)||0,Gi(A)&&(St=!!A.leading,Ct="maxWait"in A,le=Ct?ii(cu(A.maxWait)||0,y):le,nn="trailing"in A?!!A.trailing:nn);function xn(yo){var nc=Y,mf=ne;return Y=ne=n,Et=yo,Ee=h.apply(mf,nc),Ee}function jn(yo){return Et=yo,_e=K1(yr,y),St?xn(yo):Ee}function cr(yo){var nc=yo-Qe,mf=yo-Et,$V=y-nc;return Ct?$i($V,le-mf):$V}function zn(yo){var nc=yo-Qe,mf=yo-Et;return Qe===n||nc>=y||nc<0||Ct&&mf>=le}function yr(){var yo=Lw();if(zn(yo))return kr(yo);_e=K1(yr,cr(yo))}function kr(yo){return _e=n,nn&&Y?xn(yo):(Y=ne=n,Ee)}function El(){_e!==n&&_z(_e),Et=0,Y=Qe=ne=_e=n}function xa(){return _e===n?Ee:kr(Lw())}function Sl(){var yo=Lw(),nc=zn(yo);if(Y=arguments,ne=this,Qe=yo,nc){if(_e===n)return jn(Qe);if(Ct)return _z(_e),_e=K1(yr,y),xn(Qe)}return _e===n&&(_e=K1(yr,y)),Ee}return Sl.cancel=El,Sl.flush=xa,Sl}var Lbe=pr(function(h,y){return az(h,1,y)}),Mbe=pr(function(h,y,A){return az(h,cu(y)||0,A)});function $be(h){return cf(h,M)}function Mw(h,y){if(typeof h!="function"||y!=null&&typeof y!="function")throw new Oa(s);var A=function(){var Y=arguments,ne=y?y.apply(this,Y):Y[0],le=A.cache;if(le.has(ne))return le.get(ne);var Ee=h.apply(this,Y);return A.cache=le.set(ne,Ee)||le,Ee};return A.cache=new(Mw.Cache||Lr),A}Mw.Cache=Lr;function $w(h){if(typeof h!="function")throw new Oa(s);return function(){var y=arguments;switch(y.length){case 0:return!h.call(this);case 1:return!h.call(this,y[0]);case 2:return!h.call(this,y[0],y[1]);case 3:return!h.call(this,y[0],y[1],y[2])}return!h.apply(this,y)}}function Fbe(h){return hV(2,h)}var Bbe=xge(function(h,y){y=y.length==1&&Kn(y[0])?hi(y[0],Fo(Bn())):hi(xs(y,1),Fo(Bn()));var A=y.length;return pr(function(Y){for(var ne=-1,le=$i(Y.length,A);++ne=y}),bm=fz(function(){return arguments}())?fz:function(h){return io(h)&&Hr.call(h,"callee")&&!tf.call(h,"callee")},Kn=at.isArray,eye=kt?Fo(kt):lge;function za(h){return h!=null&&Fw(h.length)&&!pf(h)}function bo(h){return io(h)&&za(h)}function tye(h){return h===!0||h===!1||io(h)&&Ta(h)==Fe}var _p=pw||_D,nye=lt?Fo(lt):uge;function rye(h){return io(h)&&h.nodeType===1&&!J1(h)}function iye(h){if(h==null)return!0;if(za(h)&&(Kn(h)||typeof h=="string"||typeof h.splice=="function"||_p(h)||g0(h)||bm(h)))return!h.length;var y=Js(h);if(y==qe||y==ie)return!h.size;if(X1(h))return!QI(h).length;for(var A in h)if(Hr.call(h,A))return!1;return!0}function oye(h,y){return G1(h,y)}function sye(h,y,A){A=typeof A=="function"?A:n;var Y=A?A(h,y):n;return Y===n?G1(h,y,n,A):!!Y}function yD(h){if(!io(h))return!1;var y=Ta(h);return y==Ye||y==ct||typeof h.message=="string"&&typeof h.name=="string"&&!J1(h)}function aye(h){return typeof h=="number"&&V1(h)}function pf(h){if(!Gi(h))return!1;var y=Ta(h);return y==nt||y==ke||y==Re||y==de}function OV(h){return typeof h=="number"&&h==sr(h)}function Fw(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=G}function Gi(h){var y=typeof h;return h!=null&&(y=="object"||y=="function")}function io(h){return h!=null&&typeof h=="object"}var EV=It?Fo(It):dge;function lye(h,y){return h===y||WI(h,y,lD(y))}function uye(h,y,A){return A=typeof A=="function"?A:n,WI(h,y,lD(y),A)}function cye(h){return SV(h)&&h!=+h}function dye(h){if(Gge(h))throw new Yn(o);return pz(h)}function fye(h){return h===null}function pye(h){return h==null}function SV(h){return typeof h=="number"||io(h)&&Ta(h)==Ge}function J1(h){if(!io(h)||Ta(h)!=Ot)return!1;var y=Ea(h);if(y===null)return!0;var A=Hr.call(y,"constructor")&&y.constructor;return typeof A=="function"&&A instanceof A&&vp.call(A)==NI}var vD=Ht?Fo(Ht):fge;function hye(h){return OV(h)&&h>=-G&&h<=G}var TV=Fn?Fo(Fn):pge;function Bw(h){return typeof h=="string"||!Kn(h)&&io(h)&&Ta(h)==Me}function Ol(h){return typeof h=="symbol"||io(h)&&Ta(h)==He}var g0=Jr?Fo(Jr):hge;function mye(h){return h===n}function gye(h){return io(h)&&Js(h)==ce}function bye(h){return io(h)&&Ta(h)==ye}var yye=Aw(YI),vye=Aw(function(h,y){return h<=y});function wV(h){if(!h)return[];if(za(h))return Bw(h)?yl(h):ja(h);if(Ju&&h[Ju])return AI(h[Ju]());var y=Js(h),A=y==qe?$1:y==ie?gp:b0;return A(h)}function hf(h){if(!h)return h===0?h:0;if(h=cu(h),h===Z||h===-Z){var y=h<0?-1:1;return y*ee}return h===h?h:0}function sr(h){var y=hf(h),A=y%1;return y===y?A?y-A:y:0}function xV(h){return h?pm(sr(h),0,ae):0}function cu(h){if(typeof h=="number")return h;if(Ol(h))return Q;if(Gi(h)){var y=typeof h.valueOf=="function"?h.valueOf():h;h=Gi(y)?y+"":y}if(typeof h!="string")return h===0?h:+h;h=am(h);var A=en.test(h);return A||er.test(h)?Zs(h.slice(2),A?2:8):Rt.test(h)?Q:+h}function kV(h){return Xc(h,Va(h))}function Oye(h){return h?pm(sr(h),-G,G):h===0?h:0}function qr(h){return h==null?"":vl(h)}var Eye=p0(function(h,y){if(X1(y)||za(y)){Xc(y,as(y),h);return}for(var A in y)Hr.call(y,A)&&W1(h,A,y[A])}),CV=p0(function(h,y){Xc(y,Va(y),h)}),Uw=p0(function(h,y,A,Y){Xc(y,Va(y),h,Y)}),Sye=p0(function(h,y,A,Y){Xc(y,as(y),h,Y)}),Tye=df(UI);function wye(h,y){var A=f(h);return y==null?A:oz(A,y)}var xye=pr(function(h,y){h=ei(h);var A=-1,Y=y.length,ne=Y>2?y[2]:n;for(ne&&wa(y[0],y[1],ne)&&(Y=1);++A1),le}),Xc(h,sD(h),A),Y&&(A=au(A,d|p|m,Mge));for(var ne=y.length;ne--;)KI(A,y[ne]);return A});function Vye(h,y){return AV(h,$w(Bn(y)))}var Hye=df(function(h,y){return h==null?{}:bge(h,y)});function AV(h,y){if(h==null)return{};var A=hi(sD(h),function(Y){return[Y]});return y=Bn(y),Oz(h,A,function(Y,ne){return y(Y,ne[0])})}function Wye(h,y,A){y=kp(y,h);var Y=-1,ne=y.length;for(ne||(ne=1,h=n);++Yy){var Y=h;h=y,y=Y}if(A||h%1||y%1){var ne=gw();return $i(h+ne*(y-h+va("1e-"+((ne+"").length-1))),y)}return qI(h,y)}var n1e=h0(function(h,y,A){return y=y.toLowerCase(),h+(A?DV(y):y)});function DV(h){return SD(qr(h).toLowerCase())}function NV(h){return h=qr(h),h&&h.replace(bn,kI).replace(Gs,"")}function r1e(h,y,A){h=qr(h),y=vl(y);var Y=h.length;A=A===n?Y:pm(sr(A),0,Y);var ne=A;return A-=y.length,A>=0&&h.slice(A,ne)==y}function i1e(h){return h=qr(h),h&&$e.test(h)?h.replace(qn,CI):h}function o1e(h){return h=qr(h),h&&On.test(h)?h.replace(Bt,"\\$&"):h}var s1e=h0(function(h,y,A){return h+(A?"-":"")+y.toLowerCase()}),a1e=h0(function(h,y,A){return h+(A?" ":"")+y.toLowerCase()}),l1e=Mz("toLowerCase");function u1e(h,y,A){h=qr(h),y=sr(y);var Y=y?Yc(h):0;if(!y||Y>=y)return h;var ne=(y-Y)/2;return _w(Op(ne),A)+h+_w(rf(ne),A)}function c1e(h,y,A){h=qr(h),y=sr(y);var Y=y?Yc(h):0;return y&&Y>>0,A?(h=qr(h),h&&(typeof y=="string"||y!=null&&!vD(y))&&(y=vl(y),!y&&mp(h))?Cp(yl(h),0,A):h.split(y,A)):[]}var b1e=h0(function(h,y,A){return h+(A?" ":"")+SD(y)});function y1e(h,y,A){return h=qr(h),A=A==null?0:pm(sr(A),0,h.length),y=vl(y),h.slice(A,A+y.length)==y}function v1e(h,y,A){var Y=T.templateSettings;A&&wa(h,y,A)&&(y=n),h=qr(h),y=Uw({},y,Y,Vz);var ne=Uw({},y.imports,Y.imports,Vz),le=as(ne),Ee=M1(ne,le),_e,Qe,Et=0,St=y.interpolate||_n,Ct="__p += '",nn=B1((y.escape||_n).source+"|"+St.source+"|"+(St===wt?Xe:_n).source+"|"+(y.evaluate||_n).source+"|$","g"),xn="//# sourceURL="+(Hr.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hl+"]")+` -`;h.replace(nn,function(zn,yr,kr,El,xa,Sl){return kr||(kr=El),Ct+=h.slice(Et,Sl).replace(Tr,_I),yr&&(_e=!0,Ct+=`' + +`)}function Vge(h){return Kn(h)||bm(h)||!!(Uv&&h&&h[Uv])}function pf(h,y){var R=typeof h;return y=y??q,!!y&&(R=="number"||R!="symbol"&&Zn.test(h))&&h>-1&&h%1==0&&h0){if(++y>=W)return arguments[0]}else y=0;return h.apply(n,arguments)}}function Iw(h,y){var R=-1,Y=h.length,ne=Y-1;for(y=y===n?Y:y;++R1?h[y-1]:n;return R=typeof R=="function"?(h.pop(),R):n,aV(h,R)});function sV(h){var y=T(h);return y.__chain__=!0,y}function e0e(h,y){return y(h),h}function Dw(h,y){return y(h)}var t0e=ff(function(h){var y=h.length,R=y?h[0]:0,Y=this.__wrapped__,ne=function(ce){return F2(ce,h)};return y>1||this.__actions__.length||!(Y instanceof D)||!pf(R)?this.thru(ne):(Y=Y.slice(R,+R+(y?1:0)),Y.__actions__.push({func:Dw,args:[ne],thisArg:n}),new _(Y,this.__chain__).thru(function(ce){return y&&!ce.length&&ce.push(n),ce}))});function n0e(){return sV(this)}function r0e(){return new _(this.value(),this.__chain__)}function i0e(){this.__values__===n&&(this.__values__=EV(this.value()));var h=this.__index__>=this.__values__.length,y=h?n:this.__values__[this.__index__++];return{done:h,value:y}}function o0e(){return this}function a0e(h){for(var y,R=this;R instanceof b;){var Y=eV(R);Y.__index__=0,Y.__values__=n,y?ne.__wrapped__=Y:y=Y;var ne=Y;R=R.__wrapped__}return ne.__wrapped__=h,y}function s0e(){var h=this.__wrapped__;if(h instanceof D){var y=h;return this.__actions__.length&&(y=new D(this)),y=y.reverse(),y.__actions__.push({func:Dw,args:[fD],thisArg:n}),new _(y,this.__chain__)}return this.thru(fD)}function l0e(){return Tz(this.__wrapped__,this.__actions__)}var u0e=ww(function(h,y,R){Wr.call(h,R)?++h[R]:cf(h,R,1)});function c0e(h,y,R){var Y=Kn(h)?Xg:ege;return R&&ws(h,y,R)&&(y=n),Y(h,Bn(y,3))}function d0e(h,y){var R=Kn(h)?Us:az;return R(h,Bn(y,3))}var f0e=Pz(tV),p0e=Pz(nV);function h0e(h,y){return xa(Nw(h,y),1)}function m0e(h,y){return xa(Nw(h,y),Z)}function g0e(h,y,R){return R=R===n?1:ar(R),xa(Nw(h,y),R)}function lV(h,y){var R=Kn(h)?Hi:wp;return R(h,Bn(y,3))}function uV(h,y){var R=Kn(h)?iu:oz;return R(h,Bn(y,3))}var b0e=ww(function(h,y,R){Wr.call(h,R)?h[R].push(y):cf(h,R,[y])});function y0e(h,y,R,Y){h=zs(h)?h:bb(h),R=R&&!Y?ar(R):0;var ne=h.length;return R<0&&(R=ii(ne+R,0)),Fw(h)?R<=ne&&h.indexOf(y,R)>-1:!!ne&&bl(h,y,R)>-1}var v0e=pr(function(h,y,R){var Y=-1,ne=typeof y=="function",ce=zs(h)?lt(h.length):[];return wp(h,function(Se){ce[++Y]=ne?Wn(y,Se,R):Qv(Se,y,R)}),ce}),O0e=ww(function(h,y,R){cf(h,R,y)});function Nw(h,y){var R=Kn(h)?hi:fz;return R(h,Bn(y,3))}function E0e(h,y,R,Y){return h==null?[]:(Kn(y)||(y=y==null?[]:[y]),R=Y?n:R,Kn(R)||(R=R==null?[]:[R]),gz(h,y,R))}var S0e=ww(function(h,y,R){h[R?0:1].push(y)},function(){return[[],[]]});function T0e(h,y,R){var Y=Kn(h)?Iv:Nv,ne=arguments.length<3;return Y(h,Bn(y,4),R,ne,wp)}function w0e(h,y,R){var Y=Kn(h)?gl:Nv,ne=arguments.length<3;return Y(h,Bn(y,4),R,ne,oz)}function x0e(h,y){var R=Kn(h)?Us:az;return R(h,Mw(Bn(y,3)))}function k0e(h){var y=Kn(h)?tz:yge;return y(h)}function C0e(h,y,R){(R?ws(h,y,R):y===n)?y=1:y=ar(y);var Y=Kn(h)?qme:vge;return Y(h,y)}function _0e(h){var y=Kn(h)?Zme:Ege;return y(h)}function A0e(h){if(h==null)return 0;if(zs(h))return Fw(h)?Yc(h):h.length;var y=Ja(h);return y==Ze||y==ie?h.size:W2(h).length}function R0e(h,y,R){var Y=Kn(h)?ou:Sge;return R&&ws(h,y,R)&&(y=n),Y(h,Bn(y,3))}var I0e=pr(function(h,y){if(h==null)return[];var R=y.length;return R>1&&ws(h,y[0],y[1])?y=[]:R>2&&ws(y[0],y[1],y[2])&&(y=[y[0]]),gz(h,xa(y,1),[])}),Pw=Mi||function(){return I.Date.now()};function D0e(h,y){if(typeof y!="function")throw new Os(a);return h=ar(h),function(){if(--h<1)return y.apply(this,arguments)}}function cV(h,y,R){return y=R?n:y,y=h&&y==null?h.length:y,df(h,x,n,n,n,n,y)}function dV(h,y){var R;if(typeof y!="function")throw new Os(a);return h=ar(h),function(){return--h>0&&(R=y.apply(this,arguments)),h<=1&&(y=n),R}}var hD=pr(function(h,y,R){var Y=S;if(R.length){var ne=Ku(R,mb(hD));Y|=A}return df(h,Y,y,R,ne)}),fV=pr(function(h,y,R){var Y=S|O;if(R.length){var ne=Ku(R,mb(fV));Y|=A}return df(y,Y,h,R,ne)});function pV(h,y,R){y=R?n:y;var Y=df(h,w,n,n,n,n,n,y);return Y.placeholder=pV.placeholder,Y}function hV(h,y,R){y=R?n:y;var Y=df(h,k,n,n,n,n,n,y);return Y.placeholder=hV.placeholder,Y}function mV(h,y,R){var Y,ne,ce,Se,Re,Ge,Et=0,St=!1,Ct=!1,nn=!0;if(typeof h!="function")throw new Os(a);y=cu(y)||0,Yi(R)&&(St=!!R.leading,Ct="maxWait"in R,ce=Ct?ii(cu(R.maxWait)||0,y):ce,nn="trailing"in R?!!R.trailing:nn);function xn(yo){var nc=Y,gf=ne;return Y=ne=n,Et=yo,Se=h.apply(gf,nc),Se}function jn(yo){return Et=yo,Re=Xv(yr,y),St?xn(yo):Se}function cr(yo){var nc=yo-Ge,gf=yo-Et,PV=y-nc;return Ct?$i(PV,ce-gf):PV}function zn(yo){var nc=yo-Ge,gf=yo-Et;return Ge===n||nc>=y||nc<0||Ct&&gf>=ce}function yr(){var yo=Pw();if(zn(yo))return kr(yo);Re=Xv(yr,cr(yo))}function kr(yo){return Re=n,nn&&Y?xn(yo):(Y=ne=n,Se)}function El(){Re!==n&&xz(Re),Et=0,Y=Ge=ne=Re=n}function xs(){return Re===n?Se:kr(Pw())}function Sl(){var yo=Pw(),nc=zn(yo);if(Y=arguments,ne=this,Ge=yo,nc){if(Re===n)return jn(Ge);if(Ct)return xz(Re),Re=Xv(yr,y),xn(Ge)}return Re===n&&(Re=Xv(yr,y)),Se}return Sl.cancel=El,Sl.flush=xs,Sl}var N0e=pr(function(h,y){return iz(h,1,y)}),P0e=pr(function(h,y,R){return iz(h,cu(y)||0,R)});function L0e(h){return df(h,M)}function Lw(h,y){if(typeof h!="function"||y!=null&&typeof y!="function")throw new Os(a);var R=function(){var Y=arguments,ne=y?y.apply(this,Y):Y[0],ce=R.cache;if(ce.has(ne))return ce.get(ne);var Se=h.apply(this,Y);return R.cache=ce.set(ne,Se)||ce,Se};return R.cache=new(Lw.Cache||Lr),R}Lw.Cache=Lr;function Mw(h){if(typeof h!="function")throw new Os(a);return function(){var y=arguments;switch(y.length){case 0:return!h.call(this);case 1:return!h.call(this,y[0]);case 2:return!h.call(this,y[0],y[1]);case 3:return!h.call(this,y[0],y[1],y[2])}return!h.apply(this,y)}}function M0e(h){return dV(2,h)}var $0e=Tge(function(h,y){y=y.length==1&&Kn(y[0])?hi(y[0],Fo(Bn())):hi(xa(y,1),Fo(Bn()));var R=y.length;return pr(function(Y){for(var ne=-1,ce=$i(Y.length,R);++ne=y}),bm=uz(function(){return arguments}())?uz:function(h){return io(h)&&Wr.call(h,"callee")&&!nf.call(h,"callee")},Kn=lt.isArray,K0e=kt?Fo(kt):age;function zs(h){return h!=null&&$w(h.length)&&!hf(h)}function bo(h){return io(h)&&zs(h)}function J0e(h){return h===!0||h===!1||io(h)&&Ts(h)==ke}var _p=fw||kD,eye=ut?Fo(ut):sge;function tye(h){return io(h)&&h.nodeType===1&&!Kv(h)}function nye(h){if(h==null)return!0;if(zs(h)&&(Kn(h)||typeof h=="string"||typeof h.splice=="function"||_p(h)||gb(h)||bm(h)))return!h.length;var y=Ja(h);if(y==Ze||y==ie)return!h.size;if(Zv(h))return!W2(h).length;for(var R in h)if(Wr.call(h,R))return!1;return!0}function rye(h,y){return Yv(h,y)}function iye(h,y,R){R=typeof R=="function"?R:n;var Y=R?R(h,y):n;return Y===n?Yv(h,y,n,R):!!Y}function gD(h){if(!io(h))return!1;var y=Ts(h);return y==Me||y==et||typeof h.message=="string"&&typeof h.name=="string"&&!Kv(h)}function oye(h){return typeof h=="number"&&zv(h)}function hf(h){if(!Yi(h))return!1;var y=Ts(h);return y==qe||y==xe||y==we||y==pe}function bV(h){return typeof h=="number"&&h==ar(h)}function $w(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=q}function Yi(h){var y=typeof h;return h!=null&&(y=="object"||y=="function")}function io(h){return h!=null&&typeof h=="object"}var yV=It?Fo(It):uge;function aye(h,y){return h===y||V2(h,y,aD(y))}function sye(h,y,R){return R=typeof R=="function"?R:n,V2(h,y,aD(y),R)}function lye(h){return vV(h)&&h!=+h}function uye(h){if(Qge(h))throw new Yn(o);return cz(h)}function cye(h){return h===null}function dye(h){return h==null}function vV(h){return typeof h=="number"||io(h)&&Ts(h)==Xe}function Kv(h){if(!io(h)||Ts(h)!=Ot)return!1;var y=Es(h);if(y===null)return!0;var R=Wr.call(y,"constructor")&&y.constructor;return typeof R=="function"&&R instanceof R&&vp.call(R)==I2}var bD=Wt?Fo(Wt):cge;function fye(h){return bV(h)&&h>=-q&&h<=q}var OV=Fn?Fo(Fn):dge;function Fw(h){return typeof h=="string"||!Kn(h)&&io(h)&&Ts(h)==Fe}function Ol(h){return typeof h=="symbol"||io(h)&&Ts(h)==Qe}var gb=Jr?Fo(Jr):fge;function pye(h){return h===n}function hye(h){return io(h)&&Ja(h)==fe}function mye(h){return io(h)&&Ts(h)==Oe}var gye=_w(H2),bye=_w(function(h,y){return h<=y});function EV(h){if(!h)return[];if(zs(h))return Fw(h)?yl(h):js(h);if(Ju&&h[Ju])return C2(h[Ju]());var y=Ja(h),R=y==Ze?Mv:y==ie?gp:bb;return R(h)}function mf(h){if(!h)return h===0?h:0;if(h=cu(h),h===Z||h===-Z){var y=h<0?-1:1;return y*te}return h===h?h:0}function ar(h){var y=mf(h),R=y%1;return y===y?R?y-R:y:0}function SV(h){return h?pm(ar(h),0,se):0}function cu(h){if(typeof h=="number")return h;if(Ol(h))return Q;if(Yi(h)){var y=typeof h.valueOf=="function"?h.valueOf():h;h=Yi(y)?y+"":y}if(typeof h!="string")return h===0?h:+h;h=sm(h);var R=en.test(h);return R||er.test(h)?Za(h.slice(2),R?2:8):Rt.test(h)?Q:+h}function TV(h){return Xc(h,Vs(h))}function yye(h){return h?pm(ar(h),-q,q):h===0?h:0}function qr(h){return h==null?"":vl(h)}var vye=pb(function(h,y){if(Zv(y)||zs(y)){Xc(y,sa(y),h);return}for(var R in y)Wr.call(y,R)&&Wv(h,R,y[R])}),wV=pb(function(h,y){Xc(y,Vs(y),h)}),Bw=pb(function(h,y,R,Y){Xc(y,Vs(y),h,Y)}),Oye=pb(function(h,y,R,Y){Xc(y,sa(y),h,Y)}),Eye=ff(F2);function Sye(h,y){var R=p(h);return y==null?R:nz(R,y)}var Tye=pr(function(h,y){h=ei(h);var R=-1,Y=y.length,ne=Y>2?y[2]:n;for(ne&&ws(y[0],y[1],ne)&&(Y=1);++R1),ce}),Xc(h,iD(h),R),Y&&(R=su(R,d|f|m,Pge));for(var ne=y.length;ne--;)Z2(R,y[ne]);return R});function jye(h,y){return kV(h,Mw(Bn(y)))}var zye=ff(function(h,y){return h==null?{}:mge(h,y)});function kV(h,y){if(h==null)return{};var R=hi(iD(h),function(Y){return[Y]});return y=Bn(y),bz(h,R,function(Y,ne){return y(Y,ne[0])})}function Vye(h,y,R){y=kp(y,h);var Y=-1,ne=y.length;for(ne||(ne=1,h=n);++Yy){var Y=h;h=y,y=Y}if(R||h%1||y%1){var ne=mw();return $i(h+ne*(y-h+vs("1e-"+((ne+"").length-1))),y)}return Y2(h,y)}var eve=hb(function(h,y,R){return y=y.toLowerCase(),h+(R?AV(y):y)});function AV(h){return OD(qr(h).toLowerCase())}function RV(h){return h=qr(h),h&&h.replace(bn,w2).replace(Ga,"")}function tve(h,y,R){h=qr(h),y=vl(y);var Y=h.length;R=R===n?Y:pm(ar(R),0,Y);var ne=R;return R-=y.length,R>=0&&h.slice(R,ne)==y}function nve(h){return h=qr(h),h&&Be.test(h)?h.replace(qn,x2):h}function rve(h){return h=qr(h),h&&On.test(h)?h.replace(Bt,"\\$&"):h}var ive=hb(function(h,y,R){return h+(R?"-":"")+y.toLowerCase()}),ove=hb(function(h,y,R){return h+(R?" ":"")+y.toLowerCase()}),ave=Nz("toLowerCase");function sve(h,y,R){h=qr(h),y=ar(y);var Y=y?Yc(h):0;if(!y||Y>=y)return h;var ne=(y-Y)/2;return Cw(Op(ne),R)+h+Cw(of(ne),R)}function lve(h,y,R){h=qr(h),y=ar(y);var Y=y?Yc(h):0;return y&&Y>>0,R?(h=qr(h),h&&(typeof y=="string"||y!=null&&!bD(y))&&(y=vl(y),!y&&mp(h))?Cp(yl(h),0,R):h.split(y,R)):[]}var mve=hb(function(h,y,R){return h+(R?" ":"")+OD(y)});function gve(h,y,R){return h=qr(h),R=R==null?0:pm(ar(R),0,h.length),y=vl(y),h.slice(R,R+y.length)==y}function bve(h,y,R){var Y=T.templateSettings;R&&ws(h,y,R)&&(y=n),h=qr(h),y=Bw({},y,Y,Uz);var ne=Bw({},y.imports,Y.imports,Uz),ce=sa(ne),Se=Lv(ne,ce),Re,Ge,Et=0,St=y.interpolate||_n,Ct="__p += '",nn=Fv((y.escape||_n).source+"|"+St.source+"|"+(St===wt?Je:_n).source+"|"+(y.evaluate||_n).source+"|$","g"),xn="//# sourceURL="+(Wr.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hl+"]")+` +`;h.replace(nn,function(zn,yr,kr,El,xs,Sl){return kr||(kr=El),Ct+=h.slice(Et,Sl).replace(Tr,k2),yr&&(Re=!0,Ct+=`' + __e(`+yr+`) + -'`),xa&&(Qe=!0,Ct+=`'; -`+xa+`; +'`),xs&&(Ge=!0,Ct+=`'; +`+xs+`; __p += '`),kr&&(Ct+=`' + ((__t = (`+kr+`)) == null ? '' : __t) + '`),Et=Sl+zn.length,zn}),Ct+=`'; -`;var jn=Hr.call(y,"variable")&&y.variable;if(!jn)Ct=`with (obj) { +`;var jn=Wr.call(y,"variable")&&y.variable;if(!jn)Ct=`with (obj) { `+Ct+` } -`;else if(An.test(jn))throw new Yn(a);Ct=(Qe?Ct.replace(Xt,""):Ct).replace(vn,"$1").replace(Cn,"$1;"),Ct="function("+(jn||"obj")+`) { +`;else if(An.test(jn))throw new Yn(s);Ct=(Ge?Ct.replace(Xt,""):Ct).replace(vn,"$1").replace(Cn,"$1;"),Ct="function("+(jn||"obj")+`) { `+(jn?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(_e?", __e = _.escape":"")+(Qe?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(Re?", __e = _.escape":"")+(Ge?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Ct+`return __p -}`;var cr=LV(function(){return Nr(le,xn+"return "+Ct).apply(n,Ee)});if(cr.source=Ct,yD(cr))throw cr;return cr}function O1e(h){return qr(h).toLowerCase()}function E1e(h){return qr(h).toUpperCase()}function S1e(h,y,A){if(h=qr(h),h&&(A||y===n))return am(h);if(!h||!(y=vl(y)))return h;var Y=yl(h),ne=yl(y),le=nw(Y,ne),Ee=rw(Y,ne)+1;return Cp(Y,le,Ee).join("")}function T1e(h,y,A){if(h=qr(h),h&&(A||y===n))return h.slice(0,aw(h)+1);if(!h||!(y=vl(y)))return h;var Y=yl(h),ne=rw(Y,yl(y))+1;return Cp(Y,0,ne).join("")}function w1e(h,y,A){if(h=qr(h),h&&(A||y===n))return h.replace(je,"");if(!h||!(y=vl(y)))return h;var Y=yl(h),ne=nw(Y,yl(y));return Cp(Y,ne).join("")}function x1e(h,y){var A=L,Y=W;if(Gi(y)){var ne="separator"in y?y.separator:ne;A="length"in y?sr(y.length):A,Y="omission"in y?vl(y.omission):Y}h=qr(h);var le=h.length;if(mp(h)){var Ee=yl(h);le=Ee.length}if(A>=le)return h;var _e=A-Yc(Y);if(_e<1)return Y;var Qe=Ee?Cp(Ee,0,_e).join(""):h.slice(0,_e);if(ne===n)return Qe+Y;if(Ee&&(_e+=Qe.length-_e),vD(ne)){if(h.slice(_e).search(ne)){var Et,St=Qe;for(ne.global||(ne=B1(ne.source,qr(Le.exec(ne))+"g")),ne.lastIndex=0;Et=ne.exec(St);)var Ct=Et.index;Qe=Qe.slice(0,Ct===n?_e:Ct)}}else if(h.indexOf(vl(ne),_e)!=_e){var nn=Qe.lastIndexOf(ne);nn>-1&&(Qe=Qe.slice(0,nn))}return Qe+Y}function k1e(h){return h=qr(h),h&&Ce.test(h)?h.replace($n,lw):h}var C1e=h0(function(h,y,A){return h+(A?" ":"")+y.toUpperCase()}),SD=Mz("toUpperCase");function PV(h,y,A){return h=qr(h),y=A?n:y,y===n?ow(h)?e0(h):Yi(h):h.match(y)||[]}var LV=pr(function(h,y){try{return Hn(h,n,y)}catch(A){return yD(A)?A:new Yn(A)}}),_1e=df(function(h,y){return Qi(y,function(A){A=Kc(A),uf(h,A,gD(h[A],h))}),h});function A1e(h){var y=h==null?0:h.length,A=Bn();return h=y?hi(h,function(Y){if(typeof Y[1]!="function")throw new Oa(s);return[A(Y[0]),Y[1]]}):[],pr(function(Y){for(var ne=-1;++neG)return[];var A=ae,Y=$i(h,ae);y=Bn(y),h-=ae;for(var ne=L1(Y,y);++A0||y<0)?new D(A):(h<0?A=A.takeRight(-h):h&&(A=A.drop(h)),y!==n&&(y=sr(y),A=y<0?A.dropRight(-y):A.take(y-h)),A)},D.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},D.prototype.toArray=function(){return this.take(ae)},Zc(D.prototype,function(h,y){var A=/^(?:filter|find|map|reject)|While$/.test(y),Y=/^(?:head|last)$/.test(y),ne=T[Y?"take"+(y=="last"?"Right":""):y],le=Y||/^find/.test(y);ne&&(T.prototype[y]=function(){var Ee=this.__wrapped__,_e=Y?[1]:arguments,Qe=Ee instanceof D,Et=_e[0],St=Qe||Kn(Ee),Ct=function(yr){var kr=ne.apply(T,$o([yr],_e));return Y&&nn?kr[0]:kr};St&&A&&typeof Et=="function"&&Et.length!=1&&(Qe=St=!1);var nn=this.__chain__,xn=!!this.__actions__.length,jn=le&&!nn,cr=Qe&&!xn;if(!le&&St){Ee=cr?Ee:new D(this);var zn=h.apply(Ee,_e);return zn.__actions__.push({func:Nw,args:[Ct],thisArg:n}),new k(zn,nn)}return jn&&cr?h.apply(this,_e):(zn=this.thru(Ct),jn?Y?zn.value()[0]:zn.value():zn)})}),Qi(["pop","push","shift","sort","splice","unshift"],function(h){var y=t0[h],A=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",Y=/^(?:pop|shift)$/.test(h);T.prototype[h]=function(){var ne=arguments;if(Y&&!this.__chain__){var le=this.value();return y.apply(Kn(le)?le:[],ne)}return this[A](function(Ee){return y.apply(Kn(Ee)?Ee:[],ne)})}}),Zc(D.prototype,function(h,y){var A=T[y];if(A){var Y=A.name+"";Hr.call(Ks,Y)||(Ks[Y]=[]),Ks[Y].push({name:y,func:A})}}),Ks[kw(n,O).name]=[{name:"wrapper",func:n}],D.prototype.clone=K,D.prototype.reverse=re,D.prototype.value=fe,T.prototype.at=rbe,T.prototype.chain=ibe,T.prototype.commit=obe,T.prototype.next=sbe,T.prototype.plant=lbe,T.prototype.reverse=ube,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=cbe,T.prototype.first=T.prototype.head,Ju&&(T.prototype[Ju]=abe),T},bp=uw();he?((he.exports=bp)._=bp,U._=bp):R._=bp}).call(Rf)})(X_,X_.exports);var KHe=X_.exports;const JHe=Rc(KHe),eWe=un.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"}}),tWe=Pc.define();class nWe extends Lc{constructor(n,r){super();ks(this,"color");ks(this,"name");this.color=n,this.name=r}toDOM(){return tC("span",[Qm("class","cm-ySelectionCaret"),Qm("style",`background-color: ${this.color}; border-color: ${this.color}`)],[Wx("⁠"),tC("div",[Qm("class","cm-ySelectionCaretDot")]),Wx("⁠"),tC("div",[Qm("class","cm-ySelectionInfo")],[Wx(this.name)]),Wx("⁠")])}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 rWe{constructor(t){ks(this,"conf");ks(this,"decorations");ks(this,"unsubscribe");this.conf=t.state.facet(n6),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[tWe.of([])]})}),this.decorations=Cr.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const a=r.content.indexRangeToPosRange([s.anchor,s.head]);JHe.isEqual(a,i.get("selection"))||i.set({selection:a})}else i.get("selection")&&i.set({selection:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),o=r.presence.color,s=r.presence.name,a=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(a),c=t.view.state.doc.lineAt(l);if(u.number===c.number)n.push({from:a,to:l,value:Tn.mark({attributes:{style:`background-color: ${o}`},class:"cm-ySelection"})});else{n.push({from:a,to:u.from+u.length,value:Tn.mark({attributes:{style:`background-color: ${o}`},class:"cm-ySelection"})}),n.push({from:c.from,to:l,value:Tn.mark({attributes:{style:`background-color: ${o}`},class:"cm-ySelection"})});for(let d=u.number+1;d0?-1:1,block:!1,widget:new nWe(o,s)})})}),this.decorations=Tn.set(n,!0)}}const iWe=Wi.fromClass(rWe,{decorations:e=>e.decorations});function oWe(e,t){const n=new jHe(e,t),r=[n6.of(n),VHe];return t&&r.push(eWe,iWe),r}function Qx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sWe=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},aWe=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},lWe=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?sWe(r):aWe(r))),t.appendChild(n),t};class uWe{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){Qx(this,"view",void 0),Qx(this,"element",void 0),Qx(this,"config",void 0),Qx(this,"handlers",void 0),this.view=t,this.handlers={},this.config={...n,items:n.items.map((i,o)=>{var a;if("type"in i)return{...i};const s=i.key||i.command.displayName||((a=i.command)==null?void 0:a.name)||`cmd_${o}`;return this.handlers[s]=i.command,{...i,key:s}})};const r=this.element=lWe(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const cWe=e=>Wi.define(t=>new uWe(t,e)),dWe=un.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}}),fWe=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:ht.range(n.from+2,n.to+2)}))),e.focus(),!0},pWe=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:ht.range(n.from+1,n.to+1)}))),e.focus(),!0},hWe=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:ht.range(n.from+2,n.to+2)}))),e.focus(),!0},mWe=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:ht.range(n.from+3,n.to+3)}))),e.focus(),!0},gWe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(e.state.changeByRange(r=>{const i=n.lineAt(r.from),s=n.slice(r.from,r.to).lines,a=[];let l=r.from,u=r.to-r.from;return new Array(s).fill(0).forEach((c,d)=>{const p=n.line(i.number+d);p.text.startsWith("> ")||(a.push({from:p.from,insert:"> "}),d===0?l=l+2:u+=2)}),{changes:a,range:ht.range(l,l+u)}})),e.focus(),!0},bWe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,s=n.sliceString(i,o),a=`[${s}]()`,l=i+(s.length?3+s.length:1);return{changes:[{from:i,to:o,insert:a}],range:ht.range(l,l)}})),e.focus(),!0},yWe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,s=n.sliceString(i,o),a=`![${s}]()`,l=i+(s.length?3+s.length:2);return{changes:[{from:i,to:o,insert:a}],range:ht.range(l,l)}})),e.focus(),!0},d1=e=>t=>{const n=t.state,r="#".repeat(e)+" ";return t.dispatch(n.changeByRange(i=>{const o=n.doc.lineAt(i.from),s=o.text.replace(/^((#+) )?/,r),a=s.length-o.length;return{changes:{from:o.from,to:o.to,insert:s},range:ht.range(i.anchor+a,i.head+a)}})),t.focus(),!0},vWe=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)]},r6=e=>t=>{const{state:n}=t,{doc:r}=n;let i=1;return t.dispatch(t.state.changeByRange(o=>{const s=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,m)=>{const g=r.line(s.number+m),v=vWe(g.text);if(v&&v[0]===e){v[0]==="ol"&&v[1]&&(i=v[1]);return}const E=g.text.replace(RegExp("^((? *)(-( \\[[x ]])?|\\d+\\.) )?"),(...S)=>{const x=S[S.length-1],{space:C=""}=x;let I="- ";return e==="ol"?(I=`${i}. `,i++):e==="todo"&&(I="- [ ] "),C+I}),O=E.length-g.length;u.push({from:g.from,to:g.to,insert:E}),m===0?c=c+O:d=d+O}),{changes:u,range:ht.range(c,c+d)}})),t.focus(),!0},OWe=d1(1),EWe=d1(2),SWe=d1(3),TWe=d1(4),wWe=d1(5),xWe=d1(6),kWe=r6("ul"),CWe=r6("ol"),_We=r6("todo"),AWe={label:"Bold",icon:'',command:fWe},RWe={label:"Italic",icon:'',command:pWe},IWe={label:"Strike",icon:'',command:hWe},DWe={label:"Underline",icon:'',command:mWe},NWe={label:"H1",icon:'',command:OWe},PWe={label:"H2",icon:'',command:EWe},LWe={label:"H3",icon:'',command:SWe},MWe={label:"H4",icon:'',command:TWe},$We={label:"H5",icon:'',command:wWe},FWe={label:"H6",icon:'',command:xWe},BWe={label:"Block Quote",icon:'',command:gWe},UWe={label:"Unordered List",icon:'',command:kWe},jWe={label:"Ordered List",icon:'',command:CWe},zWe={label:"Todo List",icon:'',command:_We},VWe={label:"Link",icon:'',command:bWe},HWe={label:"Image",icon:'',command:yWe},cP={type:"split"},WWe={type:"space"},QWe={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},YWe=[AWe,RWe,IWe,DWe,cP,NWe,PWe,LWe,MWe,$We,FWe,cP,BWe,UWe,jWe,zWe,cP,VWe,HWe,WWe,QWe],GWe=e=>[cWe(e),dWe];var tue=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 s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=un.theme(i,{dark:t==="dark"}),l=hT.define(r),u=[a,Nse(l)];return u},qWe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function ZWe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return tue({theme:t,settings:B({},qWe,n),styles:[{tag:[ve.comment,ve.quote],color:"#707F8D"},{tag:[ve.typeName,ve.typeOperator],color:"#aa0d91"},{tag:[ve.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[ve.string,ve.meta],color:"#D23423"},{tag:[ve.name],color:"#032f62"},{tag:[ve.typeName],color:"#522BB2"},{tag:[ve.variableName],color:"#23575C"},{tag:[ve.definition(ve.variableName)],color:"#327A9E"},{tag:[ve.regexp,ve.link],color:"#0e0eff"},...r]})}var XWe=ZWe(),KWe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},JWe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return tue({theme:t,settings:B({},KWe,n),styles:[{tag:[ve.comment,ve.quote],color:"#7F8C98"},{tag:[ve.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[ve.string,ve.meta],color:"#FF8170"},{tag:[ve.typeName],color:"#DABAFF"},{tag:[ve.definition(ve.variableName)],color:"#6BDFFF"},{tag:[ve.name],color:"#6BAA9F"},{tag:[ve.variableName],color:"#ACF2E4"},{tag:[ve.regexp,ve.link],color:"#FF8170"},...r]})},eQe=JWe();function pR(){const e=Ky("(prefers-color-scheme: dark)"),t=po(Kre);return P.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}const nue="yorkie-intelligence-header",i6="yorkie-intelligence-footer";var YM=(e=>(e.GITHUB_ISSUE="github-issue",e.GITHUB_PR="github-pr",e))(YM||{});class Xq extends Lc{constructor(n,r,i){super();ks(this,"id");ks(this,"content");ks(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return tC("span",[Qm("id",this.id),Qm("content",this.content),Qm("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class tQe{constructor(){ks(this,"decorations");this.decorations=Cr.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const o=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:Tn.widget({side:1,block:!1,widget:new Xq(nue,o,r)})}),n.push({from:r.to,to:r.to,value:Tn.widget({side:1,block:!1,widget:new Xq(i6,o,r)})})}this.decorations=Tn.set(n,!0)}}const nQe=Wi.fromClass(tQe,{decorations:e=>e.decorations}),Kq=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const o=new FileReader;o.readAsDataURL(n),o.onload=function(){r(t(n))},o.onerror=function(s){i(s)}})})),Jq=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,o=i,s=` +}`;var cr=DV(function(){return Nr(ce,xn+"return "+Ct).apply(n,Se)});if(cr.source=Ct,gD(cr))throw cr;return cr}function yve(h){return qr(h).toLowerCase()}function vve(h){return qr(h).toUpperCase()}function Ove(h,y,R){if(h=qr(h),h&&(R||y===n))return sm(h);if(!h||!(y=vl(y)))return h;var Y=yl(h),ne=yl(y),ce=tw(Y,ne),Se=nw(Y,ne)+1;return Cp(Y,ce,Se).join("")}function Eve(h,y,R){if(h=qr(h),h&&(R||y===n))return h.slice(0,aw(h)+1);if(!h||!(y=vl(y)))return h;var Y=yl(h),ne=nw(Y,yl(y))+1;return Cp(Y,0,ne).join("")}function Sve(h,y,R){if(h=qr(h),h&&(R||y===n))return h.replace(Ve,"");if(!h||!(y=vl(y)))return h;var Y=yl(h),ne=tw(Y,yl(y));return Cp(Y,ne).join("")}function Tve(h,y){var R=P,Y=V;if(Yi(y)){var ne="separator"in y?y.separator:ne;R="length"in y?ar(y.length):R,Y="omission"in y?vl(y.omission):Y}h=qr(h);var ce=h.length;if(mp(h)){var Se=yl(h);ce=Se.length}if(R>=ce)return h;var Re=R-Yc(Y);if(Re<1)return Y;var Ge=Se?Cp(Se,0,Re).join(""):h.slice(0,Re);if(ne===n)return Ge+Y;if(Se&&(Re+=Ge.length-Re),bD(ne)){if(h.slice(Re).search(ne)){var Et,St=Ge;for(ne.global||(ne=Fv(ne.source,qr($e.exec(ne))+"g")),ne.lastIndex=0;Et=ne.exec(St);)var Ct=Et.index;Ge=Ge.slice(0,Ct===n?Re:Ct)}}else if(h.indexOf(vl(ne),Re)!=Re){var nn=Ge.lastIndexOf(ne);nn>-1&&(Ge=Ge.slice(0,nn))}return Ge+Y}function wve(h){return h=qr(h),h&&Ae.test(h)?h.replace($n,sw):h}var xve=hb(function(h,y,R){return h+(R?" ":"")+y.toUpperCase()}),OD=Nz("toUpperCase");function IV(h,y,R){return h=qr(h),y=R?n:y,y===n?iw(h)?eb(h):Qi(h):h.match(y)||[]}var DV=pr(function(h,y){try{return Wn(h,n,y)}catch(R){return gD(R)?R:new Yn(R)}}),kve=ff(function(h,y){return Hi(y,function(R){R=Kc(R),cf(h,R,hD(h[R],h))}),h});function Cve(h){var y=h==null?0:h.length,R=Bn();return h=y?hi(h,function(Y){if(typeof Y[1]!="function")throw new Os(a);return[R(Y[0]),Y[1]]}):[],pr(function(Y){for(var ne=-1;++neq)return[];var R=se,Y=$i(h,se);y=Bn(y),h-=se;for(var ne=Pv(Y,y);++R0||y<0)?new D(R):(h<0?R=R.takeRight(-h):h&&(R=R.drop(h)),y!==n&&(y=ar(y),R=y<0?R.dropRight(-y):R.take(y-h)),R)},D.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},D.prototype.toArray=function(){return this.take(se)},Zc(D.prototype,function(h,y){var R=/^(?:filter|find|map|reject)|While$/.test(y),Y=/^(?:head|last)$/.test(y),ne=T[Y?"take"+(y=="last"?"Right":""):y],ce=Y||/^find/.test(y);ne&&(T.prototype[y]=function(){var Se=this.__wrapped__,Re=Y?[1]:arguments,Ge=Se instanceof D,Et=Re[0],St=Ge||Kn(Se),Ct=function(yr){var kr=ne.apply(T,$o([yr],Re));return Y&&nn?kr[0]:kr};St&&R&&typeof Et=="function"&&Et.length!=1&&(Ge=St=!1);var nn=this.__chain__,xn=!!this.__actions__.length,jn=ce&&!nn,cr=Ge&&!xn;if(!ce&&St){Se=cr?Se:new D(this);var zn=h.apply(Se,Re);return zn.__actions__.push({func:Dw,args:[Ct],thisArg:n}),new _(zn,nn)}return jn&&cr?h.apply(this,Re):(zn=this.thru(Ct),jn?Y?zn.value()[0]:zn.value():zn)})}),Hi(["pop","push","shift","sort","splice","unshift"],function(h){var y=tb[h],R=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",Y=/^(?:pop|shift)$/.test(h);T.prototype[h]=function(){var ne=arguments;if(Y&&!this.__chain__){var ce=this.value();return y.apply(Kn(ce)?ce:[],ne)}return this[R](function(Se){return y.apply(Kn(Se)?Se:[],ne)})}}),Zc(D.prototype,function(h,y){var R=T[y];if(R){var Y=R.name+"";Wr.call(Ka,Y)||(Ka[Y]=[]),Ka[Y].push({name:y,func:R})}}),Ka[xw(n,O).name]=[{name:"wrapper",func:n}],D.prototype.clone=K,D.prototype.reverse=re,D.prototype.value=me,T.prototype.at=t0e,T.prototype.chain=n0e,T.prototype.commit=r0e,T.prototype.next=i0e,T.prototype.plant=a0e,T.prototype.reverse=s0e,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=l0e,T.prototype.first=T.prototype.head,Ju&&(T.prototype[Ju]=o0e),T},bp=lw();ge?((ge.exports=bp)._=bp,U._=bp):I._=bp}).call(md)})(q_,q_.exports);var ZWe=q_.exports;const XWe=Rc(ZWe),KWe=un.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"}}),JWe=Pc.define();class eHe extends Lc{constructor(n,r){super();ka(this,"color");ka(this,"name");this.color=n,this.name=r}toDOM(){return Jk("span",[Qm("class","cm-ySelectionCaret"),Qm("style",`background-color: ${this.color}; border-color: ${this.color}`)],[Wx("⁠"),Jk("div",[Qm("class","cm-ySelectionCaretDot")]),Wx("⁠"),Jk("div",[Qm("class","cm-ySelectionInfo")],[Wx(this.name)]),Wx("⁠")])}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 tHe{constructor(t){ka(this,"conf");ka(this,"decorations");ka(this,"unsubscribe");this.conf=t.state.facet(eB),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[JWe.of([])]})}),this.decorations=Cr.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const a=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(a&&r.content){const s=r.content.indexRangeToPosRange([a.anchor,a.head]);XWe.isEqual(s,i.get("selection"))||i.set({selection:s})}else i.get("selection")&&i.set({selection:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),o=r.presence.color,a=r.presence.name,s=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(s),c=t.view.state.doc.lineAt(l);if(u.number===c.number)n.push({from:s,to:l,value:Tn.mark({attributes:{style:`background-color: ${o}`},class:"cm-ySelection"})});else{n.push({from:s,to:u.from+u.length,value:Tn.mark({attributes:{style:`background-color: ${o}`},class:"cm-ySelection"})}),n.push({from:c.from,to:l,value:Tn.mark({attributes:{style:`background-color: ${o}`},class:"cm-ySelection"})});for(let d=u.number+1;d0?-1:1,block:!1,widget:new eHe(o,a)})})}),this.decorations=Tn.set(n,!0)}}const nHe=Ji.fromClass(tHe,{decorations:e=>e.decorations});function rHe(e,t){const n=new BWe(e,t),r=[eB.of(n),jWe];return t&&r.push(KWe,nHe),r}var Kle=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=un.theme(i,{dark:t==="dark"}),l=pT.define(r),u=[s,Rae(l)];return u},iHe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function oHe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return Kle({theme:t,settings:B({},iHe,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#707F8D"},{tag:[Ee.typeName,Ee.typeOperator],color:"#aa0d91"},{tag:[Ee.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#D23423"},{tag:[Ee.name],color:"#032f62"},{tag:[Ee.typeName],color:"#522BB2"},{tag:[Ee.variableName],color:"#23575C"},{tag:[Ee.definition(Ee.variableName)],color:"#327A9E"},{tag:[Ee.regexp,Ee.link],color:"#0e0eff"},...r]})}var aHe=oHe(),sHe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},lHe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return Kle({theme:t,settings:B({},sHe,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#7F8C98"},{tag:[Ee.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#FF8170"},{tag:[Ee.typeName],color:"#DABAFF"},{tag:[Ee.definition(Ee.variableName)],color:"#6BDFFF"},{tag:[Ee.name],color:"#6BAA9F"},{tag:[Ee.variableName],color:"#ACF2E4"},{tag:[Ee.regexp,Ee.link],color:"#FF8170"},...r]})},uHe=lHe();function dI(){const e=Ky("(prefers-color-scheme: dark)"),t=po(qre);return L.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}const Jle="yorkie-intelligence-header",tB="yorkie-intelligence-footer";var W3=(e=>(e.GITHUB_ISSUE="github-issue",e.GITHUB_PR="github-pr",e))(W3||{});class Gq extends Lc{constructor(n,r,i){super();ka(this,"id");ka(this,"content");ka(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return Jk("span",[Qm("id",this.id),Qm("content",this.content),Qm("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class cHe{constructor(){ka(this,"decorations");this.decorations=Cr.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const o=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:Tn.widget({side:1,block:!1,widget:new Gq(Jle,o,r)})}),n.push({from:r.to,to:r.to,value:Tn.widget({side:1,block:!1,widget:new Gq(tB,o,r)})})}this.decorations=Tn.set(n,!0)}}const dHe=Ji.fromClass(cHe,{decorations:e=>e.decorations}),qq=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const o=new FileReader;o.readAsDataURL(n),o.onload=function(){r(t(n))},o.onerror=function(a){i(a)}})})),Zq=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,o=i,a=` ![image](${e}) -`,a=o+s.length;n.update((l,u)=>{l.content.edit(i,o,s),u.set({selection:l.content.indexRangeToPosRange([a,a])})}),t.dispatch({changes:{from:i,to:o,insert:s},selection:{anchor:a}})},rQe=(e,t)=>un.domEventHandlers({paste(n,r){var i,o;!((i=n.clipboardData)!=null&&i.files)||((o=n.clipboardData)==null?void 0:o.files.length)==0||Kq(n.clipboardData.files,e).then(s=>s.forEach(a=>Jq(a,r,t)))},drop(n,r){var i,o;!((i=n.dataTransfer)!=null&&i.files)||((o=n.dataTransfer)==null?void 0:o.files.length)==0||Kq(n.dataTransfer.files,e).then(s=>s.forEach(a=>Jq(a,r,t)))}}),iQe=()=>Jh({mutationFn:async e=>(await gr.post("/files",e)).data}),oQe=()=>Jh({mutationFn:async e=>gr.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})});function eZ(){const e=Nc(),t=pR(),[n,r]=P.useState(),i=po(r1),o=po(fF),{mutateAsync:s}=iQe(),{mutateAsync:a}=oQe(),l=P.useCallback(u=>{u&&r(u)},[]);return P.useEffect(()=>{var p;let u;if(!n||!i.doc||!i.client)return;const c=async m=>{if(!o.data)return"";const g=await s({workspaceId:o.data.id,contentLength:new Blob([m]).size,contentType:m.type});return await a({...g,file:m}),`https://codepair-api.yorkie.dev/files/${g.fileKey}`},d=Ar.create({doc:((p=i.doc.getRoot().content)==null?void 0:p.toString())??"",extensions:[Hje,FHe(),oWe(i.doc,i.client),GWe({items:YWe}),t=="light"?XWe:eQe,un.theme({"&":{width:"100%"}}),un.lineWrapping,o1.of([c9e]),nQe,rQe(c,i.doc)]});return u=new un({state:d,parent:n}),e(Y$e(u)),()=>{u==null||u.destroy()}},[e,i.client,i.doc,n,t,o.data,s,a]),N.jsx("div",{ref:l,style:{display:"flex",alignItems:"stretch",height:"100%"}})}function iS(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const s=n.slice(i,r).trim();(s||!o)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function o6(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const sQe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aQe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lQe={};function tZ(e,t){return((t||lQe).jsx?aQe:sQe).test(e)}const uQe=/[ \t\n\f\r]/g;function rue(e){return typeof e=="object"?e.type==="text"?nZ(e.value):!1:nZ(e)}function nZ(e){return e.replace(uQe,"")===""}class yT{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}yT.prototype.property={};yT.prototype.normal={};yT.prototype.space=null;function iue(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&hQe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(iZ,bQe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!iZ.test(o)){let s=o.replace(mQe,gQe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=s6}return new i(r,t)}function gQe(e){return"-"+e.toLowerCase()}function bQe(e){return e.charAt(1).toUpperCase()}const yQe={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"},$g=iue([aue,sue,cue,due,fQe],"html"),Wd=iue([aue,sue,cue,due,pQe],"svg");function oS(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function a6(e){return e.join(" ").trim()}var fue={},oZ=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vQe=/\n/g,OQe=/^\s*/,EQe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,SQe=/^:\s*/,TQe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,wQe=/^[;\s]*/,xQe=/^\s+|\s+$/g,kQe=` -`,sZ="/",aZ="*",Pm="",CQe="comment",_Qe="declaration",AQe=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(g){var v=g.match(vQe);v&&(n+=v.length);var E=g.lastIndexOf(kQe);r=~E?g.length-E:r+g.length}function o(){var g={line:n,column:r};return function(v){return v.position=new s(g),u(),v}}function s(g){this.start=g,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function a(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(g){var v=g.exec(e);if(v){var E=v[0];return i(E),e=e.slice(E.length),v}}function u(){l(OQe)}function c(g){var v;for(g=g||[];v=d();)v!==!1&&g.push(v);return g}function d(){var g=o();if(!(sZ!=e.charAt(0)||aZ!=e.charAt(1))){for(var v=2;Pm!=e.charAt(v)&&(aZ!=e.charAt(v)||sZ!=e.charAt(v+1));)++v;if(v+=2,Pm===e.charAt(v-1))return a("End of comment missing");var E=e.slice(2,v-2);return r+=2,i(E),e=e.slice(v),r+=2,g({type:CQe,comment:E})}}function p(){var g=o(),v=l(EQe);if(v){if(d(),!l(SQe))return a("property missing ':'");var E=l(TQe),O=g({type:_Qe,property:lZ(v[0].replace(oZ,Pm)),value:E?lZ(E[0].replace(oZ,Pm)):Pm});return l(wQe),O}}function m(){var g=[];c(g);for(var v;v=p();)v!==!1&&(g.push(v),c(g));return g}return u(),m()};function lZ(e){return e?e.replace(xQe,Pm):Pm}var RQe=Rf&&Rf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fue,"__esModule",{value:!0});var IQe=RQe(AQe);function DQe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,IQe.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,a=o.value;i?t(s,a,o):a&&(n=n||{},n[s]=a)}}),n}var uZ=fue.default=DQe;const NQe=uZ.default||uZ,hR=pue("end"),Qd=pue("start");function pue(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 PQe(e){const t=Qd(e),n=hR(e);if(t&&n)return{start:t,end:n}}function $O(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cZ(e.position):"start"in e||"end"in e?cZ(e):"line"in e||"column"in e?qM(e):""}function qM(e){return dZ(e&&e.line)+":"+dZ(e&&e.column)}function cZ(e){return qM(e&&e.start)+"-"+qM(e&&e.end)}function dZ(e){return e&&typeof e=="number"?e:1}class ha extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!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&&(s=!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 a=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=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=$O(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=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ha.prototype.file="";ha.prototype.name="";ha.prototype.reason="";ha.prototype.message="";ha.prototype.stack="";ha.prototype.column=void 0;ha.prototype.line=void 0;ha.prototype.ancestors=void 0;ha.prototype.cause=void 0;ha.prototype.fatal=void 0;ha.prototype.place=void 0;ha.prototype.ruleId=void 0;ha.prototype.source=void 0;const l6={}.hasOwnProperty,LQe=new Map,MQe=/[A-Z]/g,$Qe=/-([a-z])/g,FQe=new Set(["table","tbody","thead","tfoot","tr"]),BQe=new Set(["td","th"]),hue="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function UQe(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=GQe(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=YQe(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"?Wd:$g,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=mue(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function mue(e,t,n){if(t.type==="element")return jQe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return zQe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return HQe(e,t,n);if(t.type==="mdxjsEsm")return VQe(e,t);if(t.type==="root")return WQe(e,t,n);if(t.type==="text")return QQe(e,t)}function jQe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Wd,e.schema=i),e.ancestors.push(t);const o=bue(e,t.tagName,!1),s=qQe(e,t);let a=c6(e,t);return FQe.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!rue(l):!0})),gue(e,s,o,t),u6(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function zQe(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)}sS(e,t.position)}function VQe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);sS(e,t.position)}function HQe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Wd,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:bue(e,t.name,!0),s=ZQe(e,t),a=c6(e,t);return gue(e,s,o,t),u6(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function WQe(e,t,n){const r={};return u6(r,c6(e,t)),e.create(t,e.Fragment,r,n)}function QQe(e,t){return t.value}function gue(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function u6(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function YQe(e,t,n){return r;function r(i,o,s,a){const u=Array.isArray(s.children)?n:t;return a?u(o,s,a):u(o,s)}}function GQe(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=Qd(r);return t(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function qQe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&l6.call(t.properties,i)){const o=XQe(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&BQe.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function ZQe(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 s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else sS(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 a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else sS(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function c6(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:LQe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o0?(Ql(e,e.length,0,t),e):t}const hZ={}.hasOwnProperty;function vue(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 Sc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Da=nm(/[A-Za-z]/),aa=nm(/[\dA-Za-z]/),aYe=nm(/[#-'*+\--9=?A-Z^-~]/);function K_(e){return e!==null&&(e<32||e===127)}const ZM=nm(/\d/),lYe=nm(/[\dA-Fa-f]/),uYe=nm(/[!-/:-@[-`{-~]/);function Mn(e){return e!==null&&e<-2}function di(e){return e!==null&&(e<0||e===32)}function Er(e){return e===-2||e===-1||e===32}const mR=nm(new RegExp("\\p{P}|\\p{S}","u")),Cg=nm(/\s/);function nm(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function h1(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ir(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return Er(l)?(e.enter(n),a(l)):t(l)}function a(l){return Er(l)&&o++s))return;const w=t.events.length;let F=w,M,L;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(M){L=t.events[F][1].end;break}M=!0}for(O(r),_=w;_x;){const I=n[C];t.containerState=I[1],I[0].exit.call(t,e)}n.length=x}function S(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function hYe(e,t,n){return Ir(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function J_(e){if(e===null||di(e)||Cg(e))return 1;if(mR(e))return 2}function gR(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);gZ(d,-l),gZ(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={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({},s.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},a.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Su(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Su(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=Su(u,gR(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Su(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Su(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Ql(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Er(_)?Ir(e,S,"linePrefix",o+1)(_):S(_)}function S(_){return _===null||Mn(_)?e.check(bZ,v,C)(_):(e.enter("codeFlowValue"),x(_))}function x(_){return _===null||Mn(_)?(e.exit("codeFlowValue"),S(_)):(e.consume(_),x)}function C(_){return e.exit("codeFenced"),t(_)}function I(_,w,F){let M=0;return L;function L(z){return _.enter("lineEnding"),_.consume(z),_.exit("lineEnding"),W}function W(z){return _.enter("codeFencedFence"),Er(z)?Ir(_,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):H(z)}function H(z){return z===a?(_.enter("codeFencedFenceSequence"),q(z)):F(z)}function q(z){return z===a?(M++,_.consume(z),q):M>=s?(_.exit("codeFencedFenceSequence"),Er(z)?Ir(_,j,"whitespace")(z):j(z)):F(z)}function j(z){return z===null||Mn(z)?(_.exit("codeFencedFence"),w(z)):F(z)}}}function kYe(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const pP={name:"codeIndented",tokenize:_Ye},CYe={tokenize:AYe,partial:!0};function _Ye(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Ir(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?s(u):n(u)}function s(u){return u===null?l(u):Mn(u)?e.attempt(CYe,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Mn(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function AYe(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Ir(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):Mn(s)?i(s):n(s)}}const RYe={name:"codeText",tokenize:NYe,resolve:IYe,previous:DYe};function IYe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function xue(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(O){return O===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(O),e.exit(o),p):O===null||O===32||O===41||K_(O)?n(O):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),v(O))}function p(O){return O===62?(e.enter(o),e.consume(O),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),m(O))}function m(O){return O===62?(e.exit("chunkString"),e.exit(a),p(O)):O===null||O===60||Mn(O)?n(O):(e.consume(O),O===92?g:m)}function g(O){return O===60||O===62||O===92?(e.consume(O),m):m(O)}function v(O){return!c&&(O===null||O===41||di(O))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(O)):c999||m===null||m===91||m===93&&!l||m===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(o),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):Mn(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||Mn(m)||a++>999?(e.exit("chunkString"),c(m)):(e.consume(m),l||(l=!Er(m)),m===92?p:d)}function p(m){return m===91||m===92||m===93?(e.consume(m),a++,d):d(m)}}function Cue(e,t,n,r,i,o){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===s?(e.exit(o),l(s)):p===null?n(p):Mn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ir(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||Mn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===s||p===92?(e.consume(p),c):c(p)}}function FO(e,t){let n;return r;function r(i){return Mn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Er(i)?Ir(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const UYe={name:"definition",tokenize:zYe},jYe={tokenize:VYe,partial:!0};function zYe(e,t,n){const r=this;let i;return o;function o(m){return e.enter("definition"),s(m)}function s(m){return kue.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function a(m){return i=Sc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return di(m)?FO(e,u)(m):u(m)}function u(m){return xue(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function c(m){return e.attempt(jYe,d,d)(m)}function d(m){return Er(m)?Ir(e,p,"whitespace")(m):p(m)}function p(m){return m===null||Mn(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function VYe(e,t,n){return r;function r(a){return di(a)?FO(e,i)(a):n(a)}function i(a){return Cue(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Er(a)?Ir(e,s,"whitespace")(a):s(a)}function s(a){return a===null||Mn(a)?t(a):n(a)}}const HYe={name:"hardBreakEscape",tokenize:WYe};function WYe(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 QYe={name:"headingAtx",tokenize:GYe,resolve:YYe};function YYe(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"},Ql(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function GYe(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||di(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Mn(c)?(e.exit("atxHeading"),t(c)):Er(c)?Ir(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||di(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const qYe=["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"],vZ=["pre","script","style","textarea"],ZYe={name:"htmlFlow",tokenize:eGe,resolveTo:JYe,concrete:!0},XYe={tokenize:nGe,partial:!0},KYe={tokenize:tGe,partial:!0};function JYe(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 eGe(e,t,n){const r=this;let i,o,s,a,l;return u;function u(te){return c(te)}function c(te){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(te),d}function d(te){return te===33?(e.consume(te),p):te===47?(e.consume(te),o=!0,v):te===63?(e.consume(te),i=3,r.interrupt?t:Q):Da(te)?(e.consume(te),s=String.fromCharCode(te),E):n(te)}function p(te){return te===45?(e.consume(te),i=2,m):te===91?(e.consume(te),i=5,a=0,g):Da(te)?(e.consume(te),i=4,r.interrupt?t:Q):n(te)}function m(te){return te===45?(e.consume(te),r.interrupt?t:Q):n(te)}function g(te){const pe="CDATA[";return te===pe.charCodeAt(a++)?(e.consume(te),a===pe.length?r.interrupt?t:H:g):n(te)}function v(te){return Da(te)?(e.consume(te),s=String.fromCharCode(te),E):n(te)}function E(te){if(te===null||te===47||te===62||di(te)){const pe=te===47,Oe=s.toLowerCase();return!pe&&!o&&vZ.includes(Oe)?(i=1,r.interrupt?t(te):H(te)):qYe.includes(s.toLowerCase())?(i=6,pe?(e.consume(te),O):r.interrupt?t(te):H(te)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(te):o?S(te):x(te))}return te===45||aa(te)?(e.consume(te),s+=String.fromCharCode(te),E):n(te)}function O(te){return te===62?(e.consume(te),r.interrupt?t:H):n(te)}function S(te){return Er(te)?(e.consume(te),S):L(te)}function x(te){return te===47?(e.consume(te),L):te===58||te===95||Da(te)?(e.consume(te),C):Er(te)?(e.consume(te),x):L(te)}function C(te){return te===45||te===46||te===58||te===95||aa(te)?(e.consume(te),C):I(te)}function I(te){return te===61?(e.consume(te),_):Er(te)?(e.consume(te),I):x(te)}function _(te){return te===null||te===60||te===61||te===62||te===96?n(te):te===34||te===39?(e.consume(te),l=te,w):Er(te)?(e.consume(te),_):F(te)}function w(te){return te===l?(e.consume(te),l=null,M):te===null||Mn(te)?n(te):(e.consume(te),w)}function F(te){return te===null||te===34||te===39||te===47||te===60||te===61||te===62||te===96||di(te)?I(te):(e.consume(te),F)}function M(te){return te===47||te===62||Er(te)?x(te):n(te)}function L(te){return te===62?(e.consume(te),W):n(te)}function W(te){return te===null||Mn(te)?H(te):Er(te)?(e.consume(te),W):n(te)}function H(te){return te===45&&i===2?(e.consume(te),X):te===60&&i===1?(e.consume(te),Z):te===62&&i===4?(e.consume(te),ae):te===63&&i===3?(e.consume(te),Q):te===93&&i===5?(e.consume(te),ee):Mn(te)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(XYe,Te,q)(te)):te===null||Mn(te)?(e.exit("htmlFlowData"),q(te)):(e.consume(te),H)}function q(te){return e.check(KYe,j,Te)(te)}function j(te){return e.enter("lineEnding"),e.consume(te),e.exit("lineEnding"),z}function z(te){return te===null||Mn(te)?q(te):(e.enter("htmlFlowData"),H(te))}function X(te){return te===45?(e.consume(te),Q):H(te)}function Z(te){return te===47?(e.consume(te),s="",G):H(te)}function G(te){if(te===62){const pe=s.toLowerCase();return vZ.includes(pe)?(e.consume(te),ae):H(te)}return Da(te)&&s.length<8?(e.consume(te),s+=String.fromCharCode(te),G):H(te)}function ee(te){return te===93?(e.consume(te),Q):H(te)}function Q(te){return te===62?(e.consume(te),ae):te===45&&i===2?(e.consume(te),Q):H(te)}function ae(te){return te===null||Mn(te)?(e.exit("htmlFlowData"),Te(te)):(e.consume(te),ae)}function Te(te){return e.exit("htmlFlow"),t(te)}}function tGe(e,t,n){const r=this;return i;function i(s){return Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function nGe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(vT,t,n)}}const rGe={name:"htmlText",tokenize:iGe};function iGe(e,t,n){const r=this;let i,o,s;return a;function a(Q){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(Q),l}function l(Q){return Q===33?(e.consume(Q),u):Q===47?(e.consume(Q),I):Q===63?(e.consume(Q),x):Da(Q)?(e.consume(Q),F):n(Q)}function u(Q){return Q===45?(e.consume(Q),c):Q===91?(e.consume(Q),o=0,g):Da(Q)?(e.consume(Q),S):n(Q)}function c(Q){return Q===45?(e.consume(Q),m):n(Q)}function d(Q){return Q===null?n(Q):Q===45?(e.consume(Q),p):Mn(Q)?(s=d,Z(Q)):(e.consume(Q),d)}function p(Q){return Q===45?(e.consume(Q),m):d(Q)}function m(Q){return Q===62?X(Q):Q===45?p(Q):d(Q)}function g(Q){const ae="CDATA[";return Q===ae.charCodeAt(o++)?(e.consume(Q),o===ae.length?v:g):n(Q)}function v(Q){return Q===null?n(Q):Q===93?(e.consume(Q),E):Mn(Q)?(s=v,Z(Q)):(e.consume(Q),v)}function E(Q){return Q===93?(e.consume(Q),O):v(Q)}function O(Q){return Q===62?X(Q):Q===93?(e.consume(Q),O):v(Q)}function S(Q){return Q===null||Q===62?X(Q):Mn(Q)?(s=S,Z(Q)):(e.consume(Q),S)}function x(Q){return Q===null?n(Q):Q===63?(e.consume(Q),C):Mn(Q)?(s=x,Z(Q)):(e.consume(Q),x)}function C(Q){return Q===62?X(Q):x(Q)}function I(Q){return Da(Q)?(e.consume(Q),_):n(Q)}function _(Q){return Q===45||aa(Q)?(e.consume(Q),_):w(Q)}function w(Q){return Mn(Q)?(s=w,Z(Q)):Er(Q)?(e.consume(Q),w):X(Q)}function F(Q){return Q===45||aa(Q)?(e.consume(Q),F):Q===47||Q===62||di(Q)?M(Q):n(Q)}function M(Q){return Q===47?(e.consume(Q),X):Q===58||Q===95||Da(Q)?(e.consume(Q),L):Mn(Q)?(s=M,Z(Q)):Er(Q)?(e.consume(Q),M):X(Q)}function L(Q){return Q===45||Q===46||Q===58||Q===95||aa(Q)?(e.consume(Q),L):W(Q)}function W(Q){return Q===61?(e.consume(Q),H):Mn(Q)?(s=W,Z(Q)):Er(Q)?(e.consume(Q),W):M(Q)}function H(Q){return Q===null||Q===60||Q===61||Q===62||Q===96?n(Q):Q===34||Q===39?(e.consume(Q),i=Q,q):Mn(Q)?(s=H,Z(Q)):Er(Q)?(e.consume(Q),H):(e.consume(Q),j)}function q(Q){return Q===i?(e.consume(Q),i=void 0,z):Q===null?n(Q):Mn(Q)?(s=q,Z(Q)):(e.consume(Q),q)}function j(Q){return Q===null||Q===34||Q===39||Q===60||Q===61||Q===96?n(Q):Q===47||Q===62||di(Q)?M(Q):(e.consume(Q),j)}function z(Q){return Q===47||Q===62||di(Q)?M(Q):n(Q)}function X(Q){return Q===62?(e.consume(Q),e.exit("htmlTextData"),e.exit("htmlText"),t):n(Q)}function Z(Q){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(Q),e.exit("lineEnding"),G}function G(Q){return Er(Q)?Ir(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):ee(Q)}function ee(Q){return e.enter("htmlTextData"),s(Q)}}const f6={name:"labelEnd",tokenize:cGe,resolveTo:uGe,resolveAll:lGe},oGe={tokenize:dGe},sGe={tokenize:fGe},aGe={tokenize:pGe};function lGe(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"),Er(u)?Ir(e,a,"whitespace")(u):a(u))}}const Qa={name:"list",tokenize:SGe,continuation:{tokenize:TGe},exit:xGe},OGe={tokenize:kGe,partial:!0},EGe={tokenize:wGe,partial:!0};function SGe(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,s=0;return a;function a(m){const g=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:ZM(m)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(nC,n,u)(m):u(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return ZM(m)&&++s<10?(e.consume(m),l):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(vT,r.interrupt?n:c,e.attempt(OGe,p,d))}function c(m){return r.containerState.initialBlankLine=!0,o++,p(m)}function d(m){return Er(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):n(m)}function p(m){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function TGe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(vT,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ir(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!Er(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(EGe,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ir(e,e.attempt(Qa,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function wGe(e,t,n){const r=this;return Ir(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function xGe(e){e.exit(this.containerState.type)}function kGe(e,t,n){const r=this;return Ir(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!Er(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const OZ={name:"setextUnderline",tokenize:_Ge,resolveTo:CGe};function CGe(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 s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function _Ge(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,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Er(u)?Ir(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Mn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const AGe={tokenize:RGe};function RGe(e){const t=this,n=e.attempt(vT,r,e.attempt(this.parser.constructs.flowInitial,i,Ir(e,e.attempt(this.parser.constructs.flow,i,e.attempt(LYe,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 IGe={resolveAll:Aue()},DGe=_ue("string"),NGe=_ue("text");function _ue(e){return{tokenize:t,resolveAll:Aue(e==="text"?PGe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(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 a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function $Ge(e,t){let n=-1;const r=[];let i;for(;++n0){const ft=be.tokenStack[be.tokenStack.length-1];(ft[1]||SZ).call(be,void 0,ft[0])}for(ye.position={start:Np(ce.length>0?ce[0][1].start:{line:1,column:1,offset:0}),end:Np(ce.length>0?ce[ce.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function cqe(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 dqe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Due(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 s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function fqe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Due(e,t);const i={src:h1(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 pqe(e,t){const n={src:h1(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 hqe(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 mqe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Due(e,t);const i={href:h1(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 gqe(e,t){const n={href:h1(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 bqe(e,t,n){const r=e.all(t),i=n?yqe(n):Nue(t),o={},s=[];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 a=-1;for(;++a1}function vqe(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Qd(t.children[1]),l=hR(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function wqe(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(xZ(t.slice(i),i>0,!1)),o.join("")}function xZ(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===TZ||o===wZ;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===TZ||o===wZ;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Cqe(e,t){const n={type:"text",value:kqe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function _qe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Aqe={blockquote:iqe,break:oqe,code:sqe,delete:aqe,emphasis:lqe,footnoteReference:uqe,heading:cqe,html:dqe,imageReference:fqe,image:pqe,inlineCode:hqe,linkReference:mqe,link:gqe,listItem:bqe,list:vqe,paragraph:Oqe,root:Eqe,strong:Sqe,table:Tqe,tableCell:xqe,tableRow:wqe,text:Cqe,thematicBreak:_qe,toml:Yx,yaml:Yx,definition:Yx,footnoteDefinition:Yx};function Yx(){}const Pue=-1,bR=0,eA=1,tA=2,p6=3,h6=4,m6=5,g6=6,Lue=7,Mue=8,kZ=typeof self=="object"?self:globalThis,Rqe=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case bR:case Pue:return n(s,i);case eA:{const a=n([],i);for(const l of s)a.push(r(l));return a}case tA:{const a=n({},i);for(const[l,u]of s)a[r(l)]=r(u);return a}case p6:return n(new Date(s),i);case h6:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case m6:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case g6:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case Lue:{const{name:a,message:l}=s;return n(new kZ[a](l),i)}case Mue:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new kZ[o](s),i)};return r},CZ=e=>Rqe(new Map,e)(0),C0="",{toString:Iqe}={},{keys:Dqe}=Object,Dv=e=>{const t=typeof e;if(t!=="object"||!e)return[bR,t];const n=Iqe.call(e).slice(8,-1);switch(n){case"Array":return[eA,C0];case"Object":return[tA,C0];case"Date":return[p6,C0];case"RegExp":return[h6,C0];case"Map":return[m6,C0];case"Set":return[g6,C0]}return n.includes("Array")?[eA,n]:n.includes("Error")?[Lue,n]:[tA,n]},Gx=([e,t])=>e===bR&&(t==="function"||t==="symbol"),Nqe=(e,t,n,r)=>{const i=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=Dv(s);switch(a){case bR:{let c=s;switch(l){case"bigint":a=Mue,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Pue],s)}return i([a,c],s)}case eA:{if(l)return i([l,[...s]],s);const c=[],d=i([a,c],s);for(const p of s)c.push(o(p));return d}case tA:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],d=i([a,c],s);for(const p of Dqe(s))(e||!Gx(Dv(s[p])))&&c.push([o(p),o(s[p])]);return d}case p6:return i([a,s.toISOString()],s);case h6:{const{source:c,flags:d}=s;return i([a,{source:c,flags:d}],s)}case m6:{const c=[],d=i([a,c],s);for(const[p,m]of s)(e||!(Gx(Dv(p))||Gx(Dv(m))))&&c.push([o(p),o(m)]);return d}case g6:{const c=[],d=i([a,c],s);for(const p of s)(e||!Gx(Dv(p)))&&c.push(o(p));return d}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},_Z=(e,{json:t,lossy:n}={})=>{const r=[];return Nqe(!(t||n),!!t,new Map,r)(e),r},_g=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?CZ(_Z(e,t)):structuredClone(e):(e,t)=>CZ(_Z(e,t));function Pqe(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 Lqe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Mqe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Pqe,r=e.options.footnoteBackLabel||Lqe,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l0&&g.push({type:"text",value:" "});let S=typeof n=="string"?n:n(l,m);typeof S=="string"&&(S={type:"text",value:S}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const S=E.children[E.children.length-1];S&&S.type==="text"?S.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...g)}else c.push(...g);const O={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,O),a.push(O)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{..._g(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` -`}]}}const OT=function(e){if(e==null)return Uqe;if(typeof e=="function")return yR(e);if(typeof e=="object")return Array.isArray(e)?$qe(e):Fqe(e);if(typeof e=="string")return Bqe(e);throw new Error("Expected function, string, or object as test")};function $qe(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let m=$ue,g,v,E;if((!t||o(l,u,c[c.length-1]||void 0))&&(m=Vqe(n(l,c)),m[0]===nA))return m;if("children"in l&&l.children){const O=l;if(O.children&&m[0]!==BO)for(v=(r?O.children.length:-1)+s,E=c.concat(O);v>-1&&v{l.content.edit(i,o,a),u.set({selection:l.content.indexRangeToPosRange([s,s])})}),t.dispatch({changes:{from:i,to:o,insert:a},selection:{anchor:s}})},fHe=(e,t)=>un.domEventHandlers({paste(n,r){var i,o;!((i=n.clipboardData)!=null&&i.files)||((o=n.clipboardData)==null?void 0:o.files.length)==0||qq(n.clipboardData.files,e).then(a=>a.forEach(s=>Zq(s,r,t)))},drop(n,r){var i,o;!((i=n.dataTransfer)!=null&&i.files)||((o=n.dataTransfer)==null?void 0:o.files.length)==0||qq(n.dataTransfer.files,e).then(a=>a.forEach(s=>Zq(s,r,t)))}}),pHe=()=>Jh({mutationFn:async e=>(await gr.post("/files",e)).data}),hHe=()=>Jh({mutationFn:async e=>gr.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})});var eue={exports:{}};(function(e,t){(function(r,i){e.exports=i(L)})(md,function(n){return function(r){var i={};function o(a){if(i[a])return i[a].exports;var s=i[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=r,o.c=i,o.i=function(a){return a},o.d=function(a,s,l){o.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:l})},o.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(s,"a",s),s},o.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},o.p="",o(o.s=10)}([function(r,i){var o=r.exports={},a,s;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a=setTimeout:a=l}catch{a=l}try{typeof clearTimeout=="function"?s=clearTimeout:s=u}catch{s=u}})();function c(k){if(a===setTimeout)return setTimeout(k,0);if((a===l||!a)&&setTimeout)return a=setTimeout,setTimeout(k,0);try{return a(k,0)}catch{try{return a.call(null,k,0)}catch{return a.call(this,k,0)}}}function d(k){if(s===clearTimeout)return clearTimeout(k);if((s===u||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(k);try{return s(k)}catch{try{return s.call(null,k)}catch{return s.call(this,k)}}}var f=[],m=!1,g,v=-1;function S(){!m||!g||(m=!1,g.length?f=g.concat(f):v=-1,f.length&&O())}function O(){if(!m){var k=c(S);m=!0;for(var A=f.length;A;){for(g=f,f=[];++v1)for(var C=1;C1?f-1:0),g=1;g2?m-2:0),v=2;v0&&C.syncScrollPosition(C.panes[G][0],V),C.panes[G].push(V))}),C.addEvents(V,W)},C.unregisterPane=function(V,W){W.forEach(function(G){C.findPane(V,G)&&(C.removeEvents(V),C.panes[G].splice(C.panes[G].indexOf(V),1))})},C.addEvents=function(V,W){V.onscroll=C.handlePaneScroll.bind(C,V,W)},C.removeEvents=function(V){V.onscroll=null},C.findPane=function(V,W){return C.panes[W]?C.panes[W].find(function(G){return G===V}):!1},C.handlePaneScroll=function(V,W){C.props.enabled&&window.requestAnimationFrame(function(){C.syncScrollPositions(V,W)})},C.syncScrollPositions=function(V,W){W.forEach(function(G){C.panes[G].forEach(function(j){V!==j&&(C.removeEvents(j,G),C.syncScrollPosition(V,j),window.requestAnimationFrame(function(){C.addEvents(j,W)}))})}),C.props.onSync&&C.props.onSync(V)},A),v(C,x)}return a(w,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(A,C){var x=A.scrollTop,F=A.scrollHeight,M=A.clientHeight,P=A.scrollLeft,V=A.scrollWidth,W=A.clientWidth,G=F-M,j=V-W,z=this.props,X=z.proportional,Z=z.vertical,q=z.horizontal,te=C.scrollHeight-M,Q=C.scrollWidth-W;Z&&G>0&&(C.scrollTop=X?te*x/G:x),q&&j>0&&(C.scrollLeft=X?Q*P/j:P)}},{key:"render",value:function(){return l.default.createElement(f.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),w}(s.Component);O.propTypes={onSync:c.default.func,children:c.default.element.isRequired,proportional:c.default.bool,vertical:c.default.bool,horizontal:c.default.bool,enabled:c.default.bool},O.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=O,r.exports=i.default},function(r,i,o){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function O(E,w){for(var k=0;k"u"||he===null)return""+he;var J=q(he);if(J==="object"){if(he instanceof Date)return"date";if(he instanceof RegExp)return"regexp"}return J}function Q(he){var J=te(he);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function se(he){return!he.constructor||!he.constructor.name?O:he.constructor.name}return E.checkPropTypes=d,E.PropTypes=E,E}}).call(i,o(0))}])})})(eue);var H3=eue.exports;function Xq(){const e=Nc(),t=dI(),[n,r]=L.useState(),i=po(rv),o=po(c4),{mutateAsync:a}=pHe(),{mutateAsync:s}=hHe(),l=L.useCallback(u=>{u&&r(u)},[]);return L.useEffect(()=>{var f;let u;if(!n||!i.doc||!i.client)return;const c=async m=>{if(!o.data)return"";const g=await a({workspaceId:o.data.id,contentLength:new Blob([m]).size,contentType:m.type});return await s({...g,file:m}),`https://codepair-api.yorkie.dev/files/${g.fileKey}`},d=Ar.create({doc:((f=i.doc.getRoot().content)==null?void 0:f.toString())??"",extensions:[zje,MWe(),rHe(i.doc,i.client),t=="light"?aHe:uHe,un.theme({"&":{width:"100%"}}),un.lineWrapping,ov.of([l7e]),dHe,fHe(c,i.doc)]});return u=new un({state:d,parent:n}),e(HFe(u)),()=>{u==null||u.destroy()}},[e,i.client,i.doc,n,t,o.data,a,s]),N.jsx(H3.ScrollSyncPane,{children:N.jsx("div",{style:{height:"100%",overflow:"auto"},children:N.jsx("div",{ref:l,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}})})})}function rS(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 nB(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const mHe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gHe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bHe={};function Kq(e,t){return((t||bHe).jsx?gHe:mHe).test(e)}const yHe=/[ \t\n\f\r]/g;function tue(e){return typeof e=="object"?e.type==="text"?Jq(e.value):!1:Jq(e)}function Jq(e){return e.replace(yHe,"")===""}class bT{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}bT.prototype.property={};bT.prototype.normal={};bT.prototype.space=null;function nue(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&THe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(tZ,kHe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!tZ.test(o)){let a=o.replace(wHe,xHe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=rB}return new i(r,t)}function xHe(e){return"-"+e.toLowerCase()}function kHe(e){return e.charAt(1).toUpperCase()}const CHe={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"},$g=nue([oue,iue,lue,uue,EHe],"html"),Qd=nue([oue,iue,lue,uue,SHe],"svg");function iS(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function iB(e){return e.join(" ").trim()}var cue={},nZ=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_He=/\n/g,AHe=/^\s*/,RHe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,IHe=/^:\s*/,DHe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,NHe=/^[;\s]*/,PHe=/^\s+|\s+$/g,LHe=` +`,rZ="/",iZ="*",Pm="",MHe="comment",$He="declaration",FHe=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(g){var v=g.match(_He);v&&(n+=v.length);var S=g.lastIndexOf(LHe);r=~S?g.length-S:r+g.length}function o(){var g={line:n,column:r};return function(v){return v.position=new a(g),u(),v}}function a(g){this.start=g,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(g){var v=g.exec(e);if(v){var S=v[0];return i(S),e=e.slice(S.length),v}}function u(){l(AHe)}function c(g){var v;for(g=g||[];v=d();)v!==!1&&g.push(v);return g}function d(){var g=o();if(!(rZ!=e.charAt(0)||iZ!=e.charAt(1))){for(var v=2;Pm!=e.charAt(v)&&(iZ!=e.charAt(v)||rZ!=e.charAt(v+1));)++v;if(v+=2,Pm===e.charAt(v-1))return s("End of comment missing");var S=e.slice(2,v-2);return r+=2,i(S),e=e.slice(v),r+=2,g({type:MHe,comment:S})}}function f(){var g=o(),v=l(RHe);if(v){if(d(),!l(IHe))return s("property missing ':'");var S=l(DHe),O=g({type:$He,property:oZ(v[0].replace(nZ,Pm)),value:S?oZ(S[0].replace(nZ,Pm)):Pm});return l(NHe),O}}function m(){var g=[];c(g);for(var v;v=f();)v!==!1&&(g.push(v),c(g));return g}return u(),m()};function oZ(e){return e?e.replace(PHe,Pm):Pm}var BHe=md&&md.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cue,"__esModule",{value:!0});var UHe=BHe(FHe);function jHe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,UHe.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 aZ=cue.default=jHe;const zHe=aZ.default||aZ,fI=due("end"),Yd=due("start");function due(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 VHe(e){const t=Yd(e),n=fI(e);if(t&&n)return{start:t,end:n}}function M1(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sZ(e.position):"start"in e||"end"in e?sZ(e):"line"in e||"column"in e?Y3(e):""}function Y3(e){return lZ(e&&e.line)+":"+lZ(e&&e.column)}function sZ(e){return Y3(e&&e.start)+"-"+Y3(e&&e.end)}function lZ(e){return e&&typeof e=="number"?e:1}class hs 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=M1(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}}hs.prototype.file="";hs.prototype.name="";hs.prototype.reason="";hs.prototype.message="";hs.prototype.stack="";hs.prototype.column=void 0;hs.prototype.line=void 0;hs.prototype.ancestors=void 0;hs.prototype.cause=void 0;hs.prototype.fatal=void 0;hs.prototype.place=void 0;hs.prototype.ruleId=void 0;hs.prototype.source=void 0;const oB={}.hasOwnProperty,WHe=new Map,HHe=/[A-Z]/g,QHe=/-([a-z])/g,YHe=new Set(["table","tbody","thead","tfoot","tr"]),GHe=new Set(["td","th"]),fue="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qHe(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=rQe(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=nQe(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"?Qd:$g,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=pue(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function pue(e,t,n){if(t.type==="element")return ZHe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return XHe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return JHe(e,t,n);if(t.type==="mdxjsEsm")return KHe(e,t);if(t.type==="root")return eQe(e,t,n);if(t.type==="text")return tQe(e,t)}function ZHe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Qd,e.schema=i),e.ancestors.push(t);const o=mue(e,t.tagName,!1),a=iQe(e,t);let s=sB(e,t);return YHe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!tue(l):!0})),hue(e,a,o,t),aB(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function XHe(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)}oS(e,t.position)}function KHe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);oS(e,t.position)}function JHe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Qd,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:mue(e,t.name,!0),a=oQe(e,t),s=sB(e,t);return hue(e,a,o,t),aB(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function eQe(e,t,n){const r={};return aB(r,sB(e,t)),e.create(t,e.Fragment,r,n)}function tQe(e,t){return t.value}function hue(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function aB(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function nQe(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 rQe(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Yd(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 iQe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&oB.call(t.properties,i)){const o=aQe(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&GHe.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 oQe(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 oS(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 oS(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function sB(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:WHe;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?(Ql(e,e.length,0,t),e):t}const dZ={}.hasOwnProperty;function bue(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 Sc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ds=nm(/[A-Za-z]/),ss=nm(/[\dA-Za-z]/),gQe=nm(/[#-'*+\--9=?A-Z^-~]/);function Z_(e){return e!==null&&(e<32||e===127)}const G3=nm(/\d/),bQe=nm(/[\dA-Fa-f]/),yQe=nm(/[!-/:-@[-`{-~]/);function Mn(e){return e!==null&&e<-2}function di(e){return e!==null&&(e<0||e===32)}function Er(e){return e===-2||e===-1||e===32}const pI=nm(new RegExp("\\p{P}|\\p{S}","u")),Cg=nm(/\s/);function nm(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function pv(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 Ir(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Er(l)?(e.enter(n),s(l)):t(l)}function s(l){return Er(l)&&o++a))return;const x=t.events.length;let F=x,M,P;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(M){P=t.events[F][1].end;break}M=!0}for(O(r),C=x;Cw;){const A=n[k];t.containerState=A[1],A[0].exit.call(t,e)}n.length=w}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function TQe(e,t,n){return Ir(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function X_(e){if(e===null||di(e)||Cg(e))return 1;if(pI(e))return 2}function hI(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),f=Object.assign({},e[n][1].start);pZ(d,-l),pZ(f,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:f},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=Su(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Su(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Su(u,hI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Su(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=Su(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Ql(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Er(C)?Ir(e,E,"linePrefix",o+1)(C):E(C)}function E(C){return C===null||Mn(C)?e.check(hZ,v,k)(C):(e.enter("codeFlowValue"),w(C))}function w(C){return C===null||Mn(C)?(e.exit("codeFlowValue"),E(C)):(e.consume(C),w)}function k(C){return e.exit("codeFenced"),t(C)}function A(C,x,F){let M=0;return P;function P(z){return C.enter("lineEnding"),C.consume(z),C.exit("lineEnding"),V}function V(z){return C.enter("codeFencedFence"),Er(z)?Ir(C,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):W(z)}function W(z){return z===s?(C.enter("codeFencedFenceSequence"),G(z)):F(z)}function G(z){return z===s?(M++,C.consume(z),G):M>=a?(C.exit("codeFencedFenceSequence"),Er(z)?Ir(C,j,"whitespace")(z):j(z)):F(z)}function j(z){return z===null||Mn(z)?(C.exit("codeFencedFence"),x(z)):F(z)}}}function LQe(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 cP={name:"codeIndented",tokenize:$Qe},MQe={tokenize:FQe,partial:!0};function $Qe(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Ir(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(MQe,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 FQe(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):Ir(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 BQe={name:"codeText",tokenize:zQe,resolve:UQe,previous:jQe};function UQe(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 Tue(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(O){return O===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(O),e.exit(o),f):O===null||O===32||O===41||Z_(O)?n(O):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(O))}function f(O){return O===62?(e.enter(o),e.consume(O),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(O))}function m(O){return O===62?(e.exit("chunkString"),e.exit(s),f(O)):O===null||O===60||Mn(O)?n(O):(e.consume(O),O===92?g:m)}function g(O){return O===60||O===62||O===92?(e.consume(O),m):m(O)}function v(O){return!c&&(O===null||O===41||di(O))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(O)):c999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(e.exit(o),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):Mn(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||Mn(m)||s++>999?(e.exit("chunkString"),c(m)):(e.consume(m),l||(l=!Er(m)),m===92?f:d)}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function xue(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===a?(e.exit(o),l(a)):f===null?n(f):Mn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ir(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||Mn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===a||f===92?(e.consume(f),c):c(f)}}function $1(e,t){let n;return r;function r(i){return Mn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Er(i)?Ir(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const qQe={name:"definition",tokenize:XQe},ZQe={tokenize:KQe,partial:!0};function XQe(e,t,n){const r=this;let i;return o;function o(m){return e.enter("definition"),a(m)}function a(m){return wue.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=Sc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return di(m)?$1(e,u)(m):u(m)}function u(m){return Tue(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function c(m){return e.attempt(ZQe,d,d)(m)}function d(m){return Er(m)?Ir(e,f,"whitespace")(m):f(m)}function f(m){return m===null||Mn(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function KQe(e,t,n){return r;function r(s){return di(s)?$1(e,i)(s):n(s)}function i(s){return xue(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Er(s)?Ir(e,a,"whitespace")(s):a(s)}function a(s){return s===null||Mn(s)?t(s):n(s)}}const JQe={name:"hardBreakEscape",tokenize:eYe};function eYe(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 tYe={name:"headingAtx",tokenize:rYe,resolve:nYe};function nYe(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"},Ql(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function rYe(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||di(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)):Er(c)?Ir(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||di(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const iYe=["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"],gZ=["pre","script","style","textarea"],oYe={name:"htmlFlow",tokenize:uYe,resolveTo:lYe,concrete:!0},aYe={tokenize:dYe,partial:!0},sYe={tokenize:cYe,partial:!0};function lYe(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 uYe(e,t,n){const r=this;let i,o,a,s,l;return u;function u(J){return c(J)}function c(J){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(J),d}function d(J){return J===33?(e.consume(J),f):J===47?(e.consume(J),o=!0,v):J===63?(e.consume(J),i=3,r.interrupt?t:Q):Ds(J)?(e.consume(J),a=String.fromCharCode(J),S):n(J)}function f(J){return J===45?(e.consume(J),i=2,m):J===91?(e.consume(J),i=5,s=0,g):Ds(J)?(e.consume(J),i=4,r.interrupt?t:Q):n(J)}function m(J){return J===45?(e.consume(J),r.interrupt?t:Q):n(J)}function g(J){const le="CDATA[";return J===le.charCodeAt(s++)?(e.consume(J),s===le.length?r.interrupt?t:W:g):n(J)}function v(J){return Ds(J)?(e.consume(J),a=String.fromCharCode(J),S):n(J)}function S(J){if(J===null||J===47||J===62||di(J)){const le=J===47,ve=a.toLowerCase();return!le&&!o&&gZ.includes(ve)?(i=1,r.interrupt?t(J):W(J)):iYe.includes(a.toLowerCase())?(i=6,le?(e.consume(J),O):r.interrupt?t(J):W(J)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(J):o?E(J):w(J))}return J===45||ss(J)?(e.consume(J),a+=String.fromCharCode(J),S):n(J)}function O(J){return J===62?(e.consume(J),r.interrupt?t:W):n(J)}function E(J){return Er(J)?(e.consume(J),E):P(J)}function w(J){return J===47?(e.consume(J),P):J===58||J===95||Ds(J)?(e.consume(J),k):Er(J)?(e.consume(J),w):P(J)}function k(J){return J===45||J===46||J===58||J===95||ss(J)?(e.consume(J),k):A(J)}function A(J){return J===61?(e.consume(J),C):Er(J)?(e.consume(J),A):w(J)}function C(J){return J===null||J===60||J===61||J===62||J===96?n(J):J===34||J===39?(e.consume(J),l=J,x):Er(J)?(e.consume(J),C):F(J)}function x(J){return J===l?(e.consume(J),l=null,M):J===null||Mn(J)?n(J):(e.consume(J),x)}function F(J){return J===null||J===34||J===39||J===47||J===60||J===61||J===62||J===96||di(J)?A(J):(e.consume(J),F)}function M(J){return J===47||J===62||Er(J)?w(J):n(J)}function P(J){return J===62?(e.consume(J),V):n(J)}function V(J){return J===null||Mn(J)?W(J):Er(J)?(e.consume(J),V):n(J)}function W(J){return J===45&&i===2?(e.consume(J),X):J===60&&i===1?(e.consume(J),Z):J===62&&i===4?(e.consume(J),se):J===63&&i===3?(e.consume(J),Q):J===93&&i===5?(e.consume(J),te):Mn(J)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(aYe,he,G)(J)):J===null||Mn(J)?(e.exit("htmlFlowData"),G(J)):(e.consume(J),W)}function G(J){return e.check(sYe,j,he)(J)}function j(J){return e.enter("lineEnding"),e.consume(J),e.exit("lineEnding"),z}function z(J){return J===null||Mn(J)?G(J):(e.enter("htmlFlowData"),W(J))}function X(J){return J===45?(e.consume(J),Q):W(J)}function Z(J){return J===47?(e.consume(J),a="",q):W(J)}function q(J){if(J===62){const le=a.toLowerCase();return gZ.includes(le)?(e.consume(J),se):W(J)}return Ds(J)&&a.length<8?(e.consume(J),a+=String.fromCharCode(J),q):W(J)}function te(J){return J===93?(e.consume(J),Q):W(J)}function Q(J){return J===62?(e.consume(J),se):J===45&&i===2?(e.consume(J),Q):W(J)}function se(J){return J===null||Mn(J)?(e.exit("htmlFlowData"),he(J)):(e.consume(J),se)}function he(J){return e.exit("htmlFlow"),t(J)}}function cYe(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 dYe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(yT,t,n)}}const fYe={name:"htmlText",tokenize:pYe};function pYe(e,t,n){const r=this;let i,o,a;return s;function s(Q){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(Q),l}function l(Q){return Q===33?(e.consume(Q),u):Q===47?(e.consume(Q),A):Q===63?(e.consume(Q),w):Ds(Q)?(e.consume(Q),F):n(Q)}function u(Q){return Q===45?(e.consume(Q),c):Q===91?(e.consume(Q),o=0,g):Ds(Q)?(e.consume(Q),E):n(Q)}function c(Q){return Q===45?(e.consume(Q),m):n(Q)}function d(Q){return Q===null?n(Q):Q===45?(e.consume(Q),f):Mn(Q)?(a=d,Z(Q)):(e.consume(Q),d)}function f(Q){return Q===45?(e.consume(Q),m):d(Q)}function m(Q){return Q===62?X(Q):Q===45?f(Q):d(Q)}function g(Q){const se="CDATA[";return Q===se.charCodeAt(o++)?(e.consume(Q),o===se.length?v:g):n(Q)}function v(Q){return Q===null?n(Q):Q===93?(e.consume(Q),S):Mn(Q)?(a=v,Z(Q)):(e.consume(Q),v)}function S(Q){return Q===93?(e.consume(Q),O):v(Q)}function O(Q){return Q===62?X(Q):Q===93?(e.consume(Q),O):v(Q)}function E(Q){return Q===null||Q===62?X(Q):Mn(Q)?(a=E,Z(Q)):(e.consume(Q),E)}function w(Q){return Q===null?n(Q):Q===63?(e.consume(Q),k):Mn(Q)?(a=w,Z(Q)):(e.consume(Q),w)}function k(Q){return Q===62?X(Q):w(Q)}function A(Q){return Ds(Q)?(e.consume(Q),C):n(Q)}function C(Q){return Q===45||ss(Q)?(e.consume(Q),C):x(Q)}function x(Q){return Mn(Q)?(a=x,Z(Q)):Er(Q)?(e.consume(Q),x):X(Q)}function F(Q){return Q===45||ss(Q)?(e.consume(Q),F):Q===47||Q===62||di(Q)?M(Q):n(Q)}function M(Q){return Q===47?(e.consume(Q),X):Q===58||Q===95||Ds(Q)?(e.consume(Q),P):Mn(Q)?(a=M,Z(Q)):Er(Q)?(e.consume(Q),M):X(Q)}function P(Q){return Q===45||Q===46||Q===58||Q===95||ss(Q)?(e.consume(Q),P):V(Q)}function V(Q){return Q===61?(e.consume(Q),W):Mn(Q)?(a=V,Z(Q)):Er(Q)?(e.consume(Q),V):M(Q)}function W(Q){return Q===null||Q===60||Q===61||Q===62||Q===96?n(Q):Q===34||Q===39?(e.consume(Q),i=Q,G):Mn(Q)?(a=W,Z(Q)):Er(Q)?(e.consume(Q),W):(e.consume(Q),j)}function G(Q){return Q===i?(e.consume(Q),i=void 0,z):Q===null?n(Q):Mn(Q)?(a=G,Z(Q)):(e.consume(Q),G)}function j(Q){return Q===null||Q===34||Q===39||Q===60||Q===61||Q===96?n(Q):Q===47||Q===62||di(Q)?M(Q):(e.consume(Q),j)}function z(Q){return Q===47||Q===62||di(Q)?M(Q):n(Q)}function X(Q){return Q===62?(e.consume(Q),e.exit("htmlTextData"),e.exit("htmlText"),t):n(Q)}function Z(Q){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(Q),e.exit("lineEnding"),q}function q(Q){return Er(Q)?Ir(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):te(Q)}function te(Q){return e.enter("htmlTextData"),a(Q)}}const uB={name:"labelEnd",tokenize:vYe,resolveTo:yYe,resolveAll:bYe},hYe={tokenize:OYe},mYe={tokenize:EYe},gYe={tokenize:SYe};function bYe(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"),Er(u)?Ir(e,s,"whitespace")(u):s(u))}}const Qs={name:"list",tokenize:IYe,continuation:{tokenize:DYe},exit:PYe},AYe={tokenize:LYe,partial:!0},RYe={tokenize:NYe,partial:!0};function IYe(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(m){const g=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:G3(m)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(eC,n,u)(m):u(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return G3(m)&&++a<10?(e.consume(m),l):(!r.interrupt||a<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(yT,r.interrupt?n:c,e.attempt(AYe,f,d))}function c(m){return r.containerState.initialBlankLine=!0,o++,f(m)}function d(m){return Er(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):n(m)}function f(m){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function DYe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(yT,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ir(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Er(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(RYe,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ir(e,e.attempt(Qs,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function NYe(e,t,n){const r=this;return Ir(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 PYe(e){e.exit(this.containerState.type)}function LYe(e,t,n){const r=this;return Ir(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!Er(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const bZ={name:"setextUnderline",tokenize:$Ye,resolveTo:MYe};function MYe(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 $Ye(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"),Er(u)?Ir(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Mn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const FYe={tokenize:BYe};function BYe(e){const t=this,n=e.attempt(yT,r,e.attempt(this.parser.constructs.flowInitial,i,Ir(e,e.attempt(this.parser.constructs.flow,i,e.attempt(WQe,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 UYe={resolveAll:Cue()},jYe=kue("string"),zYe=kue("text");function kue(e){return{tokenize:t,resolveAll:Cue(e==="text"?VYe: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 f=-1;if(d)for(;++f-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 QYe(e,t){let n=-1;const r=[];let i;for(;++n0){const ft=ye.tokenStack[ye.tokenStack.length-1];(ft[1]||vZ).call(ye,void 0,ft[0])}for(Oe.position={start:Np(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:Np(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De1?"-"+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 vGe(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 OGe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Rue(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 EGe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rue(e,t);const i={src:pv(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 SGe(e,t){const n={src:pv(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 TGe(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 wGe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rue(e,t);const i={href:pv(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 xGe(e,t){const n={href:pv(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 kGe(e,t,n){const r=e.all(t),i=n?CGe(n):Iue(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 _Ge(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=Yd(t.children[1]),l=fI(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 NGe(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(SZ(t.slice(i),i>0,!1)),o.join("")}function SZ(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===OZ||o===EZ;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===OZ||o===EZ;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function MGe(e,t){const n={type:"text",value:LGe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function $Ge(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const FGe={blockquote:pGe,break:hGe,code:mGe,delete:gGe,emphasis:bGe,footnoteReference:yGe,heading:vGe,html:OGe,imageReference:EGe,image:SGe,inlineCode:TGe,linkReference:wGe,link:xGe,listItem:kGe,list:_Ge,paragraph:AGe,root:RGe,strong:IGe,table:DGe,tableCell:PGe,tableRow:NGe,text:MGe,thematicBreak:$Ge,toml:Hx,yaml:Hx,definition:Hx,footnoteDefinition:Hx};function Hx(){}const Due=-1,mI=0,K_=1,J_=2,cB=3,dB=4,fB=5,pB=6,Nue=7,Pue=8,TZ=typeof self=="object"?self:globalThis,BGe=(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 mI:case Due:return n(a,i);case K_:{const s=n([],i);for(const l of a)s.push(r(l));return s}case J_:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case cB:return n(new Date(a),i);case dB:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case fB:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case pB:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case Nue:{const{name:s,message:l}=a;return n(new TZ[s](l),i)}case Pue:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new TZ[o](a),i)};return r},wZ=e=>BGe(new Map,e)(0),Cb="",{toString:UGe}={},{keys:jGe}=Object,IO=e=>{const t=typeof e;if(t!=="object"||!e)return[mI,t];const n=UGe.call(e).slice(8,-1);switch(n){case"Array":return[K_,Cb];case"Object":return[J_,Cb];case"Date":return[cB,Cb];case"RegExp":return[dB,Cb];case"Map":return[fB,Cb];case"Set":return[pB,Cb]}return n.includes("Array")?[K_,n]:n.includes("Error")?[Nue,n]:[J_,n]},Qx=([e,t])=>e===mI&&(t==="function"||t==="symbol"),zGe=(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]=IO(a);switch(s){case mI:{let c=a;switch(l){case"bigint":s=Pue,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Due],a)}return i([s,c],a)}case K_:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const f of a)c.push(o(f));return d}case J_:{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 f of jGe(a))(e||!Qx(IO(a[f])))&&c.push([o(f),o(a[f])]);return d}case cB:return i([s,a.toISOString()],a);case dB:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case fB:{const c=[],d=i([s,c],a);for(const[f,m]of a)(e||!(Qx(IO(f))||Qx(IO(m))))&&c.push([o(f),o(m)]);return d}case pB:{const c=[],d=i([s,c],a);for(const f of a)(e||!Qx(IO(f)))&&c.push(o(f));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},xZ=(e,{json:t,lossy:n}={})=>{const r=[];return zGe(!(t||n),!!t,new Map,r)(e),r},_g=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wZ(xZ(e,t)):structuredClone(e):(e,t)=>wZ(xZ(e,t));function VGe(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 WGe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function HGe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||VGe,r=e.options.footnoteBackLabel||WGe,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&g.push({type:"text",value:" "});let E=typeof n=="string"?n:n(l,m);typeof E=="string"&&(E={type:"text",value:E}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const S=c[c.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const E=S.children[S.children.length-1];E&&E.type==="text"?E.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...g)}else c.push(...g);const O={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,O),s.push(O)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{..._g(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 vT=function(e){if(e==null)return qGe;if(typeof e=="function")return gI(e);if(typeof e=="object")return Array.isArray(e)?QGe(e):YGe(e);if(typeof e=="string")return GGe(e);throw new Error("Expected function, string, or object as test")};function QGe(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let m=Lue,g,v,S;if((!t||o(l,u,c[c.length-1]||void 0))&&(m=KGe(n(l,c)),m[0]===eA))return m;if("children"in l&&l.children){const O=l;if(O.children&&m[0]!==F1)for(v=(r?O.children.length:-1)+a,S=c.concat(O);v>-1&&v0&&n.push({type:"text",value:` -`}),n}function AZ(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function RZ(e,t){const n=Wqe(e,t),r=n.one(e,void 0),i=Mqe(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` -`},i),o}function Zqe(e,t){return e&&"run"in e?async function(n,r){const i=RZ(n,{file:r,...t});await e.run(i,r)}:function(n,r){return RZ(n,{file:r,...t||e})}}function IZ(e){if(e)throw e}var rC=Object.prototype.hasOwnProperty,Bue=Object.prototype.toString,DZ=Object.defineProperty,NZ=Object.getOwnPropertyDescriptor,PZ=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Bue.call(t)==="[object Array]"},LZ=function(t){if(!t||Bue.call(t)!=="[object Object]")return!1;var n=rC.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&rC.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||rC.call(t,i)},MZ=function(t,n){DZ&&n.name==="__proto__"?DZ(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},$Z=function(t,n){if(n==="__proto__")if(rC.call(t,n)){if(NZ)return NZ(t,n).value}else return;return t[n]},Xqe=function e(){var t,n,r,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});ls.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const ad={basename:eZe,dirname:tZe,extname:nZe,join:rZe,sep:"/"};function eZe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ET(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 s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function tZe(e){if(ET(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 nZe(e){ET(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===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 rZe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function oZe(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function ET(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const sZe={cwd:aZe};function aZe(){return"/"}function e4(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lZe(e){if(typeof e=="string")e=new URL(e);else if(!e4(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 uZe(e)}function uZe(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[m,...g]=c;const v=r[p][1];JM(v)&&JM(m)&&(m=mP(!0,v,m)),r[p]=[u,m,...g]}}}}const pZe=new b6().freeze();function vP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function OP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function EP(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 BZ(e){if(!JM(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function UZ(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function qx(e){return hZe(e)?e:new Uue(e)}function hZe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mZe(e){return typeof e=="string"||gZe(e)}function gZe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const bZe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jZ=[],zZ={allowDangerousHtml:!0},yZe=/^(https?|ircs?|mailto|xmpp)$/i,vZe=[{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 OZe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||jZ,l=e.remarkPlugins||jZ,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zZ}:zZ,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||EZe,m=pZe().use(rqe).use(l).use(Zqe,u).use(a),g=new Uue;typeof r=="string"&&(g.value=r);for(const S of vZe)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+bZe+S.id,void 0);const v=m.parse(g);let E=m.runSync(v,g);return i&&(E={type:"element",tagName:"div",properties:{className:i},children:E.type==="root"?E.children:[E]}),cl(E,O),UQe(E,{Fragment:N.Fragment,components:o,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function O(S,x,C){if(S.type==="raw"&&C&&typeof x=="number")return c?C.children.splice(x,1):C.children[x]={type:"text",value:S.value},x;if(S.type==="element"){let I;for(I in fP)if(Object.hasOwn(fP,I)&&Object.hasOwn(S.properties,I)){const _=S.properties[I],w=fP[I];(w===null||w.includes(S.tagName))&&(S.properties[I]=p(String(_||""),I,S))}}if(S.type==="element"){let I=t?!t.includes(S.tagName):s?s.includes(S.tagName):!1;if(!I&&n&&typeof x=="number"&&(I=!n(S,x,C)),I&&C&&typeof x=="number")return d&&S.children?C.children.splice(x,1,...S.children):C.children.splice(x,1),x}}}function EZe(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||yZe.test(e.slice(0,t))?e:""}function VZ(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 SZe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function TZe(e,t,n){const i=OT((n||{}).ignore||[]),o=wZe(t);let s=-1;for(;++s0?{type:"text",value:_}:void 0),_===!1?p.lastIndex=C+1:(g!==C&&S.push({type:"text",value:u.value.slice(g,C)}),Array.isArray(_)?S.push(..._):_&&S.push(_),g=C+x[0].length,O=!0),!p.global)break;x=p.exec(u.value)}return O?(g?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=VZ(e,"(");let o=VZ(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 jue(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Cg(n)||mR(n))&&(!t||n!==47)}zue.peek=qZe;function BZe(){return{enter:{gfmFootnoteDefinition:jZe,gfmFootnoteDefinitionLabelString:zZe,gfmFootnoteCall:WZe,gfmFootnoteCallString:QZe},exit:{gfmFootnoteDefinition:HZe,gfmFootnoteDefinitionLabelString:VZe,gfmFootnoteCall:GZe,gfmFootnoteCallString:YZe}}}function UZe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ZZe,footnoteReference:zue}}}function jZe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zZe(){this.buffer()}function VZe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Sc(this.sliceSerialize(e)).toLowerCase()}function HZe(e){this.exit(e)}function WZe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function QZe(){this.buffer()}function YZe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Sc(this.sliceSerialize(e)).toLowerCase()}function GZe(e){this.exit(e)}function zue(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function qZe(){return"["}function ZZe(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),XZe)),s(),o}function XZe(e,t,n){return t===0?e:(n?"":" ")+e}const KZe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Vue.peek=rXe;function JZe(){return{canContainEols:["delete"],enter:{strikethrough:tXe},exit:{strikethrough:nXe}}}function eXe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:KZe}],handlers:{delete:Vue}}}function tXe(e){this.enter({type:"delete",children:[]},e)}function nXe(e){this.exit(e)}function Vue(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function rXe(){return"~"}function iXe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||sXe,i=[],o=[],s=[],a=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Ea[E])&&(a[E]=S)}g.push(O)}o[u]=g,s[u]=v}let c=-1;if(typeof n=="object"&&"length"in n)for(;++ca[c]&&(a[c]=O),p[c]=O),d[c]=S}o.splice(1,0,d),s.splice(1,0,p),u=-1;const m=[];for(;++u "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),lXe);return i(),s}function lXe(e,t,n){return">"+(n?"":" ")+e}function uXe(e,t){return QZ(e,t.inConstruct,!0)&&!QZ(e,t.notInConstruct,!1)}function QZ(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function dXe(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 fXe(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 pXe(e,t,n,r){const i=fXe(n),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(dXe(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,hXe);return d(),p}const a=n.createTracker(r),l=i.repeat(Math.max(cXe(o,i)+1,3)),u=n.enter("codeFenced");let c=a.move(l);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=a.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(n.safe(e.meta,{before:c,after:` -`,encode:["`"],...a.current()})),d()}return c+=a.move(` -`),o&&(c+=a.move(o+` -`)),c+=a.move(l),u(),c}function hXe(e,t,n){return(n?"":" ")+e}function v6(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 mXe(e,t,n,r){const i=v6(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=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("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` -`,...l.current()}))),a(),e.title&&(a=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),a()),s(),u}function gXe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Hue.peek=bXe;function Hue(e,t,n,r){const i=gXe(n),o=n.enter("emphasis"),s=n.createTracker(r);let a=s.move(i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i),o(),a}function bXe(e,t,n){return n.options.emphasis||"*"}function yXe(e,t){let n=!1;return cl(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,nA}),!!((!e.depth||e.depth<3)&&d6(e)&&(t.options.setext||n))}function vXe(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(yXe(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:` +`}),n}function kZ(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function CZ(e,t){const n=eqe(e,t),r=n.one(e,void 0),i=HGe(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` +`},i),o}function oqe(e,t){return e&&"run"in e?async function(n,r){const i=CZ(n,{file:r,...t});await e.run(i,r)}:function(n,r){return CZ(n,{file:r,...t||e})}}function _Z(e){if(e)throw e}var tC=Object.prototype.hasOwnProperty,$ue=Object.prototype.toString,AZ=Object.defineProperty,RZ=Object.getOwnPropertyDescriptor,IZ=function(t){return typeof Array.isArray=="function"?Array.isArray(t):$ue.call(t)==="[object Array]"},DZ=function(t){if(!t||$ue.call(t)!=="[object Object]")return!1;var n=tC.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&tC.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||tC.call(t,i)},NZ=function(t,n){AZ&&n.name==="__proto__"?AZ(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},PZ=function(t,n){if(n==="__proto__")if(tC.call(t,n)){if(RZ)return RZ(t,n).value}else return;return t[n]},aqe=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 sd={basename:uqe,dirname:cqe,extname:dqe,join:fqe,sep:"/"};function uqe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');OT(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 cqe(e){if(OT(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 dqe(e){OT(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 fqe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function hqe(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 OT(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const mqe={cwd:gqe};function gqe(){return"/"}function K3(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bqe(e){if(typeof e=="string")e=new URL(e);else if(!K3(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 yqe(e)}function yqe(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[m,...g]=c;const v=r[f][1];X3(v)&&X3(m)&&(m=fP(!0,v,m)),r[f]=[u,m,...g]}}}}const Sqe=new hB().freeze();function gP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function yP(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 MZ(e){if(!X3(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $Z(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Yx(e){return Tqe(e)?e:new Fue(e)}function Tqe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wqe(e){return typeof e=="string"||xqe(e)}function xqe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kqe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",FZ=[],BZ={allowDangerousHtml:!0},Cqe=/^(https?|ircs?|mailto|xmpp)$/i,_qe=[{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 Aqe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||FZ,l=e.remarkPlugins||FZ,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...BZ}:BZ,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Rqe,m=Sqe().use(fGe).use(l).use(oqe,u).use(s),g=new Fue;typeof r=="string"&&(g.value=r);for(const E of _qe)Object.hasOwn(e,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+kqe+E.id,void 0);const v=m.parse(g);let S=m.runSync(v,g);return i&&(S={type:"element",tagName:"div",properties:{className:i},children:S.type==="root"?S.children:[S]}),cl(S,O),qHe(S,{Fragment:N.Fragment,components:o,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function O(E,w,k){if(E.type==="raw"&&k&&typeof w=="number")return c?k.children.splice(w,1):k.children[w]={type:"text",value:E.value},w;if(E.type==="element"){let A;for(A in uP)if(Object.hasOwn(uP,A)&&Object.hasOwn(E.properties,A)){const C=E.properties[A],x=uP[A];(x===null||x.includes(E.tagName))&&(E.properties[A]=f(String(C||""),A,E))}}if(E.type==="element"){let A=t?!t.includes(E.tagName):a?a.includes(E.tagName):!1;if(!A&&n&&typeof w=="number"&&(A=!n(E,w,k)),A&&k&&typeof w=="number")return d&&E.children?k.children.splice(w,1,...E.children):k.children.splice(w,1),w}}}function Rqe(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||Cqe.test(e.slice(0,t))?e:""}function UZ(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 Iqe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Dqe(e,t,n){const i=vT((n||{}).ignore||[]),o=Nqe(t);let a=-1;for(;++a0?{type:"text",value:C}:void 0),C===!1?f.lastIndex=k+1:(g!==k&&E.push({type:"text",value:u.value.slice(g,k)}),Array.isArray(C)?E.push(...C):C&&E.push(C),g=k+w[0].length,O=!0),!f.global)break;w=f.exec(u.value)}return O?(g?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=UZ(e,"(");let o=UZ(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 Bue(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Cg(n)||pI(n))&&(!t||n!==47)}Uue.peek=iZe;function Gqe(){return{enter:{gfmFootnoteDefinition:Zqe,gfmFootnoteDefinitionLabelString:Xqe,gfmFootnoteCall:eZe,gfmFootnoteCallString:tZe},exit:{gfmFootnoteDefinition:Jqe,gfmFootnoteDefinitionLabelString:Kqe,gfmFootnoteCall:rZe,gfmFootnoteCallString:nZe}}}function qqe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:oZe,footnoteReference:Uue}}}function Zqe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Xqe(){this.buffer()}function Kqe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Sc(this.sliceSerialize(e)).toLowerCase()}function Jqe(e){this.exit(e)}function eZe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function tZe(){this.buffer()}function nZe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Sc(this.sliceSerialize(e)).toLowerCase()}function rZe(e){this.exit(e)}function Uue(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 iZe(){return"["}function oZe(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()),aZe)),a(),o}function aZe(e,t,n){return t===0?e:(n?"":" ")+e}const sZe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jue.peek=fZe;function lZe(){return{canContainEols:["delete"],enter:{strikethrough:cZe},exit:{strikethrough:dZe}}}function uZe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:sZe}],handlers:{delete:jue}}}function cZe(e){this.enter({type:"delete",children:[]},e)}function dZe(e){this.exit(e)}function jue(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 fZe(){return"~"}function pZe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||mZe,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Ss[S])&&(s[S]=E)}g.push(O)}o[u]=g,a[u]=v}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=O),f[c]=O),d[c]=E}o.splice(1,0,d),a.splice(1,0,f),u=-1;const m=[];for(;++u "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),bZe);return i(),a}function bZe(e,t,n){return">"+(n?"":" ")+e}function yZe(e,t){return VZ(e,t.inConstruct,!0)&&!VZ(e,t.notInConstruct,!1)}function VZ(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 OZe(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 EZe(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 SZe(e,t,n,r){const i=EZe(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(OZe(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(o,TZe);return d(),f}const s=n.createTracker(r),l=i.repeat(Math.max(vZe(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 TZe(e,t,n){return(n?"":" ")+e}function gB(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 wZe(e,t,n,r){const i=gB(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 xZe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}zue.peek=kZe;function zue(e,t,n,r){const i=xZe(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 kZe(e,t,n){return n.options.emphasis||"*"}function CZe(e,t){let n=!1;return cl(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,eA}),!!((!e.depth||e.depth<3)&&lB(e)&&(t.options.setext||n))}function _Ze(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(CZe(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),f=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 s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");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?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),a(),u}Wue.peek=OXe;function Wue(e){return e.value||""}function OXe(){return"<"}Que.peek=EXe;function Que(e,t,n,r){const i=v6(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=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("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=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),a()),u+=l.move(")"),s(),u}function EXe(){return"!"}Yue.peek=SXe;function Yue(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=c,o(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function SXe(){return"!"}Gue.peek=TXe;function Gue(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))}Zue.peek=wXe;function Zue(e,t,n,r){const i=v6(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(que(e,n)){const c=n.stack;n.stack=[],a=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),a(),n.stack=c,d}a=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),a(),u}function wXe(e,t,n){return que(e,n)?"<":"["}Xue.peek=xXe;function Xue(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=c,o(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function xXe(){return"["}function O6(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 kXe(e){const t=O6(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 CXe(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 Kue(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 _Xe(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?CXe(n):O6(n);const a=e.ordered?s==="."?")":".":kXe(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&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),Kue(n)===s&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),c);return l(),u;function c(d,p,m){return p?(m?"":" ".repeat(s))+d:(m?o:o+" ".repeat(s-o.length))+d}}function IXe(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s}const DXe=OT(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function NXe(e,t,n,r){return(e.children.some(function(s){return DXe(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function PXe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Jue.peek=LXe;function Jue(e,t,n,r){const i=PXe(n),o=n.enter("strong"),s=n.createTracker(r);let a=s.move(i+i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a}function LXe(e,t,n){return n.options.strong||"*"}function MXe(e,t,n,r){return n.safe(e.value,r)}function $Xe(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 FXe(e,t,n){const r=(Kue(n)+(n.options.ruleSpaces?" ":"")).repeat($Xe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ece={blockquote:aXe,break:YZ,code:pXe,definition:mXe,emphasis:Hue,hardBreak:YZ,heading:vXe,html:Wue,image:Que,imageReference:Yue,inlineCode:Gue,link:Zue,linkReference:Xue,list:_Xe,listItem:RXe,paragraph:IXe,root:NXe,strong:Jue,text:MXe,thematicBreak:FXe};function BXe(){return{enter:{table:UXe,tableData:GZ,tableHeader:GZ,tableRow:zXe},exit:{codeText:VXe,table:jXe,tableData:xP,tableHeader:xP,tableRow:xP}}}function UXe(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 jXe(e){this.exit(e),this.data.inTable=void 0}function zXe(e){this.enter({type:"tableRow",children:[]},e)}function xP(e){this.exit(e)}function GZ(e){this.enter({type:"tableCell",children:[]},e)}function VXe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,HXe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function HXe(e,t){return t==="|"?t:e}function WXe(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:s,tableCell:l,tableRow:a}};function s(m,g,v,E){return u(c(m,v,E),m.align)}function a(m,g,v,E){const O=d(m,v,E),S=u([O]);return S.slice(0,S.indexOf(` -`))}function l(m,g,v,E){const O=v.enter("tableCell"),S=v.enter("phrasing"),x=v.containerPhrasing(m,{...E,before:o,after:o});return S(),O(),x}function u(m,g){return iXe(m,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function c(m,g,v){const E=m.children;let O=-1;const S=[],x=g.enter("table");for(;++O0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const uKe={tokenize:bKe,partial:!0};function cKe(){return{document:{91:{tokenize:hKe,continuation:{tokenize:mKe},exit:gKe}},text:{91:{tokenize:pKe},93:{add:"after",tokenize:dKe,resolveTo:fKe}}}}function dKe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);const u=Sc(r.sliceSerialize({start:s.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 fKe(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)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[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",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function pKe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return a;function a(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&&!s||d===null||d===91||di(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Sc(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return di(d)||(s=!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 hKe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,a;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(s>999||g===93&&!a||g===null||g===91||di(g))return n(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=Sc(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return di(g)||(a=!0),s++,e.consume(g),g===92?d:c}function d(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),Ir(e,m,"gfmFootnoteDefinitionWhitespace")):n(g)}function m(g){return t(g)}}function mKe(e,t,n){return e.check(vT,t,e.attempt(uKe,t,n))}function gKe(e){e.exit("gfmFootnoteDefinition")}function bKe(e,t,n){const r=this;return Ir(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function yKe(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(s,a){let l=-1;for(;++l1?l(g):(s.consume(g),d++,m);if(d<2&&!n)return l(g);const E=s.exit("strikethroughSequenceTemporary"),O=J_(g);return E._open=!O||O===2&&!!v,E._close=!v||v===2&&!!O,a(g)}}}class vKe{constructor(){this.map=[]}add(t,n,r){OKe(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function OKe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const j=r.events[W][1].type;if(j==="lineEnding"||j==="linePrefix")W--;else break}const H=W>-1?r.events[W][1].type:null,q=H==="tableHead"||H==="tableRow"?_:l;return q===_&&r.parser.lazy[r.now().line]?n(L):q(L)}function l(L){return e.enter("tableHead"),e.enter("tableRow"),u(L)}function u(L){return L===124||(s=!0,o+=1),c(L)}function c(L){return L===null?n(L):Mn(L)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),m):n(L):Er(L)?Ir(e,c,"whitespace")(L):(o+=1,s&&(s=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(L)))}function d(L){return L===null||L===124||di(L)?(e.exit("data"),c(L)):(e.consume(L),L===92?p:d)}function p(L){return L===92||L===124?(e.consume(L),d):d(L)}function m(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(L):(e.enter("tableDelimiterRow"),s=!1,Er(L)?Ir(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):g(L))}function g(L){return L===45||L===58?E(L):L===124?(s=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),v):I(L)}function v(L){return Er(L)?Ir(e,E,"whitespace")(L):E(L)}function E(L){return L===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),O):L===45?(o+=1,O(L)):L===null||Mn(L)?C(L):I(L)}function O(L){return L===45?(e.enter("tableDelimiterFiller"),S(L)):I(L)}function S(L){return L===45?(e.consume(L),S):L===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(L))}function x(L){return Er(L)?Ir(e,C,"whitespace")(L):C(L)}function C(L){return L===124?g(L):L===null||Mn(L)?!s||i!==o?I(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):I(L)}function I(L){return n(L)}function _(L){return e.enter("tableRow"),w(L)}function w(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),w):L===null||Mn(L)?(e.exit("tableRow"),t(L)):Er(L)?Ir(e,w,"whitespace")(L):(e.enter("data"),F(L))}function F(L){return L===null||L===124||di(L)?(e.exit("data"),w(L)):(e.consume(L),L===92?M:F)}function M(L){return L===92||L===124?(e.consume(L),F):F(L)}}function wKe(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,d;const p=new vKe;for(;++nn[2]+1){const g=n[2]+1,v=n[3]-n[2]-1;e.add(g,v,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},j0(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function ZZ(e,t,n,r,i){const o=[],s=j0(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function j0(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const xKe={tokenize:CKe};function kKe(){return{text:{91:xKe}}}function CKe(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 di(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return Mn(l)?t(l):Er(l)?e.check({tokenize:_Ke},t,n)(l):n(l)}}function _Ke(e,t,n){return Ir(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function AKe(e){return vue([eKe(),cKe(),yKe(e),SKe(),kKe()])}const RKe={};function IKe(e){const t=this,n=e||RKe,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(AKe(n)),o.push(ZXe()),s.push(XXe(n))}const XZ=/[#.]/g;function DKe(e,t){const n=e||"",r={};let i=0,o,s;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}}function i(o){const s=o&&o.line,a=o&&o.column;if(typeof s=="number"&&typeof a=="number"&&!Number.isNaN(s)&&!Number.isNaN(a)&&s-1 in n){const l=(n[s-2]||0)+a-1||0;if(l>-1&&l=55296&&e<=57343}function iJe(e){return e>=56320&&e<=57343}function oJe(e,t){return(e-55296)*1024+9216+t}function hce(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function mce(e){return e>=64976&&e<=65007||rJe.has(e)}var ut;(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"})(ut=ut||(ut={}));const sJe=65536;class aJe{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=sJe,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(iJe(n))return this.pos++,this._addGap(),oJe(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ue.EOF;return this._err(ut.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,ue.EOF;const r=this.html.charCodeAt(n);return r===ue.CARRIAGE_RETURN?ue.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,ue.EOF;let t=this.html.charCodeAt(this.pos);return t===ue.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ue.LINE_FEED):t===ue.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,pce(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ue.LINE_FEED||t===ue.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){hce(t)?this._err(ut.controlCharacterInInputStream):mce(t)&&this._err(ut.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 Mp=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))),lJe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var CP;const uJe=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]]),cJe=(CP=String.fromCodePoint)!==null&&CP!==void 0?CP: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 dJe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=uJe.get(e))!==null&&t!==void 0?t:e}var ps;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ps||(ps={}));const fJe=32;var xd;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(xd||(xd={}));function i4(e){return e>=ps.ZERO&&e<=ps.NINE}function pJe(e){return e>=ps.UPPER_A&&e<=ps.UPPER_F||e>=ps.LOWER_A&&e<=ps.LOWER_F}function hJe(e){return e>=ps.UPPER_A&&e<=ps.UPPER_Z||e>=ps.LOWER_A&&e<=ps.LOWER_Z||i4(e)}function mJe(e){return e===ps.EQUALS||hJe(e)}var ls;(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"})(ls||(ls={}));var Lm;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lm||(Lm={}));class gJe{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ls.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lm.Strict}startEntity(t){this.decodeMode=t,this.state=ls.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ls.EntityStart:return t.charCodeAt(n)===ps.NUM?(this.state=ls.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ls.NamedEntity,this.stateNamedEntity(t,n));case ls.NumericStart:return this.stateNumericStart(t,n);case ls.NumericDecimal:return this.stateNumericDecimal(t,n);case ls.NumericHex:return this.stateNumericHex(t,n);case ls.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|fJe)===ps.LOWER_X?(this.state=ls.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ls.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(s===ps.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Lm.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]&xd.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]&~xd.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ls.NamedEntity:return this.result!==0&&(this.decodeMode!==Lm.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ls.NumericDecimal:return this.emitNumericEntity(0,2);case ls.NumericHex:return this.emitNumericEntity(0,3);case ls.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ls.EntityStart:return 0}}}function bce(e){let t="";const n=new gJe(e,r=>t+=cJe(r));return function(i,o){let s=0,a=0;for(;(a=i.indexOf("&",a))>=0;){t+=i.slice(s,a),n.startEntity(o);const u=n.write(i,a+1);if(u<0){s=a+n.end();break}s=a+u,a=u===0?s+1:s}const l=t+i.slice(s);return t="",l}}function yce(e,t,n,r){const i=(t&xd.BRANCH_LENGTH)>>7,o=t&xd.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 s=n,a=s+i-1;for(;s<=a;){const l=s+a>>>1,u=e[l];if(ur)a=l-1;else return e[l+i]}return-1}bce(Mp);bce(lJe);var vt;(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/"})(vt=vt||(vt={}));var kh;(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"})(kh=kh||(kh={}));var Ll;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ll=Ll||(Ll={}));var Je;(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"})(Je=Je||(Je={}));var $;(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"})($=$||($={}));const bJe=new Map([[Je.A,$.A],[Je.ADDRESS,$.ADDRESS],[Je.ANNOTATION_XML,$.ANNOTATION_XML],[Je.APPLET,$.APPLET],[Je.AREA,$.AREA],[Je.ARTICLE,$.ARTICLE],[Je.ASIDE,$.ASIDE],[Je.B,$.B],[Je.BASE,$.BASE],[Je.BASEFONT,$.BASEFONT],[Je.BGSOUND,$.BGSOUND],[Je.BIG,$.BIG],[Je.BLOCKQUOTE,$.BLOCKQUOTE],[Je.BODY,$.BODY],[Je.BR,$.BR],[Je.BUTTON,$.BUTTON],[Je.CAPTION,$.CAPTION],[Je.CENTER,$.CENTER],[Je.CODE,$.CODE],[Je.COL,$.COL],[Je.COLGROUP,$.COLGROUP],[Je.DD,$.DD],[Je.DESC,$.DESC],[Je.DETAILS,$.DETAILS],[Je.DIALOG,$.DIALOG],[Je.DIR,$.DIR],[Je.DIV,$.DIV],[Je.DL,$.DL],[Je.DT,$.DT],[Je.EM,$.EM],[Je.EMBED,$.EMBED],[Je.FIELDSET,$.FIELDSET],[Je.FIGCAPTION,$.FIGCAPTION],[Je.FIGURE,$.FIGURE],[Je.FONT,$.FONT],[Je.FOOTER,$.FOOTER],[Je.FOREIGN_OBJECT,$.FOREIGN_OBJECT],[Je.FORM,$.FORM],[Je.FRAME,$.FRAME],[Je.FRAMESET,$.FRAMESET],[Je.H1,$.H1],[Je.H2,$.H2],[Je.H3,$.H3],[Je.H4,$.H4],[Je.H5,$.H5],[Je.H6,$.H6],[Je.HEAD,$.HEAD],[Je.HEADER,$.HEADER],[Je.HGROUP,$.HGROUP],[Je.HR,$.HR],[Je.HTML,$.HTML],[Je.I,$.I],[Je.IMG,$.IMG],[Je.IMAGE,$.IMAGE],[Je.INPUT,$.INPUT],[Je.IFRAME,$.IFRAME],[Je.KEYGEN,$.KEYGEN],[Je.LABEL,$.LABEL],[Je.LI,$.LI],[Je.LINK,$.LINK],[Je.LISTING,$.LISTING],[Je.MAIN,$.MAIN],[Je.MALIGNMARK,$.MALIGNMARK],[Je.MARQUEE,$.MARQUEE],[Je.MATH,$.MATH],[Je.MENU,$.MENU],[Je.META,$.META],[Je.MGLYPH,$.MGLYPH],[Je.MI,$.MI],[Je.MO,$.MO],[Je.MN,$.MN],[Je.MS,$.MS],[Je.MTEXT,$.MTEXT],[Je.NAV,$.NAV],[Je.NOBR,$.NOBR],[Je.NOFRAMES,$.NOFRAMES],[Je.NOEMBED,$.NOEMBED],[Je.NOSCRIPT,$.NOSCRIPT],[Je.OBJECT,$.OBJECT],[Je.OL,$.OL],[Je.OPTGROUP,$.OPTGROUP],[Je.OPTION,$.OPTION],[Je.P,$.P],[Je.PARAM,$.PARAM],[Je.PLAINTEXT,$.PLAINTEXT],[Je.PRE,$.PRE],[Je.RB,$.RB],[Je.RP,$.RP],[Je.RT,$.RT],[Je.RTC,$.RTC],[Je.RUBY,$.RUBY],[Je.S,$.S],[Je.SCRIPT,$.SCRIPT],[Je.SECTION,$.SECTION],[Je.SELECT,$.SELECT],[Je.SOURCE,$.SOURCE],[Je.SMALL,$.SMALL],[Je.SPAN,$.SPAN],[Je.STRIKE,$.STRIKE],[Je.STRONG,$.STRONG],[Je.STYLE,$.STYLE],[Je.SUB,$.SUB],[Je.SUMMARY,$.SUMMARY],[Je.SUP,$.SUP],[Je.TABLE,$.TABLE],[Je.TBODY,$.TBODY],[Je.TEMPLATE,$.TEMPLATE],[Je.TEXTAREA,$.TEXTAREA],[Je.TFOOT,$.TFOOT],[Je.TD,$.TD],[Je.TH,$.TH],[Je.THEAD,$.THEAD],[Je.TITLE,$.TITLE],[Je.TR,$.TR],[Je.TRACK,$.TRACK],[Je.TT,$.TT],[Je.U,$.U],[Je.UL,$.UL],[Je.SVG,$.SVG],[Je.VAR,$.VAR],[Je.WBR,$.WBR],[Je.XMP,$.XMP]]);function g1(e){var t;return(t=bJe.get(e))!==null&&t!==void 0?t:$.UNKNOWN}const Ft=$,yJe={[vt.HTML]:new Set([Ft.ADDRESS,Ft.APPLET,Ft.AREA,Ft.ARTICLE,Ft.ASIDE,Ft.BASE,Ft.BASEFONT,Ft.BGSOUND,Ft.BLOCKQUOTE,Ft.BODY,Ft.BR,Ft.BUTTON,Ft.CAPTION,Ft.CENTER,Ft.COL,Ft.COLGROUP,Ft.DD,Ft.DETAILS,Ft.DIR,Ft.DIV,Ft.DL,Ft.DT,Ft.EMBED,Ft.FIELDSET,Ft.FIGCAPTION,Ft.FIGURE,Ft.FOOTER,Ft.FORM,Ft.FRAME,Ft.FRAMESET,Ft.H1,Ft.H2,Ft.H3,Ft.H4,Ft.H5,Ft.H6,Ft.HEAD,Ft.HEADER,Ft.HGROUP,Ft.HR,Ft.HTML,Ft.IFRAME,Ft.IMG,Ft.INPUT,Ft.LI,Ft.LINK,Ft.LISTING,Ft.MAIN,Ft.MARQUEE,Ft.MENU,Ft.META,Ft.NAV,Ft.NOEMBED,Ft.NOFRAMES,Ft.NOSCRIPT,Ft.OBJECT,Ft.OL,Ft.P,Ft.PARAM,Ft.PLAINTEXT,Ft.PRE,Ft.SCRIPT,Ft.SECTION,Ft.SELECT,Ft.SOURCE,Ft.STYLE,Ft.SUMMARY,Ft.TABLE,Ft.TBODY,Ft.TD,Ft.TEMPLATE,Ft.TEXTAREA,Ft.TFOOT,Ft.TH,Ft.THEAD,Ft.TITLE,Ft.TR,Ft.TRACK,Ft.UL,Ft.WBR,Ft.XMP]),[vt.MATHML]:new Set([Ft.MI,Ft.MO,Ft.MN,Ft.MS,Ft.MTEXT,Ft.ANNOTATION_XML]),[vt.SVG]:new Set([Ft.TITLE,Ft.FOREIGN_OBJECT,Ft.DESC]),[vt.XLINK]:new Set,[vt.XML]:new Set,[vt.XMLNS]:new Set};function vce(e){return e===Ft.H1||e===Ft.H2||e===Ft.H3||e===Ft.H4||e===Ft.H5||e===Ft.H6}Je.STYLE,Je.SCRIPT,Je.XMP,Je.IFRAME,Je.NOEMBED,Je.NOFRAMES,Je.PLAINTEXT;const vJe=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 ge;(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"})(ge||(ge={}));const wo={DATA:ge.DATA,RCDATA:ge.RCDATA,RAWTEXT:ge.RAWTEXT,SCRIPT_DATA:ge.SCRIPT_DATA,PLAINTEXT:ge.PLAINTEXT,CDATA_SECTION:ge.CDATA_SECTION};function UO(e){return e>=ue.DIGIT_0&&e<=ue.DIGIT_9}function aO(e){return e>=ue.LATIN_CAPITAL_A&&e<=ue.LATIN_CAPITAL_Z}function OJe(e){return e>=ue.LATIN_SMALL_A&&e<=ue.LATIN_SMALL_Z}function $p(e){return OJe(e)||aO(e)}function o4(e){return $p(e)||UO(e)}function Oce(e){return e>=ue.LATIN_CAPITAL_A&&e<=ue.LATIN_CAPITAL_F}function Ece(e){return e>=ue.LATIN_SMALL_A&&e<=ue.LATIN_SMALL_F}function EJe(e){return UO(e)||Oce(e)||Ece(e)}function Xx(e){return e+32}function Sce(e){return e===ue.SPACE||e===ue.LINE_FEED||e===ue.TABULATION||e===ue.FORM_FEED}function SJe(e){return e===ue.EQUALS_SIGN||o4(e)}function eX(e){return Sce(e)||e===ue.SOLIDUS||e===ue.GREATER_THAN_SIGN}class TJe{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=ge.DATA,this.returnState=ge.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new aJe(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(ut.endTagWithAttributes),t.selfClosing&&this._err(ut.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 hr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case hr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case hr.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:hr.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=Sce(t)?hr.WHITESPACE_CHARACTER:t===ue.NULL?hr.NULL_CHARACTER:hr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(hr.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let o=0,s=Mp[0];o>=0&&(o=yce(Mp,s,o+1,t),!(o<0));t=this._consume()){r+=1,s=Mp[o];const a=s&xd.VALUE_LENGTH;if(a){const l=(a>>14)-1;if(t!==ue.SEMICOLON&&this._isCharacterReferenceInAttribute()&&SJe(this.preprocessor.peek(1))?(n=[ue.AMPERSAND],o+=l):(n=l===0?[Mp[o]&~xd.VALUE_LENGTH]:l===1?[Mp[++o]]:[Mp[++o],Mp[++o]],r=0,i=t!==ue.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(ut.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ge.DATA:{this._stateData(t);break}case ge.RCDATA:{this._stateRcdata(t);break}case ge.RAWTEXT:{this._stateRawtext(t);break}case ge.SCRIPT_DATA:{this._stateScriptData(t);break}case ge.PLAINTEXT:{this._statePlaintext(t);break}case ge.TAG_OPEN:{this._stateTagOpen(t);break}case ge.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ge.TAG_NAME:{this._stateTagName(t);break}case ge.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ge.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ge.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ge.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ge.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ge.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ge.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ge.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ge.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ge.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ge.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ge.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ge.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ge.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ge.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ge.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ge.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ge.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ge.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ge.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ge.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ge.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ge.COMMENT_START:{this._stateCommentStart(t);break}case ge.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ge.COMMENT:{this._stateComment(t);break}case ge.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ge.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ge.COMMENT_END:{this._stateCommentEnd(t);break}case ge.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ge.DOCTYPE:{this._stateDoctype(t);break}case ge.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ge.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ge.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ge.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ge.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ge.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ge.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ge.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ge.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ge.CDATA_SECTION:{this._stateCdataSection(t);break}case ge.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ge.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ge.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ge.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ge.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ge.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ge.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ge.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ue.LESS_THAN_SIGN:{this.state=ge.TAG_OPEN;break}case ue.AMPERSAND:{this.returnState=ge.DATA,this.state=ge.CHARACTER_REFERENCE;break}case ue.NULL:{this._err(ut.unexpectedNullCharacter),this._emitCodePoint(t);break}case ue.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ue.AMPERSAND:{this.returnState=ge.RCDATA,this.state=ge.CHARACTER_REFERENCE;break}case ue.LESS_THAN_SIGN:{this.state=ge.RCDATA_LESS_THAN_SIGN;break}case ue.NULL:{this._err(ut.unexpectedNullCharacter),this._emitChars(ji);break}case ue.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ue.LESS_THAN_SIGN:{this.state=ge.RAWTEXT_LESS_THAN_SIGN;break}case ue.NULL:{this._err(ut.unexpectedNullCharacter),this._emitChars(ji);break}case ue.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ue.LESS_THAN_SIGN:{this.state=ge.SCRIPT_DATA_LESS_THAN_SIGN;break}case ue.NULL:{this._err(ut.unexpectedNullCharacter),this._emitChars(ji);break}case ue.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ue.NULL:{this._err(ut.unexpectedNullCharacter),this._emitChars(ji);break}case ue.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if($p(t))this._createStartTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case ue.EXCLAMATION_MARK:{this.state=ge.MARKUP_DECLARATION_OPEN;break}case ue.SOLIDUS:{this.state=ge.END_TAG_OPEN;break}case ue.QUESTION_MARK:{this._err(ut.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ge.BOGUS_COMMENT,this._stateBogusComment(t);break}case ue.EOF:{this._err(ut.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ut.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ge.DATA,this._stateData(t)}}_stateEndTagOpen(t){if($p(t))this._createEndTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case ue.GREATER_THAN_SIGN:{this._err(ut.missingEndTagName),this.state=ge.DATA;break}case ue.EOF:{this._err(ut.eofBeforeTagName),this._emitChars("");break}case ue.NULL:{this._err(ut.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_ESCAPED,this._emitChars(ji);break}case ue.EOF:{this._err(ut.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ue.SOLIDUS?this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:$p(t)?(this._emitChars("<"),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ge.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){$p(t)?(this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ue.NULL:{this._err(ut.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ji);break}case ue.EOF:{this._err(ut.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ue.SOLIDUS?(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Wa.SCRIPT,!1)&&eX(this.preprocessor.peek(Wa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(ut.characterReferenceOutsideUnicodeRange),this.charRefCode=ue.REPLACEMENT_CHARACTER;else if(pce(this.charRefCode))this._err(ut.surrogateCharacterReference),this.charRefCode=ue.REPLACEMENT_CHARACTER;else if(mce(this.charRefCode))this._err(ut.noncharacterCharacterReference);else if(hce(this.charRefCode)||this.charRefCode===ue.CARRIAGE_RETURN){this._err(ut.controlCharacterReference);const n=vJe.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Tce=new Set([$.DD,$.DT,$.LI,$.OPTGROUP,$.OPTION,$.P,$.RB,$.RP,$.RT,$.RTC]),tX=new Set([...Tce,$.CAPTION,$.COLGROUP,$.TBODY,$.TD,$.TFOOT,$.TH,$.THEAD,$.TR]),Kx=new Map([[$.APPLET,vt.HTML],[$.CAPTION,vt.HTML],[$.HTML,vt.HTML],[$.MARQUEE,vt.HTML],[$.OBJECT,vt.HTML],[$.TABLE,vt.HTML],[$.TD,vt.HTML],[$.TEMPLATE,vt.HTML],[$.TH,vt.HTML],[$.ANNOTATION_XML,vt.MATHML],[$.MI,vt.MATHML],[$.MN,vt.MATHML],[$.MO,vt.MATHML],[$.MS,vt.MATHML],[$.MTEXT,vt.MATHML],[$.DESC,vt.SVG],[$.FOREIGN_OBJECT,vt.SVG],[$.TITLE,vt.SVG]]),wJe=[$.H1,$.H2,$.H3,$.H4,$.H5,$.H6],xJe=[$.TR,$.TEMPLATE,$.HTML],kJe=[$.TBODY,$.TFOOT,$.THEAD,$.TEMPLATE,$.HTML],CJe=[$.TABLE,$.TEMPLATE,$.HTML],_Je=[$.TD,$.TH];class AJe{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=$.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===$.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===vt.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])!==vt.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(CJe,vt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(kJe,vt.HTML)}clearBackToTableRowContext(){this.clearBackTo(xJe,vt.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]===$.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]===$.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===vt.HTML)return!0;if(Kx.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(vce(n)&&r===vt.HTML)return!0;if(Kx.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===vt.HTML)return!0;if((r===$.UL||r===$.OL)&&i===vt.HTML||Kx.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===vt.HTML)return!0;if(r===$.BUTTON&&i===vt.HTML||Kx.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])===vt.HTML){if(r===t)return!0;if(r===$.TABLE||r===$.TEMPLATE||r===$.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])===vt.HTML){if(n===$.TBODY||n===$.THEAD||n===$.TFOOT)return!0;if(n===$.TABLE||n===$.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===vt.HTML){if(r===t)return!0;if(r!==$.OPTION&&r!==$.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Tce.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;tX.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&tX.has(this.currentTagId);)this.pop()}}const _P=3;var fc;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(fc=fc||(fc={}));const nX={type:fc.Marker};class RJe{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let a=0;a[s.name,s.value]));let o=0;for(let s=0;si.get(l.name)===l.value)&&(o+=1,o>=_P&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(nX)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:fc.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:fc.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(nX);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===fc.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===fc.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===fc.Element&&n.element===t)}}function rX(e){return{nodeName:"#text",value:e,parentNode:null}}const z0={createDocument(){return{nodeName:"#document",mode:Ll.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};z0.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(z0.isTextNode(n)){n.value+=t;return}}z0.appendChild(e,rX(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&z0.isTextNode(r)?r.value+=t:z0.insertBefore(e,rX(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function MJe(e){return e.name===wce&&e.publicId===null&&(e.systemId===null||e.systemId===IJe)}function $Je(e){if(e.name!==wce)return Ll.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===DJe)return Ll.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),PJe.has(n))return Ll.QUIRKS;let r=t===null?NJe:xce;if(iX(n,r))return Ll.QUIRKS;if(r=t===null?kce:LJe,iX(n,r))return Ll.LIMITED_QUIRKS}return Ll.NO_QUIRKS}const oX={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},FJe="definitionurl",BJe="definitionURL",UJe=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])),jJe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:vt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:vt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:vt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:vt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:vt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:vt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:vt.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:vt.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:vt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:vt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:vt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:vt.XMLNS}]]),zJe=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])),VJe=new Set([$.B,$.BIG,$.BLOCKQUOTE,$.BODY,$.BR,$.CENTER,$.CODE,$.DD,$.DIV,$.DL,$.DT,$.EM,$.EMBED,$.H1,$.H2,$.H3,$.H4,$.H5,$.H6,$.HEAD,$.HR,$.I,$.IMG,$.LI,$.LISTING,$.MENU,$.META,$.NOBR,$.OL,$.P,$.PRE,$.RUBY,$.S,$.SMALL,$.SPAN,$.STRONG,$.STRIKE,$.SUB,$.SUP,$.TABLE,$.TT,$.U,$.UL,$.VAR]);function HJe(e){const t=e.tagID;return t===$.FONT&&e.attrs.some(({name:r})=>r===kh.COLOR||r===kh.SIZE||r===kh.FACE)||VJe.has(t)}function Cce(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,s;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,s=this.fragmentContextID):{current:o,currentTagId:s}=this.openElements,this._setContextModes(o,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===vt.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,vt.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Se.TEXT}switchToPlaintextParsing(){this.insertionMode=Se.TEXT,this.originalInsertionMode=Se.IN_BODY,this.tokenizer.state=wo.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)===Je.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==vt.HTML))switch(this.fragmentContextID){case $.TITLE:case $.TEXTAREA:{this.tokenizer.state=wo.RCDATA;break}case $.STYLE:case $.XMP:case $.IFRAME:case $.NOEMBED:case $.NOFRAMES:case $.NOSCRIPT:{this.tokenizer.state=wo.RAWTEXT;break}case $.SCRIPT:{this.tokenizer.state=wo.SCRIPT_DATA;break}case $.PLAINTEXT:{this.tokenizer.state=wo.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,vt.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,vt.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(Je.HTML,vt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,$.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,s=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),o=n.type===hr.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===$.SVG&&this.treeAdapter.getTagName(n)===Je.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===vt.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===$.MGLYPH||t.tagID===$.MALIGNMARK)&&!this._isIntegrationPoint(r,n,vt.HTML)}_processToken(t){switch(t.type){case hr.CHARACTER:{this.onCharacter(t);break}case hr.NULL_CHARACTER:{this.onNullCharacter(t);break}case hr.COMMENT:{this.onComment(t);break}case hr.DOCTYPE:{this.onDoctype(t);break}case hr.START_TAG:{this._processStartTag(t);break}case hr.END_TAG:{this.onEndTag(t);break}case hr.EOF:{this.onEof(t);break}case hr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return GJe(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===fc.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=Se.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion($.P),this.openElements.popUntilTagNamePopped($.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case $.TR:{this.insertionMode=Se.IN_ROW;return}case $.TBODY:case $.THEAD:case $.TFOOT:{this.insertionMode=Se.IN_TABLE_BODY;return}case $.CAPTION:{this.insertionMode=Se.IN_CAPTION;return}case $.COLGROUP:{this.insertionMode=Se.IN_COLUMN_GROUP;return}case $.TABLE:{this.insertionMode=Se.IN_TABLE;return}case $.BODY:{this.insertionMode=Se.IN_BODY;return}case $.FRAMESET:{this.insertionMode=Se.IN_FRAMESET;return}case $.SELECT:{this._resetInsertionModeForSelect(t);return}case $.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case $.HTML:{this.insertionMode=this.headElement?Se.AFTER_HEAD:Se.BEFORE_HEAD;return}case $.TD:case $.TH:{if(t>0){this.insertionMode=Se.IN_CELL;return}break}case $.HEAD:{if(t>0){this.insertionMode=Se.IN_HEAD;return}break}}this.insertionMode=Se.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===$.TEMPLATE)break;if(r===$.TABLE){this.insertionMode=Se.IN_SELECT_IN_TABLE;return}}this.insertionMode=Se.IN_SELECT}_isElementCausesFosterParenting(t){return Ace.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 $.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===vt.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case $.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 yJe[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Rtt(this,t);return}switch(this.insertionMode){case Se.INITIAL:{Nv(this,t);break}case Se.BEFORE_HTML:{jO(this,t);break}case Se.BEFORE_HEAD:{zO(this,t);break}case Se.IN_HEAD:{VO(this,t);break}case Se.IN_HEAD_NO_SCRIPT:{HO(this,t);break}case Se.AFTER_HEAD:{WO(this,t);break}case Se.IN_BODY:case Se.IN_CAPTION:case Se.IN_CELL:case Se.IN_TEMPLATE:{Ice(this,t);break}case Se.TEXT:case Se.IN_SELECT:case Se.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Se.IN_TABLE:case Se.IN_TABLE_BODY:case Se.IN_ROW:{AP(this,t);break}case Se.IN_TABLE_TEXT:{$ce(this,t);break}case Se.IN_COLUMN_GROUP:{rA(this,t);break}case Se.AFTER_BODY:{iA(this,t);break}case Se.AFTER_AFTER_BODY:{oC(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Att(this,t);return}switch(this.insertionMode){case Se.INITIAL:{Nv(this,t);break}case Se.BEFORE_HTML:{jO(this,t);break}case Se.BEFORE_HEAD:{zO(this,t);break}case Se.IN_HEAD:{VO(this,t);break}case Se.IN_HEAD_NO_SCRIPT:{HO(this,t);break}case Se.AFTER_HEAD:{WO(this,t);break}case Se.TEXT:{this._insertCharacters(t);break}case Se.IN_TABLE:case Se.IN_TABLE_BODY:case Se.IN_ROW:{AP(this,t);break}case Se.IN_COLUMN_GROUP:{rA(this,t);break}case Se.AFTER_BODY:{iA(this,t);break}case Se.AFTER_AFTER_BODY:{oC(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){s4(this,t);return}switch(this.insertionMode){case Se.INITIAL:case Se.BEFORE_HTML:case Se.BEFORE_HEAD:case Se.IN_HEAD:case Se.IN_HEAD_NO_SCRIPT:case Se.AFTER_HEAD:case Se.IN_BODY:case Se.IN_TABLE:case Se.IN_CAPTION:case Se.IN_COLUMN_GROUP:case Se.IN_TABLE_BODY:case Se.IN_ROW:case Se.IN_CELL:case Se.IN_SELECT:case Se.IN_SELECT_IN_TABLE:case Se.IN_TEMPLATE:case Se.IN_FRAMESET:case Se.AFTER_FRAMESET:{s4(this,t);break}case Se.IN_TABLE_TEXT:{Pv(this,t);break}case Se.AFTER_BODY:{oet(this,t);break}case Se.AFTER_AFTER_BODY:case Se.AFTER_AFTER_FRAMESET:{set(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Se.INITIAL:{aet(this,t);break}case Se.BEFORE_HEAD:case Se.IN_HEAD:case Se.IN_HEAD_NO_SCRIPT:case Se.AFTER_HEAD:{this._err(t,ut.misplacedDoctype);break}case Se.IN_TABLE_TEXT:{Pv(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ut.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Itt(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Se.INITIAL:{Nv(this,t);break}case Se.BEFORE_HTML:{uet(this,t);break}case Se.BEFORE_HEAD:{det(this,t);break}case Se.IN_HEAD:{Fc(this,t);break}case Se.IN_HEAD_NO_SCRIPT:{het(this,t);break}case Se.AFTER_HEAD:{get(this,t);break}case Se.IN_BODY:{ma(this,t);break}case Se.IN_TABLE:{My(this,t);break}case Se.IN_TABLE_TEXT:{Pv(this,t);break}case Se.IN_CAPTION:{ptt(this,t);break}case Se.IN_COLUMN_GROUP:{C6(this,t);break}case Se.IN_TABLE_BODY:{ER(this,t);break}case Se.IN_ROW:{SR(this,t);break}case Se.IN_CELL:{gtt(this,t);break}case Se.IN_SELECT:{Uce(this,t);break}case Se.IN_SELECT_IN_TABLE:{ytt(this,t);break}case Se.IN_TEMPLATE:{Ott(this,t);break}case Se.AFTER_BODY:{Stt(this,t);break}case Se.IN_FRAMESET:{Ttt(this,t);break}case Se.AFTER_FRAMESET:{xtt(this,t);break}case Se.AFTER_AFTER_BODY:{Ctt(this,t);break}case Se.AFTER_AFTER_FRAMESET:{_tt(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Dtt(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Se.INITIAL:{Nv(this,t);break}case Se.BEFORE_HTML:{cet(this,t);break}case Se.BEFORE_HEAD:{fet(this,t);break}case Se.IN_HEAD:{pet(this,t);break}case Se.IN_HEAD_NO_SCRIPT:{met(this,t);break}case Se.AFTER_HEAD:{bet(this,t);break}case Se.IN_BODY:{OR(this,t);break}case Se.TEXT:{rtt(this,t);break}case Se.IN_TABLE:{lS(this,t);break}case Se.IN_TABLE_TEXT:{Pv(this,t);break}case Se.IN_CAPTION:{htt(this,t);break}case Se.IN_COLUMN_GROUP:{mtt(this,t);break}case Se.IN_TABLE_BODY:{a4(this,t);break}case Se.IN_ROW:{Bce(this,t);break}case Se.IN_CELL:{btt(this,t);break}case Se.IN_SELECT:{jce(this,t);break}case Se.IN_SELECT_IN_TABLE:{vtt(this,t);break}case Se.IN_TEMPLATE:{Ett(this,t);break}case Se.AFTER_BODY:{Vce(this,t);break}case Se.IN_FRAMESET:{wtt(this,t);break}case Se.AFTER_FRAMESET:{ktt(this,t);break}case Se.AFTER_AFTER_BODY:{oC(this,t);break}}}onEof(t){switch(this.insertionMode){case Se.INITIAL:{Nv(this,t);break}case Se.BEFORE_HTML:{jO(this,t);break}case Se.BEFORE_HEAD:{zO(this,t);break}case Se.IN_HEAD:{VO(this,t);break}case Se.IN_HEAD_NO_SCRIPT:{HO(this,t);break}case Se.AFTER_HEAD:{WO(this,t);break}case Se.IN_BODY:case Se.IN_TABLE:case Se.IN_CAPTION:case Se.IN_COLUMN_GROUP:case Se.IN_TABLE_BODY:case Se.IN_ROW:case Se.IN_CELL:case Se.IN_SELECT:case Se.IN_SELECT_IN_TABLE:{Lce(this,t);break}case Se.TEXT:{itt(this,t);break}case Se.IN_TABLE_TEXT:{Pv(this,t);break}case Se.IN_TEMPLATE:{zce(this,t);break}case Se.AFTER_BODY:case Se.IN_FRAMESET:case Se.AFTER_FRAMESET:case Se.AFTER_AFTER_BODY:case Se.AFTER_AFTER_FRAMESET:{k6(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ue.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 Se.IN_HEAD:case Se.IN_HEAD_NO_SCRIPT:case Se.AFTER_HEAD:case Se.TEXT:case Se.IN_COLUMN_GROUP:case Se.IN_SELECT:case Se.IN_SELECT_IN_TABLE:case Se.IN_FRAMESET:case Se.AFTER_FRAMESET:{this._insertCharacters(t);break}case Se.IN_BODY:case Se.IN_CAPTION:case Se.IN_CELL:case Se.IN_TEMPLATE:case Se.AFTER_BODY:case Se.AFTER_AFTER_BODY:case Se.AFTER_AFTER_FRAMESET:{Rce(this,t);break}case Se.IN_TABLE:case Se.IN_TABLE_BODY:case Se.IN_ROW:{AP(this,t);break}case Se.IN_TABLE_TEXT:{Mce(this,t);break}}}}function JJe(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):Pce(e,t),n}function eet(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 tet(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,s=i;s!==n;o++,s=i){i=e.openElements.getCommonAncestor(s);const a=e.activeFormattingElements.getElementEntry(s),l=a&&o>=XJe;!a||l?(l&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(s)):(s=net(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function net(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 ret(e,t,n){const r=e.treeAdapter.getTagName(t),i=g1(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===$.TEMPLATE&&o===vt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function iet(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 x6(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],s=e.treeAdapter.getNodeSourceCodeLocation(o);s&&!s.endTag&&e._setEndLocation(o,t)}}}}function aet(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ll.QUIRKS:$Je(t);MJe(t)||e._err(t,ut.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Se.BEFORE_HTML}function Nv(e,t){e._err(t,ut.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ll.QUIRKS),e.insertionMode=Se.BEFORE_HTML,e._processToken(t)}function uet(e,t){t.tagID===$.HTML?(e._insertElement(t,vt.HTML),e.insertionMode=Se.BEFORE_HEAD):jO(e,t)}function cet(e,t){const n=t.tagID;(n===$.HTML||n===$.HEAD||n===$.BODY||n===$.BR)&&jO(e,t)}function jO(e,t){e._insertFakeRootElement(),e.insertionMode=Se.BEFORE_HEAD,e._processToken(t)}function det(e,t){switch(t.tagID){case $.HTML:{ma(e,t);break}case $.HEAD:{e._insertElement(t,vt.HTML),e.headElement=e.openElements.current,e.insertionMode=Se.IN_HEAD;break}default:zO(e,t)}}function fet(e,t){const n=t.tagID;n===$.HEAD||n===$.BODY||n===$.HTML||n===$.BR?zO(e,t):e._err(t,ut.endTagWithoutMatchingOpenElement)}function zO(e,t){e._insertFakeElement(Je.HEAD,$.HEAD),e.headElement=e.openElements.current,e.insertionMode=Se.IN_HEAD,e._processToken(t)}function Fc(e,t){switch(t.tagID){case $.HTML:{ma(e,t);break}case $.BASE:case $.BASEFONT:case $.BGSOUND:case $.LINK:case $.META:{e._appendElement(t,vt.HTML),t.ackSelfClosing=!0;break}case $.TITLE:{e._switchToTextParsing(t,wo.RCDATA);break}case $.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,wo.RAWTEXT):(e._insertElement(t,vt.HTML),e.insertionMode=Se.IN_HEAD_NO_SCRIPT);break}case $.NOFRAMES:case $.STYLE:{e._switchToTextParsing(t,wo.RAWTEXT);break}case $.SCRIPT:{e._switchToTextParsing(t,wo.SCRIPT_DATA);break}case $.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Se.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Se.IN_TEMPLATE);break}case $.HEAD:{e._err(t,ut.misplacedStartTagForHeadElement);break}default:VO(e,t)}}function pet(e,t){switch(t.tagID){case $.HEAD:{e.openElements.pop(),e.insertionMode=Se.AFTER_HEAD;break}case $.BODY:case $.BR:case $.HTML:{VO(e,t);break}case $.TEMPLATE:{Fg(e,t);break}default:e._err(t,ut.endTagWithoutMatchingOpenElement)}}function Fg(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==$.TEMPLATE&&e._err(t,ut.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped($.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ut.endTagWithoutMatchingOpenElement)}function VO(e,t){e.openElements.pop(),e.insertionMode=Se.AFTER_HEAD,e._processToken(t)}function het(e,t){switch(t.tagID){case $.HTML:{ma(e,t);break}case $.BASEFONT:case $.BGSOUND:case $.HEAD:case $.LINK:case $.META:case $.NOFRAMES:case $.STYLE:{Fc(e,t);break}case $.NOSCRIPT:{e._err(t,ut.nestedNoscriptInHead);break}default:HO(e,t)}}function met(e,t){switch(t.tagID){case $.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Se.IN_HEAD;break}case $.BR:{HO(e,t);break}default:e._err(t,ut.endTagWithoutMatchingOpenElement)}}function HO(e,t){const n=t.type===hr.EOF?ut.openElementsLeftAfterEof:ut.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Se.IN_HEAD,e._processToken(t)}function get(e,t){switch(t.tagID){case $.HTML:{ma(e,t);break}case $.BODY:{e._insertElement(t,vt.HTML),e.framesetOk=!1,e.insertionMode=Se.IN_BODY;break}case $.FRAMESET:{e._insertElement(t,vt.HTML),e.insertionMode=Se.IN_FRAMESET;break}case $.BASE:case $.BASEFONT:case $.BGSOUND:case $.LINK:case $.META:case $.NOFRAMES:case $.SCRIPT:case $.STYLE:case $.TEMPLATE:case $.TITLE:{e._err(t,ut.abandonedHeadElementChild),e.openElements.push(e.headElement,$.HEAD),Fc(e,t),e.openElements.remove(e.headElement);break}case $.HEAD:{e._err(t,ut.misplacedStartTagForHeadElement);break}default:WO(e,t)}}function bet(e,t){switch(t.tagID){case $.BODY:case $.HTML:case $.BR:{WO(e,t);break}case $.TEMPLATE:{Fg(e,t);break}default:e._err(t,ut.endTagWithoutMatchingOpenElement)}}function WO(e,t){e._insertFakeElement(Je.BODY,$.BODY),e.insertionMode=Se.IN_BODY,vR(e,t)}function vR(e,t){switch(t.type){case hr.CHARACTER:{Ice(e,t);break}case hr.WHITESPACE_CHARACTER:{Rce(e,t);break}case hr.COMMENT:{s4(e,t);break}case hr.START_TAG:{ma(e,t);break}case hr.END_TAG:{OR(e,t);break}case hr.EOF:{Lce(e,t);break}}}function Rce(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ice(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function yet(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vet(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Oet(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,vt.HTML),e.insertionMode=Se.IN_FRAMESET)}function Eet(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML)}function Tet(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),vce(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,vt.HTML)}function wet(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function xet(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML),n||(e.formElement=e.openElements.current))}function ket(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===$.LI&&i===$.LI||(n===$.DD||n===$.DT)&&(i===$.DD||i===$.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==$.ADDRESS&&i!==$.DIV&&i!==$.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML)}function Cet(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML),e.tokenizer.state=wo.PLAINTEXT}function _et(e,t){e.openElements.hasInScope($.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped($.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.framesetOk=!1}function Aet(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Je.A);n&&(x6(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ret(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Iet(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope($.NOBR)&&(x6(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,vt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Det(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Net(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ll.QUIRKS&&e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML),e.framesetOk=!1,e.insertionMode=Se.IN_TABLE}function Dce(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,vt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Nce(e){const t=gce(e,kh.TYPE);return t!=null&&t.toLowerCase()===qJe}function Pet(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,vt.HTML),Nce(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Let(e,t){e._appendElement(t,vt.HTML),t.ackSelfClosing=!0}function Met(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._appendElement(t,vt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $et(e,t){t.tagName=Je.IMG,t.tagID=$.IMG,Dce(e,t)}function Fet(e,t){e._insertElement(t,vt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=wo.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Se.TEXT}function Bet(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,wo.RAWTEXT)}function Uet(e,t){e.framesetOk=!1,e._switchToTextParsing(t,wo.RAWTEXT)}function lX(e,t){e._switchToTextParsing(t,wo.RAWTEXT)}function jet(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Se.IN_TABLE||e.insertionMode===Se.IN_CAPTION||e.insertionMode===Se.IN_TABLE_BODY||e.insertionMode===Se.IN_ROW||e.insertionMode===Se.IN_CELL?Se.IN_SELECT_IN_TABLE:Se.IN_SELECT}function zet(e,t){e.openElements.currentTagId===$.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML)}function Vet(e,t){e.openElements.hasInScope($.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,vt.HTML)}function Het(e,t){e.openElements.hasInScope($.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion($.RTC),e._insertElement(t,vt.HTML)}function Wet(e,t){e._reconstructActiveFormattingElements(),Cce(t),w6(t),t.selfClosing?e._appendElement(t,vt.MATHML):e._insertElement(t,vt.MATHML),t.ackSelfClosing=!0}function Qet(e,t){e._reconstructActiveFormattingElements(),_ce(t),w6(t),t.selfClosing?e._appendElement(t,vt.SVG):e._insertElement(t,vt.SVG),t.ackSelfClosing=!0}function uX(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML)}function ma(e,t){switch(t.tagID){case $.I:case $.S:case $.B:case $.U:case $.EM:case $.TT:case $.BIG:case $.CODE:case $.FONT:case $.SMALL:case $.STRIKE:case $.STRONG:{Ret(e,t);break}case $.A:{Aet(e,t);break}case $.H1:case $.H2:case $.H3:case $.H4:case $.H5:case $.H6:{Tet(e,t);break}case $.P:case $.DL:case $.OL:case $.UL:case $.DIV:case $.DIR:case $.NAV:case $.MAIN:case $.MENU:case $.ASIDE:case $.CENTER:case $.FIGURE:case $.FOOTER:case $.HEADER:case $.HGROUP:case $.DIALOG:case $.DETAILS:case $.ADDRESS:case $.ARTICLE:case $.SECTION:case $.SUMMARY:case $.FIELDSET:case $.BLOCKQUOTE:case $.FIGCAPTION:{Eet(e,t);break}case $.LI:case $.DD:case $.DT:{ket(e,t);break}case $.BR:case $.IMG:case $.WBR:case $.AREA:case $.EMBED:case $.KEYGEN:{Dce(e,t);break}case $.HR:{Met(e,t);break}case $.RB:case $.RTC:{Vet(e,t);break}case $.RT:case $.RP:{Het(e,t);break}case $.PRE:case $.LISTING:{wet(e,t);break}case $.XMP:{Bet(e,t);break}case $.SVG:{Qet(e,t);break}case $.HTML:{yet(e,t);break}case $.BASE:case $.LINK:case $.META:case $.STYLE:case $.TITLE:case $.SCRIPT:case $.BGSOUND:case $.BASEFONT:case $.TEMPLATE:{Fc(e,t);break}case $.BODY:{vet(e,t);break}case $.FORM:{xet(e,t);break}case $.NOBR:{Iet(e,t);break}case $.MATH:{Wet(e,t);break}case $.TABLE:{Net(e,t);break}case $.INPUT:{Pet(e,t);break}case $.PARAM:case $.TRACK:case $.SOURCE:{Let(e,t);break}case $.IMAGE:{$et(e,t);break}case $.BUTTON:{_et(e,t);break}case $.APPLET:case $.OBJECT:case $.MARQUEE:{Det(e,t);break}case $.IFRAME:{Uet(e,t);break}case $.SELECT:{jet(e,t);break}case $.OPTION:case $.OPTGROUP:{zet(e,t);break}case $.NOEMBED:{lX(e,t);break}case $.FRAMESET:{Oet(e,t);break}case $.TEXTAREA:{Fet(e,t);break}case $.NOSCRIPT:{e.options.scriptingEnabled?lX(e,t):uX(e,t);break}case $.PLAINTEXT:{Cet(e,t);break}case $.COL:case $.TH:case $.TD:case $.TR:case $.HEAD:case $.FRAME:case $.TBODY:case $.TFOOT:case $.THEAD:case $.CAPTION:case $.COLGROUP:break;default:uX(e,t)}}function Yet(e,t){if(e.openElements.hasInScope($.BODY)&&(e.insertionMode=Se.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Get(e,t){e.openElements.hasInScope($.BODY)&&(e.insertionMode=Se.AFTER_BODY,Vce(e,t))}function qet(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Zet(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope($.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped($.FORM):n&&e.openElements.remove(n))}function Xet(e){e.openElements.hasInButtonScope($.P)||e._insertFakeElement(Je.P,$.P),e._closePElement()}function Ket(e){e.openElements.hasInListItemScope($.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion($.LI),e.openElements.popUntilTagNamePopped($.LI))}function Jet(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function ett(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ttt(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ntt(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Je.BR,$.BR),e.openElements.pop(),e.framesetOk=!1}function Pce(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==$.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,s))break}}function OR(e,t){switch(t.tagID){case $.A:case $.B:case $.I:case $.S:case $.U:case $.EM:case $.TT:case $.BIG:case $.CODE:case $.FONT:case $.NOBR:case $.SMALL:case $.STRIKE:case $.STRONG:{x6(e,t);break}case $.P:{Xet(e);break}case $.DL:case $.UL:case $.OL:case $.DIR:case $.DIV:case $.NAV:case $.PRE:case $.MAIN:case $.MENU:case $.ASIDE:case $.BUTTON:case $.CENTER:case $.FIGURE:case $.FOOTER:case $.HEADER:case $.HGROUP:case $.DIALOG:case $.ADDRESS:case $.ARTICLE:case $.DETAILS:case $.SECTION:case $.SUMMARY:case $.LISTING:case $.FIELDSET:case $.BLOCKQUOTE:case $.FIGCAPTION:{qet(e,t);break}case $.LI:{Ket(e);break}case $.DD:case $.DT:{Jet(e,t);break}case $.H1:case $.H2:case $.H3:case $.H4:case $.H5:case $.H6:{ett(e);break}case $.BR:{ntt(e);break}case $.BODY:{Yet(e,t);break}case $.HTML:{Get(e,t);break}case $.FORM:{Zet(e);break}case $.APPLET:case $.OBJECT:case $.MARQUEE:{ttt(e,t);break}case $.TEMPLATE:{Fg(e,t);break}default:Pce(e,t)}}function Lce(e,t){e.tmplInsertionModeStack.length>0?zce(e,t):k6(e,t)}function rtt(e,t){var n;t.tagID===$.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function itt(e,t){e._err(t,ut.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function AP(e,t){if(Ace.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Se.IN_TABLE_TEXT,t.type){case hr.CHARACTER:{$ce(e,t);break}case hr.WHITESPACE_CHARACTER:{Mce(e,t);break}}else ST(e,t)}function ott(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,vt.HTML),e.insertionMode=Se.IN_CAPTION}function stt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,vt.HTML),e.insertionMode=Se.IN_COLUMN_GROUP}function att(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Je.COLGROUP,$.COLGROUP),e.insertionMode=Se.IN_COLUMN_GROUP,C6(e,t)}function ltt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,vt.HTML),e.insertionMode=Se.IN_TABLE_BODY}function utt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Je.TBODY,$.TBODY),e.insertionMode=Se.IN_TABLE_BODY,ER(e,t)}function ctt(e,t){e.openElements.hasInTableScope($.TABLE)&&(e.openElements.popUntilTagNamePopped($.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function dtt(e,t){Nce(t)?e._appendElement(t,vt.HTML):ST(e,t),t.ackSelfClosing=!0}function ftt(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,vt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function My(e,t){switch(t.tagID){case $.TD:case $.TH:case $.TR:{utt(e,t);break}case $.STYLE:case $.SCRIPT:case $.TEMPLATE:{Fc(e,t);break}case $.COL:{att(e,t);break}case $.FORM:{ftt(e,t);break}case $.TABLE:{ctt(e,t);break}case $.TBODY:case $.TFOOT:case $.THEAD:{ltt(e,t);break}case $.INPUT:{dtt(e,t);break}case $.CAPTION:{ott(e,t);break}case $.COLGROUP:{stt(e,t);break}default:ST(e,t)}}function lS(e,t){switch(t.tagID){case $.TABLE:{e.openElements.hasInTableScope($.TABLE)&&(e.openElements.popUntilTagNamePopped($.TABLE),e._resetInsertionMode());break}case $.TEMPLATE:{Fg(e,t);break}case $.BODY:case $.CAPTION:case $.COL:case $.COLGROUP:case $.HTML:case $.TBODY:case $.TD:case $.TFOOT:case $.TH:case $.THEAD:case $.TR:break;default:ST(e,t)}}function ST(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,vR(e,t),e.fosterParentingEnabled=n}function Mce(e,t){e.pendingCharacterTokens.push(t)}function $ce(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Pv(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===$.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===$.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===$.OPTGROUP&&e.openElements.pop();break}case $.OPTION:{e.openElements.currentTagId===$.OPTION&&e.openElements.pop();break}case $.SELECT:{e.openElements.hasInSelectScope($.SELECT)&&(e.openElements.popUntilTagNamePopped($.SELECT),e._resetInsertionMode());break}case $.TEMPLATE:{Fg(e,t);break}}}function ytt(e,t){const n=t.tagID;n===$.CAPTION||n===$.TABLE||n===$.TBODY||n===$.TFOOT||n===$.THEAD||n===$.TR||n===$.TD||n===$.TH?(e.openElements.popUntilTagNamePopped($.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Uce(e,t)}function vtt(e,t){const n=t.tagID;n===$.CAPTION||n===$.TABLE||n===$.TBODY||n===$.TFOOT||n===$.THEAD||n===$.TR||n===$.TD||n===$.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped($.SELECT),e._resetInsertionMode(),e.onEndTag(t)):jce(e,t)}function Ott(e,t){switch(t.tagID){case $.BASE:case $.BASEFONT:case $.BGSOUND:case $.LINK:case $.META:case $.NOFRAMES:case $.SCRIPT:case $.STYLE:case $.TEMPLATE:case $.TITLE:{Fc(e,t);break}case $.CAPTION:case $.COLGROUP:case $.TBODY:case $.TFOOT:case $.THEAD:{e.tmplInsertionModeStack[0]=Se.IN_TABLE,e.insertionMode=Se.IN_TABLE,My(e,t);break}case $.COL:{e.tmplInsertionModeStack[0]=Se.IN_COLUMN_GROUP,e.insertionMode=Se.IN_COLUMN_GROUP,C6(e,t);break}case $.TR:{e.tmplInsertionModeStack[0]=Se.IN_TABLE_BODY,e.insertionMode=Se.IN_TABLE_BODY,ER(e,t);break}case $.TD:case $.TH:{e.tmplInsertionModeStack[0]=Se.IN_ROW,e.insertionMode=Se.IN_ROW,SR(e,t);break}default:e.tmplInsertionModeStack[0]=Se.IN_BODY,e.insertionMode=Se.IN_BODY,ma(e,t)}}function Ett(e,t){t.tagID===$.TEMPLATE&&Fg(e,t)}function zce(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped($.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):k6(e,t)}function Stt(e,t){t.tagID===$.HTML?ma(e,t):iA(e,t)}function Vce(e,t){var n;if(t.tagID===$.HTML){if(e.fragmentContext||(e.insertionMode=Se.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===$.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 iA(e,t)}function iA(e,t){e.insertionMode=Se.IN_BODY,vR(e,t)}function Ttt(e,t){switch(t.tagID){case $.HTML:{ma(e,t);break}case $.FRAMESET:{e._insertElement(t,vt.HTML);break}case $.FRAME:{e._appendElement(t,vt.HTML),t.ackSelfClosing=!0;break}case $.NOFRAMES:{Fc(e,t);break}}}function wtt(e,t){t.tagID===$.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==$.FRAMESET&&(e.insertionMode=Se.AFTER_FRAMESET))}function xtt(e,t){switch(t.tagID){case $.HTML:{ma(e,t);break}case $.NOFRAMES:{Fc(e,t);break}}}function ktt(e,t){t.tagID===$.HTML&&(e.insertionMode=Se.AFTER_AFTER_FRAMESET)}function Ctt(e,t){t.tagID===$.HTML?ma(e,t):oC(e,t)}function oC(e,t){e.insertionMode=Se.IN_BODY,vR(e,t)}function _tt(e,t){switch(t.tagID){case $.HTML:{ma(e,t);break}case $.NOFRAMES:{Fc(e,t);break}}}function Att(e,t){t.chars=ji,e._insertCharacters(t)}function Rtt(e,t){e._insertCharacters(t),e.framesetOk=!1}function Hce(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==vt.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Itt(e,t){if(HJe(t))Hce(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===vt.MATHML?Cce(t):r===vt.SVG&&(WJe(t),_ce(t)),w6(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Dtt(e,t){if(t.tagID===$.P||t.tagID===$.BR){Hce(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)===vt.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Je.AREA,Je.BASE,Je.BASEFONT,Je.BGSOUND,Je.BR,Je.COL,Je.EMBED,Je.FRAME,Je.HR,Je.IMG,Je.INPUT,Je.KEYGEN,Je.LINK,Je.META,Je.PARAM,Je.SOURCE,Je.TRACK,Je.WBR;const Ntt=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),cX={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Wce(e,t){const n=Vtt(e),r=y6("type",{handlers:{root:Ptt,element:Ltt,text:Mtt,comment:Yce,doctype:$tt,raw:Btt},unknown:Utt}),i={parser:n?new aX(cX):aX.getFragmentParser(void 0,cX),handle(a){r(a,i)},stitches:!1,options:t||{}};r(e,i),b1(i,Qd());const o=n?i.parser.document:i.parser.getFragment(),s=VKe(o,{file:i.options.file});return i.stitches&&cl(s,"comment",function(a,l,u){const c=a;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Qce(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 Zce(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Zce(t.parentElement):null}function Qtt(e){var t=n=>{var r=Zce(n.target);r&&(r.classList.add("active"),Wtt(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};P.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Ytt=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Gtt=e=>e;const qtt=cn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:s=!1,skipHtml:a=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:d={},warpperElement:p={},urlTransform:m}=e,g=st(e,Ytt),v=cn.useRef(null);P.useImperativeHandle(t,()=>B({},e,{mdp:v}),[v,e]);var E=(n||"")+" "+(r||"");Qtt(v);var O=[...g.rehypePlugins||[]],S={allowElement:(I,_,w)=>g.allowElement?g.allowElement(I,_,w):/^[A-Za-z0-9]+$/.test(I.tagName)};a&&O.push(qce);var x=[...g.remarkPlugins||[],IKe],C=B({},p,d);return N.jsx("div",B({ref:v,onScroll:l,onMouseOver:u},C,{className:E,style:o,children:N.jsx(OZe,B({},S,g,{skipHtml:a,urlTransform:m||Gtt,rehypePlugins:c?c("rehype",O):O,remarkPlugins:c?c("remark",x):x,children:i||""}))}))});function pb(e){return"children"in e?Xce(e):"value"in e?e.value:""}function Ztt(e){return e.type==="text"?e.value:"children"in e?Xce(e):""}function Xce(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in a)Xtt.call(a,p)&&(d[p]=p==="children"?c:a[p]);return d}}function Jtt(e){return"children"in e&&e.children!==void 0}var l4={exports:{}};(function(e,t){function n(r){let i=[],o;for(let s of r.split(",").map(a=>a.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(o=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[a,l,u,c]=o;if(l&&c){l=parseInt(l),c=parseInt(c);const d=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Bc.displayName="c";Bc.aliases=[];function Bc(e){e.register(Sr),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Bg.displayName="cpp";Bg.aliases=[];function Bg(e){e.register(Bc),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)}TR.displayName="arduino";TR.aliases=["ino"];function TR(e){e.register(Bg),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}wT.displayName="bash";wT.aliases=["sh","shell"];function wT(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"],s=i.variable[1].inside,a=0;a>/g,function(Te,te){return"(?:"+ae[+te]+")"})}function r(Q,ae,Te){return RegExp(n(Q,ae),Te||"")}function i(Q,ae){for(var Te=0;Te>/g,function(){return"(?:"+Q+")"});return Q.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 s(Q){return"\\b(?:"+Q.trim().replace(/ /g,"|")+")\\b"}var a=s(o.typeDeclaration),l=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),u=s(o.typeDeclaration+" "+o.contextual+" "+o.other),c=s(o.type+" "+o.typeDeclaration+" "+o.other),d=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=n(/<<0>>(?:\s*<<1>>)?/.source,[m,d]),v=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,g]),E=/\[\s*(?:,\s*)*\]/.source,O=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,E]),S=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,p,E]),x=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[S]),C=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,v,E]),I={keyword:l,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,w=/"(?:\\.|[^\\"\r\n])*"/.source,F=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[w]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,C]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[a,g]),lookbehind:!0,inside:I},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:I},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[O]),lookbehind:!0,inside:I},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,c,m]),inside:I}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:I},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,v]),inside:I,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:I,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,d]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(d),alias:"class-name",inside:I}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[a,g,m,C,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(C),greedy:!0,inside:I},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var M=w+"|"+_,L=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[M]),W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),H=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,q=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,W]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[H,q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[H]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[W]),inside:t.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var j=/:[^}\r\n]+/.source,z=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[z,j]),Z=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[M]),2),G=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,j]);function ee(Q,ae){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Q]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ae,j]),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:ee(X,z)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:ee(G,Z)}],char:{pattern:RegExp(_),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}Os.displayName="markup";Os.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Os(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 s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}rm.displayName="css";rm.aliases=[];function rm(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)}wR.displayName="diff";wR.aliases=[];function wR(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 +`});return d(),c(),f+` +`+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.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}Vue.peek=AZe;function Vue(e){return e.value||""}function AZe(){return"<"}Wue.peek=RZe;function Wue(e,t,n,r){const i=gB(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 RZe(){return"!"}Hue.peek=IZe;function Hue(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 IZe(){return"!"}Que.peek=DZe;function Que(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))}Gue.peek=NZe;function Gue(e,t,n,r){const i=gB(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Yue(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 NZe(e,t,n){return Yue(e,n)?"<":"["}que.peek=PZe;function que(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 PZe(){return"["}function bB(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 LZe(e){const t=bB(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 MZe(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 Zue(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 $Ze(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?MZe(n):bB(n);const s=e.ordered?a==="."?")":".":LZe(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),Zue(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,f,m){return f?(m?"":" ".repeat(a))+d:(m?o:o+" ".repeat(a-o.length))+d}}function UZe(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const jZe=vT(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function zZe(e,t,n,r){return(e.children.some(function(a){return jZe(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function VZe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Xue.peek=WZe;function Xue(e,t,n,r){const i=VZe(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 WZe(e,t,n){return n.options.strong||"*"}function HZe(e,t,n,r){return n.safe(e.value,r)}function QZe(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 YZe(e,t,n){const r=(Zue(n)+(n.options.ruleSpaces?" ":"")).repeat(QZe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Kue={blockquote:gZe,break:WZ,code:SZe,definition:wZe,emphasis:zue,hardBreak:WZ,heading:_Ze,html:Vue,image:Wue,imageReference:Hue,inlineCode:Que,link:Gue,linkReference:que,list:$Ze,listItem:BZe,paragraph:UZe,root:zZe,strong:Xue,text:HZe,thematicBreak:YZe};function GZe(){return{enter:{table:qZe,tableData:HZ,tableHeader:HZ,tableRow:XZe},exit:{codeText:KZe,table:ZZe,tableData:SP,tableHeader:SP,tableRow:SP}}}function qZe(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 ZZe(e){this.exit(e),this.data.inTable=void 0}function XZe(e){this.enter({type:"tableRow",children:[]},e)}function SP(e){this.exit(e)}function HZ(e){this.enter({type:"tableCell",children:[]},e)}function KZe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,JZe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function JZe(e,t){return t==="|"?t:e}function eXe(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:f,table:a,tableCell:l,tableRow:s}};function a(m,g,v,S){return u(c(m,v,S),m.align)}function s(m,g,v,S){const O=d(m,v,S),E=u([O]);return E.slice(0,E.indexOf(` +`))}function l(m,g,v,S){const O=v.enter("tableCell"),E=v.enter("phrasing"),w=v.containerPhrasing(m,{...S,before:o,after:o});return E(),O(),w}function u(m,g){return pZe(m,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function c(m,g,v){const S=m.children;let O=-1;const E=[],w=g.enter("table");for(;++O0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const yXe={tokenize:kXe,partial:!0};function vXe(){return{document:{91:{tokenize:TXe,continuation:{tokenize:wXe},exit:xXe}},text:{91:{tokenize:SXe},93:{add:"after",tokenize:OXe,resolveTo:EXe}}}}function OXe(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=Sc(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 EXe(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 SXe(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||di(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Sc(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return di(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 TXe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(a>999||g===93&&!s||g===null||g===91||di(g))return n(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=Sc(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return di(g)||(s=!0),a++,e.consume(g),g===92?d:c}function d(g){return g===91||g===92||g===93?(e.consume(g),a++,c):c(g)}function f(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),Ir(e,m,"gfmFootnoteDefinitionWhitespace")):n(g)}function m(g){return t(g)}}function wXe(e,t,n){return e.check(yT,t,e.attempt(yXe,t,n))}function xXe(e){e.exit("gfmFootnoteDefinition")}function kXe(e,t,n){const r=this;return Ir(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 CXe(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(g):(a.consume(g),d++,m);if(d<2&&!n)return l(g);const S=a.exit("strikethroughSequenceTemporary"),O=X_(g);return S._open=!O||O===2&&!!v,S._close=!v||v===2&&!!O,s(g)}}}class _Xe{constructor(){this.map=[]}add(t,n,r){AXe(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 AXe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const j=r.events[V][1].type;if(j==="lineEnding"||j==="linePrefix")V--;else break}const W=V>-1?r.events[V][1].type:null,G=W==="tableHead"||W==="tableRow"?C:l;return G===C&&r.parser.lazy[r.now().line]?n(P):G(P)}function l(P){return e.enter("tableHead"),e.enter("tableRow"),u(P)}function u(P){return P===124||(a=!0,o+=1),c(P)}function c(P){return P===null?n(P):Mn(P)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),m):n(P):Er(P)?Ir(e,c,"whitespace")(P):(o+=1,a&&(a=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||di(P)?(e.exit("data"),c(P)):(e.consume(P),P===92?f:d)}function f(P){return P===92||P===124?(e.consume(P),d):d(P)}function m(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),a=!1,Er(P)?Ir(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):g(P))}function g(P){return P===45||P===58?S(P):P===124?(a=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),v):A(P)}function v(P){return Er(P)?Ir(e,S,"whitespace")(P):S(P)}function S(P){return P===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),O):P===45?(o+=1,O(P)):P===null||Mn(P)?k(P):A(P)}function O(P){return P===45?(e.enter("tableDelimiterFiller"),E(P)):A(P)}function E(P){return P===45?(e.consume(P),E):P===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Er(P)?Ir(e,k,"whitespace")(P):k(P)}function k(P){return P===124?g(P):P===null||Mn(P)?!a||i!==o?A(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):A(P)}function A(P){return n(P)}function C(P){return e.enter("tableRow"),x(P)}function x(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),x):P===null||Mn(P)?(e.exit("tableRow"),t(P)):Er(P)?Ir(e,x,"whitespace")(P):(e.enter("data"),F(P))}function F(P){return P===null||P===124||di(P)?(e.exit("data"),x(P)):(e.consume(P),P===92?M:F)}function M(P){return P===92||P===124?(e.consume(P),F):F(P)}}function NXe(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 f=new _Xe;for(;++nn[2]+1){const g=n[2]+1,v=n[3]-n[2]-1;e.add(g,v,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},jb(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function YZ(e,t,n,r,i){const o=[],a=jb(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 jb(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const PXe={tokenize:MXe};function LXe(){return{text:{91:PXe}}}function MXe(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 di(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):Er(l)?e.check({tokenize:$Xe},t,n)(l):n(l)}}function $Xe(e,t,n){return Ir(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function FXe(e){return bue([uXe(),vXe(),CXe(e),IXe(),LXe()])}const BXe={};function UXe(e){const t=this,n=e||BXe,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(FXe(n)),o.push(oXe()),a.push(aXe(n))}const GZ=/[#.]/g;function jXe(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 pKe(e){return e>=56320&&e<=57343}function hKe(e,t){return(e-55296)*1024+9216+t}function fce(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function pce(e){return e>=64976&&e<=65007||fKe.has(e)}var ct;(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"})(ct=ct||(ct={}));const mKe=65536;class gKe{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=mKe,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(pKe(n))return this.pos++,this._addGap(),hKe(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,de.EOF;return this._err(ct.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,de.EOF;const r=this.html.charCodeAt(n);return r===de.CARRIAGE_RETURN?de.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,de.EOF;let t=this.html.charCodeAt(this.pos);return t===de.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,de.LINE_FEED):t===de.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,dce(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===de.LINE_FEED||t===de.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){fce(t)?this._err(ct.controlCharacterInInputStream):pce(t)&&this._err(ct.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 Mp=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))),bKe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var wP;const yKe=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]]),vKe=(wP=String.fromCodePoint)!==null&&wP!==void 0?wP: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 OKe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=yKe.get(e))!==null&&t!==void 0?t:e}var pa;(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"})(pa||(pa={}));const EKe=32;var kd;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(kd||(kd={}));function n$(e){return e>=pa.ZERO&&e<=pa.NINE}function SKe(e){return e>=pa.UPPER_A&&e<=pa.UPPER_F||e>=pa.LOWER_A&&e<=pa.LOWER_F}function TKe(e){return e>=pa.UPPER_A&&e<=pa.UPPER_Z||e>=pa.LOWER_A&&e<=pa.LOWER_Z||n$(e)}function wKe(e){return e===pa.EQUALS||TKe(e)}var la;(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"})(la||(la={}));var Lm;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lm||(Lm={}));class xKe{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=la.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lm.Strict}startEntity(t){this.decodeMode=t,this.state=la.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case la.EntityStart:return t.charCodeAt(n)===pa.NUM?(this.state=la.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=la.NamedEntity,this.stateNamedEntity(t,n));case la.NumericStart:return this.stateNumericStart(t,n);case la.NumericDecimal:return this.stateNumericDecimal(t,n);case la.NumericHex:return this.stateNumericHex(t,n);case la.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|EKe)===pa.LOWER_X?(this.state=la.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=la.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===pa.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Lm.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]&kd.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]&~kd.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case la.NamedEntity:return this.result!==0&&(this.decodeMode!==Lm.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case la.NumericDecimal:return this.emitNumericEntity(0,2);case la.NumericHex:return this.emitNumericEntity(0,3);case la.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case la.EntityStart:return 0}}}function mce(e){let t="";const n=new xKe(e,r=>t+=vKe(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 gce(e,t,n,r){const i=(t&kd.BRANCH_LENGTH)>>7,o=t&kd.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}mce(Mp);mce(bKe);var vt;(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/"})(vt=vt||(vt={}));var kh;(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"})(kh=kh||(kh={}));var Ll;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ll=Ll||(Ll={}));var nt;(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"})(nt=nt||(nt={}));var $;(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"})($=$||($={}));const kKe=new Map([[nt.A,$.A],[nt.ADDRESS,$.ADDRESS],[nt.ANNOTATION_XML,$.ANNOTATION_XML],[nt.APPLET,$.APPLET],[nt.AREA,$.AREA],[nt.ARTICLE,$.ARTICLE],[nt.ASIDE,$.ASIDE],[nt.B,$.B],[nt.BASE,$.BASE],[nt.BASEFONT,$.BASEFONT],[nt.BGSOUND,$.BGSOUND],[nt.BIG,$.BIG],[nt.BLOCKQUOTE,$.BLOCKQUOTE],[nt.BODY,$.BODY],[nt.BR,$.BR],[nt.BUTTON,$.BUTTON],[nt.CAPTION,$.CAPTION],[nt.CENTER,$.CENTER],[nt.CODE,$.CODE],[nt.COL,$.COL],[nt.COLGROUP,$.COLGROUP],[nt.DD,$.DD],[nt.DESC,$.DESC],[nt.DETAILS,$.DETAILS],[nt.DIALOG,$.DIALOG],[nt.DIR,$.DIR],[nt.DIV,$.DIV],[nt.DL,$.DL],[nt.DT,$.DT],[nt.EM,$.EM],[nt.EMBED,$.EMBED],[nt.FIELDSET,$.FIELDSET],[nt.FIGCAPTION,$.FIGCAPTION],[nt.FIGURE,$.FIGURE],[nt.FONT,$.FONT],[nt.FOOTER,$.FOOTER],[nt.FOREIGN_OBJECT,$.FOREIGN_OBJECT],[nt.FORM,$.FORM],[nt.FRAME,$.FRAME],[nt.FRAMESET,$.FRAMESET],[nt.H1,$.H1],[nt.H2,$.H2],[nt.H3,$.H3],[nt.H4,$.H4],[nt.H5,$.H5],[nt.H6,$.H6],[nt.HEAD,$.HEAD],[nt.HEADER,$.HEADER],[nt.HGROUP,$.HGROUP],[nt.HR,$.HR],[nt.HTML,$.HTML],[nt.I,$.I],[nt.IMG,$.IMG],[nt.IMAGE,$.IMAGE],[nt.INPUT,$.INPUT],[nt.IFRAME,$.IFRAME],[nt.KEYGEN,$.KEYGEN],[nt.LABEL,$.LABEL],[nt.LI,$.LI],[nt.LINK,$.LINK],[nt.LISTING,$.LISTING],[nt.MAIN,$.MAIN],[nt.MALIGNMARK,$.MALIGNMARK],[nt.MARQUEE,$.MARQUEE],[nt.MATH,$.MATH],[nt.MENU,$.MENU],[nt.META,$.META],[nt.MGLYPH,$.MGLYPH],[nt.MI,$.MI],[nt.MO,$.MO],[nt.MN,$.MN],[nt.MS,$.MS],[nt.MTEXT,$.MTEXT],[nt.NAV,$.NAV],[nt.NOBR,$.NOBR],[nt.NOFRAMES,$.NOFRAMES],[nt.NOEMBED,$.NOEMBED],[nt.NOSCRIPT,$.NOSCRIPT],[nt.OBJECT,$.OBJECT],[nt.OL,$.OL],[nt.OPTGROUP,$.OPTGROUP],[nt.OPTION,$.OPTION],[nt.P,$.P],[nt.PARAM,$.PARAM],[nt.PLAINTEXT,$.PLAINTEXT],[nt.PRE,$.PRE],[nt.RB,$.RB],[nt.RP,$.RP],[nt.RT,$.RT],[nt.RTC,$.RTC],[nt.RUBY,$.RUBY],[nt.S,$.S],[nt.SCRIPT,$.SCRIPT],[nt.SECTION,$.SECTION],[nt.SELECT,$.SELECT],[nt.SOURCE,$.SOURCE],[nt.SMALL,$.SMALL],[nt.SPAN,$.SPAN],[nt.STRIKE,$.STRIKE],[nt.STRONG,$.STRONG],[nt.STYLE,$.STYLE],[nt.SUB,$.SUB],[nt.SUMMARY,$.SUMMARY],[nt.SUP,$.SUP],[nt.TABLE,$.TABLE],[nt.TBODY,$.TBODY],[nt.TEMPLATE,$.TEMPLATE],[nt.TEXTAREA,$.TEXTAREA],[nt.TFOOT,$.TFOOT],[nt.TD,$.TD],[nt.TH,$.TH],[nt.THEAD,$.THEAD],[nt.TITLE,$.TITLE],[nt.TR,$.TR],[nt.TRACK,$.TRACK],[nt.TT,$.TT],[nt.U,$.U],[nt.UL,$.UL],[nt.SVG,$.SVG],[nt.VAR,$.VAR],[nt.WBR,$.WBR],[nt.XMP,$.XMP]]);function mv(e){var t;return(t=kKe.get(e))!==null&&t!==void 0?t:$.UNKNOWN}const Ft=$,CKe={[vt.HTML]:new Set([Ft.ADDRESS,Ft.APPLET,Ft.AREA,Ft.ARTICLE,Ft.ASIDE,Ft.BASE,Ft.BASEFONT,Ft.BGSOUND,Ft.BLOCKQUOTE,Ft.BODY,Ft.BR,Ft.BUTTON,Ft.CAPTION,Ft.CENTER,Ft.COL,Ft.COLGROUP,Ft.DD,Ft.DETAILS,Ft.DIR,Ft.DIV,Ft.DL,Ft.DT,Ft.EMBED,Ft.FIELDSET,Ft.FIGCAPTION,Ft.FIGURE,Ft.FOOTER,Ft.FORM,Ft.FRAME,Ft.FRAMESET,Ft.H1,Ft.H2,Ft.H3,Ft.H4,Ft.H5,Ft.H6,Ft.HEAD,Ft.HEADER,Ft.HGROUP,Ft.HR,Ft.HTML,Ft.IFRAME,Ft.IMG,Ft.INPUT,Ft.LI,Ft.LINK,Ft.LISTING,Ft.MAIN,Ft.MARQUEE,Ft.MENU,Ft.META,Ft.NAV,Ft.NOEMBED,Ft.NOFRAMES,Ft.NOSCRIPT,Ft.OBJECT,Ft.OL,Ft.P,Ft.PARAM,Ft.PLAINTEXT,Ft.PRE,Ft.SCRIPT,Ft.SECTION,Ft.SELECT,Ft.SOURCE,Ft.STYLE,Ft.SUMMARY,Ft.TABLE,Ft.TBODY,Ft.TD,Ft.TEMPLATE,Ft.TEXTAREA,Ft.TFOOT,Ft.TH,Ft.THEAD,Ft.TITLE,Ft.TR,Ft.TRACK,Ft.UL,Ft.WBR,Ft.XMP]),[vt.MATHML]:new Set([Ft.MI,Ft.MO,Ft.MN,Ft.MS,Ft.MTEXT,Ft.ANNOTATION_XML]),[vt.SVG]:new Set([Ft.TITLE,Ft.FOREIGN_OBJECT,Ft.DESC]),[vt.XLINK]:new Set,[vt.XML]:new Set,[vt.XMLNS]:new Set};function bce(e){return e===Ft.H1||e===Ft.H2||e===Ft.H3||e===Ft.H4||e===Ft.H5||e===Ft.H6}nt.STYLE,nt.SCRIPT,nt.XMP,nt.IFRAME,nt.NOEMBED,nt.NOFRAMES,nt.PLAINTEXT;const _Ke=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var be;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(be||(be={}));const wo={DATA:be.DATA,RCDATA:be.RCDATA,RAWTEXT:be.RAWTEXT,SCRIPT_DATA:be.SCRIPT_DATA,PLAINTEXT:be.PLAINTEXT,CDATA_SECTION:be.CDATA_SECTION};function B1(e){return e>=de.DIGIT_0&&e<=de.DIGIT_9}function a1(e){return e>=de.LATIN_CAPITAL_A&&e<=de.LATIN_CAPITAL_Z}function AKe(e){return e>=de.LATIN_SMALL_A&&e<=de.LATIN_SMALL_Z}function $p(e){return AKe(e)||a1(e)}function r$(e){return $p(e)||B1(e)}function yce(e){return e>=de.LATIN_CAPITAL_A&&e<=de.LATIN_CAPITAL_F}function vce(e){return e>=de.LATIN_SMALL_A&&e<=de.LATIN_SMALL_F}function RKe(e){return B1(e)||yce(e)||vce(e)}function qx(e){return e+32}function Oce(e){return e===de.SPACE||e===de.LINE_FEED||e===de.TABULATION||e===de.FORM_FEED}function IKe(e){return e===de.EQUALS_SIGN||r$(e)}function XZ(e){return Oce(e)||e===de.SOLIDUS||e===de.GREATER_THAN_SIGN}class DKe{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=be.DATA,this.returnState=be.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new gKe(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(ct.endTagWithAttributes),t.selfClosing&&this._err(ct.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 hr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case hr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case hr.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:hr.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=Oce(t)?hr.WHITESPACE_CHARACTER:t===de.NULL?hr.NULL_CHARACTER:hr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(hr.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let o=0,a=Mp[0];o>=0&&(o=gce(Mp,a,o+1,t),!(o<0));t=this._consume()){r+=1,a=Mp[o];const s=a&kd.VALUE_LENGTH;if(s){const l=(s>>14)-1;if(t!==de.SEMICOLON&&this._isCharacterReferenceInAttribute()&&IKe(this.preprocessor.peek(1))?(n=[de.AMPERSAND],o+=l):(n=l===0?[Mp[o]&~kd.VALUE_LENGTH]:l===1?[Mp[++o]]:[Mp[++o],Mp[++o]],r=0,i=t!==de.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(ct.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===be.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===be.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===be.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case be.DATA:{this._stateData(t);break}case be.RCDATA:{this._stateRcdata(t);break}case be.RAWTEXT:{this._stateRawtext(t);break}case be.SCRIPT_DATA:{this._stateScriptData(t);break}case be.PLAINTEXT:{this._statePlaintext(t);break}case be.TAG_OPEN:{this._stateTagOpen(t);break}case be.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case be.TAG_NAME:{this._stateTagName(t);break}case be.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case be.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case be.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case be.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case be.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case be.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case be.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case be.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case be.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case be.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case be.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case be.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case be.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case be.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case be.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case be.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case be.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case be.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case be.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case be.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case be.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case be.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case be.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case be.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case be.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case be.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case be.BOGUS_COMMENT:{this._stateBogusComment(t);break}case be.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case be.COMMENT_START:{this._stateCommentStart(t);break}case be.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case be.COMMENT:{this._stateComment(t);break}case be.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case be.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case be.COMMENT_END:{this._stateCommentEnd(t);break}case be.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case be.DOCTYPE:{this._stateDoctype(t);break}case be.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case be.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case be.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case be.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case be.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case be.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case be.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case be.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case be.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case be.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case be.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case be.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case be.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case be.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case be.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case be.CDATA_SECTION:{this._stateCdataSection(t);break}case be.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case be.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case be.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case be.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case be.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case be.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case be.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case be.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case be.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case be.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case de.LESS_THAN_SIGN:{this.state=be.TAG_OPEN;break}case de.AMPERSAND:{this.returnState=be.DATA,this.state=be.CHARACTER_REFERENCE;break}case de.NULL:{this._err(ct.unexpectedNullCharacter),this._emitCodePoint(t);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case de.AMPERSAND:{this.returnState=be.RCDATA,this.state=be.CHARACTER_REFERENCE;break}case de.LESS_THAN_SIGN:{this.state=be.RCDATA_LESS_THAN_SIGN;break}case de.NULL:{this._err(ct.unexpectedNullCharacter),this._emitChars(ji);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case de.LESS_THAN_SIGN:{this.state=be.RAWTEXT_LESS_THAN_SIGN;break}case de.NULL:{this._err(ct.unexpectedNullCharacter),this._emitChars(ji);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case de.LESS_THAN_SIGN:{this.state=be.SCRIPT_DATA_LESS_THAN_SIGN;break}case de.NULL:{this._err(ct.unexpectedNullCharacter),this._emitChars(ji);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case de.NULL:{this._err(ct.unexpectedNullCharacter),this._emitChars(ji);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if($p(t))this._createStartTagToken(),this.state=be.TAG_NAME,this._stateTagName(t);else switch(t){case de.EXCLAMATION_MARK:{this.state=be.MARKUP_DECLARATION_OPEN;break}case de.SOLIDUS:{this.state=be.END_TAG_OPEN;break}case de.QUESTION_MARK:{this._err(ct.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=be.BOGUS_COMMENT,this._stateBogusComment(t);break}case de.EOF:{this._err(ct.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ct.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=be.DATA,this._stateData(t)}}_stateEndTagOpen(t){if($p(t))this._createEndTagToken(),this.state=be.TAG_NAME,this._stateTagName(t);else switch(t){case de.GREATER_THAN_SIGN:{this._err(ct.missingEndTagName),this.state=be.DATA;break}case de.EOF:{this._err(ct.eofBeforeTagName),this._emitChars("");break}case de.NULL:{this._err(ct.unexpectedNullCharacter),this.state=be.SCRIPT_DATA_ESCAPED,this._emitChars(ji);break}case de.EOF:{this._err(ct.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=be.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===de.SOLIDUS?this.state=be.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:$p(t)?(this._emitChars("<"),this.state=be.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=be.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){$p(t)?(this.state=be.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case de.NULL:{this._err(ct.unexpectedNullCharacter),this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ji);break}case de.EOF:{this._err(ct.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===de.SOLIDUS?(this.state=be.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Hs.SCRIPT,!1)&&XZ(this.preprocessor.peek(Hs.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(ct.characterReferenceOutsideUnicodeRange),this.charRefCode=de.REPLACEMENT_CHARACTER;else if(dce(this.charRefCode))this._err(ct.surrogateCharacterReference),this.charRefCode=de.REPLACEMENT_CHARACTER;else if(pce(this.charRefCode))this._err(ct.noncharacterCharacterReference);else if(fce(this.charRefCode)||this.charRefCode===de.CARRIAGE_RETURN){this._err(ct.controlCharacterReference);const n=_Ke.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Ece=new Set([$.DD,$.DT,$.LI,$.OPTGROUP,$.OPTION,$.P,$.RB,$.RP,$.RT,$.RTC]),KZ=new Set([...Ece,$.CAPTION,$.COLGROUP,$.TBODY,$.TD,$.TFOOT,$.TH,$.THEAD,$.TR]),Zx=new Map([[$.APPLET,vt.HTML],[$.CAPTION,vt.HTML],[$.HTML,vt.HTML],[$.MARQUEE,vt.HTML],[$.OBJECT,vt.HTML],[$.TABLE,vt.HTML],[$.TD,vt.HTML],[$.TEMPLATE,vt.HTML],[$.TH,vt.HTML],[$.ANNOTATION_XML,vt.MATHML],[$.MI,vt.MATHML],[$.MN,vt.MATHML],[$.MO,vt.MATHML],[$.MS,vt.MATHML],[$.MTEXT,vt.MATHML],[$.DESC,vt.SVG],[$.FOREIGN_OBJECT,vt.SVG],[$.TITLE,vt.SVG]]),NKe=[$.H1,$.H2,$.H3,$.H4,$.H5,$.H6],PKe=[$.TR,$.TEMPLATE,$.HTML],LKe=[$.TBODY,$.TFOOT,$.THEAD,$.TEMPLATE,$.HTML],MKe=[$.TABLE,$.TEMPLATE,$.HTML],$Ke=[$.TD,$.TH];class FKe{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=$.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===$.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===vt.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])!==vt.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(MKe,vt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(LKe,vt.HTML)}clearBackToTableRowContext(){this.clearBackTo(PKe,vt.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]===$.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]===$.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===vt.HTML)return!0;if(Zx.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(bce(n)&&r===vt.HTML)return!0;if(Zx.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===vt.HTML)return!0;if((r===$.UL||r===$.OL)&&i===vt.HTML||Zx.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===vt.HTML)return!0;if(r===$.BUTTON&&i===vt.HTML||Zx.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])===vt.HTML){if(r===t)return!0;if(r===$.TABLE||r===$.TEMPLATE||r===$.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])===vt.HTML){if(n===$.TBODY||n===$.THEAD||n===$.TFOOT)return!0;if(n===$.TABLE||n===$.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===vt.HTML){if(r===t)return!0;if(r!==$.OPTION&&r!==$.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Ece.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;KZ.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&KZ.has(this.currentTagId);)this.pop()}}const xP=3;var fc;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(fc=fc||(fc={}));const JZ={type:fc.Marker};class BKe{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>=xP&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(JZ)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:fc.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:fc.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(JZ);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===fc.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===fc.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===fc.Element&&n.element===t)}}function eX(e){return{nodeName:"#text",value:e,parentNode:null}}const zb={createDocument(){return{nodeName:"#document",mode:Ll.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};zb.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(zb.isTextNode(n)){n.value+=t;return}}zb.appendChild(e,eX(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&zb.isTextNode(r)?r.value+=t:zb.insertBefore(e,eX(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function HKe(e){return e.name===Sce&&e.publicId===null&&(e.systemId===null||e.systemId===UKe)}function QKe(e){if(e.name!==Sce)return Ll.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===jKe)return Ll.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),VKe.has(n))return Ll.QUIRKS;let r=t===null?zKe:Tce;if(tX(n,r))return Ll.QUIRKS;if(r=t===null?wce:WKe,tX(n,r))return Ll.LIMITED_QUIRKS}return Ll.NO_QUIRKS}const nX={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},YKe="definitionurl",GKe="definitionURL",qKe=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])),ZKe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:vt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:vt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:vt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:vt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:vt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:vt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:vt.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:vt.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:vt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:vt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:vt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:vt.XMLNS}]]),XKe=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])),KKe=new Set([$.B,$.BIG,$.BLOCKQUOTE,$.BODY,$.BR,$.CENTER,$.CODE,$.DD,$.DIV,$.DL,$.DT,$.EM,$.EMBED,$.H1,$.H2,$.H3,$.H4,$.H5,$.H6,$.HEAD,$.HR,$.I,$.IMG,$.LI,$.LISTING,$.MENU,$.META,$.NOBR,$.OL,$.P,$.PRE,$.RUBY,$.S,$.SMALL,$.SPAN,$.STRONG,$.STRIKE,$.SUB,$.SUP,$.TABLE,$.TT,$.U,$.UL,$.VAR]);function JKe(e){const t=e.tagID;return t===$.FONT&&e.attrs.some(({name:r})=>r===kh.COLOR||r===kh.SIZE||r===kh.FACE)||KKe.has(t)}function xce(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)===vt.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,vt.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Te.TEXT}switchToPlaintextParsing(){this.insertionMode=Te.TEXT,this.originalInsertionMode=Te.IN_BODY,this.tokenizer.state=wo.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)===nt.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==vt.HTML))switch(this.fragmentContextID){case $.TITLE:case $.TEXTAREA:{this.tokenizer.state=wo.RCDATA;break}case $.STYLE:case $.XMP:case $.IFRAME:case $.NOEMBED:case $.NOFRAMES:case $.NOSCRIPT:{this.tokenizer.state=wo.RAWTEXT;break}case $.SCRIPT:{this.tokenizer.state=wo.SCRIPT_DATA;break}case $.PLAINTEXT:{this.tokenizer.state=wo.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,vt.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,vt.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(nt.HTML,vt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,$.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===hr.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===$.SVG&&this.treeAdapter.getTagName(n)===nt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===vt.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===$.MGLYPH||t.tagID===$.MALIGNMARK)&&!this._isIntegrationPoint(r,n,vt.HTML)}_processToken(t){switch(t.type){case hr.CHARACTER:{this.onCharacter(t);break}case hr.NULL_CHARACTER:{this.onNullCharacter(t);break}case hr.COMMENT:{this.onComment(t);break}case hr.DOCTYPE:{this.onDoctype(t);break}case hr.START_TAG:{this._processStartTag(t);break}case hr.END_TAG:{this.onEndTag(t);break}case hr.EOF:{this.onEof(t);break}case hr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return rJe(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===fc.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=Te.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion($.P),this.openElements.popUntilTagNamePopped($.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case $.TR:{this.insertionMode=Te.IN_ROW;return}case $.TBODY:case $.THEAD:case $.TFOOT:{this.insertionMode=Te.IN_TABLE_BODY;return}case $.CAPTION:{this.insertionMode=Te.IN_CAPTION;return}case $.COLGROUP:{this.insertionMode=Te.IN_COLUMN_GROUP;return}case $.TABLE:{this.insertionMode=Te.IN_TABLE;return}case $.BODY:{this.insertionMode=Te.IN_BODY;return}case $.FRAMESET:{this.insertionMode=Te.IN_FRAMESET;return}case $.SELECT:{this._resetInsertionModeForSelect(t);return}case $.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case $.HTML:{this.insertionMode=this.headElement?Te.AFTER_HEAD:Te.BEFORE_HEAD;return}case $.TD:case $.TH:{if(t>0){this.insertionMode=Te.IN_CELL;return}break}case $.HEAD:{if(t>0){this.insertionMode=Te.IN_HEAD;return}break}}this.insertionMode=Te.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===$.TEMPLATE)break;if(r===$.TABLE){this.insertionMode=Te.IN_SELECT_IN_TABLE;return}}this.insertionMode=Te.IN_SELECT}_isElementCausesFosterParenting(t){return Cce.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 $.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===vt.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case $.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 CKe[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Bet(this,t);return}switch(this.insertionMode){case Te.INITIAL:{DO(this,t);break}case Te.BEFORE_HTML:{U1(this,t);break}case Te.BEFORE_HEAD:{j1(this,t);break}case Te.IN_HEAD:{z1(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{V1(this,t);break}case Te.AFTER_HEAD:{W1(this,t);break}case Te.IN_BODY:case Te.IN_CAPTION:case Te.IN_CELL:case Te.IN_TEMPLATE:{Ace(this,t);break}case Te.TEXT:case Te.IN_SELECT:case Te.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Te.IN_TABLE:case Te.IN_TABLE_BODY:case Te.IN_ROW:{kP(this,t);break}case Te.IN_TABLE_TEXT:{Lce(this,t);break}case Te.IN_COLUMN_GROUP:{tA(this,t);break}case Te.AFTER_BODY:{nA(this,t);break}case Te.AFTER_AFTER_BODY:{rC(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Fet(this,t);return}switch(this.insertionMode){case Te.INITIAL:{DO(this,t);break}case Te.BEFORE_HTML:{U1(this,t);break}case Te.BEFORE_HEAD:{j1(this,t);break}case Te.IN_HEAD:{z1(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{V1(this,t);break}case Te.AFTER_HEAD:{W1(this,t);break}case Te.TEXT:{this._insertCharacters(t);break}case Te.IN_TABLE:case Te.IN_TABLE_BODY:case Te.IN_ROW:{kP(this,t);break}case Te.IN_COLUMN_GROUP:{tA(this,t);break}case Te.AFTER_BODY:{nA(this,t);break}case Te.AFTER_AFTER_BODY:{rC(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){i$(this,t);return}switch(this.insertionMode){case Te.INITIAL:case Te.BEFORE_HTML:case Te.BEFORE_HEAD:case Te.IN_HEAD:case Te.IN_HEAD_NO_SCRIPT:case Te.AFTER_HEAD:case Te.IN_BODY:case Te.IN_TABLE:case Te.IN_CAPTION:case Te.IN_COLUMN_GROUP:case Te.IN_TABLE_BODY:case Te.IN_ROW:case Te.IN_CELL:case Te.IN_SELECT:case Te.IN_SELECT_IN_TABLE:case Te.IN_TEMPLATE:case Te.IN_FRAMESET:case Te.AFTER_FRAMESET:{i$(this,t);break}case Te.IN_TABLE_TEXT:{NO(this,t);break}case Te.AFTER_BODY:{hJe(this,t);break}case Te.AFTER_AFTER_BODY:case Te.AFTER_AFTER_FRAMESET:{mJe(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Te.INITIAL:{gJe(this,t);break}case Te.BEFORE_HEAD:case Te.IN_HEAD:case Te.IN_HEAD_NO_SCRIPT:case Te.AFTER_HEAD:{this._err(t,ct.misplacedDoctype);break}case Te.IN_TABLE_TEXT:{NO(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ct.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Uet(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Te.INITIAL:{DO(this,t);break}case Te.BEFORE_HTML:{bJe(this,t);break}case Te.BEFORE_HEAD:{vJe(this,t);break}case Te.IN_HEAD:{Fc(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{SJe(this,t);break}case Te.AFTER_HEAD:{wJe(this,t);break}case Te.IN_BODY:{ms(this,t);break}case Te.IN_TABLE:{My(this,t);break}case Te.IN_TABLE_TEXT:{NO(this,t);break}case Te.IN_CAPTION:{Eet(this,t);break}case Te.IN_COLUMN_GROUP:{wB(this,t);break}case Te.IN_TABLE_BODY:{vI(this,t);break}case Te.IN_ROW:{OI(this,t);break}case Te.IN_CELL:{xet(this,t);break}case Te.IN_SELECT:{Fce(this,t);break}case Te.IN_SELECT_IN_TABLE:{Cet(this,t);break}case Te.IN_TEMPLATE:{Aet(this,t);break}case Te.AFTER_BODY:{Iet(this,t);break}case Te.IN_FRAMESET:{Det(this,t);break}case Te.AFTER_FRAMESET:{Pet(this,t);break}case Te.AFTER_AFTER_BODY:{Met(this,t);break}case Te.AFTER_AFTER_FRAMESET:{$et(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?jet(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Te.INITIAL:{DO(this,t);break}case Te.BEFORE_HTML:{yJe(this,t);break}case Te.BEFORE_HEAD:{OJe(this,t);break}case Te.IN_HEAD:{EJe(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{TJe(this,t);break}case Te.AFTER_HEAD:{xJe(this,t);break}case Te.IN_BODY:{yI(this,t);break}case Te.TEXT:{det(this,t);break}case Te.IN_TABLE:{sS(this,t);break}case Te.IN_TABLE_TEXT:{NO(this,t);break}case Te.IN_CAPTION:{Tet(this,t);break}case Te.IN_COLUMN_GROUP:{wet(this,t);break}case Te.IN_TABLE_BODY:{o$(this,t);break}case Te.IN_ROW:{$ce(this,t);break}case Te.IN_CELL:{ket(this,t);break}case Te.IN_SELECT:{Bce(this,t);break}case Te.IN_SELECT_IN_TABLE:{_et(this,t);break}case Te.IN_TEMPLATE:{Ret(this,t);break}case Te.AFTER_BODY:{jce(this,t);break}case Te.IN_FRAMESET:{Net(this,t);break}case Te.AFTER_FRAMESET:{Let(this,t);break}case Te.AFTER_AFTER_BODY:{rC(this,t);break}}}onEof(t){switch(this.insertionMode){case Te.INITIAL:{DO(this,t);break}case Te.BEFORE_HTML:{U1(this,t);break}case Te.BEFORE_HEAD:{j1(this,t);break}case Te.IN_HEAD:{z1(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{V1(this,t);break}case Te.AFTER_HEAD:{W1(this,t);break}case Te.IN_BODY:case Te.IN_TABLE:case Te.IN_CAPTION:case Te.IN_COLUMN_GROUP:case Te.IN_TABLE_BODY:case Te.IN_ROW:case Te.IN_CELL:case Te.IN_SELECT:case Te.IN_SELECT_IN_TABLE:{Nce(this,t);break}case Te.TEXT:{fet(this,t);break}case Te.IN_TABLE_TEXT:{NO(this,t);break}case Te.IN_TEMPLATE:{Uce(this,t);break}case Te.AFTER_BODY:case Te.IN_FRAMESET:case Te.AFTER_FRAMESET:case Te.AFTER_AFTER_BODY:case Te.AFTER_AFTER_FRAMESET:{TB(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===de.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 Te.IN_HEAD:case Te.IN_HEAD_NO_SCRIPT:case Te.AFTER_HEAD:case Te.TEXT:case Te.IN_COLUMN_GROUP:case Te.IN_SELECT:case Te.IN_SELECT_IN_TABLE:case Te.IN_FRAMESET:case Te.AFTER_FRAMESET:{this._insertCharacters(t);break}case Te.IN_BODY:case Te.IN_CAPTION:case Te.IN_CELL:case Te.IN_TEMPLATE:case Te.AFTER_BODY:case Te.AFTER_AFTER_BODY:case Te.AFTER_AFTER_FRAMESET:{_ce(this,t);break}case Te.IN_TABLE:case Te.IN_TABLE_BODY:case Te.IN_ROW:{kP(this,t);break}case Te.IN_TABLE_TEXT:{Pce(this,t);break}}}}function lJe(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):Dce(e,t),n}function uJe(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 cJe(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>=aJe;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=dJe(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function dJe(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 fJe(e,t,n){const r=e.treeAdapter.getTagName(t),i=mv(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===$.TEMPLATE&&o===vt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function pJe(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 SB(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 gJe(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ll.QUIRKS:QKe(t);HKe(t)||e._err(t,ct.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Te.BEFORE_HTML}function DO(e,t){e._err(t,ct.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ll.QUIRKS),e.insertionMode=Te.BEFORE_HTML,e._processToken(t)}function bJe(e,t){t.tagID===$.HTML?(e._insertElement(t,vt.HTML),e.insertionMode=Te.BEFORE_HEAD):U1(e,t)}function yJe(e,t){const n=t.tagID;(n===$.HTML||n===$.HEAD||n===$.BODY||n===$.BR)&&U1(e,t)}function U1(e,t){e._insertFakeRootElement(),e.insertionMode=Te.BEFORE_HEAD,e._processToken(t)}function vJe(e,t){switch(t.tagID){case $.HTML:{ms(e,t);break}case $.HEAD:{e._insertElement(t,vt.HTML),e.headElement=e.openElements.current,e.insertionMode=Te.IN_HEAD;break}default:j1(e,t)}}function OJe(e,t){const n=t.tagID;n===$.HEAD||n===$.BODY||n===$.HTML||n===$.BR?j1(e,t):e._err(t,ct.endTagWithoutMatchingOpenElement)}function j1(e,t){e._insertFakeElement(nt.HEAD,$.HEAD),e.headElement=e.openElements.current,e.insertionMode=Te.IN_HEAD,e._processToken(t)}function Fc(e,t){switch(t.tagID){case $.HTML:{ms(e,t);break}case $.BASE:case $.BASEFONT:case $.BGSOUND:case $.LINK:case $.META:{e._appendElement(t,vt.HTML),t.ackSelfClosing=!0;break}case $.TITLE:{e._switchToTextParsing(t,wo.RCDATA);break}case $.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,wo.RAWTEXT):(e._insertElement(t,vt.HTML),e.insertionMode=Te.IN_HEAD_NO_SCRIPT);break}case $.NOFRAMES:case $.STYLE:{e._switchToTextParsing(t,wo.RAWTEXT);break}case $.SCRIPT:{e._switchToTextParsing(t,wo.SCRIPT_DATA);break}case $.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Te.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Te.IN_TEMPLATE);break}case $.HEAD:{e._err(t,ct.misplacedStartTagForHeadElement);break}default:z1(e,t)}}function EJe(e,t){switch(t.tagID){case $.HEAD:{e.openElements.pop(),e.insertionMode=Te.AFTER_HEAD;break}case $.BODY:case $.BR:case $.HTML:{z1(e,t);break}case $.TEMPLATE:{Fg(e,t);break}default:e._err(t,ct.endTagWithoutMatchingOpenElement)}}function Fg(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==$.TEMPLATE&&e._err(t,ct.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped($.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ct.endTagWithoutMatchingOpenElement)}function z1(e,t){e.openElements.pop(),e.insertionMode=Te.AFTER_HEAD,e._processToken(t)}function SJe(e,t){switch(t.tagID){case $.HTML:{ms(e,t);break}case $.BASEFONT:case $.BGSOUND:case $.HEAD:case $.LINK:case $.META:case $.NOFRAMES:case $.STYLE:{Fc(e,t);break}case $.NOSCRIPT:{e._err(t,ct.nestedNoscriptInHead);break}default:V1(e,t)}}function TJe(e,t){switch(t.tagID){case $.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Te.IN_HEAD;break}case $.BR:{V1(e,t);break}default:e._err(t,ct.endTagWithoutMatchingOpenElement)}}function V1(e,t){const n=t.type===hr.EOF?ct.openElementsLeftAfterEof:ct.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Te.IN_HEAD,e._processToken(t)}function wJe(e,t){switch(t.tagID){case $.HTML:{ms(e,t);break}case $.BODY:{e._insertElement(t,vt.HTML),e.framesetOk=!1,e.insertionMode=Te.IN_BODY;break}case $.FRAMESET:{e._insertElement(t,vt.HTML),e.insertionMode=Te.IN_FRAMESET;break}case $.BASE:case $.BASEFONT:case $.BGSOUND:case $.LINK:case $.META:case $.NOFRAMES:case $.SCRIPT:case $.STYLE:case $.TEMPLATE:case $.TITLE:{e._err(t,ct.abandonedHeadElementChild),e.openElements.push(e.headElement,$.HEAD),Fc(e,t),e.openElements.remove(e.headElement);break}case $.HEAD:{e._err(t,ct.misplacedStartTagForHeadElement);break}default:W1(e,t)}}function xJe(e,t){switch(t.tagID){case $.BODY:case $.HTML:case $.BR:{W1(e,t);break}case $.TEMPLATE:{Fg(e,t);break}default:e._err(t,ct.endTagWithoutMatchingOpenElement)}}function W1(e,t){e._insertFakeElement(nt.BODY,$.BODY),e.insertionMode=Te.IN_BODY,bI(e,t)}function bI(e,t){switch(t.type){case hr.CHARACTER:{Ace(e,t);break}case hr.WHITESPACE_CHARACTER:{_ce(e,t);break}case hr.COMMENT:{i$(e,t);break}case hr.START_TAG:{ms(e,t);break}case hr.END_TAG:{yI(e,t);break}case hr.EOF:{Nce(e,t);break}}}function _ce(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ace(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kJe(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function CJe(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _Je(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,vt.HTML),e.insertionMode=Te.IN_FRAMESET)}function AJe(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML)}function RJe(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),bce(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,vt.HTML)}function IJe(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function DJe(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML),n||(e.formElement=e.openElements.current))}function NJe(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===$.LI&&i===$.LI||(n===$.DD||n===$.DT)&&(i===$.DD||i===$.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==$.ADDRESS&&i!==$.DIV&&i!==$.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML)}function PJe(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML),e.tokenizer.state=wo.PLAINTEXT}function LJe(e,t){e.openElements.hasInScope($.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped($.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.framesetOk=!1}function MJe(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(nt.A);n&&(SB(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $Je(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function FJe(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope($.NOBR)&&(SB(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,vt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function BJe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function UJe(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ll.QUIRKS&&e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._insertElement(t,vt.HTML),e.framesetOk=!1,e.insertionMode=Te.IN_TABLE}function Rce(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,vt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ice(e){const t=hce(e,kh.TYPE);return t!=null&&t.toLowerCase()===iJe}function jJe(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,vt.HTML),Ice(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function zJe(e,t){e._appendElement(t,vt.HTML),t.ackSelfClosing=!0}function VJe(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._appendElement(t,vt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function WJe(e,t){t.tagName=nt.IMG,t.tagID=$.IMG,Rce(e,t)}function HJe(e,t){e._insertElement(t,vt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=wo.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Te.TEXT}function QJe(e,t){e.openElements.hasInButtonScope($.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,wo.RAWTEXT)}function YJe(e,t){e.framesetOk=!1,e._switchToTextParsing(t,wo.RAWTEXT)}function oX(e,t){e._switchToTextParsing(t,wo.RAWTEXT)}function GJe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Te.IN_TABLE||e.insertionMode===Te.IN_CAPTION||e.insertionMode===Te.IN_TABLE_BODY||e.insertionMode===Te.IN_ROW||e.insertionMode===Te.IN_CELL?Te.IN_SELECT_IN_TABLE:Te.IN_SELECT}function qJe(e,t){e.openElements.currentTagId===$.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML)}function ZJe(e,t){e.openElements.hasInScope($.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,vt.HTML)}function XJe(e,t){e.openElements.hasInScope($.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion($.RTC),e._insertElement(t,vt.HTML)}function KJe(e,t){e._reconstructActiveFormattingElements(),xce(t),EB(t),t.selfClosing?e._appendElement(t,vt.MATHML):e._insertElement(t,vt.MATHML),t.ackSelfClosing=!0}function JJe(e,t){e._reconstructActiveFormattingElements(),kce(t),EB(t),t.selfClosing?e._appendElement(t,vt.SVG):e._insertElement(t,vt.SVG),t.ackSelfClosing=!0}function aX(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,vt.HTML)}function ms(e,t){switch(t.tagID){case $.I:case $.S:case $.B:case $.U:case $.EM:case $.TT:case $.BIG:case $.CODE:case $.FONT:case $.SMALL:case $.STRIKE:case $.STRONG:{$Je(e,t);break}case $.A:{MJe(e,t);break}case $.H1:case $.H2:case $.H3:case $.H4:case $.H5:case $.H6:{RJe(e,t);break}case $.P:case $.DL:case $.OL:case $.UL:case $.DIV:case $.DIR:case $.NAV:case $.MAIN:case $.MENU:case $.ASIDE:case $.CENTER:case $.FIGURE:case $.FOOTER:case $.HEADER:case $.HGROUP:case $.DIALOG:case $.DETAILS:case $.ADDRESS:case $.ARTICLE:case $.SECTION:case $.SUMMARY:case $.FIELDSET:case $.BLOCKQUOTE:case $.FIGCAPTION:{AJe(e,t);break}case $.LI:case $.DD:case $.DT:{NJe(e,t);break}case $.BR:case $.IMG:case $.WBR:case $.AREA:case $.EMBED:case $.KEYGEN:{Rce(e,t);break}case $.HR:{VJe(e,t);break}case $.RB:case $.RTC:{ZJe(e,t);break}case $.RT:case $.RP:{XJe(e,t);break}case $.PRE:case $.LISTING:{IJe(e,t);break}case $.XMP:{QJe(e,t);break}case $.SVG:{JJe(e,t);break}case $.HTML:{kJe(e,t);break}case $.BASE:case $.LINK:case $.META:case $.STYLE:case $.TITLE:case $.SCRIPT:case $.BGSOUND:case $.BASEFONT:case $.TEMPLATE:{Fc(e,t);break}case $.BODY:{CJe(e,t);break}case $.FORM:{DJe(e,t);break}case $.NOBR:{FJe(e,t);break}case $.MATH:{KJe(e,t);break}case $.TABLE:{UJe(e,t);break}case $.INPUT:{jJe(e,t);break}case $.PARAM:case $.TRACK:case $.SOURCE:{zJe(e,t);break}case $.IMAGE:{WJe(e,t);break}case $.BUTTON:{LJe(e,t);break}case $.APPLET:case $.OBJECT:case $.MARQUEE:{BJe(e,t);break}case $.IFRAME:{YJe(e,t);break}case $.SELECT:{GJe(e,t);break}case $.OPTION:case $.OPTGROUP:{qJe(e,t);break}case $.NOEMBED:{oX(e,t);break}case $.FRAMESET:{_Je(e,t);break}case $.TEXTAREA:{HJe(e,t);break}case $.NOSCRIPT:{e.options.scriptingEnabled?oX(e,t):aX(e,t);break}case $.PLAINTEXT:{PJe(e,t);break}case $.COL:case $.TH:case $.TD:case $.TR:case $.HEAD:case $.FRAME:case $.TBODY:case $.TFOOT:case $.THEAD:case $.CAPTION:case $.COLGROUP:break;default:aX(e,t)}}function eet(e,t){if(e.openElements.hasInScope($.BODY)&&(e.insertionMode=Te.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function tet(e,t){e.openElements.hasInScope($.BODY)&&(e.insertionMode=Te.AFTER_BODY,jce(e,t))}function net(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function ret(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope($.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped($.FORM):n&&e.openElements.remove(n))}function iet(e){e.openElements.hasInButtonScope($.P)||e._insertFakeElement(nt.P,$.P),e._closePElement()}function oet(e){e.openElements.hasInListItemScope($.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion($.LI),e.openElements.popUntilTagNamePopped($.LI))}function aet(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function set(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function uet(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function cet(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(nt.BR,$.BR),e.openElements.pop(),e.framesetOk=!1}function Dce(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!==$.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 yI(e,t){switch(t.tagID){case $.A:case $.B:case $.I:case $.S:case $.U:case $.EM:case $.TT:case $.BIG:case $.CODE:case $.FONT:case $.NOBR:case $.SMALL:case $.STRIKE:case $.STRONG:{SB(e,t);break}case $.P:{iet(e);break}case $.DL:case $.UL:case $.OL:case $.DIR:case $.DIV:case $.NAV:case $.PRE:case $.MAIN:case $.MENU:case $.ASIDE:case $.BUTTON:case $.CENTER:case $.FIGURE:case $.FOOTER:case $.HEADER:case $.HGROUP:case $.DIALOG:case $.ADDRESS:case $.ARTICLE:case $.DETAILS:case $.SECTION:case $.SUMMARY:case $.LISTING:case $.FIELDSET:case $.BLOCKQUOTE:case $.FIGCAPTION:{net(e,t);break}case $.LI:{oet(e);break}case $.DD:case $.DT:{aet(e,t);break}case $.H1:case $.H2:case $.H3:case $.H4:case $.H5:case $.H6:{set(e);break}case $.BR:{cet(e);break}case $.BODY:{eet(e,t);break}case $.HTML:{tet(e,t);break}case $.FORM:{ret(e);break}case $.APPLET:case $.OBJECT:case $.MARQUEE:{uet(e,t);break}case $.TEMPLATE:{Fg(e,t);break}default:Dce(e,t)}}function Nce(e,t){e.tmplInsertionModeStack.length>0?Uce(e,t):TB(e,t)}function det(e,t){var n;t.tagID===$.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function fet(e,t){e._err(t,ct.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function kP(e,t){if(Cce.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Te.IN_TABLE_TEXT,t.type){case hr.CHARACTER:{Lce(e,t);break}case hr.WHITESPACE_CHARACTER:{Pce(e,t);break}}else ET(e,t)}function pet(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,vt.HTML),e.insertionMode=Te.IN_CAPTION}function het(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,vt.HTML),e.insertionMode=Te.IN_COLUMN_GROUP}function met(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(nt.COLGROUP,$.COLGROUP),e.insertionMode=Te.IN_COLUMN_GROUP,wB(e,t)}function get(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,vt.HTML),e.insertionMode=Te.IN_TABLE_BODY}function bet(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(nt.TBODY,$.TBODY),e.insertionMode=Te.IN_TABLE_BODY,vI(e,t)}function yet(e,t){e.openElements.hasInTableScope($.TABLE)&&(e.openElements.popUntilTagNamePopped($.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function vet(e,t){Ice(t)?e._appendElement(t,vt.HTML):ET(e,t),t.ackSelfClosing=!0}function Oet(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,vt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function My(e,t){switch(t.tagID){case $.TD:case $.TH:case $.TR:{bet(e,t);break}case $.STYLE:case $.SCRIPT:case $.TEMPLATE:{Fc(e,t);break}case $.COL:{met(e,t);break}case $.FORM:{Oet(e,t);break}case $.TABLE:{yet(e,t);break}case $.TBODY:case $.TFOOT:case $.THEAD:{get(e,t);break}case $.INPUT:{vet(e,t);break}case $.CAPTION:{pet(e,t);break}case $.COLGROUP:{het(e,t);break}default:ET(e,t)}}function sS(e,t){switch(t.tagID){case $.TABLE:{e.openElements.hasInTableScope($.TABLE)&&(e.openElements.popUntilTagNamePopped($.TABLE),e._resetInsertionMode());break}case $.TEMPLATE:{Fg(e,t);break}case $.BODY:case $.CAPTION:case $.COL:case $.COLGROUP:case $.HTML:case $.TBODY:case $.TD:case $.TFOOT:case $.TH:case $.THEAD:case $.TR:break;default:ET(e,t)}}function ET(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,bI(e,t),e.fosterParentingEnabled=n}function Pce(e,t){e.pendingCharacterTokens.push(t)}function Lce(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function NO(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===$.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===$.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===$.OPTGROUP&&e.openElements.pop();break}case $.OPTION:{e.openElements.currentTagId===$.OPTION&&e.openElements.pop();break}case $.SELECT:{e.openElements.hasInSelectScope($.SELECT)&&(e.openElements.popUntilTagNamePopped($.SELECT),e._resetInsertionMode());break}case $.TEMPLATE:{Fg(e,t);break}}}function Cet(e,t){const n=t.tagID;n===$.CAPTION||n===$.TABLE||n===$.TBODY||n===$.TFOOT||n===$.THEAD||n===$.TR||n===$.TD||n===$.TH?(e.openElements.popUntilTagNamePopped($.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Fce(e,t)}function _et(e,t){const n=t.tagID;n===$.CAPTION||n===$.TABLE||n===$.TBODY||n===$.TFOOT||n===$.THEAD||n===$.TR||n===$.TD||n===$.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped($.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Bce(e,t)}function Aet(e,t){switch(t.tagID){case $.BASE:case $.BASEFONT:case $.BGSOUND:case $.LINK:case $.META:case $.NOFRAMES:case $.SCRIPT:case $.STYLE:case $.TEMPLATE:case $.TITLE:{Fc(e,t);break}case $.CAPTION:case $.COLGROUP:case $.TBODY:case $.TFOOT:case $.THEAD:{e.tmplInsertionModeStack[0]=Te.IN_TABLE,e.insertionMode=Te.IN_TABLE,My(e,t);break}case $.COL:{e.tmplInsertionModeStack[0]=Te.IN_COLUMN_GROUP,e.insertionMode=Te.IN_COLUMN_GROUP,wB(e,t);break}case $.TR:{e.tmplInsertionModeStack[0]=Te.IN_TABLE_BODY,e.insertionMode=Te.IN_TABLE_BODY,vI(e,t);break}case $.TD:case $.TH:{e.tmplInsertionModeStack[0]=Te.IN_ROW,e.insertionMode=Te.IN_ROW,OI(e,t);break}default:e.tmplInsertionModeStack[0]=Te.IN_BODY,e.insertionMode=Te.IN_BODY,ms(e,t)}}function Ret(e,t){t.tagID===$.TEMPLATE&&Fg(e,t)}function Uce(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped($.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):TB(e,t)}function Iet(e,t){t.tagID===$.HTML?ms(e,t):nA(e,t)}function jce(e,t){var n;if(t.tagID===$.HTML){if(e.fragmentContext||(e.insertionMode=Te.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===$.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 nA(e,t)}function nA(e,t){e.insertionMode=Te.IN_BODY,bI(e,t)}function Det(e,t){switch(t.tagID){case $.HTML:{ms(e,t);break}case $.FRAMESET:{e._insertElement(t,vt.HTML);break}case $.FRAME:{e._appendElement(t,vt.HTML),t.ackSelfClosing=!0;break}case $.NOFRAMES:{Fc(e,t);break}}}function Net(e,t){t.tagID===$.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==$.FRAMESET&&(e.insertionMode=Te.AFTER_FRAMESET))}function Pet(e,t){switch(t.tagID){case $.HTML:{ms(e,t);break}case $.NOFRAMES:{Fc(e,t);break}}}function Let(e,t){t.tagID===$.HTML&&(e.insertionMode=Te.AFTER_AFTER_FRAMESET)}function Met(e,t){t.tagID===$.HTML?ms(e,t):rC(e,t)}function rC(e,t){e.insertionMode=Te.IN_BODY,bI(e,t)}function $et(e,t){switch(t.tagID){case $.HTML:{ms(e,t);break}case $.NOFRAMES:{Fc(e,t);break}}}function Fet(e,t){t.chars=ji,e._insertCharacters(t)}function Bet(e,t){e._insertCharacters(t),e.framesetOk=!1}function zce(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==vt.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Uet(e,t){if(JKe(t))zce(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===vt.MATHML?xce(t):r===vt.SVG&&(eJe(t),kce(t)),EB(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function jet(e,t){if(t.tagID===$.P||t.tagID===$.BR){zce(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)===vt.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}nt.AREA,nt.BASE,nt.BASEFONT,nt.BGSOUND,nt.BR,nt.COL,nt.EMBED,nt.FRAME,nt.HR,nt.IMG,nt.INPUT,nt.KEYGEN,nt.LINK,nt.META,nt.PARAM,nt.SOURCE,nt.TRACK,nt.WBR;const zet=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),sX={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Vce(e,t){const n=Ket(e),r=mB("type",{handlers:{root:Vet,element:Wet,text:Het,comment:Hce,doctype:Qet,raw:Get},unknown:qet}),i={parser:n?new iX(sX):iX.getFragmentParser(void 0,sX),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),gv(i,Yd());const o=n?i.parser.document:i.parser.getFragment(),a=KXe(o,{file:i.options.file});return i.stitches&&cl(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 Wce(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 Gce(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Gce(t.parentElement):null}function ttt(e){var t=n=>{var r=Gce(n.target);r&&(r.classList.add("active"),ett(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};L.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 ntt=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],rtt=e=>e;const itt=cn.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:f={},urlTransform:m}=e,g=st(e,ntt),v=cn.useRef(null);L.useImperativeHandle(t,()=>B({},e,{mdp:v}),[v,e]);var S=(n||"")+" "+(r||"");ttt(v);var O=[...g.rehypePlugins||[]],E={allowElement:(A,C,x)=>g.allowElement?g.allowElement(A,C,x):/^[A-Za-z0-9]+$/.test(A.tagName)};s&&O.push(Yce);var w=[...g.remarkPlugins||[],UXe],k=B({},f,d);return N.jsx("div",B({ref:v,onScroll:l,onMouseOver:u},k,{className:S,style:o,children:N.jsx(Aqe,B({},E,g,{skipHtml:s,urlTransform:m||rtt,rehypePlugins:c?c("rehype",O):O,remarkPlugins:c?c("remark",w):w,children:i||""}))}))});function p0(e){return"children"in e?qce(e):"value"in e?e.value:""}function ott(e){return e.type==="text"?e.value:"children"in e?qce(e):""}function qce(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let f;for(f in s)att.call(s,f)&&(d[f]=f==="children"?c:s[f]);return d}}function ltt(e){return"children"in e&&e.children!==void 0}var a$={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:/[{}[\];(),.:]/}}Bc.displayName="c";Bc.aliases=[];function Bc(e){e.register(Sr),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Bg.displayName="cpp";Bg.aliases=[];function Bg(e){e.register(Bc),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)}EI.displayName="arduino";EI.aliases=["ino"];function EI(e){e.register(Bg),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}TT.displayName="bash";TT.aliases=["sh","shell"];function TT(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(he,J){return"(?:"+se[+J]+")"})}function r(Q,se,he){return RegExp(n(Q,se),he||"")}function i(Q,se){for(var he=0;he>/g,function(){return"(?:"+Q+")"});return Q.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(Q){return"\\b(?:"+Q.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),f=i(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=n(/<<0>>(?:\s*<<1>>)?/.source,[m,d]),v=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,g]),S=/\[\s*(?:,\s*)*\]/.source,O=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,S]),E=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,f,S]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),k=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,v,S]),A={keyword:l,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,x=/"(?:\\.|[^\\"\r\n])*"/.source,F=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:A},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,k]),lookbehind:!0,inside:A},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,g]),lookbehind:!0,inside:A},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:A},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[O]),lookbehind:!0,inside:A},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,c,m]),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,[m]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:A},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,v]),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,[m,d]),inside:{function:r(/^<<0>>/.source,[m]),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,g,m,k,l.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),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 M=x+"|"+C,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[M]),V=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),W=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,G=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,V]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[W,G]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[W]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[V]),inside:t.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var j=/:[^}\r\n]+/.source,z=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[z,j]),Z=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[M]),2),q=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,j]);function te(Q,se){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Q]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[se,j]),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:te(X,z)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[q]),lookbehind:!0,greedy:!0,inside:te(q,Z)}],char:{pattern:RegExp(C),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}Oa.displayName="markup";Oa.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Oa(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}rm.displayName="css";rm.aliases=[];function rm(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)}SI.displayName="diff";SI.aliases=[];function SI(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)}xR.displayName="go";xR.aliases=[];function xR(e){e.register(Sr),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"]}kR.displayName="ini";kR.aliases=[];function kR(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:/=/}}jg.displayName="java";jg.aliases=[];function jg(e){e.register(Sr),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}CR.displayName="regex";CR.aliases=[];function CR(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"},s="(?:[^\\\\-]|"+r.source+")",a=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,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}y1.displayName="json";y1.aliases=["webmanifest"];function y1(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}_R.displayName="kotlin";_R.aliases=["kt","kts"];function _R(e){e.register(Sr),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}AR.displayName="less";AR.aliases=[];function AR(e){e.register(rm),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}xT.displayName="lua";xT.aliases=[];function xT(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}RR.displayName="makefile";RR.aliases=[];function RR(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}kT.displayName="yaml";kT.aliases=["yml"];function kT(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",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}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(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+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\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:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(s),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?: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)}IR.displayName="markdown";IR.aliases=["md"];function IR(e){e.register(Os),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(a){return a=a.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+a+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),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(a){["url","bold","italic","strike","code-snippet"].forEach(function(l){a!==l&&(t.languages.markdown[a].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(a){if(a.language!=="markdown"&&a.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}NR.displayName="perl";NR.aliases=[];function NR(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Vs.displayName="markup-templating";Vs.aliases=[];function Vs(e){e.register(Os),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,o,s){if(r.language===i){var a=r.tokenStack=[];r.code=r.code.replace(o,function(l){if(typeof s=="function"&&!s(l))return l;for(var u=a.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return a[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,s=Object.keys(r.tokenStack);function a(l){for(var u=0;u=s.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=s[o],p=r.tokenStack[d],m=typeof c=="string"?c:c.content,g=n(i,d),v=m.indexOf(g);if(v>-1){++o;var E=m.substring(0,v),O=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),S=m.substring(v+g.length),x=[];E&&x.push.apply(x,a([E])),x.push(O),S&&x.push.apply(x,a([S])),typeof c=="string"?l.splice.apply(l,[u,1].concat(x)):c.content=x}}else c.content&&a(c.content)}return l}a(r.tokens)}}})}(e)}zg.displayName="php";zg.aliases=[];function zg(e){e.register(Vs),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:o,punctuation:s};var a={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:a}},{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:a}}];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:s}},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)}CT.displayName="python";CT.aliases=["py"];function CT(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}PR.displayName="r";PR.aliases=[];function PR(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:/[(){}\[\],;]/}}Vg.displayName="ruby";Vg.aliases=["rb"];function Vg(e){e.register(Sr),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}LR.displayName="rust";LR.aliases=[];function LR(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)}MR.displayName="sass";MR.aliases=[];function MR(e){e.register(rm),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)}$R.displayName="scss";$R.aliases=[];function $R(e){e.register(rm),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}v1.displayName="sql";v1.aliases=[];function v1(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:/[;[\]()`,.]/}}FR.displayName="swift";FR.aliases=[];function FR(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})}O1.displayName="typescript";O1.aliases=["ts"];function O1(e){e.register(zs),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}_T.displayName="basic";_T.aliases=[];function _T(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:/[,;:()]/}}AT.displayName="vbnet";AT.aliases=[];function AT(e){e.register(_T),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 dX=/[#.]/g;function nnt(e,t){const n=e||"",r={};let i=0,o,s;for(;i=48&&t<=57}function dnt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function fnt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function hX(e){return fnt(e)||Kce(e)}const _0=String.fromCharCode,pnt=["","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 hnt(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,o=-1,s="",a,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,a=t.position.start):a=t.position);let u=(a?a.line:0)||1,c=(a?a.column:0)||1,d=m(),p;for(i--;++i<=e.length;)if(p===10&&(c=(l?l[o]:0)||1),p=e.charCodeAt(i),p===38){const E=e.charCodeAt(i+1);if(E===9||E===10||E===12||E===32||E===38||E===60||Number.isNaN(E)||n&&E===n){s+=_0(p),c++;continue}const O=i+1;let S=O,x=O,C;if(E===35){x=++S;const H=e.charCodeAt(x);H===88||H===120?(C="hexadecimal",x=++S):C="decimal"}else C="named";let I="",_="",w="";const F=C==="named"?hX:C==="decimal"?Kce:dnt;for(x--;++x<=e.length;){const H=e.charCodeAt(x);if(!F(H))break;w+=_0(H),C==="named"&&cnt.includes(w)&&(I=w,_=aS(w))}let M=e.charCodeAt(x)===59;if(M){x++;const H=C==="named"?aS(w):!1;H&&(I=w,_=H)}let L=1+x-O,W="";if(!(!M&&t.nonTerminated===!1))if(!w)C!=="named"&&g(4,L);else if(C==="named"){if(M&&!_)g(5,1);else if(I!==w&&(x=S+I.length,L=1+x-S,M=!1),!M){const H=I?1:3;if(t.attribute){const q=e.charCodeAt(x);q===61?(g(H,L),_=""):hX(q)?_="":g(H,L)}else g(H,L)}W=_}else{M||g(2,L);let H=Number.parseInt(w,C==="hexadecimal"?16:10);if(mnt(H))g(7,L),W=_0(65533);else if(H in pX)g(6,L),W=pX[H];else{let q="";gnt(H)&&g(6,L),H>65535&&(H-=65536,q+=_0(H>>>10|55296),H=56320|H&1023),W=q+_0(H)}}if(W){v(),d=m(),i=x-1,c+=x-O+1,r.push(W);const H=m();H.offset++,t.reference&&t.reference.call(t.referenceContext,W,{start:d,end:H},e.slice(O-1,x)),d=H}else w=e.slice(O-1,x),s+=w,c+=w.length,i=x-1}else p===10&&(u++,o++,c=0),Number.isNaN(p)?v():(s+=_0(p),c++);return r.join("");function m(){return{line:u,column:c,offset:i+((a?a.offset:0)||0)}}function g(E,O){let S;t.warning&&(S=m(),S.column+=O,S.offset+=O,t.warning.call(t.warningContext,pnt[E],S,E))}function v(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:d,end:m()}),s="")}}function mnt(e){return e>=55296&&e<=57343||e>1114111}function gnt(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 bnt=0,Jx={},us={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++bnt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(us.util.type(t)){case"Object":if(i=us.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=us.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,a){r[a]=e(s,n)}),r);default:return t}}},languages:{plain:Jx,plaintext:Jx,text:Jx,txt:Jx,extend:function(e,t){var n=us.util.clone(us.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||us.languages;var i=r[e],o={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);n.hasOwnProperty(s)||(o[s]=i[s])}var l=r[e];return r[e]=o,us.languages.DFS(us.languages,function(u,c){c===l&&u!=e&&(this[u]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=us.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var a=t[s],l=us.util.type(a);l==="Object"&&!i[o(a)]?(i[o(a)]=!0,e(a,n,null,i)):l==="Array"&&!i[o(a)]&&(i[o(a)]=!0,e(a,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(us.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=us.tokenize(r.code,r.grammar),us.hooks.run("after-tokenize",r),QO.stringify(us.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 ynt;return sC(i,i.head,e),Jce(e,i,t,i.head,0),Ont(i)},hooks:{all:{},add:function(e,t){var n=us.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=us.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:QO};function QO(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function mX(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 Jce(e,t,n,r,i,o){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var a=n[s];a=Array.isArray(a)?a:[a];for(var l=0;l=o.reach);O+=E.value.length,E=E.next){var S=E.value;if(t.length>e.length)return;if(!(S instanceof QO)){var x=1,C;if(p){if(C=mX(v,O,e,d),!C||C.index>=e.length)break;var F=C.index,I=C.index+C[0].length,_=O;for(_+=E.value.length;F>=_;)E=E.next,_+=E.value.length;if(_-=E.value.length,O=_,E.value instanceof QO)continue;for(var w=E;w!==t.tail&&(_o.reach&&(o.reach=H);var q=E.prev;L&&(q=sC(t,q,L),O+=L.length),vnt(t,q,x);var j=new QO(s,c?us.tokenize(M,c):M,m,M);if(E=sC(t,q,j),W&&sC(t,E,W),x>1){var z={cause:s+","+l,reach:H};Jce(e,t,n,E.prev,O,z),o&&z.reach>o.reach&&(o.reach=z.reach)}}}}}}function ynt(){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 sC(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 vnt(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:/[,.:()]/}}A6.displayName="abnf";A6.aliases=[];function A6(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)}R6.displayName="actionscript";R6.aliases=[];function R6(e){e.register(zs),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}I6.displayName="ada";I6.aliases=[];function I6(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}}D6.displayName="agda";D6.aliases=[];function D6(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)}N6.displayName="al";N6.aliases=[];function N6(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:/[()\[\]{}:.;,]/}}P6.displayName="antlr4";P6.aliases=["g4"];function P6(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}L6.displayName="apacheconf";L6.aliases=[];function L6(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:/\^?.*\$|\^.*\$?/}}M6.displayName="apex";M6.aliases=[];function M6(e){e.register(Sr),e.register(v1),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var 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)}$6.displayName="apl";$6.aliases=[];function $6(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"}}}F6.displayName="applescript";F6.aliases=[];function F6(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:/[{}():,¬«»《》]/}}B6.displayName="aql";B6.aliases=[];function B6(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:/::|[?.:,;()[\]{}]/}}U6.displayName="arff";U6.aliases=[];function U6(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:/[{},]/}}j6.displayName="armasm";j6.aliases=["arm-asm"];function j6(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}z6.displayName="arturo";z6.aliases=["art"];function z6(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)}V6.displayName="asciidoc";V6.aliases=["adoc"];function V6(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 s={},a=0,l=o.length;a/,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||{}}})}W6.displayName="asm6502";W6.aliases=[];function W6(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:/[(),:]/}}Q6.displayName="asmatmel";Q6.aliases=[];function Q6(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:/[(),:]/}}Y6.displayName="autohotkey";Y6.aliases=[];function Y6(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:/[{}[\]():,]/}}G6.displayName="autoit";G6.aliases=[];function G6(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:/[\[\]().,:]/}}q6.displayName="avisynth";q6.aliases=["avs"];function q6(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("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),a=[/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,s,a].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)}Z6.displayName="avro-idl";Z6.aliases=["avdl"];function Z6(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"]}X6.displayName="awk";X6.aliases=["gawk"];function X6(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}K6.displayName="batch";K6.aliases=[];function K6(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)}J6.displayName="bbcode";J6.aliases=["shortcode"];function J6(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}eB.displayName="bbj";eB.aliases=[];function eB(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)}tB.displayName="bicep";tB.aliases=[];function tB(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}nB.displayName="birb";nB.aliases=[];function nB(e){e.register(Sr),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}rB.displayName="bison";rB.aliases=[];function rB(e){e.register(Bc),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:/%[%?]|[|:;\[\]<>]/}}})}iB.displayName="bnf";iB.aliases=["rbnf"];function iB(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}oB.displayName="bqn";oB.aliases=[];function oB(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}sB.displayName="brainfuck";sB.aliases=[];function sB(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}aB.displayName="brightscript";aB.aliases=[];function aB(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}lB.displayName="bro";lB.aliases=[];function lB(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:/[{}[\];(),.:]/}}uB.displayName="bsl";uB.aliases=["oscript"];function uB(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}cB.displayName="cfscript";cB.aliases=["cfc"];function cB(e){e.register(Sr),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}dB.displayName="chaiscript";dB.aliases=[];function dB(e){e.register(Sr),e.register(Bg),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]+/}}})}fB.displayName="cil";fB.aliases=[];function fB(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]+/}}pB.displayName="cilkc";pB.aliases=["cilk-c"];function pB(e){e.register(Bc),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}hB.displayName="cilkcpp";hB.aliases=["cilk","cilk-cpp"];function hB(e){e.register(Bg),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}mB.displayName="clojure";mB.aliases=[];function mB(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:/[{}\[\](),]/}}gB.displayName="cmake";gB.aliases=[];function gB(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:/[()>}]|\$[<{]/}}bB.displayName="cobol";bB.aliases=[];function bB(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:/[.:,()]/}}yB.displayName="coffeescript";yB.aliases=["coffee"];function yB(e){e.register(zs),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}vB.displayName="concurnas";vB.aliases=["conc"];function vB(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}OB.displayName="csp";OB.aliases=[];function OB(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)}EB.displayName="cooklang";EB.aliases=[];function EB(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,o=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,a={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":a}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}SB.displayName="coq";SB.aliases=[];function SB(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)}TB.displayName="crystal";TB.aliases=[];function TB(e){e.register(Vg),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)}wB.displayName="css-extras";wB.aliases=[];function wB(e){e.register(rm),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)}xB.displayName="csv";xB.aliases=[];function xB(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}kB.displayName="cue";kB.aliases=[];function kB(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)}CB.displayName="cypher";CB.aliases=[];function CB(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:/[()[\]{},;.]/}}_B.displayName="d";_B.aliases=[];function _B(e){e.register(Sr),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}AB.displayName="dart";AB.aliases=[];function AB(e){e.register(Sr),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}RB.displayName="dataweave";RB.aliases=[];function RB(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)}IB.displayName="dax";IB.aliases=[];function IB(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:/[;\[\](){}`,.]/}}DB.displayName="dhall";DB.aliases=[];function DB(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}NB.displayName="django";NB.aliases=["jinja2"];function NB(e){e.register(Vs),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}PB.displayName="dns-zone-file";PB.aliases=["dns-zone"];function PB(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"]}LB.displayName="docker";LB.aliases=["dockerfile"];function LB(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}),s={pattern:RegExp(i),greedy:!0},a={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:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:a,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:a},t.languages.dockerfile=t.languages.docker})(e)}MB.displayName="dot";MB.aliases=["gv"];function MB(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,s){return RegExp(o.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}$B.displayName="ebnf";$B.aliases=[];function $B(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:/[-=|*/!]/}}FB.displayName="editorconfig";FB.aliases=[];function FB(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:/^=/}}}}BB.displayName="eiffel";BB.aliases=[];function BB(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}UB.displayName="ejs";UB.aliases=["eta"];function UB(e){e.register(zs),e.register(Vs),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}jB.displayName="elixir";jB.aliases=[];function jB(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}}}})}zB.displayName="elm";zB.aliases=[];function zB(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:/[{}[\]|(),.:]/}}VB.displayName="etlua";VB.aliases=[];function VB(e){e.register(xT),e.register(Vs),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}HB.displayName="erb";HB.aliases=[];function HB(e){e.register(Vs),e.register(Vg),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)}WB.displayName="erlang";WB.aliases=[];function WB(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:/[()[\]{}:;,.#|]|<<|>>/}}QB.displayName="excel-formula";QB.aliases=["xls","xlsx"];function QB(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"]}YB.displayName="fsharp";YB.aliases=[];function YB(e){e.register(Sr),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}GB.displayName="factor";GB.aliases=[];function GB(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")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(o).join("|")+")(?=\\s|$)")},a={"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(a).forEach(function(u){i[u].pattern=s(a[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(l),t.languages.factor=i})(e)}qB.displayName="false";qB.aliases=[];function qB(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:/,/}}})}XB.displayName="flow";XB.aliases=[];function XB(e){e.register(zs),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}KB.displayName="fortran";KB.aliases=[];function KB(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:/\(\/|\/\)|[(),;:&]/}}JB.displayName="ftl";JB.aliases=[];function JB(e){e.register(Vs),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(o){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(o,"ftl",s)}),t.hooks.add("after-tokenize",function(o){t.languages["markup-templating"].tokenizePlaceholders(o,"ftl")})}(e)}e8.displayName="gml";e8.aliases=["gamemakerlanguage"];function e8(e){e.register(Sr),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}t8.displayName="gap";t8.aliases=[];function t8(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}n8.displayName="gcode";n8.aliases=[];function n8(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:/[:*]/}}r8.displayName="gdscript";r8.aliases=[];function r8(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:/[.:,;()[\]{}]/}}i8.displayName="gedcom";i8.aliases=[];function i8(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"}}}o8.displayName="gettext";o8.aliases=["po"];function o8(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}s8.displayName="gherkin";s8.aliases=[];function s8(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)}a8.displayName="git";a8.aliases=[];function a8(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}}l8.displayName="glsl";l8.aliases=[];function l8(e){e.register(Bc),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/})}u8.displayName="gn";u8.aliases=["gni"];function u8(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}c8.displayName="linker-script";c8.aliases=["ld"];function c8(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"]}d8.displayName="go-module";d8.aliases=["go-mod"];function d8(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:/[()[\],]/}}f8.displayName="gradle";f8.aliases=[];function f8(e){e.register(Sr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}p8.displayName="graphql";p8.aliases=[];function p8(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(E){return typeof E!="string"&&E.type!=="comment"&&E.type!=="scalar"}),i=0;function o(E){return r[i+E]}function s(E,O){O=O||0;for(var S=0;S0)){var m=a(/^\{$/,/^\}$/);if(m===-1)continue;for(var g=i;g=0&&l(v,"variable-input")}}}}})}h8.displayName="groovy";h8.aliases=[];function h8(e){e.register(Sr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}m8.displayName="textile";m8.aliases=[];function m8(e){e.register(Os),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/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside: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:/[()]/}}}}}),a=s.phrase.inside,l={inline:a.inline,link:a.link,image:a.image,footnote:a.footnote,acronym:a.acronym,mark:a.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=a.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=a.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)}g8.displayName="haml";g8.aliases=[];function g8(e){e.register(Vg),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,s=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)}RT.displayName="haskell";RT.aliases=["hs"];function RT(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}y8.displayName="haxe";y8.aliases=[];function y8(e){e.register(Sr),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}v8.displayName="hcl";v8.aliases=[];function v8(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:/[=\[\]{}]/}}O8.displayName="hlsl";O8.aliases=[];function O8(e){e.register(Bc),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/})}E8.displayName="hoon";E8.aliases=[];function E8(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}S8.displayName="hpkp";S8.aliases=[];function S8(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}T8.displayName="hsts";T8.aliases=[];function T8(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}w8.displayName="uri";w8.aliases=["url"];function w8(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}x8.displayName="http";x8.aliases=[];function x8(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 s(c){var d=c.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+p+")"}var a;for(var l in i)if(i[l]){a=a||{};var u=o[l]?s(l):l;a[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]}}a&&t.languages.insertBefore("http","header",a)})(e)}k8.displayName="ichigojam";k8.aliases=[];function k8(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:/[\[,;:()\]]/}}C8.displayName="icon";C8.aliases=[];function C8(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:/[\[\](){},;]/}}_8.displayName="icu-message-format";_8.aliases=[];function _8(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}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),a={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":a,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":a,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},a.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)}A8.displayName="idris";A8.aliases=["idr"];function A8(e){e.register(RT),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}R8.displayName="ignore";R8.aliases=["gitignore","hgignore","npmignore"];function R8(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)}I8.displayName="inform7";I8.aliases=[];function I8(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"}}D8.displayName="io";D8.aliases=[];function D8(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:/[()]/}}S1.displayName="javadoclike";S1.aliases=[];function S1(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,s){var a="doc-comment",l=t.languages[o];if(l){var u=l[a];if(!u){var c={};c[a]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(o,"comment",c),u=l[a]}if(u instanceof RegExp&&(u=l[a]={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}L8.displayName="javadoc";L8.aliases=[];function L8(e){e.register(jg),e.register(S1),e.register(Os),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)}M8.displayName="javastacktrace";M8.aliases=[];function M8(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/}}}}$8.displayName="jexl";$8.aliases=[];function $8(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:/[{}[\](),.]/}}F8.displayName="jolie";F8.aliases=[];function F8(e){e.register(Sr),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}B8.displayName="jq";B8.aliases=[];function B8(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)}U8.displayName="js-templates";U8.aliases=[];function U8(e){e.register(zs),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,o=i.inside["interpolation-punctuation"],s=i.pattern.source;function a(g,v){if(t.languages[g])return{pattern:RegExp("((?:"+v+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}t.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),n].filter(Boolean);function l(g,v){return"___"+v.toUpperCase()+"_"+g+"___"}function u(g,v,E){var O={code:g,grammar:v,language:E};return t.hooks.run("before-tokenize",O),O.tokens=t.tokenize(O.code,O.grammar),t.hooks.run("after-tokenize",O),O.tokens}function c(g){var v={};v["interpolation-punctuation"]=o;var E=t.tokenize(g,v);if(E.length===3){var O=[1,1];O.push.apply(O,u(E[1],t.languages.javascript,"javascript")),E.splice.apply(E,O)}return new t.Token("interpolation",E,i.alias,g)}function d(g,v,E){var O=t.tokenize(g,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),S=0,x={},C=O.map(function(F){if(typeof F=="string")return F;for(var M=F.content,L;g.indexOf(L=l(S++,E))!==-1;);return x[L]=M,L}).join(""),I=u(C,v,E),_=Object.keys(x);S=0;function w(F){for(var M=0;M=_.length)return;var L=F[M];if(typeof L=="string"||typeof L.content=="string"){var W=_[S],H=typeof L=="string"?L:L.content,q=H.indexOf(W);if(q!==-1){++S;var j=H.substring(0,q),z=c(x[W]),X=H.substring(q+W.length),Z=[];if(j&&Z.push(j),Z.push(z),X){var G=[X];w(G),Z.push.apply(Z,G)}typeof L=="string"?(F.splice.apply(F,[M,1].concat(Z)),M+=Z.length-1):L.content=Z}}else{var ee=L.content;Array.isArray(ee)?w(ee):w([ee])}}}return w(I),new t.Token(E,I,"language-"+E,g)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(g){if(!(g.language in p))return;function v(E){for(var O=0,S=E.length;O\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)}z8.displayName="n4js";z8.aliases=["n4jsd"];function z8(e){e.register(zs),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}V8.displayName="js-extras";V8.aliases=[];function V8(e){e.register(zs),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(l,u){return RegExp(l.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}Y8.displayName="julia";Y8.aliases=[];function Y8(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|[πℯ]/}}G8.displayName="keepalived";G8.aliases=[];function G8(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:/[\{\}]/}}q8.displayName="keyman";q8.aliases=[];function q8(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:/[()=,]/}}Z8.displayName="kumir";Z8.aliases=["kum"];function Z8(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)}X8.displayName="kusto";X8.aliases=[];function X8(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:/[()\[\]{},;.:]/}}K8.displayName="latex";K8.aliases=["context","tex"];function K8(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)}J8.displayName="latte";J8.aliases=[];function J8(e){e.register(Sr),e.register(Vs),e.register(zg),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)}IT.displayName="scheme";IT.aliases=[];function IT(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)}eU.displayName="lilypond";eU.aliases=["ly"];function eU(e){e.register(IT),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)}tU.displayName="liquid";tU.aliases=[];function tU(e){e.register(Vs),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var o=/^\{%-?\s*(\w+)/.exec(i);if(o){var s=o[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}nU.displayName="lisp";nU.aliases=["elisp","emacs","emacs-lisp"];function nU(e){(function(t){function n(g){return RegExp(/(\()/.source+"(?:"+g+")"+/(?=[\s\)])/.source)}function r(g){return RegExp(/([\s([])/.source+"(?:"+g+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",a="(?=\\))",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(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},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+)*",m={pattern:RegExp(s+u+a),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=m,c.defun.inside.arguments=t.util.clone(m),c.defun.inside.arguments.inside.sublist=m,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}rU.displayName="livescript";rU.aliases=[];function rU(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}iU.displayName="llvm";iU.aliases=[];function iU(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)}oU.displayName="log";oU.aliases=[];function oU(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:/[\[\].,]/}}sU.displayName="lolcode";sU.aliases=[];function sU(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}|…|,|!/}}aU.displayName="magma";aU.aliases=[];function aU(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:/[()[\]{}<>,;.:]/}}BR.displayName="mata";BR.aliases=[];function BR(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)}lU.displayName="matlab";lU.aliases=[];function lU(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}|[.,;\[\](){}!]/}}uU.displayName="maxscript";uU.aliases=[];function uU(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)}cU.displayName="mel";cU.aliases=[];function cU(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}dU.displayName="mermaid";dU.aliases=[];function dU(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:/[(){};]/}}fU.displayName="metafont";fU.aliases=[];function fU(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}}}pU.displayName="mizar";pU.aliases=[];function pU(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:/\(#|#\)|[,:;\[\](){}]/}}hU.displayName="mongodb";hU.aliases=[];function hU(e){e.register(zs),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(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)}mU.displayName="monkey";mU.aliases=[];function mU(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:/[.,:;()\[\]]/}}gU.displayName="moonscript";gU.aliases=["moon"];function gU(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}bU.displayName="n1ql";bU.aliases=[];function bU(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:/[;[\](),.{}:]/}}yU.displayName="nand2tetris-hdl";yU.aliases=[];function yU(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:/[{}[\];(),:]/}}vU.displayName="naniscript";vU.aliases=["nani"];function vU(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var a=s.tokens;a.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(s){for(var a="[]{}",l=[],u=0;u=&|$!]/}}EU.displayName="neon";EU.aliases=[];function EU(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:/[,:=[\]{}()-]/}}SU.displayName="nevod";SU.aliases=[];function SU(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\-.]+/}}TU.displayName="nginx";TU.aliases=[];function TU(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)}wU.displayName="nim";wU.aliases=[];function wU(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}xU.displayName="nix";xU.aliases=[];function xU(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}kU.displayName="nsis";kU.aliases=[];function kU(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}}}CU.displayName="ocaml";CU.aliases=[];function CU(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/}}_U.displayName="odin";_U.aliases=[];function _U(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)}AU.displayName="opencl";AU.aliases=[];function AU(e){e.register(Bc),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)}RU.displayName="openqasm";RU.aliases=["qasm"];function RU(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}IU.displayName="oz";IU.aliases=[];function IU(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:/[\[\](){}.:;?]/}}DU.displayName="parigp";DU.aliases=[];function DU(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:/[\[\]{}().,:;|]/}}NU.displayName="parser";NU.aliases=[];function NU(e){e.register(Os),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)}PU.displayName="pascal";PU.aliases=["objectpascal"];function PU(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}LU.displayName="pascaligo";LU.aliases=[];function LU(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(s,a){return s[a]=i[a],s},{});i["class-name"].forEach(function(s){s.inside=o})})(e)}MU.displayName="psl";MU.aliases=[];function MU(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:/[(){}\[\];,]/}}$U.displayName="pcaxis";$U.aliases=["px"];function $U(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}FU.displayName="peoplecode";FU.aliases=["pcode"];function FU(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}BU.displayName="phpdoc";BU.aliases=[];function BU(e){e.register(S1),e.register(zg),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)}UU.displayName="php-extras";UU.aliases=[];function UU(e){e.register(zg),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:/::|\\/}}})}jU.displayName="plant-uml";jU.aliases=["plantuml"];function jU(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+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,a=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+o+a+"|"+s+o+"(?:"+a+")?)"+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)}zU.displayName="plsql";zU.aliases=[];function zU(e){e.register(v1),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"}})}VU.displayName="powerquery";VU.aliases=["mscript","pq"];function VU(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}HU.displayName="powershell";HU.aliases=[];function HU(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)}WU.displayName="processing";WU.aliases=[];function WU(e){e.register(Sr),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}QU.displayName="prolog";QU.aliases=[];function QU(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:/[(){}\[\],]/}}YU.displayName="promql";YU.aliases=[];function YU(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)}GU.displayName="properties";GU.aliases=[];function GU(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:/[=:]/}}qU.displayName="protobuf";qU.aliases=[];function qU(e){e.register(Sr),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}ZU.displayName="stylus";ZU.aliases=[];function ZU(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)}XU.displayName="twig";XU.aliases=[];function XU(e){e.register(Vs),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}KU.displayName="pug";KU.aliases=[];function KU(e){e.register(zs),e.register(Os),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,s=r.length;o",function(){return a.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[a.language,"language-"+a.language],inside:t.languages[a.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}JU.displayName="puppet";JU.aliases=[];function JU(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)}e7.displayName="pure";e7.aliases=[];function e7(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 s={};s["inline-lang-"+o]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=t.util.clone(t.languages[o]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}t7.displayName="purebasic";t7.aliases=["pbfasm"];function t7(e){e.register(Sr),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}n7.displayName="purescript";n7.aliases=["purs"];function n7(e){e.register(RT),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}r7.displayName="qsharp";r7.aliases=["qs"];function r7(e){e.register(Sr),function(t){function n(m,g){return m.replace(/<<(\d+)>>/g,function(v,E){return"(?:"+g[+E]+")"})}function r(m,g,v){return RegExp(n(m,g),v||"")}function i(m,g){for(var v=0;v>/g,function(){return"(?:"+m+")"});return m.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 s(m){return"\\b(?:"+m.trim().replace(/ /g,"|")+")\\b"}var a=RegExp(s(o.type+" "+o.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:a,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:a,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}i7.displayName="q";i7.aliases=[];function i7(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:/[(){}\[\];.]/}}o7.displayName="qml";o7.aliases=[];function o7(e){e.register(zs),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),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)}s7.displayName="qore";s7.aliases=[];function s7(e){e.register(Sr),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}a7.displayName="racket";a7.aliases=["rkt"];function a7(e){e.register(IT),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}l7.displayName="cshtml";l7.aliases=["razor"];function l7(e){e.register(Ug),e.register(Os),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(S,x){for(var C=0;C/g,function(){return"(?:"+S+")"});return S.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var o=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),a=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+o+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+o+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,d),m=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,g=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(u,c)}o=s(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var a=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(a).join(""):""},l=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===a(p.content[0].content[1])&&c.pop():p.content[p.content.length-1].content==="/>"||c.push({tagName:a(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--:m=!0),(m||typeof p=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var g=a(p);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(g=a(u[d-1])+g,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",g,null,g)}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)}u7.displayName="tsx";u7.aliases=[];function u7(e){e.register(UR),e.register(O1),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)}c7.displayName="reason";c7.aliases=[];function c7(e){e.register(Sr),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}d7.displayName="rego";d7.aliases=[];function d7(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:/[,;.\[\]{}()]/}}f7.displayName="renpy";f7.aliases=["rpy"];function f7(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}p7.displayName="rescript";p7.aliases=["res"];function p7(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}h7.displayName="rest";h7.aliases=[];function h7(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}}}m7.displayName="rip";m7.aliases=[];function m7(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`'",.:;#\/\\()<>\[\]{}]*/}}g7.displayName="roboconf";g7.aliases=[];function g7(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:/[{},.;:=]/}}b7.displayName="robotframework";b7.aliases=["robot"];function b7(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"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},a={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:o,property:a}),keywords:i("Keywords",{"keyword-name":s,documentation:o,property:a}),tasks:i("Tasks",{"task-name":s,documentation:o,property:a}),comment:n},t.languages.robot=t.languages.robotframework})(e)}y7.displayName="sas";y7.aliases=[];function y7(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},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},a={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},m={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},g={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},v={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"},E={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},O=/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,S={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return O}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return O}),"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}},x={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":v,"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:x,"submit-statement":E,"global-statements":v,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:x,"submit-statement":E,"global-statements":v,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":S,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:a,keyword:x,function:d,format:m,altformat:g,"global-statements":v,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":s,"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":s,"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":S,comment:l,function:d,format:m,altformat:g,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:a,keyword:x,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}v7.displayName="shell-session";v7.aliases=["sh-session","shellsession"];function v7(e){e.register(wT),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)}O7.displayName="smali";O7.aliases=[];function O7(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:/[{}(),;:]/}}E7.displayName="smalltalk";E7.aliases=[];function E7(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:/[.;:?\[\](){}]/}}S7.displayName="smarty";S7.aliases=[];function S7(e){e.register(Vs),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var o="{literal}",s="{/literal}",a=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(a=!1),a?!1:(l===o&&(a=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}T7.displayName="sml";T7.aliases=["smlnj"];function T7(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)}w7.displayName="solidity";w7.aliases=["sol"];function w7(e){e.register(Sr),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}x7.displayName="solution-file";x7.aliases=["sln"];function x7(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)}k7.displayName="soy";k7.aliases=[];function k7(e){e.register(Vs),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var o=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",a="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",o,function(u){return u===a&&(l=!1),l?!1:(u===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}jR.displayName="turtle";jR.aliases=["trig"];function jR(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}C7.displayName="sparql";C7.aliases=["rq"];function C7(e){e.register(jR),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}_7.displayName="splunk-spl";_7.aliases=[];function _7(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:/[()[\],]/}}A7.displayName="sqf";A7.aliases=[];function A7(e){e.register(Sr),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}R7.displayName="squirrel";R7.aliases=[];function R7(e){e.register(Sr),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}I7.displayName="stan";I7.aliases=[];function I7(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)}D7.displayName="stata";D7.aliases=[];function D7(e){e.register(jg),e.register(BR),e.register(CT),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}N7.displayName="iecst";N7.aliases=[];function N7(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:/[()[\].,;]/}}P7.displayName="supercollider";P7.aliases=["sclang"];function P7(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}L7.displayName="systemd";L7.aliases=[];function L7(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)}DT.displayName="t4-templating";DT.aliases=[];function DT(e){(function(t){function n(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function r(i){var o=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,s),"class-feature":n("\\+",o,s),standard:n("",o,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}M7.displayName="t4-cs";M7.aliases=["t4"];function M7(e){e.register(Ug),e.register(DT),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}$7.displayName="t4-vb";$7.aliases=[];function $7(e){e.register(DT),e.register(AT),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}F7.displayName="tap";F7.aliases=[];function F7(e){e.register(kT),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}B7.displayName="tcl";B7.aliases=[];function B7(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:/[{}()\[\]]/}}U7.displayName="tt2";U7.aliases=[];function U7(e){e.register(Sr),e.register(Vs),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}j7.displayName="toml";j7.aliases=[];function j7(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)}z7.displayName="tremor";z7.aliases=["trickle","troy"];function z7(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)}V7.displayName="typoscript";V7.aliases=["tsconfig"];function V7(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)}H7.displayName="unrealscript";H7.aliases=["uc","uscript"];function H7(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}W7.displayName="uorazor";W7.aliases=[];function W7(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:/[()\[\]{}:.,]/}}Q7.displayName="v";Q7.aliases=[];function Q7(e){e.register(Sr),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}Y7.displayName="vala";Y7.aliases=[];function Y7(e){e.register(Sr),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}G7.displayName="velocity";G7.aliases=[];function G7(e){e.register(Os),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)}q7.displayName="verilog";q7.aliases=[];function q7(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:/[[\];(),.:]/}}Z7.displayName="vhdl";Z7.aliases=[];function Z7(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:/[{}[\];(),.:]/}}X7.displayName="vim";X7.aliases=[];function X7(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:/[{}[\](),;:]/}}K7.displayName="visual-basic";K7.aliases=["vb","vba"];function K7(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"]}J7.displayName="warpscript";J7.aliases=[];function J7(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/}}e9.displayName="wasm";e9.aliases=[];function e9(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:/[()]/}}t9.displayName="web-idl";t9.aliases=["webidl"];function t9(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)}n9.displayName="wgsl";n9.aliases=[];function n9(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:/[@(){}[\],;<>:.]/}}r9.displayName="wiki";r9.aliases=[];function r9(e){e.register(Os),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}}}})}i9.displayName="wolfram";i9.aliases=["mathematica","nb","wl"];function i9(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}o9.displayName="wren";o9.aliases=[];function o9(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]+/}}}s9.displayName="xeora";s9.aliases=["xeoracube"];function s9(e){e.register(Os),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)}a9.displayName="xml-doc";a9.aliases=[];function a9(e){e.register(Os),function(t){function n(s,a){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":a})}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)}l9.displayName="xojo";l9.aliases=[];function l9(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:/[.,;:()]/}}u9.displayName="xquery";u9.aliases=[];function u9(e){e.register(Os),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=[],s=0;s0&&o[o.length-1].tagName===n(a.content[0].content[1])&&o.pop():a.content[a.content.length-1].content==="/>"||o.push({tagName:n(a.content[0].content[1]),openedBraces:0}):o.length>0&&a.type==="punctuation"&&a.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&a.type==="punctuation"&&a.content==="}"?o[o.length-1].openedBraces--:a.type!=="comment"&&(l=!0)),(l||typeof a=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var u=n(a);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(u=n(i[s-1])+u,i.splice(s-1,1),s--),/^\s+$/.test(u)?i[s]=u:i[s]=new t.Token("plain-text",u,null,u)}a.content&&typeof a.content!="string"&&r(a.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}c9.displayName="yang";c9.aliases=[];function c9(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:/[{};:]/}}d9.displayName="zig";d9.aliases=[];function d9(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,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),a=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+a+")+";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)}se.register(Os);se.register(rm);se.register(Sr);se.register(CR);se.register(zs);se.register(_6);se.register(A6);se.register(R6);se.register(I6);se.register(D6);se.register(N6);se.register(P6);se.register(L6);se.register(v1);se.register(M6);se.register($6);se.register(F6);se.register(B6);se.register(Bc);se.register(Bg);se.register(TR);se.register(U6);se.register(j6);se.register(wT);se.register(kT);se.register(IR);se.register(z6);se.register(V6);se.register(Ug);se.register(H6);se.register(W6);se.register(Q6);se.register(Y6);se.register(G6);se.register(q6);se.register(Z6);se.register(X6);se.register(_T);se.register(K6);se.register(J6);se.register(eB);se.register(tB);se.register(nB);se.register(rB);se.register(iB);se.register(oB);se.register(sB);se.register(aB);se.register(lB);se.register(uB);se.register(cB);se.register(dB);se.register(fB);se.register(pB);se.register(hB);se.register(mB);se.register(gB);se.register(bB);se.register(yB);se.register(vB);se.register(OB);se.register(EB);se.register(SB);se.register(Vg);se.register(TB);se.register(wB);se.register(xB);se.register(kB);se.register(CB);se.register(_B);se.register(AB);se.register(RB);se.register(IB);se.register(DB);se.register(wR);se.register(Vs);se.register(NB);se.register(PB);se.register(LB);se.register(MB);se.register($B);se.register(FB);se.register(BB);se.register(UB);se.register(jB);se.register(zB);se.register(xT);se.register(VB);se.register(HB);se.register(WB);se.register(QB);se.register(YB);se.register(GB);se.register(qB);se.register(ZB);se.register(XB);se.register(KB);se.register(JB);se.register(e8);se.register(t8);se.register(n8);se.register(r8);se.register(i8);se.register(o8);se.register(s8);se.register(a8);se.register(l8);se.register(u8);se.register(c8);se.register(xR);se.register(d8);se.register(f8);se.register(p8);se.register(h8);se.register(AR);se.register($R);se.register(m8);se.register(g8);se.register(b8);se.register(RT);se.register(y8);se.register(v8);se.register(O8);se.register(E8);se.register(S8);se.register(T8);se.register(y1);se.register(w8);se.register(x8);se.register(k8);se.register(C8);se.register(_8);se.register(A8);se.register(R8);se.register(I8);se.register(kR);se.register(D8);se.register(N8);se.register(jg);se.register(zg);se.register(S1);se.register(P8);se.register(L8);se.register(M8);se.register($8);se.register(F8);se.register(B8);se.register(U8);se.register(O1);se.register(j8);se.register(z8);se.register(V8);se.register(H8);se.register(W8);se.register(Q8);se.register(Y8);se.register(G8);se.register(q8);se.register(_R);se.register(Z8);se.register(X8);se.register(K8);se.register(J8);se.register(IT);se.register(eU);se.register(tU);se.register(nU);se.register(rU);se.register(iU);se.register(oU);se.register(sU);se.register(aU);se.register(RR);se.register(BR);se.register(lU);se.register(uU);se.register(cU);se.register(dU);se.register(fU);se.register(pU);se.register(hU);se.register(mU);se.register(gU);se.register(bU);se.register(yU);se.register(vU);se.register(OU);se.register(EU);se.register(SU);se.register(TU);se.register(wU);se.register(xU);se.register(kU);se.register(DR);se.register(CU);se.register(_U);se.register(AU);se.register(RU);se.register(IU);se.register(DU);se.register(NU);se.register(PU);se.register(LU);se.register(MU);se.register($U);se.register(FU);se.register(NR);se.register(BU);se.register(UU);se.register(jU);se.register(zU);se.register(VU);se.register(HU);se.register(WU);se.register(QU);se.register(YU);se.register(GU);se.register(qU);se.register(ZU);se.register(XU);se.register(KU);se.register(JU);se.register(e7);se.register(t7);se.register(n7);se.register(CT);se.register(r7);se.register(i7);se.register(o7);se.register(s7);se.register(PR);se.register(a7);se.register(l7);se.register(UR);se.register(u7);se.register(c7);se.register(d7);se.register(f7);se.register(p7);se.register(h7);se.register(m7);se.register(g7);se.register(b7);se.register(LR);se.register(y7);se.register(MR);se.register(v7);se.register(O7);se.register(E7);se.register(S7);se.register(T7);se.register(w7);se.register(x7);se.register(k7);se.register(jR);se.register(C7);se.register(_7);se.register(A7);se.register(R7);se.register(I7);se.register(D7);se.register(N7);se.register(P7);se.register(FR);se.register(L7);se.register(DT);se.register(M7);se.register(AT);se.register($7);se.register(F7);se.register(B7);se.register(U7);se.register(j7);se.register(z7);se.register(V7);se.register(H7);se.register(W7);se.register(Q7);se.register(Y7);se.register(G7);se.register(q7);se.register(Z7);se.register(X7);se.register(K7);se.register(J7);se.register(e9);se.register(t9);se.register(n9);se.register(r9);se.register(i9);se.register(o9);se.register(s9);se.register(a9);se.register(l9);se.register(u9);se.register(c9);se.register(d9);function f4(){f4=function(i,o){return new n(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function n(i,o,s){var a=new RegExp(i,o);return t.set(a,s||t.get(i)),oA(a,n.prototype)}function r(i,o){var s=t.get(o);return Object.keys(s).reduce(function(a,l){var u=s[l];if(typeof u=="number")a[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=s[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var a=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,a)),o.apply(this,l)})}return e[Symbol.replace].call(this,i,o)},f4.apply(this,arguments)}function oA(e,t){return oA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},oA(e,t)}function gX(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 _nt=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){cl(r,"element",n)};function n(r,i,o){var s,a;if(o&&o.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(a=r.properties)==null?void 0:a.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(I){for(var _,w=RP(I.properties.className);!(_=w()).done;){var F=_.value;if(F.slice(0,9)==="language-")return F.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,m;m=(p=d)!=null&&p.includes("diff-")?d.split("-")[1]:d,u=e.highlight(pb(r),m),o.properties.className=(o.properties.className||[]).concat("language-"+m)}catch(I){if(!t.ignoreMissing||!/Unknown language/.test(I.message))throw I;u=r}else u=r;u.children=(c=1,function I(_){return _.reduce(function(w,F){if(F.type==="text"){var M=F.value,L=(M.match(/\n/g)||"").length;if(L===0)F.position={start:{line:c,column:1},end:{line:c,column:1}},w.push(F);else for(var W,H=M.split(` -`),q=RP(H.entries());!(W=q()).done;){var j=W.value,z=j[0],X=j[1];w.push({type:"text",value:z===H.length-1?X:X+` -`,position:{start:{line:c+z,column:1},end:{line:c+z,column:1}}})}return c+=L,w}if(Object.prototype.hasOwnProperty.call(F,"children")){var Z=c;return F.children=I(F.children),w.push(F),F.position={start:{line:Z,column:1},end:{line:c,column:1}},w}return w.push(F),w},[])})(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 g,v=function(I){var _=/{([\d,-]+)}/,w=I.split(",").map(function(L){return L.trim()}).join();if(_.test(w)){var F=_.exec(w)[1],M=tnt(F);return function(L){return M.includes(L+1)}}return function(){return!1}}(l),E=function(I){var _=f4(/showLineNumbers=(\d+)/i,{lines:1});if(_.test(I)){var w=_.exec(I);return Number(w.groups.lines)}return 1}(l),O=function(I){for(var _=new Array(I),w=0;w=F+1});M.children=L.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||S.some(function(W){return l.toLowerCase().includes(W)})||(M.properties.line=[(F+E).toString()],M.properties.className.push("line-number")),v(F)&&M.properties.className.push("highlight-line"),(d==="diff"||(I=d)!=null&&I.includes("diff-"))&&pb(M).substring(0,1)==="-"?M.properties.className.push("deleted"):(d==="diff"||(_=d)!=null&&_.includes("diff-"))&&pb(M).substring(0,1)==="+"&&M.properties.className.push("inserted")},C=RP(O.entries());!(g=C()).done;)x();O.length>0&&pb(O[O.length-1]).trim()===""&&O.pop(),r.children=O}}}},Ant=_nt(se),aC={},p4={};function Rnt(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"]}}}),m4=NT(rde,{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"]}}}),g4=NT(m4,{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"]}}}),Fnt=NT(g4,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),SX={css1:nde,css2:rde,css3:m4,"selectors-3":m4,"selectors-4":g4,latest:g4,progressive:Fnt};function Lv(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function Bnt(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Mv(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Unt={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},jnt={'"':!0,"'":!0},DP={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},znt=6,NP="css-selector-parser parse error: ";function Vnt(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,s=typeof n=="object"?n:SX[n];s.baseSyntax&&(s=NT(SX[s.baseSyntax],s));var a=s.tag?[!0,!!Lnt(s.tag).wildcard]:[!1,!1],l=a[0],u=a[1],c=!!s.ids,d=!!s.classNames,p=!!s.namespace,m=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(NP,"Namespaces cannot be enabled while tags are disabled."));var g=!!r,v=s.combinators?bX(s.combinators):aC,E=s.attributes?[!0,s.attributes.operators?bX(s.attributes.operators):aC,s.attributes.caseSensitivityModifiers?Int(s.attributes.caseSensitivityModifiers):p4,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,aC,p4,!1],O=E[0],S=E[1],x=E[2],C=E[3],I=C||Object.keys(x).length>0,_=s.pseudoClasses?[!0,s.pseudoClasses.definitions?vX(s.pseudoClasses.definitions):ek,s.pseudoClasses.unknown==="accept"]:[!1,ek,!1],w=_[0],F=_[1],M=_[2],L=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?vX(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):ek,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,ek,!1],W=L[0],H=L[1],q=L[2],j=L[3],z=L[4],X="",Z=X.length,G=0,ee="",Q=function(be){return ee===be},ae=function(){return Q("*")||Lv(ee)},Te=function(be){G=be,ee=X.charAt(G)},te=function(){G++,ee=X.charAt(G)},pe=function(){var be=ee;return G++,ee=X.charAt(G),be};function Oe(be){var we=Math.min(Z-1,G),Ie=new Error("".concat(NP).concat(be," Pos: ").concat(we,"."));throw Ie.position=we,Ie.name="ParserError",Ie}function me(be,we){if(!be)return Oe(we)}var Re=function(){me(G=Z},et=function(be){me(G=2&&Oe("Identifiers cannot start with two hyphens with strict mode on."),DP[ee]&&Oe("Identifiers cannot start with hyphens followed by digits.");G0)return(t.commaSeparated?o6:a6)(e)}else return String(e)}const Knt=[];function Jnt(e,t){return(t.properties.className||Knt).includes(e.name)}function ert(e,t){return t.properties.id===e.name}function trt(e,t){return e.name===t.tagName}function nrt(e,t){return function(n,r){let i=wX(n,"tag");const o=wX(r??"*","range"),s=[];let a=-1;for(;++a=xX&&e.charCodeAt(t)<=srt;)u=u*10+(e.charCodeAt(t)-xX),t++;return t===l?null:u}function a(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?kX.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 CX(e){return urt(art(e))}const crt=CX.default||CX,drt=y6("name",{handlers:{"any-link":frt,blank:prt,checked:hrt,dir:mrt,disabled:sde,empty:grt,enabled:brt,"first-child":yrt,"first-of-type":vrt,has:Ort,is:ade,lang:Srt,"last-child":Trt,"last-of-type":wrt,not:xrt,"nth-child":krt,"nth-last-child":Crt,"nth-last-of-type":_rt,"nth-of-type":Art,"only-child":Rrt,"only-of-type":Irt,optional:Drt,"read-only":Nrt,"read-write":lde,required:ude,root:Prt,scope:Lrt},invalid:Ert,unknown:Mrt});function frt(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Ag(t,"href")}function Gd(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function prt(e,t){return!cde(t,n);function n(r){return r.type==="element"||r.type==="text"&&!rue(r)}}function hrt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Ag(t,"checked")):t.tagName==="option"?Ag(t,"selected"):!1}function mrt(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function sde(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")&&Ag(t,"disabled")}function grt(e,t){return!cde(t,n);function n(r){return r.type==="element"||r.type==="text"}}function brt(e,t){return!sde(e,t)}function yrt(e,t,n,r,i){return Gd(i,e),i.elementIndex===0}function vrt(e,t,n,r,i){return Gd(i,e),i.typeIndex===0}function zR(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=crt(n.a+"n+"+n.b),e._cachedFn=t}return t}function Ort(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 f9(o,{type:"root",children:t.children}),o.results.length>0}function Ert(){}function ade(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 f9(o,t),o.results[0]===t}function Srt(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&rrt(i.language,iS(e.argument.value)).length>0}function Trt(e,t,n,r,i){return Gd(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function wrt(e,t,n,r,i){return Gd(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function xrt(e,t,n,r,i){return!ade(e,t,n,r,i)}function krt(e,t,n,r,i){const o=zR(e);return Gd(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function Crt(e,t,n,r,i){const o=zR(e);return Gd(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function _rt(e,t,n,r,i){const o=zR(e);return Gd(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function Art(e,t,n,r,i){const o=zR(e);return Gd(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function Rrt(e,t,n,r,i){return Gd(i,e),i.elementCount===1}function Irt(e,t,n,r,i){return Gd(i,e),i.typeCount===1}function Drt(e,t){return!ude(e,t)}function Nrt(e,t,n,r,i){return!lde(e,t,n,r,i)}function lde(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Ag(t,"readOnly")&&!Ag(t,"disabled"):!!i.editableOrEditingHost}function ude(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Ag(t,"required")}function Prt(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 Lrt(e,t,n,r,i){return i.scopeElements.includes(t)}function cde(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";LP(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}a.combinator===void 0?LP(o,"descendant",a):a.combinator==="~"&&LP(o,"generalSibling",a)}return o}function lC(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Frt}function _X(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 dde(e,t,n,r,i,o){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const a=qnt(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)),s=Urt(e,lC(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Brt(e,s,n,o),a(),s}function jrt(e,t,n){const r=zrt(e,t,n);return f9(r,t||void 0),r.results}function zrt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Wnt(e),schema:n==="svg"?Wd:$g,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const fde=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=fde(n.children))}),t),Vrt=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=jrt(t,r);i&&i.length>0&&cl(r,i,(o,s,a)=>{n(o,s,a)});return}cl(r,(i,o,s)=>{n(i,o,s)})}}},Hrt=Vrt,Wrt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Qrt=(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]}},pde=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?pde(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},AX=({value:e=""})=>{const t=Wrt(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},RX=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Yrt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{cl(r,"element",(i,o,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const a=i.children[0];if(a&&a.tagName==="code"&&typeof o=="number"){const l=Qrt(s.children,o);if(l){const u=AX(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},a.properties=RX(a.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&s&&Array.isArray(s.children)&&typeof o=="number"){const a=pde(s.children,o,"",n);if(a){const l=AX(a);Object.keys(l).length>0&&(i.properties=RX(i.properties,l,t))}}})}},Grt=Yrt;var qrt=function(t){return n=>{cl(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=B({},r.properties,{"data-meta":String(r.data.meta)}))})}},Zrt=function(t){return n=>{cl(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 Xrt=/[\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,Krt=Object.hasOwnProperty;class Jrt{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=eit(t,n===!0);const o=i;for(;Krt.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 eit(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Xrt,"").replace(/ /g,"-"))}function hde(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 tit={},IX=new Jrt;function nit(e){const n=(e||tit).prefix||"";return function(r){IX.reset(),cl(r,"element",function(i){hde(i)&&!i.properties.id&&(i.properties.id=n+IX.slug(pb(i)))})}}const mde=function(e){if(e==null)return oit;if(typeof e=="string")return iit(e);if(typeof e=="object")return rit(e);if(typeof e=="function")return p9(e);throw new Error("Expected function, string, or array as `test`")};function rit(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{cl(r,(i,o,s)=>{if(i.type==="element"||i.type==="root"){let a=!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 a=!0,!1;if(u===n)return a=!1,!1}return!a})}})}},cit=uit;var dit={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 fit(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 pit=(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=B({class:"anchor"},o.properties),o.children=[dit])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=fde(n.children);n.children.push(fit(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},hit=[nit,lit,cit];const bde=cn.forwardRef((e,t)=>{var n,r=[qrt,qce,Zrt,[Ant,{ignoreMissing:!0}],...hit,[Hrt,{rewrite:pit((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Grt,{properties:"attr"}],...e.rehypePlugins||[]];return N.jsx(qtt,B({},e,{rehypePlugins:r,ref:t}))});function b4(e){return e.split(` +|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}TI.displayName="go";TI.aliases=[];function TI(e){e.register(Sr),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"]}wI.displayName="ini";wI.aliases=[];function wI(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:/=/}}jg.displayName="java";jg.aliases=[];function jg(e){e.register(Sr),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}xI.displayName="regex";xI.aliases=[];function xI(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}bv.displayName="json";bv.aliases=["webmanifest"];function bv(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}kI.displayName="kotlin";kI.aliases=["kt","kts"];function kI(e){e.register(Sr),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}CI.displayName="less";CI.aliases=[];function CI(e){e.register(rm),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"}})}wT.displayName="lua";wT.aliases=[];function wT(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:/[\[\](){},;]|\.+|:+/}}_I.displayName="makefile";_I.aliases=[];function _I(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:/[:;(){}]/}}xT.displayName="yaml";xT.aliases=["yml"];function xT(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)}AI.displayName="markdown";AI.aliases=["md"];function AI(e){e.register(Oa),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}II.displayName="perl";II.aliases=[];function II(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Va.displayName="markup-templating";Va.aliases=[];function Va(e){e.register(Oa),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],f=r.tokenStack[d],m=typeof c=="string"?c:c.content,g=n(i,d),v=m.indexOf(g);if(v>-1){++o;var S=m.substring(0,v),O=new t.Token(i,t.tokenize(f,r.grammar),"language-"+i,f),E=m.substring(v+g.length),w=[];S&&w.push.apply(w,s([S])),w.push(O),E&&w.push.apply(w,s([E])),typeof c=="string"?l.splice.apply(l,[u,1].concat(w)):c.content=w}}else c.content&&s(c.content)}return l}s(r.tokens)}}})}(e)}zg.displayName="php";zg.aliases=[];function zg(e){e.register(Va),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)}kT.displayName="python";kT.aliases=["py"];function kT(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}DI.displayName="r";DI.aliases=[];function DI(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:/[(){}\[\],;]/}}Vg.displayName="ruby";Vg.aliases=["rb"];function Vg(e){e.register(Sr),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}NI.displayName="rust";NI.aliases=[];function NI(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)}PI.displayName="sass";PI.aliases=[];function PI(e){e.register(rm),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}LI.displayName="scss";LI.aliases=[];function LI(e){e.register(rm),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}yv.displayName="sql";yv.aliases=[];function yv(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:/[;[\]()`,.]/}}MI.displayName="swift";MI.aliases=[];function MI(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})}vv.displayName="typescript";vv.aliases=["ts"];function vv(e){e.register(za),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)}CT.displayName="basic";CT.aliases=[];function CT(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:/[,;:()]/}}_T.displayName="vbnet";_T.aliases=[];function _T(e){e.register(CT),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 lX=/[#.]/g;function dtt(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function Ott(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ett(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function dX(e){return Ett(e)||Zce(e)}const _b=String.fromCharCode,Stt=["","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 Ttt(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=m(),f;for(i--;++i<=e.length;)if(f===10&&(c=(l?l[o]:0)||1),f=e.charCodeAt(i),f===38){const S=e.charCodeAt(i+1);if(S===9||S===10||S===12||S===32||S===38||S===60||Number.isNaN(S)||n&&S===n){a+=_b(f),c++;continue}const O=i+1;let E=O,w=O,k;if(S===35){w=++E;const W=e.charCodeAt(w);W===88||W===120?(k="hexadecimal",w=++E):k="decimal"}else k="named";let A="",C="",x="";const F=k==="named"?dX:k==="decimal"?Zce:Ott;for(w--;++w<=e.length;){const W=e.charCodeAt(w);if(!F(W))break;x+=_b(W),k==="named"&&vtt.includes(x)&&(A=x,C=aS(x))}let M=e.charCodeAt(w)===59;if(M){w++;const W=k==="named"?aS(x):!1;W&&(A=x,C=W)}let P=1+w-O,V="";if(!(!M&&t.nonTerminated===!1))if(!x)k!=="named"&&g(4,P);else if(k==="named"){if(M&&!C)g(5,1);else if(A!==x&&(w=E+A.length,P=1+w-E,M=!1),!M){const W=A?1:3;if(t.attribute){const G=e.charCodeAt(w);G===61?(g(W,P),C=""):dX(G)?C="":g(W,P)}else g(W,P)}V=C}else{M||g(2,P);let W=Number.parseInt(x,k==="hexadecimal"?16:10);if(wtt(W))g(7,P),V=_b(65533);else if(W in cX)g(6,P),V=cX[W];else{let G="";xtt(W)&&g(6,P),W>65535&&(W-=65536,G+=_b(W>>>10|55296),W=56320|W&1023),V=G+_b(W)}}if(V){v(),d=m(),i=w-1,c+=w-O+1,r.push(V);const W=m();W.offset++,t.reference&&t.reference.call(t.referenceContext,V,{start:d,end:W},e.slice(O-1,w)),d=W}else x=e.slice(O-1,w),a+=x,c+=x.length,i=w-1}else f===10&&(u++,o++,c=0),Number.isNaN(f)?v():(a+=_b(f),c++);return r.join("");function m(){return{line:u,column:c,offset:i+((s?s.offset:0)||0)}}function g(S,O){let E;t.warning&&(E=m(),E.column+=O,E.offset+=O,t.warning.call(t.warningContext,Stt[S],E,S))}function v(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:m()}),a="")}}function wtt(e){return e>=55296&&e<=57343||e>1114111}function xtt(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 ktt=0,Xx={},ua={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++ktt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(ua.util.type(t)){case"Object":if(i=ua.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=ua.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:Xx,plaintext:Xx,text:Xx,txt:Xx,extend:function(e,t){var n=ua.util.clone(ua.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||ua.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,ua.languages.DFS(ua.languages,function(u,c){c===l&&u!=e&&(this[u]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=ua.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],l=ua.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(ua.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=ua.tokenize(r.code,r.grammar),ua.hooks.run("after-tokenize",r),H1.stringify(ua.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new Ctt;return iC(i,i.head,e),Xce(e,i,t,i.head,0),Att(i)},hooks:{all:{},add:function(e,t){var n=ua.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=ua.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:H1};function H1(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function fX(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 Xce(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);O+=S.value.length,S=S.next){var E=S.value;if(t.length>e.length)return;if(!(E instanceof H1)){var w=1,k;if(f){if(k=fX(v,O,e,d),!k||k.index>=e.length)break;var F=k.index,A=k.index+k[0].length,C=O;for(C+=S.value.length;F>=C;)S=S.next,C+=S.value.length;if(C-=S.value.length,O=C,S.value instanceof H1)continue;for(var x=S;x!==t.tail&&(Co.reach&&(o.reach=W);var G=S.prev;P&&(G=iC(t,G,P),O+=P.length),_tt(t,G,w);var j=new H1(a,c?ua.tokenize(M,c):M,m,M);if(S=iC(t,G,j),V&&iC(t,S,V),w>1){var z={cause:a+","+l,reach:W};Xce(e,t,n,S.prev,O,z),o&&z.reach>o.reach&&(o.reach=z.reach)}}}}}}function Ctt(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function iC(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 _tt(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:/[,.:()]/}}kB.displayName="abnf";kB.aliases=[];function kB(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)}CB.displayName="actionscript";CB.aliases=[];function CB(e){e.register(za),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}})}_B.displayName="ada";_B.aliases=[];function _B(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}}AB.displayName="agda";AB.aliases=[];function AB(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)}RB.displayName="al";RB.aliases=[];function RB(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:/[()\[\]{}:.;,]/}}IB.displayName="antlr4";IB.aliases=["g4"];function IB(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}DB.displayName="apacheconf";DB.aliases=[];function DB(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:/\^?.*\$|\^.*\$?/}}NB.displayName="apex";NB.aliases=[];function NB(e){e.register(Sr),e.register(yv),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)}PB.displayName="apl";PB.aliases=[];function PB(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"}}}LB.displayName="applescript";LB.aliases=[];function LB(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:/[{}():,¬«»《》]/}}MB.displayName="aql";MB.aliases=[];function MB(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:/::|[?.:,;()[\]{}]/}}$B.displayName="arff";$B.aliases=[];function $B(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:/[{},]/}}FB.displayName="armasm";FB.aliases=["arm-asm"];function FB(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}BB.displayName="arturo";BB.aliases=["art"];function BB(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)}UB.displayName="asciidoc";UB.aliases=["adoc"];function UB(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||{}}})}zB.displayName="asm6502";zB.aliases=[];function zB(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:/[(),:]/}}VB.displayName="asmatmel";VB.aliases=[];function VB(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:/[(),:]/}}WB.displayName="autohotkey";WB.aliases=[];function WB(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:/[{}[\]():,]/}}HB.displayName="autoit";HB.aliases=[];function HB(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:/[\[\]().,:]/}}QB.displayName="avisynth";QB.aliases=["avs"];function QB(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(d,f){return c[+f]})}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)}YB.displayName="avro-idl";YB.aliases=["avdl"];function YB(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"]}GB.displayName="awk";GB.aliases=["gawk"];function GB(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}qB.displayName="batch";qB.aliases=[];function qB(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)}ZB.displayName="bbcode";ZB.aliases=["shortcode"];function ZB(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}XB.displayName="bbj";XB.aliases=[];function XB(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)}KB.displayName="bicep";KB.aliases=[];function KB(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}JB.displayName="birb";JB.aliases=[];function JB(e){e.register(Sr),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}e6.displayName="bison";e6.aliases=[];function e6(e){e.register(Bc),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:/%[%?]|[|:;\[\]<>]/}}})}t6.displayName="bnf";t6.aliases=["rbnf"];function t6(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}n6.displayName="bqn";n6.aliases=[];function n6(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}r6.displayName="brainfuck";r6.aliases=[];function r6(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}i6.displayName="brightscript";i6.aliases=[];function i6(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}o6.displayName="bro";o6.aliases=[];function o6(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:/[{}[\];(),.:]/}}a6.displayName="bsl";a6.aliases=["oscript"];function a6(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}s6.displayName="cfscript";s6.aliases=["cfc"];function s6(e){e.register(Sr),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}l6.displayName="chaiscript";l6.aliases=[];function l6(e){e.register(Sr),e.register(Bg),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]+/}}})}u6.displayName="cil";u6.aliases=[];function u6(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]+/}}c6.displayName="cilkc";c6.aliases=["cilk-c"];function c6(e){e.register(Bc),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}d6.displayName="cilkcpp";d6.aliases=["cilk","cilk-cpp"];function d6(e){e.register(Bg),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}f6.displayName="clojure";f6.aliases=[];function f6(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:/[{}\[\](),]/}}p6.displayName="cmake";p6.aliases=[];function p6(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:/[()>}]|\$[<{]/}}h6.displayName="cobol";h6.aliases=[];function h6(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:/[.:,()]/}}m6.displayName="coffeescript";m6.aliases=["coffee"];function m6(e){e.register(za),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)}g6.displayName="concurnas";g6.aliases=["conc"];function g6(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}b6.displayName="csp";b6.aliases=[];function b6(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)}y6.displayName="cooklang";y6.aliases=[];function y6(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)}v6.displayName="coq";v6.aliases=[];function v6(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)}O6.displayName="crystal";O6.aliases=[];function O6(e){e.register(Vg),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)}E6.displayName="css-extras";E6.aliases=[];function E6(e){e.register(rm),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)}S6.displayName="csv";S6.aliases=[];function S6(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}T6.displayName="cue";T6.aliases=[];function T6(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)}w6.displayName="cypher";w6.aliases=[];function w6(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:/[()[\]{},;.]/}}x6.displayName="d";x6.aliases=[];function x6(e){e.register(Sr),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}k6.displayName="dart";k6.aliases=[];function k6(e){e.register(Sr),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}C6.displayName="dataweave";C6.aliases=[];function C6(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)}_6.displayName="dax";_6.aliases=[];function _6(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:/[;\[\](){}`,.]/}}A6.displayName="dhall";A6.aliases=[];function A6(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}R6.displayName="django";R6.aliases=["jinja2"];function R6(e){e.register(Va),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)}I6.displayName="dns-zone-file";I6.aliases=["dns-zone"];function I6(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"]}D6.displayName="docker";D6.aliases=["dockerfile"];function D6(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)}N6.displayName="dot";N6.aliases=["gv"];function N6(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)}P6.displayName="ebnf";P6.aliases=[];function P6(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:/[-=|*/!]/}}L6.displayName="editorconfig";L6.aliases=[];function L6(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:/^=/}}}}M6.displayName="eiffel";M6.aliases=[];function M6(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}$6.displayName="ejs";$6.aliases=["eta"];function $6(e){e.register(za),e.register(Va),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)}F6.displayName="elixir";F6.aliases=[];function F6(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}}}})}B6.displayName="elm";B6.aliases=[];function B6(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:/[{}[\]|(),.:]/}}U6.displayName="etlua";U6.aliases=[];function U6(e){e.register(wT),e.register(Va),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)}j6.displayName="erb";j6.aliases=[];function j6(e){e.register(Va),e.register(Vg),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)}z6.displayName="erlang";z6.aliases=[];function z6(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:/[()[\]{}:;,.#|]|<<|>>/}}V6.displayName="excel-formula";V6.aliases=["xls","xlsx"];function V6(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"]}W6.displayName="fsharp";W6.aliases=[];function W6(e){e.register(Sr),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}H6.displayName="factor";H6.aliases=[];function H6(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)}Q6.displayName="false";Q6.aliases=[];function Q6(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:/,/}}})}G6.displayName="flow";G6.aliases=[];function G6(e){e.register(za),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)}q6.displayName="fortran";q6.aliases=[];function q6(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:/\(\/|\/\)|[(),;:&]/}}Z6.displayName="ftl";Z6.aliases=[];function Z6(e){e.register(Va),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)}X6.displayName="gml";X6.aliases=["gamemakerlanguage"];function X6(e){e.register(Sr),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}K6.displayName="gap";K6.aliases=[];function K6(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}J6.displayName="gcode";J6.aliases=[];function J6(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:/[:*]/}}eU.displayName="gdscript";eU.aliases=[];function eU(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:/[.:,;()[\]{}]/}}tU.displayName="gedcom";tU.aliases=[];function tU(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"}}}nU.displayName="gettext";nU.aliases=["po"];function nU(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}rU.displayName="gherkin";rU.aliases=[];function rU(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)}iU.displayName="git";iU.aliases=[];function iU(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}}oU.displayName="glsl";oU.aliases=[];function oU(e){e.register(Bc),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/})}aU.displayName="gn";aU.aliases=["gni"];function aU(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}sU.displayName="linker-script";sU.aliases=["ld"];function sU(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"]}lU.displayName="go-module";lU.aliases=["go-mod"];function lU(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:/[()[\],]/}}uU.displayName="gradle";uU.aliases=[];function uU(e){e.register(Sr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}cU.displayName="graphql";cU.aliases=[];function cU(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(S){return typeof S!="string"&&S.type!=="comment"&&S.type!=="scalar"}),i=0;function o(S){return r[i+S]}function a(S,O){O=O||0;for(var E=0;E0)){var m=s(/^\{$/,/^\}$/);if(m===-1)continue;for(var g=i;g=0&&l(v,"variable-input")}}}}})}dU.displayName="groovy";dU.aliases=[];function dU(e){e.register(Sr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}fU.displayName="textile";fU.aliases=[];function fU(e){e.register(Oa),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(d,f){return RegExp(d.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),f||"")}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)}pU.displayName="haml";pU.aliases=[];function pU(e){e.register(Vg),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)}AT.displayName="haskell";AT.aliases=["hs"];function AT(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}mU.displayName="haxe";mU.aliases=[];function mU(e){e.register(Sr),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}gU.displayName="hcl";gU.aliases=[];function gU(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:/[=\[\]{}]/}}bU.displayName="hlsl";bU.aliases=[];function bU(e){e.register(Bc),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/})}yU.displayName="hoon";yU.aliases=[];function yU(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}vU.displayName="hpkp";vU.aliases=[];function vU(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}OU.displayName="hsts";OU.aliases=[];function OU(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}EU.displayName="uri";EU.aliases=["url"];function EU(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}SU.displayName="http";SU.aliases=[];function SU(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]+\//,""),f="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+f+")"}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)}TU.displayName="ichigojam";TU.aliases=[];function TU(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:/[\[,;:()\]]/}}wU.displayName="icon";wU.aliases=[];function wU(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:/[\[\](){},;]/}}xU.displayName="icu-message-format";xU.aliases=[];function xU(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)}kU.displayName="idris";kU.aliases=["idr"];function kU(e){e.register(AT),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}CU.displayName="ignore";CU.aliases=["gitignore","hgignore","npmignore"];function CU(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)}_U.displayName="inform7";_U.aliases=[];function _U(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"}}AU.displayName="io";AU.aliases=[];function AU(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:/[()]/}}Ev.displayName="javadoclike";Ev.aliases=[];function Ev(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,f=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}DU.displayName="javadoc";DU.aliases=[];function DU(e){e.register(jg),e.register(Ev),e.register(Oa),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)}NU.displayName="javastacktrace";NU.aliases=[];function NU(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/}}}}PU.displayName="jexl";PU.aliases=[];function PU(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:/[{}[\](),.]/}}LU.displayName="jolie";LU.aliases=[];function LU(e){e.register(Sr),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}MU.displayName="jq";MU.aliases=[];function MU(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)}$U.displayName="js-templates";$U.aliases=[];function $U(e){e.register(za),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(g,v){if(t.languages[g])return{pattern:RegExp("((?:"+v+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}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(g,v){return"___"+v.toUpperCase()+"_"+g+"___"}function u(g,v,S){var O={code:g,grammar:v,language:S};return t.hooks.run("before-tokenize",O),O.tokens=t.tokenize(O.code,O.grammar),t.hooks.run("after-tokenize",O),O.tokens}function c(g){var v={};v["interpolation-punctuation"]=o;var S=t.tokenize(g,v);if(S.length===3){var O=[1,1];O.push.apply(O,u(S[1],t.languages.javascript,"javascript")),S.splice.apply(S,O)}return new t.Token("interpolation",S,i.alias,g)}function d(g,v,S){var O=t.tokenize(g,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),E=0,w={},k=O.map(function(F){if(typeof F=="string")return F;for(var M=F.content,P;g.indexOf(P=l(E++,S))!==-1;);return w[P]=M,P}).join(""),A=u(k,v,S),C=Object.keys(w);E=0;function x(F){for(var M=0;M=C.length)return;var P=F[M];if(typeof P=="string"||typeof P.content=="string"){var V=C[E],W=typeof P=="string"?P:P.content,G=W.indexOf(V);if(G!==-1){++E;var j=W.substring(0,G),z=c(w[V]),X=W.substring(G+V.length),Z=[];if(j&&Z.push(j),Z.push(z),X){var q=[X];x(q),Z.push.apply(Z,q)}typeof P=="string"?(F.splice.apply(F,[M,1].concat(Z)),M+=Z.length-1):P.content=Z}}else{var te=P.content;Array.isArray(te)?x(te):x([te])}}}return x(A),new t.Token(S,A,"language-"+S,g)}var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(g){if(!(g.language in f))return;function v(S){for(var O=0,E=S.length;O\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)}BU.displayName="n4js";BU.aliases=["n4jsd"];function BU(e){e.register(za),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}UU.displayName="js-extras";UU.aliases=[];function UU(e){e.register(za),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:/:/}}}}}}WU.displayName="julia";WU.aliases=[];function WU(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|[πℯ]/}}HU.displayName="keepalived";HU.aliases=[];function HU(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:/[\{\}]/}}QU.displayName="keyman";QU.aliases=[];function QU(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:/[()=,]/}}YU.displayName="kumir";YU.aliases=["kum"];function YU(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)}GU.displayName="kusto";GU.aliases=[];function GU(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:/[()\[\]{},;.:]/}}qU.displayName="latex";qU.aliases=["context","tex"];function qU(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)}ZU.displayName="latte";ZU.aliases=[];function ZU(e){e.register(Sr),e.register(Va),e.register(zg),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)}RT.displayName="scheme";RT.aliases=[];function RT(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)}XU.displayName="lilypond";XU.aliases=["ly"];function XU(e){e.register(RT),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)}KU.displayName="liquid";KU.aliases=[];function KU(e){e.register(Va),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")})}JU.displayName="lisp";JU.aliases=["elisp","emacs","emacs-lisp"];function JU(e){(function(t){function n(g){return RegExp(/(\()/.source+"(?:"+g+")"+/(?=[\s\)])/.source)}function r(g){return RegExp(/([\s([])/.source+"(?:"+g+")"+/(?=[\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},f="\\S+(?:\\s+\\S+)*",m={pattern:RegExp(a+u+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+f),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+f),inside:d},keys:{pattern:RegExp("&key\\s+"+f+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=m,c.defun.inside.arguments=t.util.clone(m),c.defun.inside.arguments.inside.sublist=m,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}e8.displayName="livescript";e8.aliases=[];function e8(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}t8.displayName="llvm";t8.aliases=[];function t8(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)}n8.displayName="log";n8.aliases=[];function n8(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:/[\[\].,]/}}r8.displayName="lolcode";r8.aliases=[];function r8(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}|…|,|!/}}i8.displayName="magma";i8.aliases=[];function i8(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:/[()[\]{}<>,;.:]/}}$I.displayName="mata";$I.aliases=[];function $I(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)}o8.displayName="matlab";o8.aliases=[];function o8(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}|[.,;\[\](){}!]/}}a8.displayName="maxscript";a8.aliases=[];function a8(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)}s8.displayName="mel";s8.aliases=[];function s8(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}l8.displayName="mermaid";l8.aliases=[];function l8(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:/[(){};]/}}u8.displayName="metafont";u8.aliases=[];function u8(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}}}c8.displayName="mizar";c8.aliases=[];function c8(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:/\(#|#\)|[,:;\[\](){}]/}}d8.displayName="mongodb";d8.aliases=[];function d8(e){e.register(za),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)}f8.displayName="monkey";f8.aliases=[];function f8(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:/[.,:;()\[\]]/}}p8.displayName="moonscript";p8.aliases=["moon"];function p8(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}h8.displayName="n1ql";h8.aliases=[];function h8(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:/[;[\](),.{}:]/}}m8.displayName="nand2tetris-hdl";m8.aliases=[];function m8(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:/[{}[\];(),:]/}}g8.displayName="naniscript";g8.aliases=["nani"];function g8(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=&|$!]/}}y8.displayName="neon";y8.aliases=[];function y8(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:/[,:=[\]{}()-]/}}v8.displayName="nevod";v8.aliases=[];function v8(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\-.]+/}}O8.displayName="nginx";O8.aliases=[];function O8(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)}E8.displayName="nim";E8.aliases=[];function E8(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}S8.displayName="nix";S8.aliases=[];function S8(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}T8.displayName="nsis";T8.aliases=[];function T8(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}}}w8.displayName="ocaml";w8.aliases=[];function w8(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/}}x8.displayName="odin";x8.aliases=[];function x8(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)}k8.displayName="opencl";k8.aliases=[];function k8(e){e.register(Bc),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)}C8.displayName="openqasm";C8.aliases=["qasm"];function C8(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}_8.displayName="oz";_8.aliases=[];function _8(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:/[\[\](){}.:;?]/}}A8.displayName="parigp";A8.aliases=[];function A8(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:/[\[\]{}().,:;|]/}}R8.displayName="parser";R8.aliases=[];function R8(e){e.register(Oa),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)}I8.displayName="pascal";I8.aliases=["objectpascal"];function I8(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}D8.displayName="pascaligo";D8.aliases=[];function D8(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)}N8.displayName="psl";N8.aliases=[];function N8(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:/[(){}\[\];,]/}}P8.displayName="pcaxis";P8.aliases=["px"];function P8(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}L8.displayName="peoplecode";L8.aliases=["pcode"];function L8(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}M8.displayName="phpdoc";M8.aliases=[];function M8(e){e.register(Ev),e.register(zg),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)}$8.displayName="php-extras";$8.aliases=[];function $8(e){e.register(zg),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:/::|\\/}}})}F8.displayName="plant-uml";F8.aliases=["plantuml"];function F8(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)}B8.displayName="plsql";B8.aliases=[];function B8(e){e.register(yv),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"}})}U8.displayName="powerquery";U8.aliases=["mscript","pq"];function U8(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}j8.displayName="powershell";j8.aliases=[];function j8(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)}z8.displayName="processing";z8.aliases=[];function z8(e){e.register(Sr),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}V8.displayName="prolog";V8.aliases=[];function V8(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:/[(){}\[\],]/}}W8.displayName="promql";W8.aliases=[];function W8(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)}H8.displayName="properties";H8.aliases=[];function H8(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:/[=:]/}}Q8.displayName="protobuf";Q8.aliases=[];function Q8(e){e.register(Sr),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}Y8.displayName="stylus";Y8.aliases=[];function Y8(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)}G8.displayName="twig";G8.aliases=[];function G8(e){e.register(Va),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")})}q8.displayName="pug";q8.aliases=[];function q8(e){e.register(za),e.register(Oa),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)}Z8.displayName="puppet";Z8.aliases=[];function Z8(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)}X8.displayName="pure";X8.aliases=[];function X8(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)}K8.displayName="purebasic";K8.aliases=["pbfasm"];function K8(e){e.register(Sr),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}J8.displayName="purescript";J8.aliases=["purs"];function J8(e){e.register(AT),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}e9.displayName="qsharp";e9.aliases=["qs"];function e9(e){e.register(Sr),function(t){function n(m,g){return m.replace(/<<(\d+)>>/g,function(v,S){return"(?:"+g[+S]+")"})}function r(m,g,v){return RegExp(n(m,g),v||"")}function i(m,g){for(var v=0;v>/g,function(){return"(?:"+m+")"});return m.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(m){return"\\b(?:"+m.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 f=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[d]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[f]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[f]),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}t9.displayName="q";t9.aliases=[];function t9(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:/[(){}\[\];.]/}}n9.displayName="qml";n9.aliases=[];function n9(e){e.register(za),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)}r9.displayName="qore";r9.aliases=[];function r9(e){e.register(Sr),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}i9.displayName="racket";i9.aliases=["rkt"];function i9(e){e.register(RT),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}o9.displayName="cshtml";o9.aliases=["razor"];function o9(e){e.register(Ug),e.register(Oa),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(E,w){for(var k=0;k/g,function(){return"(?:"+E+")"});return E.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+`)[^"'@]*)+["'])`,f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,d),m=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,g=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|"+i(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|")+")*"+/<\/\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(f.content[0].content[1])&&c.pop():f.content[f.content.length-1].content==="/>"||c.push({tagName:s(f.content[0].content[1]),openedBraces:0}):c.length>0&&f.type==="punctuation"&&f.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?c[c.length-1].openedBraces--:m=!0),(m||typeof f=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var g=s(f);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(g=s(u[d-1])+g,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",g,null,g)}f.content&&typeof f.content!="string"&&l(f.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}a9.displayName="tsx";a9.aliases=[];function a9(e){e.register(FI),e.register(vv),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)}s9.displayName="reason";s9.aliases=[];function s9(e){e.register(Sr),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}l9.displayName="rego";l9.aliases=[];function l9(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:/[,;.\[\]{}()]/}}u9.displayName="renpy";u9.aliases=["rpy"];function u9(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}c9.displayName="rescript";c9.aliases=["res"];function c9(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}d9.displayName="rest";d9.aliases=[];function d9(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}}}f9.displayName="rip";f9.aliases=[];function f9(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`'",.:;#\/\\()<>\[\]{}]*/}}p9.displayName="roboconf";p9.aliases=[];function p9(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:/[{},.;:=]/}}h9.displayName="robotframework";h9.aliases=["robot"];function h9(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)}m9.displayName="sas";m9.aliases=[];function m9(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"},f={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},m={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},g={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},v={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"},S={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},O=/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,E={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return O}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return O}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:d,"arg-value":f["arg-value"],operator:f.operator,argument:f.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},w={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":v,"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:w,"submit-statement":S,"global-statements":v,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:w,"submit-statement":S,"global-statements":v,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:f}},"cas-actions":E,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:f},step:s,keyword:w,function:d,format:m,altformat:g,"global-statements":v,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:f},"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:f},"cas-actions":E,comment:l,function:d,format:m,altformat:g,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:s,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}g9.displayName="shell-session";g9.aliases=["sh-session","shellsession"];function g9(e){e.register(TT),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)}b9.displayName="smali";b9.aliases=[];function b9(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:/[{}(),;:]/}}y9.displayName="smalltalk";y9.aliases=[];function y9(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:/[.;:?\[\](){}]/}}v9.displayName="smarty";v9.aliases=[];function v9(e){e.register(Va),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)}O9.displayName="sml";O9.aliases=["smlnj"];function O9(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)}E9.displayName="solidity";E9.aliases=["sol"];function E9(e){e.register(Sr),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}S9.displayName="solution-file";S9.aliases=["sln"];function S9(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)}T9.displayName="soy";T9.aliases=[];function T9(e){e.register(Va),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)}BI.displayName="turtle";BI.aliases=["trig"];function BI(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}w9.displayName="sparql";w9.aliases=["rq"];function w9(e){e.register(BI),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}x9.displayName="splunk-spl";x9.aliases=[];function x9(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:/[()[\],]/}}k9.displayName="sqf";k9.aliases=[];function k9(e){e.register(Sr),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}C9.displayName="squirrel";C9.aliases=[];function C9(e){e.register(Sr),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}_9.displayName="stan";_9.aliases=[];function _9(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)}A9.displayName="stata";A9.aliases=[];function A9(e){e.register(jg),e.register($I),e.register(kT),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}R9.displayName="iecst";R9.aliases=[];function R9(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:/[()[\].,;]/}}I9.displayName="supercollider";I9.aliases=["sclang"];function I9(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}D9.displayName="systemd";D9.aliases=[];function D9(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)}IT.displayName="t4-templating";IT.aliases=[];function IT(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)}N9.displayName="t4-cs";N9.aliases=["t4"];function N9(e){e.register(Ug),e.register(IT),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}P9.displayName="t4-vb";P9.aliases=[];function P9(e){e.register(IT),e.register(_T),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}L9.displayName="tap";L9.aliases=[];function L9(e){e.register(xT),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"}}}M9.displayName="tcl";M9.aliases=[];function M9(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:/[{}()\[\]]/}}$9.displayName="tt2";$9.aliases=[];function $9(e){e.register(Sr),e.register(Va),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)}F9.displayName="toml";F9.aliases=[];function F9(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)}B9.displayName="tremor";B9.aliases=["trickle","troy"];function B9(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)}U9.displayName="typoscript";U9.aliases=["tsconfig"];function U9(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)}j9.displayName="unrealscript";j9.aliases=["uc","uscript"];function j9(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}z9.displayName="uorazor";z9.aliases=[];function z9(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:/[()\[\]{}:.,]/}}V9.displayName="v";V9.aliases=[];function V9(e){e.register(Sr),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}W9.displayName="vala";W9.aliases=[];function W9(e){e.register(Sr),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}H9.displayName="velocity";H9.aliases=[];function H9(e){e.register(Oa),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)}Q9.displayName="verilog";Q9.aliases=[];function Q9(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:/[[\];(),.:]/}}Y9.displayName="vhdl";Y9.aliases=[];function Y9(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:/[{}[\];(),.:]/}}G9.displayName="vim";G9.aliases=[];function G9(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:/[{}[\](),;:]/}}q9.displayName="visual-basic";q9.aliases=["vb","vba"];function q9(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"]}Z9.displayName="warpscript";Z9.aliases=[];function Z9(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/}}X9.displayName="wasm";X9.aliases=[];function X9(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:/[()]/}}K9.displayName="web-idl";K9.aliases=["webidl"];function K9(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)}J9.displayName="wgsl";J9.aliases=[];function J9(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:/[@(){}[\],;<>:.]/}}e7.displayName="wiki";e7.aliases=[];function e7(e){e.register(Oa),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}}}})}t7.displayName="wolfram";t7.aliases=["mathematica","nb","wl"];function t7(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}n7.displayName="wren";n7.aliases=[];function n7(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]+/}}}r7.displayName="xeora";r7.aliases=["xeoracube"];function r7(e){e.register(Oa),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)}i7.displayName="xml-doc";i7.aliases=[];function i7(e){e.register(Oa),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)}o7.displayName="xojo";o7.aliases=[];function o7(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:/[.,;:()]/}}a7.displayName="xquery";a7.aliases=[];function a7(e){e.register(Oa),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)}s7.displayName="yang";s7.aliases=[];function s7(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:/[{};:]/}}l7.displayName="zig";l7.aliases=[];function l7(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)}ae.register(Oa);ae.register(rm);ae.register(Sr);ae.register(xI);ae.register(za);ae.register(xB);ae.register(kB);ae.register(CB);ae.register(_B);ae.register(AB);ae.register(RB);ae.register(IB);ae.register(DB);ae.register(yv);ae.register(NB);ae.register(PB);ae.register(LB);ae.register(MB);ae.register(Bc);ae.register(Bg);ae.register(EI);ae.register($B);ae.register(FB);ae.register(TT);ae.register(xT);ae.register(AI);ae.register(BB);ae.register(UB);ae.register(Ug);ae.register(jB);ae.register(zB);ae.register(VB);ae.register(WB);ae.register(HB);ae.register(QB);ae.register(YB);ae.register(GB);ae.register(CT);ae.register(qB);ae.register(ZB);ae.register(XB);ae.register(KB);ae.register(JB);ae.register(e6);ae.register(t6);ae.register(n6);ae.register(r6);ae.register(i6);ae.register(o6);ae.register(a6);ae.register(s6);ae.register(l6);ae.register(u6);ae.register(c6);ae.register(d6);ae.register(f6);ae.register(p6);ae.register(h6);ae.register(m6);ae.register(g6);ae.register(b6);ae.register(y6);ae.register(v6);ae.register(Vg);ae.register(O6);ae.register(E6);ae.register(S6);ae.register(T6);ae.register(w6);ae.register(x6);ae.register(k6);ae.register(C6);ae.register(_6);ae.register(A6);ae.register(SI);ae.register(Va);ae.register(R6);ae.register(I6);ae.register(D6);ae.register(N6);ae.register(P6);ae.register(L6);ae.register(M6);ae.register($6);ae.register(F6);ae.register(B6);ae.register(wT);ae.register(U6);ae.register(j6);ae.register(z6);ae.register(V6);ae.register(W6);ae.register(H6);ae.register(Q6);ae.register(Y6);ae.register(G6);ae.register(q6);ae.register(Z6);ae.register(X6);ae.register(K6);ae.register(J6);ae.register(eU);ae.register(tU);ae.register(nU);ae.register(rU);ae.register(iU);ae.register(oU);ae.register(aU);ae.register(sU);ae.register(TI);ae.register(lU);ae.register(uU);ae.register(cU);ae.register(dU);ae.register(CI);ae.register(LI);ae.register(fU);ae.register(pU);ae.register(hU);ae.register(AT);ae.register(mU);ae.register(gU);ae.register(bU);ae.register(yU);ae.register(vU);ae.register(OU);ae.register(bv);ae.register(EU);ae.register(SU);ae.register(TU);ae.register(wU);ae.register(xU);ae.register(kU);ae.register(CU);ae.register(_U);ae.register(wI);ae.register(AU);ae.register(RU);ae.register(jg);ae.register(zg);ae.register(Ev);ae.register(IU);ae.register(DU);ae.register(NU);ae.register(PU);ae.register(LU);ae.register(MU);ae.register($U);ae.register(vv);ae.register(FU);ae.register(BU);ae.register(UU);ae.register(jU);ae.register(zU);ae.register(VU);ae.register(WU);ae.register(HU);ae.register(QU);ae.register(kI);ae.register(YU);ae.register(GU);ae.register(qU);ae.register(ZU);ae.register(RT);ae.register(XU);ae.register(KU);ae.register(JU);ae.register(e8);ae.register(t8);ae.register(n8);ae.register(r8);ae.register(i8);ae.register(_I);ae.register($I);ae.register(o8);ae.register(a8);ae.register(s8);ae.register(l8);ae.register(u8);ae.register(c8);ae.register(d8);ae.register(f8);ae.register(p8);ae.register(h8);ae.register(m8);ae.register(g8);ae.register(b8);ae.register(y8);ae.register(v8);ae.register(O8);ae.register(E8);ae.register(S8);ae.register(T8);ae.register(RI);ae.register(w8);ae.register(x8);ae.register(k8);ae.register(C8);ae.register(_8);ae.register(A8);ae.register(R8);ae.register(I8);ae.register(D8);ae.register(N8);ae.register(P8);ae.register(L8);ae.register(II);ae.register(M8);ae.register($8);ae.register(F8);ae.register(B8);ae.register(U8);ae.register(j8);ae.register(z8);ae.register(V8);ae.register(W8);ae.register(H8);ae.register(Q8);ae.register(Y8);ae.register(G8);ae.register(q8);ae.register(Z8);ae.register(X8);ae.register(K8);ae.register(J8);ae.register(kT);ae.register(e9);ae.register(t9);ae.register(n9);ae.register(r9);ae.register(DI);ae.register(i9);ae.register(o9);ae.register(FI);ae.register(a9);ae.register(s9);ae.register(l9);ae.register(u9);ae.register(c9);ae.register(d9);ae.register(f9);ae.register(p9);ae.register(h9);ae.register(NI);ae.register(m9);ae.register(PI);ae.register(g9);ae.register(b9);ae.register(y9);ae.register(v9);ae.register(O9);ae.register(E9);ae.register(S9);ae.register(T9);ae.register(BI);ae.register(w9);ae.register(x9);ae.register(k9);ae.register(C9);ae.register(_9);ae.register(A9);ae.register(R9);ae.register(I9);ae.register(MI);ae.register(D9);ae.register(IT);ae.register(N9);ae.register(_T);ae.register(P9);ae.register(L9);ae.register(M9);ae.register($9);ae.register(F9);ae.register(B9);ae.register(U9);ae.register(j9);ae.register(z9);ae.register(V9);ae.register(W9);ae.register(H9);ae.register(Q9);ae.register(Y9);ae.register(G9);ae.register(q9);ae.register(Z9);ae.register(X9);ae.register(K9);ae.register(J9);ae.register(e7);ae.register(t7);ae.register(n7);ae.register(r7);ae.register(i7);ae.register(o7);ae.register(a7);ae.register(s7);ae.register(l7);function c$(){c$=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)),rA(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)},c$.apply(this,arguments)}function rA(e,t){return rA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rA(e,t)}function pX(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 $tt=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){cl(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 C,x=CP(A.properties.className);!(C=x()).done;){var F=C.value;if(F.slice(0,9)==="language-")return F.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 f,m;m=(f=d)!=null&&f.includes("diff-")?d.split("-")[1]:d,u=e.highlight(p0(r),m),o.properties.className=(o.properties.className||[]).concat("language-"+m)}catch(A){if(!t.ignoreMissing||!/Unknown language/.test(A.message))throw A;u=r}else u=r;u.children=(c=1,function A(C){return C.reduce(function(x,F){if(F.type==="text"){var M=F.value,P=(M.match(/\n/g)||"").length;if(P===0)F.position={start:{line:c,column:1},end:{line:c,column:1}},x.push(F);else for(var V,W=M.split(` +`),G=CP(W.entries());!(V=G()).done;){var j=V.value,z=j[0],X=j[1];x.push({type:"text",value:z===W.length-1?X:X+` +`,position:{start:{line:c+z,column:1},end:{line:c+z,column:1}}})}return c+=P,x}if(Object.prototype.hasOwnProperty.call(F,"children")){var Z=c;return F.children=A(F.children),x.push(F),F.position={start:{line:Z,column:1},end:{line:c,column:1}},x}return x.push(F),x},[])})(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 g,v=function(A){var C=/{([\d,-]+)}/,x=A.split(",").map(function(P){return P.trim()}).join();if(C.test(x)){var F=C.exec(x)[1],M=ctt(F);return function(P){return M.includes(P+1)}}return function(){return!1}}(l),S=function(A){var C=c$(/showLineNumbers=(\d+)/i,{lines:1});if(C.test(A)){var x=C.exec(A);return Number(x.groups.lines)}return 1}(l),O=function(A){for(var C=new Array(A),x=0;x=F+1});M.children=P.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||E.some(function(V){return l.toLowerCase().includes(V)})||(M.properties.line=[(F+S).toString()],M.properties.className.push("line-number")),v(F)&&M.properties.className.push("highlight-line"),(d==="diff"||(A=d)!=null&&A.includes("diff-"))&&p0(M).substring(0,1)==="-"?M.properties.className.push("deleted"):(d==="diff"||(C=d)!=null&&C.includes("diff-"))&&p0(M).substring(0,1)==="+"&&M.properties.className.push("inserted")},k=CP(O.entries());!(g=k()).done;)w();O.length>0&&p0(O[O.length-1]).trim()===""&&O.pop(),r.children=O}}}},Ftt=$tt(ae),oC={},d$={};function Btt(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"]}}}),p$=DT(tde,{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"]}}}),h$=DT(p$,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),Ytt=DT(h$,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),vX={css1:ede,css2:tde,css3:p$,"selectors-3":p$,"selectors-4":h$,latest:h$,progressive:Ytt};function PO(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function Gtt(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function LO(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var qtt={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Ztt={'"':!0,"'":!0},AP={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Xtt=6,RP="css-selector-parser parse error: ";function Ktt(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:vX[n];a.baseSyntax&&(a=DT(vX[a.baseSyntax],a));var s=a.tag?[!0,!!Wtt(a.tag).wildcard]:[!1,!1],l=s[0],u=s[1],c=!!a.ids,d=!!a.classNames,f=!!a.namespace,m=a.namespace&&(a.namespace===!0||a.namespace.wildcard===!0);if(f&&!l)throw new Error("".concat(RP,"Namespaces cannot be enabled while tags are disabled."));var g=!!r,v=a.combinators?hX(a.combinators):oC,S=a.attributes?[!0,a.attributes.operators?hX(a.attributes.operators):oC,a.attributes.caseSensitivityModifiers?Utt(a.attributes.caseSensitivityModifiers):d$,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,oC,d$,!1],O=S[0],E=S[1],w=S[2],k=S[3],A=k||Object.keys(w).length>0,C=a.pseudoClasses?[!0,a.pseudoClasses.definitions?gX(a.pseudoClasses.definitions):Kx,a.pseudoClasses.unknown==="accept"]:[!1,Kx,!1],x=C[0],F=C[1],M=C[2],P=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?gX(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):Kx,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,Kx,!1],V=P[0],W=P[1],G=P[2],j=P[3],z=P[4],X="",Z=X.length,q=0,te="",Q=function(ye){return te===ye},se=function(){return Q("*")||PO(te)},he=function(ye){q=ye,te=X.charAt(q)},J=function(){q++,te=X.charAt(q)},le=function(){var ye=te;return q++,te=X.charAt(q),ye};function ve(ye){var Ce=Math.min(Z-1,q),De=new Error("".concat(RP).concat(ye," Pos: ").concat(Ce,"."));throw De.position=Ce,De.name="ParserError",De}function ue(ye,Ce){if(!ye)return ve(Ce)}var we=function(){ue(q=Z},Ue=function(ye){ue(q=2&&ve("Identifiers cannot start with two hyphens with strict mode on."),AP[te]&&ve("Identifiers cannot start with hyphens followed by digits.");q0)return(t.commaSeparated?nB:iB)(e)}else return String(e)}const snt=[];function lnt(e,t){return(t.properties.className||snt).includes(e.name)}function unt(e,t){return t.properties.id===e.name}function cnt(e,t){return e.name===t.tagName}function dnt(e,t){return function(n,r){let i=EX(n,"tag");const o=EX(r??"*","range"),a=[];let s=-1;for(;++s=SX&&e.charCodeAt(t)<=mnt;)u=u*10+(e.charCodeAt(t)-SX),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?TX.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 wX(e){return ynt(gnt(e))}const vnt=wX.default||wX,Ont=mB("name",{handlers:{"any-link":Ent,blank:Snt,checked:Tnt,dir:wnt,disabled:ide,empty:xnt,enabled:knt,"first-child":Cnt,"first-of-type":_nt,has:Ant,is:ode,lang:Int,"last-child":Dnt,"last-of-type":Nnt,not:Pnt,"nth-child":Lnt,"nth-last-child":Mnt,"nth-last-of-type":$nt,"nth-of-type":Fnt,"only-child":Bnt,"only-of-type":Unt,optional:jnt,"read-only":znt,"read-write":ade,required:sde,root:Vnt,scope:Wnt},invalid:Rnt,unknown:Hnt});function Ent(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Ag(t,"href")}function qd(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Snt(e,t){return!lde(t,n);function n(r){return r.type==="element"||r.type==="text"&&!tue(r)}}function Tnt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Ag(t,"checked")):t.tagName==="option"?Ag(t,"selected"):!1}function wnt(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function ide(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")&&Ag(t,"disabled")}function xnt(e,t){return!lde(t,n);function n(r){return r.type==="element"||r.type==="text"}}function knt(e,t){return!ide(e,t)}function Cnt(e,t,n,r,i){return qd(i,e),i.elementIndex===0}function _nt(e,t,n,r,i){return qd(i,e),i.typeIndex===0}function UI(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=vnt(n.a+"n+"+n.b),e._cachedFn=t}return t}function Ant(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 u7(o,{type:"root",children:t.children}),o.results.length>0}function Rnt(){}function ode(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 u7(o,t),o.results[0]===t}function Int(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&fnt(i.language,rS(e.argument.value)).length>0}function Dnt(e,t,n,r,i){return qd(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function Nnt(e,t,n,r,i){return qd(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Pnt(e,t,n,r,i){return!ode(e,t,n,r,i)}function Lnt(e,t,n,r,i){const o=UI(e);return qd(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function Mnt(e,t,n,r,i){const o=UI(e);return qd(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function $nt(e,t,n,r,i){const o=UI(e);return qd(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function Fnt(e,t,n,r,i){const o=UI(e);return qd(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function Bnt(e,t,n,r,i){return qd(i,e),i.elementCount===1}function Unt(e,t,n,r,i){return qd(i,e),i.typeCount===1}function jnt(e,t){return!sde(e,t)}function znt(e,t,n,r,i){return!ade(e,t,n,r,i)}function ade(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Ag(t,"readOnly")&&!Ag(t,"disabled"):!!i.editableOrEditingHost}function sde(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Ag(t,"required")}function Vnt(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 Wnt(e,t,n,r,i){return i.scopeElements.includes(t)}function lde(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";DP(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?DP(o,"descendant",s):s.combinator==="~"&&DP(o,"generalSibling",s)}return o}function aC(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Ynt}function xX(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 ude(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=int(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=qnt(e,aC(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Gnt(e,a,n,o),s(),a}function Znt(e,t,n){const r=Xnt(e,t,n);return u7(r,t||void 0),r.results}function Xnt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:ent(e),schema:n==="svg"?Qd:$g,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const cde=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=cde(n.children))}),t),Knt=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Znt(t,r);i&&i.length>0&&cl(r,i,(o,a,s)=>{n(o,a,s)});return}cl(r,(i,o,a)=>{n(i,o,a)})}}},Jnt=Knt,ert=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),trt=(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]}},dde=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?dde(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},kX=({value:e=""})=>{const t=ert(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},CX=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},nrt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{cl(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=trt(a.children,o);if(l){const u=kX(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=CX(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=dde(a.children,o,"",n);if(s){const l=kX(s);Object.keys(l).length>0&&(i.properties=CX(i.properties,l,t))}}})}},rrt=nrt;var irt=function(t){return n=>{cl(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=B({},r.properties,{"data-meta":String(r.data.meta)}))})}},ort=function(t){return n=>{cl(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 art=/[\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,srt=Object.hasOwnProperty;class lrt{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=urt(t,n===!0);const o=i;for(;srt.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 urt(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(art,"").replace(/ /g,"-"))}function fde(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 crt={},_X=new lrt;function drt(e){const n=(e||crt).prefix||"";return function(r){_X.reset(),cl(r,"element",function(i){fde(i)&&!i.properties.id&&(i.properties.id=n+_X.slug(p0(i)))})}}const pde=function(e){if(e==null)return hrt;if(typeof e=="string")return prt(e);if(typeof e=="object")return frt(e);if(typeof e=="function")return c7(e);throw new Error("Expected function, string, or array as `test`")};function frt(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{cl(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})}})}},vrt=yrt;var Ort={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 Ert(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 Srt=(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=B({class:"anchor"},o.properties),o.children=[Ort])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=cde(n.children);n.children.push(Ert(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},Trt=[drt,brt,vrt];const mde=cn.forwardRef((e,t)=>{var n,r=[irt,Yce,ort,[Ftt,{ignoreMissing:!0}],...Trt,[Jnt,{rewrite:Srt((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[rrt,{properties:"attr"}],...e.rehypePlugins||[]];return N.jsx(itt,B({},e,{rehypePlugins:r,ref:t}))});function m$(e){return e.split(` `).map(t=>t+" ").join(` -`)}function PX(){const e=pR(),t=po(r1),[n,r]=P.useState("");return P.useEffect(()=>{if(!t.doc)return;const i=()=>{var a,l;const s=((l=(a=t.doc)==null?void 0:a.getRoot().content)==null?void 0:l.toString())||"";r(b4(s))};i();const o=t.doc.subscribe("$.content",()=>{i()});return()=>{o(),r("")}},[t.doc]),t!=null&&t.doc?N.jsx(bde,{source:b4(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}}}):N.jsx(dr,{direction:"row",justifyContent:"center",children:N.jsx(op,{sx:{mt:2}})})}function yde(){const e=po(r1),t=JFe();return!e.doc||!e.client?N.jsx(XS,{open:!0,children:N.jsx(op,{color:"inherit"})}):N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&N.jsx(QFe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>N.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[N.jsx("div",{id:"left-block",style:{width:n},children:N.jsx(eZ,{})}),N.jsx(js,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),N.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:N.jsx(Zo,{sx:{p:4},height:"100%",children:N.jsx(PX,{})})})]})}),e.mode==="read"&&N.jsx(Zo,{sx:{p:4,overflow:"auto"},height:"100%",children:N.jsx(PX,{})}),e.mode==="edit"&&N.jsx(eZ,{})]})}var vde={exports:{}},mit={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]},Ode={exports:{}},git=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")},bit=git,yit=Array.prototype.concat,vit=Array.prototype.slice,LX=Ode.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+")"};Vl.to.keyword=function(e){return Sde[e.slice(0,3)]};function Ch(e,t,n){return Math.min(Math.max(t,e),n)}function nk(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Eit=vde.exports,Sit={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 uS=Sit,Tde={};for(const e of Object.keys(uS))Tde[uS[e]]=e;const Sn={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 wde=Sn;for(const e of Object.keys(Sn)){if(!("channels"in Sn[e]))throw new Error("missing channels property: "+e);if(!("labels"in Sn[e]))throw new Error("missing channel labels property: "+e);if(Sn[e].labels.length!==Sn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Sn[e];delete Sn[e].channels,delete Sn[e].labels,Object.defineProperty(Sn[e],"channels",{value:t}),Object.defineProperty(Sn[e],"labels",{value:n})}Sn.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),s=o-i;let a,l;o===i?a=0:t===o?a=(n-r)/s:n===o?a=2+(r-t)/s:r===o&&(a=4+(t-n)/s),a=Math.min(a*60,360),a<0&&(a+=360);const u=(i+o)/2;return o===i?l=0:u<=.5?l=s/(o+i):l=s/(2-o-i),[a,l*100,u*100]};Sn.rgb.hsv=function(e){let t,n,r,i,o;const s=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(s,a,l),c=u-Math.min(s,a,l),d=function(p){return(u-p)/6/c+1/2};return c===0?(i=0,o=0):(o=c/u,t=d(s),n=d(a),r=d(l),s===u?i=r-n:a===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]};Sn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=Sn.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]};Sn.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,s=(1-n-i)/(1-i)||0,a=(1-r-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function Tit(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Sn.rgb.keyword=function(e){const t=Tde[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(uS)){const o=uS[i],s=Tit(e,o);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,o=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,o*100,s*100]};Sn.rgb.lab=function(e){const t=Sn.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,s=500*(n-r),a=200*(r-i);return[o,s,a]};Sn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const a=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?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,l[u]=s*255;return l};Sn.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 s=(r+n)/2,a=r===0?2*i/(o+i):2*n/(r+n);return[t,a*100,s*100]};Sn.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),s=255*r*(1-n),a=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}};Sn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,s;s=(2-n)*r;const a=(2-n)*i;return o=n*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,o*100,s*100]};Sn.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 s=Math.floor(6*t),a=1-r;o=6*t-s,s&1&&(o=1-o);const l=n+o*(a-n);let u,c,d;switch(s){default:case 6:case 0:u=a,c=l,d=n;break;case 1:u=l,c=a,d=n;break;case 2:u=n,c=a,d=l;break;case 3:u=n,c=l,d=a;break;case 4:u=l,c=n,d=a;break;case 5:u=a,c=n,d=l;break}return[u*255,c*255,d*255]};Sn.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),s=1-Math.min(1,n*(1-i)+i),a=1-Math.min(1,r*(1-i)+i);return[o*255,s*255,a*255]};Sn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,s;return i=t*3.2406+n*-1.5372+r*-.4986,o=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};Sn.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),s=200*(n-r);return[i,o,s]};Sn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,s;o=(t+16)/116,i=n/500+o,s=o-r/200;const a=o**3,l=i**3,u=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};Sn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};Sn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,o=n*Math.cos(i),s=n*Math.sin(i);return[t,o,s]};Sn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?Sn.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s};Sn.hsv.ansi16=function(e){return Sn.rgb.ansi16(Sn.hsv.rgb(e),e[2])};Sn.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)};Sn.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]};Sn.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]};Sn.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};Sn.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(a=>a+a).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,s=r&255;return[i,o,s]};Sn.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),s=i-o;let a,l;return s<1?a=o/(1-s):a=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,a*100]};Sn.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]};Sn.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]};Sn.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,s=o%1,a=1-s;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Sn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Sn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Sn.gray.hsl=function(e){return[0,0,e[0]]};Sn.gray.hsv=Sn.gray.hsl;Sn.gray.hwb=function(e){return[0,100,e[0]]};Sn.gray.cmyk=function(e){return[0,0,0,e[0]]};Sn.gray.lab=function(e){return[e[0],0,0]};Sn.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};Sn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const aA=wde;function wit(){const e={},t=Object.keys(aA);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Dit(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,s=0;s{V0[e]={},Object.defineProperty(V0[e],"channels",{value:y4[e].channels}),Object.defineProperty(V0[e],"labels",{value:y4[e].labels});const t=Ait(e);Object.keys(t).forEach(r=>{const i=t[r];V0[e][r]=Dit(i),V0[e][r].raw=Iit(i)})});var Nit=V0;const H0=Eit,Bl=Nit,xde=["keyword","gray","hex"],v4={};for(const e of Object.keys(Bl))v4[[...Bl[e].labels].sort().join("")]=e;const lA={};function fs(e,t){if(!(this instanceof fs))return new fs(e,t);if(t&&t in xde&&(t=null),t&&!(t in Bl))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 fs)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=H0.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=Bl[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=Bl[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=O4(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 v4))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=v4[o];const{labels:s}=Bl[this.model],a=[];for(n=0;n(e%360+360)%360),saturationl:oo("hsl",1,Uo(100)),lightness:oo("hsl",2,Uo(100)),saturationv:oo("hsv",1,Uo(100)),value:oo("hsv",2,Uo(100)),chroma:oo("hcg",1,Uo(100)),gray:oo("hcg",2,Uo(100)),white:oo("hwb",1,Uo(100)),wblack:oo("hwb",2,Uo(100)),cyan:oo("cmyk",0,Uo(100)),magenta:oo("cmyk",1,Uo(100)),yellow:oo("cmyk",2,Uo(100)),black:oo("cmyk",3,Uo(100)),x:oo("xyz",0,Uo(95.047)),y:oo("xyz",1,Uo(100)),z:oo("xyz",2,Uo(108.833)),l:oo("lab",0,Uo(100)),a:oo("lab",1),b:oo("lab",2),keyword(e){return e!==void 0?new fs(e):Bl[this.model].keyword(this.color)},hex(e){return e!==void 0?new fs(e):H0.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new fs(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),H0.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 fs.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,s=n.alpha()-r.alpha(),a=((o*s===-1?o:(o+s)/(1+o*s))+1)/2,l=1-a;return fs.rgb(a*n.red()+l*r.red(),a*n.green()+l*r.green(),a*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(Bl)){if(xde.includes(e))continue;const{channels:t}=Bl[e];fs.prototype[e]=function(...n){return this.model===e?new fs(this):n.length>0?new fs(n,e):new fs([...Mit(Bl[this.model][e].raw(this.color)),this.valpha],e)},fs[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=O4(n,t)),new fs(r,e)}}function Pit(e,t){return Number(e.toFixed(t))}function Lit(e){return function(t){return Pit(t,e)}}function oo(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(lA[r]||(lA[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 Uo(e){return function(t){return Math.max(0,Math.min(e,t))}}function Mit(e){return Array.isArray(e)?e:[e]}function O4(e,t){for(let n=0;nH.length;){var j=o(w);n!==null&&(w.seed=n),H.push(j)}return w.count=W,H}return F=s(w),M=a(F,w),L=l(F,M,w),u([F,M,L],w)};function s(w){if(i.length>0){var F=_(w.hue),M=g(F),L=(F[1]-F[0])/i.length,W=parseInt((M-F[0])/L);i[W]===!0?W=(W+2)%i.length:i[W]=!0;var H=(F[0]+W*L)%359,q=(F[0]+(W+1)*L)%359;return F=[H,q],M=g(F),M<0&&(M=360+M),M}else{var F=d(w.hue);return M=g(F),M<0&&(M=360+M),M}}function a(w,F){if(F.hue==="monochrome")return 0;if(F.luminosity==="random")return g([0,100]);var M=p(w),L=M[0],W=M[1];switch(F.luminosity){case"bright":L=55;break;case"dark":L=W-10;break;case"light":W=55;break}return g([L,W])}function l(w,F,M){var L=c(w,F),W=100;switch(M.luminosity){case"dark":W=L+20;break;case"light":L=(W+L)/2;break;case"random":L=0,W=100;break}return g([L,W])}function u(w,F){switch(F.format){case"hsvArray":return w;case"hslArray":return C(w);case"hsl":var M=C(w);return"hsl("+M[0]+", "+M[1]+"%, "+M[2]+"%)";case"hsla":var L=C(w),q=F.alpha||Math.random();return"hsla("+L[0]+", "+L[1]+"%, "+L[2]+"%, "+q+")";case"rgbArray":return S(w);case"rgb":var W=S(w);return"rgb("+W.join(", ")+")";case"rgba":var H=S(w),q=F.alpha||Math.random();return"rgba("+H.join(", ")+", "+q+")";default:return v(w)}}function c(w,F){for(var M=m(w).lowerBounds,L=0;L=W&&F<=q){var z=(j-H)/(q-W),X=H-z*W;return z*F+X}}return 0}function d(w){if(typeof parseInt(w)=="number"){var F=parseInt(w);if(F<360&&F>0)return[F,F]}if(typeof w=="string"){if(r[w]){var M=r[w];if(M.hueRange)return M.hueRange}else if(w.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var L=x(w)[0];return[L,L]}}return[0,360]}function p(w){return m(w).saturationRange}function m(w){w>=334&&w<=360&&(w-=360);for(var F in r){var M=r[F];if(M.hueRange&&w>=M.hueRange[0]&&w<=M.hueRange[1])return r[F]}return"Color not found"}function g(w){if(n===null){var F=.618033988749895,M=Math.random();return M+=F,M%=1,Math.floor(w[0]+M*(w[1]+1-w[0]))}else{var L=w[1]||1,W=w[0]||0;n=(n*9301+49297)%233280;var H=n/233280;return Math.floor(W+H*(L-W))}}function v(w){var F=S(w);function M(W){var H=W.toString(16);return H.length==1?"0"+H:H}var L="#"+M(F[0])+M(F[1])+M(F[2]);return L}function E(w,F,M){var L=M[0][0],W=M[M.length-1][0],H=M[M.length-1][1],q=M[0][1];r[w]={hueRange:F,lowerBounds:M,saturationRange:[L,W],brightnessRange:[H,q]}}function O(){E("monochrome",null,[[0,0],[100,0]]),E("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),E("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),E("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),E("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),E("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),E("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),E("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function S(w){var F=w[0];F===0&&(F=1),F===360&&(F=359),F=F/360;var M=w[1]/100,L=w[2]/100,W=Math.floor(F*6),H=F*6-W,q=L*(1-M),j=L*(1-H*M),z=L*(1-(1-H)*M),X=256,Z=256,G=256;switch(W){case 0:X=L,Z=z,G=q;break;case 1:X=j,Z=L,G=q;break;case 2:X=q,Z=L,G=z;break;case 3:X=q,Z=j,G=L;break;case 4:X=z,Z=q,G=L;break;case 5:X=L,Z=q,G=j;break}var ee=[Math.floor(X*255),Math.floor(Z*255),Math.floor(G*255)];return ee}function x(w){w=w.replace(/^#/,""),w=w.length===3?w.replace(/(.)/g,"$1$1"):w;var F=parseInt(w.substr(0,2),16)/255,M=parseInt(w.substr(2,2),16)/255,L=parseInt(w.substr(4,2),16)/255,W=Math.max(F,M,L),H=W-Math.min(F,M,L),q=W?H/W:0;switch(W){case F:return[60*((M-L)/H%6)||0,q,W];case M:return[60*((L-F)/H+2)||0,q,W];case L:return[60*((F-M)/H+4)||0,q,W]}}function C(w){var F=w[0],M=w[1]/100,L=w[2]/100,W=(2-M)*L;return[F,Math.round(M*L/(W<1?W:2-W)*1e4)/100,W/2*100]}function I(w){for(var F=0,M=0;M!==w.length&&!(F>=Number.MAX_SAFE_INTEGER);M++)F+=w.charCodeAt(M);return F}function _(w){if(isNaN(w)){if(typeof w=="string"){if(r[w]){var M=r[w];if(M.hueRange)return M.hueRange}else if(w.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var L=x(w)[0];return m(L).hueRange}}}else{var F=parseInt(w);if(F<360&&F>0)return m(w).hueRange}return[0,360]}return o})})(E4,E4.exports);var Bit=E4.exports;const Uit=Rc(Bit),jit={accessToken:null},kde=t1({name:"auth",initialState:jit,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:m9}=kde.actions,LT=e=>e.auth,zit=kde.reducer;Z_.setLogLevel(4);const Cde=(e,t)=>{const[n]=G$(),r=po(LT),[i,o]=P.useState(null),[s,a]=P.useState(null),l=P.useCallback(async()=>{!i||!s||(await(i==null?void 0:i.detach(s)),await(i==null?void 0:i.deactivate()))},[i,s]);return P.useEffect(()=>{if(!e||!t||s||i)return;let u=`default:${r.accessToken}`;n.get("token")&&(u=`share:${n.get("token")}`),(async()=>{const d=new Z_.Client("https://api.yorkie.dev",{apiKey:"cbovg64qfu96agb5i0fg",token:u});await d.activate();const p=new Z_.Document(e);await d.attach(p,{initialPresence:{name:t,color:Fit(Uit()).fade(.15).toString(),selection:null}}),o(d),a(p)})()},[t,e,s,i,r.accessToken,n]),{client:i,doc:s,cleanUpYorkieDocument:l}};var Vit=function(e){return(e+1)%1e6};function Hit(){var e=P.useReducer(Vit,0),t=e[1];return t}function FP(e,t){return typeof e=="function"?e.length?e(t):e():e}function Wit(e,t){t===void 0&&(t=0);var n=P.useRef(!1),r=P.useRef(),i=P.useRef(e),o=P.useCallback(function(){return n.current},[]),s=P.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),a=P.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return P.useEffect(function(){i.current=e},[e]),P.useEffect(function(){return s(),a},[t]),[o,a,s]}function g9(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=Wit(e,t),i=r[0],o=r[1],s=r[2];return P.useEffect(s,n),[i,o]}function Qit(e){e===void 0&&(e=[]);var t=P.useRef(FP(e)),n=Hit(),r=P.useMemo(function(){var i={set:function(o){t.current=FP(o,t.current),n()},push:function(){for(var o=[],s=0;sl.length?l[o]=s:l.splice(o,0,s),l})},update:function(o,s){r.set(function(a){return a.map(function(l){return o(l,s)?s:l})})},updateFirst:function(o,s){var a=t.current.findIndex(function(l){return o(l,s)});a>=0&&r.updateAt(a,s)},upsert:function(o,s){var a=t.current.findIndex(function(l){return o(l,s)});a>=0?r.updateAt(a,s):r.push(s)},sort:function(o){r.set(function(s){return s.slice().sort(o)})},filter:function(o,s){r.set(function(a){return a.slice().filter(o,s)})},removeAt:function(o){r.set(function(s){var a=s.slice();return a.splice(o,1),a})},clear:function(){r.set([])},reset:function(){r.set(FP(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}var b9={},_de={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})(_de);var ho=_de.exports,BP={};const Yit=gve(zxe);var MX;function mo(){return MX||(MX=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Yit}(BP)),BP}var Git=ho;Object.defineProperty(b9,"__esModule",{value:!0});var S4=b9.default=void 0;Xit(P);var qit=Git(mo()),Zit=N;function Ade(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ade=function(r){return r?n:t})(e)}function Xit(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ade(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}S4=b9.default=(0,qit.default)((0,Zit.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var VR={exports:{}},Rde={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},Ide=Object.keys(Rde).join("|"),Kit=new RegExp(Ide,"g"),Jit=new RegExp(Ide,"");function eot(e){return Rde[e]}var Dde=function(e){return e.replace(Kit,eot)},tot=function(e){return!!e.match(Jit)};VR.exports=Dde;VR.exports.has=tot;VR.exports.remove=Dde;var not=VR.exports;const rot=Rc(not);/** +`)}function IX(){const e=dI(),t=po(rv),[n,r]=L.useState("");return L.useEffect(()=>{if(!t.doc)return;const i=()=>{var s,l;const a=((l=(s=t.doc)==null?void 0:s.getRoot().content)==null?void 0:l.toString())||"";r(m$(a))};i();const o=t.doc.subscribe("$.content",()=>{i()});return()=>{o(),r("")}},[t.doc]),t!=null&&t.doc?N.jsx(mde,{source:m$(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}}}):N.jsx(dr,{direction:"row",justifyContent:"center",children:N.jsx(op,{sx:{mt:2}})})}function gde(){const e=po(rv),t=X4e();return!e.doc||!e.client?N.jsx(ZS,{open:!0,children:N.jsx(op,{color:"inherit"})}):N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&N.jsx(W4e,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>N.jsx(H3.ScrollSync,{children:N.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[N.jsx("div",{id:"left-block",style:{width:n},children:N.jsx(Xq,{})}),N.jsx(ja,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),N.jsx(H3.ScrollSyncPane,{children:N.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:N.jsx(Zo,{sx:{p:4},height:"100%",children:N.jsx(IX,{})})})})]})})}),e.mode==="read"&&N.jsx(Zo,{sx:{p:4,overflow:"auto"},height:"100%",children:N.jsx(IX,{})}),e.mode==="edit"&&N.jsx(Xq,{})]})}var bde={exports:{}},wrt={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]},yde={exports:{}},xrt=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")},krt=xrt,Crt=Array.prototype.concat,_rt=Array.prototype.slice,DX=yde.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+")"};Vl.to.keyword=function(e){return Ode[e.slice(0,3)]};function Ch(e,t,n){return Math.min(Math.max(t,e),n)}function ek(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Rrt=bde.exports,Irt={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 lS=Irt,Ede={};for(const e of Object.keys(lS))Ede[lS[e]]=e;const Sn={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 Sde=Sn;for(const e of Object.keys(Sn)){if(!("channels"in Sn[e]))throw new Error("missing channels property: "+e);if(!("labels"in Sn[e]))throw new Error("missing channel labels property: "+e);if(Sn[e].labels.length!==Sn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Sn[e];delete Sn[e].channels,delete Sn[e].labels,Object.defineProperty(Sn[e],"channels",{value:t}),Object.defineProperty(Sn[e],"labels",{value:n})}Sn.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]};Sn.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(f){return(u-f)/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]};Sn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=Sn.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]};Sn.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 Drt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Sn.rgb.keyword=function(e){const t=Ede[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(lS)){const o=lS[i],a=Drt(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]};Sn.rgb.lab=function(e){const t=Sn.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]};Sn.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};Sn.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]};Sn.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]}};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?Sn.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};Sn.hsv.ansi16=function(e){return Sn.rgb.ansi16(Sn.hsv.rgb(e),e[2])};Sn.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)};Sn.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]};Sn.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]};Sn.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};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.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]};Sn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Sn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Sn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Sn.gray.hsl=function(e){return[0,0,e[0]]};Sn.gray.hsv=Sn.gray.hsl;Sn.gray.hwb=function(e){return[0,100,e[0]]};Sn.gray.cmyk=function(e){return[0,0,0,e[0]]};Sn.gray.lab=function(e){return[e[0],0,0]};Sn.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};Sn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const oA=Sde;function Nrt(){const e={},t=Object.keys(oA);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function jrt(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{Vb[e]={},Object.defineProperty(Vb[e],"channels",{value:g$[e].channels}),Object.defineProperty(Vb[e],"labels",{value:g$[e].labels});const t=Frt(e);Object.keys(t).forEach(r=>{const i=t[r];Vb[e][r]=jrt(i),Vb[e][r].raw=Urt(i)})});var zrt=Vb;const Wb=Rrt,Bl=zrt,Tde=["keyword","gray","hex"],b$={};for(const e of Object.keys(Bl))b$[[...Bl[e].labels].sort().join("")]=e;const aA={};function fa(e,t){if(!(this instanceof fa))return new fa(e,t);if(t&&t in Tde&&(t=null),t&&!(t in Bl))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 fa)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Wb.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=Bl[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=Bl[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=y$(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 b$))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=b$[o];const{labels:a}=Bl[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:oo("hsl",1,Uo(100)),lightness:oo("hsl",2,Uo(100)),saturationv:oo("hsv",1,Uo(100)),value:oo("hsv",2,Uo(100)),chroma:oo("hcg",1,Uo(100)),gray:oo("hcg",2,Uo(100)),white:oo("hwb",1,Uo(100)),wblack:oo("hwb",2,Uo(100)),cyan:oo("cmyk",0,Uo(100)),magenta:oo("cmyk",1,Uo(100)),yellow:oo("cmyk",2,Uo(100)),black:oo("cmyk",3,Uo(100)),x:oo("xyz",0,Uo(95.047)),y:oo("xyz",1,Uo(100)),z:oo("xyz",2,Uo(108.833)),l:oo("lab",0,Uo(100)),a:oo("lab",1),b:oo("lab",2),keyword(e){return e!==void 0?new fa(e):Bl[this.model].keyword(this.color)},hex(e){return e!==void 0?new fa(e):Wb.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new fa(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Wb.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 fa.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 fa.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(Bl)){if(Tde.includes(e))continue;const{channels:t}=Bl[e];fa.prototype[e]=function(...n){return this.model===e?new fa(this):n.length>0?new fa(n,e):new fa([...Hrt(Bl[this.model][e].raw(this.color)),this.valpha],e)},fa[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=y$(n,t)),new fa(r,e)}}function Vrt(e,t){return Number(e.toFixed(t))}function Wrt(e){return function(t){return Vrt(t,e)}}function oo(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(aA[r]||(aA[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 Uo(e){return function(t){return Math.max(0,Math.min(e,t))}}function Hrt(e){return Array.isArray(e)?e:[e]}function y$(e,t){for(let n=0;nW.length;){var j=o(x);n!==null&&(x.seed=n),W.push(j)}return x.count=V,W}return F=a(x),M=s(F,x),P=l(F,M,x),u([F,M,P],x)};function a(x){if(i.length>0){var F=C(x.hue),M=g(F),P=(F[1]-F[0])/i.length,V=parseInt((M-F[0])/P);i[V]===!0?V=(V+2)%i.length:i[V]=!0;var W=(F[0]+V*P)%359,G=(F[0]+(V+1)*P)%359;return F=[W,G],M=g(F),M<0&&(M=360+M),M}else{var F=d(x.hue);return M=g(F),M<0&&(M=360+M),M}}function s(x,F){if(F.hue==="monochrome")return 0;if(F.luminosity==="random")return g([0,100]);var M=f(x),P=M[0],V=M[1];switch(F.luminosity){case"bright":P=55;break;case"dark":P=V-10;break;case"light":V=55;break}return g([P,V])}function l(x,F,M){var P=c(x,F),V=100;switch(M.luminosity){case"dark":V=P+20;break;case"light":P=(V+P)/2;break;case"random":P=0,V=100;break}return g([P,V])}function u(x,F){switch(F.format){case"hsvArray":return x;case"hslArray":return k(x);case"hsl":var M=k(x);return"hsl("+M[0]+", "+M[1]+"%, "+M[2]+"%)";case"hsla":var P=k(x),G=F.alpha||Math.random();return"hsla("+P[0]+", "+P[1]+"%, "+P[2]+"%, "+G+")";case"rgbArray":return E(x);case"rgb":var V=E(x);return"rgb("+V.join(", ")+")";case"rgba":var W=E(x),G=F.alpha||Math.random();return"rgba("+W.join(", ")+", "+G+")";default:return v(x)}}function c(x,F){for(var M=m(x).lowerBounds,P=0;P=V&&F<=G){var z=(j-W)/(G-V),X=W-z*V;return z*F+X}}return 0}function d(x){if(typeof parseInt(x)=="number"){var F=parseInt(x);if(F<360&&F>0)return[F,F]}if(typeof x=="string"){if(r[x]){var M=r[x];if(M.hueRange)return M.hueRange}else if(x.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var P=w(x)[0];return[P,P]}}return[0,360]}function f(x){return m(x).saturationRange}function m(x){x>=334&&x<=360&&(x-=360);for(var F in r){var M=r[F];if(M.hueRange&&x>=M.hueRange[0]&&x<=M.hueRange[1])return r[F]}return"Color not found"}function g(x){if(n===null){var F=.618033988749895,M=Math.random();return M+=F,M%=1,Math.floor(x[0]+M*(x[1]+1-x[0]))}else{var P=x[1]||1,V=x[0]||0;n=(n*9301+49297)%233280;var W=n/233280;return Math.floor(V+W*(P-V))}}function v(x){var F=E(x);function M(V){var W=V.toString(16);return W.length==1?"0"+W:W}var P="#"+M(F[0])+M(F[1])+M(F[2]);return P}function S(x,F,M){var P=M[0][0],V=M[M.length-1][0],W=M[M.length-1][1],G=M[0][1];r[x]={hueRange:F,lowerBounds:M,saturationRange:[P,V],brightnessRange:[W,G]}}function O(){S("monochrome",null,[[0,0],[100,0]]),S("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),S("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),S("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),S("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),S("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),S("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),S("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function E(x){var F=x[0];F===0&&(F=1),F===360&&(F=359),F=F/360;var M=x[1]/100,P=x[2]/100,V=Math.floor(F*6),W=F*6-V,G=P*(1-M),j=P*(1-W*M),z=P*(1-(1-W)*M),X=256,Z=256,q=256;switch(V){case 0:X=P,Z=z,q=G;break;case 1:X=j,Z=P,q=G;break;case 2:X=G,Z=P,q=z;break;case 3:X=G,Z=j,q=P;break;case 4:X=z,Z=G,q=P;break;case 5:X=P,Z=G,q=j;break}var te=[Math.floor(X*255),Math.floor(Z*255),Math.floor(q*255)];return te}function w(x){x=x.replace(/^#/,""),x=x.length===3?x.replace(/(.)/g,"$1$1"):x;var F=parseInt(x.substr(0,2),16)/255,M=parseInt(x.substr(2,2),16)/255,P=parseInt(x.substr(4,2),16)/255,V=Math.max(F,M,P),W=V-Math.min(F,M,P),G=V?W/V:0;switch(V){case F:return[60*((M-P)/W%6)||0,G,V];case M:return[60*((P-F)/W+2)||0,G,V];case P:return[60*((F-M)/W+4)||0,G,V]}}function k(x){var F=x[0],M=x[1]/100,P=x[2]/100,V=(2-M)*P;return[F,Math.round(M*P/(V<1?V:2-V)*1e4)/100,V/2*100]}function A(x){for(var F=0,M=0;M!==x.length&&!(F>=Number.MAX_SAFE_INTEGER);M++)F+=x.charCodeAt(M);return F}function C(x){if(isNaN(x)){if(typeof x=="string"){if(r[x]){var M=r[x];if(M.hueRange)return M.hueRange}else if(x.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var P=w(x)[0];return m(P).hueRange}}}else{var F=parseInt(x);if(F<360&&F>0)return m(x).hueRange}return[0,360]}return o})})(v$,v$.exports);var Grt=v$.exports;const qrt=Rc(Grt),Zrt={accessToken:null},wde=tv({name:"auth",initialState:Zrt,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:f7}=wde.actions,PT=e=>e.auth,Xrt=wde.reducer;G_.setLogLevel(4);const xde=(e,t)=>{const[n]=QF(),r=po(PT),[i,o]=L.useState(null),[a,s]=L.useState(null),l=L.useCallback(async()=>{!i||!a||(await(i==null?void 0:i.detach(a)),await(i==null?void 0:i.deactivate()))},[i,a]);return L.useEffect(()=>{if(!e||!t||a||i)return;let u=`default:${r.accessToken}`;n.get("token")&&(u=`share:${n.get("token")}`),(async()=>{const d=new G_.Client("https://api.yorkie.dev",{apiKey:"cbovg64qfu96agb5i0fg",token:u});await d.activate();const f=new G_.Document(e);await d.attach(f,{initialPresence:{name:t,color:Yrt(qrt()).fade(.15).toString(),selection:null}}),o(d),s(f)})()},[t,e,a,i,r.accessToken,n]),{client:i,doc:a,cleanUpYorkieDocument:l}};var Krt=function(e){return(e+1)%1e6};function Jrt(){var e=L.useReducer(Krt,0),t=e[1];return t}function LP(e,t){return typeof e=="function"?e.length?e(t):e():e}function eit(e,t){t===void 0&&(t=0);var n=L.useRef(!1),r=L.useRef(),i=L.useRef(e),o=L.useCallback(function(){return n.current},[]),a=L.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),s=L.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return L.useEffect(function(){i.current=e},[e]),L.useEffect(function(){return a(),s},[t]),[o,s,a]}function p7(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=eit(e,t),i=r[0],o=r[1],a=r[2];return L.useEffect(a,n),[i,o]}function tit(e){e===void 0&&(e=[]);var t=L.useRef(LP(e)),n=Jrt(),r=L.useMemo(function(){var i={set:function(o){t.current=LP(o,t.current),n()},push:function(){for(var o=[],a=0;al.length?l[o]=a:l.splice(o,0,a),l})},update:function(o,a){r.set(function(s){return s.map(function(l){return o(l,a)?a:l})})},updateFirst:function(o,a){var s=t.current.findIndex(function(l){return o(l,a)});s>=0&&r.updateAt(s,a)},upsert:function(o,a){var s=t.current.findIndex(function(l){return o(l,a)});s>=0?r.updateAt(s,a):r.push(a)},sort:function(o){r.set(function(a){return a.slice().sort(o)})},filter:function(o,a){r.set(function(s){return s.slice().filter(o,a)})},removeAt:function(o){r.set(function(a){var s=a.slice();return s.splice(o,1),s})},clear:function(){r.set([])},reset:function(){r.set(LP(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}var h7={},kde={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})(kde);var ho=kde.exports,MP={};const nit=hOe(Uxe);var NX;function mo(){return NX||(NX=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=nit}(MP)),MP}var rit=ho;Object.defineProperty(h7,"__esModule",{value:!0});var O$=h7.default=void 0;ait(L);var iit=rit(mo()),oit=N;function Cde(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Cde=function(r){return r?n:t})(e)}function ait(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Cde(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}O$=h7.default=(0,iit.default)((0,oit.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var jI={exports:{}},_de={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},Ade=Object.keys(_de).join("|"),sit=new RegExp(Ade,"g"),lit=new RegExp(Ade,"");function uit(e){return _de[e]}var Rde=function(e){return e.replace(sit,uit)},cit=function(e){return!!e.match(lit)};jI.exports=Rde;jI.exports.has=cit;jI.exports.remove=Rde;var dit=jI.exports;const fit=Rc(dit);/** * @name match-sorter * @license MIT license. * @copyright (c) 2020 Kent C. Dodds * @author Kent C. Dodds (https://kentcdodds.com) - */const Ra={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},iot=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function Nde(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=Ra.MATCHES,baseSort:o=iot,sorter:s=u=>u.sort((c,d)=>lot(c,d,o))}=n,a=e.reduce(l,[]);return s(a).map(u=>{let{item:c}=u;return c});function l(u,c,d){const p=oot(c,r,t,n),{rank:m,keyThreshold:g=i}=p;return m>=g&&u.push({...p,item:c,index:d}),u}}Nde.rankings=Ra;function oot(e,t,n,r){if(!t){const o=e;return{rankedValue:o,rank:$X(o,n,r),keyIndex:-1,keyThreshold:r.threshold}}return dot(e,t).reduce((o,s,a)=>{let{rank:l,rankedValue:u,keyIndex:c,keyThreshold:d}=o,{itemValue:p,attributes:m}=s,g=$X(p,n,r),v=u;const{minRanking:E,maxRanking:O,threshold:S}=m;return g=Ra.MATCHES?g=E:g>O&&(g=O),g>l&&(l=g,c=a,d=S,v=p),{rankedValue:v,rank:l,keyIndex:c,keyThreshold:d}},{rankedValue:e,rank:Ra.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function $X(e,t,n){return e=FX(e,n),t=FX(t,n),t.length>e.length?Ra.NO_MATCH:e===t?Ra.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Ra.EQUAL:e.startsWith(t)?Ra.STARTS_WITH:e.includes(` ${t}`)?Ra.WORD_STARTS_WITH:e.includes(t)?Ra.CONTAINS:t.length===1?Ra.NO_MATCH:sot(e).includes(t)?Ra.ACRONYM:aot(e,t))}function sot(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(o=>{t+=o.substr(0,1)})}),t}function aot(e,t){let n=0,r=0;function i(l,u,c){for(let d=c,p=u.length;d-1))return Ra.NO_MATCH}const a=r-s;return o(a)}function lot(e,t,n){const{rank:o,keyIndex:s}=e,{rank:a,keyIndex:l}=t;return o===a?s===l?n(e,t):sa?-1:1}function FX(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=rot(e)),e}function uot(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwn(e,t))n=e[t];else{if(t.includes("."))return cot(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function cot(e,t){const n=e.split(".");let r=[t];for(let i=0,o=n.length;iNde(pot,n,{keys:["title","feature"]}),[n]),o=s=>{r(s.target.value)};return N.jsxs(dr,{children:[N.jsx(Kh,{placeholder:"Choose from below",size:"small",sx:{width:1},value:n,onChange:o}),N.jsx(Jy,{children:i.map(s=>N.jsxs(Lh,{onClick:()=>t(s.feature,s.title),children:[N.jsx(U2,{children:s.icon}),N.jsx(Eh,{children:s.title})]},s.feature))})]})}var y9={},mot=ho;Object.defineProperty(y9,"__esModule",{value:!0});var HR=y9.default=void 0,got=mot(mo()),bot=N;HR=y9.default=(0,got.default)((0,bot.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var v9={},yot=ho;Object.defineProperty(v9,"__esModule",{value:!0});var Pde=v9.default=void 0,vot=yot(mo()),Oot=N;Pde=v9.default=(0,vot.default)((0,Oot.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var MT=e=>e.type==="checkbox",hb=e=>e instanceof Date,Ia=e=>e==null;const Lde=e=>typeof e=="object";var Jo=e=>!Ia(e)&&!Array.isArray(e)&&Lde(e)&&!hb(e),Mde=e=>Jo(e)&&e.target?MT(e.target)?e.target.checked:e.target.value:e,Eot=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,$de=(e,t)=>e.has(Eot(t)),Sot=e=>{const t=e.constructor&&e.constructor.prototype;return Jo(t)&&t.hasOwnProperty("isPrototypeOf")},O9=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ga(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(!(O9&&(e instanceof Blob||e instanceof FileList))&&(n||Jo(e)))if(t=n?[]:{},!n&&!Sot(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Ga(e[r]));else return e;return t}var $T=e=>Array.isArray(e)?e.filter(Boolean):[],fo=e=>e===void 0,sn=(e,t,n)=>{if(!t||!Jo(e))return n;const r=$T(t.split(/[,[\].]+?/)).reduce((i,o)=>Ia(i)?i:i[o],e);return fo(r)||r===e?fo(e[t])?n:e[t]:r},pc=e=>typeof e=="boolean";const uA={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},gc={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},bf={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Fde=cn.createContext(null),E9=()=>cn.useContext(Fde),Bde=e=>{const{children:t,...n}=e;return cn.createElement(Fde.Provider,{value:n},t)};var Ude=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==gc.all&&(t._proxyFormState[s]=!r||gc.all),n&&(n[s]=!0),e[s]}});return i},bu=e=>Jo(e)&&!Object.keys(e).length,jde=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return bu(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||gc.all))},uC=e=>Array.isArray(e)?e:[e],zde=(e,t,n)=>!e||!t||e===t||uC(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function S9(e){const t=cn.useRef(e);t.current=e,cn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Tot(e){const t=E9(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[s,a]=cn.useState(n._formState),l=cn.useRef(!0),u=cn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=cn.useRef(i);return c.current=i,S9({disabled:r,next:d=>l.current&&zde(c.current,d.name,o)&&jde(d,u.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),cn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Ude(s,n,u.current,!1)}var kd=e=>typeof e=="string",Vde=(e,t,n,r,i)=>kd(e)?(r&&t.watch.add(e),sn(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),sn(n,o))):(r&&(t.watchAll=!0),n);function Hde(e){const t=E9(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:s}=e||{},a=cn.useRef(r);a.current=r,S9({disabled:o,subject:n._subjects.values,next:c=>{zde(a.current,c.name,s)&&u(Ga(Vde(a.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=cn.useState(n._getWatch(r,i));return cn.useEffect(()=>n._removeUnmounted()),l}var T9=e=>/^\w*$/.test(e),Wde=e=>$T(e.replace(/["|']|\]/g,"").split(/\.|\[/)),mi=(e,t,n)=>{let r=-1;const i=T9(t)?[t]:Wde(t),o=i.length,s=o-1;for(;++r{const c=i._options.shouldUnregister||o,d=(p,m)=>{const g=sn(i._fields,p);g&&(g._f.mount=m)};if(d(n,!0),c){const p=Ga(sn(i._options.defaultValues,n));mi(i._defaultValues,n,p),fo(sn(i._formValues,n))&&mi(i._formValues,n,p)}return()=>{(s?c&&!i._state.action:c)?i.unregister(n):d(n,!1)}},[n,i,s,o]),cn.useEffect(()=>{sn(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:sn(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:a,...pc(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:cn.useCallback(c=>u.current.onChange({target:{value:Mde(c),name:n},type:uA.CHANGE}),[n]),onBlur:cn.useCallback(()=>u.current.onBlur({target:{value:sn(i._formValues,n),name:n},type:uA.BLUR}),[n,i]),ref:c=>{const d=sn(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:()=>!!sn(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!sn(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!sn(l.touchedFields,n)},error:{enumerable:!0,get:()=>sn(l.errors,n)}})}}var wot=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},UX=e=>({isOnSubmit:!e||e===gc.onSubmit,isOnBlur:e===gc.onBlur,isOnChange:e===gc.onChange,isOnAll:e===gc.all,isOnTouch:e===gc.onTouched}),jX=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const GO=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=sn(e,i);if(o){const{_f:s,...a}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;GO(a,t)}else Jo(a)&&GO(a,t)}}};var xot=(e,t,n)=>{const r=$T(sn(e,n));return mi(r,"root",t[n]),mi(e,n,r),e},w9=e=>e.type==="file",ch=e=>typeof e=="function",cA=e=>{if(!O9)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},cC=e=>kd(e),x9=e=>e.type==="radio",dA=e=>e instanceof RegExp;const zX={value:!1,isValid:!1},VX={value:!0,isValid:!0};var Qde=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&&!fo(e[0].attributes.value)?fo(e[0].value)||e[0].value===""?VX:{value:e[0].value,isValid:!0}:VX:zX}return zX};const HX={isValid:!1,value:null};var Yde=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,HX):HX;function WX(e,t,n="validate"){if(cC(e)||Array.isArray(e)&&e.every(cC)||pc(e)&&!e)return{type:n,message:cC(e)?e:"",ref:t}}var R0=e=>Jo(e)&&!dA(e)?e:{value:e,message:""},QX=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:a,maxLength:l,minLength:u,min:c,max:d,pattern:p,validate:m,name:g,valueAsNumber:v,mount:E,disabled:O}=e._f,S=sn(t,g);if(!E||O)return{};const x=s?s[0]:o,C=H=>{r&&x.reportValidity&&(x.setCustomValidity(pc(H)?"":H||""),x.reportValidity())},I={},_=x9(o),w=MT(o),F=_||w,M=(v||w9(o))&&fo(o.value)&&fo(S)||cA(o)&&o.value===""||S===""||Array.isArray(S)&&!S.length,L=wot.bind(null,g,n,I),W=(H,q,j,z=bf.maxLength,X=bf.minLength)=>{const Z=H?q:j;I[g]={type:H?z:X,message:Z,ref:o,...L(H?z:X,Z)}};if(i?!Array.isArray(S)||!S.length:a&&(!F&&(M||Ia(S))||pc(S)&&!S||w&&!Qde(s).isValid||_&&!Yde(s).isValid)){const{value:H,message:q}=cC(a)?{value:!!a,message:a}:R0(a);if(H&&(I[g]={type:bf.required,message:q,ref:x,...L(bf.required,q)},!n))return C(q),I}if(!M&&(!Ia(c)||!Ia(d))){let H,q;const j=R0(d),z=R0(c);if(!Ia(S)&&!isNaN(S)){const X=o.valueAsNumber||S&&+S;Ia(j.value)||(H=X>j.value),Ia(z.value)||(q=Xnew Date(new Date().toDateString()+" "+Q),G=o.type=="time",ee=o.type=="week";kd(j.value)&&S&&(H=G?Z(S)>Z(j.value):ee?S>j.value:X>new Date(j.value)),kd(z.value)&&S&&(q=G?Z(S)+H.value,z=!Ia(q.value)&&S.length<+q.value;if((j||z)&&(W(j,H.message,q.message),!n))return C(I[g].message),I}if(p&&!M&&kd(S)){const{value:H,message:q}=R0(p);if(dA(H)&&!S.match(H)&&(I[g]={type:bf.pattern,message:q,ref:o,...L(bf.pattern,q)},!n))return C(q),I}if(m){if(ch(m)){const H=await m(S,t),q=WX(H,x);if(q&&(I[g]={...q,...L(bf.validate,q.message)},!n))return C(q.message),I}else if(Jo(m)){let H={};for(const q in m){if(!bu(H)&&!n)break;const j=WX(await m[q](S,t),x,q);j&&(H={...j,...L(q,j.message)},C(j.message),n&&(I[g]=H))}if(!bu(H)&&(I[g]={ref:x,...H},!n))return I}}return C(!0),I};function kot(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=[]}}},fA=e=>Ia(e)||!Lde(e);function Gm(e,t){if(fA(e)||fA(t))return e===t;if(hb(e)&&hb(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 s=t[i];if(hb(o)&&hb(s)||Jo(o)&&Jo(s)||Array.isArray(o)&&Array.isArray(s)?!Gm(o,s):o!==s)return!1}}return!0}var Gde=e=>e.type==="select-multiple",_ot=e=>x9(e)||MT(e),jP=e=>cA(e)&&e.isConnected,qde=e=>{for(const t in e)if(ch(e[t]))return!0;return!1};function pA(e,t={}){const n=Array.isArray(e);if(Jo(e)||n)for(const r in e)Array.isArray(e[r])||Jo(e[r])&&!qde(e[r])?(t[r]=Array.isArray(e[r])?[]:{},pA(e[r],t[r])):Ia(e[r])||(t[r]=!0);return t}function Zde(e,t,n){const r=Array.isArray(e);if(Jo(e)||r)for(const i in e)Array.isArray(e[i])||Jo(e[i])&&!qde(e[i])?fo(t)||fA(n[i])?n[i]=Array.isArray(e[i])?pA(e[i],[]):{...pA(e[i])}:Zde(e[i],Ia(t)?{}:t[i],n[i]):n[i]=!Gm(e[i],t[i]);return n}var rk=(e,t)=>Zde(e,t,pA(t)),Xde=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>fo(e)?e:t?e===""?NaN:e&&+e:n&&kd(e)?new Date(e):r?r(e):e;function zP(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return w9(t)?t.files:x9(t)?Yde(e.refs).value:Gde(t)?[...t.selectedOptions].map(({value:n})=>n):MT(t)?Qde(e.refs).value:Xde(fo(t.value)?e.ref.value:t.value,e)}var Aot=(e,t,n,r)=>{const i={};for(const o of e){const s=sn(t,o);s&&mi(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},$v=e=>fo(e)?e:dA(e)?e.source:Jo(e)?dA(e.value)?e.value.source:e.value:e,Rot=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function YX(e,t,n){const r=sn(e,n);if(r||T9(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=sn(t,o),a=sn(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};i.pop()}return{name:n}}var Iot=(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,Dot=(e,t)=>!$T(sn(e,t)).length&&Cs(e,t);const Not={mode:gc.onSubmit,reValidateMode:gc.onChange,shouldFocusError:!0};function Pot(e={},t){let n={...Not,...e},r={submitCount:0,isDirty:!1,isLoading:ch(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=Jo(n.values)||Jo(n.defaultValues)?Ga(n.values||n.defaultValues)||{}:{},s=n.shouldUnregister?{}:Ga(o),a={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:UP(),array:UP(),state:UP()},m=UX(n.mode),g=UX(n.reValidateMode),v=n.criteriaMode===gc.all,E=de=>oe=>{clearTimeout(c),c=setTimeout(de,oe)},O=async de=>{if(d.isValid||de){const oe=n.resolver?bu((await M()).errors):await W(i,!0);oe!==r.isValid&&p.state.next({isValid:oe})}},S=de=>d.isValidating&&p.state.next({isValidating:de}),x=(de,oe=[],ie,Me,He=!0,Be=!0)=>{if(Me&&ie){if(a.action=!0,Be&&Array.isArray(sn(i,de))){const ce=ie(sn(i,de),Me.argA,Me.argB);He&&mi(i,de,ce)}if(Be&&Array.isArray(sn(r.errors,de))){const ce=ie(sn(r.errors,de),Me.argA,Me.argB);He&&mi(r.errors,de,ce),Dot(r.errors,de)}if(d.touchedFields&&Be&&Array.isArray(sn(r.touchedFields,de))){const ce=ie(sn(r.touchedFields,de),Me.argA,Me.argB);He&&mi(r.touchedFields,de,ce)}d.dirtyFields&&(r.dirtyFields=rk(o,s)),p.state.next({name:de,isDirty:q(de,oe),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else mi(s,de,oe)},C=(de,oe)=>{mi(r.errors,de,oe),p.state.next({errors:r.errors})},I=de=>{r.errors=de,p.state.next({errors:r.errors,isValid:!1})},_=(de,oe,ie,Me)=>{const He=sn(i,de);if(He){const Be=sn(s,de,fo(ie)?sn(o,de):ie);fo(Be)||Me&&Me.defaultChecked||oe?mi(s,de,oe?Be:zP(He._f)):X(de,Be),a.mount&&O()}},w=(de,oe,ie,Me,He)=>{let Be=!1,ce=!1;const ye={name:de},be=!!(sn(i,de)&&sn(i,de)._f.disabled);if(!ie||Me){d.isDirty&&(ce=r.isDirty,r.isDirty=ye.isDirty=q(),Be=ce!==ye.isDirty);const we=be||Gm(sn(o,de),oe);ce=!!(!be&&sn(r.dirtyFields,de)),we||be?Cs(r.dirtyFields,de):mi(r.dirtyFields,de,!0),ye.dirtyFields=r.dirtyFields,Be=Be||d.dirtyFields&&ce!==!we}if(ie){const we=sn(r.touchedFields,de);we||(mi(r.touchedFields,de,ie),ye.touchedFields=r.touchedFields,Be=Be||d.touchedFields&&we!==ie)}return Be&&He&&p.state.next(ye),Be?ye:{}},F=(de,oe,ie,Me)=>{const He=sn(r.errors,de),Be=d.isValid&&pc(oe)&&r.isValid!==oe;if(e.delayError&&ie?(u=E(()=>C(de,ie)),u(e.delayError)):(clearTimeout(c),u=null,ie?mi(r.errors,de,ie):Cs(r.errors,de)),(ie?!Gm(He,ie):He)||!bu(Me)||Be){const ce={...Me,...Be&&pc(oe)?{isValid:oe}:{},errors:r.errors,name:de};r={...r,...ce},p.state.next(ce)}S(!1)},M=async de=>n.resolver(s,n.context,Aot(de||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),L=async de=>{const{errors:oe}=await M(de);if(de)for(const ie of de){const Me=sn(oe,ie);Me?mi(r.errors,ie,Me):Cs(r.errors,ie)}else r.errors=oe;return oe},W=async(de,oe,ie={valid:!0})=>{for(const Me in de){const He=de[Me];if(He){const{_f:Be,...ce}=He;if(Be){const ye=l.array.has(Be.name),be=await QX(He,s,v,n.shouldUseNativeValidation&&!oe,ye);if(be[Be.name]&&(ie.valid=!1,oe))break;!oe&&(sn(be,Be.name)?ye?xot(r.errors,be,Be.name):mi(r.errors,Be.name,be[Be.name]):Cs(r.errors,Be.name))}ce&&await W(ce,oe,ie)}}return ie.valid},H=()=>{for(const de of l.unMount){const oe=sn(i,de);oe&&(oe._f.refs?oe._f.refs.every(ie=>!jP(ie)):!jP(oe._f.ref))&&Re(de)}l.unMount=new Set},q=(de,oe)=>(de&&oe&&mi(s,de,oe),!Gm(Te(),o)),j=(de,oe,ie)=>Vde(de,l,{...a.mount?s:fo(oe)?o:kd(de)?{[de]:oe}:oe},ie,oe),z=de=>$T(sn(a.mount?s:o,de,e.shouldUnregister?sn(o,de,[]):[])),X=(de,oe,ie={})=>{const Me=sn(i,de);let He=oe;if(Me){const Be=Me._f;Be&&(!Be.disabled&&mi(s,de,Xde(oe,Be)),He=cA(Be.ref)&&Ia(oe)?"":oe,Gde(Be.ref)?[...Be.ref.options].forEach(ce=>ce.selected=He.includes(ce.value)):Be.refs?MT(Be.ref)?Be.refs.length>1?Be.refs.forEach(ce=>(!ce.defaultChecked||!ce.disabled)&&(ce.checked=Array.isArray(He)?!!He.find(ye=>ye===ce.value):He===ce.value)):Be.refs[0]&&(Be.refs[0].checked=!!He):Be.refs.forEach(ce=>ce.checked=ce.value===He):w9(Be.ref)?Be.ref.value="":(Be.ref.value=He,Be.ref.type||p.values.next({name:de,values:{...s}})))}(ie.shouldDirty||ie.shouldTouch)&&w(de,He,ie.shouldTouch,ie.shouldDirty,!0),ie.shouldValidate&&ae(de)},Z=(de,oe,ie)=>{for(const Me in oe){const He=oe[Me],Be=`${de}.${Me}`,ce=sn(i,Be);(l.array.has(de)||!fA(He)||ce&&!ce._f)&&!hb(He)?Z(Be,He,ie):X(Be,He,ie)}},G=(de,oe,ie={})=>{const Me=sn(i,de),He=l.array.has(de),Be=Ga(oe);mi(s,de,Be),He?(p.array.next({name:de,values:{...s}}),(d.isDirty||d.dirtyFields)&&ie.shouldDirty&&p.state.next({name:de,dirtyFields:rk(o,s),isDirty:q(de,Be)})):Me&&!Me._f&&!Ia(Be)?Z(de,Be,ie):X(de,Be,ie),jX(de,l)&&p.state.next({...r}),p.values.next({name:de,values:{...s}}),!a.mount&&t()},ee=async de=>{const oe=de.target;let ie=oe.name,Me=!0;const He=sn(i,ie),Be=()=>oe.type?zP(He._f):Mde(de),ce=ye=>{Me=Number.isNaN(ye)||ye===sn(s,ie,ye)};if(He){let ye,be;const we=Be(),Ie=de.type===uA.BLUR||de.type===uA.FOCUS_OUT,ft=!Rot(He._f)&&!n.resolver&&!sn(r.errors,ie)&&!He._f.deps||Iot(Ie,sn(r.touchedFields,ie),r.isSubmitted,g,m),_t=jX(ie,l,Ie);mi(s,ie,we),Ie?(He._f.onBlur&&He._f.onBlur(de),u&&u(0)):He._f.onChange&&He._f.onChange(de);const At=w(ie,we,Ie,!1),pt=!bu(At)||_t;if(!Ie&&p.values.next({name:ie,type:de.type,values:{...s}}),ft)return d.isValid&&O(),pt&&p.state.next({name:ie,..._t?{}:At});if(!Ie&&_t&&p.state.next({...r}),S(!0),n.resolver){const{errors:Mt}=await M([ie]);if(ce(we),Me){const it=YX(r.errors,i,ie),bt=YX(Mt,i,it.name||ie);ye=bt.error,ie=bt.name,be=bu(Mt)}}else ye=(await QX(He,s,v,n.shouldUseNativeValidation))[ie],ce(we),Me&&(ye?be=!1:d.isValid&&(be=await W(i,!0)));Me&&(He._f.deps&&ae(He._f.deps),F(ie,be,ye,At))}},Q=(de,oe)=>{if(sn(r.errors,oe)&&de.focus)return de.focus(),1},ae=async(de,oe={})=>{let ie,Me;const He=uC(de);if(S(!0),n.resolver){const Be=await L(fo(de)?de:He);ie=bu(Be),Me=de?!He.some(ce=>sn(Be,ce)):ie}else de?(Me=(await Promise.all(He.map(async Be=>{const ce=sn(i,Be);return await W(ce&&ce._f?{[Be]:ce}:ce)}))).every(Boolean),!(!Me&&!r.isValid)&&O()):Me=ie=await W(i);return p.state.next({...!kd(de)||d.isValid&&ie!==r.isValid?{}:{name:de},...n.resolver||!de?{isValid:ie}:{},errors:r.errors,isValidating:!1}),oe.shouldFocus&&!Me&&GO(i,Q,de?He:l.mount),Me},Te=de=>{const oe={...o,...a.mount?s:{}};return fo(de)?oe:kd(de)?sn(oe,de):de.map(ie=>sn(oe,ie))},te=(de,oe)=>({invalid:!!sn((oe||r).errors,de),isDirty:!!sn((oe||r).dirtyFields,de),isTouched:!!sn((oe||r).touchedFields,de),error:sn((oe||r).errors,de)}),pe=de=>{de&&uC(de).forEach(oe=>Cs(r.errors,oe)),p.state.next({errors:de?r.errors:{}})},Oe=(de,oe,ie)=>{const Me=(sn(i,de,{_f:{}})._f||{}).ref;mi(r.errors,de,{...oe,ref:Me}),p.state.next({name:de,errors:r.errors,isValid:!1}),ie&&ie.shouldFocus&&Me&&Me.focus&&Me.focus()},me=(de,oe)=>ch(de)?p.values.subscribe({next:ie=>de(j(void 0,oe),ie)}):j(de,oe,!0),Re=(de,oe={})=>{for(const ie of de?uC(de):l.mount)l.mount.delete(ie),l.array.delete(ie),oe.keepValue||(Cs(i,ie),Cs(s,ie)),!oe.keepError&&Cs(r.errors,ie),!oe.keepDirty&&Cs(r.dirtyFields,ie),!oe.keepTouched&&Cs(r.touchedFields,ie),!n.shouldUnregister&&!oe.keepDefaultValue&&Cs(o,ie);p.values.next({values:{...s}}),p.state.next({...r,...oe.keepDirty?{isDirty:q()}:{}}),!oe.keepIsValid&&O()},Fe=({disabled:de,name:oe,field:ie,fields:Me,value:He})=>{if(pc(de)){const Be=de?void 0:fo(He)?zP(ie?ie._f:sn(Me,oe)._f):He;mi(s,oe,Be),w(oe,Be,!1,!1,!0)}},et=(de,oe={})=>{let ie=sn(i,de);const Me=pc(oe.disabled);return mi(i,de,{...ie||{},_f:{...ie&&ie._f?ie._f:{ref:{name:de}},name:de,mount:!0,...oe}}),l.mount.add(de),ie?Fe({field:ie,disabled:oe.disabled,name:de,value:oe.value}):_(de,!0,oe.value),{...Me?{disabled:oe.disabled}:{},...n.progressive?{required:!!oe.required,min:$v(oe.min),max:$v(oe.max),minLength:$v(oe.minLength),maxLength:$v(oe.maxLength),pattern:$v(oe.pattern)}:{},name:de,onChange:ee,onBlur:ee,ref:He=>{if(He){et(de,oe),ie=sn(i,de);const Be=fo(He.value)&&He.querySelectorAll&&He.querySelectorAll("input,select,textarea")[0]||He,ce=_ot(Be),ye=ie._f.refs||[];if(ce?ye.find(be=>be===Be):Be===ie._f.ref)return;mi(i,de,{_f:{...ie._f,...ce?{refs:[...ye.filter(jP),Be,...Array.isArray(sn(o,de))?[{}]:[]],ref:{type:Be.type,name:de}}:{ref:Be}}}),_(de,!1,void 0,Be)}else ie=sn(i,de,{}),ie._f&&(ie._f.mount=!1),(n.shouldUnregister||oe.shouldUnregister)&&!($de(l.array,de)&&a.action)&&l.unMount.add(de)}}},ct=()=>n.shouldFocusError&&GO(i,Q,l.mount),Ye=de=>{pc(de)&&(p.state.next({disabled:de}),GO(i,(oe,ie)=>{let Me=de;const He=sn(i,ie);He&&pc(He._f.disabled)&&(Me||(Me=He._f.disabled)),oe.disabled=Me},0,!1))},nt=(de,oe)=>async ie=>{let Me;ie&&(ie.preventDefault&&ie.preventDefault(),ie.persist&&ie.persist());let He=Ga(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:Be,values:ce}=await M();r.errors=Be,He=ce}else await W(i);if(Cs(r.errors,"root"),bu(r.errors)){p.state.next({errors:{}});try{await de(He,ie)}catch(Be){Me=Be}}else oe&&await oe({...r.errors},ie),ct(),setTimeout(ct);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:bu(r.errors)&&!Me,submitCount:r.submitCount+1,errors:r.errors}),Me)throw Me},ke=(de,oe={})=>{sn(i,de)&&(fo(oe.defaultValue)?G(de,Ga(sn(o,de))):(G(de,oe.defaultValue),mi(o,de,Ga(oe.defaultValue))),oe.keepTouched||Cs(r.touchedFields,de),oe.keepDirty||(Cs(r.dirtyFields,de),r.isDirty=oe.defaultValue?q(de,Ga(sn(o,de))):q()),oe.keepError||(Cs(r.errors,de),d.isValid&&O()),p.state.next({...r}))},qe=(de,oe={})=>{const ie=de?Ga(de):o,Me=Ga(ie),He=de&&!bu(de)?Me:o;if(oe.keepDefaultValues||(o=ie),!oe.keepValues){if(oe.keepDirtyValues)for(const Be of l.mount)sn(r.dirtyFields,Be)?mi(He,Be,sn(s,Be)):G(Be,sn(He,Be));else{if(O9&&fo(de))for(const Be of l.mount){const ce=sn(i,Be);if(ce&&ce._f){const ye=Array.isArray(ce._f.refs)?ce._f.refs[0]:ce._f.ref;if(cA(ye)){const be=ye.closest("form");if(be){be.reset();break}}}}i={}}s=e.shouldUnregister?oe.keepDefaultValues?Ga(o):{}:Ga(He),p.array.next({values:{...He}}),p.values.next({values:{...He}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&t(),a.mount=!d.isValid||!!oe.keepIsValid||!!oe.keepDirtyValues,a.watch=!!e.shouldUnregister,p.state.next({submitCount:oe.keepSubmitCount?r.submitCount:0,isDirty:oe.keepDirty?r.isDirty:!!(oe.keepDefaultValues&&!Gm(de,o)),isSubmitted:oe.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:oe.keepDirtyValues?oe.keepDefaultValues&&s?rk(o,s):r.dirtyFields:oe.keepDefaultValues&&de?rk(o,de):{},touchedFields:oe.keepTouched?r.touchedFields:{},errors:oe.keepErrors?r.errors:{},isSubmitSuccessful:oe.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ge=(de,oe)=>qe(ch(de)?de(s):de,oe);return{control:{register:et,unregister:Re,getFieldState:te,handleSubmit:nt,setError:Oe,_executeSchema:M,_getWatch:j,_getDirty:q,_updateValid:O,_removeUnmounted:H,_updateFieldArray:x,_updateDisabledField:Fe,_getFieldArray:z,_reset:qe,_resetDefaultValues:()=>ch(n.defaultValues)&&n.defaultValues().then(de=>{Ge(de,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:de=>{r={...r,...de}},_disableForm:Ye,_subjects:p,_proxyFormState:d,_setErrors:I,get _fields(){return i},get _formValues(){return s},get _state(){return a},set _state(de){a=de},get _defaultValues(){return o},get _names(){return l},set _names(de){l=de},get _formState(){return r},set _formState(de){r=de},get _options(){return n},set _options(de){n={...n,...de}}},trigger:ae,register:et,handleSubmit:nt,watch:me,setValue:G,getValues:Te,reset:Ge,resetField:ke,clearErrors:pe,unregister:Re,setError:Oe,setFocus:(de,oe={})=>{const ie=sn(i,de),Me=ie&&ie._f;if(Me){const He=Me.refs?Me.refs[0]:Me.ref;He.focus&&(He.focus(),oe.shouldSelect&&He.select())}},getFieldState:te}}function Kde(e={}){const t=cn.useRef(),n=cn.useRef(),[r,i]=cn.useState({isDirty:!1,isValidating:!1,isLoading:ch(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ch(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Pot(e,()=>i(s=>({...s}))),formState:r});const o=t.current.control;return o._options=e,S9({subject:o._subjects.state,next:s=>{jde(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),cn.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),cn.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==r.isDirty&&o._subjects.state.next({isDirty:s})}},[o,r.isDirty]),cn.useEffect(()=>{e.values&&!Gm(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),cn.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),cn.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()}),cn.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=Ude(r,o),t.current}const yd=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),k9=({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}},qO=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:s,timezone:a})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,a));n&&s.isBefore(i,l)&&(i=l),t&&s.isAfter(r,l)&&(r=l);let u=e,c=e;for(s.isBefore(e,i)&&(u=i,c=null),s.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&s.isAfter(u,r)&&(u=null),c&&s.isBefore(c,i)&&(c=null),u){if(!o(u))return u;u=s.addDays(u,1)}if(c){if(!o(c))return c;c=s.addDays(c,-1)}}return null},Lot=(e,t)=>t==null||!e.isValid(t)?null:t,fa=(e,t,n)=>t==null||!e.isValid(t)?n:t,Mot=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),C9=(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},T4=(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},_9=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),yc=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},$ot=["year","month","day"],$b=e=>$ot.includes(e),cS=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return yd(n,["year"])?i.year:yd(n,["month"])?i.month:yd(n,["day"])?i.dayOfMonth:yd(n,["month","year"])?`${i.month} ${i.year}`:yd(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},Fot=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Jde=["hours","minutes","seconds"],$y=e=>Jde.includes(e),Fp=e=>Jde.includes(e)||e==="meridiem",Bot=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,dS=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Uot=(e,t,n,r)=>{const i=dS(r.getHours(e),t,n);return r.setHours(e,i)},GX=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),FT=(e,t)=>(n,r)=>e?t.isAfter(n,r):GX(n,t)>GX(r,t),hA=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return yd(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:yd(n,["minutes"])?i.minutes:yd(n,["seconds"])?i.seconds:yd(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:yd(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}`},hc={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},jot=e=>Math.max(...e.map(t=>{var n;return(n=hc[t.type])!=null?n:1})),Fv=(e,t,n)=>{if(t===hc.year)return e.startOfYear(n);if(t===hc.month)return e.startOfMonth(n);if(t===hc.day)return e.startOfDay(n);let r=n;return t{var o;let s=i?i():Fv(t,n,_9(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Fv(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Fv(t,n,e.maxDate));const a=FT((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&a(e.minTime,s)&&(s=Fv(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:T4(t,s,e.minTime))),e.maxTime!=null&&a(s,e.maxTime)&&(s=Fv(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:T4(t,s,e.maxTime))),s},efe=(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}},Vot=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},WR=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),o=e.startOfWeek(i),s=e.endOfWeek(i);let a=o;for(;e.isBefore(a,s);)r.push(a),a=e.addDays(a,1);return r.map(l=>e.formatByString(l,n))},tfe=(e,t,n,r)=>{switch(n){case"month":return C9(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return WR(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[]}},nfe=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const s=e.setDate(r.longestMonth,n);return e.formatByString(s,i.format)}const o=n.toString();return i.hasLeadingZerosInInput?nfe(e,o,i.maxLength):o},Hot=(e,t,n,r,i,o,s)=>{const a=Vot(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,d=()=>{const m=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),g=S=>rfe(e,t,S,m,n),v=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let O=parseInt(n.value,10)+a*v;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);a>0||l?O=m.minimum:O=m.maximum}return O%v!==0&&((a<0||l)&&(O+=v-(v+O)%v),(a>0||u)&&(O-=O%v)),O>m.maximum?g(m.minimum+(O-m.maximum-1)%(m.maximum-m.minimum+1)):O{const m=tfe(e,t,n.type,n.format);if(m.length===0)return n.value;if(c)return a>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+a)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():p()},A9=(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},mb=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),ife=(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}},qX=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),ofe=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,sfe=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return ofe(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")}},Qot=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let s=null;for(;s=o.exec(t);)n.push({start:s.index,end:o.lastIndex-1});return n},ZX=(e,t,n,r,i,o,s,a)=>{let l="";const u=[],c=e.date(),d=x=>{if(x==="")return null;const C=efe(e,x),I=sfe(e,t,C.contentType,C.type,x),_=s?I:C.contentType==="digit",w=i!=null&&e.isValid(i);let F=w?e.formatByString(i,x):"",M=null;if(_)if(I)M=F===""?e.formatByString(c,x).length:F.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${x} should have a 'maxDigitNumber' property on it's adapter`);M=C.maxLength,w&&(F=nfe(e,F,M))}return u.push(B({},C,{format:x,maxLength:M,value:F,placeholder:Wot(e,t,n,C,x),hasLeadingZeros:I,hasLeadingZerosInFormat:I,hasLeadingZerosInInput:_,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,g=e.expandFormat(r);for(;g!==m;)if(m=g,g=e.expandFormat(m),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 v=g,E=Qot(e,v),O=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((x,C)=>C.length-x.length).join("|")})`,"g");let S="";for(let x=0;xM.start<=x&&M.end>=x),I=v[x],_=C!=null,w=`${S}${v.slice(x)}`,F=O.test(w);!_&&I.match(/([A-Za-z]+)/)&&F?(S=w.slice(0,O.lastIndex),x+=O.lastIndex-1):_&&(C==null?void 0:C.start)===x||(C==null?void 0:C.end)===x||(d(S),S="",u.length===0?l+=I:u[u.length-1].endSeparator+=I)}return d(S),u.map(x=>{const C=I=>{let _=I;return a&&_!==null&&_.includes(" ")&&(_=`⁩${_}⁦`),o==="spacious"&&["/",".","-"].includes(_)&&(_=` ${_} `),_};return x.startSeparator=C(x.startSeparator),x.endSeparator=C(x.endSeparator),x})},Yot=(e,t)=>{const n=t.some(a=>a.type==="day"),r=[],i=[];for(let a=0;a{const r=e.map(i=>{const o=A9(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},qot=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:s}=C9(e,n).reduce((a,l)=>{const u=e.getDaysInMonth(l);return u>a.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:a},{maxDaysInMonth:0,longestMonth:null});return{year:({format:a})=>({minimum:0,maximum:ofe(e,t,a)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:a})=>({minimum:1,maximum:a!=null&&e.isValid(a)?e.getDaysInMonth(a):o,longestMonth:s}),weekDay:({format:a,contentType:l})=>{if(l==="digit"){const u=WR(e,t,a).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:a})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),a)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),a))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},Zot=(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=WR(e,t,n.format),s=e.formatByString(r,n.format),a=o.indexOf(s),u=o.indexOf(n.value)-a;return e.addDays(r,u)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const o=e.getHours(r)<12,s=e.getHours(i);return o&&s>=12?e.addHours(i,-12):!o&&s<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}},XX={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},KX=(e,t,n,r,i,o)=>[...r].sort((s,a)=>XX[s.type]-XX[a.type]).reduce((s,a)=>!o||a.modified?Zot(e,t,a,n,s):s,i),Xot=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,Kot=(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,s=0,a=e.length-1;for(;a>=0;){s=e.findIndex((l,u)=>{var c;return u>=o&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let l=s;l>=o;l-=1)i[l]=a,r[a]=l,a-=1;o=s+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]}},Jot=["value","referenceDate"],es={emptyValue:null,getTodayValue:_9,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=st(e,Jot);return t!=null&&r.utils.isValid(t)?t:n??zot(r)},cleanValue:Lot,areValuesEqual:Mot,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)},R9={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:ife(i(t),r),getValueStrFromSections:Got,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)},est=["localeText"],w4=P.createContext(null),afe=function(t){var n;const{localeText:r}=t,i=st(t,est),{utils:o,localeText:s}=(n=P.useContext(w4))!=null?n:{utils:void 0,localeText:void 0},a=Nt({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:p,localeText:m}=a,g=P.useMemo(()=>B({},m,s,r),[m,s,r]),v=P.useMemo(()=>{if(!u)return o||null;const S=new u({locale:p,formats:c,instance:d});if(!S.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 S},[u,p,c,d,o]),E=P.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),O=P.useMemo(()=>({utils:v,defaultDates:E,localeText:g}),[E,v,g]);return N.jsx(w4.Provider,{value:O,children:l})},tst=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:B({},e)}}}}),lfe={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"},nst=lfe;tst(lfe);const Uc=()=>{const e=P.useContext(w4);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` + */const Rs={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},pit=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function Ide(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=Rs.MATCHES,baseSort:o=pit,sorter:a=u=>u.sort((c,d)=>bit(c,d,o))}=n,s=e.reduce(l,[]);return a(s).map(u=>{let{item:c}=u;return c});function l(u,c,d){const f=hit(c,r,t,n),{rank:m,keyThreshold:g=i}=f;return m>=g&&u.push({...f,item:c,index:d}),u}}Ide.rankings=Rs;function hit(e,t,n,r){if(!t){const o=e;return{rankedValue:o,rank:PX(o,n,r),keyIndex:-1,keyThreshold:r.threshold}}return Oit(e,t).reduce((o,a,s)=>{let{rank:l,rankedValue:u,keyIndex:c,keyThreshold:d}=o,{itemValue:f,attributes:m}=a,g=PX(f,n,r),v=u;const{minRanking:S,maxRanking:O,threshold:E}=m;return g=Rs.MATCHES?g=S:g>O&&(g=O),g>l&&(l=g,c=s,d=E,v=f),{rankedValue:v,rank:l,keyIndex:c,keyThreshold:d}},{rankedValue:e,rank:Rs.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function PX(e,t,n){return e=LX(e,n),t=LX(t,n),t.length>e.length?Rs.NO_MATCH:e===t?Rs.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Rs.EQUAL:e.startsWith(t)?Rs.STARTS_WITH:e.includes(` ${t}`)?Rs.WORD_STARTS_WITH:e.includes(t)?Rs.CONTAINS:t.length===1?Rs.NO_MATCH:mit(e).includes(t)?Rs.ACRONYM:git(e,t))}function mit(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(o=>{t+=o.substr(0,1)})}),t}function git(e,t){let n=0,r=0;function i(l,u,c){for(let d=c,f=u.length;d-1))return Rs.NO_MATCH}const s=r-a;return o(s)}function bit(e,t,n){const{rank:o,keyIndex:a}=e,{rank:s,keyIndex:l}=t;return o===s?a===l?n(e,t):as?-1:1}function LX(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=fit(e)),e}function yit(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwn(e,t))n=e[t];else{if(t.includes("."))return vit(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function vit(e,t){const n=e.split(".");let r=[t];for(let i=0,o=n.length;iIde(Sit,n,{keys:["title","feature"]}),[n]),o=a=>{r(a.target.value)};return N.jsxs(dr,{children:[N.jsx(Kh,{placeholder:"Choose from below",size:"small",sx:{width:1},value:n,onChange:o}),N.jsx(Jy,{children:i.map(a=>N.jsxs(Lh,{onClick:()=>t(a.feature,a.title),children:[N.jsx(FR,{children:a.icon}),N.jsx(Eh,{children:a.title})]},a.feature))})]})}var m7={},wit=ho;Object.defineProperty(m7,"__esModule",{value:!0});var zI=m7.default=void 0,xit=wit(mo()),kit=N;zI=m7.default=(0,xit.default)((0,kit.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var g7={},Cit=ho;Object.defineProperty(g7,"__esModule",{value:!0});var Dde=g7.default=void 0,_it=Cit(mo()),Ait=N;Dde=g7.default=(0,_it.default)((0,Ait.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var LT=e=>e.type==="checkbox",h0=e=>e instanceof Date,Is=e=>e==null;const Nde=e=>typeof e=="object";var Jo=e=>!Is(e)&&!Array.isArray(e)&&Nde(e)&&!h0(e),Pde=e=>Jo(e)&&e.target?LT(e.target)?e.target.checked:e.target.value:e,Rit=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Lde=(e,t)=>e.has(Rit(t)),Iit=e=>{const t=e.constructor&&e.constructor.prototype;return Jo(t)&&t.hasOwnProperty("isPrototypeOf")},b7=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Gs(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(!(b7&&(e instanceof Blob||e instanceof FileList))&&(n||Jo(e)))if(t=n?[]:{},!n&&!Iit(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Gs(e[r]));else return e;return t}var MT=e=>Array.isArray(e)?e.filter(Boolean):[],fo=e=>e===void 0,an=(e,t,n)=>{if(!t||!Jo(e))return n;const r=MT(t.split(/[,[\].]+?/)).reduce((i,o)=>Is(i)?i:i[o],e);return fo(r)||r===e?fo(e[t])?n:e[t]:r},pc=e=>typeof e=="boolean";const sA={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},gc={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},yf={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Mde=cn.createContext(null),y7=()=>cn.useContext(Mde),$de=e=>{const{children:t,...n}=e;return cn.createElement(Mde.Provider,{value:n},t)};var Fde=(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]!==gc.all&&(t._proxyFormState[a]=!r||gc.all),n&&(n[a]=!0),e[a]}});return i},bu=e=>Jo(e)&&!Object.keys(e).length,Bde=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return bu(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||gc.all))},sC=e=>Array.isArray(e)?e:[e],Ude=(e,t,n)=>!e||!t||e===t||sC(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function v7(e){const t=cn.useRef(e);t.current=e,cn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Dit(e){const t=y7(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=cn.useState(n._formState),l=cn.useRef(!0),u=cn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=cn.useRef(i);return c.current=i,v7({disabled:r,next:d=>l.current&&Ude(c.current,d.name,o)&&Bde(d,u.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),cn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Fde(a,n,u.current,!1)}var Cd=e=>typeof e=="string",jde=(e,t,n,r,i)=>Cd(e)?(r&&t.watch.add(e),an(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),an(n,o))):(r&&(t.watchAll=!0),n);function zde(e){const t=y7(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=cn.useRef(r);s.current=r,v7({disabled:o,subject:n._subjects.values,next:c=>{Ude(s.current,c.name,a)&&u(Gs(jde(s.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=cn.useState(n._getWatch(r,i));return cn.useEffect(()=>n._removeUnmounted()),l}var O7=e=>/^\w*$/.test(e),Vde=e=>MT(e.replace(/["|']|\]/g,"").split(/\.|\[/)),mi=(e,t,n)=>{let r=-1;const i=O7(t)?[t]:Vde(t),o=i.length,a=o-1;for(;++r{const c=i._options.shouldUnregister||o,d=(f,m)=>{const g=an(i._fields,f);g&&(g._f.mount=m)};if(d(n,!0),c){const f=Gs(an(i._options.defaultValues,n));mi(i._defaultValues,n,f),fo(an(i._formValues,n))&&mi(i._formValues,n,f)}return()=>{(a?c&&!i._state.action:c)?i.unregister(n):d(n,!1)}},[n,i,a,o]),cn.useEffect(()=>{an(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:an(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...pc(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:cn.useCallback(c=>u.current.onChange({target:{value:Pde(c),name:n},type:sA.CHANGE}),[n]),onBlur:cn.useCallback(()=>u.current.onBlur({target:{value:an(i._formValues,n),name:n},type:sA.BLUR}),[n,i]),ref:c=>{const d=an(i._fields,n);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:f=>c.setCustomValidity(f),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!an(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!an(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!an(l.touchedFields,n)},error:{enumerable:!0,get:()=>an(l.errors,n)}})}}var Nit=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},$X=e=>({isOnSubmit:!e||e===gc.onSubmit,isOnBlur:e===gc.onBlur,isOnChange:e===gc.onChange,isOnAll:e===gc.all,isOnTouch:e===gc.onTouched}),FX=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Y1=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=an(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;Y1(s,t)}else Jo(s)&&Y1(s,t)}}};var Pit=(e,t,n)=>{const r=MT(an(e,n));return mi(r,"root",t[n]),mi(e,n,r),e},E7=e=>e.type==="file",ch=e=>typeof e=="function",lA=e=>{if(!b7)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},lC=e=>Cd(e),S7=e=>e.type==="radio",uA=e=>e instanceof RegExp;const BX={value:!1,isValid:!1},UX={value:!0,isValid:!0};var Wde=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&&!fo(e[0].attributes.value)?fo(e[0].value)||e[0].value===""?UX:{value:e[0].value,isValid:!0}:UX:BX}return BX};const jX={isValid:!1,value:null};var Hde=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,jX):jX;function zX(e,t,n="validate"){if(lC(e)||Array.isArray(e)&&e.every(lC)||pc(e)&&!e)return{type:n,message:lC(e)?e:"",ref:t}}var Rb=e=>Jo(e)&&!uA(e)?e:{value:e,message:""},VX=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:f,validate:m,name:g,valueAsNumber:v,mount:S,disabled:O}=e._f,E=an(t,g);if(!S||O)return{};const w=a?a[0]:o,k=W=>{r&&w.reportValidity&&(w.setCustomValidity(pc(W)?"":W||""),w.reportValidity())},A={},C=S7(o),x=LT(o),F=C||x,M=(v||E7(o))&&fo(o.value)&&fo(E)||lA(o)&&o.value===""||E===""||Array.isArray(E)&&!E.length,P=Nit.bind(null,g,n,A),V=(W,G,j,z=yf.maxLength,X=yf.minLength)=>{const Z=W?G:j;A[g]={type:W?z:X,message:Z,ref:o,...P(W?z:X,Z)}};if(i?!Array.isArray(E)||!E.length:s&&(!F&&(M||Is(E))||pc(E)&&!E||x&&!Wde(a).isValid||C&&!Hde(a).isValid)){const{value:W,message:G}=lC(s)?{value:!!s,message:s}:Rb(s);if(W&&(A[g]={type:yf.required,message:G,ref:w,...P(yf.required,G)},!n))return k(G),A}if(!M&&(!Is(c)||!Is(d))){let W,G;const j=Rb(d),z=Rb(c);if(!Is(E)&&!isNaN(E)){const X=o.valueAsNumber||E&&+E;Is(j.value)||(W=X>j.value),Is(z.value)||(G=Xnew Date(new Date().toDateString()+" "+Q),q=o.type=="time",te=o.type=="week";Cd(j.value)&&E&&(W=q?Z(E)>Z(j.value):te?E>j.value:X>new Date(j.value)),Cd(z.value)&&E&&(G=q?Z(E)+W.value,z=!Is(G.value)&&E.length<+G.value;if((j||z)&&(V(j,W.message,G.message),!n))return k(A[g].message),A}if(f&&!M&&Cd(E)){const{value:W,message:G}=Rb(f);if(uA(W)&&!E.match(W)&&(A[g]={type:yf.pattern,message:G,ref:o,...P(yf.pattern,G)},!n))return k(G),A}if(m){if(ch(m)){const W=await m(E,t),G=zX(W,w);if(G&&(A[g]={...G,...P(yf.validate,G.message)},!n))return k(G.message),A}else if(Jo(m)){let W={};for(const G in m){if(!bu(W)&&!n)break;const j=zX(await m[G](E,t),w,G);j&&(W={...j,...P(G,j.message)},k(j.message),n&&(A[g]=W))}if(!bu(W)&&(A[g]={ref:w,...W},!n))return A}}return k(!0),A};function Lit(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=[]}}},cA=e=>Is(e)||!Nde(e);function Gm(e,t){if(cA(e)||cA(t))return e===t;if(h0(e)&&h0(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(h0(o)&&h0(a)||Jo(o)&&Jo(a)||Array.isArray(o)&&Array.isArray(a)?!Gm(o,a):o!==a)return!1}}return!0}var Qde=e=>e.type==="select-multiple",$it=e=>S7(e)||LT(e),FP=e=>lA(e)&&e.isConnected,Yde=e=>{for(const t in e)if(ch(e[t]))return!0;return!1};function dA(e,t={}){const n=Array.isArray(e);if(Jo(e)||n)for(const r in e)Array.isArray(e[r])||Jo(e[r])&&!Yde(e[r])?(t[r]=Array.isArray(e[r])?[]:{},dA(e[r],t[r])):Is(e[r])||(t[r]=!0);return t}function Gde(e,t,n){const r=Array.isArray(e);if(Jo(e)||r)for(const i in e)Array.isArray(e[i])||Jo(e[i])&&!Yde(e[i])?fo(t)||cA(n[i])?n[i]=Array.isArray(e[i])?dA(e[i],[]):{...dA(e[i])}:Gde(e[i],Is(t)?{}:t[i],n[i]):n[i]=!Gm(e[i],t[i]);return n}var tk=(e,t)=>Gde(e,t,dA(t)),qde=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>fo(e)?e:t?e===""?NaN:e&&+e:n&&Cd(e)?new Date(e):r?r(e):e;function BP(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return E7(t)?t.files:S7(t)?Hde(e.refs).value:Qde(t)?[...t.selectedOptions].map(({value:n})=>n):LT(t)?Wde(e.refs).value:qde(fo(t.value)?e.ref.value:t.value,e)}var Fit=(e,t,n,r)=>{const i={};for(const o of e){const a=an(t,o);a&&mi(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},MO=e=>fo(e)?e:uA(e)?e.source:Jo(e)?uA(e.value)?e.value.source:e.value:e,Bit=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function WX(e,t,n){const r=an(e,n);if(r||O7(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=an(t,o),s=an(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 Uit=(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,jit=(e,t)=>!MT(an(e,t)).length&&Ca(e,t);const zit={mode:gc.onSubmit,reValidateMode:gc.onChange,shouldFocusError:!0};function Vit(e={},t){let n={...zit,...e},r={submitCount:0,isDirty:!1,isLoading:ch(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=Jo(n.values)||Jo(n.defaultValues)?Gs(n.values||n.defaultValues)||{}:{},a=n.shouldUnregister?{}:Gs(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},f={values:$P(),array:$P(),state:$P()},m=$X(n.mode),g=$X(n.reValidateMode),v=n.criteriaMode===gc.all,S=pe=>oe=>{clearTimeout(c),c=setTimeout(pe,oe)},O=async pe=>{if(d.isValid||pe){const oe=n.resolver?bu((await M()).errors):await V(i,!0);oe!==r.isValid&&f.state.next({isValid:oe})}},E=pe=>d.isValidating&&f.state.next({isValidating:pe}),w=(pe,oe=[],ie,Fe,Qe=!0,je=!0)=>{if(Fe&&ie){if(s.action=!0,je&&Array.isArray(an(i,pe))){const fe=ie(an(i,pe),Fe.argA,Fe.argB);Qe&&mi(i,pe,fe)}if(je&&Array.isArray(an(r.errors,pe))){const fe=ie(an(r.errors,pe),Fe.argA,Fe.argB);Qe&&mi(r.errors,pe,fe),jit(r.errors,pe)}if(d.touchedFields&&je&&Array.isArray(an(r.touchedFields,pe))){const fe=ie(an(r.touchedFields,pe),Fe.argA,Fe.argB);Qe&&mi(r.touchedFields,pe,fe)}d.dirtyFields&&(r.dirtyFields=tk(o,a)),f.state.next({name:pe,isDirty:G(pe,oe),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else mi(a,pe,oe)},k=(pe,oe)=>{mi(r.errors,pe,oe),f.state.next({errors:r.errors})},A=pe=>{r.errors=pe,f.state.next({errors:r.errors,isValid:!1})},C=(pe,oe,ie,Fe)=>{const Qe=an(i,pe);if(Qe){const je=an(a,pe,fo(ie)?an(o,pe):ie);fo(je)||Fe&&Fe.defaultChecked||oe?mi(a,pe,oe?je:BP(Qe._f)):X(pe,je),s.mount&&O()}},x=(pe,oe,ie,Fe,Qe)=>{let je=!1,fe=!1;const Oe={name:pe},ye=!!(an(i,pe)&&an(i,pe)._f.disabled);if(!ie||Fe){d.isDirty&&(fe=r.isDirty,r.isDirty=Oe.isDirty=G(),je=fe!==Oe.isDirty);const Ce=ye||Gm(an(o,pe),oe);fe=!!(!ye&&an(r.dirtyFields,pe)),Ce||ye?Ca(r.dirtyFields,pe):mi(r.dirtyFields,pe,!0),Oe.dirtyFields=r.dirtyFields,je=je||d.dirtyFields&&fe!==!Ce}if(ie){const Ce=an(r.touchedFields,pe);Ce||(mi(r.touchedFields,pe,ie),Oe.touchedFields=r.touchedFields,je=je||d.touchedFields&&Ce!==ie)}return je&&Qe&&f.state.next(Oe),je?Oe:{}},F=(pe,oe,ie,Fe)=>{const Qe=an(r.errors,pe),je=d.isValid&&pc(oe)&&r.isValid!==oe;if(e.delayError&&ie?(u=S(()=>k(pe,ie)),u(e.delayError)):(clearTimeout(c),u=null,ie?mi(r.errors,pe,ie):Ca(r.errors,pe)),(ie?!Gm(Qe,ie):Qe)||!bu(Fe)||je){const fe={...Fe,...je&&pc(oe)?{isValid:oe}:{},errors:r.errors,name:pe};r={...r,...fe},f.state.next(fe)}E(!1)},M=async pe=>n.resolver(a,n.context,Fit(pe||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async pe=>{const{errors:oe}=await M(pe);if(pe)for(const ie of pe){const Fe=an(oe,ie);Fe?mi(r.errors,ie,Fe):Ca(r.errors,ie)}else r.errors=oe;return oe},V=async(pe,oe,ie={valid:!0})=>{for(const Fe in pe){const Qe=pe[Fe];if(Qe){const{_f:je,...fe}=Qe;if(je){const Oe=l.array.has(je.name),ye=await VX(Qe,a,v,n.shouldUseNativeValidation&&!oe,Oe);if(ye[je.name]&&(ie.valid=!1,oe))break;!oe&&(an(ye,je.name)?Oe?Pit(r.errors,ye,je.name):mi(r.errors,je.name,ye[je.name]):Ca(r.errors,je.name))}fe&&await V(fe,oe,ie)}}return ie.valid},W=()=>{for(const pe of l.unMount){const oe=an(i,pe);oe&&(oe._f.refs?oe._f.refs.every(ie=>!FP(ie)):!FP(oe._f.ref))&&we(pe)}l.unMount=new Set},G=(pe,oe)=>(pe&&oe&&mi(a,pe,oe),!Gm(he(),o)),j=(pe,oe,ie)=>jde(pe,l,{...s.mount?a:fo(oe)?o:Cd(pe)?{[pe]:oe}:oe},ie,oe),z=pe=>MT(an(s.mount?a:o,pe,e.shouldUnregister?an(o,pe,[]):[])),X=(pe,oe,ie={})=>{const Fe=an(i,pe);let Qe=oe;if(Fe){const je=Fe._f;je&&(!je.disabled&&mi(a,pe,qde(oe,je)),Qe=lA(je.ref)&&Is(oe)?"":oe,Qde(je.ref)?[...je.ref.options].forEach(fe=>fe.selected=Qe.includes(fe.value)):je.refs?LT(je.ref)?je.refs.length>1?je.refs.forEach(fe=>(!fe.defaultChecked||!fe.disabled)&&(fe.checked=Array.isArray(Qe)?!!Qe.find(Oe=>Oe===fe.value):Qe===fe.value)):je.refs[0]&&(je.refs[0].checked=!!Qe):je.refs.forEach(fe=>fe.checked=fe.value===Qe):E7(je.ref)?je.ref.value="":(je.ref.value=Qe,je.ref.type||f.values.next({name:pe,values:{...a}})))}(ie.shouldDirty||ie.shouldTouch)&&x(pe,Qe,ie.shouldTouch,ie.shouldDirty,!0),ie.shouldValidate&&se(pe)},Z=(pe,oe,ie)=>{for(const Fe in oe){const Qe=oe[Fe],je=`${pe}.${Fe}`,fe=an(i,je);(l.array.has(pe)||!cA(Qe)||fe&&!fe._f)&&!h0(Qe)?Z(je,Qe,ie):X(je,Qe,ie)}},q=(pe,oe,ie={})=>{const Fe=an(i,pe),Qe=l.array.has(pe),je=Gs(oe);mi(a,pe,je),Qe?(f.array.next({name:pe,values:{...a}}),(d.isDirty||d.dirtyFields)&&ie.shouldDirty&&f.state.next({name:pe,dirtyFields:tk(o,a),isDirty:G(pe,je)})):Fe&&!Fe._f&&!Is(je)?Z(pe,je,ie):X(pe,je,ie),FX(pe,l)&&f.state.next({...r}),f.values.next({name:pe,values:{...a}}),!s.mount&&t()},te=async pe=>{const oe=pe.target;let ie=oe.name,Fe=!0;const Qe=an(i,ie),je=()=>oe.type?BP(Qe._f):Pde(pe),fe=Oe=>{Fe=Number.isNaN(Oe)||Oe===an(a,ie,Oe)};if(Qe){let Oe,ye;const Ce=je(),De=pe.type===sA.BLUR||pe.type===sA.FOCUS_OUT,ft=!Bit(Qe._f)&&!n.resolver&&!an(r.errors,ie)&&!Qe._f.deps||Uit(De,an(r.touchedFields,ie),r.isSubmitted,g,m),_t=FX(ie,l,De);mi(a,ie,Ce),De?(Qe._f.onBlur&&Qe._f.onBlur(pe),u&&u(0)):Qe._f.onChange&&Qe._f.onChange(pe);const At=x(ie,Ce,De,!1),pt=!bu(At)||_t;if(!De&&f.values.next({name:ie,type:pe.type,values:{...a}}),ft)return d.isValid&&O(),pt&&f.state.next({name:ie,..._t?{}:At});if(!De&&_t&&f.state.next({...r}),E(!0),n.resolver){const{errors:Mt}=await M([ie]);if(fe(Ce),Fe){const ot=WX(r.errors,i,ie),gt=WX(Mt,i,ot.name||ie);Oe=gt.error,ie=gt.name,ye=bu(Mt)}}else Oe=(await VX(Qe,a,v,n.shouldUseNativeValidation))[ie],fe(Ce),Fe&&(Oe?ye=!1:d.isValid&&(ye=await V(i,!0)));Fe&&(Qe._f.deps&&se(Qe._f.deps),F(ie,ye,Oe,At))}},Q=(pe,oe)=>{if(an(r.errors,oe)&&pe.focus)return pe.focus(),1},se=async(pe,oe={})=>{let ie,Fe;const Qe=sC(pe);if(E(!0),n.resolver){const je=await P(fo(pe)?pe:Qe);ie=bu(je),Fe=pe?!Qe.some(fe=>an(je,fe)):ie}else pe?(Fe=(await Promise.all(Qe.map(async je=>{const fe=an(i,je);return await V(fe&&fe._f?{[je]:fe}:fe)}))).every(Boolean),!(!Fe&&!r.isValid)&&O()):Fe=ie=await V(i);return f.state.next({...!Cd(pe)||d.isValid&&ie!==r.isValid?{}:{name:pe},...n.resolver||!pe?{isValid:ie}:{},errors:r.errors,isValidating:!1}),oe.shouldFocus&&!Fe&&Y1(i,Q,pe?Qe:l.mount),Fe},he=pe=>{const oe={...o,...s.mount?a:{}};return fo(pe)?oe:Cd(pe)?an(oe,pe):pe.map(ie=>an(oe,ie))},J=(pe,oe)=>({invalid:!!an((oe||r).errors,pe),isDirty:!!an((oe||r).dirtyFields,pe),isTouched:!!an((oe||r).touchedFields,pe),error:an((oe||r).errors,pe)}),le=pe=>{pe&&sC(pe).forEach(oe=>Ca(r.errors,oe)),f.state.next({errors:pe?r.errors:{}})},ve=(pe,oe,ie)=>{const Fe=(an(i,pe,{_f:{}})._f||{}).ref;mi(r.errors,pe,{...oe,ref:Fe}),f.state.next({name:pe,errors:r.errors,isValid:!1}),ie&&ie.shouldFocus&&Fe&&Fe.focus&&Fe.focus()},ue=(pe,oe)=>ch(pe)?f.values.subscribe({next:ie=>pe(j(void 0,oe),ie)}):j(pe,oe,!0),we=(pe,oe={})=>{for(const ie of pe?sC(pe):l.mount)l.mount.delete(ie),l.array.delete(ie),oe.keepValue||(Ca(i,ie),Ca(a,ie)),!oe.keepError&&Ca(r.errors,ie),!oe.keepDirty&&Ca(r.dirtyFields,ie),!oe.keepTouched&&Ca(r.touchedFields,ie),!n.shouldUnregister&&!oe.keepDefaultValue&&Ca(o,ie);f.values.next({values:{...a}}),f.state.next({...r,...oe.keepDirty?{isDirty:G()}:{}}),!oe.keepIsValid&&O()},ke=({disabled:pe,name:oe,field:ie,fields:Fe,value:Qe})=>{if(pc(pe)){const je=pe?void 0:fo(Qe)?BP(ie?ie._f:an(Fe,oe)._f):Qe;mi(a,oe,je),x(oe,je,!1,!1,!0)}},Ue=(pe,oe={})=>{let ie=an(i,pe);const Fe=pc(oe.disabled);return mi(i,pe,{...ie||{},_f:{...ie&&ie._f?ie._f:{ref:{name:pe}},name:pe,mount:!0,...oe}}),l.mount.add(pe),ie?ke({field:ie,disabled:oe.disabled,name:pe,value:oe.value}):C(pe,!0,oe.value),{...Fe?{disabled:oe.disabled}:{},...n.progressive?{required:!!oe.required,min:MO(oe.min),max:MO(oe.max),minLength:MO(oe.minLength),maxLength:MO(oe.maxLength),pattern:MO(oe.pattern)}:{},name:pe,onChange:te,onBlur:te,ref:Qe=>{if(Qe){Ue(pe,oe),ie=an(i,pe);const je=fo(Qe.value)&&Qe.querySelectorAll&&Qe.querySelectorAll("input,select,textarea")[0]||Qe,fe=$it(je),Oe=ie._f.refs||[];if(fe?Oe.find(ye=>ye===je):je===ie._f.ref)return;mi(i,pe,{_f:{...ie._f,...fe?{refs:[...Oe.filter(FP),je,...Array.isArray(an(o,pe))?[{}]:[]],ref:{type:je.type,name:pe}}:{ref:je}}}),C(pe,!1,void 0,je)}else ie=an(i,pe,{}),ie._f&&(ie._f.mount=!1),(n.shouldUnregister||oe.shouldUnregister)&&!(Lde(l.array,pe)&&s.action)&&l.unMount.add(pe)}}},et=()=>n.shouldFocusError&&Y1(i,Q,l.mount),Me=pe=>{pc(pe)&&(f.state.next({disabled:pe}),Y1(i,(oe,ie)=>{let Fe=pe;const Qe=an(i,ie);Qe&&pc(Qe._f.disabled)&&(Fe||(Fe=Qe._f.disabled)),oe.disabled=Fe},0,!1))},qe=(pe,oe)=>async ie=>{let Fe;ie&&(ie.preventDefault&&ie.preventDefault(),ie.persist&&ie.persist());let Qe=Gs(a);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:je,values:fe}=await M();r.errors=je,Qe=fe}else await V(i);if(Ca(r.errors,"root"),bu(r.errors)){f.state.next({errors:{}});try{await pe(Qe,ie)}catch(je){Fe=je}}else oe&&await oe({...r.errors},ie),et(),setTimeout(et);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:bu(r.errors)&&!Fe,submitCount:r.submitCount+1,errors:r.errors}),Fe)throw Fe},xe=(pe,oe={})=>{an(i,pe)&&(fo(oe.defaultValue)?q(pe,Gs(an(o,pe))):(q(pe,oe.defaultValue),mi(o,pe,Gs(oe.defaultValue))),oe.keepTouched||Ca(r.touchedFields,pe),oe.keepDirty||(Ca(r.dirtyFields,pe),r.isDirty=oe.defaultValue?G(pe,Gs(an(o,pe))):G()),oe.keepError||(Ca(r.errors,pe),d.isValid&&O()),f.state.next({...r}))},Ze=(pe,oe={})=>{const ie=pe?Gs(pe):o,Fe=Gs(ie),Qe=pe&&!bu(pe)?Fe:o;if(oe.keepDefaultValues||(o=ie),!oe.keepValues){if(oe.keepDirtyValues)for(const je of l.mount)an(r.dirtyFields,je)?mi(Qe,je,an(a,je)):q(je,an(Qe,je));else{if(b7&&fo(pe))for(const je of l.mount){const fe=an(i,je);if(fe&&fe._f){const Oe=Array.isArray(fe._f.refs)?fe._f.refs[0]:fe._f.ref;if(lA(Oe)){const ye=Oe.closest("form");if(ye){ye.reset();break}}}}i={}}a=e.shouldUnregister?oe.keepDefaultValues?Gs(o):{}:Gs(Qe),f.array.next({values:{...Qe}}),f.values.next({values:{...Qe}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!oe.keepIsValid||!!oe.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:oe.keepSubmitCount?r.submitCount:0,isDirty:oe.keepDirty?r.isDirty:!!(oe.keepDefaultValues&&!Gm(pe,o)),isSubmitted:oe.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:oe.keepDirtyValues?oe.keepDefaultValues&&a?tk(o,a):r.dirtyFields:oe.keepDefaultValues&&pe?tk(o,pe):{},touchedFields:oe.keepTouched?r.touchedFields:{},errors:oe.keepErrors?r.errors:{},isSubmitSuccessful:oe.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Xe=(pe,oe)=>Ze(ch(pe)?pe(a):pe,oe);return{control:{register:Ue,unregister:we,getFieldState:J,handleSubmit:qe,setError:ve,_executeSchema:M,_getWatch:j,_getDirty:G,_updateValid:O,_removeUnmounted:W,_updateFieldArray:w,_updateDisabledField:ke,_getFieldArray:z,_reset:Ze,_resetDefaultValues:()=>ch(n.defaultValues)&&n.defaultValues().then(pe=>{Xe(pe,n.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:pe=>{r={...r,...pe}},_disableForm:Me,_subjects:f,_proxyFormState:d,_setErrors:A,get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(pe){s=pe},get _defaultValues(){return o},get _names(){return l},set _names(pe){l=pe},get _formState(){return r},set _formState(pe){r=pe},get _options(){return n},set _options(pe){n={...n,...pe}}},trigger:se,register:Ue,handleSubmit:qe,watch:ue,setValue:q,getValues:he,reset:Xe,resetField:xe,clearErrors:le,unregister:we,setError:ve,setFocus:(pe,oe={})=>{const ie=an(i,pe),Fe=ie&&ie._f;if(Fe){const Qe=Fe.refs?Fe.refs[0]:Fe.ref;Qe.focus&&(Qe.focus(),oe.shouldSelect&&Qe.select())}},getFieldState:J}}function Zde(e={}){const t=cn.useRef(),n=cn.useRef(),[r,i]=cn.useState({isDirty:!1,isValidating:!1,isLoading:ch(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ch(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Vit(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,v7({subject:o._subjects.state,next:a=>{Bde(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),cn.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),cn.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),cn.useEffect(()=>{e.values&&!Gm(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),cn.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),cn.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()}),cn.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=Fde(r,o),t.current}const vd=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),T7=({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}},G1=({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},Wit=(e,t)=>t==null||!e.isValid(t)?null:t,fs=(e,t,n)=>t==null||!e.isValid(t)?n:t,Hit=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),w7=(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},E$=(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},x7=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),yc=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Qit=["year","month","day"],$0=e=>Qit.includes(e),uS=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return vd(n,["year"])?i.year:vd(n,["month"])?i.month:vd(n,["day"])?i.dayOfMonth:vd(n,["month","year"])?`${i.month} ${i.year}`:vd(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},Yit=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Xde=["hours","minutes","seconds"],$y=e=>Xde.includes(e),Fp=e=>Xde.includes(e)||e==="meridiem",Git=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,cS=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,qit=(e,t,n,r)=>{const i=cS(r.getHours(e),t,n);return r.setHours(e,i)},HX=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),$T=(e,t)=>(n,r)=>e?t.isAfter(n,r):HX(n,t)>HX(r,t),fA=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return vd(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:vd(n,["minutes"])?i.minutes:vd(n,["seconds"])?i.seconds:vd(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:vd(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}`},hc={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Zit=e=>Math.max(...e.map(t=>{var n;return(n=hc[t.type])!=null?n:1})),$O=(e,t,n)=>{if(t===hc.year)return e.startOfYear(n);if(t===hc.month)return e.startOfMonth(n);if(t===hc.day)return e.startOfDay(n);let r=n;return t{var o;let a=i?i():$O(t,n,x7(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=$O(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=$O(t,n,e.maxDate));const s=$T((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=$O(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:E$(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=$O(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:E$(t,a,e.maxTime))),a},Kde=(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}},Kit=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},VI=(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))},Jde=(e,t,n,r)=>{switch(n){case"month":return w7(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return VI(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[]}},efe=(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?efe(e,o,i.maxLength):o},Jit=(e,t,n,r,i,o,a)=>{const s=Kit(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,d=()=>{const m=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),g=E=>tfe(e,t,E,m,n),v=n.type==="minutes"&&a!=null&&a.minutesStep?a.minutesStep:1;let O=parseInt(n.value,10)+s*v;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?O=m.minimum:O=m.maximum}return O%v!==0&&((s<0||l)&&(O+=v-(v+O)%v),(s>0||u)&&(O-=O%v)),O>m.maximum?g(m.minimum+(O-m.maximum-1)%(m.maximum-m.minimum+1)):O{const m=Jde(e,t,n.type,n.format);if(m.length===0)return n.value;if(c)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():f()},k7=(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},m0=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),nfe=(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}},QX=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),rfe=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,ife=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return rfe(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")}},tot=(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},YX=(e,t,n,r,i,o,a,s)=>{let l="";const u=[],c=e.date(),d=w=>{if(w==="")return null;const k=Kde(e,w),A=ife(e,t,k.contentType,k.type,w),C=a?A:k.contentType==="digit",x=i!=null&&e.isValid(i);let F=x?e.formatByString(i,w):"",M=null;if(C)if(A)M=F===""?e.formatByString(c,w).length:F.length;else{if(k.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);M=k.maxLength,x&&(F=efe(e,F,M))}return u.push(B({},k,{format:w,maxLength:M,value:F,placeholder:eot(e,t,n,k,w),hasLeadingZeros:A,hasLeadingZerosInFormat:A,hasLeadingZerosInInput:C,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let f=10,m=r,g=e.expandFormat(r);for(;g!==m;)if(m=g,g=e.expandFormat(m),f-=1,f<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 v=g,S=tot(e,v),O=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,k)=>k.length-w.length).join("|")})`,"g");let E="";for(let w=0;wM.start<=w&&M.end>=w),A=v[w],C=k!=null,x=`${E}${v.slice(w)}`,F=O.test(x);!C&&A.match(/([A-Za-z]+)/)&&F?(E=x.slice(0,O.lastIndex),w+=O.lastIndex-1):C&&(k==null?void 0:k.start)===w||(k==null?void 0:k.end)===w||(d(E),E="",u.length===0?l+=A:u[u.length-1].endSeparator+=A)}return d(E),u.map(w=>{const k=A=>{let C=A;return s&&C!==null&&C.includes(" ")&&(C=`⁩${C}⁦`),o==="spacious"&&["/",".","-"].includes(C)&&(C=` ${C} `),C};return w.startSeparator=k(w.startSeparator),w.endSeparator=k(w.endSeparator),w})},not=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=e.map(i=>{const o=k7(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},iot=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=w7(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:rfe(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=VI(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})}},oot=(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=VI(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}},GX={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},qX=(e,t,n,r,i,o)=>[...r].sort((a,s)=>GX[a.type]-GX[s.type]).reduce((a,s)=>!o||s.modified?oot(e,t,s,n,a):a,i),aot=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,sot=(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],f=c===e.length-1?null:r[c+1];n[u]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},lot=["value","referenceDate"],ea={emptyValue:null,getTodayValue:x7,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=st(e,lot);return t!=null&&r.utils.isValid(t)?t:n??Xit(r)},cleanValue:Wit,areValuesEqual:Hit,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)},C7={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:nfe(i(t),r),getValueStrFromSections:rot,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)},uot=["localeText"],S$=L.createContext(null),ofe=function(t){var n;const{localeText:r}=t,i=st(t,uot),{utils:o,localeText:a}=(n=L.useContext(S$))!=null?n:{utils:void 0,localeText:void 0},s=Nt({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:f,localeText:m}=s,g=L.useMemo(()=>B({},m,a,r),[m,a,r]),v=L.useMemo(()=>{if(!u)return o||null;const E=new u({locale:f,formats:c,instance:d});if(!E.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 E},[u,f,c,d,o]),S=L.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),O=L.useMemo(()=>({utils:v,defaultDates:S,localeText:g}),[S,v,g]);return N.jsx(S$.Provider,{value:O,children:l})},cot=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:B({},e)}}}}),afe={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"},dot=afe;cot(afe);const Uc=()=>{const e=L.useContext(S$);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=P.useMemo(()=>B({},nst,e.localeText),[e.localeText]);return P.useMemo(()=>B({},e,{localeText:t}),[e,t])},ur=()=>Uc().utils,Hg=()=>Uc().defaultDates,ts=()=>Uc().localeText,im=e=>{const t=ur(),n=P.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function ufe(e){return Qt("MuiPickersToolbar",e)}Yt("MuiPickersToolbar",["root","content"]);const rst=e=>{const{classes:t,isLandscape:n}=e;return Vt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},ufe,t)},ist=Ae("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>B({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"})),ost=Ae("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"}}),I9=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:s,hidden:a,titleId:l}=r,u=r,c=rst(u);return a?null:N.jsxs(ist,{ref:n,className:dt(c.root,o),ownerState:u,children:[N.jsx($r,{color:"text.secondary",variant:"overline",id:l,children:s}),N.jsx(ost,{className:c.content,ownerState:u,children:i})]})});function sst(e){return Qt("MuiDatePickerToolbar",e)}Yt("MuiDatePickerToolbar",["root","title"]);const ast=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],lst=e=>{const{classes:t}=e;return Vt({root:["root"],title:["title"]},sst,t)},ust=Ae(I9,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cst=Ae($r,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>B({},e.isLandscape&&{margin:"auto 16px auto auto"})),dst=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:s,toolbarPlaceholder:a="––",views:l}=r,u=st(r,ast),c=ur(),d=ts(),p=lst(r),m=P.useMemo(()=>{if(!i)return a;const v=cS(c,{format:s,views:l},!0);return c.formatByString(i,v)},[i,s,a,c,l]),g=r;return N.jsx(ust,B({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:p.root},u,{children:N.jsx(cst,{variant:"h4",align:o?"left":"center",ownerState:g,className:p.title,children:m})}))}),BT=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>B({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function cfe(e,t){var n,r,i,o;const s=ur(),a=Hg(),l=Nt({props:e,name:t}),u=P.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:B({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:BT(l.components);return B({},l,{localeText:u},k9({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:fa(s,l.minDate,a.minDate),maxDate:fa(s,l.maxDate,a.maxDate),slots:B({toolbar:dst},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const fst=Po(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),pst=Po(N.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),hst=Po(N.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),dfe=Po(N.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),mst=Po(N.jsxs(P.Fragment,{children:[N.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),N.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),gst=Po(N.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),bst=Po(N.jsxs(P.Fragment,{children:[N.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),N.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),yst=Po(N.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function vst(e){return Qt("MuiPickersArrowSwitcher",e)}Yt("MuiPickersArrowSwitcher",["root","spacer","button"]);const Ost=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Est=["ownerState"],Sst=["ownerState"],Tst=Ae("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),wst=Ae("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),JX=Ae(Xo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>B({},e.hidden&&{visibility:"hidden"})),xst=e=>{const{classes:t}=e;return Vt({root:["root"],spacer:["spacer"],button:["button"]},vst,t)},ffe=P.forwardRef(function(t,n){var r,i,o,s;const l=Di().direction==="rtl",u=Nt({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:d,slots:p,slotProps:m,isNextDisabled:g,isNextHidden:v,onGoToNext:E,nextLabel:O,isPreviousDisabled:S,isPreviousHidden:x,onGoToPrevious:C,previousLabel:I}=u,_=st(u,Ost),w=u,F=xst(w),M={isDisabled:g,isHidden:v,goTo:E,label:O},L={isDisabled:S,isHidden:x,goTo:C,label:I},W=(r=p==null?void 0:p.previousIconButton)!=null?r:JX,H=nr({elementType:W,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:L.label,"aria-label":L.label,disabled:L.isDisabled,edge:"end",onClick:L.goTo},ownerState:B({},w,{hidden:L.isHidden}),className:F.button}),q=(i=p==null?void 0:p.nextIconButton)!=null?i:JX,j=nr({elementType:q,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:B({},w,{hidden:M.isHidden}),className:F.button}),z=(o=p==null?void 0:p.leftArrowIcon)!=null?o:pst,X=nr({elementType:z,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Z=st(X,Est),G=(s=p==null?void 0:p.rightArrowIcon)!=null?s:hst,ee=nr({elementType:G,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=st(ee,Sst);return N.jsxs(Tst,B({ref:n,className:dt(F.root,d),ownerState:w},_,{children:[N.jsx(W,B({},H,{children:l?N.jsx(G,B({},Q)):N.jsx(z,B({},Z))})),c?N.jsx($r,{variant:"subtitle1",component:"span",children:c}):N.jsx(wst,{className:F.spacer,ownerState:w}),N.jsx(q,B({},j,{children:l?N.jsx(z,B({},Z)):N.jsx(G,B({},Q))}))]}))}),fS=36,QR=2,YR=320,kst=280,GR=334,pfe=232,lO=48,Cst=Ae(WRe)({[`& .${kO.container}`]:{outline:0},[`& .${kO.paper}`]:{outline:0,minWidth:YR}}),_st=Ae(oIe)({"&:first-of-type":{padding:0}});function Ast(e){var t,n;const{children:r,onDismiss:i,open:o,slots:s,slotProps:a}=e,l=(t=s==null?void 0:s.dialog)!=null?t:Cst,u=(n=s==null?void 0:s.mobileTransition)!=null?n:Gf;return N.jsx(l,B({open:o,onClose:i},a==null?void 0:a.dialog,{TransitionComponent:u,TransitionProps:a==null?void 0:a.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:a==null?void 0:a.mobilePaper,children:N.jsx(_st,{children:r})}))}function Rst(e){return Qt("MuiPickersPopper",e)}Yt("MuiPickersPopper",["root","paper"]);function W0(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Ist=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},mA=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?mA(t.shadowRoot):t:null},D9="@media (pointer: fine)",Dst="@media (prefers-reduced-motion: reduce)",Fb=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),eK=Fb&&Fb[1]?parseInt(Fb[1],10):null,tK=Fb&&Fb[2]?parseInt(Fb[2],10):null,Nst=eK&&eK<10||tK&&tK<13||!1,hfe=()=>Ky(Dst,{defaultMatches:!1})||Nst,Pst=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Lst=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"]},Rst,t)},Mst=Ae(Zy,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),$st=Ae(js,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>B({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function Fst(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 s=on(l=>{if(!o.current)return;const u=r.current;r.current=!1;const c=ci(i.current);if(!i.current||"clientX"in l&&Fst(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)}),a=()=>{r.current=!0};return P.useEffect(()=>{if(e){const l=ci(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",u)}}},[e,s]),P.useEffect(()=>{if(e){const l=ci(i.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[i,a,a]}const Ust=P.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:s,paperClasses:a,onPaperClick:l,onPaperTouchStart:u}=e,c=st(e,Pst),d=B({},i,{placement:r}),p=nr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return N.jsx(n,B({},c,p,{onClick:m=>{var g;l(m),(g=p.onClick)==null||g.call(p,m)},onTouchStart:m=>{var g;u(m),(g=p.onTouchStart)==null||g.call(p,m)},ownerState:d,children:o}))});function jst(e){var t,n,r,i;const o=Nt({props:e,name:"MuiPickersPopper"}),{anchorEl:s,children:a,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:d,open:p,role:m,placement:g,slots:v,slotProps:E,reduceAnimations:O}=o;P.useEffect(()=>{function ee(Q){p&&(Q.key==="Escape"||Q.key==="Esc")&&d()}return document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)}},[d,p]);const S=P.useRef(null);P.useEffect(()=>{m==="tooltip"||u&&!u()||(p?S.current=mA(document):S.current&&S.current instanceof HTMLElement&&setTimeout(()=>{S.current instanceof HTMLElement&&S.current.focus()}))},[p,m,u]);const[x,C,I]=Bst(p,c??d),_=P.useRef(null),w=Vn(_,l),F=Vn(w,x),M=o,L=Lst(M),W=hfe(),H=O??W,q=ee=>{ee.key==="Escape"&&(ee.stopPropagation(),d())},j=((t=v==null?void 0:v.desktopTransition)!=null?t:H)?Gf:i_,z=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:xne,X=(r=v==null?void 0:v.desktopPaper)!=null?r:$st,Z=(i=v==null?void 0:v.popper)!=null?i:Mst,G=nr({elementType:Z,externalSlotProps:E==null?void 0:E.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:s,placement:g,onKeyDown:q},className:L.root,ownerState:o});return N.jsx(Z,B({},G,{children:({TransitionProps:ee,placement:Q})=>N.jsx(z,B({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},E==null?void 0:E.desktopTrapFocus,{children:N.jsx(j,B({},ee,E==null?void 0:E.desktopTransition,{children:N.jsx(Ust,{PaperComponent:X,ownerState:M,popperPlacement:Q,ref:F,onPaperClick:C,onPaperTouchStart:I,paperClasses:L.paper,paperSlotProps:E==null?void 0:E.desktopPaper,children:a})}))}))}))}function zst(e){return Qt("MuiPickersToolbarText",e)}const nK=Yt("MuiPickersToolbarText",["root","selected"]),Vst=["className","selected","value"],Hst=e=>{const{classes:t,selected:n}=e;return Vt({root:["root",n&&"selected"]},zst,t)},Wst=Ae($r,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${nK.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${nK.selected}`]:{color:(e.vars||e).palette.text.primary}})),N9=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,s=st(r,Vst),a=Hst(r);return N.jsx(Wst,B({ref:n,className:dt(i,a.root),component:"span"},s,{children:o}))}),Qst=["align","className","selected","typographyClassName","value","variant","width"],Yst=e=>{const{classes:t}=e;return Vt({root:["root"]},ufe,t)},Gst=Ae(Ms,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Il=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:s,typographyClassName:a,value:l,variant:u,width:c}=r,d=st(r,Qst),p=Yst(r);return N.jsx(Gst,B({variant:"text",ref:n,className:dt(o,p.root)},c?{sx:{width:c}}:{},d,{children:N.jsx(N9,{align:i,className:a,variant:u,value:l,selected:s})}))}),P9=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var o,s;const a=ur(),l=P.useRef(n),u=(o=t??l.current)!=null?o:i.emptyValue,c=P.useMemo(()=>i.getTimezone(a,u),[a,i,u]),d=on(v=>c==null?v:i.setTimezone(a,c,v)),p=(s=e??c)!=null?s:"default",m=P.useMemo(()=>i.setTimezone(a,p,u),[i,a,p,u]),g=on((v,...E)=>{const O=d(v);r==null||r(O,...E)});return{value:m,handleValueChange:g,timezone:p}},T1=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const[s,a]=ms({name:e,state:"value",controlled:n,default:r??o.emptyValue}),l=on((u,...c)=>{a(u),i==null||i(u,...c)});return P9({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:o})};function mfe(e,t,n,r){const{value:i,onError:o}=e,s=Uc(),a=P.useRef(r),l=t({adapter:s,value:i,props:e});return P.useEffect(()=>{o&&!n(l,a.current)&&o(l,i),a.current=l},[n,o,a,l,i]),l}const qst=e=>{const t=ur(),n=ts(),r=Uc(),o=Di().direction==="rtl",{valueManager:s,fieldValueManager:a,valueType:l,validator:u,internalProps:c,internalProps:{value:d,defaultValue:p,referenceDate:m,onChange:g,format:v,formatDensity:E="dense",selectedSections:O,onSelectedSectionsChange:S,shouldRespectLeadingZeros:x=!1,timezone:C}}=e,{timezone:I,value:_,handleValueChange:w}=P9({timezone:C,value:d,defaultValue:p,onChange:g,valueManager:s}),F=P.useMemo(()=>qot(t,I),[t,I]),M=P.useCallback((pe,Oe=null)=>a.getSectionsFromValue(t,pe,Oe,o,me=>ZX(t,I,n,v,me,E,x,o)),[a,v,n,o,x,t,E,I]),L=P.useMemo(()=>a.getValueStrFromSections(M(s.emptyValue),o),[a,M,s.emptyValue,o]),[W,H]=P.useState(()=>{const pe=M(_),Oe={sections:pe,value:_,referenceValue:s.emptyValue,tempValueStrAndroid:null},me=jot(pe),Re=s.getInitialReferenceValue({referenceDate:m,value:_,utils:t,props:c,granularity:me,timezone:I});return B({},Oe,{referenceValue:Re})}),[q,j]=ms({controlled:O,default:null,name:"useField",state:"selectedSectionIndexes"}),z=pe=>{j(pe),S==null||S(pe),H(Oe=>B({},Oe,{selectedSectionQuery:null}))},X=P.useMemo(()=>{if(q==null)return null;if(q==="all")return{startIndex:0,endIndex:W.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof q=="number")return{startIndex:q,endIndex:q};if(typeof q=="string"){const pe=W.sections.findIndex(Oe=>Oe.type===q);return{startIndex:pe,endIndex:pe}}return q},[q,W.sections]),Z=({value:pe,referenceValue:Oe,sections:me})=>{if(H(Fe=>B({},Fe,{sections:me,value:pe,referenceValue:Oe,tempValueStrAndroid:null})),s.areValuesEqual(t,W.value,pe))return;const Re={validationError:u({adapter:r,value:pe,props:B({},c,{value:pe,timezone:I})})};w(pe,Re)},G=(pe,Oe)=>{const me=[...W.sections];return me[pe]=B({},me[pe],{value:Oe,modified:!0}),ife(me,o)},ee=()=>{Z({value:s.emptyValue,referenceValue:W.referenceValue,sections:M(s.emptyValue)})},Q=()=>{if(X==null)return;const pe=W.sections[X.startIndex],Oe=a.getActiveDateManager(t,W,pe),Re=Oe.getSections(W.sections).filter(Ye=>Ye.value!=="").length===(pe.value===""?0:1),Fe=G(X.startIndex,""),et=Re?null:t.date(new Date("")),ct=Oe.getNewValuesFromNewActiveDate(et);(et!=null&&!t.isValid(et))!=(Oe.date!=null&&!t.isValid(Oe.date))?Z(B({},ct,{sections:Fe})):H(Ye=>B({},Ye,ct,{sections:Fe,tempValueStrAndroid:null}))},ae=pe=>{const Oe=(Fe,et)=>{const ct=t.parse(Fe,v);if(ct==null||!t.isValid(ct))return null;const Ye=ZX(t,I,n,v,ct,E,x,o);return KX(t,I,ct,Ye,et,!1)},me=a.parseValueStr(pe,W.referenceValue,Oe),Re=a.updateReferenceValue(t,me,W.referenceValue);Z({value:me,referenceValue:Re,sections:M(me,W.sections)})},Te=({activeSection:pe,newSectionValue:Oe,shouldGoToNextSection:me})=>{me&&X&&X.startIndexB({},ke,Ye,{sections:Fe,tempValueStrAndroid:null}))},te=pe=>H(Oe=>B({},Oe,{tempValueStrAndroid:pe}));return P.useEffect(()=>{const pe=M(W.value);H(Oe=>B({},Oe,{sections:pe}))},[v,t.locale]),P.useEffect(()=>{let pe=!1;s.areValuesEqual(t,W.value,_)?pe=s.getTimezone(t,W.value)!==s.getTimezone(t,_):pe=!0,pe&&H(Oe=>B({},Oe,{value:_,referenceValue:a.updateReferenceValue(t,_,Oe.referenceValue),sections:M(_)}))},[_]),{state:W,selectedSectionIndexes:X,setSelectedSections:z,clearValue:ee,clearActiveSection:Q,updateSectionValue:Te,updateValueFromValueStr:ae,setTempAndroidValueStr:te,sectionsValueBoundaries:F,placeholder:L,timezone:I}},Zst=5e3,I0=e=>e.saveQuery!=null,Xst=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const o=ur(),[s,a]=P.useState(null),l=on(()=>a(null));P.useEffect(()=>{var m;s!=null&&((m=e[s.sectionIndex])==null?void 0:m.type)!==s.sectionType&&l()},[e,s,l]),P.useEffect(()=>{if(s!=null){const m=setTimeout(()=>l(),Zst);return()=>{window.clearTimeout(m)}}return()=>{}},[s,l]);const u=({keyPressed:m,sectionIndex:g},v,E)=>{const O=m.toLowerCase(),S=e[g];if(s!=null&&(!E||E(s.value))&&s.sectionIndex===g){const C=`${s.value}${O}`,I=v(C,S);if(!I0(I))return a({sectionIndex:g,value:C,sectionType:S.type}),I}const x=v(O,S);return I0(x)&&!x.saveQuery?(l(),null):(a({sectionIndex:g,value:O,sectionType:S.type}),I0(x)?null:x)},c=m=>{const g=(O,S,x)=>{const C=S.filter(I=>I.toLowerCase().startsWith(x));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(O,S,x,C)=>{const I=_=>tfe(o,i,S.type,_);if(S.contentType==="letter")return g(S.format,I(S.format),O);if(x&&C!=null&&efe(o,x).contentType==="letter"){const _=I(x),w=g(x,_,O);return I0(w)?{saveQuery:!1}:B({},w,{sectionValue:C(w.sectionValue,_)})}return{saveQuery:!1}};return u(m,(O,S)=>{switch(S.type){case"month":{const x=C=>qX(o,C,o.formats.month,S.format);return v(O,S,o.formats.month,x)}case"weekDay":{const x=(C,I)=>I.indexOf(C).toString();return v(O,S,o.formats.weekday,x)}case"meridiem":return v(O,S);default:return{saveQuery:!1}}})},d=m=>{const g=(E,O)=>{const S=+`${E}`,x=n[O.type]({currentDate:null,format:O.format,contentType:O.contentType});if(S>x.maximum)return{saveQuery:!1};if(Sx.maximum||E.length===x.maximum.toString().length;return{sectionValue:rfe(o,i,S,x,O),shouldGoToNextSection:C}};return u(m,(E,O)=>{if(O.contentType==="digit"||O.contentType==="digit-with-letter")return g(E,O);if(O.type==="month"){const S=sfe(o,i,"digit","month","MM"),x=g(E,{type:O.type,format:"MM",hasLeadingZerosInFormat:S,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(I0(x))return x;const C=qX(o,x.sectionValue,"MM",O.format);return B({},x,{sectionValue:C})}if(O.type==="weekDay"){const S=g(E,O);if(I0(S))return S;const x=WR(o,i,O.format)[Number(S.sectionValue)-1];return B({},S,{sectionValue:x})}return{saveQuery:!1}},E=>!Number.isNaN(Number(E)))};return{applyCharacterEditing:on(m=>{const g=e[m.sectionIndex],E=!Number.isNaN(Number(m.keyPressed))?d(m):c(m);E==null?r(null):t({activeSection:g,newSectionValue:E.sectionValue,shouldGoToNextSection:E.shouldGoToNextSection})}),resetCharacterQuery:l}},Kst=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],L9=e=>{const t=ur(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:o,clearActiveSection:s,updateSectionValue:a,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:d,timezone:p}=qst(e),{inputRef:m,internalProps:g,internalProps:{readOnly:v=!1,unstableFieldRef:E,minutesStep:O},forwardedProps:{onClick:S,onKeyDown:x,onFocus:C,onBlur:I,onMouseUp:_,onPaste:w,error:F,clearable:M,onClear:L,disabled:W},fieldValueManager:H,valueManager:q,validator:j}=e,z=st(e.forwardedProps,Kst),{applyCharacterEditing:X,resetCharacterQuery:Z}=Xst({sections:n.sections,updateSectionValue:a,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:p}),G=P.useRef(null),ee=Vn(m,G),Q=P.useRef(void 0),Te=Di().direction==="rtl",te=P.useMemo(()=>Kot(n.sections,Te),[n.sections,Te]),pe=()=>{var oe;if(v){i(null);return}const ie=(oe=G.current.selectionStart)!=null?oe:0;let Me;ie<=n.sections[0].startInInput||ie>=n.sections[n.sections.length-1].endInInput?Me=1:Me=n.sections.findIndex(Be=>Be.startInInput-Be.startSeparator.length>ie);const He=Me===-1?n.sections.length-1:Me-1;i(He)},Oe=on((oe,...ie)=>{oe.isDefaultPrevented()||(S==null||S(oe,...ie),pe())}),me=on(oe=>{_==null||_(oe),oe.preventDefault()}),Re=on((...oe)=>{C==null||C(...oe);const ie=G.current;window.clearTimeout(Q.current),Q.current=setTimeout(()=>{!ie||ie!==G.current||r!=null||v||(ie.value.length&&Number(ie.selectionEnd)-Number(ie.selectionStart)===ie.value.length?i("all"):pe())})}),Fe=on((...oe)=>{I==null||I(...oe),i(null)}),et=on(oe=>{if(w==null||w(oe),v){oe.preventDefault();return}const ie=oe.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Me=n.sections[r.startIndex],He=/^[a-zA-Z]+$/.test(ie),Be=/^[0-9]+$/.test(ie),ce=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ie);if(Me.contentType==="letter"&&He||Me.contentType==="digit"&&Be||Me.contentType==="digit-with-letter"&&ce){Z(),a({activeSection:Me,newSectionValue:ie,shouldGoToNextSection:!0}),oe.preventDefault();return}if(He||Be){oe.preventDefault();return}}oe.preventDefault(),Z(),l(ie)}),ct=on(oe=>{if(v)return;const ie=oe.target.value;if(ie===""){Z(),o();return}const Me=oe.nativeEvent.data,He=Me&&Me.length>1,Be=He?Me:ie,ce=mb(Be);if(r==null||He){l(He?Me:ce);return}let ye;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&ce.length===1)ye=ce;else{const be=mb(H.getValueStrFromSections(n.sections,Te));let we=-1,Ie=-1;for(let pt=0;ptft.end)return;const At=ce.length-be.length+ft.end-mb(ft.endSeparator||"").length;ye=ce.slice(ft.start+mb(ft.startSeparator||"").length,At)}if(ye.length===0){Xot()?u(Be):(Z(),s());return}X({keyPressed:ye,sectionIndex:r.startIndex})}),Ye=on(oe=>{switch(x==null||x(oe),!0){case(oe.key==="a"&&(oe.ctrlKey||oe.metaKey)):{oe.preventDefault(),i("all");break}case oe.key==="ArrowRight":{if(oe.preventDefault(),r==null)i(te.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const ie=te.neighbors[r.startIndex].rightIndex;ie!==null&&i(ie)}break}case oe.key==="ArrowLeft":{if(oe.preventDefault(),r==null)i(te.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const ie=te.neighbors[r.startIndex].leftIndex;ie!==null&&i(ie)}break}case oe.key==="Delete":{if(oe.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?o():s(),Z();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(oe.key):{if(oe.preventDefault(),v||r==null)break;const ie=n.sections[r.startIndex],Me=H.getActiveDateManager(t,n,ie),He=Hot(t,p,ie,oe.key,c,Me.date,{minutesStep:O});a({activeSection:ie,newSectionValue:He,shouldGoToNextSection:!1});break}}});Ji(()=>{if(!G.current)return;if(r==null){G.current.scrollLeft&&(G.current.scrollLeft=0);return}const oe=n.sections[r.startIndex],ie=n.sections[r.endIndex];let Me=oe.startInInput,He=ie.endInInput;if(r.shouldSelectBoundarySelectors&&(Me-=oe.startSeparator.length,He+=ie.endSeparator.length),Me!==G.current.selectionStart||He!==G.current.selectionEnd){const Be=G.current.scrollTop;G.current===mA(document)&&G.current.setSelectionRange(Me,He),G.current.scrollTop=Be}});const nt=mfe(B({},g,{value:n.value,timezone:p}),j,q.isSameError,q.defaultErrorState),ke=P.useMemo(()=>F!==void 0?F:q.hasError(nt),[q,nt,F]);P.useEffect(()=>{!ke&&!r&&Z()},[n.referenceValue,r,ke]),P.useEffect(()=>(G.current&&G.current===document.activeElement&&i("all"),()=>window.clearTimeout(Q.current)),[]),P.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Z(),s())},[n.tempValueStrAndroid]);const qe=P.useMemo(()=>{var oe;return(oe=n.tempValueStrAndroid)!=null?oe:H.getValueStrFromSections(n.sections,Te)},[n.sections,H,n.tempValueStrAndroid,Te]),Ge=P.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),rt=G.current&&G.current===mA(document),Ot=q.areValuesEqual(t,n.value,q.emptyValue),Ke=!rt&&Ot;P.useImperativeHandle(E,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var oe,ie;const Me=(oe=G.current.selectionStart)!=null?oe:0,He=(ie=G.current.selectionEnd)!=null?ie:0;if(Me===0&&He===0)return null;const Be=Me<=n.sections[0].startInInput?1:n.sections.findIndex(ce=>ce.startInInput-ce.startSeparator.length>Me);return Be===-1?n.sections.length-1:Be-1},setSelectedSections:oe=>i(oe)}));const de=on((oe,...ie)=>{var Me;oe.preventDefault(),L==null||L(oe,...ie),o(),G==null||(Me=G.current)==null||Me.focus(),i(0)});return B({placeholder:d,autoComplete:"off",disabled:!!W},z,{value:Ke?"":qe,inputMode:Ge,readOnly:v,onClick:Oe,onFocus:Re,onBlur:Fe,onPaste:et,onChange:ct,onKeyDown:Ye,onMouseUp:me,onClear:de,error:ke,ref:ee,clearable:!!(M&&!Ot&&!v&&!W)})},Jst=({open:e,onOpen:t,onClose:n})=>{const r=P.useRef(typeof e=="boolean").current,[i,o]=P.useState(!1);P.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const s=P.useCallback(a=>{r||o(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:s}},eat=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},tat=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,s=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},nat=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},rat=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:s,value:a,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:d,timezone:p}=e,{current:m}=P.useRef(l),{current:g}=P.useRef(a!==void 0),v=ur(),E=Uc(),[O,S]=ms({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:C}=Jst(e),[I,_]=P.useState(()=>{let Re;return a!==void 0?Re=a:m!==void 0?Re=m:Re=t.emptyValue,{draft:Re,lastPublishedValue:Re,lastCommittedValue:Re,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),{timezone:w,handleValueChange:F}=P9({timezone:p,value:a,defaultValue:m,onChange:s,valueManager:t});mfe(B({},e,{value:I.draft,timezone:w}),i,t.isSameError,t.defaultErrorState);const M=on(Re=>{const Fe={action:Re,dateState:I,hasChanged:nt=>!t.areValuesEqual(v,Re.value,nt),isControlled:g,closeOnSelect:u},et=eat(Fe),ct=tat(Fe),Ye=nat(Fe);if(_(nt=>B({},nt,{draft:Re.value,lastPublishedValue:et?Re.value:nt.lastPublishedValue,lastCommittedValue:ct?Re.value:nt.lastCommittedValue,hasBeenModifiedSinceMount:!0})),et){const ke={validationError:Re.name==="setValueFromField"?Re.context.validationError:i({adapter:E,value:Re.value,props:B({},e,{value:Re.value,timezone:w})})};Re.name==="setValueFromShortcut"&&Re.shortcut!=null&&(ke.shortcut=Re.shortcut),F(Re.value,ke)}ct&&o&&o(Re.value),Ye&&C(!1)});if(a!==void 0&&(I.lastControlledValue===void 0||!t.areValuesEqual(v,I.lastControlledValue,a))){const Re=t.areValuesEqual(v,I.draft,a);_(Fe=>B({},Fe,{lastControlledValue:a},Re?{}:{lastCommittedValue:a,lastPublishedValue:a,draft:a,hasBeenModifiedSinceMount:!0}))}const L=on(()=>{M({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),W=on(()=>{M({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),H=on(()=>{M({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),q=on(()=>{M({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),j=on(()=>{M({value:t.getTodayValue(v,w,n),name:"setValueFromAction",pickerAction:"today"})}),z=on(()=>C(!0)),X=on(()=>C(!1)),Z=on((Re,Fe="partial")=>M({name:"setValueFromView",value:Re,selectionState:Fe})),G=on((Re,Fe,et)=>M({name:"setValueFromShortcut",value:Re,changeImportance:Fe??"accept",shortcut:et})),ee=on((Re,Fe)=>M({name:"setValueFromField",value:Re,context:Fe})),Q=on(Re=>{S(Re),d==null||d(Re)}),ae={onClear:L,onAccept:W,onDismiss:H,onCancel:q,onSetToday:j,onOpen:z,onClose:X},Te={value:I.draft,onChange:ee,selectedSections:O,onSelectedSectionsChange:Q},te=P.useMemo(()=>t.cleanValue(v,I.draft),[v,t,I.draft]),pe={value:te,onChange:Z,onClose:X,open:x,onSelectedSectionsChange:Q},me=B({},ae,{value:te,onChange:Z,onSelectShortcut:G,isValid:Re=>{const Fe=i({adapter:E,value:Re,props:B({},e,{value:Re,timezone:w})});return!t.hasError(Fe)}});return{open:x,fieldProps:Te,viewProps:pe,layoutProps:me,actions:ae}};function UT({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:s,onFocusedViewChange:a}){var l,u;const c=P.useRef(n),d=P.useRef(i),p=P.useRef(i.includes(n)?n:i[0]),[m,g]=ms({name:"useViews",state:"view",controlled:r,default:p.current}),v=P.useRef(o?m:null),[E,O]=ms({name:"useViews",state:"focusedView",controlled:s,default:v.current});P.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(M=>!i.includes(M)))&&(g(i.includes(n)?n:i[0]),d.current=i,c.current=n)},[n,g,m,i]);const S=i.indexOf(m),x=(l=i[S-1])!=null?l:null,C=(u=i[S+1])!=null?u:null,I=on((M,L)=>{O(L?M:W=>M===W?null:W),a==null||a(M,L)}),_=on(M=>{I(M,!0),M!==m&&(g(M),t&&t(M))}),w=on(()=>{C&&_(C)}),F=on((M,L,W)=>{const H=L==="finish",q=W?i.indexOf(W){const{onChange:o,open:s,onSelectedSectionsChange:a,onClose:l}=t,{views:u,openTo:c,onViewChange:d,disableOpenPicker:p,viewRenderers:m,timezone:g}=e,v=st(e,iat),{view:E,setView:O,defaultView:S,focusedView:x,setFocusedView:C,setValueAndGoToNextView:I}=UT({view:void 0,views:u,openTo:c,onChange:o,onViewChange:d,autoFocus:i}),{hasUIView:_,viewModeLookup:w}=P.useMemo(()=>u.reduce((j,z)=>{let X;return p?X="field":m[z]!=null?X="UI":X="field",j.viewModeLookup[z]=X,X==="UI"&&(j.hasUIView=!0),j},{hasUIView:!1,viewModeLookup:{}}),[p,m,u]),F=P.useMemo(()=>u.reduce((j,z)=>m[z]!=null&&$y(z)?j+1:j,0),[m,u]),M=w[E],L=on(()=>M==="UI"),[W,H]=P.useState(M==="UI"?E:null);return W!==E&&w[E]==="UI"&&H(E),Ji(()=>{M==="field"&&s&&(l(),setTimeout(()=>{r==null||r.current.focus(),a(E)}))},[E]),Ji(()=>{if(!s)return;let j=E;M==="field"&&W!=null&&(j=W),j!==S&&w[j]==="UI"&&w[S]==="UI"&&(j=S),j!==E&&O(j),C(j,!0)},[s]),{hasUIView:_,shouldRestoreFocus:L,layoutProps:{views:u,view:W,onViewChange:O},renderCurrentView:()=>{if(W==null)return null;const j=m[W];return j==null?null:j(B({},v,n,t,{views:u,timezone:g,onChange:I,view:W,onViewChange:O,focusedView:x,onFocusedViewChange:C,showViewSwitcher:F>1,timeViewsCount:F}))}}};function rK(){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 sat=(e,t)=>{const[n,r]=P.useState(rK);return Ji(()=>{const o=()=>{r(rK())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),W0(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},aat=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=sat(n.views,i);return{layoutProps:B({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},lat=(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))}};lat(["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 gfe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:s,autoFocusView:a})=>{const l=rat({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=oat({props:e,inputRef:i,additionalViewProps:o,autoFocusView:a,propsFromPickerValue:l.viewProps}),c=aat({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 bfe(e){return Qt("MuiPickersLayout",e)}const VP=Yt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),uat=["onAccept","onClear","onCancel","onSetToday","actions"];function cat(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,s=st(e,uat),a=ts();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return N.jsx(Ms,{onClick:n,children:a.clearButtonLabel},u);case"cancel":return N.jsx(Ms,{onClick:r,children:a.cancelButtonLabel},u);case"accept":return N.jsx(Ms,{onClick:t,children:a.okButtonLabel},u);case"today":return N.jsx(Ms,{onClick:i,children:a.todayButtonLabel},u);default:return null}});return N.jsx(XRe,B({},s,{children:l}))}const dat=["items","changeImportance","isLandscape","onChange","isValid"],fat=["getValue"];function pat(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=st(e,dat);if(t==null||t.length===0)return null;const s=t.map(a=>{let{getValue:l}=a,u=st(a,fat);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return N.jsx(nre,B({dense:!0,sx:[{maxHeight:GR,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:s.map(a=>N.jsx(F0,{children:N.jsx(N$,B({},a))},a.label))}))}function hat(e){return e.view!==null}const mat=e=>{const{classes:t,isLandscape:n}=e;return Vt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},bfe,t)},gat=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:s,onSetToday:a,view:l,views:u,onViewChange:c,value:d,onChange:p,onSelectShortcut:m,isValid:g,isLandscape:v,disabled:E,readOnly:O,children:S,components:x,componentsProps:C,slots:I,slotProps:_}=e,w=I??BT(x),F=_??C,M=mat(e),L=(t=w==null?void 0:w.actionBar)!=null?t:cat,W=nr({elementType:L,externalSlotProps:F==null?void 0:F.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:s,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"],className:M.actionBar},ownerState:B({},e,{wrapperVariant:r})}),H=N.jsx(L,B({},W)),q=w==null?void 0:w.toolbar,j=nr({elementType:q,externalSlotProps:F==null?void 0:F.toolbar,additionalProps:{isLandscape:v,onChange:p,value:d,view:l,onViewChange:c,views:u,disabled:E,readOnly:O,className:M.toolbar},ownerState:B({},e,{wrapperVariant:r})}),z=hat(j)&&q?N.jsx(q,B({},j)):null,X=S,Z=w==null?void 0:w.tabs,G=l&&Z?N.jsx(Z,B({view:l,onViewChange:c,className:M.tabs},F==null?void 0:F.tabs)):null,ee=(n=w==null?void 0:w.shortcuts)!=null?n:pat,Q=nr({elementType:ee,externalSlotProps:F==null?void 0:F.shortcuts,additionalProps:{isValid:g,isLandscape:v,onChange:m,className:M.shortcuts},ownerState:{isValid:g,isLandscape:v,onChange:m,className:M.shortcuts,wrapperVariant:r}}),ae=l&&ee?N.jsx(ee,B({},Q)):null;return{toolbar:z,content:X,tabs:G,actionBar:H,shortcuts:ae}},bat=e=>{const{isLandscape:t,classes:n}=e;return Vt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},bfe,n)},yfe=Ae("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",[`& .${VP.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${VP.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${VP.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));yfe.propTypes={as:J.elementType,ownerState:J.shape({isLandscape:J.bool.isRequired}).isRequired,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])};const yat=Ae("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),vfe=function(t){const n=Nt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:s,shortcuts:a}=gat(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:p}=n,m=n,g=bat(m);return N.jsxs(yfe,{ref:d,sx:l,className:dt(u,g.root),ownerState:m,children:[c?a:r,c?r:a,N.jsx(yat,{className:g.contentWrapper,children:p==="desktop"?N.jsxs(P.Fragment,{children:[i,o]}):N.jsxs(P.Fragment,{children:[o,i]})}),s]})};function vat(e,{disableFuture:t,maxDate:n,timezone:r}){const i=ur();return P.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(s,e)},[t,n,e,i,r])}function Oat(e,{disablePast:t,minDate:n,timezone:r}){const i=ur();return P.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(s,e)},[t,n,e,i,r])}function qR(e,t,n,r){const i=ur(),o=Bot(e,i),s=P.useCallback(a=>{const l=e==null?null:Uot(e,a,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:s}}const x4=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],k4=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Ofe=["minDateTime","maxDateTime"],Eat=[...x4,...k4,...Ofe],w1=e=>Eat.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),Sat=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],M9=(e,t)=>{const n=B({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return Sat.forEach(i),t==="date"?x4.forEach(i):t==="time"?k4.forEach(i):t==="date-time"&&(x4.forEach(i),k4.forEach(i),Ofe.forEach(i)),{forwardedProps:n,internalProps:r}},Wg=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:o,disablePast:s,disableFuture:a,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=fa(n.utils,e.minDate,n.defaultDates.minDate),d=fa(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!!(a&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(s&&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}},jT=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:o,shouldDisableClock:s,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c,timezone:d}=n,p=e.utils.dateWithTimezone(void 0,d),m=FT(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(i&&m(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,p)):return"disableFuture";case!!(u&&e.utils.isBefore(t,p)):return"disablePast";case!!(a&&a(t,"hours")):return"shouldDisableTime-hours";case!!(a&&a(t,"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(t,"seconds")):return"shouldDisableTime-seconds";case!!(s&&s(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(s&&s(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(s&&s(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(o&&e.utils.getMinutes(t)%o!==0):return"minutesStep";default:return null}},ZR=({props:e,value:t,adapter:n})=>{const r=Wg({adapter:n,value:t,props:e});return r!==null?r:jT({adapter:n,value:t,props:e})};function Tat(e){return Qt("MuiPickersDay",e)}const Sm=Yt("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),wat=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],xat=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=e,u=s&&!a;return Vt({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",s&&a&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Tat,l)},Efe=({theme:e,ownerState:t})=>B({},e.typography.caption,{width:fS,height:fS,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Sm.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Sm.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}},[`&.${Sm.disabled}:not(.${Sm.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sm.disabled}&.${Sm.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${QR}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Sm.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Sfe=(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]},kat=Ae(Gl,{name:"MuiPickersDay",slot:"Root",overridesResolver:Sfe})(Efe),Cat=Ae("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Sfe})(({theme:e,ownerState:t})=>B({},Efe({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Bv=()=>{},_at=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:p,onFocus:m=Bv,onBlur:g=Bv,onKeyDown:v=Bv,onMouseDown:E=Bv,onMouseEnter:O=Bv,outsideCurrentMonth:S,selected:x=!1,showDaysOutsideCurrentMonth:C=!1,children:I,today:_=!1}=r,w=st(r,wat),F=B({},r,{autoFocus:i,disabled:a,disableHighlightToday:l,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:C,today:_}),M=xat(F),L=ur(),W=P.useRef(null),H=Vn(W,n);Ji(()=>{i&&!a&&!c&&!S&&W.current.focus()},[i,a,c,S]);const q=z=>{E(z),S&&z.preventDefault()},j=z=>{a||p(s),S&&z.currentTarget.focus(),d&&d(z)};return S&&!C?N.jsx(Cat,{className:dt(M.root,M.hiddenDaySpacingFiller,o),ownerState:F,role:w.role}):N.jsx(kat,B({className:dt(M.root,o),ref:H,centerRipple:!0,disabled:a,tabIndex:x?0:-1,onKeyDown:z=>v(z,s),onFocus:z=>m(z,s),onBlur:z=>g(z,s),onMouseEnter:z=>O(z,s),onClick:j,onMouseDown:q},w,{ownerState:F,children:I||L.format(s,"dayOfMonth")}))}),Aat=P.memo(_at),Rat=e=>Qt("MuiPickersSlideTransition",e),du=Yt("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Iat=["children","className","reduceAnimations","slideDirection","transKey","classes"],Dat=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Vt(r,Rat,t)},Nat=Ae(w$,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${du["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${du["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${du.slideEnterActive}`]:t.slideEnterActive},{[`.${du.slideExit}`]:t.slideExit},{[`.${du["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${du["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},[`& .${du["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${du["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${du.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${du.slideExit}`]:{transform:"translate(0%)"},[`& .${du["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${du["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Pat(e){const t=Nt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,s=st(t,Iat),a=Dat(t),l=Di();if(i)return N.jsx("div",{className:dt(a.root,r),children:n});const u={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return N.jsx(Nat,{className:dt(a.root,r),childFactory:c=>P.cloneElement(c,{classNames:u}),role:"presentation",children:N.jsx(Yxe,B({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),o)})}const Tfe=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:s,timezone:a})=>{const l=Uc();return P.useCallback(u=>Wg({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:s,timezone:a}})!==null,[l,e,t,n,r,i,o,s,a])},Lat=e=>Qt("MuiDayCalendar",e);Yt("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Mat=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],$at=["ownerState"],Fat=e=>{const{classes:t}=e;return Vt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Lat,t)},wfe=(fS+QR*2)*6,Bat=Ae("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Uat=Ae("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),jat=Ae($r,{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})),zat=Ae($r,{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})),Vat=Ae($r,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>B({},e.typography.caption,{width:fS,height:fS,padding:0,margin:`0 ${QR}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Hat=Ae("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:wfe}),Wat=Ae(Pat,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:wfe}),Qat=Ae("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Yat=Ae("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${QR}px 0`,display:"flex",justifyContent:"center"});function Gat(e){var t,n,r;let{parentProps:i,day:o,focusableDay:s,selectedDays:a,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=st(e,Mat);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:v,components:E,componentsProps:O,slots:S,slotProps:x,timezone:C}=i,I=ur(),_=im(C),w=s!==null&&I.isSameDay(o,s),F=a.some(Z=>I.isSameDay(Z,o)),M=I.isSameDay(o,_),L=(t=(n=S==null?void 0:S.day)!=null?n:E==null?void 0:E.Day)!=null?t:Aat,W=nr({elementType:L,externalSlotProps:(r=x==null?void 0:x.day)!=null?r:O==null?void 0:O.day,additionalProps:B({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:g,"data-timestamp":I.toJsDate(o).valueOf()},d),ownerState:B({},i,{day:o,selected:F})}),H=st(W,$at),q=P.useMemo(()=>p||l(o),[p,l,o]),j=P.useMemo(()=>I.getMonth(o)!==u,[I,o,u]),z=P.useMemo(()=>{const Z=I.startOfMonth(I.setMonth(o,u));return v?I.isSameDay(o,I.startOfWeek(Z)):I.isSameDay(o,Z)},[u,o,v,I]),X=P.useMemo(()=>{const Z=I.endOfMonth(I.setMonth(o,u));return v?I.isSameDay(o,I.endOfWeek(Z)):I.isSameDay(o,Z)},[u,o,v,I]);return N.jsx(L,B({},H,{day:o,disabled:q,autoFocus:c&&w,today:M,outsideCurrentMonth:j,isFirstVisibleCell:z,isLastVisibleCell:X,selected:F,tabIndex:w?0:-1,"aria-selected":F,"aria-current":M?"date":void 0}))}function qat(e){const t=Nt({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:o,focusedDay:s,loading:a,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:d,renderLoading:p=()=>N.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:g,disablePast:v,disableFuture:E,minDate:O,maxDate:S,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:I,dayOfWeekFormatter:_,hasFocus:w,onFocusedViewChange:F,gridLabelId:M,displayWeekNumber:L,fixedWeekNumber:W,autoFocus:H,timezone:q}=t,j=im(q),z=ur(),X=Fat(t),G=Di().direction==="rtl",ee=_||((Ke,de)=>z.format(de,"weekdayShort").charAt(0).toUpperCase()),Q=Tfe({shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:I,minDate:O,maxDate:S,disablePast:v,disableFuture:E,timezone:q}),ae=ts(),[Te,te]=ms({name:"DayCalendar",state:"hasFocus",controlled:w,default:H??!1}),[pe,Oe]=P.useState(()=>s||j),me=on(Ke=>{c||l(Ke)}),Re=Ke=>{Q(Ke)||(n(Ke),Oe(Ke),F==null||F(!0),te(!0))},Fe=on((Ke,de)=>{switch(Ke.key){case"ArrowUp":Re(z.addDays(de,-7)),Ke.preventDefault();break;case"ArrowDown":Re(z.addDays(de,7)),Ke.preventDefault();break;case"ArrowLeft":{const oe=z.addDays(de,G?1:-1),ie=z.addMonths(de,G?1:-1),Me=qO({utils:z,date:oe,minDate:G?oe:z.startOfMonth(ie),maxDate:G?z.endOfMonth(ie):oe,isDateDisabled:Q,timezone:q});Re(Me||oe),Ke.preventDefault();break}case"ArrowRight":{const oe=z.addDays(de,G?-1:1),ie=z.addMonths(de,G?-1:1),Me=qO({utils:z,date:oe,minDate:G?z.startOfMonth(ie):oe,maxDate:G?oe:z.endOfMonth(ie),isDateDisabled:Q,timezone:q});Re(Me||oe),Ke.preventDefault();break}case"Home":Re(z.startOfWeek(de)),Ke.preventDefault();break;case"End":Re(z.endOfWeek(de)),Ke.preventDefault();break;case"PageUp":Re(z.addMonths(de,1)),Ke.preventDefault();break;case"PageDown":Re(z.addMonths(de,-1)),Ke.preventDefault();break}}),et=on((Ke,de)=>Re(de)),ct=on((Ke,de)=>{Te&&z.isSameDay(pe,de)&&(F==null||F(!1))}),Ye=z.getMonth(i),nt=P.useMemo(()=>o.filter(Ke=>!!Ke).map(Ke=>z.startOfDay(Ke)),[z,o]),ke=Ye,qe=P.useMemo(()=>P.createRef(),[ke]),Ge=z.startOfWeek(j),rt=P.useMemo(()=>{const Ke=z.startOfMonth(i),de=z.endOfMonth(i);return Q(pe)||z.isAfterDay(pe,de)||z.isBeforeDay(pe,Ke)?qO({utils:z,date:pe,minDate:Ke,maxDate:de,disablePast:v,disableFuture:E,isDateDisabled:Q,timezone:q}):pe},[i,E,v,pe,Q,z,q]),Ot=P.useMemo(()=>{const Ke=z.setTimezone(i,q),de=z.getWeekArray(Ke);let oe=z.addMonths(Ke,1);for(;W&&de.length{de.length{var oe;const ie=z.format(Ke,"weekdayShort");return N.jsx(jat,{variant:"caption",role:"columnheader","aria-label":z.format(z.addDays(Ge,de),"weekday"),className:X.weekDayLabel,children:(oe=ee==null?void 0:ee(ie,Ke))!=null?oe:ie},ie+de.toString())})]}),a?N.jsx(Hat,{className:X.loadingContainer,children:p()}):N.jsx(Wat,B({transKey:ke,onExited:u,reduceAnimations:d,slideDirection:m,className:dt(r,X.slideTransition)},g,{nodeRef:qe,children:N.jsx(Qat,{ref:qe,role:"rowgroup",className:X.monthContainer,children:Ot.map((Ke,de)=>N.jsxs(Yat,{role:"row",className:X.weekContainer,"aria-rowindex":de+1,children:[L&&N.jsx(Vat,{className:X.weekNumber,role:"rowheader","aria-label":ae.calendarWeekNumberAriaLabelText(z.getWeekNumber(Ke[0])),children:ae.calendarWeekNumberText(z.getWeekNumber(Ke[0]))}),Ke.map((oe,ie)=>N.jsx(Gat,{parentProps:t,day:oe,selectedDays:nt,focusableDay:rt,onKeyDown:Fe,onFocus:et,onBlur:ct,onDaySelect:me,isDateDisabled:Q,currentMonthNumber:Ye,isViewFocused:Te,"aria-colindex":ie+1},oe.toString()))]},`week-${Ke[0]}`))})}))]})}const Zat=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return B({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return B({},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 B({},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")}},Xat=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:a,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:d,timezone:p}=e,m=im(p),g=ur(),v=P.useRef(Zat(!!c,s,g)).current,E=P.useMemo(()=>{let F=null;return n?F=n:r&&(F=g.startOfMonth(r)),es.getInitialReferenceValue({value:t,utils:g,timezone:p,props:e,referenceDate:F,granularity:hc.day})},[]),[O,S]=P.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:g.isValid(t)?t:m,currentMonth:g.startOfMonth(E),slideDirection:"left"}),x=P.useCallback(F=>{S(B({type:"changeMonth"},F)),u&&u(F.newMonth)},[u]),C=P.useCallback(F=>{const M=F;g.isSameMonth(M,O.currentMonth)||x({newMonth:g.startOfMonth(M),direction:g.isAfterDay(M,O.currentMonth)?"left":"right"})},[O.currentMonth,x,g]),I=Tfe({shouldDisableDate:d,minDate:l,maxDate:a,disableFuture:i,disablePast:o,timezone:p}),_=P.useCallback(()=>{S({type:"finishMonthSwitchingAnimation"})},[]),w=on((F,M)=>{I(F)||S({type:"changeFocusedDay",focusedDay:F,withoutMonthSwitchingAnimation:M})});return{referenceDate:E,calendarState:O,changeMonth:C,changeFocusedDay:w,isDateDisabled:I,onMonthSwitchingAnimationEnd:_,handleChangeMonth:x}},Kat=["props","getOpenDialogAriaText"],Jat=["ownerState"],elt=["ownerState"],$9=e=>{var t,n,r,i,o;let{props:s,getOpenDialogAriaText:a}=e,l=st(e,Kat);const{slots:u,slotProps:c,className:d,sx:p,format:m,formatDensity:g,timezone:v,name:E,label:O,inputRef:S,readOnly:x,disabled:C,autoFocus:I,localeText:_,reduceAnimations:w}=s,F=ur(),M=P.useRef(null),L=P.useRef(null),W=Ic(),H=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:q,actions:j,hasUIView:z,layoutProps:X,renderCurrentView:Z,shouldRestoreFocus:G,fieldProps:ee}=gfe(B({},l,{props:s,inputRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),Q=(r=u.inputAdornment)!=null?r:_E,ae=nr({elementType:Q,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:s}),Te=st(ae,Jat),te=(i=u.openPickerButton)!=null?i:Xo,pe=nr({elementType:te,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:C||x,onClick:q?j.onClose:j.onOpen,"aria-label":a(ee.value,F),edge:Te.position},ownerState:s}),Oe=st(pe,elt),me=u.openPickerIcon,Re=u.field,Fe=nr({elementType:Re,externalSlotProps:c==null?void 0:c.field,additionalProps:B({},ee,H&&{id:W},{readOnly:x,disabled:C,className:d,sx:p,format:m,formatDensity:g,timezone:v,label:O,name:E,autoFocus:I&&!s.open,focused:q?!0:void 0}),ownerState:s});z&&(Fe.InputProps=B({},Fe.InputProps,{ref:L,[`${Te.position}Adornment`]:N.jsx(Q,B({},Te,{children:N.jsx(te,B({},Oe,{children:N.jsx(me,B({},c==null?void 0:c.openPickerIcon))}))}))}));const et=B({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},Fe.slots),ct=(o=u.layout)!=null?o:vfe,Ye=Vn(M,Fe.inputRef,S);let nt=W;H&&(O?nt=`${W}-label`:nt=void 0);const ke=B({},c,{toolbar:B({},c==null?void 0:c.toolbar,{titleId:W}),popper:B({"aria-labelledby":nt},c==null?void 0:c.popper)});return{renderPicker:()=>N.jsxs(afe,{localeText:_,children:[N.jsx(Re,B({},Fe,{slots:et,slotProps:ke,inputRef:Ye})),N.jsx(jst,B({role:"dialog",placement:"bottom-start",anchorEl:L.current},j,{open:q,slots:u,slotProps:ke,shouldRestoreFocus:G,reduceAnimations:w,children:N.jsx(ct,B({},X,ke==null?void 0:ke.layout,{slots:u,slotProps:ke,children:Z()}))}))]})}},tlt=e=>{var t,n,r;const i=ur(),o=Hg();return B({},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:fa(i,e.minDate,o.minDate),maxDate:fa(i,e.maxDate,o.maxDate)})},nlt=({props:e,inputRef:t})=>{const n=tlt(e),{forwardedProps:r,internalProps:i}=M9(n,"date");return L9({inputRef:t,forwardedProps:r,internalProps:i,valueManager:es,fieldValueManager:R9,validator:Wg,valueType:"date"})},rlt=["ownerState"],F9=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:o,components:s,componentsProps:a})=>{var l,u,c,d,p,m;const g=ts(),v=(l=(u=i==null?void 0:i.clearButton)!=null?u:s==null?void 0:s.ClearButton)!=null?l:Xo,E=nr({elementType:v,externalSlotProps:(c=o==null?void 0:o.clearButton)!=null?c:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:g.fieldClearLabel}}),O=st(E,rlt),S=(d=(p=i==null?void 0:i.clearIcon)!=null?p:s==null?void 0:s.ClearIcon)!=null?d:yst,x=nr({elementType:S,externalSlotProps:(m=o==null?void 0:o.clearIcon)!=null?m:a==null?void 0:a.clearIcon,ownerState:{}}),C=B({},n,{endAdornment:N.jsxs(P.Fragment,{children:[e&&N.jsx(_E,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:N.jsx(v,B({},O,{onClick:r,children:N.jsx(S,B({fontSize:"small"},x))}))}),n==null?void 0:n.endAdornment]})}),I=B({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:I}},ilt=["components","componentsProps","slots","slotProps","InputProps","inputProps"],olt=["inputRef"],slt=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],xfe=P.forwardRef(function(t,n){var r,i,o;const s=Nt({props:t,name:"MuiDateField"}),{components:a,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=s,m=st(s,ilt),g=s,v=(r=(i=u==null?void 0:u.textField)!=null?i:a==null?void 0:a.TextField)!=null?r:Kh,E=nr({elementType:v,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:g}),{inputRef:O}=E,S=st(E,olt);S.inputProps=B({},p,S.inputProps),S.InputProps=B({},d,S.InputProps);const x=nlt({props:S,inputRef:O}),{ref:C,onPaste:I,onKeyDown:_,inputMode:w,readOnly:F,clearable:M,onClear:L}=x,W=st(x,slt),{InputProps:H,fieldProps:q}=F9({onClear:L,clearable:M,fieldProps:W,InputProps:W.InputProps,slots:u,slotProps:c,components:a,componentsProps:l});return N.jsx(v,B({ref:n},q,{InputProps:B({},H,{readOnly:F}),inputProps:B({},W.inputProps,{inputMode:w,onPaste:I,onKeyDown:_,ref:C})}))}),alt=e=>Qt("MuiPickersFadeTransitionGroup",e);Yt("MuiPickersFadeTransitionGroup",["root"]);const llt=e=>{const{classes:t}=e;return Vt({root:["root"]},alt,t)},ult=Ae(w$,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function kfe(e){const t=Nt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,s=llt(t),a=Di();return i?n:N.jsx(ult,{className:dt(s.root,r),children:N.jsx(Gf,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},o)})}function clt(e){return Qt("MuiPickersMonth",e)}const ik=Yt("MuiPickersMonth",["root","monthButton","disabled","selected"]),dlt=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],flt=e=>{const{disabled:t,selected:n,classes:r}=e;return Vt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},clt,r)},plt=Ae("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"})),hlt=Ae("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${ik.disabled}`]:t.disabled},{[`&.${ik.selected}`]:t.selected}]})(({theme:e})=>B({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ik.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ik.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),mlt=P.memo(function(t){const n=Nt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:o,selected:s,value:a,tabIndex:l,onClick:u,onKeyDown:c,onFocus:d,onBlur:p,"aria-current":m,"aria-label":g}=n,v=st(n,dlt),E=P.useRef(null),O=flt(n);return Ji(()=>{if(r){var S;(S=E.current)==null||S.focus()}},[r]),N.jsx(plt,B({className:O.root,ownerState:n},v,{children:N.jsx(hlt,{ref:E,disabled:o,type:"button",role:"radio",tabIndex:o?-1:l,"aria-current":m,"aria-checked":s,"aria-label":g,onClick:S=>u(S,a),onKeyDown:S=>c(S,a),onFocus:S=>d(S,a),onBlur:S=>p(S,a),className:O.monthButton,ownerState:n,children:i})}))});function glt(e){return Qt("MuiMonthCalendar",e)}Yt("MuiMonthCalendar",["root"]);const blt=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],ylt=e=>{const{classes:t}=e;return Vt({root:["root"]},glt,t)};function vlt(e,t){const n=ur(),r=Hg(),i=Nt({props:e,name:t});return B({disableFuture:!1,disablePast:!1},i,{minDate:fa(n,i.minDate,r.minDate),maxDate:fa(n,i.maxDate,r.maxDate)})}const Olt=Ae("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:YR,boxSizing:"border-box"}),Elt=P.forwardRef(function(t,n){const r=vlt(t,"MuiMonthCalendar"),{className:i,value:o,defaultValue:s,referenceDate:a,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:p,onChange:m,shouldDisableMonth:g,readOnly:v,disableHighlightToday:E,autoFocus:O=!1,onMonthFocus:S,hasFocus:x,onFocusedViewChange:C,monthsPerRow:I=3,timezone:_,gridLabelId:w}=r,F=st(r,blt),{value:M,handleValueChange:L,timezone:W}=T1({name:"MonthCalendar",timezone:_,value:o,defaultValue:s,onChange:m,valueManager:es}),H=im(W),q=qy(),j=ur(),z=P.useMemo(()=>es.getInitialReferenceValue({value:M,utils:j,props:r,timezone:W,referenceDate:a,granularity:hc.month}),[]),X=r,Z=ylt(X),G=P.useMemo(()=>j.getMonth(H),[j,H]),ee=P.useMemo(()=>M!=null?j.getMonth(M):E?null:j.getMonth(z),[M,j,E,z]),[Q,ae]=P.useState(()=>ee||G),[Te,te]=ms({name:"MonthCalendar",state:"hasFocus",controlled:x,default:O??!1}),pe=on(Ye=>{te(Ye),C&&C(Ye)}),Oe=P.useCallback(Ye=>{const nt=j.startOfMonth(c&&j.isAfter(H,p)?H:p),ke=j.startOfMonth(u&&j.isBefore(H,d)?H:d),qe=j.startOfMonth(Ye);return j.isBefore(qe,nt)||j.isAfter(qe,ke)?!0:g?g(qe):!1},[u,c,d,p,H,g,j]),me=on((Ye,nt)=>{if(v)return;const ke=j.setMonth(M??z,nt);L(ke)}),Re=on(Ye=>{Oe(j.setMonth(M??z,Ye))||(ae(Ye),pe(!0),S&&S(Ye))});P.useEffect(()=>{ae(Ye=>ee!==null&&Ye!==ee?ee:Ye)},[ee]);const Fe=on((Ye,nt)=>{switch(Ye.key){case"ArrowUp":Re((12+nt-3)%12),Ye.preventDefault();break;case"ArrowDown":Re((12+nt+3)%12),Ye.preventDefault();break;case"ArrowLeft":Re((12+nt+(q.direction==="ltr"?-1:1))%12),Ye.preventDefault();break;case"ArrowRight":Re((12+nt+(q.direction==="ltr"?1:-1))%12),Ye.preventDefault();break}}),et=on((Ye,nt)=>{Re(nt)}),ct=on((Ye,nt)=>{Q===nt&&pe(!1)});return N.jsx(Olt,B({ref:n,className:dt(Z.root,i),ownerState:X,role:"radiogroup","aria-labelledby":w},F,{children:C9(j,M??z).map(Ye=>{const nt=j.getMonth(Ye),ke=j.format(Ye,"monthShort"),qe=j.format(Ye,"month"),Ge=nt===ee,rt=l||Oe(Ye);return N.jsx(mlt,{selected:Ge,value:nt,onClick:me,onKeyDown:Fe,autoFocus:Te&&nt===Q,disabled:rt,tabIndex:nt===Q?0:-1,onFocus:et,onBlur:ct,"aria-current":G===nt?"date":void 0,"aria-label":qe,monthsPerRow:I,children:ke},ke)})}))});function Slt(e){return Qt("MuiPickersYear",e)}const ok=Yt("MuiPickersYear",["root","yearButton","selected","disabled"]),Tlt=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],wlt=e=>{const{disabled:t,selected:n,classes:r}=e;return Vt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Slt,r)},xlt=Ae("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"})),klt=Ae("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ok.disabled}`]:t.disabled},{[`&.${ok.selected}`]:t.selected}]})(({theme:e})=>B({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ok.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ok.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Clt=P.memo(function(t){const n=Nt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:o,disabled:s,selected:a,value:l,tabIndex:u,onClick:c,onKeyDown:d,onFocus:p,onBlur:m,"aria-current":g}=n,v=st(n,Tlt),E=P.useRef(null),O=wlt(n);return P.useEffect(()=>{r&&E.current.focus()},[r]),N.jsx(xlt,B({className:dt(O.root,i),ownerState:n},v,{children:N.jsx(klt,{ref:E,disabled:s,type:"button",role:"radio",tabIndex:s?-1:u,"aria-current":g,"aria-checked":a,onClick:S=>c(S,l),onKeyDown:S=>d(S,l),onFocus:S=>p(S,l),onBlur:S=>m(S,l),className:O.yearButton,ownerState:n,children:o})}))});function _lt(e){return Qt("MuiYearCalendar",e)}Yt("MuiYearCalendar",["root"]);const Alt=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],Rlt=e=>{const{classes:t}=e;return Vt({root:["root"]},_lt,t)};function Ilt(e,t){var n;const r=ur(),i=Hg(),o=Nt({props:e,name:t});return B({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:fa(r,o.minDate,i.minDate),maxDate:fa(r,o.maxDate,i.maxDate)})}const Dlt=Ae("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:YR,maxHeight:kst,boxSizing:"border-box",position:"relative"}),Nlt=P.forwardRef(function(t,n){const r=Ilt(t,"MuiYearCalendar"),{autoFocus:i,className:o,value:s,defaultValue:a,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:p,minDate:m,onChange:g,readOnly:v,shouldDisableYear:E,disableHighlightToday:O,onYearFocus:S,hasFocus:x,onFocusedViewChange:C,yearsPerRow:I,timezone:_,gridLabelId:w}=r,F=st(r,Alt),{value:M,handleValueChange:L,timezone:W}=T1({name:"YearCalendar",timezone:_,value:s,defaultValue:a,onChange:g,valueManager:es}),H=im(W),q=qy(),j=ur(),z=P.useMemo(()=>es.getInitialReferenceValue({value:M,utils:j,props:r,timezone:W,referenceDate:l,granularity:hc.year}),[]),X=r,Z=Rlt(X),G=P.useMemo(()=>j.getYear(H),[j,H]),ee=P.useMemo(()=>M!=null?j.getYear(M):O?null:j.getYear(z),[M,j,O,z]),[Q,ae]=P.useState(()=>ee||G),[Te,te]=ms({name:"YearCalendar",state:"hasFocus",controlled:x,default:i??!1}),pe=on(ke=>{te(ke),C&&C(ke)}),Oe=P.useCallback(ke=>{if(d&&j.isBeforeYear(ke,H)||c&&j.isAfterYear(ke,H)||m&&j.isBeforeYear(ke,m)||p&&j.isAfterYear(ke,p))return!0;if(!E)return!1;const qe=j.startOfYear(ke);return E(qe)},[c,d,p,m,H,E,j]),me=on((ke,qe)=>{if(v)return;const Ge=j.setYear(M??z,qe);L(Ge)}),Re=on(ke=>{Oe(j.setYear(M??z,ke))||(ae(ke),pe(!0),S==null||S(ke))});P.useEffect(()=>{ae(ke=>ee!==null&&ke!==ee?ee:ke)},[ee]);const Fe=on((ke,qe)=>{switch(ke.key){case"ArrowUp":Re(qe-I),ke.preventDefault();break;case"ArrowDown":Re(qe+I),ke.preventDefault();break;case"ArrowLeft":Re(qe+(q.direction==="ltr"?-1:1)),ke.preventDefault();break;case"ArrowRight":Re(qe+(q.direction==="ltr"?1:-1)),ke.preventDefault();break}}),et=on((ke,qe)=>{Re(qe)}),ct=on((ke,qe)=>{Q===qe&&pe(!1)}),Ye=P.useRef(null),nt=Vn(n,Ye);return P.useEffect(()=>{if(i||Ye.current===null)return;const ke=Ye.current.querySelector('[tabindex="0"]');if(!ke)return;const qe=ke.offsetHeight,Ge=ke.offsetTop,rt=Ye.current.clientHeight,Ot=Ye.current.scrollTop,Ke=Ge+qe;qe>rt||Ge{const qe=j.getYear(ke),Ge=qe===ee,rt=u||Oe(ke);return N.jsx(Clt,{selected:Ge,value:qe,onClick:me,onKeyDown:Fe,autoFocus:Te&&qe===Q,disabled:rt,tabIndex:qe===Q?0:-1,onFocus:et,onBlur:ct,"aria-current":G===qe?"date":void 0,yearsPerRow:I,children:j.format(ke,"year")},j.format(ke,"year"))})}))}),Plt=e=>Qt("MuiPickersCalendarHeader",e),Llt=Yt("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Mlt=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],$lt=["ownerState"],Flt=e=>{const{classes:t}=e;return Vt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Plt,t)},Blt=Ae("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}),Ult=Ae("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>B({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),jlt=Ae("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),zlt=Ae(Xo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>B({marginRight:"auto"},e.view==="year"&&{[`.${Llt.switchViewIcon}`]:{transform:"rotate(180deg)"}})),Vlt=Ae(fst,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Hlt=P.forwardRef(function(t,n){var r,i,o,s;const a=ts(),l=ur(),u=Nt({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:d,components:p,currentMonth:m,disabled:g,disableFuture:v,disablePast:E,maxDate:O,minDate:S,onMonthChange:x,onViewChange:C,view:I,reduceAnimations:_,views:w,labelId:F,className:M,timezone:L}=u,W=st(u,Mlt),H=u,q=Flt(u),j=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:zlt,z=nr({elementType:j,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(I)},ownerState:H,className:q.switchViewButton}),X=(o=(s=c==null?void 0:c.switchViewIcon)!=null?s:p==null?void 0:p.SwitchViewIcon)!=null?o:Vlt,Z=nr({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:q.switchViewIcon}),G=st(Z,$lt),ee=()=>x(l.addMonths(m,1),"left"),Q=()=>x(l.addMonths(m,-1),"right"),ae=vat(m,{disableFuture:v,maxDate:O,timezone:L}),Te=Oat(m,{disablePast:E,minDate:S,timezone:L}),te=()=>{if(!(w.length===1||!C||g))if(w.length===2)C(w.find(pe=>pe!==I)||w[0]);else{const pe=w.indexOf(I)!==0?0:1;C(w[pe])}};return w.length===1&&w[0]==="year"?null:N.jsxs(Blt,B({},W,{ownerState:H,className:dt(M,q.root),ref:n,children:[N.jsxs(Ult,{role:"presentation",onClick:te,ownerState:H,"aria-live":"polite",className:q.labelContainer,children:[N.jsx(kfe,{reduceAnimations:_,transKey:l.format(m,"monthAndYear"),children:N.jsx(jlt,{id:F,ownerState:H,className:q.label,children:l.format(m,"monthAndYear")})}),w.length>1&&!g&&N.jsx(j,B({},z,{children:N.jsx(X,B({},G))}))]}),N.jsx(Gf,{in:I==="day",children:N.jsx(ffe,{slots:c,slotProps:d,onGoToPrevious:Q,isPreviousDisabled:Te,previousLabel:a.previousMonth,onGoToNext:ee,isNextDisabled:ae,nextLabel:a.nextMonth})})]}))}),XR=Ae("div")({overflow:"hidden",width:YR,maxHeight:GR,display:"flex",flexDirection:"column",margin:"0 auto"}),Wlt=e=>Qt("MuiDateCalendar",e);Yt("MuiDateCalendar",["root","viewTransitionContainer"]);const Qlt=["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"],Ylt=e=>{const{classes:t}=e;return Vt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Wlt,t)};function Glt(e,t){var n,r,i,o,s,a,l;const u=ur(),c=Hg(),d=hfe(),p=Nt({props:e,name:t});return B({},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:(s=p.views)!=null?s:["year","day"],reduceAnimations:(a=p.reduceAnimations)!=null?a:d,renderLoading:(l=p.renderLoading)!=null?l:()=>N.jsx("span",{children:"..."}),minDate:fa(u,p.minDate,c.minDate),maxDate:fa(u,p.maxDate,c.maxDate)})}const qlt=Ae(XR,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:GR}),Zlt=Ae(kfe,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Cfe=P.forwardRef(function(t,n){var r,i,o;const s=ur(),a=Ic(),l=Glt(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:p,referenceDate:m,disableFuture:g,disablePast:v,defaultCalendarMonth:E,onChange:O,onYearChange:S,onMonthChange:x,reduceAnimations:C,shouldDisableDate:I,shouldDisableMonth:_,shouldDisableYear:w,view:F,views:M,openTo:L,className:W,disabled:H,readOnly:q,minDate:j,maxDate:z,disableHighlightToday:X,focusedView:Z,onFocusedViewChange:G,showDaysOutsideCurrentMonth:ee,fixedWeekNumber:Q,dayOfWeekFormatter:ae,components:Te,componentsProps:te,slots:pe,slotProps:Oe,loading:me,renderLoading:Re,displayWeekNumber:Fe,yearsPerRow:et,monthsPerRow:ct,timezone:Ye}=l,nt=st(l,Qlt),{value:ke,handleValueChange:qe,timezone:Ge}=T1({name:"DateCalendar",timezone:Ye,value:d,defaultValue:p,onChange:O,valueManager:es}),{view:rt,setView:Ot,focusedView:Ke,setFocusedView:de,goToNextView:oe,setValueAndGoToNextView:ie}=UT({view:F,views:M,openTo:L,onChange:qe,onViewChange:c,autoFocus:u,focusedView:Z,onFocusedViewChange:G}),{referenceDate:Me,calendarState:He,changeFocusedDay:Be,changeMonth:ce,handleChangeMonth:ye,isDateDisabled:be,onMonthSwitchingAnimationEnd:we}=Xat({value:ke,defaultCalendarMonth:E,referenceDate:m,reduceAnimations:C,onMonthChange:x,minDate:j,maxDate:z,shouldDisableDate:I,disablePast:v,disableFuture:g,timezone:Ge}),Ie=H&&ke||j,ft=H&&ke||z,_t=`${a}-grid-label`,At=Ke!==null,pt=(r=(i=pe==null?void 0:pe.calendarHeader)!=null?i:Te==null?void 0:Te.CalendarHeader)!=null?r:Hlt,Mt=nr({elementType:pt,externalSlotProps:(o=Oe==null?void 0:Oe.calendarHeader)!=null?o:te==null?void 0:te.calendarHeader,additionalProps:{views:M,view:rt,currentMonth:He.currentMonth,onViewChange:Ot,onMonthChange:($e,tt)=>ye({newMonth:$e,direction:tt}),minDate:Ie,maxDate:ft,disabled:H,disablePast:v,disableFuture:g,reduceAnimations:C,timezone:Ge,labelId:_t,slots:pe,slotProps:Oe},ownerState:l}),it=on($e=>{const tt=s.startOfMonth($e),De=s.endOfMonth($e),wt=be($e)?qO({utils:s,date:$e,minDate:s.isBefore(j,tt)?tt:j,maxDate:s.isAfter(z,De)?De:z,disablePast:v,disableFuture:g,isDateDisabled:be,timezone:Ge}):$e;wt?(ie(wt,"finish"),x==null||x(tt)):(oe(),ce(tt)),Be(wt,!0)}),bt=on($e=>{const tt=s.startOfYear($e),De=s.endOfYear($e),wt=be($e)?qO({utils:s,date:$e,minDate:s.isBefore(j,tt)?tt:j,maxDate:s.isAfter(z,De)?De:z,disablePast:v,disableFuture:g,isDateDisabled:be,timezone:Ge}):$e;wt?(ie(wt,"finish"),S==null||S(wt)):(oe(),ce(tt)),Be(wt,!0)}),$t=on($e=>qe($e&&T4(s,$e,ke??Me),"finish",rt));P.useEffect(()=>{ke!=null&&s.isValid(ke)&&ce(ke)},[ke]);const Xt=l,vn=Ylt(Xt),Cn={disablePast:v,disableFuture:g,maxDate:z,minDate:j},$n={disableHighlightToday:X,readOnly:q,disabled:H,timezone:Ge,gridLabelId:_t},qn=P.useRef(rt);P.useEffect(()=>{qn.current!==rt&&(Ke===qn.current&&de(rt,!0),qn.current=rt)},[Ke,de,rt]);const Ce=P.useMemo(()=>[ke],[ke]);return N.jsxs(qlt,B({ref:n,className:dt(vn.root,W),ownerState:Xt},nt,{children:[N.jsx(pt,B({},Mt)),N.jsx(Zlt,{reduceAnimations:C,className:vn.viewTransitionContainer,transKey:rt,ownerState:Xt,children:N.jsxs("div",{children:[rt==="year"&&N.jsx(Nlt,B({},Cn,$n,{value:ke,onChange:bt,shouldDisableYear:w,hasFocus:At,onFocusedViewChange:$e=>de("year",$e),yearsPerRow:et,referenceDate:Me})),rt==="month"&&N.jsx(Elt,B({},Cn,$n,{hasFocus:At,className:W,value:ke,onChange:it,shouldDisableMonth:_,onFocusedViewChange:$e=>de("month",$e),monthsPerRow:ct,referenceDate:Me})),rt==="day"&&N.jsx(qat,B({},He,Cn,$n,{onMonthSwitchingAnimationEnd:we,onFocusedDayChange:Be,reduceAnimations:C,selectedDays:Ce,onSelectedDaysChange:$t,shouldDisableDate:I,shouldDisableMonth:_,shouldDisableYear:w,hasFocus:At,onFocusedViewChange:$e=>de("day",$e),showDaysOutsideCurrentMonth:ee,fixedWeekNumber:Q,dayOfWeekFormatter:ae,displayWeekNumber:Fe,components:Te,componentsProps:te,slots:pe,slotProps:Oe,loading:me,renderLoading:Re}))]})})]}))}),Mu=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:m,maxDate:g,shouldDisableDate:v,shouldDisableMonth:E,shouldDisableYear:O,reduceAnimations:S,onMonthChange:x,monthsPerRow:C,onYearChange:I,yearsPerRow:_,defaultCalendarMonth:w,components:F,componentsProps:M,slots:L,slotProps:W,loading:H,renderLoading:q,disableHighlightToday:j,readOnly:z,disabled:X,showDaysOutsideCurrentMonth:Z,dayOfWeekFormatter:G,sx:ee,autoFocus:Q,fixedWeekNumber:ae,displayWeekNumber:Te,timezone:te})=>N.jsx(Cfe,{view:e,onViewChange:t,views:n.filter($b),focusedView:r&&$b(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:m,maxDate:g,shouldDisableDate:v,shouldDisableMonth:E,shouldDisableYear:O,reduceAnimations:S,onMonthChange:x,monthsPerRow:C,onYearChange:I,yearsPerRow:_,defaultCalendarMonth:w,components:F,componentsProps:M,slots:L,slotProps:W,loading:H,renderLoading:q,disableHighlightToday:j,readOnly:z,disabled:X,showDaysOutsideCurrentMonth:Z,dayOfWeekFormatter:G,sx:ee,autoFocus:Q,fixedWeekNumber:ae,displayWeekNumber:Te,timezone:te}),_fe=P.forwardRef(function(t,n){var r,i,o,s;const a=ts(),l=ur(),u=cfe(t,"MuiDesktopDatePicker"),c=B({day:Mu,month:Mu,year:Mu},u.viewRenderers),d=B({},u,{viewRenderers:c,format:cS(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:B({openPickerIcon:dfe,field:xfe},u.slots),slotProps:B({},u.slotProps,{field:m=>{var g;return B({},Gh((g=u.slotProps)==null?void 0:g.field,m),w1(u),{ref:n})},toolbar:B({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=$9({props:d,valueManager:es,valueType:"date",getOpenDialogAriaText:(o=(s=d.localeText)==null?void 0:s.openDatePickerDialogue)!=null?o:a.openDatePickerDialogue,validator:Wg});return p()});_fe.propTypes={autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,components:J.object,componentsProps:J.object,dayOfWeekFormatter:J.func,defaultCalendarMonth:J.any,defaultValue:J.any,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Yy,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.any,minDate:J.any,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","month","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.any,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number,J.shape({endIndex:J.number.isRequired,startIndex:J.number.isRequired})]),shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.any,view:J.oneOf(["day","month","year"]),viewRenderers:J.shape({day:J.func,month:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","month","year"]).isRequired),yearsPerRow:J.oneOf([3,4])};const Xlt=["props","getOpenDialogAriaText"],B9=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,s=st(e,Xlt);const{slots:a,slotProps:l,className:u,sx:c,format:d,formatDensity:p,timezone:m,name:g,label:v,inputRef:E,readOnly:O,disabled:S,localeText:x}=i,C=ur(),I=P.useRef(null),_=Ic(),w=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:F,actions:M,layoutProps:L,renderCurrentView:W,fieldProps:H}=gfe(B({},s,{props:i,inputRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),q=a.field,j=nr({elementType:q,externalSlotProps:l==null?void 0:l.field,additionalProps:B({},H,w&&{id:_},!(S||O)&&{onClick:M.onOpen,onKeyDown:Ist(M.onOpen)},{readOnly:O??!0,disabled:S,className:u,sx:c,format:d,formatDensity:p,timezone:m,label:v,name:g}),ownerState:i});j.inputProps=B({},j.inputProps,{"aria-label":o(H.value,C)});const z=B({textField:a.textField},j.slots),X=(r=a.layout)!=null?r:vfe,Z=Vn(I,j.inputRef,E);let G=_;w&&(v?G=`${_}-label`:G=void 0);const ee=B({},l,{toolbar:B({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:B({"aria-labelledby":G},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>N.jsxs(afe,{localeText:x,children:[N.jsx(q,B({},j,{slots:z,slotProps:ee,inputRef:Z})),N.jsx(Ast,B({},M,{open:F,slots:a,slotProps:ee,children:N.jsx(X,B({},L,ee==null?void 0:ee.layout,{slots:a,slotProps:ee,children:W()}))}))]})}},U9=P.forwardRef(function(t,n){var r,i,o;const s=ts(),a=ur(),l=cfe(t,"MuiMobileDatePicker"),u=B({day:Mu,month:Mu,year:Mu},l.viewRenderers),c=B({},l,{viewRenderers:u,format:cS(a,l,!1),slots:B({field:xfe},l.slots),slotProps:B({},l.slotProps,{field:p=>{var m;return B({},Gh((m=l.slotProps)==null?void 0:m.field,p),w1(l),{ref:n})},toolbar:B({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=B9({props:c,valueManager:es,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:s.openDatePickerDialogue,validator:Wg});return d()});U9.propTypes={autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,components:J.object,componentsProps:J.object,dayOfWeekFormatter:J.func,defaultCalendarMonth:J.any,defaultValue:J.any,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Yy,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.any,minDate:J.any,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","month","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.any,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number,J.shape({endIndex:J.number.isRequired,startIndex:J.number.isRequired})]),shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.any,view:J.oneOf(["day","month","year"]),viewRenderers:J.shape({day:J.func,month:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","month","year"]).isRequired),yearsPerRow:J.oneOf([3,4])};const Klt=["desktopModeMediaQuery"],Jlt=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=D9}=r,o=st(r,Klt);return Ky(i,{defaultMatches:!0})?N.jsx(_fe,B({ref:n},o)):N.jsx(U9,B({ref:n},o))}),eut=e=>{var t,n,r,i,o,s,a,l;const u=ur(),c=Hg(),p=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return B({},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:fa(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:fa(u,(s=e.maxDateTime)!=null?s:e.maxDate,c.maxDate),minTime:(a=e.minDateTime)!=null?a:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},tut=({props:e,inputRef:t})=>{const n=eut(e),{forwardedProps:r,internalProps:i}=M9(n,"date-time");return L9({inputRef:t,forwardedProps:r,internalProps:i,valueManager:es,fieldValueManager:R9,validator:ZR,valueType:"date-time"})},nut=["components","componentsProps","slots","slotProps","InputProps","inputProps"],rut=["inputRef"],iut=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Afe=P.forwardRef(function(t,n){var r,i,o;const s=Nt({props:t,name:"MuiDateTimeField"}),{components:a,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=s,m=st(s,nut),g=s,v=(r=(i=u==null?void 0:u.textField)!=null?i:a==null?void 0:a.TextField)!=null?r:Kh,E=nr({elementType:v,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:g}),{inputRef:O}=E,S=st(E,rut);S.inputProps=B({},p,S.inputProps),S.InputProps=B({},d,S.InputProps);const x=tut({props:S,inputRef:O}),{ref:C,onPaste:I,onKeyDown:_,inputMode:w,readOnly:F,clearable:M,onClear:L}=x,W=st(x,iut),{InputProps:H,fieldProps:q}=F9({onClear:L,clearable:M,fieldProps:W,InputProps:W.InputProps,slots:u,slotProps:c,components:a,componentsProps:l});return N.jsx(v,B({ref:n},q,{InputProps:B({},H,{readOnly:F}),inputProps:B({},W.inputProps,{inputMode:w,onPaste:I,onKeyDown:_,ref:C})}))});function out(e){return Qt("MuiDateTimePickerTabs",e)}Yt("MuiDateTimePickerTabs",["root"]);const sut=e=>$b(e)?"date":"time",aut=e=>e==="date"?"day":"hours",lut=e=>{const{classes:t}=e;return Vt({root:["root"]},out,t)},uut=Ae(mLe,{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}`,[`& .${Mk.indicator}`]:{bottom:"auto",top:0}}})),cut=function(t){const n=Nt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=N.jsx(gst,{}),onViewChange:i,timeIcon:o=N.jsx(bst,{}),view:s,hidden:a=typeof window>"u"||window.innerHeight<667,className:l}=n,u=ts(),c=lut(n),d=(p,m)=>{i(aut(m))};return a?null:N.jsxs(uut,{ownerState:n,variant:"fullWidth",value:sut(s),onChange:d,className:dt(l,c.root),children:[N.jsx(OQ,{value:"date","aria-label":u.dateTableLabel,icon:N.jsx(P.Fragment,{children:r})}),N.jsx(OQ,{value:"time","aria-label":u.timeTableLabel,icon:N.jsx(P.Fragment,{children:o})})]})};function dut(e){return Qt("MuiDateTimePickerToolbar",e)}const HP=Yt("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),fut=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],put=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 Vt(i,dut,t)},Rfe=Ae(I9,{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"}));Rfe.propTypes={as:J.elementType,classes:J.object,className:J.string,isLandscape:J.bool.isRequired,isMobileKeyboardViewOpen:J.bool,landscapeDirection:J.oneOf(["column","row"]),ownerState:J.object.isRequired,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),toggleMobileKeyboardView:J.func,toolbarTitle:J.node,viewType:J.oneOf(["date","time"])};const hut=Ae("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Ife=Ae("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return B({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&B({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),mut=Ae("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>B({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Ife.propTypes={as:J.elementType,ownerState:J.object.isRequired,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])};const iK=Ae(N9,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),gut=Ae("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${HP.ampmLabel}`]:t.ampmLabel},{[`&.${HP.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>B({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${HP.ampmLabel}`]:{fontSize:17}}));function but(e){const t=Nt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:s,isLandscape:a,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:d,disabled:p,readOnly:m,toolbarVariant:g="mobile"}=t,v=st(t,fut),E=t,O=ur(),{meridiemMode:S,handleMeridiemChange:x}=qR(i,n,o),C=!!(n&&!r),I=g==="desktop",_=ts(),w=Di(),F=put(B({},E,{theme:w})),M=W=>n?O.format(W,"hours12h"):O.format(W,"hours24h"),L=P.useMemo(()=>i?u?O.formatByString(i,u):O.format(i,"shortDate"):c,[i,u,c,O]);return N.jsxs(Rfe,B({toolbarTitle:_.dateTimePickerToolbarTitle,isLandscape:a,className:F.root},v,{ownerState:E,children:[N.jsxs(hut,{className:F.dateContainer,ownerState:E,children:[d.includes("year")&&N.jsx(Il,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:s==="year",value:i?O.format(i,"year"):"–"}),d.includes("day")&&N.jsx(Il,{tabIndex:-1,variant:I?"h5":"h4",onClick:()=>l("day"),selected:s==="day",value:L})]}),N.jsxs(Ife,{className:F.timeContainer,ownerState:E,children:[N.jsxs(mut,{className:F.timeDigitsContainer,ownerState:E,children:[d.includes("hours")&&N.jsx(Il,{variant:I?"h5":"h3",width:I&&!a?lO:void 0,onClick:()=>l("hours"),selected:s==="hours",value:i?M(i):"--"}),d.includes("minutes")&&N.jsxs(P.Fragment,{children:[N.jsx(iK,{variant:I?"h5":"h3",value:":",className:F.separator,ownerState:E}),N.jsx(Il,{variant:I?"h5":"h3",width:I&&!a?lO:void 0,onClick:()=>l("minutes"),selected:s==="minutes",value:i?O.format(i,"minutes"):"--"})]}),d.includes("seconds")&&N.jsxs(P.Fragment,{children:[N.jsx(iK,{variant:I?"h5":"h3",value:":",className:F.separator,ownerState:E}),N.jsx(Il,{variant:I?"h5":"h3",width:I&&!a?lO:void 0,onClick:()=>l("seconds"),selected:s==="seconds",value:i?O.format(i,"seconds"):"--"})]})]}),C&&!I&&N.jsxs(gut,{className:F.ampmSelection,ownerState:E,children:[N.jsx(Il,{variant:"subtitle2",selected:S==="am",typographyClassName:F.ampmLabel,value:yc(O,"am"),onClick:m?void 0:()=>x("am"),disabled:p}),N.jsx(Il,{variant:"subtitle2",selected:S==="pm",typographyClassName:F.ampmLabel,value:yc(O,"pm"),onClick:m?void 0:()=>x("pm"),disabled:p})]}),n&&I&&N.jsx(Il,{variant:"h5",onClick:()=>l("meridiem"),selected:s==="meridiem",value:i&&S?yc(O,S):"--",width:lO})]})]}))}function Dfe(e,t){var n,r,i,o,s,a,l,u,c,d,p;const m=ur(),g=Hg(),v=Nt({props:e,name:t}),E=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),O=P.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:B({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),S=(r=v.slots)!=null?r:BT(v.components),x=(i=v.slotProps)!=null?i:v.componentsProps;return B({},v,k9({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:E,localeText:O,orientation:(o=v.orientation)!=null?o:"portrait",disableIgnoringDatePartForTimeValidation:(s=v.disableIgnoringDatePartForTimeValidation)!=null?s:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(a=v.disableFuture)!=null?a:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:fa(m,(u=v.minDateTime)!=null?u:v.minDate,g.minDate),maxDate:fa(m,(c=v.maxDateTime)!=null?c:v.maxDate,g.maxDate),minTime:(d=v.minDateTime)!=null?d:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:B({toolbar:but,tabs:cut},S),slotProps:B({},x,{toolbar:B({ampm:E},x==null?void 0:x.toolbar)})})}function yut(e){return Qt("MuiMultiSectionDigitalClock",e)}Yt("MuiMultiSectionDigitalClock",["root"]);function vut(e){return Qt("MuiMultiSectionDigitalClockSection",e)}const Out=Yt("MuiMultiSectionDigitalClockSection",["root","item"]),Eut=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Sut=e=>{const{classes:t}=e;return Vt({root:["root"],item:["item"]},vut,t)},Tut=Ae(Jy,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:pfe,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)"}})),wut=Ae(Lh,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:lO,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity)}})),xut=P.forwardRef(function(t,n){var r;const i=P.useRef(null),o=Vn(n,i),s=P.useRef(null),a=Nt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:d,readOnly:p,items:m,active:g,slots:v,slotProps:E,skipDisabled:O}=a,S=st(a,Eut),x=P.useMemo(()=>B({},a,{alreadyRendered:!!i.current}),[a]),C=Sut(x),I=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:wut;return P.useEffect(()=>{if(i.current===null)return;const _=i.current.querySelector('[role="option"][aria-selected="true"]');if(g&&l&&_&&_.focus(),!_||s.current===_)return;s.current=_;const w=_.offsetTop;i.current.scrollTop=w-4}),N.jsx(Tut,B({ref:o,className:dt(C.root,c),ownerState:x,autoFocusItem:l&&g,role:"listbox"},S,{children:m.map(_=>{var w,F;if(O&&(w=_.isDisabled)!=null&&w.call(_,_.value))return null;const M=_.isSelected(_.value);return N.jsx(I,B({onClick:()=>!p&&u(_.value),selected:M,disabled:d||((F=_.isDisabled)==null?void 0:F.call(_,_.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":_.ariaLabel,"aria-selected":M,className:C.item},E==null?void 0:E.digitalClockSectionItem,{children:_.label}),_.label)})}))}),kut=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:s})=>{const a=t?n.getHours(t):null,l=[],u=d=>a===null?!1:r?d===12?a===12||a===0:a===d||a-12===d:a===d,c=r?11:23;for(let d=0;d<=c;d+=s){let p=n.format(n.setHours(e,d),r?"hours12h":"hours24h");const m=o(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:d,label:p,isSelected:u,isDisabled:i,ariaLabel:m})}return l},oK=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:s=!0})=>{const a=l=>e===null?!1:s&&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:a,ariaLabel:o(c.toString())}})]},j9=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=P.useMemo(()=>es.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:hc.day,timezone:i,getTodayDate:()=>_9(n,i,"date")}),[]);return e??o},Cut=["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"],_ut=e=>{const{classes:t}=e;return Vt({root:["root"]},yut,t)},Aut=Ae(XR,{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}`})),Rut=P.forwardRef(function(t,n){const r=ur(),i=Nt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:a,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:m,referenceDate:g,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:E,minTime:O,disableFuture:S,disablePast:x,minutesStep:C=1,shouldDisableClock:I,shouldDisableTime:_,onChange:w,view:F,views:M=["hours","minutes"],openTo:L,onViewChange:W,focusedView:H,onFocusedViewChange:q,className:j,disabled:z,readOnly:X,skipDisabled:Z=!1,timezone:G}=i,ee=st(i,Cut),{value:Q,handleValueChange:ae,timezone:Te}=T1({name:"MultiSectionDigitalClock",timezone:G,value:p,defaultValue:m,onChange:w,valueManager:es}),te=ts(),pe=im(Te),Oe=P.useMemo(()=>B({hours:1,minutes:5,seconds:5},s),[s]),me=j9({value:Q,referenceDate:g,utils:r,props:i,timezone:Te}),Re=on((oe,ie,Me)=>ae(oe,ie,Me)),Fe=P.useMemo(()=>!o||!M.includes("hours")||M.includes("meridiem")?M:[...M,"meridiem"],[o,M]),{view:et,setValueAndGoToNextView:ct,focusedView:Ye}=UT({view:F,views:Fe,openTo:L,onViewChange:W,onChange:Re,focusedView:H,onFocusedViewChange:q}),nt=on(oe=>{ct(oe,"finish","meridiem")}),{meridiemMode:ke,handleMeridiemChange:qe}=qR(me,o,nt,"finish"),Ge=P.useCallback((oe,ie)=>{const Me=FT(v,r),He=ie==="hours"||ie==="minutes"&&Fe.includes("seconds"),Be=({start:ye,end:be})=>!(O&&Me(O,be)||E&&Me(ye,E)||S&&Me(ye,pe)||x&&Me(pe,He?be:ye)),ce=(ye,be=1)=>{if(ye%be!==0||I!=null&&I(ye,ie))return!1;if(_)switch(ie){case"hours":return!_(r.setHours(me,ye),"hours");case"minutes":return!_(r.setMinutes(me,ye),"minutes");case"seconds":return!_(r.setSeconds(me,ye),"seconds");default:return!1}return!0};switch(ie){case"hours":{const ye=dS(oe,ke,o),be=r.setHours(me,ye),we=r.setSeconds(r.setMinutes(be,0),0),Ie=r.setSeconds(r.setMinutes(be,59),59);return!Be({start:we,end:Ie})||!ce(ye)}case"minutes":{const ye=r.setMinutes(me,oe),be=r.setSeconds(ye,0),we=r.setSeconds(ye,59);return!Be({start:be,end:we})||!ce(oe,C)}case"seconds":{const ye=r.setSeconds(me,oe);return!Be({start:ye,end:ye})||!ce(oe)}default:throw new Error("not supported")}},[o,me,v,E,ke,O,C,I,_,r,S,x,pe,Fe]),rt=P.useCallback(oe=>{switch(oe){case"hours":return{onChange:ie=>{const Me=dS(ie,ke,o);ct(r.setHours(me,Me),"finish","hours")},items:kut({now:pe,value:Q,ampm:o,utils:r,isDisabled:ie=>z||Ge(ie,"hours"),timeStep:Oe.hours,resolveAriaLabel:te.hoursClockNumberText})};case"minutes":return{onChange:ie=>{ct(r.setMinutes(me,ie),"finish","minutes")},items:oK({value:r.getMinutes(me),utils:r,isDisabled:ie=>z||Ge(ie,"minutes"),resolveLabel:ie=>r.format(r.setMinutes(pe,ie),"minutes"),timeStep:Oe.minutes,hasValue:!!Q,resolveAriaLabel:te.minutesClockNumberText})};case"seconds":return{onChange:ie=>{ct(r.setSeconds(me,ie),"finish","seconds")},items:oK({value:r.getSeconds(me),utils:r,isDisabled:ie=>z||Ge(ie,"seconds"),resolveLabel:ie=>r.format(r.setSeconds(pe,ie),"seconds"),timeStep:Oe.seconds,hasValue:!!Q,resolveAriaLabel:te.secondsClockNumberText})};case"meridiem":{const ie=yc(r,"am"),Me=yc(r,"pm");return{onChange:qe,items:[{value:"am",label:ie,isSelected:()=>!!Q&&ke==="am",ariaLabel:ie},{value:"pm",label:Me,isSelected:()=>!!Q&&ke==="pm",ariaLabel:Me}]}}default:throw new Error(`Unknown view: ${oe} found.`)}},[pe,Q,o,r,Oe.hours,Oe.minutes,Oe.seconds,te.hoursClockNumberText,te.minutesClockNumberText,te.secondsClockNumberText,ke,ct,me,z,Ge,qe]),Ot=P.useMemo(()=>Fe.reduce((oe,ie)=>B({},oe,{[ie]:rt(ie)}),{}),[Fe,rt]),Ke=i,de=_ut(Ke);return N.jsx(Aut,B({ref:n,className:dt(de.root,j),ownerState:Ke,role:"group"},ee,{children:Object.entries(Ot).map(([oe,ie])=>N.jsx(xut,{items:ie.items,onChange:ie.onChange,active:et===oe,autoFocus:a??Ye===oe,disabled:z,readOnly:X,slots:c??l,slotProps:d??u,skipDisabled:Z,"aria-label":te.selectViewText(oe)},oe))}))}),Iut=Ae("div")({display:"flex",margin:"0 auto"});function Dut(e){return Qt("MuiTimeClock",e)}Yt("MuiTimeClock",["root","arrowSwitcher"]);const Fy=220,Ld=36,pS={x:Fy/2,y:Fy/2},Nfe={x:pS.x,y:0},Nut=Nfe.x-pS.x,Put=Nfe.y-pS.y,Lut=e=>e*(180/Math.PI),Pfe=(e,t,n)=>{const r=t-pS.x,i=n-pS.y,o=Math.atan2(Nut,Put)-Math.atan2(r,i);let s=Lut(o);s=Math.round(s/e)*e,s%=360;const a=Math.floor(s/e)||0,l=r**2+i**2,u=Math.sqrt(l);return{value:a,distance:u}},Mut=(e,t,n=1)=>{const r=n*6;let{value:i}=Pfe(r,e,t);return i=i*n%60,i},$ut=(e,t,n)=>{const{value:r,distance:i}=Pfe(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return Vt({root:["root"],thumb:["thumb"]},Fut,t)},jut=Ae("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>B({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"])})),zut=Ae("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>B({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ld/2}px)`,border:`${(Ld-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function Vut(e){const t=Nt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,s=st(t,But),a=P.useRef(i);P.useEffect(()=>{a.current=i},[i]);const l=B({},t,{shouldAnimate:a.current!==i}),u=Uut(l),c=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*Fy),transform:`rotateZ(${p}deg)`}};return N.jsx(jut,B({style:c(),className:dt(n,u.root),ownerState:l},s,{children:N.jsx(zut,{ownerState:l,className:u.thumb})}))}function Hut(e){return Qt("MuiClock",e)}Yt("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Wut=e=>{const{classes:t}=e;return Vt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},Hut,t)},Qut=Ae("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Yut=Ae("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"}),Gut=Ae("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),qut=Ae("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>B({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"}})),Zut=Ae("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%)"})),Xut=Ae(Xo,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>B({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Ld},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}})),Kut=Ae(Xo,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>B({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Ld},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}})),sK=Ae($r,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Jut(e){const t=Nt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:s,handleMeridiemChange:a,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:d,selectedId:p,type:m,viewValue:g,disabled:v,readOnly:E,className:O}=t,S=t,x=ur(),C=ts(),I=P.useRef(!1),_=Wut(S),w=l(g,m),F=!n&&m==="hours"&&(g<1||g>12),M=(ee,Q)=>{v||E||l(ee,m)||d(ee,Q)},L=(ee,Q)=>{let{offsetX:ae,offsetY:Te}=ee;if(ae===void 0){const pe=ee.target.getBoundingClientRect();ae=ee.changedTouches[0].clientX-pe.left,Te=ee.changedTouches[0].clientY-pe.top}const te=m==="seconds"||m==="minutes"?Mut(ae,Te,c):$ut(ae,Te,!!n);M(te,Q)},W=ee=>{I.current=!0,L(ee,"shallow")},H=ee=>{I.current&&(L(ee,"finish"),I.current=!1)},q=ee=>{ee.buttons>0&&L(ee.nativeEvent,"shallow")},j=ee=>{I.current&&(I.current=!1),L(ee.nativeEvent,"finish")},z=P.useMemo(()=>m==="hours"?!0:g%5===0,[m,g]),X=m==="minutes"?c:1,Z=P.useRef(null);Ji(()=>{i&&Z.current.focus()},[i]);const G=ee=>{if(!I.current)switch(ee.key){case"Home":M(0,"partial"),ee.preventDefault();break;case"End":M(m==="minutes"?59:23,"partial"),ee.preventDefault();break;case"ArrowUp":M(g+X,"partial"),ee.preventDefault();break;case"ArrowDown":M(g-X,"partial"),ee.preventDefault();break}};return N.jsxs(Qut,{className:dt(O,_.root),children:[N.jsxs(Yut,{className:_.clock,children:[N.jsx(qut,{onTouchMove:W,onTouchEnd:H,onMouseUp:j,onMouseMove:q,ownerState:{disabled:v},className:_.squareMask}),!w&&N.jsxs(P.Fragment,{children:[N.jsx(Zut,{className:_.pin}),s!=null&&N.jsx(Vut,{type:m,viewValue:g,isInner:F,hasSelected:z})]}),N.jsx(Gut,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,s,x),ref:Z,role:"listbox",onKeyDown:G,tabIndex:0,className:_.wrapper,children:o})]}),n&&r&&N.jsxs(P.Fragment,{children:[N.jsx(Xut,{onClick:E?void 0:()=>a("am"),disabled:v||u===null,ownerState:S,className:_.amButton,title:yc(x,"am"),children:N.jsx(sK,{variant:"caption",className:_.meridiemText,children:yc(x,"am")})}),N.jsx(Kut,{disabled:v||u===null,onClick:E?void 0:()=>a("pm"),ownerState:S,className:_.pmButton,title:yc(x,"pm"),children:N.jsx(sK,{variant:"caption",className:_.meridiemText,children:yc(x,"pm")})})]})]})}function ect(e){return Qt("MuiClockNumber",e)}const sk=Yt("MuiClockNumber",["root","selected","disabled"]),tct=["className","disabled","index","inner","label","selected"],nct=e=>{const{classes:t,selected:n,disabled:r}=e;return Vt({root:["root",n&&"selected",r&&"disabled"]},ect,t)},rct=Ae("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${sk.disabled}`]:t.disabled},{[`&.${sk.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>B({height:Ld,width:Ld,position:"absolute",left:`calc((100% - ${Ld}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},[`&.${sk.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${sk.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&B({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function Lfe(e){const t=Nt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:s,selected:a}=t,l=st(t,tct),u=t,c=nct(u),d=i%12/12*Math.PI*2-Math.PI/2,p=(Fy-Ld-2)/2*(o?.65:1),m=Math.round(Math.cos(d)*p),g=Math.round(Math.sin(d)*p);return N.jsx(rct,B({className:dt(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${g+(Fy-Ld)/2}px`},ownerState:u},l,{children:s}))}const ict=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const s=t?o.getHours(t):null,a=[],l=e?1:0,u=e?12:23,c=d=>s===null?!1:e?d===12?s===12||s===0:s===d||s-12===d:s===d;for(let d=l;d<=u;d+=1){let p=d.toString();d===0&&(p="00");const m=!e&&(d===0||d>12);p=o.formatNumber(p);const g=c(d);a.push(N.jsx(Lfe,{id:g?i:void 0,index:d,inner:m,selected:g,disabled:r(d),label:p,"aria-label":n(p)},d))}return a},aK=({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(([s,a],l)=>{const u=s===t;return N.jsx(Lfe,{label:a,id:u?i:void 0,index:l+1,inner:!1,disabled:n(s),selected:u,"aria-label":r(a)},s)})},oct=["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"],sct=e=>{const{classes:t}=e;return Vt({root:["root"],arrowSwitcher:["arrowSwitcher"]},Dut,t)},act=Ae(XR,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),lct=Ae(ffe,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),uct=["hours","minutes"],cct=P.forwardRef(function(t,n){const r=ur(),i=Nt({props:t,name:"MuiTimeClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:a,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:m,referenceDate:g,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:E,minTime:O,disableFuture:S,disablePast:x,minutesStep:C=1,shouldDisableClock:I,shouldDisableTime:_,showViewSwitcher:w,onChange:F,view:M,views:L=uct,openTo:W,onViewChange:H,focusedView:q,onFocusedViewChange:j,className:z,disabled:X,readOnly:Z,timezone:G}=i,ee=st(i,oct),Q=c??BT(l),ae=d??u,{value:Te,handleValueChange:te,timezone:pe}=T1({name:"TimeClock",timezone:G,value:p,defaultValue:m,onChange:F,valueManager:es}),Oe=j9({value:Te,referenceDate:g,utils:r,props:i,timezone:pe}),me=ts(),Re=im(pe),{view:Fe,setView:et,previousView:ct,nextView:Ye,setValueAndGoToNextView:nt}=UT({view:M,views:L,openTo:W,onViewChange:H,onChange:te,focusedView:q,onFocusedViewChange:j}),{meridiemMode:ke,handleMeridiemChange:qe}=qR(Oe,o,nt),Ge=P.useCallback((oe,ie)=>{const Me=FT(v,r),He=ie==="hours"||ie==="minutes"&&L.includes("seconds"),Be=({start:ye,end:be})=>!(O&&Me(O,be)||E&&Me(ye,E)||S&&Me(ye,Re)||x&&Me(Re,He?be:ye)),ce=(ye,be=1)=>{if(ye%be!==0||I!=null&&I(ye,ie))return!1;if(_)switch(ie){case"hours":return!_(r.setHours(Oe,ye),"hours");case"minutes":return!_(r.setMinutes(Oe,ye),"minutes");case"seconds":return!_(r.setSeconds(Oe,ye),"seconds");default:return!1}return!0};switch(ie){case"hours":{const ye=dS(oe,ke,o),be=r.setHours(Oe,ye),we=r.setSeconds(r.setMinutes(be,0),0),Ie=r.setSeconds(r.setMinutes(be,59),59);return!Be({start:we,end:Ie})||!ce(ye)}case"minutes":{const ye=r.setMinutes(Oe,oe),be=r.setSeconds(ye,0),we=r.setSeconds(ye,59);return!Be({start:be,end:we})||!ce(oe,C)}case"seconds":{const ye=r.setSeconds(Oe,oe);return!Be({start:ye,end:ye})||!ce(oe)}default:throw new Error("not supported")}},[o,Oe,v,E,ke,O,C,I,_,r,S,x,Re,L]),rt=Ic(),Ot=P.useMemo(()=>{switch(Fe){case"hours":{const oe=(ie,Me)=>{const He=dS(ie,ke,o);nt(r.setHours(Oe,He),Me)};return{onChange:oe,viewValue:r.getHours(Oe),children:ict({value:Te,utils:r,ampm:o,onChange:oe,getClockNumberText:me.hoursClockNumberText,isDisabled:ie=>X||Ge(ie,"hours"),selectedId:rt})}}case"minutes":{const oe=r.getMinutes(Oe),ie=(Me,He)=>{nt(r.setMinutes(Oe,Me),He)};return{viewValue:oe,onChange:ie,children:aK({utils:r,value:oe,onChange:ie,getClockNumberText:me.minutesClockNumberText,isDisabled:Me=>X||Ge(Me,"minutes"),selectedId:rt})}}case"seconds":{const oe=r.getSeconds(Oe),ie=(Me,He)=>{nt(r.setSeconds(Oe,Me),He)};return{viewValue:oe,onChange:ie,children:aK({utils:r,value:oe,onChange:ie,getClockNumberText:me.secondsClockNumberText,isDisabled:Me=>X||Ge(Me,"seconds"),selectedId:rt})}}default:throw new Error("You must provide the type for ClockView")}},[Fe,r,Te,o,me.hoursClockNumberText,me.minutesClockNumberText,me.secondsClockNumberText,ke,nt,Oe,Ge,rt,X]),Ke=i,de=sct(Ke);return N.jsxs(act,B({ref:n,className:dt(de.root,z),ownerState:Ke},ee,{children:[N.jsx(Jut,B({autoFocus:a??!!q,ampmInClock:s&&L.includes("hours"),value:Te,type:Fe,ampm:o,minutesStep:C,isTimeDisabled:Ge,meridiemMode:ke,handleMeridiemChange:qe,selectedId:rt,disabled:X,readOnly:Z},Ot)),w&&N.jsx(lct,{className:de.arrowSwitcher,slots:Q,slotProps:ae,onGoToPrevious:()=>et(ct),isPreviousDisabled:!ct,previousLabel:me.openPreviousView,onGoToNext:()=>et(Ye),isNextDisabled:!Ye,nextLabel:me.openNextView,ownerState:Ke})]}))});function dct(e){return Qt("MuiDigitalClock",e)}const fct=Yt("MuiDigitalClock",["root","list","item"]),pct=["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"],hct=e=>{const{classes:t}=e;return Vt({root:["root"],list:["list"],item:["item"]},dct,t)},mct=Ae(XR,{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:pfe})),gct=Ae(Jy,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),bct=Ae(Lh,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity)}})),yct=P.forwardRef(function(t,n){var r,i,o;const s=ur(),a=P.useRef(null),l=Vn(n,a),u=Nt({props:t,name:"MuiDigitalClock"}),{ampm:c=s.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:p,components:m,componentsProps:g,slots:v,slotProps:E,value:O,defaultValue:S,referenceDate:x,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:I,minTime:_,disableFuture:w,disablePast:F,minutesStep:M=1,shouldDisableClock:L,shouldDisableTime:W,onChange:H,view:q,openTo:j,onViewChange:z,focusedView:X,onFocusedViewChange:Z,className:G,disabled:ee,readOnly:Q,views:ae=["hours"],skipDisabled:Te=!1,timezone:te}=u,pe=st(u,pct),{value:Oe,handleValueChange:me,timezone:Re}=T1({name:"DigitalClock",timezone:te,value:O,defaultValue:S,onChange:H,valueManager:es}),Fe=ts(),et=im(Re),ct=P.useMemo(()=>B({},u,{alreadyRendered:!!a.current}),[u]),Ye=hct(ct),nt=(r=(i=v==null?void 0:v.digitalClockItem)!=null?i:m==null?void 0:m.DigitalClockItem)!=null?r:bct,ke=nr({elementType:nt,externalSlotProps:(o=E==null?void 0:E.digitalClockItem)!=null?o:g==null?void 0:g.digitalClockItem,ownerState:{},className:Ye.item}),qe=j9({value:Oe,referenceDate:x,utils:s,props:u,timezone:Re}),Ge=on(oe=>me(oe,"finish","hours")),{setValueAndGoToNextView:rt}=UT({view:q,views:ae,openTo:j,onViewChange:z,onChange:Ge,focusedView:X,onFocusedViewChange:Z}),Ot=on(oe=>{rt(oe,"finish")});P.useEffect(()=>{if(a.current===null)return;const oe=a.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!oe)return;const ie=oe.offsetTop;a.current.scrollTop=ie-4});const Ke=P.useCallback(oe=>{const ie=FT(C,s),Me=()=>!(_&&ie(_,oe)||I&&ie(oe,I)||w&&ie(oe,et)||F&&ie(et,oe)),He=()=>s.getMinutes(oe)%M!==0||L!=null&&L(s.toJsDate(oe).getTime(),"hours")?!1:W?!W(oe,"hours"):!0;return!Me()||!He()},[C,s,_,I,w,et,F,M,L,W]),de=P.useMemo(()=>{const oe=s.startOfDay(qe);return[oe,...Array.from({length:Math.ceil(24*60/d)-1},(ie,Me)=>s.addMinutes(oe,d*(Me+1)))]},[qe,d,s]);return N.jsx(mct,B({ref:l,className:dt(Ye.root,G),ownerState:ct},pe,{children:N.jsx(gct,{autoFocusItem:p||!!X,role:"listbox","aria-label":Fe.timePickerToolbarTitle,className:Ye.list,children:de.map(oe=>{if(Te&&Ke(oe))return null;const ie=s.isEqual(oe,Oe);return N.jsx(nt,B({onClick:()=>!Q&&Ot(oe),selected:ie,disabled:ee||Ke(oe),disableRipple:Q,role:"option","aria-disabled":Q,"aria-selected":ie},ke,{children:s.format(oe,c?"fullTime12h":"fullTime24h")}),s.toISO(oe))})})}))}),Bb=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:E,minutesStep:O,ampm:S,ampmInClock:x,components:C,componentsProps:I,slots:_,slotProps:w,readOnly:F,disabled:M,sx:L,autoFocus:W,showViewSwitcher:H,disableIgnoringDatePartForTimeValidation:q,timezone:j})=>N.jsx(cct,{view:e,onViewChange:t,focusedView:n&&$y(n)?n:null,onFocusedViewChange:r,views:i.filter($y),value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:E,minutesStep:O,ampm:S,ampmInClock:x,components:C,componentsProps:I,slots:_,slotProps:w,readOnly:F,disabled:M,sx:L,autoFocus:W,showViewSwitcher:H,disableIgnoringDatePartForTimeValidation:q,timezone:j}),Mfe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:E,minutesStep:O,ampm:S,components:x,componentsProps:C,slots:I,slotProps:_,readOnly:w,disabled:F,sx:M,autoFocus:L,disableIgnoringDatePartForTimeValidation:W,timeSteps:H,skipDisabled:q,timezone:j})=>N.jsx(yct,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter($y),value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:E,minutesStep:O,ampm:S,components:x,componentsProps:C,slots:I,slotProps:_,readOnly:w,disabled:F,sx:M,autoFocus:L,disableIgnoringDatePartForTimeValidation:W,timeStep:H==null?void 0:H.minutes,skipDisabled:q,timezone:j}),C4=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:E,minutesStep:O,ampm:S,components:x,componentsProps:C,slots:I,slotProps:_,readOnly:w,disabled:F,sx:M,autoFocus:L,disableIgnoringDatePartForTimeValidation:W,timeSteps:H,skipDisabled:q,timezone:j})=>N.jsx(Rut,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter($y),value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:E,minutesStep:O,ampm:S,components:x,componentsProps:C,slots:I,slotProps:_,readOnly:w,disabled:F,sx:M,autoFocus:L,disableIgnoringDatePartForTimeValidation:W,timeSteps:H,skipDisabled:q,timezone:j}),Tm=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:m,minTime:g,maxDate:v,maxTime:E,shouldDisableDate:O,shouldDisableMonth:S,shouldDisableYear:x,shouldDisableTime:C,shouldDisableClock:I,reduceAnimations:_,minutesStep:w,ampm:F,onMonthChange:M,monthsPerRow:L,onYearChange:W,yearsPerRow:H,defaultCalendarMonth:q,components:j,componentsProps:z,slots:X,slotProps:Z,loading:G,renderLoading:ee,disableHighlightToday:Q,readOnly:ae,disabled:Te,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:pe,sx:Oe,autoFocus:me,fixedWeekNumber:Re,displayWeekNumber:Fe,timezone:et,disableIgnoringDatePartForTimeValidation:ct,timeSteps:Ye,skipDisabled:nt,timeViewsCount:ke,shouldRenderTimeInASingleColumn:qe})=>{var Ge,rt;const Ot=!!((Ge=Gh((rt=Z==null?void 0:Z.actionBar)!=null?rt:z==null?void 0:z.actionBar,{}))!=null&&(Ge=Ge.actions)!=null&&Ge.length),Ke={view:Fp(e)?e:"hours",onViewChange:t,focusedView:r&&Fp(r)?r:null,onFocusedViewChange:i,views:n.filter(Fp),value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:g,maxTime:E,shouldDisableTime:C,shouldDisableClock:I,minutesStep:w,ampm:F,components:j,componentsProps:z,slots:X,slotProps:Z,readOnly:ae,disabled:Te,autoFocus:me,disableIgnoringDatePartForTimeValidation:ct,timeSteps:Ye,skipDisabled:nt,timezone:et};return N.jsxs(P.Fragment,{children:[N.jsxs(Iut,{children:[N.jsx(Cfe,{view:$b(e)?e:"day",onViewChange:t,views:n.filter($b),focusedView:r&&$b(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:O,shouldDisableMonth:S,shouldDisableYear:x,reduceAnimations:_,onMonthChange:M,monthsPerRow:L,onYearChange:W,yearsPerRow:H,defaultCalendarMonth:q,components:j,componentsProps:z,slots:X,slotProps:Z,loading:G,renderLoading:ee,disableHighlightToday:Q,readOnly:ae,disabled:Te,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:pe,sx:Oe,autoFocus:me,fixedWeekNumber:Re,displayWeekNumber:Fe,timezone:et}),ke>0&&N.jsxs(P.Fragment,{children:[N.jsx(Pf,{orientation:"vertical"}),qe?Mfe(B({},Ke,{view:"hours",views:["hours"],focusedView:r&&Fp(r)?"hours":null,sx:B({width:"auto",[`&.${fct.root}`]:{maxHeight:GR}},Array.isArray(Oe)?Oe:[Oe])})):C4(B({},Ke,{view:Fp(e)?e:"hours",views:n.filter(Fp),focusedView:r&&Fp(r)?r:null,sx:B({borderBottom:0,width:"auto",[`.${Out.root}`]:{maxHeight:"100%"}},Array.isArray(Oe)?Oe:[Oe])}))]})]}),Ot&&N.jsx(Pf,{})]})},vct=["views","format"],$fe=(e,t)=>{let{views:n,format:r}=t,i=st(t,vct);if(r)return r;const o=[],s=[];if(n.forEach(u=>{$y(u)?s.push(u):o.push(u)}),s.length===0)return cS(e,B({views:o},i),!1);if(o.length===0)return hA(e,B({views:s},i));const a=hA(e,B({views:s},i));return`${cS(e,B({views:o},i),!1)} ${a}`},Oct=(e,t,n)=>n?t.filter(r=>!Fp(r)||r==="hours"):e?[...t,"meridiem"]:t,Ect=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Ffe({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=B({hours:1,minutes:5,seconds:5},n),s=Ect(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:s,views:Oct(t,r,s)}}const Bfe=P.forwardRef(function(t,n){var r,i,o,s,a,l,u;const c=ts(),d=ur(),p=Dfe(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:g,views:v,timeSteps:E}=Ffe(p),O=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,S=O?{day:Tm,month:Tm,year:Tm,hours:Tm,minutes:Tm,seconds:Tm,meridiem:Tm}:B({day:Mu,month:Mu,year:Mu,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),x=(r=p.ampmInClock)!=null?r:!0,C=O?["accept"]:[],I=B({},p,{viewRenderers:S,format:$fe(d,p),views:v,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:x,timeSteps:E,thresholdToRenderTimeInASingleColumn:g,shouldRenderTimeInASingleColumn:m,slots:B({field:Afe,openPickerIcon:dfe},p.slots),slotProps:B({},p.slotProps,{field:w=>{var F;return B({},Gh((F=p.slotProps)==null?void 0:F.field,w),w1(p),{ref:n})},toolbar:B({hidden:!0,ampmInClock:x,toolbarVariant:O?"desktop":"mobile"},(o=p.slotProps)==null?void 0:o.toolbar),tabs:B({hidden:!0},(s=p.slotProps)==null?void 0:s.tabs),actionBar:B({actions:C},(a=p.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:_}=$9({props:I,valueManager:es,valueType:"date-time",getOpenDialogAriaText:(l=(u=I.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:ZR});return _()});Bfe.propTypes={ampm:J.bool,ampmInClock:J.bool,autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,components:J.object,componentsProps:J.object,dayOfWeekFormatter:J.func,defaultCalendarMonth:J.any,defaultValue:J.any,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableIgnoringDatePartForTimeValidation:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Yy,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.any,maxDateTime:J.any,maxTime:J.any,minDate:J.any,minDateTime:J.any,minTime:J.any,minutesStep:J.number,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.any,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number,J.shape({endIndex:J.number.isRequired,startIndex:J.number.isRequired})]),shouldDisableClock:J.func,shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableTime:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,skipDisabled:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),thresholdToRenderTimeInASingleColumn:J.number,timeSteps:J.shape({hours:J.number,minutes:J.number,seconds:J.number}),timezone:J.string,value:J.any,view:J.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:J.shape({day:J.func,hours:J.func,meridiem:J.func,minutes:J.func,month:J.func,seconds:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:J.oneOf([3,4])};const Ufe=P.forwardRef(function(t,n){var r,i,o,s,a;const l=ts(),u=ur(),c=Dfe(t,"MuiMobileDateTimePicker"),d=B({day:Mu,month:Mu,year:Mu,hours:Bb,minutes:Bb,seconds:Bb},c.viewRenderers),p=(r=c.ampmInClock)!=null?r:!1,m=B({},c,{viewRenderers:d,format:$fe(u,c),ampmInClock:p,slots:B({field:Afe},c.slots),slotProps:B({},c.slotProps,{field:v=>{var E;return B({},Gh((E=c.slotProps)==null?void 0:E.field,v),w1(c),{ref:n})},toolbar:B({hidden:!1,ampmInClock:p},(i=c.slotProps)==null?void 0:i.toolbar),tabs:B({hidden:!1},(o=c.slotProps)==null?void 0:o.tabs)})}),{renderPicker:g}=B9({props:m,valueManager:es,valueType:"date-time",getOpenDialogAriaText:(s=(a=m.localeText)==null?void 0:a.openDatePickerDialogue)!=null?s:l.openDatePickerDialogue,validator:ZR});return g()});Ufe.propTypes={ampm:J.bool,ampmInClock:J.bool,autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,components:J.object,componentsProps:J.object,dayOfWeekFormatter:J.func,defaultCalendarMonth:J.any,defaultValue:J.any,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableIgnoringDatePartForTimeValidation:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Yy,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.any,maxDateTime:J.any,maxTime:J.any,minDate:J.any,minDateTime:J.any,minTime:J.any,minutesStep:J.number,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.any,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number,J.shape({endIndex:J.number.isRequired,startIndex:J.number.isRequired})]),shouldDisableClock:J.func,shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableTime:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.any,view:J.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:J.shape({day:J.func,hours:J.func,minutes:J.func,month:J.func,seconds:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:J.oneOf([3,4])};const Sct=["desktopModeMediaQuery"],Tct=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=D9}=r,o=st(r,Sct);return Ky(i,{defaultMatches:!0})?N.jsx(Bfe,B({ref:n},o)):N.jsx(Ufe,B({ref:n},o))}),wct=e=>{var t,n,r,i;const o=ur(),a=((t=e.ampm)!=null?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return B({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:a})},xct=({props:e,inputRef:t})=>{const n=wct(e),{forwardedProps:r,internalProps:i}=M9(n,"time");return L9({inputRef:t,forwardedProps:r,internalProps:i,valueManager:es,fieldValueManager:R9,validator:jT,valueType:"time"})},kct=["slots","slotProps","components","componentsProps","InputProps","inputProps"],Cct=["inputRef"],_ct=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],jfe=P.forwardRef(function(t,n){var r,i,o;const s=Nt({props:t,name:"MuiTimeField"}),{slots:a,slotProps:l,components:u,componentsProps:c,InputProps:d,inputProps:p}=s,m=st(s,kct),g=s,v=(r=(i=a==null?void 0:a.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:Kh,E=nr({elementType:v,externalSlotProps:(o=l==null?void 0:l.textField)!=null?o:c==null?void 0:c.textField,externalForwardedProps:m,ownerState:g}),{inputRef:O}=E,S=st(E,Cct);S.inputProps=B({},p,S.inputProps),S.InputProps=B({},d,S.InputProps);const x=xct({props:S,inputRef:O}),{ref:C,onPaste:I,onKeyDown:_,inputMode:w,readOnly:F,clearable:M,onClear:L}=x,W=st(x,_ct),{InputProps:H,fieldProps:q}=F9({onClear:L,clearable:M,fieldProps:W,InputProps:W.InputProps,slots:a,slotProps:l,components:u,componentsProps:c});return N.jsx(v,B({ref:n},q,{InputProps:B({},H,{readOnly:F}),inputProps:B({},W.inputProps,{inputMode:w,onPaste:I,onKeyDown:_,ref:C})}))});function Act(e){return Qt("MuiTimePickerToolbar",e)}const ZO=Yt("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Rct=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],Ict=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 Vt(i,Act,r)},Dct=Ae(I9,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nct=Ae(N9,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),zfe=Ae("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ZO.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ZO.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>B({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));zfe.propTypes={as:J.elementType,ownerState:J.object.isRequired,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])};const Vfe=Ae("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ZO.ampmLabel}`]:t.ampmLabel},{[`&.${ZO.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>B({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${ZO.ampmLabel}`]:{fontSize:17}}));Vfe.propTypes={as:J.elementType,ownerState:J.object.isRequired,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])};function Pct(e){const t=Nt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:s,view:a,onViewChange:l,views:u,disabled:c,readOnly:d}=t,p=st(t,Rct),m=ur(),g=ts(),v=Di(),E=!!(n&&!r&&u.includes("hours")),{meridiemMode:O,handleMeridiemChange:S}=qR(i,n,s),x=w=>n?m.format(w,"hours12h"):m.format(w,"hours24h"),C=t,I=Ict(B({},C,{theme:v})),_=N.jsx(Nct,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:I.separator});return N.jsxs(Dct,B({landscapeDirection:"row",toolbarTitle:g.timePickerToolbarTitle,isLandscape:o,ownerState:C,className:I.root},p,{children:[N.jsxs(zfe,{className:I.hourMinuteLabel,ownerState:C,children:[W0(u,"hours")&&N.jsx(Il,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:a==="hours",value:i?x(i):"--"}),W0(u,["hours","minutes"])&&_,W0(u,"minutes")&&N.jsx(Il,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:a==="minutes",value:i?m.format(i,"minutes"):"--"}),W0(u,["minutes","seconds"])&&_,W0(u,"seconds")&&N.jsx(Il,{variant:"h3",onClick:()=>l("seconds"),selected:a==="seconds",value:i?m.format(i,"seconds"):"--"})]}),E&&N.jsxs(Vfe,{className:I.ampmSelection,ownerState:C,children:[N.jsx(Il,{disableRipple:!0,variant:"subtitle2",selected:O==="am",typographyClassName:I.ampmLabel,value:yc(m,"am"),onClick:d?void 0:()=>S("am"),disabled:c}),N.jsx(Il,{disableRipple:!0,variant:"subtitle2",selected:O==="pm",typographyClassName:I.ampmLabel,value:yc(m,"pm"),onClick:d?void 0:()=>S("pm"),disabled:c})]})]}))}function Hfe(e,t){var n,r,i,o,s;const a=ur(),l=Nt({props:e,name:t}),u=(n=l.ampm)!=null?n:a.is12HourCycleInCurrentLocale(),c=P.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:B({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(r=l.slots)!=null?r:BT(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return B({},l,{ampm:u,localeText:c},k9({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(o=l.disableFuture)!=null?o:!1,disablePast:(s=l.disablePast)!=null?s:!1,slots:B({toolbar:Pct},d),slotProps:B({},p,{toolbar:B({ampm:u,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Wfe=P.forwardRef(function(t,n){var r,i,o,s,a,l;const u=ts(),c=ur(),d=Hfe(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:g}=Ffe(d),v=p?Mfe:C4,E=B({hours:v,minutes:v,seconds:v,meridiem:v},d.viewRenderers),O=(r=d.ampmInClock)!=null?r:!0,S=p?[]:["accept"],C=((i=E.hours)==null?void 0:i.name)===C4.name?m:m.filter(w=>w!=="meridiem"),I=B({},d,{ampmInClock:O,timeSteps:g,viewRenderers:E,format:hA(c,d),views:p?["hours"]:C,slots:B({field:jfe,openPickerIcon:mst},d.slots),slotProps:B({},d.slotProps,{field:w=>{var F;return B({},Gh((F=d.slotProps)==null?void 0:F.field,w),w1(d),{ref:n})},toolbar:B({hidden:!0,ampmInClock:O},(o=d.slotProps)==null?void 0:o.toolbar),actionBar:B({actions:S},(s=d.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:_}=$9({props:I,valueManager:es,valueType:"time",getOpenDialogAriaText:(a=(l=I.localeText)==null?void 0:l.openTimePickerDialogue)!=null?a:u.openTimePickerDialogue,validator:jT});return _()});Wfe.propTypes={ampm:J.bool,ampmInClock:J.bool,autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,components:J.object,componentsProps:J.object,defaultValue:J.any,disabled:J.bool,disableFuture:J.bool,disableIgnoringDatePartForTimeValidation:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Yy,label:J.node,localeText:J.object,maxTime:J.any,minTime:J.any,minutesStep:J.number,name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,open:J.bool,openTo:J.oneOf(["hours","meridiem","minutes","seconds"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.any,selectedSections:J.oneOfType([J.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number,J.shape({endIndex:J.number.isRequired,startIndex:J.number.isRequired})]),shouldDisableClock:J.func,shouldDisableTime:J.func,skipDisabled:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),thresholdToRenderTimeInASingleColumn:J.number,timeSteps:J.shape({hours:J.number,minutes:J.number,seconds:J.number}),timezone:J.string,value:J.any,view:J.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:J.shape({hours:J.func,meridiem:J.func,minutes:J.func,seconds:J.func}),views:J.arrayOf(J.oneOf(["hours","minutes","seconds"]).isRequired)};const Qfe=P.forwardRef(function(t,n){var r,i,o,s;const a=ts(),l=ur(),u=Hfe(t,"MuiMobileTimePicker"),c=B({hours:Bb,minutes:Bb,seconds:Bb},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,p=B({},u,{ampmInClock:d,viewRenderers:c,format:hA(l,u),slots:B({field:jfe},u.slots),slotProps:B({},u.slotProps,{field:g=>{var v;return B({},Gh((v=u.slotProps)==null?void 0:v.field,g),w1(u),{ref:n})},toolbar:B({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:m}=B9({props:p,valueManager:es,valueType:"time",getOpenDialogAriaText:(o=(s=p.localeText)==null?void 0:s.openTimePickerDialogue)!=null?o:a.openTimePickerDialogue,validator:jT});return m()});Qfe.propTypes={ampm:J.bool,ampmInClock:J.bool,autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,components:J.object,componentsProps:J.object,defaultValue:J.any,disabled:J.bool,disableFuture:J.bool,disableIgnoringDatePartForTimeValidation:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Yy,label:J.node,localeText:J.object,maxTime:J.any,minTime:J.any,minutesStep:J.number,name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,open:J.bool,openTo:J.oneOf(["hours","minutes","seconds"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.any,selectedSections:J.oneOfType([J.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number,J.shape({endIndex:J.number.isRequired,startIndex:J.number.isRequired})]),shouldDisableClock:J.func,shouldDisableTime:J.func,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.any,view:J.oneOf(["hours","minutes","seconds"]),viewRenderers:J.shape({hours:J.func,minutes:J.func,seconds:J.func}),views:J.arrayOf(J.oneOf(["hours","minutes","seconds"]).isRequired)};const Lct=["desktopModeMediaQuery"],Mct=P.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=D9}=r,o=st(r,Lct);return Ky(i,{defaultMatches:!0})?N.jsx(Wfe,B({ref:n},o)):N.jsx(Qfe,B({ref:n},o))});var z9={},$ct=ho;Object.defineProperty(z9,"__esModule",{value:!0});var Yfe=z9.default=void 0,Fct=$ct(mo()),Bct=N;Yfe=z9.default=(0,Fct.default)((0,Bct.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 V9={},Uct=ho;Object.defineProperty(V9,"__esModule",{value:!0});var H9=V9.default=void 0,jct=Uct(mo()),zct=N;H9=V9.default=(0,jct.default)((0,zct.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 W9={},Vct=ho;Object.defineProperty(W9,"__esModule",{value:!0});var Gfe=W9.default=void 0,Hct=Vct(mo()),Wct=N;Gfe=W9.default=(0,Hct.default)((0,Wct.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 _4(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 edt(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 tdt(e,t){return Qct(e)||Zct(e,t)||qfe(e,t)||Xct()}function Hh(e){return Yct(e)||qct(e)||qfe(e)||Kct()}function ndt(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function qfe(e,t){if(e){if(typeof e=="string")return _4(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 _4(e,t)}}var rdt=P.createContext({onError:function(e){return e==null?void 0:e.message}}),tu=function(){var e;return(e=P.useContext(rdt))===null||e===void 0?void 0:e.onError};function fl(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"}}),O=dl({name:a,control:l,disabled:m.disabled,rules:E}),S=O.field,x=O.fieldState,C=x.error,I=fl({value:S.value,onChange:S.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(M){return M||""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(M){var L=M.target.value;return o==="number"&&L?+L:L}}}),_=I.value,w=I.onChange,F=Vn(S.ref,d);return N.jsx(c,ir(ln({},m),{name:S.name,value:_,onChange:function(M){w(M),typeof m.onChange=="function"&&m.onChange(M)},onBlur:S.onBlur,required:s,type:o,error:!!C,helperText:C?typeof v=="function"?v(C):C.message:m.helperText,ref:t,inputRef:F}))});Zfe.displayName="TextFieldElement";var KR=Zfe;function zT(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,s=e.onError,a=Hs(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof o=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),N.jsx(Bde,ir(ln({},i),{children:N.jsx("form",ir(ln({noValidate:!0},r),{onSubmit:t||(o?i.handleSubmit(o,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):N.jsx(idt,ln({onSuccess:o,onError:s,FormProps:r,children:n},a))}function idt(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=Hs(e,["onSuccess","onError","FormProps","children"]),s=Kde(ln({},o)),a=s.handleSubmit;return N.jsx(Bde,ir(ln({},s),{children:N.jsx("form",ir(ln({onSubmit:a(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Xfe={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"},odt=P.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,o=e.validation,s=o===void 0?{}:o,a=e.inputProps,l=e.control,u=e.textReadOnly,c=e.slotProps,d=e.overwriteErrorMessages,p=e.inputRef,m=e.transform,g=Hs(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),v=Uc(),E=tu(),O=n||E,S=ln({},Xfe,d),x=ir(ln({},s,i&&!s.required&&{required:"This field is required"}),{validate:ln({internal:function(q){var j,z,X=q==null||!v.utils.isValid(q)?null:v.utils.getTimezone(q),Z=Wg({props:{shouldDisableDate:g.shouldDisableDate,shouldDisableMonth:g.shouldDisableMonth,shouldDisableYear:g.shouldDisableYear,disablePast:!!g.disablePast,disableFuture:!!g.disableFuture,minDate:g.minDate,maxDate:g.maxDate,timezone:(z=(j=g.timezone)!==null&&j!==void 0?j:X)!==null&&z!==void 0?z:"default"},value:q,adapter:v});return Z==null||S[Z]}},s.validate)}),C=dl({name:r,control:l,rules:x,disabled:g.disabled,defaultValue:null}),I=C.field,_=C.fieldState,w=_.error,F=fl({value:I.value,onChange:I.onChange,transform:{input:typeof(m==null?void 0:m.input)=="function"?m.input:function(q){return q&&q==="string"?new Date(q):q},output:typeof(m==null?void 0:m.output)=="function"?m.output:function(q){return q}}}),M=F.value,L=F.onChange,W=Vn(I.ref,p),H=w?typeof O=="function"?O(w):w.message:null;return N.jsx(Jlt,ir(ln({},g,I),{value:M,ref:t,inputRef:W,onClose:function(){for(var q=arguments.length,j=new Array(q),z=0;z"u"?"undefined":ndt(q))<"u"&&(x.InputLabelProps=x.InputLabelProps||{},x.InputLabelProps.shrink=!0),N.jsxs(Kh,ir(ln({},x),{name:r,value:q,onBlur:M.onBlur,ref:t,onChange:function(X){if(j(X),typeof x.onChange=="function"){var Z=X.target.value;p==="number"&&Z&&(Z=Number(Z)),m&&(Z=c.find(function(G){return G[s]===Z})),x.onChange(Z)}},select:!0,required:i,error:!!W,helperText:W?typeof I=="function"?I(W):W.message:x.helperText,inputRef:z,children:[_&&N.jsx("option",{}),c.map(function(X){var Z,G={key:"".concat(r,"_").concat(X[s]),value:(Z=X==null?void 0:X[s])!==null&&Z!==void 0?Z:X,disabled:Ja(X,"disabled")?!!X.disabled:!1,children:X[l]};return _?N.jsx("option",ln({},G)):N.jsx(Lh,ln({},G))})]}))});Kfe.displayName="SelectElement";var A4=Kfe,fdt=P.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,s=e.parseError,a=e.required,l=e.labelKey,u=l===void 0?"label":l,c=e.valueKey,d=c===void 0?"id":c,p=e.returnObject,m=e.disabled,g=e.row,v=e.control,E=e.checkboxColor,O=e.rules,S=e.labelProps,x=e.transform,C=e.defaultValue,I=C===void 0?[]:C,_=Hs(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),w=Di(),F=tu(),M=s||F,L=dl({name:o,rules:a?{required:"This field is required"}:O,disabled:m,control:v,defaultValue:I}),W=L.field,H=L.fieldState,q=H.error,j=H.invalid,z=fl({value:W.value,onChange:W.onChange,transform:{input:typeof(x==null?void 0:x.input)=="function"?x.input:function(Q){return Array.isArray(Q)?Q:[]},output:x==null?void 0:x.output}}),X=z.value,Z=z.onChange,G=function(Q){var ae=Ja(Q,d)?Q[d]:Q,Te=X.findIndex(function(pe){var Oe=Ja(pe,d)?pe[d]:pe;return ae===Oe}),te=(Te===-1?Hh(X).concat([Q]):X.filter(function(pe,Oe){return Te!==Oe})).map(function(pe){return p||!Ja(pe,d)?pe:pe[d]});Z(te),typeof _.onChange=="function"&&_.onChange(te)},ee=q?typeof M=="function"?M(q):q.message:n;return N.jsxs(Dc,{error:j,required:a,ref:t,children:[i?N.jsx(B2,{children:i}):null,N.jsx($$,{row:g,children:r.map(function(Q){var ae=Ja(Q,d)?Q[d]:Q,Te=Ja(Q,u)?Q[u]:Q,te=X.some(function(pe){return(Ja(pe,d)?pe[d]:pe)===ae});return P.createElement(kE,ir(ln({},S),{control:N.jsx($2,{sx:{color:q?w.palette.error.main:void 0},color:E,value:ae,checked:te,disabled:m,onChange:function(){return G(Q)}}),label:"".concat(Te),key:"".concat(ae)}))})}),ee&&N.jsx(Xy,{children:ee})]})});fdt.displayName="CheckboxButtonGroup";var pdt=48,hdt=8,mdt=P.forwardRef(function(e,t){var n,r,i,o,s,a=e.options,l=e.label,u=l===void 0?"":l,c=e.itemKey,d=c===void 0?"id":c,p=e.itemValue,m=p===void 0?"":p,g=e.itemLabel,v=g===void 0?"label":g,E=e.required,O=E===void 0?!1:E,S=e.validation,x=S===void 0?{}:S,C=e.parseError,I=e.name,_=e.menuMaxHeight,w=_===void 0?pdt*4.5+hdt:_,F=e.menuMaxWidth,M=F===void 0?250:F,L=e.minWidth,W=L===void 0?120:L,H=e.helperText,q=e.showChips,j=e.preserveOrder,z=e.control,X=e.showCheckbox,Z=e.formControlProps,G=e.inputRef,ee=e.transform,Q=Hs(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),ae=tu(),Te=C||ae,te=function(Ge){var rt,Ot;return(Ot=(rt=a.find(function(Ke){var de;return((de=Ke[m||d])!==null&&de!==void 0?de:Ke)===Ge}))===null||rt===void 0?void 0:rt[v])!==null&&Ot!==void 0?Ot:Ge},pe=ln({},x,O&&!x.required&&{required:"This field is required"}),Oe=dl({name:I,rules:pe,disabled:Q.disabled,control:z}),me=Oe.field,Re=Oe.fieldState,Fe=Re.error,et=fl({value:me.value,onChange:me.onChange,transform:{input:typeof(ee==null?void 0:ee.input)=="function"?ee.input:function(Ge){return Array.isArray(Ge)?Ge:[]},output:ee==null?void 0:ee.output}}),ct=et.value,Ye=et.onChange,nt=Vn(me.ref,G),ke=Fe?typeof Te=="function"?Te(Fe):Fe.message:H,qe;return N.jsxs(Dc,ir(ln({},Z),{style:ln({minWidth:W},Z==null?void 0:Z.style),variant:Q.variant,fullWidth:Q.fullWidth,error:!!Fe,size:Q.size,ref:t,children:[u&&N.jsx(tre,{size:Q.size==="small"?"small":void 0,error:!!Fe,htmlFor:Q.id||"select-multi-select-".concat(I),required:O,children:u}),N.jsx(pre,ir(ln({},Q),{id:Q.id||"select-multi-select-".concat(I),multiple:!0,label:u||void 0,error:!!Fe,value:ct,required:O,onChange:Ye,onBlur:me.onBlur,MenuProps:ir(ln({},Q.MenuProps),{slotProps:ir(ln({},(n=Q.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:ln({},(qe=(i=Q.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&qe!==void 0?qe:{style:ln({maxHeight:w,width:M},Ja((s=Q.MenuProps)===null||s===void 0||(o=s.slotProps)===null||o===void 0?void 0:o.paper,"style")&&typeof Q.MenuProps.slotProps.paper.style=="object"&&ln({},Q.MenuProps.slotProps.paper.style))})})}),renderValue:typeof Q.renderValue=="function"?Q.renderValue:q?function(Ge){return N.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(j?a.filter(function(rt){return Ge.includes(rt)}):Ge||[]).map(function(rt){return N.jsx(N$,{label:te(rt),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Ye((Array.isArray(ct)?ct:[]).filter(function(Ot){return Ot!==rt}))},deleteIcon:N.jsx(Yfe,{onMouseDown:function(Ot){Ot.stopPropagation()}})},rt)})})}:function(Ge){return Array.isArray(Ge)?Ge.map(te).join(", "):""},inputRef:nt,children:a.map(function(Ge){var rt=Ge[m||d]||Ge,Ot=Array.isArray(ct)?ct.some(function(Ke){return Ke===rt}):!1;return N.jsxs(Lh,{value:rt,sx:{fontWeight:function(Ke){return Ot?Ke.typography.fontWeightBold:Ke.typography.fontWeightRegular}},children:[X&&N.jsx($2,{checked:Ot}),N.jsx(Eh,{primary:Ge[v]||Ge})]},rt)})})),ke&&N.jsx(Xy,{error:!!Fe,children:ke})]}))});mdt.displayName="MultiSelectElement";var Jfe=P.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?N.jsx(H9,{}):N.jsx(Gfe,{})}:r,o=Hs(e,["iconColor","renderIcon"]),s=tdt(P.useState(!0),2),a=s[0],l=s[1];return N.jsx(KR,ir(ln({},o),{ref:t,InputProps:{endAdornment:N.jsx(_E,{position:"end",children:N.jsx(Xo,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!a)},tabIndex:-1,color:n??"default",children:i(a)})})},type:a?"password":"text"}))});Jfe.displayName="PasswordElement";var gdt=Jfe,bdt=P.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,s=e.parseError,a=e.labelKey,l=a===void 0?"label":a,u=e.valueKey,c=u===void 0?"id":u,d=e.required,p=e.emptyOptionLabel,m=e.returnObject,g=e.row,v=e.control,E=e.type,O=e.labelProps,S=e.disabled,x=e.formLabelProps,C=e.transform,I=Hs(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),_=Di(),w=tu(),F=s||w,M=dl({name:o,rules:d?{required:"This field is required"}:void 0,disabled:S,control:v}),L=M.field,W=M.fieldState,H=W.error,q=fl({value:L.value,onChange:L.onChange,transform:{input:typeof(C==null?void 0:C.input)=="function"?C.input:function(G){return G||""},output:typeof(C==null?void 0:C.output)=="function"?C==null?void 0:C.output:function(G,ee){return ee}}}),j=q.value,z=q.onChange,X=H?typeof F=="function"?F(H):H.message:n,Z=function(G,ee){var Q=m?r.find(function(ae){return ae[c]===ee}):ee;z(G,Q),typeof I.onChange=="function"&&I.onChange(Q)};return N.jsxs(Dc,{error:!!H,ref:t,children:[i&&N.jsx(B2,ir(ln({},x),{required:d,error:!!H,children:i})),N.jsxs(MPe,{onChange:Z,name:o,row:g,value:j,children:[p&&N.jsx(kE,ir(ln({},O),{control:N.jsx(mQ,{sx:{color:H?_.palette.error.main:void 0},checked:!j}),label:p,value:""})),r.map(function(G){var ee=G[c];ee||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),G);var Q=m?j==null?void 0:j[c]:j;E==="number"&&(Q=Number(Q));var ae=Q===ee;return P.createElement(kE,ir(ln({},O),{control:N.jsx(mQ,{sx:{color:H?_.palette.error.main:void 0},disabled:S,checked:ae}),value:ee,label:G[l],key:ee}))})]}),X&&N.jsx(Xy,{children:X})]})});bdt.displayName="RadioButtonGroup";var ydt=P.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,s=Hs(e,["name","control","switchProps","transform"]),a=dl({name:n,control:r,disabled:s.disabled}),l=a.field,u=fl({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(m,g){return g}}}),c=u.value,d=u.onChange,p=Vn(l.ref,i==null?void 0:i.ref);return N.jsx(kE,ln({ref:t,control:N.jsx(D3e,ir(ln({},i),{name:l.name,value:c,onChange:function(m,g){d(m,g),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(m,g)},onBlur:function(m){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(m))},ref:p,checked:!!c}))},s))});ydt.displayName="SwitchElement";var vdt=P.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=Hs(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=Hde({name:n,control:i});return N.jsx(gdt,ir(ln({control:i},o),{ref:t,validation:{validate:function(a){return a===s||(r??"Password should match")}}}))});vdt.displayName="PasswordRepeatElement";var Odt=P.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,o=e.control,s=e.options,a=e.loading,l=e.showCheckbox,u=e.rules,c=e.loadingIndicator,d=e.required,p=e.multiple,m=e.label,g=e.parseError,v=e.transform,E=e.matchId,O=tu(),S=g||O,x=ln({},u,d&&{required:(u==null?void 0:u.required)||"This field is required"}),C=dl({name:i,control:o,disabled:r==null?void 0:r.disabled,rules:x}),I=C.field,_=C.fieldState,w=_.error,F=function(Z){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(Z):Ja(Z,"label")?"".concat(Z==null?void 0:Z.label):"".concat(Z)},M=function(Z,G){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(Z,G);var ee=Ja(Z,"id")?Z.id:Z,Q=Ja(G,"id")?G.id:G;return ee===Q},L=function(Z){return s.find(function(G){return E&&Ja(G,"id")?G.id===Z:M(G,Z)})},W=fl({value:I.value,onChange:I.onChange,transform:{input:typeof(v==null?void 0:v.input)=="function"?v.input:function(Z){var G;return p?(Array.isArray(Z)?Z:[]).map(L):(G=L(Z))!==null&&G!==void 0?G:null},output:typeof(v==null?void 0:v.output)=="function"?v.output:function(Z,G){if(p){var ee=Array.isArray(G)?G:[];return E?ee.map(function(Q){return Ja(Q,"id")?Q.id:Q}):ee}return E&&Ja(G,"id")?G.id:G}}}),H=W.value,q=W.onChange,j=Vn(I.ref,n==null?void 0:n.inputRef),z=c||N.jsx(op,{color:"inherit",size:20}),X;return N.jsx(zAe,ir(ln({},r),{value:H,loading:a,multiple:p,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:M,getOptionLabel:F,onChange:function(Z,G,ee,Q){q(Z,G,ee,Q),r!=null&&r.onChange&&r.onChange(Z,G,ee,Q)},ref:t,renderOption:(X=r==null?void 0:r.renderOption)!==null&&X!==void 0?X:l?function(Z,G,ee){var Q=ee.selected;return N.jsxs("li",ir(ln({},Z),{children:[N.jsx($2,{sx:{marginRight:1},checked:Q}),F(G)]}))}:void 0,onBlur:function(Z){I.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(Z)},renderInput:function(Z){return N.jsx(Kh,ir(ln({name:i,required:u!=null&&u.required?!0:d,label:m},n,Z),{error:!!w,InputLabelProps:ln({},Z.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:ln(ir(ln({},Z.InputProps),{endAdornment:N.jsxs(N.Fragment,{children:[a?z:null,Z.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:ln({},Z.inputProps,n==null?void 0:n.inputProps),helperText:w?typeof S=="function"?S(w):w.message:n==null?void 0:n.helperText,inputRef:j}))}}))});Odt.displayName="AutocompleteElement";var Edt=P.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,o=e.rules,s=o===void 0?{}:o,a=e.parseError,l=e.required,u=e.formControlProps,c=e.transform,d=Hs(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=tu(),m=a||p,g=ln({},s,l&&!s.required&&{required:"This field is required"}),v=dl({name:n,control:r,disabled:d.disabled,rules:g}),E=v.field,O=v.fieldState,S=O.error,x=O.invalid,C=fl({value:E.value,onChange:E.onChange,transform:c}),I=C.value,_=C.onChange,w=S?typeof m=="function"?m(S):S.message:null;return N.jsxs(Dc,ir(ln({error:x,required:l,fullWidth:!0},u),{ref:t,children:[i&&N.jsx(B2,{component:"legend",error:x,children:i}),N.jsx(p3e,ir(ln({},d),{value:I,onChange:_,valueLabelDisplay:d.valueLabelDisplay||"auto"})),w&&N.jsx(Xy,{error:x,children:w})]}))});Edt.displayName="SliderElement";var Sdt=P.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,o=e.required,s=e.name,a=e.control,l=e.rows,u=e.resizeStyle,c=e.inputRef,d=e.inputProps,p=e.transform,m=Hs(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),g=tu(),v=i||g,E=ln({},r,o&&!r.required&&{required:"This field is required"}),O=dl({name:s,control:a,rules:E,disabled:m.disabled}),S=O.field,x=O.fieldState,C=x.error,I=fl({value:S.value,onChange:S.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(M){return M??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(M){return M.target.value}}}),_=I.value,w=I.onChange,F=Vn(S.ref,c);return N.jsx(Kh,ir(ln({},m),{name:s,value:_,onChange:function(M){w(M),typeof m.onChange=="function"&&m.onChange(M)},onBlur:S.onBlur,required:o,error:!!C,helperText:C?typeof v=="function"?v(C):C.message:m.helperText,inputRef:F,multiline:!0,InputProps:{inputComponent:Fne,inputProps:ln({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});Sdt.displayName="TextareaAutosizeElement";var Q9={},Tdt=ho;Object.defineProperty(Q9,"__esModule",{value:!0});var epe=Q9.default=void 0,wdt=Tdt(mo()),xdt=N;epe=Q9.default=(0,wdt.default)((0,xdt.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const kdt=e=>{var p;const t=po(LT),n=po(dF),[r,i]=P.useState(null),[o,s]=P.useState(null),[a,l]=P.useState(!1),[u,c]=P.useState(!1),d=P.useCallback(async m=>{var S,x;l(!0),c(!1),s(null),i(null);const v=(x=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,content:m})})).body)==null?void 0:x.getReader();let E=!0,O="";for(;v;){const{done:C,value:I}=await v.read();if(l(!1),C)break;let _=new TextDecoder().decode(I);if(E){const w=_.split(` -`);s(w[0]),E=!1,_=w.slice(1).join(` -`)}O+=_,i(O)}c(!0)},[t.accessToken,(p=n.data)==null?void 0:p.id,e]);return{data:r,memoryKey:o,isLoading:a,isComplete:u,mutateAsync:d}},Cdt=e=>{var c;const t=po(LT),n=po(dF),[r,i]=P.useState(null),[o,s]=P.useState(!1),[a,l]=P.useState(!1),u=P.useCallback(async d=>{var v,E;if(!e)return;s(!0),l(!1),i(null);const m=(E=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(v=n.data)==null?void 0:v.id,memoryKey:e,content:d})})).body)==null?void 0:E.getReader();let g="";for(;m;){const{done:O,value:S}=await m.read();if(s(!1),O)break;const x=new TextDecoder().decode(S);g+=x,i(g)}l(!0)},[t.accessToken,(c=n.data)==null?void 0:c.id,e]);return{data:r,memoryKey:e,isLoading:o,isComplete:a,mutateAsync:u}},Qg={};Qg.write=async e=>{await navigator.clipboard.writeText(e)};Qg.read=async()=>navigator.clipboard.readText();Qg.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};Qg.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};function tpe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[i]=e[i]);return n}function uK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var npe=cn.createContext(),Rdt={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},yf={view:{default:20,dense:4},snackbar:{default:6,dense:2}},qm={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Wne,transitionDuration:{enter:225,exit:195}},XO=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Idt=function(t){return""+XO(t.vertical)+XO(t.horizontal)},Ddt=function(t){return Object.keys(t).filter(function(n){return!Rdt.container[n]}).reduce(function(n,r){var i;return ki({},n,(i={},i[r]=t[r],i))},{})},Gp={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},dC={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+XO(n)+XO(r)},toVariant:function(t){return"variant"+XO(t)}},ak=function(t){return!!t||t===0},cK=function(t){return typeof t=="number"||t===null},Ndt=function(t,n,r){return function(i){return i==="autoHideDuration"?cK(t.autoHideDuration)?t.autoHideDuration:cK(n.autoHideDuration)?n.autoHideDuration:qm.autoHideDuration:t[i]||n[i]||r[i]}};function WP(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),ki({},n,{},t,{},e)}var Pdt="SnackbarContent",rpe={root:Pdt+"-root"},Ldt=Ae("div")(function(e){var t,n,r=e.theme;return n={},n["&."+rpe.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),Mdt=P.forwardRef(function(e,t){var n=e.className,r=_h(e,["className"]);return cn.createElement(Ldt,Object.assign({ref:t,className:hS(rpe.root,n)},r))}),dK={right:"left",left:"right",bottom:"up",top:"down"},$dt=function(t){return t.horizontal!=="center"?dK[t.horizontal]:dK[t.vertical]},Fdt=function(t){return cn.createElement(Nh,Object.assign({},t),cn.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 - 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Bdt=function(t){return cn.createElement(Nh,Object.assign({},t),cn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Udt=function(t){return cn.createElement(Nh,Object.assign({},t),cn.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, +`));const t=L.useMemo(()=>B({},dot,e.localeText),[e.localeText]);return L.useMemo(()=>B({},e,{localeText:t}),[e,t])},ur=()=>Uc().utils,Wg=()=>Uc().defaultDates,ta=()=>Uc().localeText,im=e=>{const t=ur(),n=L.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function sfe(e){return Qt("MuiPickersToolbar",e)}Yt("MuiPickersToolbar",["root","content"]);const fot=e=>{const{classes:t,isLandscape:n}=e;return Vt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},sfe,t)},pot=Ie("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>B({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"})),hot=Ie("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"}}),_7=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:a,hidden:s,titleId:l}=r,u=r,c=fot(u);return s?null:N.jsxs(pot,{ref:n,className:dt(c.root,o),ownerState:u,children:[N.jsx($r,{color:"text.secondary",variant:"overline",id:l,children:a}),N.jsx(hot,{className:c.content,ownerState:u,children:i})]})});function mot(e){return Qt("MuiDatePickerToolbar",e)}Yt("MuiDatePickerToolbar",["root","title"]);const got=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],bot=e=>{const{classes:t}=e;return Vt({root:["root"],title:["title"]},mot,t)},yot=Ie(_7,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vot=Ie($r,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>B({},e.isLandscape&&{margin:"auto 16px auto auto"})),Oot=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l}=r,u=st(r,got),c=ur(),d=ta(),f=bot(r),m=L.useMemo(()=>{if(!i)return s;const v=uS(c,{format:a,views:l},!0);return c.formatByString(i,v)},[i,a,s,c,l]),g=r;return N.jsx(yot,B({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:f.root},u,{children:N.jsx(vot,{variant:"h4",align:o?"left":"center",ownerState:g,className:f.title,children:m})}))}),FT=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>B({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function lfe(e,t){var n,r,i,o;const a=ur(),s=Wg(),l=Nt({props:e,name:t}),u=L.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:B({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:FT(l.components);return B({},l,{localeText:u},T7({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:fs(a,l.minDate,s.minDate),maxDate:fs(a,l.maxDate,s.maxDate),slots:B({toolbar:Oot},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const Eot=Po(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Sot=Po(N.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Tot=Po(N.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),ufe=Po(N.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),wot=Po(N.jsxs(L.Fragment,{children:[N.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),N.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),xot=Po(N.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),kot=Po(N.jsxs(L.Fragment,{children:[N.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),N.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),Cot=Po(N.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function _ot(e){return Qt("MuiPickersArrowSwitcher",e)}Yt("MuiPickersArrowSwitcher",["root","spacer","button"]);const Aot=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Rot=["ownerState"],Iot=["ownerState"],Dot=Ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Not=Ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ZX=Ie(Xo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>B({},e.hidden&&{visibility:"hidden"})),Pot=e=>{const{classes:t}=e;return Vt({root:["root"],spacer:["spacer"],button:["button"]},_ot,t)},cfe=L.forwardRef(function(t,n){var r,i,o,a;const l=Di().direction==="rtl",u=Nt({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:d,slots:f,slotProps:m,isNextDisabled:g,isNextHidden:v,onGoToNext:S,nextLabel:O,isPreviousDisabled:E,isPreviousHidden:w,onGoToPrevious:k,previousLabel:A}=u,C=st(u,Aot),x=u,F=Pot(x),M={isDisabled:g,isHidden:v,goTo:S,label:O},P={isDisabled:E,isHidden:w,goTo:k,label:A},V=(r=f==null?void 0:f.previousIconButton)!=null?r:ZX,W=nr({elementType:V,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"end",onClick:P.goTo},ownerState:B({},x,{hidden:P.isHidden}),className:F.button}),G=(i=f==null?void 0:f.nextIconButton)!=null?i:ZX,j=nr({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:B({},x,{hidden:M.isHidden}),className:F.button}),z=(o=f==null?void 0:f.leftArrowIcon)!=null?o:Sot,X=nr({elementType:z,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Z=st(X,Rot),q=(a=f==null?void 0:f.rightArrowIcon)!=null?a:Tot,te=nr({elementType:q,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=st(te,Iot);return N.jsxs(Dot,B({ref:n,className:dt(F.root,d),ownerState:x},C,{children:[N.jsx(V,B({},W,{children:l?N.jsx(q,B({},Q)):N.jsx(z,B({},Z))})),c?N.jsx($r,{variant:"subtitle1",component:"span",children:c}):N.jsx(Not,{className:F.spacer,ownerState:x}),N.jsx(G,B({},j,{children:l?N.jsx(z,B({},Z)):N.jsx(q,B({},Q))}))]}))}),dS=36,WI=2,HI=320,Lot=280,QI=334,dfe=232,s1=48,Mot=Ie(VIe)({[`& .${x1.container}`]:{outline:0},[`& .${x1.paper}`]:{outline:0,minWidth:HI}}),$ot=Ie(r2e)({"&:first-of-type":{padding:0}});function Fot(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:Mot,u=(n=a==null?void 0:a.mobileTransition)!=null?n:Gf;return N.jsx(l,B({open:o,onClose:i},s==null?void 0:s.dialog,{TransitionComponent:u,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:N.jsx($ot,{children:r})}))}function Bot(e){return Qt("MuiPickersPopper",e)}Yt("MuiPickersPopper",["root","paper"]);function Hb(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Uot=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},pA=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?pA(t.shadowRoot):t:null},A7="@media (pointer: fine)",jot="@media (prefers-reduced-motion: reduce)",F0=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),XX=F0&&F0[1]?parseInt(F0[1],10):null,KX=F0&&F0[2]?parseInt(F0[2],10):null,zot=XX&&XX<10||KX&&KX<13||!1,ffe=()=>Ky(jot,{defaultMatches:!1})||zot,Vot=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Wot=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"]},Bot,t)},Hot=Ie(Zy,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Qot=Ie(ja,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>B({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function Yot(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=on(l=>{if(!o.current)return;const u=r.current;r.current=!1;const c=ci(i.current);if(!i.current||"clientX"in l&&Yot(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 L.useEffect(()=>{if(e){const l=ci(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]),L.useEffect(()=>{if(e){const l=ci(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}const qot=L.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=st(e,Vot),d=B({},i,{placement:r}),f=nr({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return N.jsx(n,B({},c,f,{onClick:m=>{var g;l(m),(g=f.onClick)==null||g.call(f,m)},onTouchStart:m=>{var g;u(m),(g=f.onTouchStart)==null||g.call(f,m)},ownerState:d,children:o}))});function Zot(e){var t,n,r,i;const o=Nt({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:d,open:f,role:m,placement:g,slots:v,slotProps:S,reduceAnimations:O}=o;L.useEffect(()=>{function te(Q){f&&(Q.key==="Escape"||Q.key==="Esc")&&d()}return document.addEventListener("keydown",te),()=>{document.removeEventListener("keydown",te)}},[d,f]);const E=L.useRef(null);L.useEffect(()=>{m==="tooltip"||u&&!u()||(f?E.current=pA(document):E.current&&E.current instanceof HTMLElement&&setTimeout(()=>{E.current instanceof HTMLElement&&E.current.focus()}))},[f,m,u]);const[w,k,A]=Got(f,c??d),C=L.useRef(null),x=Vn(C,l),F=Vn(x,w),M=o,P=Wot(M),V=ffe(),W=O??V,G=te=>{te.key==="Escape"&&(te.stopPropagation(),d())},j=((t=v==null?void 0:v.desktopTransition)!=null?t:W)?Gf:n_,z=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:Sne,X=(r=v==null?void 0:v.desktopPaper)!=null?r:Qot,Z=(i=v==null?void 0:v.popper)!=null?i:Hot,q=nr({elementType:Z,externalSlotProps:S==null?void 0:S.popper,additionalProps:{transition:!0,role:m,open:f,anchorEl:a,placement:g,onKeyDown:G},className:P.root,ownerState:o});return N.jsx(Z,B({},q,{children:({TransitionProps:te,placement:Q})=>N.jsx(z,B({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},S==null?void 0:S.desktopTrapFocus,{children:N.jsx(j,B({},te,S==null?void 0:S.desktopTransition,{children:N.jsx(qot,{PaperComponent:X,ownerState:M,popperPlacement:Q,ref:F,onPaperClick:k,onPaperTouchStart:A,paperClasses:P.paper,paperSlotProps:S==null?void 0:S.desktopPaper,children:s})}))}))}))}function Xot(e){return Qt("MuiPickersToolbarText",e)}const JX=Yt("MuiPickersToolbarText",["root","selected"]),Kot=["className","selected","value"],Jot=e=>{const{classes:t,selected:n}=e;return Vt({root:["root",n&&"selected"]},Xot,t)},eat=Ie($r,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${JX.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${JX.selected}`]:{color:(e.vars||e).palette.text.primary}})),R7=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=st(r,Kot),s=Jot(r);return N.jsx(eat,B({ref:n,className:dt(i,s.root),component:"span"},a,{children:o}))}),tat=["align","className","selected","typographyClassName","value","variant","width"],nat=e=>{const{classes:t}=e;return Vt({root:["root"]},sfe,t)},rat=Ie(Ma,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Il=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:u,width:c}=r,d=st(r,tat),f=nat(r);return N.jsx(rat,B({variant:"text",ref:n,className:dt(o,f.root)},c?{sx:{width:c}}:{},d,{children:N.jsx(R7,{align:i,className:s,variant:u,value:l,selected:a})}))}),I7=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var o,a;const s=ur(),l=L.useRef(n),u=(o=t??l.current)!=null?o:i.emptyValue,c=L.useMemo(()=>i.getTimezone(s,u),[s,i,u]),d=on(v=>c==null?v:i.setTimezone(s,c,v)),f=(a=e??c)!=null?a:"default",m=L.useMemo(()=>i.setTimezone(s,f,u),[i,s,f,u]),g=on((v,...S)=>{const O=d(v);r==null||r(O,...S)});return{value:m,handleValueChange:g,timezone:f}},Sv=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const[a,s]=ma({name:e,state:"value",controlled:n,default:r??o.emptyValue}),l=on((u,...c)=>{s(u),i==null||i(u,...c)});return I7({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})};function pfe(e,t,n,r){const{value:i,onError:o}=e,a=Uc(),s=L.useRef(r),l=t({adapter:a,value:i,props:e});return L.useEffect(()=>{o&&!n(l,s.current)&&o(l,i),s.current=l},[n,o,s,l,i]),l}const iat=e=>{const t=ur(),n=ta(),r=Uc(),o=Di().direction==="rtl",{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:c,internalProps:{value:d,defaultValue:f,referenceDate:m,onChange:g,format:v,formatDensity:S="dense",selectedSections:O,onSelectedSectionsChange:E,shouldRespectLeadingZeros:w=!1,timezone:k}}=e,{timezone:A,value:C,handleValueChange:x}=I7({timezone:k,value:d,defaultValue:f,onChange:g,valueManager:a}),F=L.useMemo(()=>iot(t,A),[t,A]),M=L.useCallback((le,ve=null)=>s.getSectionsFromValue(t,le,ve,o,ue=>YX(t,A,n,v,ue,S,w,o)),[s,v,n,o,w,t,S,A]),P=L.useMemo(()=>s.getValueStrFromSections(M(a.emptyValue),o),[s,M,a.emptyValue,o]),[V,W]=L.useState(()=>{const le=M(C),ve={sections:le,value:C,referenceValue:a.emptyValue,tempValueStrAndroid:null},ue=Zit(le),we=a.getInitialReferenceValue({referenceDate:m,value:C,utils:t,props:c,granularity:ue,timezone:A});return B({},ve,{referenceValue:we})}),[G,j]=ma({controlled:O,default:null,name:"useField",state:"selectedSectionIndexes"}),z=le=>{j(le),E==null||E(le),W(ve=>B({},ve,{selectedSectionQuery:null}))},X=L.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:V.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const le=V.sections.findIndex(ve=>ve.type===G);return{startIndex:le,endIndex:le}}return G},[G,V.sections]),Z=({value:le,referenceValue:ve,sections:ue})=>{if(W(ke=>B({},ke,{sections:ue,value:le,referenceValue:ve,tempValueStrAndroid:null})),a.areValuesEqual(t,V.value,le))return;const we={validationError:u({adapter:r,value:le,props:B({},c,{value:le,timezone:A})})};x(le,we)},q=(le,ve)=>{const ue=[...V.sections];return ue[le]=B({},ue[le],{value:ve,modified:!0}),nfe(ue,o)},te=()=>{Z({value:a.emptyValue,referenceValue:V.referenceValue,sections:M(a.emptyValue)})},Q=()=>{if(X==null)return;const le=V.sections[X.startIndex],ve=s.getActiveDateManager(t,V,le),we=ve.getSections(V.sections).filter(Me=>Me.value!=="").length===(le.value===""?0:1),ke=q(X.startIndex,""),Ue=we?null:t.date(new Date("")),et=ve.getNewValuesFromNewActiveDate(Ue);(Ue!=null&&!t.isValid(Ue))!=(ve.date!=null&&!t.isValid(ve.date))?Z(B({},et,{sections:ke})):W(Me=>B({},Me,et,{sections:ke,tempValueStrAndroid:null}))},se=le=>{const ve=(ke,Ue)=>{const et=t.parse(ke,v);if(et==null||!t.isValid(et))return null;const Me=YX(t,A,n,v,et,S,w,o);return qX(t,A,et,Me,Ue,!1)},ue=s.parseValueStr(le,V.referenceValue,ve),we=s.updateReferenceValue(t,ue,V.referenceValue);Z({value:ue,referenceValue:we,sections:M(ue,V.sections)})},he=({activeSection:le,newSectionValue:ve,shouldGoToNextSection:ue})=>{ue&&X&&X.startIndexB({},xe,Me,{sections:ke,tempValueStrAndroid:null}))},J=le=>W(ve=>B({},ve,{tempValueStrAndroid:le}));return L.useEffect(()=>{const le=M(V.value);W(ve=>B({},ve,{sections:le}))},[v,t.locale]),L.useEffect(()=>{let le=!1;a.areValuesEqual(t,V.value,C)?le=a.getTimezone(t,V.value)!==a.getTimezone(t,C):le=!0,le&&W(ve=>B({},ve,{value:C,referenceValue:s.updateReferenceValue(t,C,ve.referenceValue),sections:M(C)}))},[C]),{state:V,selectedSectionIndexes:X,setSelectedSections:z,clearValue:te,clearActiveSection:Q,updateSectionValue:he,updateValueFromValueStr:se,setTempAndroidValueStr:J,sectionsValueBoundaries:F,placeholder:P,timezone:A}},oat=5e3,Ib=e=>e.saveQuery!=null,aat=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const o=ur(),[a,s]=L.useState(null),l=on(()=>s(null));L.useEffect(()=>{var m;a!=null&&((m=e[a.sectionIndex])==null?void 0:m.type)!==a.sectionType&&l()},[e,a,l]),L.useEffect(()=>{if(a!=null){const m=setTimeout(()=>l(),oat);return()=>{window.clearTimeout(m)}}return()=>{}},[a,l]);const u=({keyPressed:m,sectionIndex:g},v,S)=>{const O=m.toLowerCase(),E=e[g];if(a!=null&&(!S||S(a.value))&&a.sectionIndex===g){const k=`${a.value}${O}`,A=v(k,E);if(!Ib(A))return s({sectionIndex:g,value:k,sectionType:E.type}),A}const w=v(O,E);return Ib(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:g,value:O,sectionType:E.type}),Ib(w)?null:w)},c=m=>{const g=(O,E,w)=>{const k=E.filter(A=>A.toLowerCase().startsWith(w));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},v=(O,E,w,k)=>{const A=C=>Jde(o,i,E.type,C);if(E.contentType==="letter")return g(E.format,A(E.format),O);if(w&&k!=null&&Kde(o,w).contentType==="letter"){const C=A(w),x=g(w,C,O);return Ib(x)?{saveQuery:!1}:B({},x,{sectionValue:k(x.sectionValue,C)})}return{saveQuery:!1}};return u(m,(O,E)=>{switch(E.type){case"month":{const w=k=>QX(o,k,o.formats.month,E.format);return v(O,E,o.formats.month,w)}case"weekDay":{const w=(k,A)=>A.indexOf(k).toString();return v(O,E,o.formats.weekday,w)}case"meridiem":return v(O,E);default:return{saveQuery:!1}}})},d=m=>{const g=(S,O)=>{const E=+`${S}`,w=n[O.type]({currentDate:null,format:O.format,contentType:O.contentType});if(E>w.maximum)return{saveQuery:!1};if(Ew.maximum||S.length===w.maximum.toString().length;return{sectionValue:tfe(o,i,E,w,O),shouldGoToNextSection:k}};return u(m,(S,O)=>{if(O.contentType==="digit"||O.contentType==="digit-with-letter")return g(S,O);if(O.type==="month"){const E=ife(o,i,"digit","month","MM"),w=g(S,{type:O.type,format:"MM",hasLeadingZerosInFormat:E,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ib(w))return w;const k=QX(o,w.sectionValue,"MM",O.format);return B({},w,{sectionValue:k})}if(O.type==="weekDay"){const E=g(S,O);if(Ib(E))return E;const w=VI(o,i,O.format)[Number(E.sectionValue)-1];return B({},E,{sectionValue:w})}return{saveQuery:!1}},S=>!Number.isNaN(Number(S)))};return{applyCharacterEditing:on(m=>{const g=e[m.sectionIndex],S=!Number.isNaN(Number(m.keyPressed))?d(m):c(m);S==null?r(null):t({activeSection:g,newSectionValue:S.sectionValue,shouldGoToNextSection:S.shouldGoToNextSection})}),resetCharacterQuery:l}},sat=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],D7=e=>{const t=ur(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:o,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:d,timezone:f}=iat(e),{inputRef:m,internalProps:g,internalProps:{readOnly:v=!1,unstableFieldRef:S,minutesStep:O},forwardedProps:{onClick:E,onKeyDown:w,onFocus:k,onBlur:A,onMouseUp:C,onPaste:x,error:F,clearable:M,onClear:P,disabled:V},fieldValueManager:W,valueManager:G,validator:j}=e,z=st(e.forwardedProps,sat),{applyCharacterEditing:X,resetCharacterQuery:Z}=aat({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:f}),q=L.useRef(null),te=Vn(m,q),Q=L.useRef(void 0),he=Di().direction==="rtl",J=L.useMemo(()=>sot(n.sections,he),[n.sections,he]),le=()=>{var oe;if(v){i(null);return}const ie=(oe=q.current.selectionStart)!=null?oe:0;let Fe;ie<=n.sections[0].startInInput||ie>=n.sections[n.sections.length-1].endInInput?Fe=1:Fe=n.sections.findIndex(je=>je.startInInput-je.startSeparator.length>ie);const Qe=Fe===-1?n.sections.length-1:Fe-1;i(Qe)},ve=on((oe,...ie)=>{oe.isDefaultPrevented()||(E==null||E(oe,...ie),le())}),ue=on(oe=>{C==null||C(oe),oe.preventDefault()}),we=on((...oe)=>{k==null||k(...oe);const ie=q.current;window.clearTimeout(Q.current),Q.current=setTimeout(()=>{!ie||ie!==q.current||r!=null||v||(ie.value.length&&Number(ie.selectionEnd)-Number(ie.selectionStart)===ie.value.length?i("all"):le())})}),ke=on((...oe)=>{A==null||A(...oe),i(null)}),Ue=on(oe=>{if(x==null||x(oe),v){oe.preventDefault();return}const ie=oe.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Fe=n.sections[r.startIndex],Qe=/^[a-zA-Z]+$/.test(ie),je=/^[0-9]+$/.test(ie),fe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ie);if(Fe.contentType==="letter"&&Qe||Fe.contentType==="digit"&&je||Fe.contentType==="digit-with-letter"&&fe){Z(),s({activeSection:Fe,newSectionValue:ie,shouldGoToNextSection:!0}),oe.preventDefault();return}if(Qe||je){oe.preventDefault();return}}oe.preventDefault(),Z(),l(ie)}),et=on(oe=>{if(v)return;const ie=oe.target.value;if(ie===""){Z(),o();return}const Fe=oe.nativeEvent.data,Qe=Fe&&Fe.length>1,je=Qe?Fe:ie,fe=m0(je);if(r==null||Qe){l(Qe?Fe:fe);return}let Oe;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&fe.length===1)Oe=fe;else{const ye=m0(W.getValueStrFromSections(n.sections,he));let Ce=-1,De=-1;for(let pt=0;ptft.end)return;const At=fe.length-ye.length+ft.end-m0(ft.endSeparator||"").length;Oe=fe.slice(ft.start+m0(ft.startSeparator||"").length,At)}if(Oe.length===0){aot()?u(je):(Z(),a());return}X({keyPressed:Oe,sectionIndex:r.startIndex})}),Me=on(oe=>{switch(w==null||w(oe),!0){case(oe.key==="a"&&(oe.ctrlKey||oe.metaKey)):{oe.preventDefault(),i("all");break}case oe.key==="ArrowRight":{if(oe.preventDefault(),r==null)i(J.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const ie=J.neighbors[r.startIndex].rightIndex;ie!==null&&i(ie)}break}case oe.key==="ArrowLeft":{if(oe.preventDefault(),r==null)i(J.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const ie=J.neighbors[r.startIndex].leftIndex;ie!==null&&i(ie)}break}case oe.key==="Delete":{if(oe.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?o():a(),Z();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(oe.key):{if(oe.preventDefault(),v||r==null)break;const ie=n.sections[r.startIndex],Fe=W.getActiveDateManager(t,n,ie),Qe=Jit(t,f,ie,oe.key,c,Fe.date,{minutesStep:O});s({activeSection:ie,newSectionValue:Qe,shouldGoToNextSection:!1});break}}});Ki(()=>{if(!q.current)return;if(r==null){q.current.scrollLeft&&(q.current.scrollLeft=0);return}const oe=n.sections[r.startIndex],ie=n.sections[r.endIndex];let Fe=oe.startInInput,Qe=ie.endInInput;if(r.shouldSelectBoundarySelectors&&(Fe-=oe.startSeparator.length,Qe+=ie.endSeparator.length),Fe!==q.current.selectionStart||Qe!==q.current.selectionEnd){const je=q.current.scrollTop;q.current===pA(document)&&q.current.setSelectionRange(Fe,Qe),q.current.scrollTop=je}});const qe=pfe(B({},g,{value:n.value,timezone:f}),j,G.isSameError,G.defaultErrorState),xe=L.useMemo(()=>F!==void 0?F:G.hasError(qe),[G,qe,F]);L.useEffect(()=>{!xe&&!r&&Z()},[n.referenceValue,r,xe]),L.useEffect(()=>(q.current&&q.current===document.activeElement&&i("all"),()=>window.clearTimeout(Q.current)),[]),L.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Z(),a())},[n.tempValueStrAndroid]);const Ze=L.useMemo(()=>{var oe;return(oe=n.tempValueStrAndroid)!=null?oe:W.getValueStrFromSections(n.sections,he)},[n.sections,W,n.tempValueStrAndroid,he]),Xe=L.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),it=q.current&&q.current===pA(document),Ot=G.areValuesEqual(t,n.value,G.emptyValue),tt=!it&&Ot;L.useImperativeHandle(S,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var oe,ie;const Fe=(oe=q.current.selectionStart)!=null?oe:0,Qe=(ie=q.current.selectionEnd)!=null?ie:0;if(Fe===0&&Qe===0)return null;const je=Fe<=n.sections[0].startInInput?1:n.sections.findIndex(fe=>fe.startInInput-fe.startSeparator.length>Fe);return je===-1?n.sections.length-1:je-1},setSelectedSections:oe=>i(oe)}));const pe=on((oe,...ie)=>{var Fe;oe.preventDefault(),P==null||P(oe,...ie),o(),q==null||(Fe=q.current)==null||Fe.focus(),i(0)});return B({placeholder:d,autoComplete:"off",disabled:!!V},z,{value:tt?"":Ze,inputMode:Xe,readOnly:v,onClick:ve,onFocus:we,onBlur:ke,onPaste:Ue,onChange:et,onKeyDown:Me,onMouseUp:ue,onClear:pe,error:xe,ref:te,clearable:!!(M&&!Ot&&!v&&!V)})},lat=({open:e,onOpen:t,onClose:n})=>{const r=L.useRef(typeof e=="boolean").current,[i,o]=L.useState(!1);L.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=L.useCallback(s=>{r||o(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:a}},uat=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},cat=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},dat=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},fat=({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:f}=e,{current:m}=L.useRef(l),{current:g}=L.useRef(s!==void 0),v=ur(),S=Uc(),[O,E]=ma({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:k}=lat(e),[A,C]=L.useState(()=>{let we;return s!==void 0?we=s:m!==void 0?we=m:we=t.emptyValue,{draft:we,lastPublishedValue:we,lastCommittedValue:we,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:x,handleValueChange:F}=I7({timezone:f,value:s,defaultValue:m,onChange:a,valueManager:t});pfe(B({},e,{value:A.draft,timezone:x}),i,t.isSameError,t.defaultErrorState);const M=on(we=>{const ke={action:we,dateState:A,hasChanged:qe=>!t.areValuesEqual(v,we.value,qe),isControlled:g,closeOnSelect:u},Ue=uat(ke),et=cat(ke),Me=dat(ke);if(C(qe=>B({},qe,{draft:we.value,lastPublishedValue:Ue?we.value:qe.lastPublishedValue,lastCommittedValue:et?we.value:qe.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Ue){const xe={validationError:we.name==="setValueFromField"?we.context.validationError:i({adapter:S,value:we.value,props:B({},e,{value:we.value,timezone:x})})};we.name==="setValueFromShortcut"&&we.shortcut!=null&&(xe.shortcut=we.shortcut),F(we.value,xe)}et&&o&&o(we.value),Me&&k(!1)});if(s!==void 0&&(A.lastControlledValue===void 0||!t.areValuesEqual(v,A.lastControlledValue,s))){const we=t.areValuesEqual(v,A.draft,s);C(ke=>B({},ke,{lastControlledValue:s},we?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const P=on(()=>{M({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),V=on(()=>{M({value:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),W=on(()=>{M({value:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=on(()=>{M({value:A.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),j=on(()=>{M({value:t.getTodayValue(v,x,n),name:"setValueFromAction",pickerAction:"today"})}),z=on(()=>k(!0)),X=on(()=>k(!1)),Z=on((we,ke="partial")=>M({name:"setValueFromView",value:we,selectionState:ke})),q=on((we,ke,Ue)=>M({name:"setValueFromShortcut",value:we,changeImportance:ke??"accept",shortcut:Ue})),te=on((we,ke)=>M({name:"setValueFromField",value:we,context:ke})),Q=on(we=>{E(we),d==null||d(we)}),se={onClear:P,onAccept:V,onDismiss:W,onCancel:G,onSetToday:j,onOpen:z,onClose:X},he={value:A.draft,onChange:te,selectedSections:O,onSelectedSectionsChange:Q},J=L.useMemo(()=>t.cleanValue(v,A.draft),[v,t,A.draft]),le={value:J,onChange:Z,onClose:X,open:w,onSelectedSectionsChange:Q},ue=B({},se,{value:J,onChange:Z,onSelectShortcut:q,isValid:we=>{const ke=i({adapter:S,value:we,props:B({},e,{value:we,timezone:x})});return!t.hasError(ke)}});return{open:w,fieldProps:he,viewProps:le,layoutProps:ue,actions:se}};function BT({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){var l,u;const c=L.useRef(n),d=L.useRef(i),f=L.useRef(i.includes(n)?n:i[0]),[m,g]=ma({name:"useViews",state:"view",controlled:r,default:f.current}),v=L.useRef(o?m:null),[S,O]=ma({name:"useViews",state:"focusedView",controlled:a,default:v.current});L.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(M=>!i.includes(M)))&&(g(i.includes(n)?n:i[0]),d.current=i,c.current=n)},[n,g,m,i]);const E=i.indexOf(m),w=(l=i[E-1])!=null?l:null,k=(u=i[E+1])!=null?u:null,A=on((M,P)=>{O(P?M:V=>M===V?null:V),s==null||s(M,P)}),C=on(M=>{A(M,!0),M!==m&&(g(M),t&&t(M))}),x=on(()=>{k&&C(k)}),F=on((M,P,V)=>{const W=P==="finish",G=V?i.indexOf(V){const{onChange:o,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:d,disableOpenPicker:f,viewRenderers:m,timezone:g}=e,v=st(e,pat),{view:S,setView:O,defaultView:E,focusedView:w,setFocusedView:k,setValueAndGoToNextView:A}=BT({view:void 0,views:u,openTo:c,onChange:o,onViewChange:d,autoFocus:i}),{hasUIView:C,viewModeLookup:x}=L.useMemo(()=>u.reduce((j,z)=>{let X;return f?X="field":m[z]!=null?X="UI":X="field",j.viewModeLookup[z]=X,X==="UI"&&(j.hasUIView=!0),j},{hasUIView:!1,viewModeLookup:{}}),[f,m,u]),F=L.useMemo(()=>u.reduce((j,z)=>m[z]!=null&&$y(z)?j+1:j,0),[m,u]),M=x[S],P=on(()=>M==="UI"),[V,W]=L.useState(M==="UI"?S:null);return V!==S&&x[S]==="UI"&&W(S),Ki(()=>{M==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(S)}))},[S]),Ki(()=>{if(!a)return;let j=S;M==="field"&&V!=null&&(j=V),j!==E&&x[j]==="UI"&&x[E]==="UI"&&(j=E),j!==S&&O(j),k(j,!0)},[a]),{hasUIView:C,shouldRestoreFocus:P,layoutProps:{views:u,view:V,onViewChange:O},renderCurrentView:()=>{if(V==null)return null;const j=m[V];return j==null?null:j(B({},v,n,t,{views:u,timezone:g,onChange:A,view:V,onViewChange:O,focusedView:w,onFocusedViewChange:k,showViewSwitcher:F>1,timeViewsCount:F}))}}};function eK(){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 mat=(e,t)=>{const[n,r]=L.useState(eK);return Ki(()=>{const o=()=>{r(eK())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Hb(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},gat=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=mat(n.views,i);return{layoutProps:B({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},bat=(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))}};bat(["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 hfe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:a,autoFocusView:s})=>{const l=fat({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=hat({props:e,inputRef:i,additionalViewProps:o,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=gat({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 mfe(e){return Qt("MuiPickersLayout",e)}const UP=Yt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),yat=["onAccept","onClear","onCancel","onSetToday","actions"];function vat(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=st(e,yat),s=ta();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return N.jsx(Ma,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return N.jsx(Ma,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return N.jsx(Ma,{onClick:t,children:s.okButtonLabel},u);case"today":return N.jsx(Ma,{onClick:i,children:s.todayButtonLabel},u);default:return null}});return N.jsx(qIe,B({},a,{children:l}))}const Oat=["items","changeImportance","isLandscape","onChange","isValid"],Eat=["getValue"];function Sat(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=st(e,Oat);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=st(s,Eat);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return N.jsx(Jne,B({dense:!0,sx:[{maxHeight:QI,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>N.jsx(Fb,{children:N.jsx(IF,B({},s))},s.label))}))}function Tat(e){return e.view!==null}const wat=e=>{const{classes:t,isLandscape:n}=e;return Vt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},mfe,t)},xat=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:d,onChange:f,onSelectShortcut:m,isValid:g,isLandscape:v,disabled:S,readOnly:O,children:E,components:w,componentsProps:k,slots:A,slotProps:C}=e,x=A??FT(w),F=C??k,M=wat(e),P=(t=x==null?void 0:x.actionBar)!=null?t:vat,V=nr({elementType:P,externalSlotProps:F==null?void 0:F.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:M.actionBar},ownerState:B({},e,{wrapperVariant:r})}),W=N.jsx(P,B({},V)),G=x==null?void 0:x.toolbar,j=nr({elementType:G,externalSlotProps:F==null?void 0:F.toolbar,additionalProps:{isLandscape:v,onChange:f,value:d,view:l,onViewChange:c,views:u,disabled:S,readOnly:O,className:M.toolbar},ownerState:B({},e,{wrapperVariant:r})}),z=Tat(j)&&G?N.jsx(G,B({},j)):null,X=E,Z=x==null?void 0:x.tabs,q=l&&Z?N.jsx(Z,B({view:l,onViewChange:c,className:M.tabs},F==null?void 0:F.tabs)):null,te=(n=x==null?void 0:x.shortcuts)!=null?n:Sat,Q=nr({elementType:te,externalSlotProps:F==null?void 0:F.shortcuts,additionalProps:{isValid:g,isLandscape:v,onChange:m,className:M.shortcuts},ownerState:{isValid:g,isLandscape:v,onChange:m,className:M.shortcuts,wrapperVariant:r}}),se=l&&te?N.jsx(te,B({},Q)):null;return{toolbar:z,content:X,tabs:q,actionBar:W,shortcuts:se}},kat=e=>{const{isLandscape:t,classes:n}=e;return Vt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},mfe,n)},gfe=Ie("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",[`& .${UP.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${UP.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${UP.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));gfe.propTypes={as:ee.elementType,ownerState:ee.shape({isLandscape:ee.bool.isRequired}).isRequired,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object])};const Cat=Ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),bfe=function(t){const n=Nt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=xat(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:f}=n,m=n,g=kat(m);return N.jsxs(gfe,{ref:d,sx:l,className:dt(u,g.root),ownerState:m,children:[c?s:r,c?r:s,N.jsx(Cat,{className:g.contentWrapper,children:f==="desktop"?N.jsxs(L.Fragment,{children:[i,o]}):N.jsxs(L.Fragment,{children:[o,i]})}),a]})};function _at(e,{disableFuture:t,maxDate:n,timezone:r}){const i=ur();return L.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 Aat(e,{disablePast:t,minDate:n,timezone:r}){const i=ur();return L.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 YI(e,t,n,r){const i=ur(),o=Git(e,i),a=L.useCallback(s=>{const l=e==null?null:qit(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const T$=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],w$=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],yfe=["minDateTime","maxDateTime"],Rat=[...T$,...w$,...yfe],Tv=e=>Rat.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),Iat=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],N7=(e,t)=>{const n=B({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return Iat.forEach(i),t==="date"?T$.forEach(i):t==="time"?w$.forEach(i):t==="date-time"&&(T$.forEach(i),w$.forEach(i),yfe.forEach(i)),{forwardedProps:n,internalProps:r}},Hg=({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=fs(n.utils,e.minDate,n.defaultDates.minDate),d=fs(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}},UT=({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,f=e.utils.dateWithTimezone(void 0,d),m=$T(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(i&&m(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,f)):return"disableFuture";case!!(u&&e.utils.isBefore(t,f)):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}},GI=({props:e,value:t,adapter:n})=>{const r=Hg({adapter:n,value:t,props:e});return r!==null?r:UT({adapter:n,value:t,props:e})};function Dat(e){return Qt("MuiPickersDay",e)}const Sm=Yt("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Nat=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Pat=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return Vt({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Dat,l)},vfe=({theme:e,ownerState:t})=>B({},e.typography.caption,{width:dS,height:dS,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Sm.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Sm.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}},[`&.${Sm.disabled}:not(.${Sm.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sm.disabled}&.${Sm.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${WI}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Sm.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Ofe=(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]},Lat=Ie(Gl,{name:"MuiPickersDay",slot:"Root",overridesResolver:Ofe})(vfe),Mat=Ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Ofe})(({theme:e,ownerState:t})=>B({},vfe({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),FO=()=>{},$at=L.forwardRef(function(t,n){const r=Nt({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:f,onFocus:m=FO,onBlur:g=FO,onKeyDown:v=FO,onMouseDown:S=FO,onMouseEnter:O=FO,outsideCurrentMonth:E,selected:w=!1,showDaysOutsideCurrentMonth:k=!1,children:A,today:C=!1}=r,x=st(r,Nat),F=B({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:w,showDaysOutsideCurrentMonth:k,today:C}),M=Pat(F),P=ur(),V=L.useRef(null),W=Vn(V,n);Ki(()=>{i&&!s&&!c&&!E&&V.current.focus()},[i,s,c,E]);const G=z=>{S(z),E&&z.preventDefault()},j=z=>{s||f(a),E&&z.currentTarget.focus(),d&&d(z)};return E&&!k?N.jsx(Mat,{className:dt(M.root,M.hiddenDaySpacingFiller,o),ownerState:F,role:x.role}):N.jsx(Lat,B({className:dt(M.root,o),ref:W,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:z=>v(z,a),onFocus:z=>m(z,a),onBlur:z=>g(z,a),onMouseEnter:z=>O(z,a),onClick:j,onMouseDown:G},x,{ownerState:F,children:A||P.format(a,"dayOfMonth")}))}),Fat=L.memo($at),Bat=e=>Qt("MuiPickersSlideTransition",e),du=Yt("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Uat=["children","className","reduceAnimations","slideDirection","transKey","classes"],jat=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Vt(r,Bat,t)},zat=Ie(SF,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${du["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${du["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${du.slideEnterActive}`]:t.slideEnterActive},{[`.${du.slideExit}`]:t.slideExit},{[`.${du["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${du["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},[`& .${du["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${du["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${du.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${du.slideExit}`]:{transform:"translate(0%)"},[`& .${du["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${du["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Vat(e){const t=Nt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=st(t,Uat),s=jat(t),l=Di();if(i)return N.jsx("div",{className:dt(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return N.jsx(zat,{className:dt(s.root,r),childFactory:c=>L.cloneElement(c,{classNames:u}),role:"presentation",children:N.jsx(Hxe,B({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}const Efe=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=Uc();return L.useCallback(u=>Hg({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])},Wat=e=>Qt("MuiDayCalendar",e);Yt("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Hat=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Qat=["ownerState"],Yat=e=>{const{classes:t}=e;return Vt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Wat,t)},Sfe=(dS+WI*2)*6,Gat=Ie("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qat=Ie("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Zat=Ie($r,{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})),Xat=Ie($r,{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})),Kat=Ie($r,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>B({},e.typography.caption,{width:dS,height:dS,padding:0,margin:`0 ${WI}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Jat=Ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Sfe}),est=Ie(Vat,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Sfe}),tst=Ie("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),nst=Ie("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${WI}px 0`,display:"flex",justifyContent:"center"});function rst(e){var t,n,r;let{parentProps:i,day:o,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=st(e,Hat);const{disabled:f,disableHighlightToday:m,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:v,components:S,componentsProps:O,slots:E,slotProps:w,timezone:k}=i,A=ur(),C=im(k),x=a!==null&&A.isSameDay(o,a),F=s.some(Z=>A.isSameDay(Z,o)),M=A.isSameDay(o,C),P=(t=(n=E==null?void 0:E.day)!=null?n:S==null?void 0:S.Day)!=null?t:Fat,V=nr({elementType:P,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:O==null?void 0:O.day,additionalProps:B({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:g,"data-timestamp":A.toJsDate(o).valueOf()},d),ownerState:B({},i,{day:o,selected:F})}),W=st(V,Qat),G=L.useMemo(()=>f||l(o),[f,l,o]),j=L.useMemo(()=>A.getMonth(o)!==u,[A,o,u]),z=L.useMemo(()=>{const Z=A.startOfMonth(A.setMonth(o,u));return v?A.isSameDay(o,A.startOfWeek(Z)):A.isSameDay(o,Z)},[u,o,v,A]),X=L.useMemo(()=>{const Z=A.endOfMonth(A.setMonth(o,u));return v?A.isSameDay(o,A.endOfWeek(Z)):A.isSameDay(o,Z)},[u,o,v,A]);return N.jsx(P,B({},W,{day:o,disabled:G,autoFocus:c&&x,today:M,outsideCurrentMonth:j,isFirstVisibleCell:z,isLastVisibleCell:X,selected:F,tabIndex:x?0:-1,"aria-selected":F,"aria-current":M?"date":void 0}))}function ist(e){const t=Nt({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:f=()=>N.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:g,disablePast:v,disableFuture:S,minDate:O,maxDate:E,shouldDisableDate:w,shouldDisableMonth:k,shouldDisableYear:A,dayOfWeekFormatter:C,hasFocus:x,onFocusedViewChange:F,gridLabelId:M,displayWeekNumber:P,fixedWeekNumber:V,autoFocus:W,timezone:G}=t,j=im(G),z=ur(),X=Yat(t),q=Di().direction==="rtl",te=C||((tt,pe)=>z.format(pe,"weekdayShort").charAt(0).toUpperCase()),Q=Efe({shouldDisableDate:w,shouldDisableMonth:k,shouldDisableYear:A,minDate:O,maxDate:E,disablePast:v,disableFuture:S,timezone:G}),se=ta(),[he,J]=ma({name:"DayCalendar",state:"hasFocus",controlled:x,default:W??!1}),[le,ve]=L.useState(()=>a||j),ue=on(tt=>{c||l(tt)}),we=tt=>{Q(tt)||(n(tt),ve(tt),F==null||F(!0),J(!0))},ke=on((tt,pe)=>{switch(tt.key){case"ArrowUp":we(z.addDays(pe,-7)),tt.preventDefault();break;case"ArrowDown":we(z.addDays(pe,7)),tt.preventDefault();break;case"ArrowLeft":{const oe=z.addDays(pe,q?1:-1),ie=z.addMonths(pe,q?1:-1),Fe=G1({utils:z,date:oe,minDate:q?oe:z.startOfMonth(ie),maxDate:q?z.endOfMonth(ie):oe,isDateDisabled:Q,timezone:G});we(Fe||oe),tt.preventDefault();break}case"ArrowRight":{const oe=z.addDays(pe,q?-1:1),ie=z.addMonths(pe,q?-1:1),Fe=G1({utils:z,date:oe,minDate:q?z.startOfMonth(ie):oe,maxDate:q?oe:z.endOfMonth(ie),isDateDisabled:Q,timezone:G});we(Fe||oe),tt.preventDefault();break}case"Home":we(z.startOfWeek(pe)),tt.preventDefault();break;case"End":we(z.endOfWeek(pe)),tt.preventDefault();break;case"PageUp":we(z.addMonths(pe,1)),tt.preventDefault();break;case"PageDown":we(z.addMonths(pe,-1)),tt.preventDefault();break}}),Ue=on((tt,pe)=>we(pe)),et=on((tt,pe)=>{he&&z.isSameDay(le,pe)&&(F==null||F(!1))}),Me=z.getMonth(i),qe=L.useMemo(()=>o.filter(tt=>!!tt).map(tt=>z.startOfDay(tt)),[z,o]),xe=Me,Ze=L.useMemo(()=>L.createRef(),[xe]),Xe=z.startOfWeek(j),it=L.useMemo(()=>{const tt=z.startOfMonth(i),pe=z.endOfMonth(i);return Q(le)||z.isAfterDay(le,pe)||z.isBeforeDay(le,tt)?G1({utils:z,date:le,minDate:tt,maxDate:pe,disablePast:v,disableFuture:S,isDateDisabled:Q,timezone:G}):le},[i,S,v,le,Q,z,G]),Ot=L.useMemo(()=>{const tt=z.setTimezone(i,G),pe=z.getWeekArray(tt);let oe=z.addMonths(tt,1);for(;V&&pe.length{pe.length{var oe;const ie=z.format(tt,"weekdayShort");return N.jsx(Zat,{variant:"caption",role:"columnheader","aria-label":z.format(z.addDays(Xe,pe),"weekday"),className:X.weekDayLabel,children:(oe=te==null?void 0:te(ie,tt))!=null?oe:ie},ie+pe.toString())})]}),s?N.jsx(Jat,{className:X.loadingContainer,children:f()}):N.jsx(est,B({transKey:xe,onExited:u,reduceAnimations:d,slideDirection:m,className:dt(r,X.slideTransition)},g,{nodeRef:Ze,children:N.jsx(tst,{ref:Ze,role:"rowgroup",className:X.monthContainer,children:Ot.map((tt,pe)=>N.jsxs(nst,{role:"row",className:X.weekContainer,"aria-rowindex":pe+1,children:[P&&N.jsx(Kat,{className:X.weekNumber,role:"rowheader","aria-label":se.calendarWeekNumberAriaLabelText(z.getWeekNumber(tt[0])),children:se.calendarWeekNumberText(z.getWeekNumber(tt[0]))}),tt.map((oe,ie)=>N.jsx(rst,{parentProps:t,day:oe,selectedDays:qe,focusableDay:it,onKeyDown:ke,onFocus:Ue,onBlur:et,onDaySelect:ue,isDateDisabled:Q,currentMonthNumber:Me,isViewFocused:he,"aria-colindex":ie+1},oe.toString()))]},`week-${tt[0]}`))})}))]})}const ost=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return B({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return B({},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 B({},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")}},ast=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:f}=e,m=im(f),g=ur(),v=L.useRef(ost(!!c,a,g)).current,S=L.useMemo(()=>{let F=null;return n?F=n:r&&(F=g.startOfMonth(r)),ea.getInitialReferenceValue({value:t,utils:g,timezone:f,props:e,referenceDate:F,granularity:hc.day})},[]),[O,E]=L.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:g.isValid(t)?t:m,currentMonth:g.startOfMonth(S),slideDirection:"left"}),w=L.useCallback(F=>{E(B({type:"changeMonth"},F)),u&&u(F.newMonth)},[u]),k=L.useCallback(F=>{const M=F;g.isSameMonth(M,O.currentMonth)||w({newMonth:g.startOfMonth(M),direction:g.isAfterDay(M,O.currentMonth)?"left":"right"})},[O.currentMonth,w,g]),A=Efe({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:i,disablePast:o,timezone:f}),C=L.useCallback(()=>{E({type:"finishMonthSwitchingAnimation"})},[]),x=on((F,M)=>{A(F)||E({type:"changeFocusedDay",focusedDay:F,withoutMonthSwitchingAnimation:M})});return{referenceDate:S,calendarState:O,changeMonth:k,changeFocusedDay:x,isDateDisabled:A,onMonthSwitchingAnimationEnd:C,handleChangeMonth:w}},sst=["props","getOpenDialogAriaText"],lst=["ownerState"],ust=["ownerState"],P7=e=>{var t,n,r,i,o;let{props:a,getOpenDialogAriaText:s}=e,l=st(e,sst);const{slots:u,slotProps:c,className:d,sx:f,format:m,formatDensity:g,timezone:v,name:S,label:O,inputRef:E,readOnly:w,disabled:k,autoFocus:A,localeText:C,reduceAnimations:x}=a,F=ur(),M=L.useRef(null),P=L.useRef(null),V=Ic(),W=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:G,actions:j,hasUIView:z,layoutProps:X,renderCurrentView:Z,shouldRestoreFocus:q,fieldProps:te}=hfe(B({},l,{props:a,inputRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),Q=(r=u.inputAdornment)!=null?r:CE,se=nr({elementType:Q,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),he=st(se,lst),J=(i=u.openPickerButton)!=null?i:Xo,le=nr({elementType:J,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:k||w,onClick:G?j.onClose:j.onOpen,"aria-label":s(te.value,F),edge:he.position},ownerState:a}),ve=st(le,ust),ue=u.openPickerIcon,we=u.field,ke=nr({elementType:we,externalSlotProps:c==null?void 0:c.field,additionalProps:B({},te,W&&{id:V},{readOnly:w,disabled:k,className:d,sx:f,format:m,formatDensity:g,timezone:v,label:O,name:S,autoFocus:A&&!a.open,focused:G?!0:void 0}),ownerState:a});z&&(ke.InputProps=B({},ke.InputProps,{ref:P,[`${he.position}Adornment`]:N.jsx(Q,B({},he,{children:N.jsx(J,B({},ve,{children:N.jsx(ue,B({},c==null?void 0:c.openPickerIcon))}))}))}));const Ue=B({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},ke.slots),et=(o=u.layout)!=null?o:bfe,Me=Vn(M,ke.inputRef,E);let qe=V;W&&(O?qe=`${V}-label`:qe=void 0);const xe=B({},c,{toolbar:B({},c==null?void 0:c.toolbar,{titleId:V}),popper:B({"aria-labelledby":qe},c==null?void 0:c.popper)});return{renderPicker:()=>N.jsxs(ofe,{localeText:C,children:[N.jsx(we,B({},ke,{slots:Ue,slotProps:xe,inputRef:Me})),N.jsx(Zot,B({role:"dialog",placement:"bottom-start",anchorEl:P.current},j,{open:G,slots:u,slotProps:xe,shouldRestoreFocus:q,reduceAnimations:x,children:N.jsx(et,B({},X,xe==null?void 0:xe.layout,{slots:u,slotProps:xe,children:Z()}))}))]})}},cst=e=>{var t,n,r;const i=ur(),o=Wg();return B({},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:fs(i,e.minDate,o.minDate),maxDate:fs(i,e.maxDate,o.maxDate)})},dst=({props:e,inputRef:t})=>{const n=cst(e),{forwardedProps:r,internalProps:i}=N7(n,"date");return D7({inputRef:t,forwardedProps:r,internalProps:i,valueManager:ea,fieldValueManager:C7,validator:Hg,valueType:"date"})},fst=["ownerState"],L7=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:o,components:a,componentsProps:s})=>{var l,u,c,d,f,m;const g=ta(),v=(l=(u=i==null?void 0:i.clearButton)!=null?u:a==null?void 0:a.ClearButton)!=null?l:Xo,S=nr({elementType:v,externalSlotProps:(c=o==null?void 0:o.clearButton)!=null?c:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:g.fieldClearLabel}}),O=st(S,fst),E=(d=(f=i==null?void 0:i.clearIcon)!=null?f:a==null?void 0:a.ClearIcon)!=null?d:Cot,w=nr({elementType:E,externalSlotProps:(m=o==null?void 0:o.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),k=B({},n,{endAdornment:N.jsxs(L.Fragment,{children:[e&&N.jsx(CE,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:N.jsx(v,B({},O,{onClick:r,children:N.jsx(E,B({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]})}),A=B({},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}},pst=["components","componentsProps","slots","slotProps","InputProps","inputProps"],hst=["inputRef"],mst=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Tfe=L.forwardRef(function(t,n){var r,i,o;const a=Nt({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:f}=a,m=st(a,pst),g=a,v=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Kh,S=nr({elementType:v,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:g}),{inputRef:O}=S,E=st(S,hst);E.inputProps=B({},f,E.inputProps),E.InputProps=B({},d,E.InputProps);const w=dst({props:E,inputRef:O}),{ref:k,onPaste:A,onKeyDown:C,inputMode:x,readOnly:F,clearable:M,onClear:P}=w,V=st(w,mst),{InputProps:W,fieldProps:G}=L7({onClear:P,clearable:M,fieldProps:V,InputProps:V.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return N.jsx(v,B({ref:n},G,{InputProps:B({},W,{readOnly:F}),inputProps:B({},V.inputProps,{inputMode:x,onPaste:A,onKeyDown:C,ref:k})}))}),gst=e=>Qt("MuiPickersFadeTransitionGroup",e);Yt("MuiPickersFadeTransitionGroup",["root"]);const bst=e=>{const{classes:t}=e;return Vt({root:["root"]},gst,t)},yst=Ie(SF,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function wfe(e){const t=Nt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=bst(t),s=Di();return i?n:N.jsx(yst,{className:dt(a.root,r),children:N.jsx(Gf,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function vst(e){return Qt("MuiPickersMonth",e)}const nk=Yt("MuiPickersMonth",["root","monthButton","disabled","selected"]),Ost=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],Est=e=>{const{disabled:t,selected:n,classes:r}=e;return Vt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},vst,r)},Sst=Ie("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"})),Tst=Ie("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${nk.disabled}`]:t.disabled},{[`&.${nk.selected}`]:t.selected}]})(({theme:e})=>B({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${nk.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${nk.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wst=L.memo(function(t){const n=Nt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:d,onBlur:f,"aria-current":m,"aria-label":g}=n,v=st(n,Ost),S=L.useRef(null),O=Est(n);return Ki(()=>{if(r){var E;(E=S.current)==null||E.focus()}},[r]),N.jsx(Sst,B({className:O.root,ownerState:n},v,{children:N.jsx(Tst,{ref:S,disabled:o,type:"button",role:"radio",tabIndex:o?-1:l,"aria-current":m,"aria-checked":a,"aria-label":g,onClick:E=>u(E,s),onKeyDown:E=>c(E,s),onFocus:E=>d(E,s),onBlur:E=>f(E,s),className:O.monthButton,ownerState:n,children:i})}))});function xst(e){return Qt("MuiMonthCalendar",e)}Yt("MuiMonthCalendar",["root"]);const kst=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],Cst=e=>{const{classes:t}=e;return Vt({root:["root"]},xst,t)};function _st(e,t){const n=ur(),r=Wg(),i=Nt({props:e,name:t});return B({disableFuture:!1,disablePast:!1},i,{minDate:fs(n,i.minDate,r.minDate),maxDate:fs(n,i.maxDate,r.maxDate)})}const Ast=Ie("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:HI,boxSizing:"border-box"}),Rst=L.forwardRef(function(t,n){const r=_st(t,"MuiMonthCalendar"),{className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:m,shouldDisableMonth:g,readOnly:v,disableHighlightToday:S,autoFocus:O=!1,onMonthFocus:E,hasFocus:w,onFocusedViewChange:k,monthsPerRow:A=3,timezone:C,gridLabelId:x}=r,F=st(r,kst),{value:M,handleValueChange:P,timezone:V}=Sv({name:"MonthCalendar",timezone:C,value:o,defaultValue:a,onChange:m,valueManager:ea}),W=im(V),G=qy(),j=ur(),z=L.useMemo(()=>ea.getInitialReferenceValue({value:M,utils:j,props:r,timezone:V,referenceDate:s,granularity:hc.month}),[]),X=r,Z=Cst(X),q=L.useMemo(()=>j.getMonth(W),[j,W]),te=L.useMemo(()=>M!=null?j.getMonth(M):S?null:j.getMonth(z),[M,j,S,z]),[Q,se]=L.useState(()=>te||q),[he,J]=ma({name:"MonthCalendar",state:"hasFocus",controlled:w,default:O??!1}),le=on(Me=>{J(Me),k&&k(Me)}),ve=L.useCallback(Me=>{const qe=j.startOfMonth(c&&j.isAfter(W,f)?W:f),xe=j.startOfMonth(u&&j.isBefore(W,d)?W:d),Ze=j.startOfMonth(Me);return j.isBefore(Ze,qe)||j.isAfter(Ze,xe)?!0:g?g(Ze):!1},[u,c,d,f,W,g,j]),ue=on((Me,qe)=>{if(v)return;const xe=j.setMonth(M??z,qe);P(xe)}),we=on(Me=>{ve(j.setMonth(M??z,Me))||(se(Me),le(!0),E&&E(Me))});L.useEffect(()=>{se(Me=>te!==null&&Me!==te?te:Me)},[te]);const ke=on((Me,qe)=>{switch(Me.key){case"ArrowUp":we((12+qe-3)%12),Me.preventDefault();break;case"ArrowDown":we((12+qe+3)%12),Me.preventDefault();break;case"ArrowLeft":we((12+qe+(G.direction==="ltr"?-1:1))%12),Me.preventDefault();break;case"ArrowRight":we((12+qe+(G.direction==="ltr"?1:-1))%12),Me.preventDefault();break}}),Ue=on((Me,qe)=>{we(qe)}),et=on((Me,qe)=>{Q===qe&&le(!1)});return N.jsx(Ast,B({ref:n,className:dt(Z.root,i),ownerState:X,role:"radiogroup","aria-labelledby":x},F,{children:w7(j,M??z).map(Me=>{const qe=j.getMonth(Me),xe=j.format(Me,"monthShort"),Ze=j.format(Me,"month"),Xe=qe===te,it=l||ve(Me);return N.jsx(wst,{selected:Xe,value:qe,onClick:ue,onKeyDown:ke,autoFocus:he&&qe===Q,disabled:it,tabIndex:qe===Q?0:-1,onFocus:Ue,onBlur:et,"aria-current":q===qe?"date":void 0,"aria-label":Ze,monthsPerRow:A,children:xe},xe)})}))});function Ist(e){return Qt("MuiPickersYear",e)}const rk=Yt("MuiPickersYear",["root","yearButton","selected","disabled"]),Dst=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],Nst=e=>{const{disabled:t,selected:n,classes:r}=e;return Vt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Ist,r)},Pst=Ie("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"})),Lst=Ie("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${rk.disabled}`]:t.disabled},{[`&.${rk.selected}`]:t.selected}]})(({theme:e})=>B({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${rk.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${rk.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Mst=L.memo(function(t){const n=Nt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:c,onKeyDown:d,onFocus:f,onBlur:m,"aria-current":g}=n,v=st(n,Dst),S=L.useRef(null),O=Nst(n);return L.useEffect(()=>{r&&S.current.focus()},[r]),N.jsx(Pst,B({className:dt(O.root,i),ownerState:n},v,{children:N.jsx(Lst,{ref:S,disabled:a,type:"button",role:"radio",tabIndex:a?-1:u,"aria-current":g,"aria-checked":s,onClick:E=>c(E,l),onKeyDown:E=>d(E,l),onFocus:E=>f(E,l),onBlur:E=>m(E,l),className:O.yearButton,ownerState:n,children:o})}))});function $st(e){return Qt("MuiYearCalendar",e)}Yt("MuiYearCalendar",["root"]);const Fst=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],Bst=e=>{const{classes:t}=e;return Vt({root:["root"]},$st,t)};function Ust(e,t){var n;const r=ur(),i=Wg(),o=Nt({props:e,name:t});return B({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:fs(r,o.minDate,i.minDate),maxDate:fs(r,o.maxDate,i.maxDate)})}const jst=Ie("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:HI,maxHeight:Lot,boxSizing:"border-box",position:"relative"}),zst=L.forwardRef(function(t,n){const r=Ust(t,"MuiYearCalendar"),{autoFocus:i,className:o,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:f,minDate:m,onChange:g,readOnly:v,shouldDisableYear:S,disableHighlightToday:O,onYearFocus:E,hasFocus:w,onFocusedViewChange:k,yearsPerRow:A,timezone:C,gridLabelId:x}=r,F=st(r,Fst),{value:M,handleValueChange:P,timezone:V}=Sv({name:"YearCalendar",timezone:C,value:a,defaultValue:s,onChange:g,valueManager:ea}),W=im(V),G=qy(),j=ur(),z=L.useMemo(()=>ea.getInitialReferenceValue({value:M,utils:j,props:r,timezone:V,referenceDate:l,granularity:hc.year}),[]),X=r,Z=Bst(X),q=L.useMemo(()=>j.getYear(W),[j,W]),te=L.useMemo(()=>M!=null?j.getYear(M):O?null:j.getYear(z),[M,j,O,z]),[Q,se]=L.useState(()=>te||q),[he,J]=ma({name:"YearCalendar",state:"hasFocus",controlled:w,default:i??!1}),le=on(xe=>{J(xe),k&&k(xe)}),ve=L.useCallback(xe=>{if(d&&j.isBeforeYear(xe,W)||c&&j.isAfterYear(xe,W)||m&&j.isBeforeYear(xe,m)||f&&j.isAfterYear(xe,f))return!0;if(!S)return!1;const Ze=j.startOfYear(xe);return S(Ze)},[c,d,f,m,W,S,j]),ue=on((xe,Ze)=>{if(v)return;const Xe=j.setYear(M??z,Ze);P(Xe)}),we=on(xe=>{ve(j.setYear(M??z,xe))||(se(xe),le(!0),E==null||E(xe))});L.useEffect(()=>{se(xe=>te!==null&&xe!==te?te:xe)},[te]);const ke=on((xe,Ze)=>{switch(xe.key){case"ArrowUp":we(Ze-A),xe.preventDefault();break;case"ArrowDown":we(Ze+A),xe.preventDefault();break;case"ArrowLeft":we(Ze+(G.direction==="ltr"?-1:1)),xe.preventDefault();break;case"ArrowRight":we(Ze+(G.direction==="ltr"?1:-1)),xe.preventDefault();break}}),Ue=on((xe,Ze)=>{we(Ze)}),et=on((xe,Ze)=>{Q===Ze&&le(!1)}),Me=L.useRef(null),qe=Vn(n,Me);return L.useEffect(()=>{if(i||Me.current===null)return;const xe=Me.current.querySelector('[tabindex="0"]');if(!xe)return;const Ze=xe.offsetHeight,Xe=xe.offsetTop,it=Me.current.clientHeight,Ot=Me.current.scrollTop,tt=Xe+Ze;Ze>it||Xe{const Ze=j.getYear(xe),Xe=Ze===te,it=u||ve(xe);return N.jsx(Mst,{selected:Xe,value:Ze,onClick:ue,onKeyDown:ke,autoFocus:he&&Ze===Q,disabled:it,tabIndex:Ze===Q?0:-1,onFocus:Ue,onBlur:et,"aria-current":q===Ze?"date":void 0,yearsPerRow:A,children:j.format(xe,"year")},j.format(xe,"year"))})}))}),Vst=e=>Qt("MuiPickersCalendarHeader",e),Wst=Yt("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Hst=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],Qst=["ownerState"],Yst=e=>{const{classes:t}=e;return Vt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Vst,t)},Gst=Ie("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}),qst=Ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>B({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Zst=Ie("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Xst=Ie(Xo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>B({marginRight:"auto"},e.view==="year"&&{[`.${Wst.switchViewIcon}`]:{transform:"rotate(180deg)"}})),Kst=Ie(Eot,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Jst=L.forwardRef(function(t,n){var r,i,o,a;const s=ta(),l=ur(),u=Nt({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:d,components:f,currentMonth:m,disabled:g,disableFuture:v,disablePast:S,maxDate:O,minDate:E,onMonthChange:w,onViewChange:k,view:A,reduceAnimations:C,views:x,labelId:F,className:M,timezone:P}=u,V=st(u,Hst),W=u,G=Yst(u),j=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:f==null?void 0:f.SwitchViewButton)!=null?r:Xst,z=nr({elementType:j,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(A)},ownerState:W,className:G.switchViewButton}),X=(o=(a=c==null?void 0:c.switchViewIcon)!=null?a:f==null?void 0:f.SwitchViewIcon)!=null?o:Kst,Z=nr({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:G.switchViewIcon}),q=st(Z,Qst),te=()=>w(l.addMonths(m,1),"left"),Q=()=>w(l.addMonths(m,-1),"right"),se=_at(m,{disableFuture:v,maxDate:O,timezone:P}),he=Aat(m,{disablePast:S,minDate:E,timezone:P}),J=()=>{if(!(x.length===1||!k||g))if(x.length===2)k(x.find(le=>le!==A)||x[0]);else{const le=x.indexOf(A)!==0?0:1;k(x[le])}};return x.length===1&&x[0]==="year"?null:N.jsxs(Gst,B({},V,{ownerState:W,className:dt(M,G.root),ref:n,children:[N.jsxs(qst,{role:"presentation",onClick:J,ownerState:W,"aria-live":"polite",className:G.labelContainer,children:[N.jsx(wfe,{reduceAnimations:C,transKey:l.format(m,"monthAndYear"),children:N.jsx(Zst,{id:F,ownerState:W,className:G.label,children:l.format(m,"monthAndYear")})}),x.length>1&&!g&&N.jsx(j,B({},z,{children:N.jsx(X,B({},q))}))]}),N.jsx(Gf,{in:A==="day",children:N.jsx(cfe,{slots:c,slotProps:d,onGoToPrevious:Q,isPreviousDisabled:he,previousLabel:s.previousMonth,onGoToNext:te,isNextDisabled:se,nextLabel:s.nextMonth})})]}))}),qI=Ie("div")({overflow:"hidden",width:HI,maxHeight:QI,display:"flex",flexDirection:"column",margin:"0 auto"}),elt=e=>Qt("MuiDateCalendar",e);Yt("MuiDateCalendar",["root","viewTransitionContainer"]);const tlt=["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"],nlt=e=>{const{classes:t}=e;return Vt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},elt,t)};function rlt(e,t){var n,r,i,o,a,s,l;const u=ur(),c=Wg(),d=ffe(),f=Nt({props:e,name:t});return B({},f,{loading:(n=f.loading)!=null?n:!1,disablePast:(r=f.disablePast)!=null?r:!1,disableFuture:(i=f.disableFuture)!=null?i:!1,openTo:(o=f.openTo)!=null?o:"day",views:(a=f.views)!=null?a:["year","day"],reduceAnimations:(s=f.reduceAnimations)!=null?s:d,renderLoading:(l=f.renderLoading)!=null?l:()=>N.jsx("span",{children:"..."}),minDate:fs(u,f.minDate,c.minDate),maxDate:fs(u,f.maxDate,c.maxDate)})}const ilt=Ie(qI,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:QI}),olt=Ie(wfe,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),xfe=L.forwardRef(function(t,n){var r,i,o;const a=ur(),s=Ic(),l=rlt(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:f,referenceDate:m,disableFuture:g,disablePast:v,defaultCalendarMonth:S,onChange:O,onYearChange:E,onMonthChange:w,reduceAnimations:k,shouldDisableDate:A,shouldDisableMonth:C,shouldDisableYear:x,view:F,views:M,openTo:P,className:V,disabled:W,readOnly:G,minDate:j,maxDate:z,disableHighlightToday:X,focusedView:Z,onFocusedViewChange:q,showDaysOutsideCurrentMonth:te,fixedWeekNumber:Q,dayOfWeekFormatter:se,components:he,componentsProps:J,slots:le,slotProps:ve,loading:ue,renderLoading:we,displayWeekNumber:ke,yearsPerRow:Ue,monthsPerRow:et,timezone:Me}=l,qe=st(l,tlt),{value:xe,handleValueChange:Ze,timezone:Xe}=Sv({name:"DateCalendar",timezone:Me,value:d,defaultValue:f,onChange:O,valueManager:ea}),{view:it,setView:Ot,focusedView:tt,setFocusedView:pe,goToNextView:oe,setValueAndGoToNextView:ie}=BT({view:F,views:M,openTo:P,onChange:Ze,onViewChange:c,autoFocus:u,focusedView:Z,onFocusedViewChange:q}),{referenceDate:Fe,calendarState:Qe,changeFocusedDay:je,changeMonth:fe,handleChangeMonth:Oe,isDateDisabled:ye,onMonthSwitchingAnimationEnd:Ce}=ast({value:xe,defaultCalendarMonth:S,referenceDate:m,reduceAnimations:k,onMonthChange:w,minDate:j,maxDate:z,shouldDisableDate:A,disablePast:v,disableFuture:g,timezone:Xe}),De=W&&xe||j,ft=W&&xe||z,_t=`${s}-grid-label`,At=tt!==null,pt=(r=(i=le==null?void 0:le.calendarHeader)!=null?i:he==null?void 0:he.CalendarHeader)!=null?r:Jst,Mt=nr({elementType:pt,externalSlotProps:(o=ve==null?void 0:ve.calendarHeader)!=null?o:J==null?void 0:J.calendarHeader,additionalProps:{views:M,view:it,currentMonth:Qe.currentMonth,onViewChange:Ot,onMonthChange:(Be,rt)=>Oe({newMonth:Be,direction:rt}),minDate:De,maxDate:ft,disabled:W,disablePast:v,disableFuture:g,reduceAnimations:k,timezone:Xe,labelId:_t,slots:le,slotProps:ve},ownerState:l}),ot=on(Be=>{const rt=a.startOfMonth(Be),Ne=a.endOfMonth(Be),wt=ye(Be)?G1({utils:a,date:Be,minDate:a.isBefore(j,rt)?rt:j,maxDate:a.isAfter(z,Ne)?Ne:z,disablePast:v,disableFuture:g,isDateDisabled:ye,timezone:Xe}):Be;wt?(ie(wt,"finish"),w==null||w(rt)):(oe(),fe(rt)),je(wt,!0)}),gt=on(Be=>{const rt=a.startOfYear(Be),Ne=a.endOfYear(Be),wt=ye(Be)?G1({utils:a,date:Be,minDate:a.isBefore(j,rt)?rt:j,maxDate:a.isAfter(z,Ne)?Ne:z,disablePast:v,disableFuture:g,isDateDisabled:ye,timezone:Xe}):Be;wt?(ie(wt,"finish"),E==null||E(wt)):(oe(),fe(rt)),je(wt,!0)}),$t=on(Be=>Ze(Be&&E$(a,Be,xe??Fe),"finish",it));L.useEffect(()=>{xe!=null&&a.isValid(xe)&&fe(xe)},[xe]);const Xt=l,vn=nlt(Xt),Cn={disablePast:v,disableFuture:g,maxDate:z,minDate:j},$n={disableHighlightToday:X,readOnly:G,disabled:W,timezone:Xe,gridLabelId:_t},qn=L.useRef(it);L.useEffect(()=>{qn.current!==it&&(tt===qn.current&&pe(it,!0),qn.current=it)},[tt,pe,it]);const Ae=L.useMemo(()=>[xe],[xe]);return N.jsxs(ilt,B({ref:n,className:dt(vn.root,V),ownerState:Xt},qe,{children:[N.jsx(pt,B({},Mt)),N.jsx(olt,{reduceAnimations:k,className:vn.viewTransitionContainer,transKey:it,ownerState:Xt,children:N.jsxs("div",{children:[it==="year"&&N.jsx(zst,B({},Cn,$n,{value:xe,onChange:gt,shouldDisableYear:x,hasFocus:At,onFocusedViewChange:Be=>pe("year",Be),yearsPerRow:Ue,referenceDate:Fe})),it==="month"&&N.jsx(Rst,B({},Cn,$n,{hasFocus:At,className:V,value:xe,onChange:ot,shouldDisableMonth:C,onFocusedViewChange:Be=>pe("month",Be),monthsPerRow:et,referenceDate:Fe})),it==="day"&&N.jsx(ist,B({},Qe,Cn,$n,{onMonthSwitchingAnimationEnd:Ce,onFocusedDayChange:je,reduceAnimations:k,selectedDays:Ae,onSelectedDaysChange:$t,shouldDisableDate:A,shouldDisableMonth:C,shouldDisableYear:x,hasFocus:At,onFocusedViewChange:Be=>pe("day",Be),showDaysOutsideCurrentMonth:te,fixedWeekNumber:Q,dayOfWeekFormatter:se,displayWeekNumber:ke,components:he,componentsProps:J,slots:le,slotProps:ve,loading:ue,renderLoading:we}))]})})]}))}),Mu=({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:f,minDate:m,maxDate:g,shouldDisableDate:v,shouldDisableMonth:S,shouldDisableYear:O,reduceAnimations:E,onMonthChange:w,monthsPerRow:k,onYearChange:A,yearsPerRow:C,defaultCalendarMonth:x,components:F,componentsProps:M,slots:P,slotProps:V,loading:W,renderLoading:G,disableHighlightToday:j,readOnly:z,disabled:X,showDaysOutsideCurrentMonth:Z,dayOfWeekFormatter:q,sx:te,autoFocus:Q,fixedWeekNumber:se,displayWeekNumber:he,timezone:J})=>N.jsx(xfe,{view:e,onViewChange:t,views:n.filter($0),focusedView:r&&$0(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:m,maxDate:g,shouldDisableDate:v,shouldDisableMonth:S,shouldDisableYear:O,reduceAnimations:E,onMonthChange:w,monthsPerRow:k,onYearChange:A,yearsPerRow:C,defaultCalendarMonth:x,components:F,componentsProps:M,slots:P,slotProps:V,loading:W,renderLoading:G,disableHighlightToday:j,readOnly:z,disabled:X,showDaysOutsideCurrentMonth:Z,dayOfWeekFormatter:q,sx:te,autoFocus:Q,fixedWeekNumber:se,displayWeekNumber:he,timezone:J}),kfe=L.forwardRef(function(t,n){var r,i,o,a;const s=ta(),l=ur(),u=lfe(t,"MuiDesktopDatePicker"),c=B({day:Mu,month:Mu,year:Mu},u.viewRenderers),d=B({},u,{viewRenderers:c,format:uS(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:B({openPickerIcon:ufe,field:Tfe},u.slots),slotProps:B({},u.slotProps,{field:m=>{var g;return B({},Gh((g=u.slotProps)==null?void 0:g.field,m),Tv(u),{ref:n})},toolbar:B({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:f}=P7({props:d,valueManager:ea,valueType:"date",getOpenDialogAriaText:(o=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:Hg});return f()});kfe.propTypes={autoFocus:ee.bool,className:ee.string,closeOnSelect:ee.bool,components:ee.object,componentsProps:ee.object,dayOfWeekFormatter:ee.func,defaultCalendarMonth:ee.any,defaultValue:ee.any,disabled:ee.bool,disableFuture:ee.bool,disableHighlightToday:ee.bool,disableOpenPicker:ee.bool,disablePast:ee.bool,displayWeekNumber:ee.bool,fixedWeekNumber:ee.number,format:ee.string,formatDensity:ee.oneOf(["dense","spacious"]),inputRef:Yy,label:ee.node,loading:ee.bool,localeText:ee.object,maxDate:ee.any,minDate:ee.any,monthsPerRow:ee.oneOf([3,4]),name:ee.string,onAccept:ee.func,onChange:ee.func,onClose:ee.func,onError:ee.func,onMonthChange:ee.func,onOpen:ee.func,onSelectedSectionsChange:ee.func,onViewChange:ee.func,onYearChange:ee.func,open:ee.bool,openTo:ee.oneOf(["day","month","year"]),orientation:ee.oneOf(["landscape","portrait"]),readOnly:ee.bool,reduceAnimations:ee.bool,referenceDate:ee.any,renderLoading:ee.func,selectedSections:ee.oneOfType([ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ee.number,ee.shape({endIndex:ee.number.isRequired,startIndex:ee.number.isRequired})]),shouldDisableDate:ee.func,shouldDisableMonth:ee.func,shouldDisableYear:ee.func,showDaysOutsideCurrentMonth:ee.bool,slotProps:ee.object,slots:ee.object,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object]),timezone:ee.string,value:ee.any,view:ee.oneOf(["day","month","year"]),viewRenderers:ee.shape({day:ee.func,month:ee.func,year:ee.func}),views:ee.arrayOf(ee.oneOf(["day","month","year"]).isRequired),yearsPerRow:ee.oneOf([3,4])};const alt=["props","getOpenDialogAriaText"],M7=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,a=st(e,alt);const{slots:s,slotProps:l,className:u,sx:c,format:d,formatDensity:f,timezone:m,name:g,label:v,inputRef:S,readOnly:O,disabled:E,localeText:w}=i,k=ur(),A=L.useRef(null),C=Ic(),x=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:F,actions:M,layoutProps:P,renderCurrentView:V,fieldProps:W}=hfe(B({},a,{props:i,inputRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),G=s.field,j=nr({elementType:G,externalSlotProps:l==null?void 0:l.field,additionalProps:B({},W,x&&{id:C},!(E||O)&&{onClick:M.onOpen,onKeyDown:Uot(M.onOpen)},{readOnly:O??!0,disabled:E,className:u,sx:c,format:d,formatDensity:f,timezone:m,label:v,name:g}),ownerState:i});j.inputProps=B({},j.inputProps,{"aria-label":o(W.value,k)});const z=B({textField:s.textField},j.slots),X=(r=s.layout)!=null?r:bfe,Z=Vn(A,j.inputRef,S);let q=C;x&&(v?q=`${C}-label`:q=void 0);const te=B({},l,{toolbar:B({},l==null?void 0:l.toolbar,{titleId:C}),mobilePaper:B({"aria-labelledby":q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>N.jsxs(ofe,{localeText:w,children:[N.jsx(G,B({},j,{slots:z,slotProps:te,inputRef:Z})),N.jsx(Fot,B({},M,{open:F,slots:s,slotProps:te,children:N.jsx(X,B({},P,te==null?void 0:te.layout,{slots:s,slotProps:te,children:V()}))}))]})}},$7=L.forwardRef(function(t,n){var r,i,o;const a=ta(),s=ur(),l=lfe(t,"MuiMobileDatePicker"),u=B({day:Mu,month:Mu,year:Mu},l.viewRenderers),c=B({},l,{viewRenderers:u,format:uS(s,l,!1),slots:B({field:Tfe},l.slots),slotProps:B({},l.slotProps,{field:f=>{var m;return B({},Gh((m=l.slotProps)==null?void 0:m.field,f),Tv(l),{ref:n})},toolbar:B({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=M7({props:c,valueManager:ea,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:Hg});return d()});$7.propTypes={autoFocus:ee.bool,className:ee.string,closeOnSelect:ee.bool,components:ee.object,componentsProps:ee.object,dayOfWeekFormatter:ee.func,defaultCalendarMonth:ee.any,defaultValue:ee.any,disabled:ee.bool,disableFuture:ee.bool,disableHighlightToday:ee.bool,disableOpenPicker:ee.bool,disablePast:ee.bool,displayWeekNumber:ee.bool,fixedWeekNumber:ee.number,format:ee.string,formatDensity:ee.oneOf(["dense","spacious"]),inputRef:Yy,label:ee.node,loading:ee.bool,localeText:ee.object,maxDate:ee.any,minDate:ee.any,monthsPerRow:ee.oneOf([3,4]),name:ee.string,onAccept:ee.func,onChange:ee.func,onClose:ee.func,onError:ee.func,onMonthChange:ee.func,onOpen:ee.func,onSelectedSectionsChange:ee.func,onViewChange:ee.func,onYearChange:ee.func,open:ee.bool,openTo:ee.oneOf(["day","month","year"]),orientation:ee.oneOf(["landscape","portrait"]),readOnly:ee.bool,reduceAnimations:ee.bool,referenceDate:ee.any,renderLoading:ee.func,selectedSections:ee.oneOfType([ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ee.number,ee.shape({endIndex:ee.number.isRequired,startIndex:ee.number.isRequired})]),shouldDisableDate:ee.func,shouldDisableMonth:ee.func,shouldDisableYear:ee.func,showDaysOutsideCurrentMonth:ee.bool,slotProps:ee.object,slots:ee.object,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object]),timezone:ee.string,value:ee.any,view:ee.oneOf(["day","month","year"]),viewRenderers:ee.shape({day:ee.func,month:ee.func,year:ee.func}),views:ee.arrayOf(ee.oneOf(["day","month","year"]).isRequired),yearsPerRow:ee.oneOf([3,4])};const slt=["desktopModeMediaQuery"],llt=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=A7}=r,o=st(r,slt);return Ky(i,{defaultMatches:!0})?N.jsx(kfe,B({ref:n},o)):N.jsx($7,B({ref:n},o))}),ult=e=>{var t,n,r,i,o,a,s,l;const u=ur(),c=Wg(),f=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return B({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:f,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:fs(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:fs(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})},clt=({props:e,inputRef:t})=>{const n=ult(e),{forwardedProps:r,internalProps:i}=N7(n,"date-time");return D7({inputRef:t,forwardedProps:r,internalProps:i,valueManager:ea,fieldValueManager:C7,validator:GI,valueType:"date-time"})},dlt=["components","componentsProps","slots","slotProps","InputProps","inputProps"],flt=["inputRef"],plt=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Cfe=L.forwardRef(function(t,n){var r,i,o;const a=Nt({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:f}=a,m=st(a,dlt),g=a,v=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Kh,S=nr({elementType:v,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:g}),{inputRef:O}=S,E=st(S,flt);E.inputProps=B({},f,E.inputProps),E.InputProps=B({},d,E.InputProps);const w=clt({props:E,inputRef:O}),{ref:k,onPaste:A,onKeyDown:C,inputMode:x,readOnly:F,clearable:M,onClear:P}=w,V=st(w,plt),{InputProps:W,fieldProps:G}=L7({onClear:P,clearable:M,fieldProps:V,InputProps:V.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return N.jsx(v,B({ref:n},G,{InputProps:B({},W,{readOnly:F}),inputProps:B({},V.inputProps,{inputMode:x,onPaste:A,onKeyDown:C,ref:k})}))});function hlt(e){return Qt("MuiDateTimePickerTabs",e)}Yt("MuiDateTimePickerTabs",["root"]);const mlt=e=>$0(e)?"date":"time",glt=e=>e==="date"?"day":"hours",blt=e=>{const{classes:t}=e;return Vt({root:["root"]},hlt,t)},ylt=Ie(pMe,{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}`,[`& .${Pk.indicator}`]:{bottom:"auto",top:0}}})),vlt=function(t){const n=Nt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=N.jsx(xot,{}),onViewChange:i,timeIcon:o=N.jsx(kot,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667,className:l}=n,u=ta(),c=blt(n),d=(f,m)=>{i(glt(m))};return s?null:N.jsxs(ylt,{ownerState:n,variant:"fullWidth",value:mlt(a),onChange:d,className:dt(l,c.root),children:[N.jsx(bQ,{value:"date","aria-label":u.dateTableLabel,icon:N.jsx(L.Fragment,{children:r})}),N.jsx(bQ,{value:"time","aria-label":u.timeTableLabel,icon:N.jsx(L.Fragment,{children:o})})]})};function Olt(e){return Qt("MuiDateTimePickerToolbar",e)}const jP=Yt("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Elt=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],Slt=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 Vt(i,Olt,t)},_fe=Ie(_7,{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"}));_fe.propTypes={as:ee.elementType,classes:ee.object,className:ee.string,isLandscape:ee.bool.isRequired,isMobileKeyboardViewOpen:ee.bool,landscapeDirection:ee.oneOf(["column","row"]),ownerState:ee.object.isRequired,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object]),toggleMobileKeyboardView:ee.func,toolbarTitle:ee.node,viewType:ee.oneOf(["date","time"])};const Tlt=Ie("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Afe=Ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return B({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&B({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),wlt=Ie("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>B({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Afe.propTypes={as:ee.elementType,ownerState:ee.object.isRequired,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object])};const tK=Ie(R7,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),xlt=Ie("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${jP.ampmLabel}`]:t.ampmLabel},{[`&.${jP.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>B({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${jP.ampmLabel}`]:{fontSize:17}}));function klt(e){const t=Nt({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:f,readOnly:m,toolbarVariant:g="mobile"}=t,v=st(t,Elt),S=t,O=ur(),{meridiemMode:E,handleMeridiemChange:w}=YI(i,n,o),k=!!(n&&!r),A=g==="desktop",C=ta(),x=Di(),F=Slt(B({},S,{theme:x})),M=V=>n?O.format(V,"hours12h"):O.format(V,"hours24h"),P=L.useMemo(()=>i?u?O.formatByString(i,u):O.format(i,"shortDate"):c,[i,u,c,O]);return N.jsxs(_fe,B({toolbarTitle:C.dateTimePickerToolbarTitle,isLandscape:s,className:F.root},v,{ownerState:S,children:[N.jsxs(Tlt,{className:F.dateContainer,ownerState:S,children:[d.includes("year")&&N.jsx(Il,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?O.format(i,"year"):"–"}),d.includes("day")&&N.jsx(Il,{tabIndex:-1,variant:A?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:P})]}),N.jsxs(Afe,{className:F.timeContainer,ownerState:S,children:[N.jsxs(wlt,{className:F.timeDigitsContainer,ownerState:S,children:[d.includes("hours")&&N.jsx(Il,{variant:A?"h5":"h3",width:A&&!s?s1:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?M(i):"--"}),d.includes("minutes")&&N.jsxs(L.Fragment,{children:[N.jsx(tK,{variant:A?"h5":"h3",value:":",className:F.separator,ownerState:S}),N.jsx(Il,{variant:A?"h5":"h3",width:A&&!s?s1:void 0,onClick:()=>l("minutes"),selected:a==="minutes",value:i?O.format(i,"minutes"):"--"})]}),d.includes("seconds")&&N.jsxs(L.Fragment,{children:[N.jsx(tK,{variant:A?"h5":"h3",value:":",className:F.separator,ownerState:S}),N.jsx(Il,{variant:A?"h5":"h3",width:A&&!s?s1:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?O.format(i,"seconds"):"--"})]})]}),k&&!A&&N.jsxs(xlt,{className:F.ampmSelection,ownerState:S,children:[N.jsx(Il,{variant:"subtitle2",selected:E==="am",typographyClassName:F.ampmLabel,value:yc(O,"am"),onClick:m?void 0:()=>w("am"),disabled:f}),N.jsx(Il,{variant:"subtitle2",selected:E==="pm",typographyClassName:F.ampmLabel,value:yc(O,"pm"),onClick:m?void 0:()=>w("pm"),disabled:f})]}),n&&A&&N.jsx(Il,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&E?yc(O,E):"--",width:s1})]})]}))}function Rfe(e,t){var n,r,i,o,a,s,l,u,c,d,f;const m=ur(),g=Wg(),v=Nt({props:e,name:t}),S=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),O=L.useMemo(()=>{var k;return((k=v.localeText)==null?void 0:k.toolbarTitle)==null?v.localeText:B({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),E=(r=v.slots)!=null?r:FT(v.components),w=(i=v.slotProps)!=null?i:v.componentsProps;return B({},v,T7({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:S,localeText:O,orientation:(o=v.orientation)!=null?o:"portrait",disableIgnoringDatePartForTimeValidation:(a=v.disableIgnoringDatePartForTimeValidation)!=null?a:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:fs(m,(u=v.minDateTime)!=null?u:v.minDate,g.minDate),maxDate:fs(m,(c=v.maxDateTime)!=null?c:v.maxDate,g.maxDate),minTime:(d=v.minDateTime)!=null?d:v.minTime,maxTime:(f=v.maxDateTime)!=null?f:v.maxTime,slots:B({toolbar:klt,tabs:vlt},E),slotProps:B({},w,{toolbar:B({ampm:S},w==null?void 0:w.toolbar)})})}function Clt(e){return Qt("MuiMultiSectionDigitalClock",e)}Yt("MuiMultiSectionDigitalClock",["root"]);function _lt(e){return Qt("MuiMultiSectionDigitalClockSection",e)}const Alt=Yt("MuiMultiSectionDigitalClockSection",["root","item"]),Rlt=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Ilt=e=>{const{classes:t}=e;return Vt({root:["root"],item:["item"]},_lt,t)},Dlt=Ie(Jy,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:dfe,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)"}})),Nlt=Ie(Lh,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:s1,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity)}})),Plt=L.forwardRef(function(t,n){var r;const i=L.useRef(null),o=Vn(n,i),a=L.useRef(null),s=Nt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:d,readOnly:f,items:m,active:g,slots:v,slotProps:S,skipDisabled:O}=s,E=st(s,Rlt),w=L.useMemo(()=>B({},s,{alreadyRendered:!!i.current}),[s]),k=Ilt(w),A=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:Nlt;return L.useEffect(()=>{if(i.current===null)return;const C=i.current.querySelector('[role="option"][aria-selected="true"]');if(g&&l&&C&&C.focus(),!C||a.current===C)return;a.current=C;const x=C.offsetTop;i.current.scrollTop=x-4}),N.jsx(Dlt,B({ref:o,className:dt(k.root,c),ownerState:w,autoFocusItem:l&&g,role:"listbox"},E,{children:m.map(C=>{var x,F;if(O&&(x=C.isDisabled)!=null&&x.call(C,C.value))return null;const M=C.isSelected(C.value);return N.jsx(A,B({onClick:()=>!f&&u(C.value),selected:M,disabled:d||((F=C.isDisabled)==null?void 0:F.call(C,C.value)),disableRipple:f,role:"option","aria-disabled":f,"aria-label":C.ariaLabel,"aria-selected":M,className:k.item},S==null?void 0:S.digitalClockSectionItem,{children:C.label}),C.label)})}))}),Llt=({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 f=n.format(n.setHours(e,d),r?"hours12h":"hours24h");const m=o(parseInt(f,10).toString());f=n.formatNumber(f),l.push({value:d,label:f,isSelected:u,isDisabled:i,ariaLabel:m})}return l},nK=({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())}})]},F7=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=L.useMemo(()=>ea.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:hc.day,timezone:i,getTodayDate:()=>x7(n,i,"date")}),[]);return e??o},Mlt=["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"],$lt=e=>{const{classes:t}=e;return Vt({root:["root"]},Clt,t)},Flt=Ie(qI,{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}`})),Blt=L.forwardRef(function(t,n){const r=ur(),i=Nt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:f,defaultValue:m,referenceDate:g,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:S,minTime:O,disableFuture:E,disablePast:w,minutesStep:k=1,shouldDisableClock:A,shouldDisableTime:C,onChange:x,view:F,views:M=["hours","minutes"],openTo:P,onViewChange:V,focusedView:W,onFocusedViewChange:G,className:j,disabled:z,readOnly:X,skipDisabled:Z=!1,timezone:q}=i,te=st(i,Mlt),{value:Q,handleValueChange:se,timezone:he}=Sv({name:"MultiSectionDigitalClock",timezone:q,value:f,defaultValue:m,onChange:x,valueManager:ea}),J=ta(),le=im(he),ve=L.useMemo(()=>B({hours:1,minutes:5,seconds:5},a),[a]),ue=F7({value:Q,referenceDate:g,utils:r,props:i,timezone:he}),we=on((oe,ie,Fe)=>se(oe,ie,Fe)),ke=L.useMemo(()=>!o||!M.includes("hours")||M.includes("meridiem")?M:[...M,"meridiem"],[o,M]),{view:Ue,setValueAndGoToNextView:et,focusedView:Me}=BT({view:F,views:ke,openTo:P,onViewChange:V,onChange:we,focusedView:W,onFocusedViewChange:G}),qe=on(oe=>{et(oe,"finish","meridiem")}),{meridiemMode:xe,handleMeridiemChange:Ze}=YI(ue,o,qe,"finish"),Xe=L.useCallback((oe,ie)=>{const Fe=$T(v,r),Qe=ie==="hours"||ie==="minutes"&&ke.includes("seconds"),je=({start:Oe,end:ye})=>!(O&&Fe(O,ye)||S&&Fe(Oe,S)||E&&Fe(Oe,le)||w&&Fe(le,Qe?ye:Oe)),fe=(Oe,ye=1)=>{if(Oe%ye!==0||A!=null&&A(Oe,ie))return!1;if(C)switch(ie){case"hours":return!C(r.setHours(ue,Oe),"hours");case"minutes":return!C(r.setMinutes(ue,Oe),"minutes");case"seconds":return!C(r.setSeconds(ue,Oe),"seconds");default:return!1}return!0};switch(ie){case"hours":{const Oe=cS(oe,xe,o),ye=r.setHours(ue,Oe),Ce=r.setSeconds(r.setMinutes(ye,0),0),De=r.setSeconds(r.setMinutes(ye,59),59);return!je({start:Ce,end:De})||!fe(Oe)}case"minutes":{const Oe=r.setMinutes(ue,oe),ye=r.setSeconds(Oe,0),Ce=r.setSeconds(Oe,59);return!je({start:ye,end:Ce})||!fe(oe,k)}case"seconds":{const Oe=r.setSeconds(ue,oe);return!je({start:Oe,end:Oe})||!fe(oe)}default:throw new Error("not supported")}},[o,ue,v,S,xe,O,k,A,C,r,E,w,le,ke]),it=L.useCallback(oe=>{switch(oe){case"hours":return{onChange:ie=>{const Fe=cS(ie,xe,o);et(r.setHours(ue,Fe),"finish","hours")},items:Llt({now:le,value:Q,ampm:o,utils:r,isDisabled:ie=>z||Xe(ie,"hours"),timeStep:ve.hours,resolveAriaLabel:J.hoursClockNumberText})};case"minutes":return{onChange:ie=>{et(r.setMinutes(ue,ie),"finish","minutes")},items:nK({value:r.getMinutes(ue),utils:r,isDisabled:ie=>z||Xe(ie,"minutes"),resolveLabel:ie=>r.format(r.setMinutes(le,ie),"minutes"),timeStep:ve.minutes,hasValue:!!Q,resolveAriaLabel:J.minutesClockNumberText})};case"seconds":return{onChange:ie=>{et(r.setSeconds(ue,ie),"finish","seconds")},items:nK({value:r.getSeconds(ue),utils:r,isDisabled:ie=>z||Xe(ie,"seconds"),resolveLabel:ie=>r.format(r.setSeconds(le,ie),"seconds"),timeStep:ve.seconds,hasValue:!!Q,resolveAriaLabel:J.secondsClockNumberText})};case"meridiem":{const ie=yc(r,"am"),Fe=yc(r,"pm");return{onChange:Ze,items:[{value:"am",label:ie,isSelected:()=>!!Q&&xe==="am",ariaLabel:ie},{value:"pm",label:Fe,isSelected:()=>!!Q&&xe==="pm",ariaLabel:Fe}]}}default:throw new Error(`Unknown view: ${oe} found.`)}},[le,Q,o,r,ve.hours,ve.minutes,ve.seconds,J.hoursClockNumberText,J.minutesClockNumberText,J.secondsClockNumberText,xe,et,ue,z,Xe,Ze]),Ot=L.useMemo(()=>ke.reduce((oe,ie)=>B({},oe,{[ie]:it(ie)}),{}),[ke,it]),tt=i,pe=$lt(tt);return N.jsx(Flt,B({ref:n,className:dt(pe.root,j),ownerState:tt,role:"group"},te,{children:Object.entries(Ot).map(([oe,ie])=>N.jsx(Plt,{items:ie.items,onChange:ie.onChange,active:Ue===oe,autoFocus:s??Me===oe,disabled:z,readOnly:X,slots:c??l,slotProps:d??u,skipDisabled:Z,"aria-label":J.selectViewText(oe)},oe))}))}),Ult=Ie("div")({display:"flex",margin:"0 auto"});function jlt(e){return Qt("MuiTimeClock",e)}Yt("MuiTimeClock",["root","arrowSwitcher"]);const Fy=220,Md=36,fS={x:Fy/2,y:Fy/2},Ife={x:fS.x,y:0},zlt=Ife.x-fS.x,Vlt=Ife.y-fS.y,Wlt=e=>e*(180/Math.PI),Dfe=(e,t,n)=>{const r=t-fS.x,i=n-fS.y,o=Math.atan2(zlt,Vlt)-Math.atan2(r,i);let a=Wlt(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}},Hlt=(e,t,n=1)=>{const r=n*6;let{value:i}=Dfe(r,e,t);return i=i*n%60,i},Qlt=(e,t,n)=>{const{value:r,distance:i}=Dfe(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return Vt({root:["root"],thumb:["thumb"]},Ylt,t)},Zlt=Ie("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>B({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"])})),Xlt=Ie("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>B({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Md/2}px)`,border:`${(Md-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function Klt(e){const t=Nt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=st(t,Glt),s=L.useRef(i);L.useEffect(()=>{s.current=i},[i]);const l=B({},t,{shouldAnimate:s.current!==i}),u=qlt(l),c=()=>{let f=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(f-=360),{height:Math.round((r?.26:.4)*Fy),transform:`rotateZ(${f}deg)`}};return N.jsx(Zlt,B({style:c(),className:dt(n,u.root),ownerState:l},a,{children:N.jsx(Xlt,{ownerState:l,className:u.thumb})}))}function Jlt(e){return Qt("MuiClock",e)}Yt("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const eut=e=>{const{classes:t}=e;return Vt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},Jlt,t)},tut=Ie("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),nut=Ie("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"}),rut=Ie("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),iut=Ie("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>B({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"}})),out=Ie("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%)"})),aut=Ie(Xo,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>B({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Md},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}})),sut=Ie(Xo,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>B({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Md},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}})),rK=Ie($r,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function lut(e){const t=Nt({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:f,type:m,viewValue:g,disabled:v,readOnly:S,className:O}=t,E=t,w=ur(),k=ta(),A=L.useRef(!1),C=eut(E),x=l(g,m),F=!n&&m==="hours"&&(g<1||g>12),M=(te,Q)=>{v||S||l(te,m)||d(te,Q)},P=(te,Q)=>{let{offsetX:se,offsetY:he}=te;if(se===void 0){const le=te.target.getBoundingClientRect();se=te.changedTouches[0].clientX-le.left,he=te.changedTouches[0].clientY-le.top}const J=m==="seconds"||m==="minutes"?Hlt(se,he,c):Qlt(se,he,!!n);M(J,Q)},V=te=>{A.current=!0,P(te,"shallow")},W=te=>{A.current&&(P(te,"finish"),A.current=!1)},G=te=>{te.buttons>0&&P(te.nativeEvent,"shallow")},j=te=>{A.current&&(A.current=!1),P(te.nativeEvent,"finish")},z=L.useMemo(()=>m==="hours"?!0:g%5===0,[m,g]),X=m==="minutes"?c:1,Z=L.useRef(null);Ki(()=>{i&&Z.current.focus()},[i]);const q=te=>{if(!A.current)switch(te.key){case"Home":M(0,"partial"),te.preventDefault();break;case"End":M(m==="minutes"?59:23,"partial"),te.preventDefault();break;case"ArrowUp":M(g+X,"partial"),te.preventDefault();break;case"ArrowDown":M(g-X,"partial"),te.preventDefault();break}};return N.jsxs(tut,{className:dt(O,C.root),children:[N.jsxs(nut,{className:C.clock,children:[N.jsx(iut,{onTouchMove:V,onTouchEnd:W,onMouseUp:j,onMouseMove:G,ownerState:{disabled:v},className:C.squareMask}),!x&&N.jsxs(L.Fragment,{children:[N.jsx(out,{className:C.pin}),a!=null&&N.jsx(Klt,{type:m,viewValue:g,isInner:F,hasSelected:z})]}),N.jsx(rut,{"aria-activedescendant":f,"aria-label":k.clockLabelText(m,a,w),ref:Z,role:"listbox",onKeyDown:q,tabIndex:0,className:C.wrapper,children:o})]}),n&&r&&N.jsxs(L.Fragment,{children:[N.jsx(aut,{onClick:S?void 0:()=>s("am"),disabled:v||u===null,ownerState:E,className:C.amButton,title:yc(w,"am"),children:N.jsx(rK,{variant:"caption",className:C.meridiemText,children:yc(w,"am")})}),N.jsx(sut,{disabled:v||u===null,onClick:S?void 0:()=>s("pm"),ownerState:E,className:C.pmButton,title:yc(w,"pm"),children:N.jsx(rK,{variant:"caption",className:C.meridiemText,children:yc(w,"pm")})})]})]})}function uut(e){return Qt("MuiClockNumber",e)}const ik=Yt("MuiClockNumber",["root","selected","disabled"]),cut=["className","disabled","index","inner","label","selected"],dut=e=>{const{classes:t,selected:n,disabled:r}=e;return Vt({root:["root",n&&"selected",r&&"disabled"]},uut,t)},fut=Ie("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${ik.disabled}`]:t.disabled},{[`&.${ik.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>B({height:Md,width:Md,position:"absolute",left:`calc((100% - ${Md}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},[`&.${ik.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${ik.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&B({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function Nfe(e){const t=Nt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=st(t,cut),u=t,c=dut(u),d=i%12/12*Math.PI*2-Math.PI/2,f=(Fy-Md-2)/2*(o?.65:1),m=Math.round(Math.cos(d)*f),g=Math.round(Math.sin(d)*f);return N.jsx(fut,B({className:dt(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${g+(Fy-Md)/2}px`},ownerState:u},l,{children:a}))}const put=({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 f=d.toString();d===0&&(f="00");const m=!e&&(d===0||d>12);f=o.formatNumber(f);const g=c(d);s.push(N.jsx(Nfe,{id:g?i:void 0,index:d,inner:m,selected:g,disabled:r(d),label:f,"aria-label":n(f)},d))}return s},iK=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,s],l)=>{const u=a===t;return N.jsx(Nfe,{label:s,id:u?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},hut=["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"],mut=e=>{const{classes:t}=e;return Vt({root:["root"],arrowSwitcher:["arrowSwitcher"]},jlt,t)},gut=Ie(qI,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),but=Ie(cfe,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),yut=["hours","minutes"],vut=L.forwardRef(function(t,n){const r=ur(),i=Nt({props:t,name:"MuiTimeClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:f,defaultValue:m,referenceDate:g,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:S,minTime:O,disableFuture:E,disablePast:w,minutesStep:k=1,shouldDisableClock:A,shouldDisableTime:C,showViewSwitcher:x,onChange:F,view:M,views:P=yut,openTo:V,onViewChange:W,focusedView:G,onFocusedViewChange:j,className:z,disabled:X,readOnly:Z,timezone:q}=i,te=st(i,hut),Q=c??FT(l),se=d??u,{value:he,handleValueChange:J,timezone:le}=Sv({name:"TimeClock",timezone:q,value:f,defaultValue:m,onChange:F,valueManager:ea}),ve=F7({value:he,referenceDate:g,utils:r,props:i,timezone:le}),ue=ta(),we=im(le),{view:ke,setView:Ue,previousView:et,nextView:Me,setValueAndGoToNextView:qe}=BT({view:M,views:P,openTo:V,onViewChange:W,onChange:J,focusedView:G,onFocusedViewChange:j}),{meridiemMode:xe,handleMeridiemChange:Ze}=YI(ve,o,qe),Xe=L.useCallback((oe,ie)=>{const Fe=$T(v,r),Qe=ie==="hours"||ie==="minutes"&&P.includes("seconds"),je=({start:Oe,end:ye})=>!(O&&Fe(O,ye)||S&&Fe(Oe,S)||E&&Fe(Oe,we)||w&&Fe(we,Qe?ye:Oe)),fe=(Oe,ye=1)=>{if(Oe%ye!==0||A!=null&&A(Oe,ie))return!1;if(C)switch(ie){case"hours":return!C(r.setHours(ve,Oe),"hours");case"minutes":return!C(r.setMinutes(ve,Oe),"minutes");case"seconds":return!C(r.setSeconds(ve,Oe),"seconds");default:return!1}return!0};switch(ie){case"hours":{const Oe=cS(oe,xe,o),ye=r.setHours(ve,Oe),Ce=r.setSeconds(r.setMinutes(ye,0),0),De=r.setSeconds(r.setMinutes(ye,59),59);return!je({start:Ce,end:De})||!fe(Oe)}case"minutes":{const Oe=r.setMinutes(ve,oe),ye=r.setSeconds(Oe,0),Ce=r.setSeconds(Oe,59);return!je({start:ye,end:Ce})||!fe(oe,k)}case"seconds":{const Oe=r.setSeconds(ve,oe);return!je({start:Oe,end:Oe})||!fe(oe)}default:throw new Error("not supported")}},[o,ve,v,S,xe,O,k,A,C,r,E,w,we,P]),it=Ic(),Ot=L.useMemo(()=>{switch(ke){case"hours":{const oe=(ie,Fe)=>{const Qe=cS(ie,xe,o);qe(r.setHours(ve,Qe),Fe)};return{onChange:oe,viewValue:r.getHours(ve),children:put({value:he,utils:r,ampm:o,onChange:oe,getClockNumberText:ue.hoursClockNumberText,isDisabled:ie=>X||Xe(ie,"hours"),selectedId:it})}}case"minutes":{const oe=r.getMinutes(ve),ie=(Fe,Qe)=>{qe(r.setMinutes(ve,Fe),Qe)};return{viewValue:oe,onChange:ie,children:iK({utils:r,value:oe,onChange:ie,getClockNumberText:ue.minutesClockNumberText,isDisabled:Fe=>X||Xe(Fe,"minutes"),selectedId:it})}}case"seconds":{const oe=r.getSeconds(ve),ie=(Fe,Qe)=>{qe(r.setSeconds(ve,Fe),Qe)};return{viewValue:oe,onChange:ie,children:iK({utils:r,value:oe,onChange:ie,getClockNumberText:ue.secondsClockNumberText,isDisabled:Fe=>X||Xe(Fe,"seconds"),selectedId:it})}}default:throw new Error("You must provide the type for ClockView")}},[ke,r,he,o,ue.hoursClockNumberText,ue.minutesClockNumberText,ue.secondsClockNumberText,xe,qe,ve,Xe,it,X]),tt=i,pe=mut(tt);return N.jsxs(gut,B({ref:n,className:dt(pe.root,z),ownerState:tt},te,{children:[N.jsx(lut,B({autoFocus:s??!!G,ampmInClock:a&&P.includes("hours"),value:he,type:ke,ampm:o,minutesStep:k,isTimeDisabled:Xe,meridiemMode:xe,handleMeridiemChange:Ze,selectedId:it,disabled:X,readOnly:Z},Ot)),x&&N.jsx(but,{className:pe.arrowSwitcher,slots:Q,slotProps:se,onGoToPrevious:()=>Ue(et),isPreviousDisabled:!et,previousLabel:ue.openPreviousView,onGoToNext:()=>Ue(Me),isNextDisabled:!Me,nextLabel:ue.openNextView,ownerState:tt})]}))});function Out(e){return Qt("MuiDigitalClock",e)}const Eut=Yt("MuiDigitalClock",["root","list","item"]),Sut=["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"],Tut=e=>{const{classes:t}=e;return Vt({root:["root"],list:["list"],item:["item"]},Out,t)},wut=Ie(qI,{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:dfe})),xut=Ie(Jy,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),kut=Ie(Lh,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity)}})),Cut=L.forwardRef(function(t,n){var r,i,o;const a=ur(),s=L.useRef(null),l=Vn(n,s),u=Nt({props:t,name:"MuiDigitalClock"}),{ampm:c=a.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:f,components:m,componentsProps:g,slots:v,slotProps:S,value:O,defaultValue:E,referenceDate:w,disableIgnoringDatePartForTimeValidation:k=!1,maxTime:A,minTime:C,disableFuture:x,disablePast:F,minutesStep:M=1,shouldDisableClock:P,shouldDisableTime:V,onChange:W,view:G,openTo:j,onViewChange:z,focusedView:X,onFocusedViewChange:Z,className:q,disabled:te,readOnly:Q,views:se=["hours"],skipDisabled:he=!1,timezone:J}=u,le=st(u,Sut),{value:ve,handleValueChange:ue,timezone:we}=Sv({name:"DigitalClock",timezone:J,value:O,defaultValue:E,onChange:W,valueManager:ea}),ke=ta(),Ue=im(we),et=L.useMemo(()=>B({},u,{alreadyRendered:!!s.current}),[u]),Me=Tut(et),qe=(r=(i=v==null?void 0:v.digitalClockItem)!=null?i:m==null?void 0:m.DigitalClockItem)!=null?r:kut,xe=nr({elementType:qe,externalSlotProps:(o=S==null?void 0:S.digitalClockItem)!=null?o:g==null?void 0:g.digitalClockItem,ownerState:{},className:Me.item}),Ze=F7({value:ve,referenceDate:w,utils:a,props:u,timezone:we}),Xe=on(oe=>ue(oe,"finish","hours")),{setValueAndGoToNextView:it}=BT({view:G,views:se,openTo:j,onViewChange:z,onChange:Xe,focusedView:X,onFocusedViewChange:Z}),Ot=on(oe=>{it(oe,"finish")});L.useEffect(()=>{if(s.current===null)return;const oe=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!oe)return;const ie=oe.offsetTop;s.current.scrollTop=ie-4});const tt=L.useCallback(oe=>{const ie=$T(k,a),Fe=()=>!(C&&ie(C,oe)||A&&ie(oe,A)||x&&ie(oe,Ue)||F&&ie(Ue,oe)),Qe=()=>a.getMinutes(oe)%M!==0||P!=null&&P(a.toJsDate(oe).getTime(),"hours")?!1:V?!V(oe,"hours"):!0;return!Fe()||!Qe()},[k,a,C,A,x,Ue,F,M,P,V]),pe=L.useMemo(()=>{const oe=a.startOfDay(Ze);return[oe,...Array.from({length:Math.ceil(24*60/d)-1},(ie,Fe)=>a.addMinutes(oe,d*(Fe+1)))]},[Ze,d,a]);return N.jsx(wut,B({ref:l,className:dt(Me.root,q),ownerState:et},le,{children:N.jsx(xut,{autoFocusItem:f||!!X,role:"listbox","aria-label":ke.timePickerToolbarTitle,className:Me.list,children:pe.map(oe=>{if(he&&tt(oe))return null;const ie=a.isEqual(oe,ve);return N.jsx(qe,B({onClick:()=>!Q&&Ot(oe),selected:ie,disabled:te||tt(oe),disableRipple:Q,role:"option","aria-disabled":Q,"aria-selected":ie},xe,{children:a.format(oe,c?"fullTime12h":"fullTime24h")}),a.toISO(oe))})})}))}),B0=({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:f,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:S,minutesStep:O,ampm:E,ampmInClock:w,components:k,componentsProps:A,slots:C,slotProps:x,readOnly:F,disabled:M,sx:P,autoFocus:V,showViewSwitcher:W,disableIgnoringDatePartForTimeValidation:G,timezone:j})=>N.jsx(vut,{view:e,onViewChange:t,focusedView:n&&$y(n)?n:null,onFocusedViewChange:r,views:i.filter($y),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:S,minutesStep:O,ampm:E,ampmInClock:w,components:k,componentsProps:A,slots:C,slotProps:x,readOnly:F,disabled:M,sx:P,autoFocus:V,showViewSwitcher:W,disableIgnoringDatePartForTimeValidation:G,timezone:j}),Pfe=({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:f,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:S,minutesStep:O,ampm:E,components:w,componentsProps:k,slots:A,slotProps:C,readOnly:x,disabled:F,sx:M,autoFocus:P,disableIgnoringDatePartForTimeValidation:V,timeSteps:W,skipDisabled:G,timezone:j})=>N.jsx(Cut,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter($y),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:S,minutesStep:O,ampm:E,components:w,componentsProps:k,slots:A,slotProps:C,readOnly:x,disabled:F,sx:M,autoFocus:P,disableIgnoringDatePartForTimeValidation:V,timeStep:W==null?void 0:W.minutes,skipDisabled:G,timezone:j}),x$=({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:f,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:S,minutesStep:O,ampm:E,components:w,componentsProps:k,slots:A,slotProps:C,readOnly:x,disabled:F,sx:M,autoFocus:P,disableIgnoringDatePartForTimeValidation:V,timeSteps:W,skipDisabled:G,timezone:j})=>N.jsx(Blt,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter($y),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:m,maxTime:g,shouldDisableTime:v,shouldDisableClock:S,minutesStep:O,ampm:E,components:w,componentsProps:k,slots:A,slotProps:C,readOnly:x,disabled:F,sx:M,autoFocus:P,disableIgnoringDatePartForTimeValidation:V,timeSteps:W,skipDisabled:G,timezone:j}),Tm=({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:f,minDate:m,minTime:g,maxDate:v,maxTime:S,shouldDisableDate:O,shouldDisableMonth:E,shouldDisableYear:w,shouldDisableTime:k,shouldDisableClock:A,reduceAnimations:C,minutesStep:x,ampm:F,onMonthChange:M,monthsPerRow:P,onYearChange:V,yearsPerRow:W,defaultCalendarMonth:G,components:j,componentsProps:z,slots:X,slotProps:Z,loading:q,renderLoading:te,disableHighlightToday:Q,readOnly:se,disabled:he,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:le,sx:ve,autoFocus:ue,fixedWeekNumber:we,displayWeekNumber:ke,timezone:Ue,disableIgnoringDatePartForTimeValidation:et,timeSteps:Me,skipDisabled:qe,timeViewsCount:xe,shouldRenderTimeInASingleColumn:Ze})=>{var Xe,it;const Ot=!!((Xe=Gh((it=Z==null?void 0:Z.actionBar)!=null?it:z==null?void 0:z.actionBar,{}))!=null&&(Xe=Xe.actions)!=null&&Xe.length),tt={view:Fp(e)?e:"hours",onViewChange:t,focusedView:r&&Fp(r)?r:null,onFocusedViewChange:i,views:n.filter(Fp),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:g,maxTime:S,shouldDisableTime:k,shouldDisableClock:A,minutesStep:x,ampm:F,components:j,componentsProps:z,slots:X,slotProps:Z,readOnly:se,disabled:he,autoFocus:ue,disableIgnoringDatePartForTimeValidation:et,timeSteps:Me,skipDisabled:qe,timezone:Ue};return N.jsxs(L.Fragment,{children:[N.jsxs(Ult,{children:[N.jsx(xfe,{view:$0(e)?e:"day",onViewChange:t,views:n.filter($0),focusedView:r&&$0(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:m,maxDate:v,shouldDisableDate:O,shouldDisableMonth:E,shouldDisableYear:w,reduceAnimations:C,onMonthChange:M,monthsPerRow:P,onYearChange:V,yearsPerRow:W,defaultCalendarMonth:G,components:j,componentsProps:z,slots:X,slotProps:Z,loading:q,renderLoading:te,disableHighlightToday:Q,readOnly:se,disabled:he,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:le,sx:ve,autoFocus:ue,fixedWeekNumber:we,displayWeekNumber:ke,timezone:Ue}),xe>0&&N.jsxs(L.Fragment,{children:[N.jsx(Pf,{orientation:"vertical"}),Ze?Pfe(B({},tt,{view:"hours",views:["hours"],focusedView:r&&Fp(r)?"hours":null,sx:B({width:"auto",[`&.${Eut.root}`]:{maxHeight:QI}},Array.isArray(ve)?ve:[ve])})):x$(B({},tt,{view:Fp(e)?e:"hours",views:n.filter(Fp),focusedView:r&&Fp(r)?r:null,sx:B({borderBottom:0,width:"auto",[`.${Alt.root}`]:{maxHeight:"100%"}},Array.isArray(ve)?ve:[ve])}))]})]}),Ot&&N.jsx(Pf,{})]})},_ut=["views","format"],Lfe=(e,t)=>{let{views:n,format:r}=t,i=st(t,_ut);if(r)return r;const o=[],a=[];if(n.forEach(u=>{$y(u)?a.push(u):o.push(u)}),a.length===0)return uS(e,B({views:o},i),!1);if(o.length===0)return fA(e,B({views:a},i));const s=fA(e,B({views:a},i));return`${uS(e,B({views:o},i),!1)} ${s}`},Aut=(e,t,n)=>n?t.filter(r=>!Fp(r)||r==="hours"):e?[...t,"meridiem"]:t,Rut=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Mfe({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=B({hours:1,minutes:5,seconds:5},n),a=Rut(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:Aut(t,r,a)}}const $fe=L.forwardRef(function(t,n){var r,i,o,a,s,l,u;const c=ta(),d=ur(),f=Rfe(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:g,views:v,timeSteps:S}=Mfe(f),O=!f.viewRenderers||Object.keys(f.viewRenderers).length===0,E=O?{day:Tm,month:Tm,year:Tm,hours:Tm,minutes:Tm,seconds:Tm,meridiem:Tm}:B({day:Mu,month:Mu,year:Mu,hours:null,minutes:null,seconds:null,meridiem:null},f.viewRenderers),w=(r=f.ampmInClock)!=null?r:!0,k=O?["accept"]:[],A=B({},f,{viewRenderers:E,format:Lfe(d,f),views:v,yearsPerRow:(i=f.yearsPerRow)!=null?i:4,ampmInClock:w,timeSteps:S,thresholdToRenderTimeInASingleColumn:g,shouldRenderTimeInASingleColumn:m,slots:B({field:Cfe,openPickerIcon:ufe},f.slots),slotProps:B({},f.slotProps,{field:x=>{var F;return B({},Gh((F=f.slotProps)==null?void 0:F.field,x),Tv(f),{ref:n})},toolbar:B({hidden:!0,ampmInClock:w,toolbarVariant:O?"desktop":"mobile"},(o=f.slotProps)==null?void 0:o.toolbar),tabs:B({hidden:!0},(a=f.slotProps)==null?void 0:a.tabs),actionBar:B({actions:k},(s=f.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:C}=P7({props:A,valueManager:ea,valueType:"date-time",getOpenDialogAriaText:(l=(u=A.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:GI});return C()});$fe.propTypes={ampm:ee.bool,ampmInClock:ee.bool,autoFocus:ee.bool,className:ee.string,closeOnSelect:ee.bool,components:ee.object,componentsProps:ee.object,dayOfWeekFormatter:ee.func,defaultCalendarMonth:ee.any,defaultValue:ee.any,disabled:ee.bool,disableFuture:ee.bool,disableHighlightToday:ee.bool,disableIgnoringDatePartForTimeValidation:ee.bool,disableOpenPicker:ee.bool,disablePast:ee.bool,displayWeekNumber:ee.bool,fixedWeekNumber:ee.number,format:ee.string,formatDensity:ee.oneOf(["dense","spacious"]),inputRef:Yy,label:ee.node,loading:ee.bool,localeText:ee.object,maxDate:ee.any,maxDateTime:ee.any,maxTime:ee.any,minDate:ee.any,minDateTime:ee.any,minTime:ee.any,minutesStep:ee.number,monthsPerRow:ee.oneOf([3,4]),name:ee.string,onAccept:ee.func,onChange:ee.func,onClose:ee.func,onError:ee.func,onMonthChange:ee.func,onOpen:ee.func,onSelectedSectionsChange:ee.func,onViewChange:ee.func,onYearChange:ee.func,open:ee.bool,openTo:ee.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:ee.oneOf(["landscape","portrait"]),readOnly:ee.bool,reduceAnimations:ee.bool,referenceDate:ee.any,renderLoading:ee.func,selectedSections:ee.oneOfType([ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ee.number,ee.shape({endIndex:ee.number.isRequired,startIndex:ee.number.isRequired})]),shouldDisableClock:ee.func,shouldDisableDate:ee.func,shouldDisableMonth:ee.func,shouldDisableTime:ee.func,shouldDisableYear:ee.func,showDaysOutsideCurrentMonth:ee.bool,skipDisabled:ee.bool,slotProps:ee.object,slots:ee.object,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object]),thresholdToRenderTimeInASingleColumn:ee.number,timeSteps:ee.shape({hours:ee.number,minutes:ee.number,seconds:ee.number}),timezone:ee.string,value:ee.any,view:ee.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:ee.shape({day:ee.func,hours:ee.func,meridiem:ee.func,minutes:ee.func,month:ee.func,seconds:ee.func,year:ee.func}),views:ee.arrayOf(ee.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:ee.oneOf([3,4])};const Ffe=L.forwardRef(function(t,n){var r,i,o,a,s;const l=ta(),u=ur(),c=Rfe(t,"MuiMobileDateTimePicker"),d=B({day:Mu,month:Mu,year:Mu,hours:B0,minutes:B0,seconds:B0},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,m=B({},c,{viewRenderers:d,format:Lfe(u,c),ampmInClock:f,slots:B({field:Cfe},c.slots),slotProps:B({},c.slotProps,{field:v=>{var S;return B({},Gh((S=c.slotProps)==null?void 0:S.field,v),Tv(c),{ref:n})},toolbar:B({hidden:!1,ampmInClock:f},(i=c.slotProps)==null?void 0:i.toolbar),tabs:B({hidden:!1},(o=c.slotProps)==null?void 0:o.tabs)})}),{renderPicker:g}=M7({props:m,valueManager:ea,valueType:"date-time",getOpenDialogAriaText:(a=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:l.openDatePickerDialogue,validator:GI});return g()});Ffe.propTypes={ampm:ee.bool,ampmInClock:ee.bool,autoFocus:ee.bool,className:ee.string,closeOnSelect:ee.bool,components:ee.object,componentsProps:ee.object,dayOfWeekFormatter:ee.func,defaultCalendarMonth:ee.any,defaultValue:ee.any,disabled:ee.bool,disableFuture:ee.bool,disableHighlightToday:ee.bool,disableIgnoringDatePartForTimeValidation:ee.bool,disableOpenPicker:ee.bool,disablePast:ee.bool,displayWeekNumber:ee.bool,fixedWeekNumber:ee.number,format:ee.string,formatDensity:ee.oneOf(["dense","spacious"]),inputRef:Yy,label:ee.node,loading:ee.bool,localeText:ee.object,maxDate:ee.any,maxDateTime:ee.any,maxTime:ee.any,minDate:ee.any,minDateTime:ee.any,minTime:ee.any,minutesStep:ee.number,monthsPerRow:ee.oneOf([3,4]),name:ee.string,onAccept:ee.func,onChange:ee.func,onClose:ee.func,onError:ee.func,onMonthChange:ee.func,onOpen:ee.func,onSelectedSectionsChange:ee.func,onViewChange:ee.func,onYearChange:ee.func,open:ee.bool,openTo:ee.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:ee.oneOf(["landscape","portrait"]),readOnly:ee.bool,reduceAnimations:ee.bool,referenceDate:ee.any,renderLoading:ee.func,selectedSections:ee.oneOfType([ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ee.number,ee.shape({endIndex:ee.number.isRequired,startIndex:ee.number.isRequired})]),shouldDisableClock:ee.func,shouldDisableDate:ee.func,shouldDisableMonth:ee.func,shouldDisableTime:ee.func,shouldDisableYear:ee.func,showDaysOutsideCurrentMonth:ee.bool,slotProps:ee.object,slots:ee.object,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object]),timezone:ee.string,value:ee.any,view:ee.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:ee.shape({day:ee.func,hours:ee.func,minutes:ee.func,month:ee.func,seconds:ee.func,year:ee.func}),views:ee.arrayOf(ee.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:ee.oneOf([3,4])};const Iut=["desktopModeMediaQuery"],Dut=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=A7}=r,o=st(r,Iut);return Ky(i,{defaultMatches:!0})?N.jsx($fe,B({ref:n},o)):N.jsx(Ffe,B({ref:n},o))}),Nut=e=>{var t,n,r,i;const o=ur(),s=((t=e.ampm)!=null?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return B({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:s})},Put=({props:e,inputRef:t})=>{const n=Nut(e),{forwardedProps:r,internalProps:i}=N7(n,"time");return D7({inputRef:t,forwardedProps:r,internalProps:i,valueManager:ea,fieldValueManager:C7,validator:UT,valueType:"time"})},Lut=["slots","slotProps","components","componentsProps","InputProps","inputProps"],Mut=["inputRef"],$ut=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Bfe=L.forwardRef(function(t,n){var r,i,o;const a=Nt({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:u,componentsProps:c,InputProps:d,inputProps:f}=a,m=st(a,Lut),g=a,v=(r=(i=s==null?void 0:s.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:Kh,S=nr({elementType:v,externalSlotProps:(o=l==null?void 0:l.textField)!=null?o:c==null?void 0:c.textField,externalForwardedProps:m,ownerState:g}),{inputRef:O}=S,E=st(S,Mut);E.inputProps=B({},f,E.inputProps),E.InputProps=B({},d,E.InputProps);const w=Put({props:E,inputRef:O}),{ref:k,onPaste:A,onKeyDown:C,inputMode:x,readOnly:F,clearable:M,onClear:P}=w,V=st(w,$ut),{InputProps:W,fieldProps:G}=L7({onClear:P,clearable:M,fieldProps:V,InputProps:V.InputProps,slots:s,slotProps:l,components:u,componentsProps:c});return N.jsx(v,B({ref:n},G,{InputProps:B({},W,{readOnly:F}),inputProps:B({},V.inputProps,{inputMode:x,onPaste:A,onKeyDown:C,ref:k})}))});function Fut(e){return Qt("MuiTimePickerToolbar",e)}const q1=Yt("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),But=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],Uut=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 Vt(i,Fut,r)},jut=Ie(_7,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zut=Ie(R7,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Ufe=Ie("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${q1.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${q1.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>B({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Ufe.propTypes={as:ee.elementType,ownerState:ee.object.isRequired,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object])};const jfe=Ie("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${q1.ampmLabel}`]:t.ampmLabel},{[`&.${q1.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>B({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${q1.ampmLabel}`]:{fontSize:17}}));jfe.propTypes={as:ee.elementType,ownerState:ee.object.isRequired,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object])};function Vut(e){const t=Nt({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,f=st(t,But),m=ur(),g=ta(),v=Di(),S=!!(n&&!r&&u.includes("hours")),{meridiemMode:O,handleMeridiemChange:E}=YI(i,n,a),w=x=>n?m.format(x,"hours12h"):m.format(x,"hours24h"),k=t,A=Uut(B({},k,{theme:v})),C=N.jsx(zut,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:A.separator});return N.jsxs(jut,B({landscapeDirection:"row",toolbarTitle:g.timePickerToolbarTitle,isLandscape:o,ownerState:k,className:A.root},f,{children:[N.jsxs(Ufe,{className:A.hourMinuteLabel,ownerState:k,children:[Hb(u,"hours")&&N.jsx(Il,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:i?w(i):"--"}),Hb(u,["hours","minutes"])&&C,Hb(u,"minutes")&&N.jsx(Il,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:i?m.format(i,"minutes"):"--"}),Hb(u,["minutes","seconds"])&&C,Hb(u,"seconds")&&N.jsx(Il,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:i?m.format(i,"seconds"):"--"})]}),S&&N.jsxs(jfe,{className:A.ampmSelection,ownerState:k,children:[N.jsx(Il,{disableRipple:!0,variant:"subtitle2",selected:O==="am",typographyClassName:A.ampmLabel,value:yc(m,"am"),onClick:d?void 0:()=>E("am"),disabled:c}),N.jsx(Il,{disableRipple:!0,variant:"subtitle2",selected:O==="pm",typographyClassName:A.ampmLabel,value:yc(m,"pm"),onClick:d?void 0:()=>E("pm"),disabled:c})]})]}))}function zfe(e,t){var n,r,i,o,a;const s=ur(),l=Nt({props:e,name:t}),u=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),c=L.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:B({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(r=l.slots)!=null?r:FT(l.components),f=(i=l.slotProps)!=null?i:l.componentsProps;return B({},l,{ampm:u,localeText:c},T7({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:B({toolbar:Vut},d),slotProps:B({},f,{toolbar:B({ampm:u,ampmInClock:l.ampmInClock},f==null?void 0:f.toolbar)})})}const Vfe=L.forwardRef(function(t,n){var r,i,o,a,s,l;const u=ta(),c=ur(),d=zfe(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:f,views:m,timeSteps:g}=Mfe(d),v=f?Pfe:x$,S=B({hours:v,minutes:v,seconds:v,meridiem:v},d.viewRenderers),O=(r=d.ampmInClock)!=null?r:!0,E=f?[]:["accept"],k=((i=S.hours)==null?void 0:i.name)===x$.name?m:m.filter(x=>x!=="meridiem"),A=B({},d,{ampmInClock:O,timeSteps:g,viewRenderers:S,format:fA(c,d),views:f?["hours"]:k,slots:B({field:Bfe,openPickerIcon:wot},d.slots),slotProps:B({},d.slotProps,{field:x=>{var F;return B({},Gh((F=d.slotProps)==null?void 0:F.field,x),Tv(d),{ref:n})},toolbar:B({hidden:!0,ampmInClock:O},(o=d.slotProps)==null?void 0:o.toolbar),actionBar:B({actions:E},(a=d.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:C}=P7({props:A,valueManager:ea,valueType:"time",getOpenDialogAriaText:(s=(l=A.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:u.openTimePickerDialogue,validator:UT});return C()});Vfe.propTypes={ampm:ee.bool,ampmInClock:ee.bool,autoFocus:ee.bool,className:ee.string,closeOnSelect:ee.bool,components:ee.object,componentsProps:ee.object,defaultValue:ee.any,disabled:ee.bool,disableFuture:ee.bool,disableIgnoringDatePartForTimeValidation:ee.bool,disableOpenPicker:ee.bool,disablePast:ee.bool,format:ee.string,formatDensity:ee.oneOf(["dense","spacious"]),inputRef:Yy,label:ee.node,localeText:ee.object,maxTime:ee.any,minTime:ee.any,minutesStep:ee.number,name:ee.string,onAccept:ee.func,onChange:ee.func,onClose:ee.func,onError:ee.func,onOpen:ee.func,onSelectedSectionsChange:ee.func,onViewChange:ee.func,open:ee.bool,openTo:ee.oneOf(["hours","meridiem","minutes","seconds"]),orientation:ee.oneOf(["landscape","portrait"]),readOnly:ee.bool,reduceAnimations:ee.bool,referenceDate:ee.any,selectedSections:ee.oneOfType([ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ee.number,ee.shape({endIndex:ee.number.isRequired,startIndex:ee.number.isRequired})]),shouldDisableClock:ee.func,shouldDisableTime:ee.func,skipDisabled:ee.bool,slotProps:ee.object,slots:ee.object,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object]),thresholdToRenderTimeInASingleColumn:ee.number,timeSteps:ee.shape({hours:ee.number,minutes:ee.number,seconds:ee.number}),timezone:ee.string,value:ee.any,view:ee.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:ee.shape({hours:ee.func,meridiem:ee.func,minutes:ee.func,seconds:ee.func}),views:ee.arrayOf(ee.oneOf(["hours","minutes","seconds"]).isRequired)};const Wfe=L.forwardRef(function(t,n){var r,i,o,a;const s=ta(),l=ur(),u=zfe(t,"MuiMobileTimePicker"),c=B({hours:B0,minutes:B0,seconds:B0},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,f=B({},u,{ampmInClock:d,viewRenderers:c,format:fA(l,u),slots:B({field:Bfe},u.slots),slotProps:B({},u.slotProps,{field:g=>{var v;return B({},Gh((v=u.slotProps)==null?void 0:v.field,g),Tv(u),{ref:n})},toolbar:B({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:m}=M7({props:f,valueManager:ea,valueType:"time",getOpenDialogAriaText:(o=(a=f.localeText)==null?void 0:a.openTimePickerDialogue)!=null?o:s.openTimePickerDialogue,validator:UT});return m()});Wfe.propTypes={ampm:ee.bool,ampmInClock:ee.bool,autoFocus:ee.bool,className:ee.string,closeOnSelect:ee.bool,components:ee.object,componentsProps:ee.object,defaultValue:ee.any,disabled:ee.bool,disableFuture:ee.bool,disableIgnoringDatePartForTimeValidation:ee.bool,disableOpenPicker:ee.bool,disablePast:ee.bool,format:ee.string,formatDensity:ee.oneOf(["dense","spacious"]),inputRef:Yy,label:ee.node,localeText:ee.object,maxTime:ee.any,minTime:ee.any,minutesStep:ee.number,name:ee.string,onAccept:ee.func,onChange:ee.func,onClose:ee.func,onError:ee.func,onOpen:ee.func,onSelectedSectionsChange:ee.func,onViewChange:ee.func,open:ee.bool,openTo:ee.oneOf(["hours","minutes","seconds"]),orientation:ee.oneOf(["landscape","portrait"]),readOnly:ee.bool,reduceAnimations:ee.bool,referenceDate:ee.any,selectedSections:ee.oneOfType([ee.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ee.number,ee.shape({endIndex:ee.number.isRequired,startIndex:ee.number.isRequired})]),shouldDisableClock:ee.func,shouldDisableTime:ee.func,slotProps:ee.object,slots:ee.object,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object]),timezone:ee.string,value:ee.any,view:ee.oneOf(["hours","minutes","seconds"]),viewRenderers:ee.shape({hours:ee.func,minutes:ee.func,seconds:ee.func}),views:ee.arrayOf(ee.oneOf(["hours","minutes","seconds"]).isRequired)};const Wut=["desktopModeMediaQuery"],Hut=L.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=A7}=r,o=st(r,Wut);return Ky(i,{defaultMatches:!0})?N.jsx(Vfe,B({ref:n},o)):N.jsx(Wfe,B({ref:n},o))});var B7={},Qut=ho;Object.defineProperty(B7,"__esModule",{value:!0});var Hfe=B7.default=void 0,Yut=Qut(mo()),Gut=N;Hfe=B7.default=(0,Yut.default)((0,Gut.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 U7={},qut=ho;Object.defineProperty(U7,"__esModule",{value:!0});var j7=U7.default=void 0,Zut=qut(mo()),Xut=N;j7=U7.default=(0,Zut.default)((0,Xut.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 z7={},Kut=ho;Object.defineProperty(z7,"__esModule",{value:!0});var Qfe=z7.default=void 0,Jut=Kut(mo()),ect=N;Qfe=z7.default=(0,Jut.default)((0,ect.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 k$(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 uct(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 cct(e,t){return tct(e)||oct(e,t)||Yfe(e,t)||act()}function Wh(e){return nct(e)||ict(e)||Yfe(e)||sct()}function dct(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Yfe(e,t){if(e){if(typeof e=="string")return k$(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 k$(e,t)}}var fct=L.createContext({onError:function(e){return e==null?void 0:e.message}}),tu=function(){var e;return(e=L.useContext(fct))===null||e===void 0?void 0:e.onError};function fl(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"}}),O=dl({name:s,control:l,disabled:m.disabled,rules:S}),E=O.field,w=O.fieldState,k=w.error,A=fl({value:E.value,onChange:E.onChange,transform:{input:typeof(f==null?void 0:f.input)=="function"?f.input:function(M){return M||""},output:typeof(f==null?void 0:f.output)=="function"?f.output:function(M){var P=M.target.value;return o==="number"&&P?+P:P}}}),C=A.value,x=A.onChange,F=Vn(E.ref,d);return N.jsx(c,ir(ln({},m),{name:E.name,value:C,onChange:function(M){x(M),typeof m.onChange=="function"&&m.onChange(M)},onBlur:E.onBlur,required:a,type:o,error:!!k,helperText:k?typeof v=="function"?v(k):k.message:m.helperText,ref:t,inputRef:F}))});Gfe.displayName="TextFieldElement";var ZI=Gfe;function jT(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,a=e.onError,s=Wa(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof o=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),N.jsx($de,ir(ln({},i),{children:N.jsx("form",ir(ln({noValidate:!0},r),{onSubmit:t||(o?i.handleSubmit(o,a):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):N.jsx(pct,ln({onSuccess:o,onError:a,FormProps:r,children:n},s))}function pct(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=Wa(e,["onSuccess","onError","FormProps","children"]),a=Zde(ln({},o)),s=a.handleSubmit;return N.jsx($de,ir(ln({},a),{children:N.jsx("form",ir(ln({onSubmit:s(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var qfe={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"},hct=L.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,f=e.inputRef,m=e.transform,g=Wa(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),v=Uc(),S=tu(),O=n||S,E=ln({},qfe,d),w=ir(ln({},a,i&&!a.required&&{required:"This field is required"}),{validate:ln({internal:function(G){var j,z,X=G==null||!v.utils.isValid(G)?null:v.utils.getTimezone(G),Z=Hg({props:{shouldDisableDate:g.shouldDisableDate,shouldDisableMonth:g.shouldDisableMonth,shouldDisableYear:g.shouldDisableYear,disablePast:!!g.disablePast,disableFuture:!!g.disableFuture,minDate:g.minDate,maxDate:g.maxDate,timezone:(z=(j=g.timezone)!==null&&j!==void 0?j:X)!==null&&z!==void 0?z:"default"},value:G,adapter:v});return Z==null||E[Z]}},a.validate)}),k=dl({name:r,control:l,rules:w,disabled:g.disabled,defaultValue:null}),A=k.field,C=k.fieldState,x=C.error,F=fl({value:A.value,onChange:A.onChange,transform:{input:typeof(m==null?void 0:m.input)=="function"?m.input:function(G){return G&&G==="string"?new Date(G):G},output:typeof(m==null?void 0:m.output)=="function"?m.output:function(G){return G}}}),M=F.value,P=F.onChange,V=Vn(A.ref,f),W=x?typeof O=="function"?O(x):x.message:null;return N.jsx(llt,ir(ln({},g,A),{value:M,ref:t,inputRef:V,onClose:function(){for(var G=arguments.length,j=new Array(G),z=0;z"u"?"undefined":dct(G))<"u"&&(w.InputLabelProps=w.InputLabelProps||{},w.InputLabelProps.shrink=!0),N.jsxs(Kh,ir(ln({},w),{name:r,value:G,onBlur:M.onBlur,ref:t,onChange:function(X){if(j(X),typeof w.onChange=="function"){var Z=X.target.value;f==="number"&&Z&&(Z=Number(Z)),m&&(Z=c.find(function(q){return q[a]===Z})),w.onChange(Z)}},select:!0,required:i,error:!!V,helperText:V?typeof A=="function"?A(V):V.message:w.helperText,inputRef:z,children:[C&&N.jsx("option",{}),c.map(function(X){var Z,q={key:"".concat(r,"_").concat(X[a]),value:(Z=X==null?void 0:X[a])!==null&&Z!==void 0?Z:X,disabled:Js(X,"disabled")?!!X.disabled:!1,children:X[l]};return C?N.jsx("option",ln({},q)):N.jsx(Lh,ln({},q))})]}))});Zfe.displayName="SelectElement";var C$=Zfe,Ect=L.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,f=e.returnObject,m=e.disabled,g=e.row,v=e.control,S=e.checkboxColor,O=e.rules,E=e.labelProps,w=e.transform,k=e.defaultValue,A=k===void 0?[]:k,C=Wa(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),x=Di(),F=tu(),M=a||F,P=dl({name:o,rules:s?{required:"This field is required"}:O,disabled:m,control:v,defaultValue:A}),V=P.field,W=P.fieldState,G=W.error,j=W.invalid,z=fl({value:V.value,onChange:V.onChange,transform:{input:typeof(w==null?void 0:w.input)=="function"?w.input:function(Q){return Array.isArray(Q)?Q:[]},output:w==null?void 0:w.output}}),X=z.value,Z=z.onChange,q=function(Q){var se=Js(Q,d)?Q[d]:Q,he=X.findIndex(function(le){var ve=Js(le,d)?le[d]:le;return se===ve}),J=(he===-1?Wh(X).concat([Q]):X.filter(function(le,ve){return he!==ve})).map(function(le){return f||!Js(le,d)?le:le[d]});Z(J),typeof C.onChange=="function"&&C.onChange(J)},te=G?typeof M=="function"?M(G):G.message:n;return N.jsxs(Dc,{error:j,required:s,ref:t,children:[i?N.jsx($R,{children:i}):null,N.jsx(LF,{row:g,children:r.map(function(Q){var se=Js(Q,d)?Q[d]:Q,he=Js(Q,u)?Q[u]:Q,J=X.some(function(le){return(Js(le,d)?le[d]:le)===se});return L.createElement(xE,ir(ln({},E),{control:N.jsx(LR,{sx:{color:G?x.palette.error.main:void 0},color:S,value:se,checked:J,disabled:m,onChange:function(){return q(Q)}}),label:"".concat(he),key:"".concat(se)}))})}),te&&N.jsx(Xy,{children:te})]})});Ect.displayName="CheckboxButtonGroup";var Sct=48,Tct=8,wct=L.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,f=e.itemValue,m=f===void 0?"":f,g=e.itemLabel,v=g===void 0?"label":g,S=e.required,O=S===void 0?!1:S,E=e.validation,w=E===void 0?{}:E,k=e.parseError,A=e.name,C=e.menuMaxHeight,x=C===void 0?Sct*4.5+Tct:C,F=e.menuMaxWidth,M=F===void 0?250:F,P=e.minWidth,V=P===void 0?120:P,W=e.helperText,G=e.showChips,j=e.preserveOrder,z=e.control,X=e.showCheckbox,Z=e.formControlProps,q=e.inputRef,te=e.transform,Q=Wa(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),se=tu(),he=k||se,J=function(Xe){var it,Ot;return(Ot=(it=s.find(function(tt){var pe;return((pe=tt[m||d])!==null&&pe!==void 0?pe:tt)===Xe}))===null||it===void 0?void 0:it[v])!==null&&Ot!==void 0?Ot:Xe},le=ln({},w,O&&!w.required&&{required:"This field is required"}),ve=dl({name:A,rules:le,disabled:Q.disabled,control:z}),ue=ve.field,we=ve.fieldState,ke=we.error,Ue=fl({value:ue.value,onChange:ue.onChange,transform:{input:typeof(te==null?void 0:te.input)=="function"?te.input:function(Xe){return Array.isArray(Xe)?Xe:[]},output:te==null?void 0:te.output}}),et=Ue.value,Me=Ue.onChange,qe=Vn(ue.ref,q),xe=ke?typeof he=="function"?he(ke):ke.message:W,Ze;return N.jsxs(Dc,ir(ln({},Z),{style:ln({minWidth:V},Z==null?void 0:Z.style),variant:Q.variant,fullWidth:Q.fullWidth,error:!!ke,size:Q.size,ref:t,children:[u&&N.jsx(Kne,{size:Q.size==="small"?"small":void 0,error:!!ke,htmlFor:Q.id||"select-multi-select-".concat(A),required:O,children:u}),N.jsx(cre,ir(ln({},Q),{id:Q.id||"select-multi-select-".concat(A),multiple:!0,label:u||void 0,error:!!ke,value:et,required:O,onChange:Me,onBlur:ue.onBlur,MenuProps:ir(ln({},Q.MenuProps),{slotProps:ir(ln({},(n=Q.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:ln({},(Ze=(i=Q.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&Ze!==void 0?Ze:{style:ln({maxHeight:x,width:M},Js((a=Q.MenuProps)===null||a===void 0||(o=a.slotProps)===null||o===void 0?void 0:o.paper,"style")&&typeof Q.MenuProps.slotProps.paper.style=="object"&&ln({},Q.MenuProps.slotProps.paper.style))})})}),renderValue:typeof Q.renderValue=="function"?Q.renderValue:G?function(Xe){return N.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(j?s.filter(function(it){return Xe.includes(it)}):Xe||[]).map(function(it){return N.jsx(IF,{label:J(it),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Me((Array.isArray(et)?et:[]).filter(function(Ot){return Ot!==it}))},deleteIcon:N.jsx(Hfe,{onMouseDown:function(Ot){Ot.stopPropagation()}})},it)})})}:function(Xe){return Array.isArray(Xe)?Xe.map(J).join(", "):""},inputRef:qe,children:s.map(function(Xe){var it=Xe[m||d]||Xe,Ot=Array.isArray(et)?et.some(function(tt){return tt===it}):!1;return N.jsxs(Lh,{value:it,sx:{fontWeight:function(tt){return Ot?tt.typography.fontWeightBold:tt.typography.fontWeightRegular}},children:[X&&N.jsx(LR,{checked:Ot}),N.jsx(Eh,{primary:Xe[v]||Xe})]},it)})})),xe&&N.jsx(Xy,{error:!!ke,children:xe})]}))});wct.displayName="MultiSelectElement";var Xfe=L.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?N.jsx(j7,{}):N.jsx(Qfe,{})}:r,o=Wa(e,["iconColor","renderIcon"]),a=cct(L.useState(!0),2),s=a[0],l=a[1];return N.jsx(ZI,ir(ln({},o),{ref:t,InputProps:{endAdornment:N.jsx(CE,{position:"end",children:N.jsx(Xo,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!s)},tabIndex:-1,color:n??"default",children:i(s)})})},type:s?"password":"text"}))});Xfe.displayName="PasswordElement";var xct=Xfe,kct=L.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,f=e.emptyOptionLabel,m=e.returnObject,g=e.row,v=e.control,S=e.type,O=e.labelProps,E=e.disabled,w=e.formLabelProps,k=e.transform,A=Wa(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),C=Di(),x=tu(),F=a||x,M=dl({name:o,rules:d?{required:"This field is required"}:void 0,disabled:E,control:v}),P=M.field,V=M.fieldState,W=V.error,G=fl({value:P.value,onChange:P.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(q){return q||""},output:typeof(k==null?void 0:k.output)=="function"?k==null?void 0:k.output:function(q,te){return te}}}),j=G.value,z=G.onChange,X=W?typeof F=="function"?F(W):W.message:n,Z=function(q,te){var Q=m?r.find(function(se){return se[c]===te}):te;z(q,Q),typeof A.onChange=="function"&&A.onChange(Q)};return N.jsxs(Dc,{error:!!W,ref:t,children:[i&&N.jsx($R,ir(ln({},w),{required:d,error:!!W,children:i})),N.jsxs(PPe,{onChange:Z,name:o,row:g,value:j,children:[f&&N.jsx(xE,ir(ln({},O),{control:N.jsx(fQ,{sx:{color:W?C.palette.error.main:void 0},checked:!j}),label:f,value:""})),r.map(function(q){var te=q[c];te||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),q);var Q=m?j==null?void 0:j[c]:j;S==="number"&&(Q=Number(Q));var se=Q===te;return L.createElement(xE,ir(ln({},O),{control:N.jsx(fQ,{sx:{color:W?C.palette.error.main:void 0},disabled:E,checked:se}),value:te,label:q[l],key:te}))})]}),X&&N.jsx(Xy,{children:X})]})});kct.displayName="RadioButtonGroup";var Cct=L.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,a=Wa(e,["name","control","switchProps","transform"]),s=dl({name:n,control:r,disabled:a.disabled}),l=s.field,u=fl({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(m,g){return g}}}),c=u.value,d=u.onChange,f=Vn(l.ref,i==null?void 0:i.ref);return N.jsx(xE,ln({ref:t,control:N.jsx(RLe,ir(ln({},i),{name:l.name,value:c,onChange:function(m,g){d(m,g),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(m,g)},onBlur:function(m){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(m))},ref:f,checked:!!c}))},a))});Cct.displayName="SwitchElement";var _ct=L.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=Wa(e,["passwordFieldName","customInvalidFieldMessage","control"]),a=zde({name:n,control:i});return N.jsx(xct,ir(ln({control:i},o),{ref:t,validation:{validate:function(s){return s===a||(r??"Password should match")}}}))});_ct.displayName="PasswordRepeatElement";var Act=L.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,f=e.multiple,m=e.label,g=e.parseError,v=e.transform,S=e.matchId,O=tu(),E=g||O,w=ln({},u,d&&{required:(u==null?void 0:u.required)||"This field is required"}),k=dl({name:i,control:o,disabled:r==null?void 0:r.disabled,rules:w}),A=k.field,C=k.fieldState,x=C.error,F=function(Z){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(Z):Js(Z,"label")?"".concat(Z==null?void 0:Z.label):"".concat(Z)},M=function(Z,q){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(Z,q);var te=Js(Z,"id")?Z.id:Z,Q=Js(q,"id")?q.id:q;return te===Q},P=function(Z){return a.find(function(q){return S&&Js(q,"id")?q.id===Z:M(q,Z)})},V=fl({value:A.value,onChange:A.onChange,transform:{input:typeof(v==null?void 0:v.input)=="function"?v.input:function(Z){var q;return f?(Array.isArray(Z)?Z:[]).map(P):(q=P(Z))!==null&&q!==void 0?q:null},output:typeof(v==null?void 0:v.output)=="function"?v.output:function(Z,q){if(f){var te=Array.isArray(q)?q:[];return S?te.map(function(Q){return Js(Q,"id")?Q.id:Q}):te}return S&&Js(q,"id")?q.id:q}}}),W=V.value,G=V.onChange,j=Vn(A.ref,n==null?void 0:n.inputRef),z=c||N.jsx(op,{color:"inherit",size:20}),X;return N.jsx(UAe,ir(ln({},r),{value:W,loading:s,multiple:f,options:a,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!f,isOptionEqualToValue:M,getOptionLabel:F,onChange:function(Z,q,te,Q){G(Z,q,te,Q),r!=null&&r.onChange&&r.onChange(Z,q,te,Q)},ref:t,renderOption:(X=r==null?void 0:r.renderOption)!==null&&X!==void 0?X:l?function(Z,q,te){var Q=te.selected;return N.jsxs("li",ir(ln({},Z),{children:[N.jsx(LR,{sx:{marginRight:1},checked:Q}),F(q)]}))}:void 0,onBlur:function(Z){A.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(Z)},renderInput:function(Z){return N.jsx(Kh,ir(ln({name:i,required:u!=null&&u.required?!0:d,label:m},n,Z),{error:!!x,InputLabelProps:ln({},Z.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:ln(ir(ln({},Z.InputProps),{endAdornment:N.jsxs(N.Fragment,{children:[s?z:null,Z.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:ln({},Z.inputProps,n==null?void 0:n.inputProps),helperText:x?typeof E=="function"?E(x):x.message:n==null?void 0:n.helperText,inputRef:j}))}}))});Act.displayName="AutocompleteElement";var Rct=L.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=Wa(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),f=tu(),m=s||f,g=ln({},a,l&&!a.required&&{required:"This field is required"}),v=dl({name:n,control:r,disabled:d.disabled,rules:g}),S=v.field,O=v.fieldState,E=O.error,w=O.invalid,k=fl({value:S.value,onChange:S.onChange,transform:c}),A=k.value,C=k.onChange,x=E?typeof m=="function"?m(E):E.message:null;return N.jsxs(Dc,ir(ln({error:w,required:l,fullWidth:!0},u),{ref:t,children:[i&&N.jsx($R,{component:"legend",error:w,children:i}),N.jsx(dLe,ir(ln({},d),{value:A,onChange:C,valueLabelDisplay:d.valueLabelDisplay||"auto"})),x&&N.jsx(Xy,{error:w,children:x})]}))});Rct.displayName="SliderElement";var Ict=L.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,f=e.transform,m=Wa(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),g=tu(),v=i||g,S=ln({},r,o&&!r.required&&{required:"This field is required"}),O=dl({name:a,control:s,rules:S,disabled:m.disabled}),E=O.field,w=O.fieldState,k=w.error,A=fl({value:E.value,onChange:E.onChange,transform:{input:typeof(f==null?void 0:f.input)=="function"?f.input:function(M){return M??""},output:typeof(f==null?void 0:f.output)=="function"?f.output:function(M){return M.target.value}}}),C=A.value,x=A.onChange,F=Vn(E.ref,c);return N.jsx(Kh,ir(ln({},m),{name:a,value:C,onChange:function(M){x(M),typeof m.onChange=="function"&&m.onChange(M)},onBlur:E.onBlur,required:o,error:!!k,helperText:k?typeof v=="function"?v(k):k.message:m.helperText,inputRef:F,multiline:!0,InputProps:{inputComponent:Lne,inputProps:ln({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});Ict.displayName="TextareaAutosizeElement";var V7={},Dct=ho;Object.defineProperty(V7,"__esModule",{value:!0});var Kfe=V7.default=void 0,Nct=Dct(mo()),Pct=N;Kfe=V7.default=(0,Nct.default)((0,Pct.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const Lct=e=>{var f;const t=po(PT),n=po(u4),[r,i]=L.useState(null),[o,a]=L.useState(null),[s,l]=L.useState(!1),[u,c]=L.useState(!1),d=L.useCallback(async m=>{var E,w;l(!0),c(!1),a(null),i(null);const v=(w=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(E=n.data)==null?void 0:E.id,content:m})})).body)==null?void 0:w.getReader();let S=!0,O="";for(;v;){const{done:k,value:A}=await v.read();if(l(!1),k)break;let C=new TextDecoder().decode(A);if(S){const x=C.split(` +`);a(x[0]),S=!1,C=x.slice(1).join(` +`)}O+=C,i(O)}c(!0)},[t.accessToken,(f=n.data)==null?void 0:f.id,e]);return{data:r,memoryKey:o,isLoading:s,isComplete:u,mutateAsync:d}},Mct=e=>{var c;const t=po(PT),n=po(u4),[r,i]=L.useState(null),[o,a]=L.useState(!1),[s,l]=L.useState(!1),u=L.useCallback(async d=>{var v,S;if(!e)return;a(!0),l(!1),i(null);const m=(S=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(v=n.data)==null?void 0:v.id,memoryKey:e,content:d})})).body)==null?void 0:S.getReader();let g="";for(;m;){const{done:O,value:E}=await m.read();if(a(!1),O)break;const w=new TextDecoder().decode(E);g+=w,i(g)}l(!0)},[t.accessToken,(c=n.data)==null?void 0:c.id,e]);return{data:r,memoryKey:e,isLoading:o,isComplete:s,mutateAsync:u}},Qg={};Qg.write=async e=>{await navigator.clipboard.writeText(e)};Qg.read=async()=>navigator.clipboard.readText();Qg.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};Qg.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};function Jfe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[i]=e[i]);return n}function aK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var epe=cn.createContext(),Bct={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},vf={view:{default:20,dense:4},snackbar:{default:6,dense:2}},qm={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:zne,transitionDuration:{enter:225,exit:195}},Z1=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Uct=function(t){return""+Z1(t.vertical)+Z1(t.horizontal)},jct=function(t){return Object.keys(t).filter(function(n){return!Bct.container[n]}).reduce(function(n,r){var i;return ki({},n,(i={},i[r]=t[r],i))},{})},Gp={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},uC={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+Z1(n)+Z1(r)},toVariant:function(t){return"variant"+Z1(t)}},ok=function(t){return!!t||t===0},sK=function(t){return typeof t=="number"||t===null},zct=function(t,n,r){return function(i){return i==="autoHideDuration"?sK(t.autoHideDuration)?t.autoHideDuration:sK(n.autoHideDuration)?n.autoHideDuration:qm.autoHideDuration:t[i]||n[i]||r[i]}};function zP(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),ki({},n,{},t,{},e)}var Vct="SnackbarContent",tpe={root:Vct+"-root"},Wct=Ie("div")(function(e){var t,n,r=e.theme;return n={},n["&."+tpe.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),Hct=L.forwardRef(function(e,t){var n=e.className,r=_h(e,["className"]);return cn.createElement(Wct,Object.assign({ref:t,className:pS(tpe.root,n)},r))}),lK={right:"left",left:"right",bottom:"up",top:"down"},Qct=function(t){return t.horizontal!=="center"?lK[t.horizontal]:lK[t.vertical]},Yct=function(t){return cn.createElement(Nh,Object.assign({},t),cn.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 + 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Gct=function(t){return cn.createElement(Nh,Object.assign({},t),cn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},qct=function(t){return cn.createElement(Nh,Object.assign({},t),cn.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, - 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},jdt=function(t){return cn.createElement(Nh,Object.assign({},t),cn.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, - 0 22,12A10,10 0 0,0 12,2Z`}))},lk={fontSize:20,marginInlineEnd:8},zdt={default:void 0,success:cn.createElement(Fdt,{style:lk}),warning:cn.createElement(Bdt,{style:lk}),error:cn.createElement(Udt,{style:lk}),info:cn.createElement(jdt,{style:lk})};function KO(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var o=arguments.length,s=new Array(o),a=0;a .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},YP=16,wm="SnackbarContainer",lc={root:wm+"-root",rootDense:wm+"-rootDense",top:wm+"-top",bottom:wm+"-bottom",left:wm+"-left",right:wm+"-right",center:wm+"-center"},Ydt=Ae("div")(function(e){var t,n,r,i,o,s,a=e.theme;return s={},s["&."+lc.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:a.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[QP.container]={pointerEvents:"all"},t[QP.wrapper]={padding:yf.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+yf.view.default*2+"px)",t[a.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+YP*2+"px)"},t),s["&."+lc.rootDense]=(n={},n[QP.wrapper]={padding:yf.snackbar.dense+"px 0px"},n),s["&."+lc.top]={top:yf.view.default-yf.snackbar.default,flexDirection:"column"},s["&."+lc.bottom]={bottom:yf.view.default-yf.snackbar.default,flexDirection:"column-reverse"},s["&."+lc.left]=(r={left:yf.view.default},r[a.breakpoints.up("sm")]={alignItems:"flex-start"},r[a.breakpoints.down("sm")]={left:YP+"px"},r),s["&."+lc.right]=(i={right:yf.view.default},i[a.breakpoints.up("sm")]={alignItems:"flex-end"},i[a.breakpoints.down("sm")]={right:YP+"px"},i),s["&."+lc.center]=(o={left:"50%",transform:"translateX(-50%)"},o[a.breakpoints.up("sm")]={alignItems:"center"},o),s}),Gdt=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,o=_h(t,["className","anchorOrigin","dense"]),s=hS(lc[r.vertical],lc[r.horizontal],lc.root,n,i&&lc.rootDense);return cn.createElement(Ydt,Object.assign({className:s},o))},qdt=cn.memo(Gdt),Zdt=function(e){Adt(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(o,s){s===void 0&&(s={});var a=s,l=a.key,u=a.preventDuplicate,c=_h(a,["key","preventDuplicate"]),d=ak(l),p=d?l:new Date().getTime()+Math.random(),m=Ndt(c,i.props,qm),g=ki({key:p},c,{message:o,open:!0,entered:!1,requestClose:!1,variant:m("variant"),anchorOrigin:m("anchorOrigin"),autoHideDuration:m("autoHideDuration")});return c.persist&&(g.autoHideDuration=void 0),i.setState(function(v){if(u===void 0&&i.props.preventDuplicate||u){var E=function(C){return d?C.key===l:C.message===o},O=v.queue.findIndex(E)>-1,S=v.snacks.findIndex(E)>-1;if(O||S)return v}return i.handleDisplaySnack(ki({},v,{queue:[].concat(v.queue,[g])}))}),p},i.handleDisplaySnack=function(o){var s=o.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(o):i.processQueue(o)},i.processQueue=function(o){var s=o.queue,a=o.snacks;return s.length>0?ki({},o,{snacks:[].concat(a,[s[0]]),queue:s.slice(1,s.length)}):o},i.handleDismissOldest=function(o){if(o.snacks.some(function(c){return!c.open||c.requestClose}))return o;var s=!1,a=!1,l=o.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0);l===i.maxSnack&&(a=!0);var u=o.snacks.map(function(c){return!s&&(!c.persist||a)?(s=!0,c.entered?(c.onClose&&c.onClose(null,Gp.MAXSNACK,c.key),i.props.onClose&&i.props.onClose(null,Gp.MAXSNACK,c.key),ki({},c,{open:!1})):ki({},c,{requestClose:!0})):ki({},c)});return ki({},o,{snacks:u})},i.handleEnteredSnack=function(o,s,a){if(!ak(a))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(c){return c.key===a?ki({},c,{entered:!0}):ki({},c)})}})},i.handleCloseSnack=function(o,s,a){if(i.props.onClose&&i.props.onClose(o,s,a),s!==Gp.CLICKAWAY){var l=a===void 0;i.setState(function(u){var c=u.snacks,d=u.queue;return{snacks:c.map(function(p){return!l&&p.key!==a?ki({},p):p.entered?ki({},p,{open:!1}):ki({},p,{requestClose:!0})}),queue:d.filter(function(p){return p.key!==a})}})}},i.closeSnackbar=function(o){var s=i.state.snacks.find(function(a){return a.key===o});ak(o)&&s&&s.onClose&&s.onClose(null,Gp.INSTRUCTED,o),i.handleCloseSnack(null,Gp.INSTRUCTED,o)},i.handleExitedSnack=function(o,s,a){var l=s||a;if(!ak(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(ki({},u,{snacks:u.snacks.filter(function(d){return d.key!==l})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(uK(i)),closeSnackbar:i.closeSnackbar.bind(uK(i))}},i}var n=t.prototype;return n.render=function(){var i=this,o=this.state.contextValue,s=this.props,a=s.iconVariant,l=s.dense,u=l===void 0?qm.dense:l,c=s.hideIconVariant,d=c===void 0?qm.hideIconVariant:c,p=s.domRoot,m=s.children,g=s.classes,v=g===void 0?{}:g,E=_h(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),O=this.state.snacks.reduce(function(x,C){var I,_=Idt(C.anchorOrigin),w=x[_]||[];return ki({},x,(I={},I[_]=[].concat(w,[C]),I))},{}),S=Object.keys(O).map(function(x){var C=O[x];return cn.createElement(qdt,{key:x,dense:u,anchorOrigin:C[0].anchorOrigin,className:hS(v.containerRoot,v[dC.toContainerAnchorOrigin(x)])},C.map(function(I){return cn.createElement(Qdt,Object.assign({},E,{key:I.key,snack:I,dense:u,iconVariant:a,hideIconVariant:d,classes:Ddt(v),onClose:i.handleCloseSnack,onExited:KO([i.handleExitedSnack,i.props.onExited]),onEntered:KO([i.handleEnteredSnack,i.props.onEntered])}))}))});return cn.createElement(npe.Provider,{value:o},m,p?Pg.createPortal(S,p):S)},_dt(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||qm.maxSnack}}]),t}(P.Component),JR=function(){return P.useContext(npe)};function Xdt(e){const{title:t,feature:n,onClose:r}=e,i=Di(),o=pR(),s=po(r1),{data:a,memoryKey:l,isLoading:u,isComplete:c,mutateAsync:d}=kdt(n),{data:p,isLoading:m,isComplete:g,mutateAsync:v}=Cdt(l),[E,O]=P.useState(""),S=document.getElementById(i6),x=P.useMemo(()=>u||m,[u,m]),C=P.useMemo(()=>c||g,[c,g]),I=P.useMemo(()=>p||a,[a,p]),{enqueueSnackbar:_}=JR(),w=P.useRef(null),F=Kde(),{reset:M,formState:L}=F;P.useEffect(()=>{L.isSubmitSuccessful&&M({content:""})},[L.isSubmitSuccessful,M]),P.useEffect(()=>{O((S==null?void 0:S.getAttribute("content"))??"")},[S]),P.useEffect(()=>{E&&d(E)},[E,d]),P.useEffect(()=>{I&&w.current&&w.current.scrollTo({behavior:"smooth",top:w.current.scrollHeight})},[I]);const W=async()=>{I&&(await Qg.write(I),_("URL Copied!",{variant:"success"}))},H=async()=>{v("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},q=z=>{v(z.content)},j=(z=!1)=>{var Te,te;if(!s.cmView)return;const X=s.cmView.state.selection.main;let Z=Math.min(X.to,X.from);const G=Math.max(X.to,X.from);let ee=I;z||(Z=G,ee=` -${ee}`);const Q=z?Z:Z+1,ae=Z+ee.length;(Te=s.cmView)==null||Te.dispatch({changes:{from:Z,to:G,insert:ee},selection:{anchor:Q,head:ae}}),(te=s.doc)==null||te.update((pe,Oe)=>{pe.content.edit(Z,G,ee),Oe.set({selection:pe.content.indexRangeToPosRange([Q,ae])})}),r()};return N.jsxs(dr,{gap:4,children:[N.jsx(Zo,{bgcolor:i.palette.grey[200],p:1,borderRadius:2,children:N.jsx($r,{children:t})}),x&&N.jsx(op,{sx:{marginX:"auto"}}),N.jsx(Zo,{ref:w,sx:{height:350,overflow:"auto"},children:!x&&N.jsx(bde,{source:b4(I||""),wrapperElement:{"data-color-mode":o}})}),N.jsxs(dr,{gap:2,children:[N.jsx(Gf,{in:C,children:N.jsxs(dr,{direction:"row",justifyContent:"flex-end",gap:1,children:[N.jsx(Ms,{variant:"outlined",onClick:H,children:N.jsx(Pde,{fontSize:"small"})}),N.jsx(Ms,{variant:"outlined",onClick:W,children:N.jsx(HR,{fontSize:"small"})}),N.jsx(Ms,{variant:"outlined",onClick:()=>j(),children:"Insert below"}),N.jsx(Ms,{variant:"contained",onClick:()=>j(!0),children:"Replace"})]})}),N.jsx(Dc,{children:N.jsx(zT,{defaultValues:{content:""},formContext:F,onSuccess:q,children:N.jsx(dr,{gap:4,alignItems:"flex-end",children:N.jsx(KR,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!C,size:"small",InputProps:{startAdornment:N.jsx(_E,{position:"start",children:N.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:N.jsx(Gf,{in:C,children:N.jsx(_E,{position:"end",children:N.jsx(Xo,{type:"submit",edge:"end",children:N.jsx(epe,{})})})})}})})})})]})]})}function Kdt(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var o;(o=n==null?void 0:n.onClose)==null||o.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return N.jsx(Xh,{disableAutoFocus:!0,...n,children:N.jsx(js,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:N.jsxs(dr,{gap:4,children:[N.jsxs(dr,{alignItems:"center",gap:1,children:[N.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),N.jsxs($r,{variant:"h6",align:"center",children:["Do you want to discard",N.jsx("br",{}),"the Yorkie response?"]})]}),N.jsxs(dr,{direction:"row",gap:1,justifyContent:"center",children:[N.jsx(Ms,{variant:"outlined",onClick:i,children:"Discard"}),N.jsx(Ms,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function Jdt(e){const{onClose:t}=e,n=Di(),r=po(r1),i=P.useRef(null),[o,s]=P.useState(null),[a,l]=P.useState(null),[u,c]=P.useState(),[d,p]=P.useState(!1),m=P.useRef(null),g=P.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);P.useEffect(()=>{if(i.current)return c(i.current),()=>{c(void 0)}},[]);const v=(O,S)=>{l(O),s(S)},E=()=>{p(O=>!O)};return N.jsxs(Zo,{sx:{position:"absolute",mt:1},children:[N.jsx("span",{ref:i,style:{marginTop:4}}),N.jsx(j2,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:E,children:N.jsx(L$,{ref:m,sx:{boxShadow:n.shadows[11],borderRadius:2,width:g,padding:2},children:a&&o?N.jsx(Xdt,{title:o,feature:a,onClose:t}):N.jsx(hot,{onSelectFeature:v})})}),N.jsx(Kdt,{open:d,onCloseIntelligence:t,onClose:E})]})}function eft(){const e=Di(),[t,n]=P.useState(!1),[r,i]=P.useState(null),[o,s]=P.useState(null),[a,l]=P.useState(null);g9(()=>{l(r)},500,[r]),P.useEffect(()=>{document.addEventListener("selectionchange",function(){const c=document.getElementById(nue),d=document.getElementById(i6);i(c),s(d),c||(n(!1),l(null))})},[]);const u=()=>{n(c=>!c)};if(!(!a||!o))return N.jsxs(N.Fragment,{children:[N.jsx(Zy,{open:!!a,anchorEl:a,placement:"top-start",transition:!0,children:({TransitionProps:c})=>N.jsx(Gf,{...c,children:N.jsx(L$,{sx:{boxShadow:e.shadows[11],borderRadius:2,mb:1},children:N.jsx(Vne,{sx:{paddingX:1.3,paddingY:.3},onClick:u,children:N.jsxs(dr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx("img",{src:"/yorkie.png",height:20}),N.jsx($r,{variant:"subtitle1",children:"Yorkie Intelligence"})]})})})})}),t&&Pg.createPortal(N.jsx(Jdt,{onClose:u}),o)]})}function tft(){var l;const e=Nc(),t=e1(),n=po(aF),{data:r}=Uie(t.workspaceSlug),{data:i}=DFe(r==null?void 0:r.id,t.documentId),{doc:o,client:s,cleanUpYorkieDocument:a}=Cde(i==null?void 0:i.yorkieDocumentId,(l=n.data)==null?void 0:l.nickname);return P.useEffect(()=>{if(!(!o||!s))return e(h_(o)),e(m_(s)),()=>{a(),e(h_(null)),e(m_(null))}},[a,e,s,o]),N.jsxs(Zo,{height:"calc(100% - 64px)",children:[N.jsx(yde,{}),N.jsx(eft,{})]})}var Y9={},nft=ho;Object.defineProperty(Y9,"__esModule",{value:!0});var ipe=Y9.default=void 0,rft=nft(mo()),ift=N;ipe=Y9.default=(0,rft.default)((0,ift.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 G9={},oft=ho;Object.defineProperty(G9,"__esModule",{value:!0});var ope=G9.default=void 0,sft=oft(mo()),aft=N;ope=G9.default=(0,sft.default)((0,aft.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 q9(){const e=Nc(),t=pR(),n=()=>{e(C5e(t=="light"?"dark":"light"))};return N.jsx(Xo,{onClick:n,color:"inherit",children:t==="light"?N.jsx(ope,{}):N.jsx(ipe,{})})}function spe(e){return N.jsx(Nh,{...e,children:N.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[N.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),N.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),N.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}function lft(){const e=lp(),t=()=>{e("/login")};return N.jsx(Sne,{position:"static",sx:{zIndex:100},children:N.jsx(hre,{children:N.jsxs(dr,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[N.jsx(spe,{}),N.jsxs(dr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx(Ms,{color:"inherit",onClick:t,children:"Login"}),N.jsx(q9,{})]})]})})})}function uft(){return N.jsxs(dr,{sx:{flexGrow:1,height:"100vh"},children:[N.jsx(lft,{}),N.jsx(Y$,{})]})}var cft=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 s in r)n.d(o,s,(function(a){return r[a]}).bind(null,s));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=P},function(e,t,n){var r=n(3);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function s(u,c,d,p,m,g){if(g!==r){var v=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 v.name="Invariant Violation",v}}function a(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:a,element:s,elementType:s,instanceOf:a,node:s,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,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 Q}),n.d(t,"GithubLoginButton",function(){return te}),n.d(t,"TwitterLoginButton",function(){return me}),n.d(t,"AmazonLoginButton",function(){return et}),n.d(t,"InstagramLoginButton",function(){return nt}),n.d(t,"LinkedInLoginButton",function(){return Ge}),n.d(t,"MicrosoftLoginButton",function(){return Ke}),n.d(t,"BufferLoginButton",function(){return ie}),n.d(t,"TelegramLoginButton",function(){return Be}),n.d(t,"AppleLoginButton",function(){return be}),n.d(t,"DiscordLoginButton",function(){return ft}),n.d(t,"OktaLoginButton",function(){return pt}),n.d(t,"SlackLoginButton",function(){return bt}),n.d(t,"YahooLoginButton",function(){return vn}),n.d(t,"createButton",function(){return q}),n.d(t,"createSvgIcon",function(){return z}),n.d(t,"ZaloLoginButton",function(){return qn}),n.d(t,"TikTokLoginButton",function(){return tt}),n.d(t,"MetamaskLoginButton",function(){return jt});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return Z}),n.d(r,"GoogleLoginButton",function(){return Q}),n.d(r,"GithubLoginButton",function(){return te}),n.d(r,"TwitterLoginButton",function(){return me}),n.d(r,"AmazonLoginButton",function(){return et}),n.d(r,"InstagramLoginButton",function(){return nt}),n.d(r,"LinkedInLoginButton",function(){return Ge}),n.d(r,"MicrosoftLoginButton",function(){return Ke}),n.d(r,"BufferLoginButton",function(){return ie}),n.d(r,"TelegramLoginButton",function(){return Be}),n.d(r,"AppleLoginButton",function(){return be}),n.d(r,"DiscordLoginButton",function(){return ft}),n.d(r,"OktaLoginButton",function(){return pt}),n.d(r,"SlackLoginButton",function(){return bt}),n.d(r,"YahooLoginButton",function(){return vn}),n.d(r,"createButton",function(){return q}),n.d(r,"createSvgIcon",function(){return z}),n.d(r,"ZaloLoginButton",function(){return qn}),n.d(r,"TikTokLoginButton",function(){return tt}),n.d(r,"MetamaskLoginButton",function(){return jt});var i=n(1),o=n.n(i),s=n(0),a=n.n(s),l=function(je){var ze=je.name,Ve=je.size,yt=je.format;return o.a.createElement("i",{className:yt(ze),style:{fontSize:Ve}})};l.propTypes={format:a.a.func,name:a.a.string.isRequired,size:a.a.oneOfType([a.a.string,a.a.number]).isRequired},l.defaultProps={format:function(je){return"demo-icon icon-".concat(je)},size:26};var u=l,c=function(je){var ze=je.type,Ve=je.size,yt=je.format,Nn=je.color,Kt=Nn===void 0?"#FFFFFF":Nn;return typeof ze=="string"?o.a.createElement(u,{format:yt,name:ze,size:Ve}):o.a.createElement(ze,{size:Ve,color:Kt})};c.propTypes={format:a.a.func,size:a.a.oneOfType([a.a.number,a.a.string]),type:a.a.oneOfType([a.a.string,a.a.node,a.a.func]),color:a.a.string};var d=c;function p(je,ze){var Ve=Object.keys(je);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(je);ze&&(yt=yt.filter(function(Nn){return Object.getOwnPropertyDescriptor(je,Nn).enumerable})),Ve.push.apply(Ve,yt)}return Ve}function m(je){for(var ze=1;ze"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 Ve,yt=I(je);if(ze){var Nn=I(this).constructor;Ve=Reflect.construct(yt,arguments,Nn)}else Ve=yt.apply(this,arguments);return C(this,Ve)}}function C(je,ze){return!ze||v(ze)!=="object"&&typeof ze!="function"?function(Ve){if(Ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ve}(je):ze}function I(je){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(ze){return ze.__proto__||Object.getPrototypeOf(ze)})(je)}var _=function(je){(function(Kt,An){if(typeof An!="function"&&An!==null)throw new TypeError("Super expression must either be null or a function");Kt.prototype=Object.create(An&&An.prototype,{constructor:{value:Kt,writable:!0,configurable:!0}}),An&&S(Kt,An)})(Nn,je);var ze,Ve,yt=x(Nn);function Nn(Kt){var An;return function(Kr,Xe){if(!(Kr instanceof Xe))throw new TypeError("Cannot call a class as a function")}(this,Nn),(An=yt.call(this,Kt)).state={focused:!1,hovered:!1},An.handleMouseEnter=function(){An.setState({hovered:!0}),typeof An.props.onMouseEnter=="function"&&An.props.onMouseEnter()},An.handleMouseLeave=function(){An.setState({hovered:!1}),typeof An.props.onMouseLeave=="function"&&An.props.onMouseLeave()},An.handleFocus=function(){An.setState({focused:!0})},An.handleBlur=function(){An.setState({focused:!1})},An.handleClick=function(Kr){typeof An.props.onClick=="function"&&An.props.onClick(Kr)},An}return ze=Nn,(Ve=[{key:"render",value:function(){var Kt=this.props,An=Kt.activeStyle,Kr=Kt.align,Xe=Kt.text,Le=Kt.children,Rt=Le===void 0?Xe:Le,en=Kt.className,mn=Kt.icon,er=Kt.iconFormat,Zn=Kt.iconSize,bn=Kt.iconColor,_n=bn===void 0?"#FFFFFF":bn,Tr=Kt.preventActiveStyles,ai=Kt.size,fi=Kt.style,Pt=Kt.disabled,Pi=this.state,Wn=Pi.focused,Xn=Pi.hovered,Es=F(M.button,{activeStyle:Tr?fi:An,customStyle:fi,active:Xn||Wn,size:ai});return o.a.createElement("button",E({type:"button",style:Es,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:en},{disabled:Pt}),o.a.createElement("div",{style:M.flex},!w(Zn)&&o.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Zn}},o.a.createElement(d,{type:mn,size:Zn,format:er,color:_n})),!w(Zn)&&o.a.createElement("div",{style:M.divider}),o.a.createElement("div",{style:{textAlign:Kr,width:"100%"}},Rt)))}}])&&O(ze.prototype,Ve),Nn}(i.Component),w=function(je){return je==="0"||je==="0px"||je===0},F=function(je,ze){var Ve=ze.size,yt=ze.customStyle,Nn=ze.active,Kt=ze.activeStyle;return m(m(m({},je),{},{height:Ve},yt),Nn&&Kt)};_.propTypes={activeStyle:a.a.object,align:a.a.oneOf(["left","right","center"]),children:a.a.node,className:a.a.string,icon:a.a.oneOfType([a.a.string,a.a.node,a.a.func]),iconFormat:a.a.func,iconSize:a.a.string,iconColor:a.a.string,onClick:a.a.func,onMouseEnter:a.a.func,onMouseLeave:a.a.func,preventActiveStyles:a.a.bool,size:a.a.string,style:a.a.object,text:a.a.string,disabled:a.a.bool},_.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var M={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 L(je,ze){var Ve=Object.keys(je);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(je);ze&&(yt=yt.filter(function(Nn){return Object.getOwnPropertyDescriptor(je,Nn).enumerable})),Ve.push.apply(Ve,yt)}return Ve}function W(je){for(var ze=1;ze{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return N.jsx(wRe,{sx:{height:1},children:N.jsx(dr,{alignItems:"center",justifyContent:"center",sx:{height:1},children:N.jsx(js,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:N.jsxs(dr,{gap:4,children:[N.jsxs(Zo,{children:[N.jsxs(dr,{direction:"row",gap:1,children:[N.jsx(spe,{}),N.jsx($r,{variant:"h6",children:"Login"})]}),N.jsx($r,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),N.jsxs(dr,{gap:2,children:[N.jsxs(sb,{container:!0,spacing:1,alignItems:"center",children:[N.jsx(sb,{item:!0,xs:!0,children:N.jsx(Pf,{sx:{width:1}})}),N.jsx(sb,{item:!0,xs:"auto",children:N.jsx($r,{variant:"body2",color:"text.secondary",children:"Login with"})}),N.jsx(sb,{item:!0,xs:!0,children:N.jsx(Pf,{sx:{width:1}})})]}),dft.map(({SocailLoginComponent:t,provider:n})=>N.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}function pft(){const e=Nc(),t=lp(),[n]=G$();return P.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(m9(r))},[e,t,n]),N.jsx(Zo,{})}function hft(){return N.jsx(Y$,{})}const Z9=cn.createContext({isLoading:!0,isLoggedIn:!1}),mft=e=>{var o;const{children:t}=e,{isLoggedIn:n}=P.useContext(Z9),r=Lg(),i=po(aF);return n?N.jsx(Q$,{to:`/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},gft=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=P.useContext(Z9),i=Lg();return r?N.jsx(XS,{open:!0,children:N.jsx(op,{color:"inherit"})}):n?t:N.jsx(Q$,{to:"/",state:{from:i},replace:!0})};var X9={},bft=ho;Object.defineProperty(X9,"__esModule",{value:!0});var ape=X9.default=void 0,yft=bft(mo()),vft=N;ape=X9.default=(0,yft.default)((0,vft.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 K9={},Oft=ho;Object.defineProperty(K9,"__esModule",{value:!0});var lpe=K9.default=void 0,Eft=Oft(mo()),Sft=N;lpe=K9.default=(0,Eft.default)((0,Sft.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 Tft(e){const t=Nc(),n=()=>{t(m9(null)),t(CL(null))};return N.jsx(j2,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:N.jsx(Jy,{children:N.jsxs(Lh,{onClick:n,children:[N.jsx(U2,{children:N.jsx(lpe,{fontSize:"small"})}),N.jsx(Eh,{children:"Logout"})]})})})}var J9={},wft=ho;Object.defineProperty(J9,"__esModule",{value:!0});var upe=J9.default=void 0,xft=wft(mo()),kft=N;upe=J9.default=(0,xft.default)((0,kft.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var ej={},Cft=ho;Object.defineProperty(ej,"__esModule",{value:!0});var cpe=ej.default=void 0,_ft=Cft(mo()),Aft=N;cpe=ej.default=(0,_ft.default)((0,Aft.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class mS extends P.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const o=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:o.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=O,c&&c(O)};const E=[n];return i&&(a?s?E.unshift(a):E.push(a):this.defaultLoader&&(s?E.unshift(this.defaultLoader):E.push(this.defaultLoader))),cn.createElement(r,v,E)}}ks(mS,"propTypes",{children:J.node.isRequired,element:J.node,hasMore:J.bool,initialLoad:J.bool,isReverse:J.bool,loader:J.node,loadMore:J.func.isRequired,pageStart:J.number,ref:J.func,getScrollParent:J.func,threshold:J.number,useCapture:J.bool,useWindow:J.bool}),ks(mS,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var tj={},Rft=ho;Object.defineProperty(tj,"__esModule",{value:!0});var dpe=tj.default=void 0,Ift=Rft(mo()),Dft=N;dpe=tj.default=(0,Ift.default)((0,Dft.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var nj={},Nft=ho;Object.defineProperty(nj,"__esModule",{value:!0});var rj=nj.default=void 0,Pft=Nft(mo()),Lft=N;rj=nj.default=(0,Pft.default)((0,Lft.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var ij={},Mft=ho;Object.defineProperty(ij,"__esModule",{value:!0});var eI=ij.default=void 0,$ft=Mft(mo()),Fft=N;eI=ij.default=(0,$ft.default)((0,Fft.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const Bft=e=>["check","name-conflict",e],fpe=e=>sT({queryKey:Bft(e||""),enabled:!!e,queryFn:async()=>(await gr.post("/check/name-conflict",{name:e})).data});function ppe(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[o,s]=P.useState(""),[a,l]=P.useState(""),{data:u}=fpe(a),c=P.useMemo(()=>u!=null&&u.conflict?"Already Exists":null,[u==null?void 0:u.conflict]);g9(()=>{l(o)},500,[o]);const d=()=>{var g;(g=i==null?void 0:i.onClose)==null||g.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async g=>{await n(g),d()},m=g=>{r&&s(g.target.value)};return N.jsx(Xh,{disableAutoFocus:!0,...i,children:N.jsxs(js,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(Xo,{sx:{position:"absolute",top:28,right:28},onClick:d,children:N.jsx(eI,{})}),N.jsxs(dr,{gap:4,children:[N.jsxs($r,{variant:"h5",children:["Create New ",t]}),N.jsx(Dc,{children:N.jsx(zT,{defaultValues:{title:""},onSuccess:p,children:N.jsxs(dr,{gap:4,alignItems:"flex-end",children:[N.jsx(KR,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:m,error:!!c,helperText:c}),N.jsx(Ms,{type:"submit",variant:"contained",size:"large",disabled:!!c,children:"OK"})]})})})]})]})})}function Uft(e){const{width:t,...n}=e,r=lp(),i=e1(),{data:o,hasNextPage:s,fetchNextPage:a}=FFe(),{mutateAsync:l}=BFe(),u=P.useMemo(()=>(o==null?void 0:o.pages.reduce((E,O)=>E.concat(O.workspaces),[]))??[],[o==null?void 0:o.pages]),[c,d]=P.useState(!1),p=E=>{r(`/${E}`)},m=E=>{var O;i.workspaceSlug!==E&&(p(E),(O=n==null?void 0:n.onClose)==null||O.call(n,new Event("Close Popover"),"backdropClick"))},g=()=>{var E;d(O=>!O),n.open&&((E=n==null?void 0:n.onClose)==null||E.call(n,new Event("Close Popover"),"backdropClick"))},v=async E=>{const O=await l(E);p(O.slug)};return N.jsxs(N.Fragment,{children:[N.jsx(j2,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:N.jsxs(Jy,{sx:{width:t},children:[N.jsx(Zo,{style:{maxHeight:300,overflow:"auto"},children:N.jsx(mS,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:N.jsx(Zo,{className:"loader",children:N.jsx(op,{size:"sm"})},0),useWindow:!1,children:u.map(E=>N.jsxs(Lh,{onClick:()=>m(E.slug),children:[N.jsx(Eh,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:E.title}),i.workspaceSlug===E.slug&&N.jsx(o_,{children:N.jsx(dpe,{fontSize:"small"})})]},E.id))})}),N.jsx(Pf,{}),N.jsxs(Lh,{onClick:g,children:[N.jsx(U2,{children:N.jsx(rj,{fontSize:"small"})}),N.jsx(Eh,{children:"Create Workspace"})]})]})}),N.jsx(ppe,{open:c,title:"Workspace",onClose:g,onSuccess:v,enableConflictCheck:!0})]})}var oj={},jft=ho;Object.defineProperty(oj,"__esModule",{value:!0});var hpe=oj.default=void 0,zft=jft(mo()),Vft=N;hpe=oj.default=(0,zft.default)((0,Vft.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");const Hft=e=>["workspaces",e,"users"],Wft=e=>cF({queryKey:Hft(e||""),queryFn:async({pageParam:t})=>(await gr.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),Ub=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];//! moment.js + 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},Zct=function(t){return cn.createElement(Nh,Object.assign({},t),cn.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, + 0 22,12A10,10 0 0,0 12,2Z`}))},ak={fontSize:20,marginInlineEnd:8},Xct={default:void 0,success:cn.createElement(Yct,{style:ak}),warning:cn.createElement(Gct,{style:ak}),error:cn.createElement(qct,{style:ak}),info:cn.createElement(Zct,{style:ak})};function X1(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var o=arguments.length,a=new Array(o),s=0;s .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},WP=16,wm="SnackbarContainer",lc={root:wm+"-root",rootDense:wm+"-rootDense",top:wm+"-top",bottom:wm+"-bottom",left:wm+"-left",right:wm+"-right",center:wm+"-center"},ndt=Ie("div")(function(e){var t,n,r,i,o,a,s=e.theme;return a={},a["&."+lc.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:s.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[VP.container]={pointerEvents:"all"},t[VP.wrapper]={padding:vf.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+vf.view.default*2+"px)",t[s.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+WP*2+"px)"},t),a["&."+lc.rootDense]=(n={},n[VP.wrapper]={padding:vf.snackbar.dense+"px 0px"},n),a["&."+lc.top]={top:vf.view.default-vf.snackbar.default,flexDirection:"column"},a["&."+lc.bottom]={bottom:vf.view.default-vf.snackbar.default,flexDirection:"column-reverse"},a["&."+lc.left]=(r={left:vf.view.default},r[s.breakpoints.up("sm")]={alignItems:"flex-start"},r[s.breakpoints.down("sm")]={left:WP+"px"},r),a["&."+lc.right]=(i={right:vf.view.default},i[s.breakpoints.up("sm")]={alignItems:"flex-end"},i[s.breakpoints.down("sm")]={right:WP+"px"},i),a["&."+lc.center]=(o={left:"50%",transform:"translateX(-50%)"},o[s.breakpoints.up("sm")]={alignItems:"center"},o),a}),rdt=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,o=_h(t,["className","anchorOrigin","dense"]),a=pS(lc[r.vertical],lc[r.horizontal],lc.root,n,i&&lc.rootDense);return cn.createElement(ndt,Object.assign({className:a},o))},idt=cn.memo(rdt),odt=function(e){Fct(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(o,a){a===void 0&&(a={});var s=a,l=s.key,u=s.preventDuplicate,c=_h(s,["key","preventDuplicate"]),d=ok(l),f=d?l:new Date().getTime()+Math.random(),m=zct(c,i.props,qm),g=ki({key:f},c,{message:o,open:!0,entered:!1,requestClose:!1,variant:m("variant"),anchorOrigin:m("anchorOrigin"),autoHideDuration:m("autoHideDuration")});return c.persist&&(g.autoHideDuration=void 0),i.setState(function(v){if(u===void 0&&i.props.preventDuplicate||u){var S=function(k){return d?k.key===l:k.message===o},O=v.queue.findIndex(S)>-1,E=v.snacks.findIndex(S)>-1;if(O||E)return v}return i.handleDisplaySnack(ki({},v,{queue:[].concat(v.queue,[g])}))}),f},i.handleDisplaySnack=function(o){var a=o.snacks;return a.length>=i.maxSnack?i.handleDismissOldest(o):i.processQueue(o)},i.processQueue=function(o){var a=o.queue,s=o.snacks;return a.length>0?ki({},o,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):o},i.handleDismissOldest=function(o){if(o.snacks.some(function(c){return!c.open||c.requestClose}))return o;var a=!1,s=!1,l=o.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0);l===i.maxSnack&&(s=!0);var u=o.snacks.map(function(c){return!a&&(!c.persist||s)?(a=!0,c.entered?(c.onClose&&c.onClose(null,Gp.MAXSNACK,c.key),i.props.onClose&&i.props.onClose(null,Gp.MAXSNACK,c.key),ki({},c,{open:!1})):ki({},c,{requestClose:!0})):ki({},c)});return ki({},o,{snacks:u})},i.handleEnteredSnack=function(o,a,s){if(!ok(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(c){return c.key===s?ki({},c,{entered:!0}):ki({},c)})}})},i.handleCloseSnack=function(o,a,s){if(i.props.onClose&&i.props.onClose(o,a,s),a!==Gp.CLICKAWAY){var l=s===void 0;i.setState(function(u){var c=u.snacks,d=u.queue;return{snacks:c.map(function(f){return!l&&f.key!==s?ki({},f):f.entered?ki({},f,{open:!1}):ki({},f,{requestClose:!0})}),queue:d.filter(function(f){return f.key!==s})}})}},i.closeSnackbar=function(o){var a=i.state.snacks.find(function(s){return s.key===o});ok(o)&&a&&a.onClose&&a.onClose(null,Gp.INSTRUCTED,o),i.handleCloseSnack(null,Gp.INSTRUCTED,o)},i.handleExitedSnack=function(o,a,s){var l=a||s;if(!ok(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(ki({},u,{snacks:u.snacks.filter(function(d){return d.key!==l})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(aK(i)),closeSnackbar:i.closeSnackbar.bind(aK(i))}},i}var n=t.prototype;return n.render=function(){var i=this,o=this.state.contextValue,a=this.props,s=a.iconVariant,l=a.dense,u=l===void 0?qm.dense:l,c=a.hideIconVariant,d=c===void 0?qm.hideIconVariant:c,f=a.domRoot,m=a.children,g=a.classes,v=g===void 0?{}:g,S=_h(a,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),O=this.state.snacks.reduce(function(w,k){var A,C=Uct(k.anchorOrigin),x=w[C]||[];return ki({},w,(A={},A[C]=[].concat(x,[k]),A))},{}),E=Object.keys(O).map(function(w){var k=O[w];return cn.createElement(idt,{key:w,dense:u,anchorOrigin:k[0].anchorOrigin,className:pS(v.containerRoot,v[uC.toContainerAnchorOrigin(w)])},k.map(function(A){return cn.createElement(tdt,Object.assign({},S,{key:A.key,snack:A,dense:u,iconVariant:s,hideIconVariant:d,classes:jct(v),onClose:i.handleCloseSnack,onExited:X1([i.handleExitedSnack,i.props.onExited]),onEntered:X1([i.handleEnteredSnack,i.props.onEntered])}))}))});return cn.createElement(epe.Provider,{value:o},m,f?Pg.createPortal(E,f):E)},$ct(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||qm.maxSnack}}]),t}(L.Component),XI=function(){return L.useContext(epe)};function adt(e){const{title:t,feature:n,onClose:r}=e,i=Di(),o=dI(),a=po(rv),{data:s,memoryKey:l,isLoading:u,isComplete:c,mutateAsync:d}=Lct(n),{data:f,isLoading:m,isComplete:g,mutateAsync:v}=Mct(l),[S,O]=L.useState(""),E=document.getElementById(tB),w=L.useMemo(()=>u||m,[u,m]),k=L.useMemo(()=>c||g,[c,g]),A=L.useMemo(()=>f||s,[s,f]),{enqueueSnackbar:C}=XI(),x=L.useRef(null),F=Zde(),{reset:M,formState:P}=F;L.useEffect(()=>{P.isSubmitSuccessful&&M({content:""})},[P.isSubmitSuccessful,M]),L.useEffect(()=>{O((E==null?void 0:E.getAttribute("content"))??"")},[E]),L.useEffect(()=>{S&&d(S)},[S,d]),L.useEffect(()=>{A&&x.current&&x.current.scrollTo({behavior:"smooth",top:x.current.scrollHeight})},[A]);const V=async()=>{A&&(await Qg.write(A),C("URL Copied!",{variant:"success"}))},W=async()=>{v("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},G=z=>{v(z.content)},j=(z=!1)=>{var he,J;if(!a.cmView)return;const X=a.cmView.state.selection.main;let Z=Math.min(X.to,X.from);const q=Math.max(X.to,X.from);let te=A;z||(Z=q,te=` +${te}`);const Q=z?Z:Z+1,se=Z+te.length;(he=a.cmView)==null||he.dispatch({changes:{from:Z,to:q,insert:te},selection:{anchor:Q,head:se}}),(J=a.doc)==null||J.update((le,ve)=>{le.content.edit(Z,q,te),ve.set({selection:le.content.indexRangeToPosRange([Q,se])})}),r()};return N.jsxs(dr,{gap:4,children:[N.jsx(Zo,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:N.jsx($r,{children:t})}),w&&N.jsx(op,{sx:{marginX:"auto"}}),N.jsx(Zo,{ref:x,sx:{height:350,overflow:"auto"},children:!w&&N.jsx(mde,{source:m$(A||""),wrapperElement:{"data-color-mode":o}})}),N.jsxs(dr,{gap:2,children:[N.jsx(Gf,{in:k,children:N.jsxs(dr,{direction:"row",justifyContent:"flex-end",gap:1,children:[N.jsx(Ma,{variant:"outlined",onClick:W,children:N.jsx(Dde,{fontSize:"small"})}),N.jsx(Ma,{variant:"outlined",onClick:V,children:N.jsx(zI,{fontSize:"small"})}),N.jsx(Ma,{variant:"outlined",onClick:()=>j(),children:"Insert below"}),N.jsx(Ma,{variant:"contained",onClick:()=>j(!0),children:"Replace"})]})}),N.jsx(Dc,{children:N.jsx(jT,{defaultValues:{content:""},formContext:F,onSuccess:G,children:N.jsx(dr,{gap:4,alignItems:"flex-end",children:N.jsx(ZI,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!k,size:"small",InputProps:{startAdornment:N.jsx(CE,{position:"start",children:N.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:N.jsx(Gf,{in:k,children:N.jsx(CE,{position:"end",children:N.jsx(Xo,{type:"submit",edge:"end",children:N.jsx(Kfe,{})})})})}})})})})]})]})}function sdt(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var o;(o=n==null?void 0:n.onClose)==null||o.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return N.jsx(Xh,{disableAutoFocus:!0,...n,children:N.jsx(ja,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:N.jsxs(dr,{gap:4,children:[N.jsxs(dr,{alignItems:"center",gap:1,children:[N.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),N.jsxs($r,{variant:"h6",align:"center",children:["Do you want to discard",N.jsx("br",{}),"the Yorkie response?"]})]}),N.jsxs(dr,{direction:"row",gap:1,justifyContent:"center",children:[N.jsx(Ma,{variant:"outlined",onClick:i,children:"Discard"}),N.jsx(Ma,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function ldt(e){const{onClose:t}=e,n=Di(),r=po(rv),i=L.useRef(null),[o,a]=L.useState(null),[s,l]=L.useState(null),[u,c]=L.useState(),[d,f]=L.useState(!1),m=L.useRef(null),g=L.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);L.useEffect(()=>{if(i.current)return c(i.current),()=>{c(void 0)}},[]);const v=(O,E)=>{l(O),a(E)},S=()=>{f(O=>!O)};return N.jsxs(Zo,{sx:{position:"absolute",mt:1},children:[N.jsx("span",{ref:i,style:{marginTop:4}}),N.jsx(BR,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:S,children:N.jsx(NF,{ref:m,sx:{boxShadow:n.shadows[11],borderRadius:2,width:g,padding:2},children:s&&o?N.jsx(adt,{title:o,feature:s,onClose:t}):N.jsx(Tit,{onSelectFeature:v})})}),N.jsx(sdt,{open:d,onCloseIntelligence:t,onClose:S})]})}function udt(){const e=Di(),[t,n]=L.useState(!1),[r,i]=L.useState(null),[o,a]=L.useState(null),[s,l]=L.useState(null);p7(()=>{l(r)},500,[r]),L.useEffect(()=>{document.addEventListener("selectionchange",function(){const c=document.getElementById(Jle),d=document.getElementById(tB);i(c),a(d),c||(n(!1),l(null))})},[]);const u=()=>{n(c=>!c)};if(!(!s||!o))return N.jsxs(N.Fragment,{children:[N.jsx(Zy,{open:!!s,anchorEl:s,placement:"top-start",transition:!0,children:({TransitionProps:c})=>N.jsx(Gf,{...c,children:N.jsx(NF,{sx:{boxShadow:e.shadows[11],borderRadius:2,mb:1},children:N.jsx(Une,{sx:{paddingX:1.3,paddingY:.3},onClick:u,children:N.jsxs(dr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx("img",{src:"/yorkie.png",height:20}),N.jsx($r,{variant:"subtitle1",children:"Yorkie Intelligence"})]})})})})}),t&&Pg.createPortal(N.jsx(ldt,{onClose:u}),o)]})}function cdt(){var l;const e=Nc(),t=ev(),n=po(o4),{data:r}=$ie(t.workspaceSlug),{data:i}=R4e(r==null?void 0:r.id,t.documentId),{doc:o,client:a,cleanUpYorkieDocument:s}=xde(i==null?void 0:i.yorkieDocumentId,(l=n.data)==null?void 0:l.nickname);return L.useEffect(()=>{if(!(!o||!a))return e(f_(o)),e(p_(a)),()=>{s(),e(f_(null)),e(p_(null))}},[s,e,a,o]),N.jsxs(Zo,{height:"calc(100% - 64px)",children:[N.jsx(gde,{}),N.jsx(udt,{})]})}var W7={},ddt=ho;Object.defineProperty(W7,"__esModule",{value:!0});var npe=W7.default=void 0,fdt=ddt(mo()),pdt=N;npe=W7.default=(0,fdt.default)((0,pdt.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 H7={},hdt=ho;Object.defineProperty(H7,"__esModule",{value:!0});var rpe=H7.default=void 0,mdt=hdt(mo()),gdt=N;rpe=H7.default=(0,mdt.default)((0,gdt.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 Q7(){const e=Nc(),t=dI(),n=()=>{e(x5e(t=="light"?"dark":"light"))};return N.jsx(Xo,{onClick:n,color:"inherit",children:t==="light"?N.jsx(rpe,{}):N.jsx(npe,{})})}function ipe(e){return N.jsx(Nh,{...e,children:N.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[N.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),N.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),N.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}function bdt(){const e=lp(),t=()=>{e("/login")};return N.jsx(vne,{position:"static",sx:{zIndex:100},children:N.jsx(dre,{children:N.jsxs(dr,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[N.jsx(ipe,{}),N.jsxs(dr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx(Ma,{color:"inherit",onClick:t,children:"Login"}),N.jsx(Q7,{})]})]})})})}function ydt(){return N.jsxs(dr,{sx:{flexGrow:1,height:"100vh"},children:[N.jsx(bdt,{}),N.jsx(HF,{})]})}var vdt=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=L},function(e,t,n){var r=n(3);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function a(u,c,d,f,m,g){if(g!==r){var v=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 v.name="Invariant Violation",v}}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 Q}),n.d(t,"GithubLoginButton",function(){return J}),n.d(t,"TwitterLoginButton",function(){return ue}),n.d(t,"AmazonLoginButton",function(){return Ue}),n.d(t,"InstagramLoginButton",function(){return qe}),n.d(t,"LinkedInLoginButton",function(){return Xe}),n.d(t,"MicrosoftLoginButton",function(){return tt}),n.d(t,"BufferLoginButton",function(){return ie}),n.d(t,"TelegramLoginButton",function(){return je}),n.d(t,"AppleLoginButton",function(){return ye}),n.d(t,"DiscordLoginButton",function(){return ft}),n.d(t,"OktaLoginButton",function(){return pt}),n.d(t,"SlackLoginButton",function(){return gt}),n.d(t,"YahooLoginButton",function(){return vn}),n.d(t,"createButton",function(){return G}),n.d(t,"createSvgIcon",function(){return z}),n.d(t,"ZaloLoginButton",function(){return qn}),n.d(t,"TikTokLoginButton",function(){return rt}),n.d(t,"MetamaskLoginButton",function(){return jt});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return Z}),n.d(r,"GoogleLoginButton",function(){return Q}),n.d(r,"GithubLoginButton",function(){return J}),n.d(r,"TwitterLoginButton",function(){return ue}),n.d(r,"AmazonLoginButton",function(){return Ue}),n.d(r,"InstagramLoginButton",function(){return qe}),n.d(r,"LinkedInLoginButton",function(){return Xe}),n.d(r,"MicrosoftLoginButton",function(){return tt}),n.d(r,"BufferLoginButton",function(){return ie}),n.d(r,"TelegramLoginButton",function(){return je}),n.d(r,"AppleLoginButton",function(){return ye}),n.d(r,"DiscordLoginButton",function(){return ft}),n.d(r,"OktaLoginButton",function(){return pt}),n.d(r,"SlackLoginButton",function(){return gt}),n.d(r,"YahooLoginButton",function(){return vn}),n.d(r,"createButton",function(){return G}),n.d(r,"createSvgIcon",function(){return z}),n.d(r,"ZaloLoginButton",function(){return qn}),n.d(r,"TikTokLoginButton",function(){return rt}),n.d(r,"MetamaskLoginButton",function(){return jt});var i=n(1),o=n.n(i),a=n(0),s=n.n(a),l=function(Ve){var We=Ve.name,He=Ve.size,bt=Ve.format;return o.a.createElement("i",{className:bt(We),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(Ve){return"demo-icon icon-".concat(Ve)},size:26};var u=l,c=function(Ve){var We=Ve.type,He=Ve.size,bt=Ve.format,Nn=Ve.color,Kt=Nn===void 0?"#FFFFFF":Nn;return typeof We=="string"?o.a.createElement(u,{format:bt,name:We,size:He}):o.a.createElement(We,{size:He,color:Kt})};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 f(Ve,We){var He=Object.keys(Ve);if(Object.getOwnPropertySymbols){var bt=Object.getOwnPropertySymbols(Ve);We&&(bt=bt.filter(function(Nn){return Object.getOwnPropertyDescriptor(Ve,Nn).enumerable})),He.push.apply(He,bt)}return He}function m(Ve){for(var We=1;We"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var He,bt=A(Ve);if(We){var Nn=A(this).constructor;He=Reflect.construct(bt,arguments,Nn)}else He=bt.apply(this,arguments);return k(this,He)}}function k(Ve,We){return!We||v(We)!=="object"&&typeof We!="function"?function(He){if(He===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return He}(Ve):We}function A(Ve){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(We){return We.__proto__||Object.getPrototypeOf(We)})(Ve)}var C=function(Ve){(function(Kt,An){if(typeof An!="function"&&An!==null)throw new TypeError("Super expression must either be null or a function");Kt.prototype=Object.create(An&&An.prototype,{constructor:{value:Kt,writable:!0,configurable:!0}}),An&&E(Kt,An)})(Nn,Ve);var We,He,bt=w(Nn);function Nn(Kt){var An;return function(Kr,Je){if(!(Kr instanceof Je))throw new TypeError("Cannot call a class as a function")}(this,Nn),(An=bt.call(this,Kt)).state={focused:!1,hovered:!1},An.handleMouseEnter=function(){An.setState({hovered:!0}),typeof An.props.onMouseEnter=="function"&&An.props.onMouseEnter()},An.handleMouseLeave=function(){An.setState({hovered:!1}),typeof An.props.onMouseLeave=="function"&&An.props.onMouseLeave()},An.handleFocus=function(){An.setState({focused:!0})},An.handleBlur=function(){An.setState({focused:!1})},An.handleClick=function(Kr){typeof An.props.onClick=="function"&&An.props.onClick(Kr)},An}return We=Nn,(He=[{key:"render",value:function(){var Kt=this.props,An=Kt.activeStyle,Kr=Kt.align,Je=Kt.text,$e=Kt.children,Rt=$e===void 0?Je:$e,en=Kt.className,mn=Kt.icon,er=Kt.iconFormat,Zn=Kt.iconSize,bn=Kt.iconColor,_n=bn===void 0?"#FFFFFF":bn,Tr=Kt.preventActiveStyles,si=Kt.size,fi=Kt.style,Pt=Kt.disabled,Pi=this.state,Hn=Pi.focused,Xn=Pi.hovered,Ea=F(M.button,{activeStyle:Tr?fi:An,customStyle:fi,active:Xn||Hn,size:si});return o.a.createElement("button",S({type:"button",style:Ea,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:en},{disabled:Pt}),o.a.createElement("div",{style:M.flex},!x(Zn)&&o.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Zn}},o.a.createElement(d,{type:mn,size:Zn,format:er,color:_n})),!x(Zn)&&o.a.createElement("div",{style:M.divider}),o.a.createElement("div",{style:{textAlign:Kr,width:"100%"}},Rt)))}}])&&O(We.prototype,He),Nn}(i.Component),x=function(Ve){return Ve==="0"||Ve==="0px"||Ve===0},F=function(Ve,We){var He=We.size,bt=We.customStyle,Nn=We.active,Kt=We.activeStyle;return m(m(m({},Ve),{},{height:He},bt),Nn&&Kt)};C.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},C.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var M={button:{display:"block",border:0,borderRadius:3,boxShadow:"rgba(0, 0, 0, 0.5) 0 1px 2px",color:"#ffffff",cursor:"pointer",fontSize:"19px",margin:"5px",width:"calc(100% - 10px)",overflow:"hidden",padding:"0 10px",userSelect:"none"},divider:{width:"10px"},flex:{alignItems:"center",display:"flex",height:"100%"}};function P(Ve,We){var He=Object.keys(Ve);if(Object.getOwnPropertySymbols){var bt=Object.getOwnPropertySymbols(Ve);We&&(bt=bt.filter(function(Nn){return Object.getOwnPropertyDescriptor(Ve,Nn).enumerable})),He.push.apply(He,bt)}return He}function V(Ve){for(var We=1;We{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return N.jsx(SIe,{sx:{height:1},children:N.jsx(dr,{alignItems:"center",justifyContent:"center",sx:{height:1},children:N.jsx(ja,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:N.jsxs(dr,{gap:4,children:[N.jsxs(Zo,{children:[N.jsxs(dr,{direction:"row",gap:1,children:[N.jsx(ipe,{}),N.jsx($r,{variant:"h6",children:"Login"})]}),N.jsx($r,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),N.jsxs(dr,{gap:2,children:[N.jsxs(a0,{container:!0,spacing:1,alignItems:"center",children:[N.jsx(a0,{item:!0,xs:!0,children:N.jsx(Pf,{sx:{width:1}})}),N.jsx(a0,{item:!0,xs:"auto",children:N.jsx($r,{variant:"body2",color:"text.secondary",children:"Login with"})}),N.jsx(a0,{item:!0,xs:!0,children:N.jsx(Pf,{sx:{width:1}})})]}),Odt.map(({SocailLoginComponent:t,provider:n})=>N.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}function Sdt(){const e=Nc(),t=lp(),[n]=QF();return L.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(f7(r))},[e,t,n]),N.jsx(Zo,{})}function Tdt(){return N.jsx(HF,{})}const Y7=cn.createContext({isLoading:!0,isLoggedIn:!1}),wdt=e=>{var o;const{children:t}=e,{isLoggedIn:n}=L.useContext(Y7),r=Lg(),i=po(o4);return n?N.jsx(WF,{to:`/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},xdt=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=L.useContext(Y7),i=Lg();return r?N.jsx(ZS,{open:!0,children:N.jsx(op,{color:"inherit"})}):n?t:N.jsx(WF,{to:"/",state:{from:i},replace:!0})};var G7={},kdt=ho;Object.defineProperty(G7,"__esModule",{value:!0});var ope=G7.default=void 0,Cdt=kdt(mo()),_dt=N;ope=G7.default=(0,Cdt.default)((0,_dt.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 q7={},Adt=ho;Object.defineProperty(q7,"__esModule",{value:!0});var ape=q7.default=void 0,Rdt=Adt(mo()),Idt=N;ape=q7.default=(0,Rdt.default)((0,Idt.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 Ddt(e){const t=Nc(),n=()=>{t(f7(null)),t(wM(null))};return N.jsx(BR,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:N.jsx(Jy,{children:N.jsxs(Lh,{onClick:n,children:[N.jsx(FR,{children:N.jsx(ape,{fontSize:"small"})}),N.jsx(Eh,{children:"Logout"})]})})})}var Z7={},Ndt=ho;Object.defineProperty(Z7,"__esModule",{value:!0});var spe=Z7.default=void 0,Pdt=Ndt(mo()),Ldt=N;spe=Z7.default=(0,Pdt.default)((0,Ldt.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var X7={},Mdt=ho;Object.defineProperty(X7,"__esModule",{value:!0});var lpe=X7.default=void 0,$dt=Mdt(mo()),Fdt=N;lpe=X7.default=(0,$dt.default)((0,Fdt.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class hS extends L.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=O,c&&c(O)};const S=[n];return i&&(s?a?S.unshift(s):S.push(s):this.defaultLoader&&(a?S.unshift(this.defaultLoader):S.push(this.defaultLoader))),cn.createElement(r,v,S)}}ka(hS,"propTypes",{children:ee.node.isRequired,element:ee.node,hasMore:ee.bool,initialLoad:ee.bool,isReverse:ee.bool,loader:ee.node,loadMore:ee.func.isRequired,pageStart:ee.number,ref:ee.func,getScrollParent:ee.func,threshold:ee.number,useCapture:ee.bool,useWindow:ee.bool}),ka(hS,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var K7={},Bdt=ho;Object.defineProperty(K7,"__esModule",{value:!0});var upe=K7.default=void 0,Udt=Bdt(mo()),jdt=N;upe=K7.default=(0,Udt.default)((0,jdt.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var J7={},zdt=ho;Object.defineProperty(J7,"__esModule",{value:!0});var ej=J7.default=void 0,Vdt=zdt(mo()),Wdt=N;ej=J7.default=(0,Vdt.default)((0,Wdt.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var tj={},Hdt=ho;Object.defineProperty(tj,"__esModule",{value:!0});var KI=tj.default=void 0,Qdt=Hdt(mo()),Ydt=N;KI=tj.default=(0,Qdt.default)((0,Ydt.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const Gdt=e=>["check","name-conflict",e],cpe=e=>oT({queryKey:Gdt(e||""),enabled:!!e,queryFn:async()=>(await gr.post("/check/name-conflict",{name:e})).data});function dpe(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[o,a]=L.useState(""),[s,l]=L.useState(""),{data:u}=cpe(s),c=L.useMemo(()=>u!=null&&u.conflict?"Already Exists":null,[u==null?void 0:u.conflict]);p7(()=>{l(o)},500,[o]);const d=()=>{var g;(g=i==null?void 0:i.onClose)==null||g.call(i,new Event("Close Modal"),"escapeKeyDown")},f=async g=>{await n(g),d()},m=g=>{r&&a(g.target.value)};return N.jsx(Xh,{disableAutoFocus:!0,...i,children:N.jsxs(ja,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(Xo,{sx:{position:"absolute",top:28,right:28},onClick:d,children:N.jsx(KI,{})}),N.jsxs(dr,{gap:4,children:[N.jsxs($r,{variant:"h5",children:["Create New ",t]}),N.jsx(Dc,{children:N.jsx(jT,{defaultValues:{title:""},onSuccess:f,children:N.jsxs(dr,{gap:4,alignItems:"flex-end",children:[N.jsx(ZI,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:m,error:!!c,helperText:c}),N.jsx(Ma,{type:"submit",variant:"contained",size:"large",disabled:!!c,children:"OK"})]})})})]})]})})}function qdt(e){const{width:t,...n}=e,r=lp(),i=ev(),{data:o,hasNextPage:a,fetchNextPage:s}=M4e(),{mutateAsync:l}=$4e(),u=L.useMemo(()=>(o==null?void 0:o.pages.reduce((S,O)=>S.concat(O.workspaces),[]))??[],[o==null?void 0:o.pages]),[c,d]=L.useState(!1),f=S=>{r(`/${S}`)},m=S=>{var O;i.workspaceSlug!==S&&(f(S),(O=n==null?void 0:n.onClose)==null||O.call(n,new Event("Close Popover"),"backdropClick"))},g=()=>{var S;d(O=>!O),n.open&&((S=n==null?void 0:n.onClose)==null||S.call(n,new Event("Close Popover"),"backdropClick"))},v=async S=>{const O=await l(S);f(O.slug)};return N.jsxs(N.Fragment,{children:[N.jsx(BR,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:N.jsxs(Jy,{sx:{width:t},children:[N.jsx(Zo,{style:{maxHeight:300,overflow:"auto"},children:N.jsx(hS,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:N.jsx(Zo,{className:"loader",children:N.jsx(op,{size:"sm"})},0),useWindow:!1,children:u.map(S=>N.jsxs(Lh,{onClick:()=>m(S.slug),children:[N.jsx(Eh,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:S.title}),i.workspaceSlug===S.slug&&N.jsx(r_,{children:N.jsx(upe,{fontSize:"small"})})]},S.id))})}),N.jsx(Pf,{}),N.jsxs(Lh,{onClick:g,children:[N.jsx(FR,{children:N.jsx(ej,{fontSize:"small"})}),N.jsx(Eh,{children:"Create Workspace"})]})]})}),N.jsx(dpe,{open:c,title:"Workspace",onClose:g,onSuccess:v,enableConflictCheck:!0})]})}var nj={},Zdt=ho;Object.defineProperty(nj,"__esModule",{value:!0});var fpe=nj.default=void 0,Xdt=Zdt(mo()),Kdt=N;fpe=nj.default=(0,Xdt.default)((0,Kdt.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");const Jdt=e=>["workspaces",e,"users"],eft=e=>l4({queryKey:Jdt(e||""),queryFn:async({pageParam:t})=>(await gr.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),U0=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var mpe;function an(){return mpe.apply(null,arguments)}function Qft(e){mpe=e}function _c(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ug(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function jr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sj(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(jr(e,t))return!1;return!0}function qa(e){return e===void 0}function ep(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function VT(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function gpe(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 cj=/(\[[^\[]*\])|(\\)?([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,uk=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qP={},jb={};function Dn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(jb[e]=i),t&&(jb[t[0]]=function(){return Fd(i.apply(this,arguments),t[1],t[2])}),n&&(jb[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Xft(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Kft(e){var t=e.match(cj),n,r;for(n=0,r=t.length;n=0&&uk.test(e);)e=e.replace(uk,r),uk.lastIndex=0,n-=1;return e}var Jft={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 ept(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(cj).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var tpt="Invalid date";function npt(){return this._invalidDate}var rpt="%d",ipt=/\d{1,2}/;function opt(e){return this._ordinal.replace("%d",e)}var spt={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 apt(e,t,n,r){var i=this._relativeTime[n];return Zd(i)?i(e,t,n,r):i.replace(/%d/i,e)}function lpt(e,t){var n=this._relativeTime[e>0?"future":"past"];return Zd(n)?n(t):n.replace(/%s/i,t)}var mK={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 Gu(e){return typeof e=="string"?mK[e]||mK[e.toLowerCase()]:void 0}function dj(e){var t={},n,r;for(r in e)jr(e,r)&&(n=Gu(r),n&&(t[n]=e[r]));return t}var upt={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 cpt(e){var t=[],n;for(n in e)jr(e,n)&&t.push({unit:n,priority:upt[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Ope=/\d/,nu=/\d\d/,Epe=/\d{3}/,fj=/\d{4}/,nI=/[+-]?\d{6}/,Ni=/\d\d?/,Spe=/\d\d\d\d?/,Tpe=/\d\d\d\d\d\d?/,rI=/\d{1,3}/,pj=/\d{1,4}/,iI=/[+-]?\d{1,6}/,x1=/\d+/,oI=/[+-]?\d+/,dpt=/Z|[+-]\d\d:?\d\d/gi,sI=/Z|[+-]\d\d(?::?\d\d)?/gi,fpt=/[+-]?\d+(\.\d{1,3})?/,WT=/[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,k1=/^[1-9]\d?/,hj=/^([1-9]\d|\d)/,gA;gA={};function fn(e,t,n){gA[e]=Zd(t)?t:function(r,i){return r&&n?n:t}}function ppt(e,t){return jr(gA,e)?gA[e](t._strict,t._locale):new RegExp(hpt(e))}function hpt(e){return jf(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function jf(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Tu(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function wr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Tu(t)),n}var N4={};function si(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),ep(t)&&(r=function(o,s){s[t]=wr(o)}),i=e.length,n=0;n68?1900:2e3)};var wpe=C1("FullYear",!0);function ypt(){return aI(this.year())}function C1(e,t){return function(n){return n!=null?(xpe(this,e,n),an.updateOffset(this,t),this):gS(this,e)}}function gS(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 xpe(e,t,n){var r,i,o,s,a;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,s=e.month(),a=e.date(),a=a===29&&s===1&&!aI(o)?28:a,i?r.setUTCFullYear(o,s,a):r.setFullYear(o,s,a)}}function vpt(e){return e=Gu(e),Zd(this[e])?this[e]():this}function Opt(e,t){if(typeof e=="object"){e=dj(e);var n=cpt(e),r,i=n.length;for(r=0;r=0?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function bS(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 bA(e,t,n){var r=7+t-n,i=(7+bS(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Ipe(e,t,n,r,i){var o=(7+n-r)%7,s=bA(e,r,i),a=1+7*(t-1)+o+s,l,u;return a<=0?(l=e-1,u=JO(l)+a):a>JO(e)?(l=e+1,u=a-JO(e)):(l=e,u=a),{year:l,dayOfYear:u}}function yS(e,t,n){var r=bA(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,s;return i<1?(s=e.year()-1,o=i+zf(s,t,n)):i>zf(e.year(),t,n)?(o=i-zf(e.year(),t,n),s=e.year()+1):(s=e.year(),o=i),{week:o,year:s}}function zf(e,t,n){var r=bA(e,t,n),i=bA(e+1,t,n);return(JO(e)-r+i)/7}Dn("w",["ww",2],"wo","week");Dn("W",["WW",2],"Wo","isoWeek");fn("w",Ni,k1);fn("ww",Ni,nu);fn("W",Ni,k1);fn("WW",Ni,nu);QT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=wr(e)});function Npt(e){return yS(e,this._week.dow,this._week.doy).week}var Ppt={dow:0,doy:6};function Lpt(){return this._week.dow}function Mpt(){return this._week.doy}function $pt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Fpt(e){var t=yS(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");fn("d",Ni);fn("e",Ni);fn("E",Ni);fn("dd",function(e,t){return t.weekdaysMinRegex(e)});fn("ddd",function(e,t){return t.weekdaysShortRegex(e)});fn("dddd",function(e,t){return t.weekdaysRegex(e)});QT(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:lr(n).invalidWeekday=e});QT(["d","e","E"],function(e,t,n,r){t[r]=wr(e)});function Bpt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Upt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function gj(e,t){return e.slice(t,7).concat(e.slice(0,t))}var jpt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dpe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zpt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vpt=WT,Hpt=WT,Wpt=WT;function Qpt(e,t){var n=_c(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?gj(n,this._week.dow):e?n[e.day()]:n}function Ypt(e){return e===!0?gj(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gpt(e){return e===!0?gj(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function qpt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=qd([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=Eo.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Eo.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Eo.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Eo.call(this._weekdaysParse,s),i!==-1||(i=Eo.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Eo.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Eo.call(this._shortWeekdaysParse,s),i!==-1||(i=Eo.call(this._weekdaysParse,s),i!==-1)?i:(i=Eo.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Eo.call(this._minWeekdaysParse,s),i!==-1||(i=Eo.call(this._weekdaysParse,s),i!==-1)?i:(i=Eo.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Zpt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return qpt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=qd([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 Xpt(e){if(!this.isValid())return e!=null?this:NaN;var t=gS(this,"Day");return e!=null?(e=Bpt(e,this.localeData()),this.add(e-t,"d")):t}function Kpt(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 Jpt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Upt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function eht(e){return this._weekdaysParseExact?(jr(this,"_weekdaysRegex")||bj.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(jr(this,"_weekdaysRegex")||(this._weekdaysRegex=Vpt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function tht(e){return this._weekdaysParseExact?(jr(this,"_weekdaysRegex")||bj.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Hpt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function nht(e){return this._weekdaysParseExact?(jr(this,"_weekdaysRegex")||bj.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Wpt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function bj(){function e(c,d){return d.length-c.length}var t=[],n=[],r=[],i=[],o,s,a,l,u;for(o=0;o<7;o++)s=qd([2e3,1]).day(o),a=jf(this.weekdaysMin(s,"")),l=jf(this.weekdaysShort(s,"")),u=jf(this.weekdays(s,"")),t.push(a),n.push(l),r.push(u),i.push(a),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 yj(){return this.hours()%12||12}function rht(){return this.hours()||24}Dn("H",["HH",2],0,"hour");Dn("h",["hh",2],0,yj);Dn("k",["kk",2],0,rht);Dn("hmm",0,0,function(){return""+yj.apply(this)+Fd(this.minutes(),2)});Dn("hmmss",0,0,function(){return""+yj.apply(this)+Fd(this.minutes(),2)+Fd(this.seconds(),2)});Dn("Hmm",0,0,function(){return""+this.hours()+Fd(this.minutes(),2)});Dn("Hmmss",0,0,function(){return""+this.hours()+Fd(this.minutes(),2)+Fd(this.seconds(),2)});function Npe(e,t){Dn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Npe("a",!0);Npe("A",!1);function Ppe(e,t){return t._meridiemParse}fn("a",Ppe);fn("A",Ppe);fn("H",Ni,hj);fn("h",Ni,k1);fn("k",Ni,k1);fn("HH",Ni,nu);fn("hh",Ni,nu);fn("kk",Ni,nu);fn("hmm",Spe);fn("hmmss",Tpe);fn("Hmm",Spe);fn("Hmmss",Tpe);si(["H","HH"],qo);si(["k","kk"],function(e,t,n){var r=wr(e);t[qo]=r===24?0:r});si(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});si(["h","hh"],function(e,t,n){t[qo]=wr(e),lr(n).bigHour=!0});si("hmm",function(e,t,n){var r=e.length-2;t[qo]=wr(e.substr(0,r)),t[vc]=wr(e.substr(r)),lr(n).bigHour=!0});si("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[qo]=wr(e.substr(0,r)),t[vc]=wr(e.substr(r,2)),t[Mf]=wr(e.substr(i)),lr(n).bigHour=!0});si("Hmm",function(e,t,n){var r=e.length-2;t[qo]=wr(e.substr(0,r)),t[vc]=wr(e.substr(r))});si("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[qo]=wr(e.substr(0,r)),t[vc]=wr(e.substr(r,2)),t[Mf]=wr(e.substr(i))});function iht(e){return(e+"").toLowerCase().charAt(0)==="p"}var oht=/[ap]\.?m?\.?/i,sht=C1("Hours",!0);function aht(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Lpe={calendar:qft,longDateFormat:Jft,invalidDate:tpt,ordinal:rpt,dayOfMonthOrdinalParse:ipt,relativeTime:spt,months:Spt,monthsShort:kpe,week:Ppt,weekdays:jpt,weekdaysMin:zpt,weekdaysShort:Dpe,meridiemParse:oht},zi={},Uv={},vS;function lht(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=lI(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&lht(o,r)>=n-1)break;n--}t++}return vS}function cht(e){return!!(e&&e.match("^[^/\\\\]*$"))}function lI(e){var t=null,n;if(zi[e]===void 0&&typeof wC<"u"&&wC&&wC.exports&&cht(e))try{t=vS._abbr,n=require,n("./locale/"+e),Ah(t)}catch{zi[e]=null}return zi[e]}function Ah(e,t){var n;return e&&(qa(t)?n=cp(e):n=vj(e,t),n?vS=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),vS._abbr}function vj(e,t){if(t!==null){var n,r=Lpe;if(t.abbr=e,zi[e]!=null)ype("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=zi[e]._config;else if(t.parentLocale!=null)if(zi[t.parentLocale]!=null)r=zi[t.parentLocale]._config;else if(n=lI(t.parentLocale),n!=null)r=n._config;else return Uv[t.parentLocale]||(Uv[t.parentLocale]=[]),Uv[t.parentLocale].push({name:e,config:t}),null;return zi[e]=new uj(I4(r,t)),Uv[e]&&Uv[e].forEach(function(i){vj(i.name,i.config)}),Ah(e),zi[e]}else return delete zi[e],null}function dht(e,t){if(t!=null){var n,r,i=Lpe;zi[e]!=null&&zi[e].parentLocale!=null?zi[e].set(I4(zi[e]._config,t)):(r=lI(e),r!=null&&(i=r._config),t=I4(i,t),r==null&&(t.abbr=e),n=new uj(t),n.parentLocale=zi[e],zi[e]=n),Ah(e)}else zi[e]!=null&&(zi[e].parentLocale!=null?(zi[e]=zi[e].parentLocale,e===Ah()&&Ah(e)):zi[e]!=null&&delete zi[e]);return zi[e]}function cp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return vS;if(!_c(e)){if(t=lI(e),t)return t;e=[e]}return uht(e)}function fht(){return D4(zi)}function Oj(e){var t,n=e._a;return n&&lr(e).overflow===-2&&(t=n[Lf]<0||n[Lf]>11?Lf:n[vd]<1||n[vd]>mj(n[ca],n[Lf])?vd:n[qo]<0||n[qo]>24||n[qo]===24&&(n[vc]!==0||n[Mf]!==0||n[Zm]!==0)?qo:n[vc]<0||n[vc]>59?vc:n[Mf]<0||n[Mf]>59?Mf:n[Zm]<0||n[Zm]>999?Zm:-1,lr(e)._overflowDayOfYear&&(tvd)&&(t=vd),lr(e)._overflowWeeks&&t===-1&&(t=gpt),lr(e)._overflowWeekday&&t===-1&&(t=bpt),lr(e).overflow=t),e}var pht=/^\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)?)?$/,hht=/^\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)?)?$/,mht=/Z|[+-]\d\d(?::?\d\d)?/,ck=[["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]],ZP=[["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/]],ght=/^\/?Date\((-?\d+)/i,bht=/^(?:(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}))$/,yht={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 Mpe(e){var t,n,r=e._i,i=pht.exec(r)||hht.exec(r),o,s,a,l,u=ck.length,c=ZP.length;if(i){for(lr(e).iso=!0,t=0,n=u;tJO(s)||e._dayOfYear===0)&&(lr(e)._overflowDayOfYear=!0),n=bS(s,0,e._dayOfYear),e._a[Lf]=n.getUTCMonth(),e._a[vd]=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[qo]===24&&e._a[vc]===0&&e._a[Mf]===0&&e._a[Zm]===0&&(e._nextDay=!0,e._a[qo]=0),e._d=(e._useUTC?bS:Dpt).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[qo]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(lr(e).weekdayMismatch=!0)}}function kht(e){var t,n,r,i,o,s,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,s=4,n=Q0(t.GG,e._a[ca],yS(Ii(),1,4).year),r=Q0(t.W,1),i=Q0(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,u=yS(Ii(),o,s),n=Q0(t.gg,e._a[ca],u.year),r=Q0(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>zf(n,o,s)?lr(e)._overflowWeeks=!0:l!=null?lr(e)._overflowWeekday=!0:(a=Ipe(n,r,i,o,s),e._a[ca]=a.year,e._dayOfYear=a.dayOfYear)}an.ISO_8601=function(){};an.RFC_2822=function(){};function Sj(e){if(e._f===an.ISO_8601){Mpe(e);return}if(e._f===an.RFC_2822){$pe(e);return}e._a=[],lr(e).empty=!0;var t=""+e._i,n,r,i,o,s,a=t.length,l=0,u,c;for(i=vpe(e._f,e._locale).match(cj)||[],c=i.length,n=0;n0&&lr(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),jb[o]?(r?lr(e).empty=!1:lr(e).unusedTokens.push(o),mpt(o,r,e)):e._strict&&!r&&lr(e).unusedTokens.push(o);lr(e).charsLeftOver=a-l,t.length>0&&lr(e).unusedInput.push(t),e._a[qo]<=12&&lr(e).bigHour===!0&&e._a[qo]>0&&(lr(e).bigHour=void 0),lr(e).parsedDateParts=e._a.slice(0),lr(e).meridiem=e._meridiem,e._a[qo]=Cht(e._locale,e._a[qo],e._meridiem),u=lr(e).era,u!==null&&(e._a[ca]=e._locale.erasConvertYear(u,e._a[ca])),Ej(e),Oj(e)}function Cht(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 _ht(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(l===0){lr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:tI()});function Upe(e,t){var n,r;if(t.length===1&&_c(t[0])&&(t=t[0]),!t.length)return Ii();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qht(){if(!qa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return lj(e,this),e=Fpe(e),e._a?(t=e._isUTC?qd(e._a):Ii(e._a),this._isDSTShifted=this.isValid()&&Uht(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Zht(){return this.isValid()?!this._isUTC:!1}function Xht(){return this.isValid()?this._isUTC:!1}function zpe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Kht=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jht=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jc(e,t){var n=e,r=null,i,o,s;return pC(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ep(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Kht.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:wr(r[vd])*i,h:wr(r[qo])*i,m:wr(r[vc])*i,s:wr(r[Mf])*i,ms:wr(P4(r[Zm]*1e3))*i}):(r=Jht.exec(e))?(i=r[1]==="-"?-1:1,n={y:xm(r[2],i),M:xm(r[3],i),w:xm(r[4],i),d:xm(r[5],i),h:xm(r[6],i),m:xm(r[7],i),s:xm(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=emt(Ii(n.from),Ii(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),o=new uI(n),pC(e)&&jr(e,"_locale")&&(o._locale=e._locale),pC(e)&&jr(e,"_isValid")&&(o._isValid=e._isValid),o}jc.fn=uI.prototype;jc.invalid=Bht;function xm(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function bK(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 emt(e,t){var n;return e.isValid()&&t.isValid()?(t=wj(t,e),e.isBefore(t)?n=bK(e,t):(n=bK(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Vpe(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(ype(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=jc(n,r),Hpe(this,i,e),this}}function Hpe(e,t,n,r){var i=t._milliseconds,o=P4(t._days),s=P4(t._months);e.isValid()&&(r=r??!0,s&&_pe(e,gS(e,"Month")+s*n),o&&xpe(e,"Date",gS(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&an.updateOffset(e,o||s))}var tmt=Vpe(1,"add"),nmt=Vpe(-1,"subtract");function Wpe(e){return typeof e=="string"||e instanceof String}function rmt(e){return Ac(e)||VT(e)||Wpe(e)||ep(e)||omt(e)||imt(e)||e===null||e===void 0}function imt(e){var t=ug(e)&&!sj(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,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?fC(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Zd(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fC(n,"Z")):fC(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vmt(){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 Omt(e){e||(e=this.isUtc()?an.defaultFormatUtc:an.defaultFormat);var t=fC(this,e);return this.localeData().postformat(t)}function Emt(e,t){return this.isValid()&&(Ac(e)&&e.isValid()||Ii(e).isValid())?jc({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Smt(e){return this.from(Ii(),e)}function Tmt(e,t){return this.isValid()&&(Ac(e)&&e.isValid()||Ii(e).isValid())?jc({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wmt(e){return this.to(Ii(),e)}function Qpe(e){var t;return e===void 0?this._locale._abbr:(t=cp(e),t!=null&&(this._locale=t),this)}var Ype=Yu("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 Gpe(){return this._locale}var yA=1e3,zb=60*yA,vA=60*zb,qpe=(365*400+97)*24*vA;function Vb(e,t){return(e%t+t)%t}function Zpe(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-qpe:new Date(e,t,n).valueOf()}function Xpe(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-qpe:Date.UTC(e,t,n)}function xmt(e){var t,n;if(e=Gu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Xpe:Zpe,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-=Vb(t+(this._isUTC?0:this.utcOffset()*zb),vA);break;case"minute":t=this._d.valueOf(),t-=Vb(t,zb);break;case"second":t=this._d.valueOf(),t-=Vb(t,yA);break}return this._d.setTime(t),an.updateOffset(this,!0),this}function kmt(e){var t,n;if(e=Gu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Xpe:Zpe,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+=vA-Vb(t+(this._isUTC?0:this.utcOffset()*zb),vA)-1;break;case"minute":t=this._d.valueOf(),t+=zb-Vb(t,zb)-1;break;case"second":t=this._d.valueOf(),t+=yA-Vb(t,yA)-1;break}return this._d.setTime(t),an.updateOffset(this,!0),this}function Cmt(){return this._d.valueOf()-(this._offset||0)*6e4}function _mt(){return Math.floor(this.valueOf()/1e3)}function Amt(){return new Date(this.valueOf())}function Rmt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Imt(){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 Dmt(){return this.isValid()?this.toISOString():null}function Nmt(){return aj(this)}function Pmt(){return dh({},lr(this))}function Lmt(){return lr(this).overflow}function Mmt(){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");fn("N",xj);fn("NN",xj);fn("NNN",xj);fn("NNNN",Ymt);fn("NNNNN",Gmt);si(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?lr(n).era=i:lr(n).invalidEra=e});fn("y",x1);fn("yy",x1);fn("yyy",x1);fn("yyyy",x1);fn("yo",qmt);si(["y","yy","yyy","yyyy"],ca);si(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ca]=n._locale.eraYearOrdinalParse(e,i):t[ca]=parseInt(e,10)});function $mt(e,t){var n,r,i,o=this._eras||cp("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function Bmt(e,t){var n=e.since<=e.until?1:-1;return t===void 0?an(e.since).year():an(e.since).year()+(t-e.offset)*n}function Umt(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),ngt.call(this,e,t,n,r,i))}function ngt(e,t,n,r,i){var o=Ipe(e,t,n,r,i),s=bS(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Dn("Q",0,"Qo","quarter");fn("Q",Ope);si("Q",function(e,t){t[Lf]=(wr(e)-1)*3});function rgt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Dn("D",["DD",2],"Do","date");fn("D",Ni,k1);fn("DD",Ni,nu);fn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});si(["D","DD"],vd);si("Do",function(e,t){t[vd]=wr(e.match(Ni)[0])});var Jpe=C1("Date",!0);Dn("DDD",["DDDD",3],"DDDo","dayOfYear");fn("DDD",rI);fn("DDDD",Epe);si(["DDD","DDDD"],function(e,t,n){n._dayOfYear=wr(e)});function igt(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");fn("m",Ni,hj);fn("mm",Ni,nu);si(["m","mm"],vc);var ogt=C1("Minutes",!1);Dn("s",["ss",2],0,"second");fn("s",Ni,hj);fn("ss",Ni,nu);si(["s","ss"],Mf);var sgt=C1("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});fn("S",rI,Ope);fn("SS",rI,nu);fn("SSS",rI,Epe);var fh,ehe;for(fh="SSSS";fh.length<=9;fh+="S")fn(fh,x1);function agt(e,t){t[Zm]=wr(("0."+e)*1e3)}for(fh="S";fh.length<=9;fh+="S")si(fh,agt);ehe=C1("Milliseconds",!1);Dn("z",0,0,"zoneAbbr");Dn("zz",0,0,"zoneName");function lgt(){return this._isUTC?"UTC":""}function ugt(){return this._isUTC?"Coordinated Universal Time":""}var zt=HT.prototype;zt.add=tmt;zt.calendar=lmt;zt.clone=umt;zt.diff=gmt;zt.endOf=kmt;zt.format=Omt;zt.from=Emt;zt.fromNow=Smt;zt.to=Tmt;zt.toNow=wmt;zt.get=vpt;zt.invalidAt=Lmt;zt.isAfter=cmt;zt.isBefore=dmt;zt.isBetween=fmt;zt.isSame=pmt;zt.isSameOrAfter=hmt;zt.isSameOrBefore=mmt;zt.isValid=Nmt;zt.lang=Ype;zt.locale=Qpe;zt.localeData=Gpe;zt.max=Nht;zt.min=Dht;zt.parsingFlags=Pmt;zt.set=Opt;zt.startOf=xmt;zt.subtract=nmt;zt.toArray=Rmt;zt.toObject=Imt;zt.toDate=Amt;zt.toISOString=ymt;zt.inspect=vmt;typeof Symbol<"u"&&Symbol.for!=null&&(zt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});zt.toJSON=Dmt;zt.toString=bmt;zt.unix=_mt;zt.valueOf=Cmt;zt.creationData=Mmt;zt.eraName=Umt;zt.eraNarrow=jmt;zt.eraAbbr=zmt;zt.eraYear=Vmt;zt.year=wpe;zt.isLeapYear=ypt;zt.weekYear=Zmt;zt.isoWeekYear=Xmt;zt.quarter=zt.quarters=rgt;zt.month=Ape;zt.daysInMonth=Apt;zt.week=zt.weeks=$pt;zt.isoWeek=zt.isoWeeks=Fpt;zt.weeksInYear=egt;zt.weeksInWeekYear=tgt;zt.isoWeeksInYear=Kmt;zt.isoWeeksInISOWeekYear=Jmt;zt.date=Jpe;zt.day=zt.days=Xpt;zt.weekday=Kpt;zt.isoWeekday=Jpt;zt.dayOfYear=igt;zt.hour=zt.hours=sht;zt.minute=zt.minutes=ogt;zt.second=zt.seconds=sgt;zt.millisecond=zt.milliseconds=ehe;zt.utcOffset=zht;zt.utc=Hht;zt.local=Wht;zt.parseZone=Qht;zt.hasAlignedHourOffset=Yht;zt.isDST=Ght;zt.isLocal=Zht;zt.isUtcOffset=Xht;zt.isUtc=zpe;zt.isUTC=zpe;zt.zoneAbbr=lgt;zt.zoneName=ugt;zt.dates=Yu("dates accessor is deprecated. Use date instead.",Jpe);zt.months=Yu("months accessor is deprecated. Use month instead",Ape);zt.years=Yu("years accessor is deprecated. Use year instead",wpe);zt.zone=Yu("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Vht);zt.isDSTShifted=Yu("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qht);function cgt(e){return Ii(e*1e3)}function dgt(){return Ii.apply(null,arguments).parseZone()}function the(e){return e}var zr=uj.prototype;zr.calendar=Zft;zr.longDateFormat=ept;zr.invalidDate=npt;zr.ordinal=opt;zr.preparse=the;zr.postformat=the;zr.relativeTime=apt;zr.pastFuture=lpt;zr.set=Gft;zr.eras=$mt;zr.erasParse=Fmt;zr.erasConvertYear=Bmt;zr.erasAbbrRegex=Wmt;zr.erasNameRegex=Hmt;zr.erasNarrowRegex=Qmt;zr.months=xpt;zr.monthsShort=kpt;zr.monthsParse=_pt;zr.monthsRegex=Ipt;zr.monthsShortRegex=Rpt;zr.week=Npt;zr.firstDayOfYear=Mpt;zr.firstDayOfWeek=Lpt;zr.weekdays=Qpt;zr.weekdaysMin=Gpt;zr.weekdaysShort=Ypt;zr.weekdaysParse=Zpt;zr.weekdaysRegex=eht;zr.weekdaysShortRegex=tht;zr.weekdaysMinRegex=nht;zr.isPM=iht;zr.meridiem=aht;function OA(e,t,n,r){var i=cp(),o=qd().set(r,t);return i[n](o,e)}function nhe(e,t,n){if(ep(e)&&(t=e,e=void 0),e=e||"",t!=null)return OA(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=OA(e,r,n,"month");return i}function Cj(e,t,n,r){typeof e=="boolean"?(ep(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ep(t)&&(n=t,t=void 0),t=t||"");var i=cp(),o=e?i._week.dow:0,s,a=[];if(n!=null)return OA(t,(n+o)%7,r,"day");for(s=0;s<7;s++)a[s]=OA(t,(s+o)%7,r,"day");return a}function fgt(e,t){return nhe(e,t,"months")}function pgt(e,t){return nhe(e,t,"monthsShort")}function hgt(e,t,n){return Cj(e,t,n,"weekdays")}function mgt(e,t,n){return Cj(e,t,n,"weekdaysShort")}function ggt(e,t,n){return Cj(e,t,n,"weekdaysMin")}Ah("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=wr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});an.lang=Yu("moment.lang is deprecated. Use moment.locale instead.",Ah);an.langData=Yu("moment.langData is deprecated. Use moment.localeData instead.",cp);var Of=Math.abs;function bgt(){var e=this._data;return this._milliseconds=Of(this._milliseconds),this._days=Of(this._days),this._months=Of(this._months),e.milliseconds=Of(e.milliseconds),e.seconds=Of(e.seconds),e.minutes=Of(e.minutes),e.hours=Of(e.hours),e.months=Of(e.months),e.years=Of(e.years),this}function rhe(e,t,n,r){var i=jc(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function ygt(e,t){return rhe(this,e,t,1)}function vgt(e,t){return rhe(this,e,t,-1)}function yK(e){return e<0?Math.floor(e):Math.ceil(e)}function Ogt(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,s,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=yK(M4(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Tu(e/1e3),r.seconds=i%60,o=Tu(i/60),r.minutes=o%60,s=Tu(o/60),r.hours=s%24,t+=Tu(s/24),l=Tu(ihe(t)),n+=l,t-=yK(M4(l)),a=Tu(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function ihe(e){return e*4800/146097}function M4(e){return e*146097/4800}function Egt(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Gu(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+ihe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(M4(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 dp(e){return function(){return this.as(e)}}var ohe=dp("ms"),Sgt=dp("s"),Tgt=dp("m"),wgt=dp("h"),xgt=dp("d"),kgt=dp("w"),Cgt=dp("M"),_gt=dp("Q"),Agt=dp("y"),Rgt=ohe;function Igt(){return jc(this)}function Dgt(e){return e=Gu(e),this.isValid()?this[e+"s"]():NaN}function Yg(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ngt=Yg("milliseconds"),Pgt=Yg("seconds"),Lgt=Yg("minutes"),Mgt=Yg("hours"),$gt=Yg("days"),Fgt=Yg("months"),Bgt=Yg("years");function Ugt(){return Tu(this.days()/7)}var wf=Math.round,gb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jgt(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function zgt(e,t,n,r){var i=jc(e).abs(),o=wf(i.as("s")),s=wf(i.as("m")),a=wf(i.as("h")),l=wf(i.as("d")),u=wf(i.as("M")),c=wf(i.as("w")),d=wf(i.as("y")),p=o<=n.ss&&["s",o]||o0,p[4]=r,jgt.apply(null,p)}function Vgt(e){return e===void 0?wf:typeof e=="function"?(wf=e,!0):!1}function Hgt(e,t){return gb[e]===void 0?!1:t===void 0?gb[e]:(gb[e]=t,e==="s"&&(gb.ss=t-1),!0)}function Wgt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=gb,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},gb,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=zgt(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var XP=Math.abs;function D0(e){return(e>0)-(e<0)||+e}function dI(){if(!this.isValid())return this.localeData().invalidDate();var e=XP(this._milliseconds)/1e3,t=XP(this._days),n=XP(this._months),r,i,o,s,a=this.asSeconds(),l,u,c,d;return a?(r=Tu(e/60),i=Tu(r/60),e%=60,r%=60,o=Tu(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=D0(this._months)!==D0(a)?"-":"",c=D0(this._days)!==D0(a)?"-":"",d=D0(this._milliseconds)!==D0(a)?"-":"",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+s+"S":"")):"P0D"}var Dr=uI.prototype;Dr.isValid=Fht;Dr.abs=bgt;Dr.add=ygt;Dr.subtract=vgt;Dr.as=Egt;Dr.asMilliseconds=ohe;Dr.asSeconds=Sgt;Dr.asMinutes=Tgt;Dr.asHours=wgt;Dr.asDays=xgt;Dr.asWeeks=kgt;Dr.asMonths=Cgt;Dr.asQuarters=_gt;Dr.asYears=Agt;Dr.valueOf=Rgt;Dr._bubble=Ogt;Dr.clone=Igt;Dr.get=Dgt;Dr.milliseconds=Ngt;Dr.seconds=Pgt;Dr.minutes=Lgt;Dr.hours=Mgt;Dr.days=$gt;Dr.weeks=Ugt;Dr.months=Fgt;Dr.years=Bgt;Dr.humanize=Wgt;Dr.toISOString=dI;Dr.toString=dI;Dr.toJSON=dI;Dr.locale=Qpe;Dr.localeData=Gpe;Dr.toIsoString=Yu("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",dI);Dr.lang=Ype;Dn("X",0,0,"unix");Dn("x",0,0,"valueOf");fn("x",oI);fn("X",fpt);si("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});si("x",function(e,t,n){n._d=new Date(wr(e))});//! moment.js -an.version="2.30.1";Qft(Ii);an.fn=zt;an.min=Pht;an.max=Lht;an.now=Mht;an.utc=qd;an.unix=cgt;an.months=fgt;an.isDate=VT;an.locale=Ah;an.invalid=tI;an.duration=jc;an.isMoment=Ac;an.weekdays=hgt;an.parseZone=dgt;an.localeData=cp;an.isDuration=pC;an.monthsShort=pgt;an.weekdaysMin=ggt;an.defineLocale=vj;an.updateLocale=dht;an.locales=fht;an.weekdaysShort=mgt;an.normalizeUnits=Gu;an.relativeTimeRounding=Vgt;an.relativeTimeThreshold=Hgt;an.calendarFormat=amt;an.prototype=zt;an.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function Qgt(e){var g,v;const{open:t,onClose:n}=e,r=po(fF),{data:i,fetchNextPage:o,hasNextPage:s}=Wft((g=r.data)==null?void 0:g.id),{mutateAsync:a}=UFe(((v=r.data)==null?void 0:v.id)||""),l=P.useMemo(()=>(i==null?void 0:i.pages.reduce((E,O)=>E.concat(O.workspaceUsers),[]))??[],[i==null?void 0:i.pages]),{enqueueSnackbar:u}=JR(),[c,d]=P.useState(null),p=async E=>{let O;if(E.expiredString===Ub[0])O=null;else{const[x,C]=E.expiredString.split(" ");O=an().add(Number(x),C).toDate()}const{invitationToken:S}=await a({expiredAt:O});d(`${window.location.origin}/join/${S}`)},m=async()=>{c&&(await Qg.write(c),u("URL Copied!",{variant:"success"}))};return N.jsx(Xh,{open:t,disableAutoFocus:!0,onClose:n,children:N.jsxs(js,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(Xo,{sx:{position:"absolute",top:28,right:28},onClick:n,children:N.jsx(eI,{})}),N.jsxs(dr,{gap:4,children:[N.jsx($r,{variant:"h5",children:"Members"}),N.jsxs(dr,{gap:1,children:[N.jsx($r,{variant:"subtitle1",children:"Invite Link"}),N.jsx(Dc,{children:N.jsx(zT,{defaultValues:{expiredString:Ub[0]},onSuccess:p,children:N.jsxs(dr,{direction:"row",justifyContent:"space-between",gap:2,children:[N.jsx(A4,{label:"Expired Date",name:"expiredString",options:Ub.map(E=>({id:E,label:E})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(Ms,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!c&&N.jsxs(dr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx($r,{variant:"body1",children:c}),N.jsx(Im,{title:"Copy URL",children:N.jsx(Xo,{onClick:m,children:N.jsx(HR,{})})})]})]}),N.jsx(Zo,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:N.jsx(mS,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:N.jsx(Zo,{className:"loader",children:N.jsx(op,{size:"sm"})},0),useWindow:!1,children:N.jsx(dr,{gap:2,children:l.map(E=>{var O;return N.jsx(dr,{direction:"row",alignItems:"center",children:N.jsxs(dr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(M2,{children:(O=E.nickname)==null?void 0:O[0]}),N.jsx($r,{children:E.nickname})]})},E.id)})})})})]})]})})}const KP=240;function Ygt(){var x,C,I,_,w;const e=lp(),t=po(aF),n=po(fF),{mutateAsync:r}=NFe(((x=n.data)==null?void 0:x.id)||""),[i,o]=P.useState(null),[s,a]=P.useState(null),[l,u]=P.useState(!1),[c,d]=P.useState(!1),p=F=>{o(F.currentTarget)},m=()=>{o(null)},g=F=>{a(F.currentTarget)},v=()=>{a(null)},E=async F=>{const M=await r(F);e(M.id)},O=()=>{u(F=>!F)},S=()=>{d(F=>!F)};return N.jsxs(xIe,{sx:{width:KP,flexShrink:0,"& .MuiDrawer-paper":{width:KP,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[N.jsxs(F0,{disablePadding:!0,children:[N.jsxs(dN,{onClick:g,children:[N.jsx(Eh,{primary:(C=n.data)==null?void 0:C.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),N.jsx(o_,{children:N.jsx(Xo,{children:s?N.jsx(cpe,{}):N.jsx(upe,{})})})]}),N.jsx(Uft,{open:!!s,anchorEl:s,onClose:v,width:KP-32})]}),N.jsx(Pf,{}),N.jsx(F0,{children:N.jsx(Ms,{variant:"contained",startIcon:N.jsx(rj,{}),sx:{width:1},onClick:O,children:"New Note"})}),N.jsx(Pf,{}),N.jsx(F0,{disablePadding:!0,children:N.jsxs(dN,{onClick:S,children:[N.jsx(U2,{children:N.jsx(hpe,{})}),N.jsx(Eh,{primary:"Members"})]})}),N.jsx(Pf,{}),N.jsx(F0,{sx:{mt:"auto"},children:N.jsx(dr,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:N.jsx(q9,{})})}),N.jsx(Pf,{}),N.jsxs(F0,{disablePadding:!0,children:[N.jsxs(dN,{onClick:p,children:[N.jsx(yNe,{children:N.jsx(M2,{children:(_=(I=t.data)==null?void 0:I.nickname)==null?void 0:_.charAt(0)})}),N.jsx(Eh,{primary:(w=t.data)==null?void 0:w.nickname}),N.jsx(o_,{children:N.jsx(ape,{})})]}),N.jsx(Tft,{open:!!i,anchorEl:i,onClose:m})]}),N.jsx(ppe,{open:l,title:"Note",onSuccess:E,onClose:O}),N.jsx(Qgt,{open:c,onClose:S})]})}var _j={},Ggt=ho;Object.defineProperty(_j,"__esModule",{value:!0});var she=_j.default=void 0,qgt=Ggt(mo()),vK=N;she=_j.default=(0,qgt.default)([(0,vK.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,vK.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function Zgt(e){const{document:t}=e,n=lp(),r=e1(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return N.jsx(L$,{sx:{width:"100%"},children:N.jsx(Vne,{onClick:i,children:N.jsxs(q2e,{children:[N.jsx($r,{variant:"h5",component:"div",noWrap:!0,children:t.title}),N.jsxs(dr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(she,{fontSize:"small",sx:{color:"text.secondary"}}),N.jsxs($r,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",an(t.updatedAt).fromNow()]})]})]})})})}function Xgt(){const e=e1(),{data:t}=Uie(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=IFe(t==null?void 0:t.id),o=P.useMemo(()=>(n==null?void 0:n.pages.reduce((s,a)=>s.concat(a.documents),[]))??[],[n==null?void 0:n.pages]);return N.jsxs(dr,{direction:"row",children:[N.jsx(Ygt,{}),N.jsx(Zo,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:N.jsx(mS,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:N.jsx(Zo,{className:"loader",children:N.jsx(op,{size:"sm"})},0),useWindow:!1,children:N.jsx(Zo,{p:2,width:1,children:N.jsx(sb,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(s=>N.jsx(sb,{item:!0,xs:4,sm:4,md:4,lg:3,children:N.jsx(Zgt,{document:s})},s.id))})})})})]})}function Kgt(){const e=Mre();return N.jsx(dr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:N.jsxs(dr,{alignItems:"center",children:[N.jsx($r,{variant:"h5",children:"Something went wrong"}),H$(e)&&N.jsxs($r,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function Jgt(){const e=e1(),t=lp(),{mutateAsync:n}=jFe();return P.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),N.jsx(XS,{open:!0,children:N.jsx(op,{color:"inherit"})})}function e0t(){return N.jsx(Zo,{})}var Aj={},t0t=ho;Object.defineProperty(Aj,"__esModule",{value:!0});var ahe=Aj.default=void 0,n0t=t0t(mo()),r0t=N;ahe=Aj.default=(0,n0t.default)((0,r0t.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 Rj={},i0t=ho;Object.defineProperty(Rj,"__esModule",{value:!0});var lhe=Rj.default=void 0,o0t=i0t(mo()),s0t=N;lhe=Rj.default=(0,o0t.default)((0,s0t.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var Ij={},a0t=ho;Object.defineProperty(Ij,"__esModule",{value:!0});var uhe=Ij.default=void 0,l0t=a0t(mo()),u0t=N;uhe=Ij.default=(0,l0t.default)((0,u0t.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");var $4=(e=>(e.READ="READ",e.EDIT="EDIT",e))($4||{});function c0t(e){var c,d;const{...t}=e,n=e1(),[r,i]=P.useState(null),o=po(dF),{mutateAsync:s}=PFe(((c=o.data)==null?void 0:c.workspaceId)||"",((d=o.data)==null?void 0:d.id)||""),{enqueueSnackbar:a}=JR(),l=async p=>{let m;if(p.expiredString===Ub[0])m=null;else{const[v,E]=p.expiredString.split(" ");m=an().add(Number(v),E).toDate()}const{sharingToken:g}=await s({role:p.role,expiredAt:m});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${g}`)},u=async()=>{r&&(await Qg.write(r),a("URL Copied!",{variant:"success"}))};return N.jsx(Xh,{disableAutoFocus:!0,...t,children:N.jsxs(js,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(Xo,{sx:{position:"absolute",top:28,right:28},onClick:p=>{var m;return(m=e.onClose)==null?void 0:m.call(e,p,"backdropClick")},children:N.jsx(eI,{})}),N.jsxs(dr,{gap:1,children:[N.jsx($r,{variant:"subtitle1",children:"Share Link"}),N.jsx(Dc,{children:N.jsx(zT,{defaultValues:{expiredString:Ub[0],role:Object.values($4)[0]},onSuccess:l,children:N.jsxs(dr,{gap:2,children:[N.jsx(A4,{label:"Role",name:"role",options:Object.values($4).map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(A4,{label:"Expired Date",name:"expiredString",options:Ub.map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(Ms,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&N.jsxs(dr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx($r,{variant:"body1",width:1,noWrap:!0,children:r}),N.jsx(Im,{title:"Copy URL",children:N.jsx(Xo,{onClick:u,children:N.jsx(HR,{})})})]})]})]})})}function d0t(){const[e,t]=P.useState(!1),n=()=>{t(r=>!r)};return N.jsxs(N.Fragment,{children:[N.jsx(Xo,{onClick:n,color:"inherit",children:N.jsx(uhe,{})}),N.jsx(c0t,{open:e,onClose:n})]})}var Dj={},f0t=ho;Object.defineProperty(Dj,"__esModule",{value:!0});var che=Dj.default=void 0,p0t=f0t(mo()),h0t=N;che=Dj.default=(0,p0t.default)((0,h0t.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");function m0t(){const e=Nc(),t=lp(),n=po(r1),[r,{set:i,push:o,removeAt:s,clear:a,filter:l}]=Qit([]);P.useEffect(()=>{n.shareRole==="READ"&&e(kL("read"))},[e,n.shareRole]),P.useEffect(()=>{if(!n.doc)return;i(n.doc.getPresences());const d=n.doc.subscribe("others",p=>{p.type==="watched"&&o(p.value),p.type==="unwatched"&&l(m=>m.clientID!==p.value.clientID)});return()=>{d(),a()}},[n.doc,a,o,s,i,l]);const u=d=>{e(kL(d))},c=()=>{t(-1)};return N.jsx(Sne,{position:"static",sx:{zIndex:100},children:N.jsx(hre,{children:N.jsxs(dr,{width:"100%",direction:"row",justifyContent:"space-between",children:[N.jsxs(dr,{direction:"row",spacing:1,alignItems:"center",children:[N.jsx(Im,{title:"Back to Previous Page",children:N.jsx(Xo,{color:"inherit",onClick:c,children:N.jsx(che,{})})}),N.jsx(js,{children:n.shareRole!=="READ"&&N.jsxs(FLe,{value:n.mode,exclusive:!0,onChange:(d,p)=>u(p),size:"small",children:[N.jsx(hN,{value:"edit","aria-label":"edit",children:N.jsx(Im,{title:"Edit Mode",children:N.jsx(ahe,{})})}),N.jsx(hN,{value:"both","aria-label":"both",children:N.jsx(Im,{title:"Both Mode",children:N.jsx(lhe,{})})}),N.jsx(hN,{value:"read","aria-label":"read",children:N.jsx(Im,{title:"Read Mode",children:N.jsx(H9,{})})})]})})]}),N.jsxs(dr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(a2e,{max:4,children:r==null?void 0:r.map(d=>N.jsx(Im,{title:d.presence.name,children:N.jsx(M2,{alt:d.presence.name,sx:{bgcolor:d.presence.color},children:d.presence.name[0]})},d.clientID))}),!n.shareRole&&N.jsx(d0t,{}),N.jsx(q9,{})]})]})})})}function g0t(){return N.jsxs(Zo,{sx:{flexGrow:1},height:"100vh",children:[N.jsx(m0t,{}),N.jsx(Y$,{})]})}const b0t=e=>["documents","share",e],y0t=e=>{const t=Nc(),n=sT({queryKey:b0t(e||""),enabled:!!e,queryFn:async()=>(await gr.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return P.useEffect(()=>(n.data&&t(v_(n.data)),()=>{t(v_(null))}),[t,n.data]),n};function v0t(){const e=Nc(),t=Lg(),[n]=G$(),r=P.useMemo(()=>n.get("token"),[n]),{data:i}=y0t(r),{doc:o,client:s,cleanUpYorkieDocument:a}=Cde(i==null?void 0:i.yorkieDocumentId,"Anonymous");return P.useEffect(()=>{i!=null&&i.role&&(e(Q$e(i.role)),i.role==="READ"&&e(kL("read")))},[e,i==null?void 0:i.role]),P.useEffect(()=>{if(!(!o||!s))return e(h_(o)),e(m_(s)),()=>{a(),e(h_(null)),e(m_(null))}},[a,e,s,o]),r?N.jsx(Zo,{height:"calc(100% - 64px)",children:N.jsx(yde,{})}):N.jsx(Q$,{to:"/",state:{from:t},replace:!0})}const O0t=[{path:"",accessType:2,element:N.jsx(uft,{}),children:[{path:"",element:N.jsx(e0t,{})},{path:"login",element:N.jsx(fft,{})}]},{path:":workspaceSlug",accessType:1,element:N.jsx(hft,{}),children:[{path:"",element:N.jsx(Xgt,{})}]},{path:":workspaceSlug",element:N.jsx(g0t,{}),children:[{path:":documentId",accessType:1,element:N.jsx(tft,{})},{path:":documentId/share",accessType:0,element:N.jsx(v0t,{})}]},{path:"auth/callback",accessType:2,element:N.jsx(pft,{})},{path:"join/:invitationToken",accessType:1,element:N.jsx(Jgt,{})}],E0t=e=>{const t=n=>(n.accessType===1?n.element=N.jsx(gft,{children:n.element}):n.accessType===2&&(n.element=N.jsx(mft,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=N.jsx(Kgt,{}),n))},S0t=E0t(O0t),dhe=e=>["users",e],T0t=()=>{const e=Nc(),t=po(LT);t.accessToken&&(gr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=sT({queryKey:dhe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await gr.get("/users")).data});return P.useEffect(()=>{n.isSuccess?e(CL(n.data)):n.isError&&(e(m9(null)),e(CL(null)),gr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},w0t=()=>{const e=po(LT),t=oT();return Jh({mutationFn:async n=>(await gr.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:dhe(e.accessToken||"")})}})};function x0t(e){const[t,n]=P.useState(""),[r,i]=P.useState(""),{data:o}=fpe(r),{mutateAsync:s}=w0t(),a=P.useMemo(()=>o!=null&&o.conflict?"Already Exists":null,[o==null?void 0:o.conflict]);g9(()=>{i(t)},500,[t]);const l=c=>{n(c.target.value)},u=async c=>{await s(c)};return N.jsx(Xh,{disableAutoFocus:!0,...e,children:N.jsx(js,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:N.jsxs(dr,{gap:4,children:[N.jsx($r,{variant:"h5",children:"Create Your Nickname"}),N.jsx(Dc,{children:N.jsx(zT,{defaultValues:{nickname:""},onSuccess:u,children:N.jsxs(dr,{gap:4,alignItems:"flex-end",children:[N.jsx(KR,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!a,helperText:a}),N.jsx(Ms,{type:"submit",variant:"contained",size:"large",disabled:!!a,children:"OK"})]})})})]})})})}function k0t(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=T0t(),o=P.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return N.jsx(Z9.Provider,{value:{isLoggedIn:r,isLoading:i},children:o?N.jsx(x0t,{open:!0}):t})}function C0t(){const{enqueueSnackbar:e}=JR();return P.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}const fhe=Object.prototype.toString;function phe(e){switch(fhe.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return tp(e,Error)}}function _1(e,t){return fhe.call(e)===`[object ${t}]`}function Nj(e){return _1(e,"ErrorEvent")}function OK(e){return _1(e,"DOMError")}function _0t(e){return _1(e,"DOMException")}function Md(e){return _1(e,"String")}function Pj(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Lj(e){return e===null||Pj(e)||typeof e!="object"&&typeof e!="function"}function By(e){return _1(e,"Object")}function fI(e){return typeof Event<"u"&&tp(e,Event)}function A0t(e){return typeof Element<"u"&&tp(e,Element)}function R0t(e){return _1(e,"RegExp")}function pI(e){return!!(e&&e.then&&typeof e.then=="function")}function I0t(e){return By(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function hhe(e){return typeof e=="number"&&e!==e}function tp(e,t){try{return e instanceof t}catch{return!1}}function mhe(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Hb(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function EK(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rD0t(e,r,n))}function N0t(e,t,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!tp(s.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=P0t(F4(e,t,i,s.originalException,r,o.exception.values,a,0),n))}function F4(e,t,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if(tp(r[i],Error)){SK(s,a);const u=e(t,r[i]),c=l.length;TK(u,i,c,a),l=F4(e,t,n,r[i],i,[u,...l],u,c)}return Array.isArray(r.errors)&&r.errors.forEach((u,c)=>{if(tp(u,Error)){SK(s,a);const d=e(t,u),p=l.length;TK(d,`errors[${c}]`,p,a),l=F4(e,t,n,u,i,[d,...l],d,p)}}),l}function SK(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function TK(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function P0t(e,t){return e.map(n=>(n.value&&(n.value=Hb(n.value,t)),n))}function dk(e){return e&&e.Math==Math?e:void 0}const Gr=typeof globalThis=="object"&&dk(globalThis)||typeof window=="object"&&dk(window)||typeof self=="object"&&dk(self)||typeof global=="object"&&dk(global)||function(){return this}()||{};function Mj(){return Gr}function ghe(e,t,n){const r=n||Gr,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const Wb=Mj(),L0t=80;function OS(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let o=0,s=0;const a=" > ",l=a.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||L0t;for(;n&&o++1&&s+i.length*l+u.length>=d));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(a)}catch{return""}}function M0t(e,t){const n=e,r=[];let i,o,s,a,l;if(!n||!n.tagName)return"";if(Wb.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(u&&u.length)u.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Md(i))for(o=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,B0t="Sentry Logger ",B4=["debug","info","warn","error","log","assert","trace"],EA={};function hI(e){if(!("console"in Gr))return e();const t=Gr.console,n={},r=Object.keys(EA);r.forEach(i=>{const o=EA[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function U0t(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return A1?B4.forEach(n=>{t[n]=(...r)=>{e&&hI(()=>{Gr.console[n](`${B0t}[${n}]:`,...r)})}}):B4.forEach(n=>{t[n]=()=>{}}),t}const Lt=U0t(),j0t=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function z0t(e){return e==="http"||e==="https"}function GT(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function V0t(e){const t=j0t.exec(e);if(!t){hI(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",o,s="",a]=t.slice(1);let l="",u=a;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return yhe({host:o,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function yhe(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function H0t(e){if(!A1)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Lt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?z0t(r)?t&&isNaN(parseInt(t,10))?(Lt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Lt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Lt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function W0t(e){const t=typeof e=="string"?V0t(e):yhe(e);if(!(!t||!H0t(t)))return t}class Od extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Fs(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&vhe(i,r),e[t]=i}function ES(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{A1&&Lt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function vhe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,ES(e,"__sentry_original__",t)}catch{}}function $j(e){return e.__sentry_original__}function Q0t(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Ohe(e){if(phe(e))return{message:e.message,name:e.name,stack:e.stack,...xK(e)};if(fI(e)){const t={type:e.type,target:wK(e.target),currentTarget:wK(e.currentTarget),...xK(e)};return typeof CustomEvent<"u"&&tp(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function wK(e){try{return A0t(e)?OS(e):Object.prototype.toString.call(e)}catch{return""}}function xK(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Y0t(e,t=40){const n=Object.keys(Ohe(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Hb(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Hb(i,t)}return""}function Au(e){return U4(e,new Map)}function U4(e,t){if(G0t(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=U4(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(U4(i,t))}),r}return e}function G0t(e){if(!By(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Ehe=50,kK=/\(error: (.*)\)/,CK=/captureMessage|captureException/;function She(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(` -`);for(let s=r;s1024)continue;const l=kK.test(a)?a.replace(kK,"$1"):a;if(!l.match(/\S*Error: /)){for(const u of t){const c=u(l);if(c){i.push(c);break}}if(i.length>=Ehe)break}}return Z0t(i)}}function q0t(e){return Array.isArray(e)?She(...e):e}function Z0t(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),CK.test(t[t.length-1].function||"")&&(t.pop(),CK.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Ehe).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const JP="";function np(e){try{return!e||typeof e!="function"?JP:e.name||JP}catch{return JP}}const mC={},_K={};function Gg(e,t){mC[e]=mC[e]||[],mC[e].push(t)}function qg(e,t){_K[e]||(t(),_K[e]=!0)}function Tc(e,t){const n=e&&mC[e];if(n)for(const r of n)try{r(t)}catch(i){A1&&Lt.error(`Error while triggering instrumentation handler. +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var dK={};function gpe(e,t){sn.deprecationHandler!=null&&sn.deprecationHandler(e,t),dK[e]||(mpe(t),dK[e]=!0)}sn.suppressDeprecationWarnings=!1;sn.deprecationHandler=null;function Xd(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function rft(e){var t,n;for(n in e)jr(e,n)&&(t=e[n],Xd(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 A$(e,t){var n=dh({},e),r;for(r in t)jr(t,r)&&(ug(e[r])&&ug(t[r])?(n[r]={},dh(n[r],e[r]),dh(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)jr(e,r)&&!jr(t,r)&&ug(e[r])&&(n[r]=dh({},n[r]));return n}function aj(e){e!=null&&this.set(e)}var R$;Object.keys?R$=Object.keys:R$=function(e){var t,n=[];for(t in e)jr(e,t)&&n.push(t);return n};var ift={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function oft(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Xd(r)?r.call(t,n):r}function Bd(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 sj=/(\[[^\[]*\])|(\\)?([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,sk=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,QP={},j0={};function Dn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(j0[e]=i),t&&(j0[t[0]]=function(){return Bd(i.apply(this,arguments),t[1],t[2])}),n&&(j0[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function aft(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function sft(e){var t=e.match(sj),n,r;for(n=0,r=t.length;n=0&&sk.test(e);)e=e.replace(sk,r),sk.lastIndex=0,n-=1;return e}var lft={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 uft(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(sj).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var cft="Invalid date";function dft(){return this._invalidDate}var fft="%d",pft=/\d{1,2}/;function hft(e){return this._ordinal.replace("%d",e)}var mft={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 gft(e,t,n,r){var i=this._relativeTime[n];return Xd(i)?i(e,t,n,r):i.replace(/%d/i,e)}function bft(e,t){var n=this._relativeTime[e>0?"future":"past"];return Xd(n)?n(t):n.replace(/%s/i,t)}var fK={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 Gu(e){return typeof e=="string"?fK[e]||fK[e.toLowerCase()]:void 0}function lj(e){var t={},n,r;for(r in e)jr(e,r)&&(n=Gu(r),n&&(t[n]=e[r]));return t}var yft={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 vft(e){var t=[],n;for(n in e)jr(e,n)&&t.push({unit:n,priority:yft[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var ype=/\d/,nu=/\d\d/,vpe=/\d{3}/,uj=/\d{4}/,e2=/[+-]?\d{6}/,Ni=/\d\d?/,Ope=/\d\d\d\d?/,Epe=/\d\d\d\d\d\d?/,t2=/\d{1,3}/,cj=/\d{1,4}/,n2=/[+-]?\d{1,6}/,wv=/\d+/,r2=/[+-]?\d+/,Oft=/Z|[+-]\d\d:?\d\d/gi,i2=/Z|[+-]\d\d(?::?\d\d)?/gi,Eft=/[+-]?\d+(\.\d{1,3})?/,WT=/[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,xv=/^[1-9]\d?/,dj=/^([1-9]\d|\d)/,hA;hA={};function fn(e,t,n){hA[e]=Xd(t)?t:function(r,i){return r&&n?n:t}}function Sft(e,t){return jr(hA,e)?hA[e](t._strict,t._locale):new RegExp(Tft(e))}function Tft(e){return jf(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function jf(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Tu(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function wr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Tu(t)),n}var I$={};function ai(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),ep(t)&&(r=function(o,a){a[t]=wr(o)}),i=e.length,n=0;n68?1900:2e3)};var Spe=kv("FullYear",!0);function Cft(){return o2(this.year())}function kv(e,t){return function(n){return n!=null?(Tpe(this,e,n),sn.updateOffset(this,t),this):mS(this,e)}}function mS(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 Tpe(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&&!o2(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function _ft(e){return e=Gu(e),Xd(this[e])?this[e]():this}function Aft(e,t){if(typeof e=="object"){e=lj(e);var n=vft(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 gS(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 mA(e,t,n){var r=7+t-n,i=(7+gS(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Ape(e,t,n,r,i){var o=(7+n-r)%7,a=mA(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=K1(l)+s):s>K1(e)?(l=e+1,u=s-K1(e)):(l=e,u=s),{year:l,dayOfYear:u}}function bS(e,t,n){var r=mA(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+zf(a,t,n)):i>zf(e.year(),t,n)?(o=i-zf(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function zf(e,t,n){var r=mA(e,t,n),i=mA(e+1,t,n);return(K1(e)-r+i)/7}Dn("w",["ww",2],"wo","week");Dn("W",["WW",2],"Wo","isoWeek");fn("w",Ni,xv);fn("ww",Ni,nu);fn("W",Ni,xv);fn("WW",Ni,nu);HT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=wr(e)});function zft(e){return bS(e,this._week.dow,this._week.doy).week}var Vft={dow:0,doy:6};function Wft(){return this._week.dow}function Hft(){return this._week.doy}function Qft(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Yft(e){var t=bS(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");fn("d",Ni);fn("e",Ni);fn("E",Ni);fn("dd",function(e,t){return t.weekdaysMinRegex(e)});fn("ddd",function(e,t){return t.weekdaysShortRegex(e)});fn("dddd",function(e,t){return t.weekdaysRegex(e)});HT(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:lr(n).invalidWeekday=e});HT(["d","e","E"],function(e,t,n,r){t[r]=wr(e)});function Gft(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function qft(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function pj(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Zft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rpe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xft="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kft=WT,Jft=WT,ept=WT;function tpt(e,t){var n=_c(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?pj(n,this._week.dow):e?n[e.day()]:n}function npt(e){return e===!0?pj(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function rpt(e){return e===!0?pj(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ipt(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=Zd([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=Eo.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=Eo.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=Eo.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=Eo.call(this._weekdaysParse,a),i!==-1||(i=Eo.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=Eo.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=Eo.call(this._shortWeekdaysParse,a),i!==-1||(i=Eo.call(this._weekdaysParse,a),i!==-1)?i:(i=Eo.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=Eo.call(this._minWeekdaysParse,a),i!==-1||(i=Eo.call(this._weekdaysParse,a),i!==-1)?i:(i=Eo.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function opt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return ipt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Zd([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 apt(e){if(!this.isValid())return e!=null?this:NaN;var t=mS(this,"Day");return e!=null?(e=Gft(e,this.localeData()),this.add(e-t,"d")):t}function spt(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 lpt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=qft(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function upt(e){return this._weekdaysParseExact?(jr(this,"_weekdaysRegex")||hj.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(jr(this,"_weekdaysRegex")||(this._weekdaysRegex=Kft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function cpt(e){return this._weekdaysParseExact?(jr(this,"_weekdaysRegex")||hj.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Jft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function dpt(e){return this._weekdaysParseExact?(jr(this,"_weekdaysRegex")||hj.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ept),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hj(){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=Zd([2e3,1]).day(o),s=jf(this.weekdaysMin(a,"")),l=jf(this.weekdaysShort(a,"")),u=jf(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 mj(){return this.hours()%12||12}function fpt(){return this.hours()||24}Dn("H",["HH",2],0,"hour");Dn("h",["hh",2],0,mj);Dn("k",["kk",2],0,fpt);Dn("hmm",0,0,function(){return""+mj.apply(this)+Bd(this.minutes(),2)});Dn("hmmss",0,0,function(){return""+mj.apply(this)+Bd(this.minutes(),2)+Bd(this.seconds(),2)});Dn("Hmm",0,0,function(){return""+this.hours()+Bd(this.minutes(),2)});Dn("Hmmss",0,0,function(){return""+this.hours()+Bd(this.minutes(),2)+Bd(this.seconds(),2)});function Ipe(e,t){Dn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Ipe("a",!0);Ipe("A",!1);function Dpe(e,t){return t._meridiemParse}fn("a",Dpe);fn("A",Dpe);fn("H",Ni,dj);fn("h",Ni,xv);fn("k",Ni,xv);fn("HH",Ni,nu);fn("hh",Ni,nu);fn("kk",Ni,nu);fn("hmm",Ope);fn("hmmss",Epe);fn("Hmm",Ope);fn("Hmmss",Epe);ai(["H","HH"],qo);ai(["k","kk"],function(e,t,n){var r=wr(e);t[qo]=r===24?0:r});ai(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ai(["h","hh"],function(e,t,n){t[qo]=wr(e),lr(n).bigHour=!0});ai("hmm",function(e,t,n){var r=e.length-2;t[qo]=wr(e.substr(0,r)),t[vc]=wr(e.substr(r)),lr(n).bigHour=!0});ai("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[qo]=wr(e.substr(0,r)),t[vc]=wr(e.substr(r,2)),t[Mf]=wr(e.substr(i)),lr(n).bigHour=!0});ai("Hmm",function(e,t,n){var r=e.length-2;t[qo]=wr(e.substr(0,r)),t[vc]=wr(e.substr(r))});ai("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[qo]=wr(e.substr(0,r)),t[vc]=wr(e.substr(r,2)),t[Mf]=wr(e.substr(i))});function ppt(e){return(e+"").toLowerCase().charAt(0)==="p"}var hpt=/[ap]\.?m?\.?/i,mpt=kv("Hours",!0);function gpt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Npe={calendar:ift,longDateFormat:lft,invalidDate:cft,ordinal:fft,dayOfMonthOrdinalParse:pft,relativeTime:mft,months:Ift,monthsShort:wpe,week:Vft,weekdays:Zft,weekdaysMin:Xft,weekdaysShort:Rpe,meridiemParse:hpt},zi={},BO={},yS;function bpt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=a2(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&bpt(o,r)>=n-1)break;n--}t++}return yS}function vpt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function a2(e){var t=null,n;if(zi[e]===void 0&&typeof SC<"u"&&SC&&SC.exports&&vpt(e))try{t=yS._abbr,n=require,n("./locale/"+e),Ah(t)}catch{zi[e]=null}return zi[e]}function Ah(e,t){var n;return e&&(qs(t)?n=cp(e):n=gj(e,t),n?yS=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),yS._abbr}function gj(e,t){if(t!==null){var n,r=Npe;if(t.abbr=e,zi[e]!=null)gpe("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=zi[e]._config;else if(t.parentLocale!=null)if(zi[t.parentLocale]!=null)r=zi[t.parentLocale]._config;else if(n=a2(t.parentLocale),n!=null)r=n._config;else return BO[t.parentLocale]||(BO[t.parentLocale]=[]),BO[t.parentLocale].push({name:e,config:t}),null;return zi[e]=new aj(A$(r,t)),BO[e]&&BO[e].forEach(function(i){gj(i.name,i.config)}),Ah(e),zi[e]}else return delete zi[e],null}function Opt(e,t){if(t!=null){var n,r,i=Npe;zi[e]!=null&&zi[e].parentLocale!=null?zi[e].set(A$(zi[e]._config,t)):(r=a2(e),r!=null&&(i=r._config),t=A$(i,t),r==null&&(t.abbr=e),n=new aj(t),n.parentLocale=zi[e],zi[e]=n),Ah(e)}else zi[e]!=null&&(zi[e].parentLocale!=null?(zi[e]=zi[e].parentLocale,e===Ah()&&Ah(e)):zi[e]!=null&&delete zi[e]);return zi[e]}function cp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return yS;if(!_c(e)){if(t=a2(e),t)return t;e=[e]}return ypt(e)}function Ept(){return R$(zi)}function bj(e){var t,n=e._a;return n&&lr(e).overflow===-2&&(t=n[Lf]<0||n[Lf]>11?Lf:n[Od]<1||n[Od]>fj(n[cs],n[Lf])?Od:n[qo]<0||n[qo]>24||n[qo]===24&&(n[vc]!==0||n[Mf]!==0||n[Zm]!==0)?qo:n[vc]<0||n[vc]>59?vc:n[Mf]<0||n[Mf]>59?Mf:n[Zm]<0||n[Zm]>999?Zm:-1,lr(e)._overflowDayOfYear&&(tOd)&&(t=Od),lr(e)._overflowWeeks&&t===-1&&(t=xft),lr(e)._overflowWeekday&&t===-1&&(t=kft),lr(e).overflow=t),e}var Spt=/^\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)?)?$/,Tpt=/^\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)?)?$/,wpt=/Z|[+-]\d\d(?::?\d\d)?/,lk=[["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]],YP=[["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/]],xpt=/^\/?Date\((-?\d+)/i,kpt=/^(?:(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}))$/,Cpt={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 Ppe(e){var t,n,r=e._i,i=Spt.exec(r)||Tpt.exec(r),o,a,s,l,u=lk.length,c=YP.length;if(i){for(lr(e).iso=!0,t=0,n=u;tK1(a)||e._dayOfYear===0)&&(lr(e)._overflowDayOfYear=!0),n=gS(a,0,e._dayOfYear),e._a[Lf]=n.getUTCMonth(),e._a[Od]=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[qo]===24&&e._a[vc]===0&&e._a[Mf]===0&&e._a[Zm]===0&&(e._nextDay=!0,e._a[qo]=0),e._d=(e._useUTC?gS:jft).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[qo]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(lr(e).weekdayMismatch=!0)}}function Lpt(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=Qb(t.GG,e._a[cs],bS(Ii(),1,4).year),r=Qb(t.W,1),i=Qb(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=bS(Ii(),o,a),n=Qb(t.gg,e._a[cs],u.year),r=Qb(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>zf(n,o,a)?lr(e)._overflowWeeks=!0:l!=null?lr(e)._overflowWeekday=!0:(s=Ape(n,r,i,o,a),e._a[cs]=s.year,e._dayOfYear=s.dayOfYear)}sn.ISO_8601=function(){};sn.RFC_2822=function(){};function vj(e){if(e._f===sn.ISO_8601){Ppe(e);return}if(e._f===sn.RFC_2822){Lpe(e);return}e._a=[],lr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,u,c;for(i=bpe(e._f,e._locale).match(sj)||[],c=i.length,n=0;n0&&lr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),j0[o]?(r?lr(e).empty=!1:lr(e).unusedTokens.push(o),wft(o,r,e)):e._strict&&!r&&lr(e).unusedTokens.push(o);lr(e).charsLeftOver=s-l,t.length>0&&lr(e).unusedInput.push(t),e._a[qo]<=12&&lr(e).bigHour===!0&&e._a[qo]>0&&(lr(e).bigHour=void 0),lr(e).parsedDateParts=e._a.slice(0),lr(e).meridiem=e._meridiem,e._a[qo]=Mpt(e._locale,e._a[qo],e._meridiem),u=lr(e).era,u!==null&&(e._a[cs]=e._locale.erasConvertYear(u,e._a[cs])),yj(e),bj(e)}function Mpt(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 $pt(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){lr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:JI()});function Fpe(e,t){var n,r;if(t.length===1&&_c(t[0])&&(t=t[0]),!t.length)return Ii();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function iht(){if(!qs(this._isDSTShifted))return this._isDSTShifted;var e={},t;return oj(e,this),e=Mpe(e),e._a?(t=e._isUTC?Zd(e._a):Ii(e._a),this._isDSTShifted=this.isValid()&&qpt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function oht(){return this.isValid()?!this._isUTC:!1}function aht(){return this.isValid()?this._isUTC:!1}function Upe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var sht=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,lht=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jc(e,t){var n=e,r=null,i,o,a;return dC(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ep(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=sht.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:wr(r[Od])*i,h:wr(r[qo])*i,m:wr(r[vc])*i,s:wr(r[Mf])*i,ms:wr(D$(r[Zm]*1e3))*i}):(r=lht.exec(e))?(i=r[1]==="-"?-1:1,n={y:xm(r[2],i),M:xm(r[3],i),w:xm(r[4],i),d:xm(r[5],i),h:xm(r[6],i),m:xm(r[7],i),s:xm(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=uht(Ii(n.from),Ii(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new s2(n),dC(e)&&jr(e,"_locale")&&(o._locale=e._locale),dC(e)&&jr(e,"_isValid")&&(o._isValid=e._isValid),o}jc.fn=s2.prototype;jc.invalid=Gpt;function xm(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function hK(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 uht(e,t){var n;return e.isValid()&&t.isValid()?(t=Ej(t,e),e.isBefore(t)?n=hK(e,t):(n=hK(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function jpe(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(gpe(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=jc(n,r),zpe(this,i,e),this}}function zpe(e,t,n,r){var i=t._milliseconds,o=D$(t._days),a=D$(t._months);e.isValid()&&(r=r??!0,a&&kpe(e,mS(e,"Month")+a*n),o&&Tpe(e,"Date",mS(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&sn.updateOffset(e,o||a))}var cht=jpe(1,"add"),dht=jpe(-1,"subtract");function Vpe(e){return typeof e=="string"||e instanceof String}function fht(e){return Ac(e)||zT(e)||Vpe(e)||ep(e)||hht(e)||pht(e)||e===null||e===void 0}function pht(e){var t=ug(e)&&!rj(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?cC(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Xd(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",cC(n,"Z")):cC(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _ht(){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 Aht(e){e||(e=this.isUtc()?sn.defaultFormatUtc:sn.defaultFormat);var t=cC(this,e);return this.localeData().postformat(t)}function Rht(e,t){return this.isValid()&&(Ac(e)&&e.isValid()||Ii(e).isValid())?jc({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Iht(e){return this.from(Ii(),e)}function Dht(e,t){return this.isValid()&&(Ac(e)&&e.isValid()||Ii(e).isValid())?jc({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Nht(e){return this.to(Ii(),e)}function Wpe(e){var t;return e===void 0?this._locale._abbr:(t=cp(e),t!=null&&(this._locale=t),this)}var Hpe=Yu("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 Qpe(){return this._locale}var gA=1e3,z0=60*gA,bA=60*z0,Ype=(365*400+97)*24*bA;function V0(e,t){return(e%t+t)%t}function Gpe(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Ype:new Date(e,t,n).valueOf()}function qpe(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Ype:Date.UTC(e,t,n)}function Pht(e){var t,n;if(e=Gu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?qpe:Gpe,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-=V0(t+(this._isUTC?0:this.utcOffset()*z0),bA);break;case"minute":t=this._d.valueOf(),t-=V0(t,z0);break;case"second":t=this._d.valueOf(),t-=V0(t,gA);break}return this._d.setTime(t),sn.updateOffset(this,!0),this}function Lht(e){var t,n;if(e=Gu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?qpe:Gpe,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+=bA-V0(t+(this._isUTC?0:this.utcOffset()*z0),bA)-1;break;case"minute":t=this._d.valueOf(),t+=z0-V0(t,z0)-1;break;case"second":t=this._d.valueOf(),t+=gA-V0(t,gA)-1;break}return this._d.setTime(t),sn.updateOffset(this,!0),this}function Mht(){return this._d.valueOf()-(this._offset||0)*6e4}function $ht(){return Math.floor(this.valueOf()/1e3)}function Fht(){return new Date(this.valueOf())}function Bht(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Uht(){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 jht(){return this.isValid()?this.toISOString():null}function zht(){return ij(this)}function Vht(){return dh({},lr(this))}function Wht(){return lr(this).overflow}function Hht(){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");fn("N",Sj);fn("NN",Sj);fn("NNN",Sj);fn("NNNN",nmt);fn("NNNNN",rmt);ai(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?lr(n).era=i:lr(n).invalidEra=e});fn("y",wv);fn("yy",wv);fn("yyy",wv);fn("yyyy",wv);fn("yo",imt);ai(["y","yy","yyy","yyyy"],cs);ai(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[cs]=n._locale.eraYearOrdinalParse(e,i):t[cs]=parseInt(e,10)});function Qht(e,t){var n,r,i,o=this._eras||cp("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function Ght(e,t){var n=e.since<=e.until?1:-1;return t===void 0?sn(e.since).year():sn(e.since).year()+(t-e.offset)*n}function qht(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),dmt.call(this,e,t,n,r,i))}function dmt(e,t,n,r,i){var o=Ape(e,t,n,r,i),a=gS(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Dn("Q",0,"Qo","quarter");fn("Q",ype);ai("Q",function(e,t){t[Lf]=(wr(e)-1)*3});function fmt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Dn("D",["DD",2],"Do","date");fn("D",Ni,xv);fn("DD",Ni,nu);fn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ai(["D","DD"],Od);ai("Do",function(e,t){t[Od]=wr(e.match(Ni)[0])});var Xpe=kv("Date",!0);Dn("DDD",["DDDD",3],"DDDo","dayOfYear");fn("DDD",t2);fn("DDDD",vpe);ai(["DDD","DDDD"],function(e,t,n){n._dayOfYear=wr(e)});function pmt(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");fn("m",Ni,dj);fn("mm",Ni,nu);ai(["m","mm"],vc);var hmt=kv("Minutes",!1);Dn("s",["ss",2],0,"second");fn("s",Ni,dj);fn("ss",Ni,nu);ai(["s","ss"],Mf);var mmt=kv("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});fn("S",t2,ype);fn("SS",t2,nu);fn("SSS",t2,vpe);var fh,Kpe;for(fh="SSSS";fh.length<=9;fh+="S")fn(fh,wv);function gmt(e,t){t[Zm]=wr(("0."+e)*1e3)}for(fh="S";fh.length<=9;fh+="S")ai(fh,gmt);Kpe=kv("Milliseconds",!1);Dn("z",0,0,"zoneAbbr");Dn("zz",0,0,"zoneName");function bmt(){return this._isUTC?"UTC":""}function ymt(){return this._isUTC?"Coordinated Universal Time":""}var zt=VT.prototype;zt.add=cht;zt.calendar=bht;zt.clone=yht;zt.diff=xht;zt.endOf=Lht;zt.format=Aht;zt.from=Rht;zt.fromNow=Iht;zt.to=Dht;zt.toNow=Nht;zt.get=_ft;zt.invalidAt=Wht;zt.isAfter=vht;zt.isBefore=Oht;zt.isBetween=Eht;zt.isSame=Sht;zt.isSameOrAfter=Tht;zt.isSameOrBefore=wht;zt.isValid=zht;zt.lang=Hpe;zt.locale=Wpe;zt.localeData=Qpe;zt.max=zpt;zt.min=jpt;zt.parsingFlags=Vht;zt.set=Aft;zt.startOf=Pht;zt.subtract=dht;zt.toArray=Bht;zt.toObject=Uht;zt.toDate=Fht;zt.toISOString=Cht;zt.inspect=_ht;typeof Symbol<"u"&&Symbol.for!=null&&(zt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});zt.toJSON=jht;zt.toString=kht;zt.unix=$ht;zt.valueOf=Mht;zt.creationData=Hht;zt.eraName=qht;zt.eraNarrow=Zht;zt.eraAbbr=Xht;zt.eraYear=Kht;zt.year=Spe;zt.isLeapYear=Cft;zt.weekYear=omt;zt.isoWeekYear=amt;zt.quarter=zt.quarters=fmt;zt.month=Cpe;zt.daysInMonth=Fft;zt.week=zt.weeks=Qft;zt.isoWeek=zt.isoWeeks=Yft;zt.weeksInYear=umt;zt.weeksInWeekYear=cmt;zt.isoWeeksInYear=smt;zt.isoWeeksInISOWeekYear=lmt;zt.date=Xpe;zt.day=zt.days=apt;zt.weekday=spt;zt.isoWeekday=lpt;zt.dayOfYear=pmt;zt.hour=zt.hours=mpt;zt.minute=zt.minutes=hmt;zt.second=zt.seconds=mmt;zt.millisecond=zt.milliseconds=Kpe;zt.utcOffset=Xpt;zt.utc=Jpt;zt.local=eht;zt.parseZone=tht;zt.hasAlignedHourOffset=nht;zt.isDST=rht;zt.isLocal=oht;zt.isUtcOffset=aht;zt.isUtc=Upe;zt.isUTC=Upe;zt.zoneAbbr=bmt;zt.zoneName=ymt;zt.dates=Yu("dates accessor is deprecated. Use date instead.",Xpe);zt.months=Yu("months accessor is deprecated. Use month instead",Cpe);zt.years=Yu("years accessor is deprecated. Use year instead",Spe);zt.zone=Yu("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Kpt);zt.isDSTShifted=Yu("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",iht);function vmt(e){return Ii(e*1e3)}function Omt(){return Ii.apply(null,arguments).parseZone()}function Jpe(e){return e}var zr=aj.prototype;zr.calendar=oft;zr.longDateFormat=uft;zr.invalidDate=dft;zr.ordinal=hft;zr.preparse=Jpe;zr.postformat=Jpe;zr.relativeTime=gft;zr.pastFuture=bft;zr.set=rft;zr.eras=Qht;zr.erasParse=Yht;zr.erasConvertYear=Ght;zr.erasAbbrRegex=emt;zr.erasNameRegex=Jht;zr.erasNarrowRegex=tmt;zr.months=Pft;zr.monthsShort=Lft;zr.monthsParse=$ft;zr.monthsRegex=Uft;zr.monthsShortRegex=Bft;zr.week=zft;zr.firstDayOfYear=Hft;zr.firstDayOfWeek=Wft;zr.weekdays=tpt;zr.weekdaysMin=rpt;zr.weekdaysShort=npt;zr.weekdaysParse=opt;zr.weekdaysRegex=upt;zr.weekdaysShortRegex=cpt;zr.weekdaysMinRegex=dpt;zr.isPM=ppt;zr.meridiem=gpt;function yA(e,t,n,r){var i=cp(),o=Zd().set(r,t);return i[n](o,e)}function ehe(e,t,n){if(ep(e)&&(t=e,e=void 0),e=e||"",t!=null)return yA(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=yA(e,r,n,"month");return i}function wj(e,t,n,r){typeof e=="boolean"?(ep(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ep(t)&&(n=t,t=void 0),t=t||"");var i=cp(),o=e?i._week.dow:0,a,s=[];if(n!=null)return yA(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=yA(t,(a+o)%7,r,"day");return s}function Emt(e,t){return ehe(e,t,"months")}function Smt(e,t){return ehe(e,t,"monthsShort")}function Tmt(e,t,n){return wj(e,t,n,"weekdays")}function wmt(e,t,n){return wj(e,t,n,"weekdaysShort")}function xmt(e,t,n){return wj(e,t,n,"weekdaysMin")}Ah("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=wr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});sn.lang=Yu("moment.lang is deprecated. Use moment.locale instead.",Ah);sn.langData=Yu("moment.langData is deprecated. Use moment.localeData instead.",cp);var Ef=Math.abs;function kmt(){var e=this._data;return this._milliseconds=Ef(this._milliseconds),this._days=Ef(this._days),this._months=Ef(this._months),e.milliseconds=Ef(e.milliseconds),e.seconds=Ef(e.seconds),e.minutes=Ef(e.minutes),e.hours=Ef(e.hours),e.months=Ef(e.months),e.years=Ef(e.years),this}function the(e,t,n,r){var i=jc(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Cmt(e,t){return the(this,e,t,1)}function _mt(e,t){return the(this,e,t,-1)}function mK(e){return e<0?Math.floor(e):Math.ceil(e)}function Amt(){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+=mK(P$(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Tu(e/1e3),r.seconds=i%60,o=Tu(i/60),r.minutes=o%60,a=Tu(o/60),r.hours=a%24,t+=Tu(a/24),l=Tu(nhe(t)),n+=l,t-=mK(P$(l)),s=Tu(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function nhe(e){return e*4800/146097}function P$(e){return e*146097/4800}function Rmt(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Gu(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+nhe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(P$(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 dp(e){return function(){return this.as(e)}}var rhe=dp("ms"),Imt=dp("s"),Dmt=dp("m"),Nmt=dp("h"),Pmt=dp("d"),Lmt=dp("w"),Mmt=dp("M"),$mt=dp("Q"),Fmt=dp("y"),Bmt=rhe;function Umt(){return jc(this)}function jmt(e){return e=Gu(e),this.isValid()?this[e+"s"]():NaN}function Yg(e){return function(){return this.isValid()?this._data[e]:NaN}}var zmt=Yg("milliseconds"),Vmt=Yg("seconds"),Wmt=Yg("minutes"),Hmt=Yg("hours"),Qmt=Yg("days"),Ymt=Yg("months"),Gmt=Yg("years");function qmt(){return Tu(this.days()/7)}var xf=Math.round,g0={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Zmt(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function Xmt(e,t,n,r){var i=jc(e).abs(),o=xf(i.as("s")),a=xf(i.as("m")),s=xf(i.as("h")),l=xf(i.as("d")),u=xf(i.as("M")),c=xf(i.as("w")),d=xf(i.as("y")),f=o<=n.ss&&["s",o]||o0,f[4]=r,Zmt.apply(null,f)}function Kmt(e){return e===void 0?xf:typeof e=="function"?(xf=e,!0):!1}function Jmt(e,t){return g0[e]===void 0?!1:t===void 0?g0[e]:(g0[e]=t,e==="s"&&(g0.ss=t-1),!0)}function egt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=g0,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},g0,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=Xmt(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var GP=Math.abs;function Db(e){return(e>0)-(e<0)||+e}function u2(){if(!this.isValid())return this.localeData().invalidDate();var e=GP(this._milliseconds)/1e3,t=GP(this._days),n=GP(this._months),r,i,o,a,s=this.asSeconds(),l,u,c,d;return s?(r=Tu(e/60),i=Tu(r/60),e%=60,r%=60,o=Tu(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Db(this._months)!==Db(s)?"-":"",c=Db(this._days)!==Db(s)?"-":"",d=Db(this._milliseconds)!==Db(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 Dr=s2.prototype;Dr.isValid=Ypt;Dr.abs=kmt;Dr.add=Cmt;Dr.subtract=_mt;Dr.as=Rmt;Dr.asMilliseconds=rhe;Dr.asSeconds=Imt;Dr.asMinutes=Dmt;Dr.asHours=Nmt;Dr.asDays=Pmt;Dr.asWeeks=Lmt;Dr.asMonths=Mmt;Dr.asQuarters=$mt;Dr.asYears=Fmt;Dr.valueOf=Bmt;Dr._bubble=Amt;Dr.clone=Umt;Dr.get=jmt;Dr.milliseconds=zmt;Dr.seconds=Vmt;Dr.minutes=Wmt;Dr.hours=Hmt;Dr.days=Qmt;Dr.weeks=qmt;Dr.months=Ymt;Dr.years=Gmt;Dr.humanize=egt;Dr.toISOString=u2;Dr.toString=u2;Dr.toJSON=u2;Dr.locale=Wpe;Dr.localeData=Qpe;Dr.toIsoString=Yu("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",u2);Dr.lang=Hpe;Dn("X",0,0,"unix");Dn("x",0,0,"valueOf");fn("x",r2);fn("X",Eft);ai("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ai("x",function(e,t,n){n._d=new Date(wr(e))});//! moment.js +sn.version="2.30.1";tft(Ii);sn.fn=zt;sn.min=Vpt;sn.max=Wpt;sn.now=Hpt;sn.utc=Zd;sn.unix=vmt;sn.months=Emt;sn.isDate=zT;sn.locale=Ah;sn.invalid=JI;sn.duration=jc;sn.isMoment=Ac;sn.weekdays=Tmt;sn.parseZone=Omt;sn.localeData=cp;sn.isDuration=dC;sn.monthsShort=Smt;sn.weekdaysMin=xmt;sn.defineLocale=gj;sn.updateLocale=Opt;sn.locales=Ept;sn.weekdaysShort=wmt;sn.normalizeUnits=Gu;sn.relativeTimeRounding=Kmt;sn.relativeTimeThreshold=Jmt;sn.calendarFormat=ght;sn.prototype=zt;sn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function tgt(e){var g,v;const{open:t,onClose:n}=e,r=po(c4),{data:i,fetchNextPage:o,hasNextPage:a}=eft((g=r.data)==null?void 0:g.id),{mutateAsync:s}=F4e(((v=r.data)==null?void 0:v.id)||""),l=L.useMemo(()=>(i==null?void 0:i.pages.reduce((S,O)=>S.concat(O.workspaceUsers),[]))??[],[i==null?void 0:i.pages]),{enqueueSnackbar:u}=XI(),[c,d]=L.useState(null),f=async S=>{let O;if(S.expiredString===U0[0])O=null;else{const[w,k]=S.expiredString.split(" ");O=sn().add(Number(w),k).toDate()}const{invitationToken:E}=await s({expiredAt:O});d(`${window.location.origin}/join/${E}`)},m=async()=>{c&&(await Qg.write(c),u("URL Copied!",{variant:"success"}))};return N.jsx(Xh,{open:t,disableAutoFocus:!0,onClose:n,children:N.jsxs(ja,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(Xo,{sx:{position:"absolute",top:28,right:28},onClick:n,children:N.jsx(KI,{})}),N.jsxs(dr,{gap:4,children:[N.jsx($r,{variant:"h5",children:"Members"}),N.jsxs(dr,{gap:1,children:[N.jsx($r,{variant:"subtitle1",children:"Invite Link"}),N.jsx(Dc,{children:N.jsx(jT,{defaultValues:{expiredString:U0[0]},onSuccess:f,children:N.jsxs(dr,{direction:"row",justifyContent:"space-between",gap:2,children:[N.jsx(C$,{label:"Expired Date",name:"expiredString",options:U0.map(S=>({id:S,label:S})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(Ma,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!c&&N.jsxs(dr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx($r,{variant:"body1",children:c}),N.jsx(Im,{title:"Copy URL",children:N.jsx(Xo,{onClick:m,children:N.jsx(zI,{})})})]})]}),N.jsx(Zo,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:N.jsx(hS,{pageStart:0,loadMore:()=>o(),hasMore:a,loader:N.jsx(Zo,{className:"loader",children:N.jsx(op,{size:"sm"})},0),useWindow:!1,children:N.jsx(dr,{gap:2,children:l.map(S=>{var O;return N.jsx(dr,{direction:"row",alignItems:"center",children:N.jsxs(dr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(PR,{children:(O=S.nickname)==null?void 0:O[0]}),N.jsx($r,{children:S.nickname})]})},S.id)})})})})]})]})})}const qP=240;function ngt(){var w,k,A,C,x;const e=lp(),t=po(o4),n=po(c4),{mutateAsync:r}=I4e(((w=n.data)==null?void 0:w.id)||""),[i,o]=L.useState(null),[a,s]=L.useState(null),[l,u]=L.useState(!1),[c,d]=L.useState(!1),f=F=>{o(F.currentTarget)},m=()=>{o(null)},g=F=>{s(F.currentTarget)},v=()=>{s(null)},S=async F=>{const M=await r(F);e(M.id)},O=()=>{u(F=>!F)},E=()=>{d(F=>!F)};return N.jsxs(T2e,{sx:{width:qP,flexShrink:0,"& .MuiDrawer-paper":{width:qP,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[N.jsxs(Fb,{disablePadding:!0,children:[N.jsxs(uN,{onClick:g,children:[N.jsx(Eh,{primary:(k=n.data)==null?void 0:k.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),N.jsx(r_,{children:N.jsx(Xo,{children:a?N.jsx(lpe,{}):N.jsx(spe,{})})})]}),N.jsx(qdt,{open:!!a,anchorEl:a,onClose:v,width:qP-32})]}),N.jsx(Pf,{}),N.jsx(Fb,{children:N.jsx(Ma,{variant:"contained",startIcon:N.jsx(ej,{}),sx:{width:1},onClick:O,children:"New Note"})}),N.jsx(Pf,{}),N.jsx(Fb,{disablePadding:!0,children:N.jsxs(uN,{onClick:E,children:[N.jsx(FR,{children:N.jsx(fpe,{})}),N.jsx(Eh,{primary:"Members"})]})}),N.jsx(Pf,{}),N.jsx(Fb,{sx:{mt:"auto"},children:N.jsx(dr,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:N.jsx(Q7,{})})}),N.jsx(Pf,{}),N.jsxs(Fb,{disablePadding:!0,children:[N.jsxs(uN,{onClick:f,children:[N.jsx(gNe,{children:N.jsx(PR,{children:(C=(A=t.data)==null?void 0:A.nickname)==null?void 0:C.charAt(0)})}),N.jsx(Eh,{primary:(x=t.data)==null?void 0:x.nickname}),N.jsx(r_,{children:N.jsx(ope,{})})]}),N.jsx(Ddt,{open:!!i,anchorEl:i,onClose:m})]}),N.jsx(dpe,{open:l,title:"Note",onSuccess:S,onClose:O}),N.jsx(tgt,{open:c,onClose:E})]})}var xj={},rgt=ho;Object.defineProperty(xj,"__esModule",{value:!0});var ihe=xj.default=void 0,igt=rgt(mo()),gK=N;ihe=xj.default=(0,igt.default)([(0,gK.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,gK.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ogt(e){const{document:t}=e,n=lp(),r=ev(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return N.jsx(NF,{sx:{width:"100%"},children:N.jsx(Une,{onClick:i,children:N.jsxs(YRe,{children:[N.jsx($r,{variant:"h5",component:"div",noWrap:!0,children:t.title}),N.jsxs(dr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(ihe,{fontSize:"small",sx:{color:"text.secondary"}}),N.jsxs($r,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",sn(t.updatedAt).fromNow()]})]})]})})})}function agt(){const e=ev(),{data:t}=$ie(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=A4e(t==null?void 0:t.id),o=L.useMemo(()=>(n==null?void 0:n.pages.reduce((a,s)=>a.concat(s.documents),[]))??[],[n==null?void 0:n.pages]);return N.jsxs(dr,{direction:"row",children:[N.jsx(ngt,{}),N.jsx(Zo,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:N.jsx(hS,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:N.jsx(Zo,{className:"loader",children:N.jsx(op,{size:"sm"})},0),useWindow:!1,children:N.jsx(Zo,{p:2,width:1,children:N.jsx(a0,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(a=>N.jsx(a0,{item:!0,xs:4,sm:4,md:4,lg:3,children:N.jsx(ogt,{document:a})},a.id))})})})})]})}function sgt(){const e=Nre();return N.jsx(dr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:N.jsxs(dr,{alignItems:"center",children:[N.jsx($r,{variant:"h5",children:"Something went wrong"}),zF(e)&&N.jsxs($r,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function lgt(){const e=ev(),t=lp(),{mutateAsync:n}=B4e();return L.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),N.jsx(ZS,{open:!0,children:N.jsx(op,{color:"inherit"})})}function ugt(){return N.jsx(Zo,{})}var kj={},cgt=ho;Object.defineProperty(kj,"__esModule",{value:!0});var ohe=kj.default=void 0,dgt=cgt(mo()),fgt=N;ohe=kj.default=(0,dgt.default)((0,fgt.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 Cj={},pgt=ho;Object.defineProperty(Cj,"__esModule",{value:!0});var ahe=Cj.default=void 0,hgt=pgt(mo()),mgt=N;ahe=Cj.default=(0,hgt.default)((0,mgt.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var _j={},ggt=ho;Object.defineProperty(_j,"__esModule",{value:!0});var she=_j.default=void 0,bgt=ggt(mo()),ygt=N;she=_j.default=(0,bgt.default)((0,ygt.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");var L$=(e=>(e.READ="READ",e.EDIT="EDIT",e))(L$||{});function vgt(e){var c,d;const{...t}=e,n=ev(),[r,i]=L.useState(null),o=po(u4),{mutateAsync:a}=D4e(((c=o.data)==null?void 0:c.workspaceId)||"",((d=o.data)==null?void 0:d.id)||""),{enqueueSnackbar:s}=XI(),l=async f=>{let m;if(f.expiredString===U0[0])m=null;else{const[v,S]=f.expiredString.split(" ");m=sn().add(Number(v),S).toDate()}const{sharingToken:g}=await a({role:f.role,expiredAt:m});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${g}`)},u=async()=>{r&&(await Qg.write(r),s("URL Copied!",{variant:"success"}))};return N.jsx(Xh,{disableAutoFocus:!0,...t,children:N.jsxs(ja,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[N.jsx(Xo,{sx:{position:"absolute",top:28,right:28},onClick:f=>{var m;return(m=e.onClose)==null?void 0:m.call(e,f,"backdropClick")},children:N.jsx(KI,{})}),N.jsxs(dr,{gap:1,children:[N.jsx($r,{variant:"subtitle1",children:"Share Link"}),N.jsx(Dc,{children:N.jsx(jT,{defaultValues:{expiredString:U0[0],role:Object.values(L$)[0]},onSuccess:l,children:N.jsxs(dr,{gap:2,children:[N.jsx(C$,{label:"Role",name:"role",options:Object.values(L$).map(f=>({id:f,label:f})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(C$,{label:"Expired Date",name:"expiredString",options:U0.map(f=>({id:f,label:f})),size:"small",sx:{width:1},variant:"filled"}),N.jsx(Ma,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&N.jsxs(dr,{direction:"row",alignItems:"center",gap:2,children:[N.jsx($r,{variant:"body1",width:1,noWrap:!0,children:r}),N.jsx(Im,{title:"Copy URL",children:N.jsx(Xo,{onClick:u,children:N.jsx(zI,{})})})]})]})]})})}function Ogt(){const[e,t]=L.useState(!1),n=()=>{t(r=>!r)};return N.jsxs(N.Fragment,{children:[N.jsx(Xo,{onClick:n,color:"inherit",children:N.jsx(she,{})}),N.jsx(vgt,{open:e,onClose:n})]})}var Aj={},Egt=ho;Object.defineProperty(Aj,"__esModule",{value:!0});var lhe=Aj.default=void 0,Sgt=Egt(mo()),Tgt=N;lhe=Aj.default=(0,Sgt.default)((0,Tgt.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");function wgt(){const e=Nc(),t=lp(),n=po(rv),[r,{set:i,push:o,removeAt:a,clear:s,filter:l}]=tit([]);L.useEffect(()=>{n.shareRole==="READ"&&e(TM("read"))},[e,n.shareRole]),L.useEffect(()=>{if(!n.doc)return;i(n.doc.getPresences());const d=n.doc.subscribe("others",f=>{f.type==="watched"&&o(f.value),f.type==="unwatched"&&l(m=>m.clientID!==f.value.clientID)});return()=>{d(),s()}},[n.doc,s,o,a,i,l]);const u=d=>{e(TM(d))},c=()=>{t(-1)};return N.jsx(vne,{position:"static",sx:{zIndex:100},children:N.jsx(dre,{children:N.jsxs(dr,{width:"100%",direction:"row",justifyContent:"space-between",children:[N.jsxs(dr,{direction:"row",spacing:1,alignItems:"center",children:[N.jsx(Im,{title:"Back to Previous Page",children:N.jsx(Xo,{color:"inherit",onClick:c,children:N.jsx(lhe,{})})}),N.jsx(ja,{children:n.shareRole!=="READ"&&N.jsxs(MMe,{value:n.mode,exclusive:!0,onChange:(d,f)=>u(f),size:"small",children:[N.jsx(fN,{value:"edit","aria-label":"edit",children:N.jsx(Im,{title:"Edit Mode",children:N.jsx(ohe,{})})}),N.jsx(fN,{value:"both","aria-label":"both",children:N.jsx(Im,{title:"Both Mode",children:N.jsx(ahe,{})})}),N.jsx(fN,{value:"read","aria-label":"read",children:N.jsx(Im,{title:"Read Mode",children:N.jsx(j7,{})})})]})})]}),N.jsxs(dr,{direction:"row",alignItems:"center",gap:1,children:[N.jsx(oRe,{max:4,children:r==null?void 0:r.map(d=>N.jsx(Im,{title:d.presence.name,children:N.jsx(PR,{alt:d.presence.name,sx:{bgcolor:d.presence.color},children:d.presence.name[0]})},d.clientID))}),!n.shareRole&&N.jsx(Ogt,{}),N.jsx(Q7,{})]})]})})})}function xgt(){return N.jsxs(Zo,{sx:{flexGrow:1},height:"100vh",children:[N.jsx(wgt,{}),N.jsx(HF,{})]})}const kgt=e=>["documents","share",e],Cgt=e=>{const t=Nc(),n=oT({queryKey:kgt(e||""),enabled:!!e,queryFn:async()=>(await gr.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return L.useEffect(()=>(n.data&&t(b_(n.data)),()=>{t(b_(null))}),[t,n.data]),n};function _gt(){const e=Nc(),t=Lg(),[n]=QF(),r=L.useMemo(()=>n.get("token"),[n]),{data:i}=Cgt(r),{doc:o,client:a,cleanUpYorkieDocument:s}=xde(i==null?void 0:i.yorkieDocumentId,"Anonymous");return L.useEffect(()=>{i!=null&&i.role&&(e(WFe(i.role)),i.role==="READ"&&e(TM("read")))},[e,i==null?void 0:i.role]),L.useEffect(()=>{if(!(!o||!a))return e(f_(o)),e(p_(a)),()=>{s(),e(f_(null)),e(p_(null))}},[s,e,a,o]),r?N.jsx(Zo,{height:"calc(100% - 64px)",children:N.jsx(gde,{})}):N.jsx(WF,{to:"/",state:{from:t},replace:!0})}const Agt=[{path:"",accessType:2,element:N.jsx(ydt,{}),children:[{path:"",element:N.jsx(ugt,{})},{path:"login",element:N.jsx(Edt,{})}]},{path:":workspaceSlug",accessType:1,element:N.jsx(Tdt,{}),children:[{path:"",element:N.jsx(agt,{})}]},{path:":workspaceSlug",element:N.jsx(xgt,{}),children:[{path:":documentId",accessType:1,element:N.jsx(cdt,{})},{path:":documentId/share",accessType:0,element:N.jsx(_gt,{})}]},{path:"auth/callback",accessType:2,element:N.jsx(Sdt,{})},{path:"join/:invitationToken",accessType:1,element:N.jsx(lgt,{})}],Rgt=e=>{const t=n=>(n.accessType===1?n.element=N.jsx(xdt,{children:n.element}):n.accessType===2&&(n.element=N.jsx(wdt,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=N.jsx(sgt,{}),n))},Igt=Rgt(Agt),uhe=e=>["users",e],Dgt=()=>{const e=Nc(),t=po(PT);t.accessToken&&(gr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=oT({queryKey:uhe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await gr.get("/users")).data});return L.useEffect(()=>{n.isSuccess?e(wM(n.data)):n.isError&&(e(f7(null)),e(wM(null)),gr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},Ngt=()=>{const e=po(PT),t=iT();return Jh({mutationFn:async n=>(await gr.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:uhe(e.accessToken||"")})}})};function Pgt(e){const[t,n]=L.useState(""),[r,i]=L.useState(""),{data:o}=cpe(r),{mutateAsync:a}=Ngt(),s=L.useMemo(()=>o!=null&&o.conflict?"Already Exists":null,[o==null?void 0:o.conflict]);p7(()=>{i(t)},500,[t]);const l=c=>{n(c.target.value)},u=async c=>{await a(c)};return N.jsx(Xh,{disableAutoFocus:!0,...e,children:N.jsx(ja,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:N.jsxs(dr,{gap:4,children:[N.jsx($r,{variant:"h5",children:"Create Your Nickname"}),N.jsx(Dc,{children:N.jsx(jT,{defaultValues:{nickname:""},onSuccess:u,children:N.jsxs(dr,{gap:4,alignItems:"flex-end",children:[N.jsx(ZI,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!s,helperText:s}),N.jsx(Ma,{type:"submit",variant:"contained",size:"large",disabled:!!s,children:"OK"})]})})})]})})})}function Lgt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=Dgt(),o=L.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return N.jsx(Y7.Provider,{value:{isLoggedIn:r,isLoading:i},children:o?N.jsx(Pgt,{open:!0}):t})}function Mgt(){const{enqueueSnackbar:e}=XI();return L.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}const che=Object.prototype.toString;function dhe(e){switch(che.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return tp(e,Error)}}function Cv(e,t){return che.call(e)===`[object ${t}]`}function Rj(e){return Cv(e,"ErrorEvent")}function bK(e){return Cv(e,"DOMError")}function $gt(e){return Cv(e,"DOMException")}function $d(e){return Cv(e,"String")}function Ij(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Dj(e){return e===null||Ij(e)||typeof e!="object"&&typeof e!="function"}function By(e){return Cv(e,"Object")}function c2(e){return typeof Event<"u"&&tp(e,Event)}function Fgt(e){return typeof Element<"u"&&tp(e,Element)}function Bgt(e){return Cv(e,"RegExp")}function d2(e){return!!(e&&e.then&&typeof e.then=="function")}function Ugt(e){return By(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function fhe(e){return typeof e=="number"&&e!==e}function tp(e,t){try{return e instanceof t}catch{return!1}}function phe(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function W0(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function yK(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rjgt(e,r,n))}function zgt(e,t,n=250,r,i,o,a){if(!o.exception||!o.exception.values||!a||!tp(a.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Vgt(M$(e,t,i,a.originalException,r,o.exception.values,s,0),n))}function M$(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let l=[...o];if(tp(r[i],Error)){vK(a,s);const u=e(t,r[i]),c=l.length;OK(u,i,c,s),l=M$(e,t,n,r[i],i,[u,...l],u,c)}return Array.isArray(r.errors)&&r.errors.forEach((u,c)=>{if(tp(u,Error)){vK(a,s);const d=e(t,u),f=l.length;OK(d,`errors[${c}]`,f,s),l=M$(e,t,n,u,i,[d,...l],d,f)}}),l}function vK(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function OK(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Vgt(e,t){return e.map(n=>(n.value&&(n.value=W0(n.value,t)),n))}function uk(e){return e&&e.Math==Math?e:void 0}const Gr=typeof globalThis=="object"&&uk(globalThis)||typeof window=="object"&&uk(window)||typeof self=="object"&&uk(self)||typeof global=="object"&&uk(global)||function(){return this}()||{};function Nj(){return Gr}function hhe(e,t,n){const r=n||Gr,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const H0=Nj(),Wgt=80;function vS(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",l=s.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Wgt;for(;n&&o++1&&a+i.length*l+u.length>=d));)i.push(u),a+=u.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function Hgt(e,t){const n=e,r=[];let i,o,a,s,l;if(!n||!n.tagName)return"";if(H0.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(u&&u.length)u.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&$d(i))for(o=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,Ggt="Sentry Logger ",$$=["debug","info","warn","error","log","assert","trace"],vA={};function f2(e){if(!("console"in Gr))return e();const t=Gr.console,n={},r=Object.keys(vA);r.forEach(i=>{const o=vA[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function qgt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return _v?$$.forEach(n=>{t[n]=(...r)=>{e&&f2(()=>{Gr.console[n](`${Ggt}[${n}]:`,...r)})}}):$$.forEach(n=>{t[n]=()=>{}}),t}const Lt=qgt(),Zgt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Xgt(e){return e==="http"||e==="https"}function YT(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${a}`}function Kgt(e){const t=Zgt.exec(e);if(!t){f2(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",o,a="",s]=t.slice(1);let l="",u=s;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return ghe({host:o,pass:i,path:l,projectId:u,port:a,protocol:n,publicKey:r})}function ghe(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Jgt(e){if(!_v)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(Lt.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?Xgt(r)?t&&isNaN(parseInt(t,10))?(Lt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Lt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Lt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function ebt(e){const t=typeof e=="string"?Kgt(e):ghe(e);if(!(!t||!Jgt(t)))return t}class Ed extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Fa(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&bhe(i,r),e[t]=i}function OS(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{_v&&Lt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function bhe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,OS(e,"__sentry_original__",t)}catch{}}function Pj(e){return e.__sentry_original__}function tbt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function yhe(e){if(dhe(e))return{message:e.message,name:e.name,stack:e.stack,...SK(e)};if(c2(e)){const t={type:e.type,target:EK(e.target),currentTarget:EK(e.currentTarget),...SK(e)};return typeof CustomEvent<"u"&&tp(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function EK(e){try{return Fgt(e)?vS(e):Object.prototype.toString.call(e)}catch{return""}}function SK(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function nbt(e,t=40){const n=Object.keys(yhe(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return W0(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:W0(i,t)}return""}function Au(e){return F$(e,new Map)}function F$(e,t){if(rbt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=F$(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(F$(i,t))}),r}return e}function rbt(e){if(!By(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const vhe=50,TK=/\(error: (.*)\)/,wK=/captureMessage|captureException/;function Ohe(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(` +`);for(let a=r;a1024)continue;const l=TK.test(s)?s.replace(TK,"$1"):s;if(!l.match(/\S*Error: /)){for(const u of t){const c=u(l);if(c){i.push(c);break}}if(i.length>=vhe)break}}return obt(i)}}function ibt(e){return Array.isArray(e)?Ohe(...e):e}function obt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),wK.test(t[t.length-1].function||"")&&(t.pop(),wK.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,vhe).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const ZP="";function np(e){try{return!e||typeof e!="function"?ZP:e.name||ZP}catch{return ZP}}const pC={},xK={};function Gg(e,t){pC[e]=pC[e]||[],pC[e].push(t)}function qg(e,t){xK[e]||(t(),xK[e]=!0)}function Tc(e,t){const n=e&&pC[e];if(n)for(const r of n)try{r(t)}catch(i){_v&&Lt.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${np(r)} -Error:`,i)}}function X0t(e){const t="console";Gg(t,e),qg(t,K0t)}function K0t(){"console"in Gr&&B4.forEach(function(e){e in Gr.console&&Fs(Gr.console,e,function(t){return EA[e]=t,function(...n){Tc("console",{args:n,level:e});const i=EA[e];i&&i.apply(Gr.console,n)}})})}function xo(){const e=Gr,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function The(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function qp(e){const{message:t,event_id:n}=e;if(t)return t;const r=The(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function j4(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function SS(e,t){const n=The(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function AK(e){if(e&&e.__sentry_captured__)return!0;try{ES(e,"__sentry_captured__",!0)}catch{}return!1}function whe(e){return Array.isArray(e)?e:[e]}const Y0=Gr,J0t=1e3;let RK,z4,V4;function ebt(e){const t="dom";Gg(t,e),qg(t,tbt)}function tbt(){if(!Y0.document)return;const e=Tc.bind(null,"dom"),t=IK(e,!0);Y0.document.addEventListener("click",t,!1),Y0.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Y0[n]&&Y0[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Fs(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},c=u[o]=u[o]||{refCount:0};if(!c.handler){const d=IK(e);c.handler=d,i.call(this,o,d,a)}c.refCount++}catch{}return i.call(this,o,s,a)}}),Fs(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},c=u[o];c&&(c.refCount--,c.refCount<=0&&(i.call(this,o,c.handler,a),c.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}function nbt(e){if(e.type!==z4)return!1;try{if(!e.target||e.target._sentryId!==V4)return!1}catch{}return!0}function rbt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function IK(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=ibt(n);if(rbt(n.type,r))return;ES(n,"_sentryCaptured",!0),r&&!r._sentryId&&ES(r,"_sentryId",xo());const i=n.type==="keypress"?"input":n.type;nbt(n)||(e({event:n,name:i,global:t}),z4=n.type,V4=r?r._sentryId:void 0),clearTimeout(RK),RK=Y0.setTimeout(()=>{V4=void 0,z4=void 0},J0t)}}function ibt(e){try{return e.target}catch{return null}}const H4=Mj();function xhe(){if(!("fetch"in H4))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function W4(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function obt(){if(typeof EdgeRuntime=="string")return!0;if(!xhe())return!1;if(W4(H4.fetch))return!0;let e=!1;const t=H4.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=W4(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){A1&&Lt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function khe(e){const t="fetch";Gg(t,e),qg(t,sbt)}function sbt(){obt()&&Fs(Gr,"fetch",function(e){return function(...t){const{method:n,url:r}=abt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Tc("fetch",{...i}),e.apply(Gr,t).then(o=>{const s={...i,endTimestamp:Date.now(),response:o};return Tc("fetch",s),o},o=>{const s={...i,endTimestamp:Date.now(),error:o};throw Tc("fetch",s),o})}})}function Q4(e,t){return!!e&&typeof e=="object"&&!!e[t]}function DK(e){return typeof e=="string"?e:e?Q4(e,"url")?e.url:e.toString?e.toString():"":""}function abt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:DK(n),method:Q4(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:DK(t),method:Q4(t,"method")?String(t.method).toUpperCase():"GET"}}let fk=null;function Che(e){const t="error";Gg(t,e),qg(t,lbt)}function lbt(){fk=Gr.onerror,Gr.onerror=function(e,t,n,r,i){return Tc("error",{column:r,error:i,line:n,msg:e,url:t}),fk&&!fk.__SENTRY_LOADER__?fk.apply(this,arguments):!1},Gr.onerror.__SENTRY_INSTRUMENTED__=!0}let pk=null;function _he(e){const t="unhandledrejection";Gg(t,e),qg(t,ubt)}function ubt(){pk=Gr.onunhandledrejection,Gr.onunhandledrejection=function(e){return Tc("unhandledrejection",e),pk&&!pk.__SENTRY_LOADER__?pk.apply(this,arguments):!0},Gr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const hk=Mj();function cbt(){const e=hk.chrome,t=e&&e.app&&e.app.runtime,n="history"in hk&&!!hk.history.pushState&&!!hk.history.replaceState;return!t&&n}const zv=Gr;let mk;function Fj(e){const t="history";Gg(t,e),qg(t,dbt)}function dbt(){if(!cbt())return;const e=zv.onpopstate;zv.onpopstate=function(...n){const r=zv.location.href,i=mk;if(mk=r,Tc("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=mk,s=String(i);mk=s,Tc("history",{from:o,to:s})}return n.apply(this,r)}}Fs(zv.history,"pushState",t),Fs(zv.history,"replaceState",t)}const fbt=Gr,bb="__sentry_xhr_v3__";function Ahe(e){const t="xhr";Gg(t,e),qg(t,pbt)}function pbt(){if(!fbt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Fs(e,"open",function(t){return function(...n){const r=Date.now(),i=Md(n[0])?n[0].toUpperCase():void 0,o=hbt(n[1]);if(!i||!o)return t.apply(this,n);this[bb]={method:i,url:o,request_headers:{}},i==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const a=this[bb];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}const l={args:[i,o],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Tc("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Fs(this,"onreadystatechange",function(a){return function(...l){return s(),a.apply(this,l)}}):this.addEventListener("readystatechange",s),Fs(this,"setRequestHeader",function(a){return function(...l){const[u,c]=l,d=this[bb];return d&&Md(u)&&Md(c)&&(d.request_headers[u.toLowerCase()]=c),a.apply(this,l)}}),t.apply(this,n)}}),Fs(e,"send",function(t){return function(...n){const r=this[bb];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Tc("xhr",i),t.apply(this,n)}})}function hbt(e){if(Md(e))return e;try{return e.toString()}catch{}}function mbt(){return"npm"}function gbt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;on?Rhe(e,t-1,n):r}function Y4(e,t,n=1/0,r=1/0,i=gbt()){const[o,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!hhe(t))return t;const a=bbt(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const m=u.toJSON();return Y4("",m,l-1,r,i)}catch{}const c=Array.isArray(t)?[]:{};let d=0;const p=Ohe(t);for(const m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(d>=r){c[m]="[MaxProperties ~]";break}const g=p[m];c[m]=Y4(m,g,l-1,r,i),d++}return s(t),c}function bbt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(mhe(t))return"[VueViewModel]";if(I0t(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${np(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=ybt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ybt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function vbt(e){return~-encodeURI(e).split(/%..|./).length}function Obt(e){return vbt(JSON.stringify(e))}var xf;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(xf||(xf={}));function Uy(e){return new Ml(t=>{t(e)})}function Bj(e){return new Ml((t,n)=>{n(e)})}class Ml{constructor(t){Ml.prototype.__init.call(this),Ml.prototype.__init2.call(this),Ml.prototype.__init3.call(this),Ml.prototype.__init4.call(this),this._state=xf.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Ml((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ml((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,t&&t()},s=>{o=!0,i=s,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(xf.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(xf.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===xf.PENDING){if(pI(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===xf.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===xf.RESOLVED&&n[1](this._value),this._state===xf.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Ebt(e){const t=[];function n(){return e===void 0||t.lengthr(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new Ml((a,l)=>{let u=t.length;if(!u)return a(!0);const c=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(d=>{Uy(d).then(()=>{--u||(clearTimeout(c),a(!0))},l)})})}return{$:t,add:i,drain:o}}function gC(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Sbt=["fatal","error","warning","log","info","debug"];function Tbt(e){return e==="warn"?"warning":Sbt.includes(e)?e:"log"}const Ihe=1e3;function qT(){return Date.now()/Ihe}function wbt(){const{performance:e}=Gr;if(!e||!e.now)return qT;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Ihe}const ZT=wbt(),Bd=(()=>{const{performance:e}=Gr;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i{const o=NK(i);for(const s of Object.keys(o))r[s]=o[s];return r},{});else{if(!e)return;t=NK(e)}const n=Object.entries(t).reduce((r,[i,o])=>{if(i.match(xbt)){const s=i.slice(Dhe.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function Nhe(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Dhe}${r}`]=i),n),{});return _bt(t)}function NK(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function _bt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?o:`${t},${o}`;return s.length>kbt?(A1&&Lt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const Abt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Rbt(e){if(!e)return;const t=e.match(Abt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Ibt(e,t){const n=Rbt(e),r=Cbt(t),{traceId:i,parentSpanId:o,parentSampled:s}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||xo(),parentSpanId:o||xo().substring(16),spanId:xo().substring(16),sampled:s,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||xo(),spanId:xo().substring(16)}}}function Uj(e=xo(),t=xo().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function R1(e,t=[]){return[e,t]}function Dbt(e,t){const[n,r]=e;return[n,[...r,t]]}function PK(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function q4(e,t){return(t||new TextEncoder).encode(e)}function Nbt(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(s){typeof i=="string"?i=typeof s=="string"?i+s:[q4(i,t),s]:i.push(typeof s=="string"?q4(s,t):s)}for(const s of r){const[a,l]=s;if(o(` -${JSON.stringify(a)} -`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(Vp(l))}o(u)}}return typeof i=="string"?i:Pbt(i)}function Pbt(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Lbt(e,t){const n=typeof e.data=="string"?q4(e.data,t):e.data;return[Au({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Mbt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function LK(e){return Mbt[e]}function Phe(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function $bt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:GT(r)},...i&&{trace:Au({...i})}}}function Fbt(e,t,n){const r=[{type:"client_report"},{timestamp:n||qT(),discarded_events:e}];return R1(t?{dsn:t}:{},[r])}const Bbt=60*1e3;function Ubt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Bbt:r-t}function jbt(e,t){return e[t]||e.all||0}function zbt(e,t,n=Date.now()){return jbt(e,t)>n}function Vbt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[l,u]=a.split(":",2),c=parseInt(l,10),d=(isNaN(c)?60:c)*1e3;if(!u)i.all=r+d;else for(const p of u.split(";"))i[p]=r+d}else s?i.all=r+Ubt(s,r):t===429&&(i.all=r+60*1e3);return i}const Ln=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,mI="production";function jj(){return ghe("globalEventProcessors",()=>[])}function Hbt(e){jj().push(e)}function SA(e,t,n,r=0){return new Ml((i,o)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const a=s({...t},n);Ln&&s.id&&a===null&&Lt.log(`Event processor "${s.id}" dropped event`),pI(a)?a.then(l=>SA(e,l,n,r+1).then(i)).then(null,o):SA(e,a,n,r+1).then(i).then(null,o)}})}function Lhe(e){const t=ZT(),n={sid:xo(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Wbt(n)};return e&&Rg(n,e),n}function Rg(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ZT(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:xo()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Mhe(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Rg(e,n)}function Wbt(e){return Au({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Qbt=0,$he=1;function zj(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:s,tags:a,origin:l}=Ma(e);return Au({data:r,op:i,parent_span_id:o,span_id:t,status:s,tags:a,trace_id:n,origin:l})}function gI(e){const{traceId:t,spanId:n}=e.spanContext(),r=Fhe(e);return Uj(t,n,r)}function bI(e){return typeof e=="number"?MK(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?MK(e.getTime()):ZT()}function MK(e){return e>9999999999?e/1e3:e}function Ma(e){return Ybt(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Ybt(e){return typeof e.getSpanJSON=="function"}function Fhe(e){const{traceFlags:t}=e.spanContext();return!!(t&$he)}function Gbt(e,t,n,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||n.event_id||xo(),timestamp:t.timestamp||qT()},u=n.integrations||e.integrations.map(E=>E.name);qbt(l,e),Kbt(l,u),t.type===void 0&&Zbt(l,e.stackParser);const c=eyt(r,n.captureContext);n.mechanism&&SS(l,n.mechanism);const d=i&&i.getEventProcessors?i.getEventProcessors():[],p=pyt().getScopeData();if(o){const E=o.getScopeData();UK(p,E)}if(c){const E=c.getScopeData();UK(p,E)}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),zhe(l,p);const g=[...d,...jj(),...p.eventProcessors];return SA(g,l,n).then(E=>(E&&Xbt(E),typeof s=="number"&&s>0?Jbt(E,s,a):E))}function qbt(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:mI),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Hb(e.message,o));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Hb(s.value,o));const a=e.request;a&&a.url&&(a.url=Hb(a.url,o))}const $K=new WeakMap;function Zbt(e,t){const n=Gr._sentryDebugIds;if(!n)return;let r;const i=$K.get(t);i?r=i:(r=new Map,$K.set(t,r));const o=Object.keys(n).reduce((s,a)=>{let l;const u=r.get(a);u?l=u:(l=t(a),r.set(a,l));for(let c=l.length-1;c>=0;c--){const d=l[c];if(d.filename){s[d.filename]=n[a];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function Xbt(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Kbt(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Jbt(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Vp(i.data,t,n)}}))},...e.user&&{user:Vp(e.user,t,n)},...e.contexts&&{contexts:Vp(e.contexts,t,n)},...e.extra&&{extra:Vp(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Vp(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const o=Ma(i).data;return o&&(i.data=Vp(o,t,n)),i})),r}function eyt(e,t){if(!t)return e;const n=e?e.clone():new Cd;return n.update(t),n}function tyt(e){if(e)return nyt(e)?{captureContext:e}:iyt(e)?{captureContext:e}:e}function nyt(e){return e instanceof Cd||typeof e=="function"}const ryt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function iyt(e){return Object.keys(e).some(t=>ryt.includes(t))}function oyt(e,t){return qu().captureException(e,tyt(t))}function Bhe(e,t){return qu().captureEvent(e,t)}function Ig(e,t){qu().addBreadcrumb(e,t)}function syt(...e){const t=qu();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Ws(){return qu().getClient()}function fp(){return qu().getScope()}function FK(e){const t=Ws(),n=Zg(),r=fp(),{release:i,environment:o=mI}=t&&t.getOptions()||{},{userAgent:s}=Gr.navigator||{},a=Lhe({release:i,environment:o,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&Rg(l,{status:"exited"}),Uhe(),n.setSession(a),r.setSession(a),a}function Uhe(){const e=Zg(),t=fp(),n=t.getSession()||e.getSession();n&&Mhe(n),jhe(),e.setSession(),t.setSession()}function jhe(){const e=Zg(),t=fp(),n=Ws(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function BK(e=!1){if(e){Uhe();return}jhe()}function TA(e){return e.transaction}function yI(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},s=Au({environment:r.environment||mI,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function TS(e){const t=Ws();if(!t)return{};const n=yI(Ma(e).trace_id||"",t,fp()),r=TA(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:s}=r.metadata;o!=null&&(n.sample_rate=`${o}`);const a=Ma(r);return s&&s!=="url"&&(n.transaction=a.description),n.sampled=String(Fhe(r)),t.emit&&t.emit("createDsc",n),n}function zhe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;ayt(e,t),r&&cyt(e,r),dyt(e,n),lyt(e,i),uyt(e,o)}function UK(e,t){const{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:p,transactionName:m,span:g}=t;Vv(e,"extra",n),Vv(e,"tags",r),Vv(e,"user",i),Vv(e,"contexts",o),Vv(e,"sdkProcessingMetadata",a),s&&(e.level=s),m&&(e.transactionName=m),g&&(e.span=g),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Vv(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function ayt(e,t){const{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t,l=Au(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=Au(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const c=Au(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const d=Au(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}function lyt(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function uyt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function cyt(e,t){e.contexts={trace:zj(t),...e.contexts};const n=TA(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:TS(t),...e.sdkProcessingMetadata};const r=Ma(n).description;r&&(e.tags={transaction:r,...e.tags})}}function dyt(e,t){e.fingerprint=e.fingerprint?whe(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const fyt=100;let e3;class Cd{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=jK()}static clone(t){return t?t.clone():new Cd}clone(){const t=new Cd;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Rg(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Cd?n:this}return t instanceof Cd?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):By(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=jK(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:fyt;if(r<=0)return this;const i={timestamp:qT(),...t},o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:o,_user:s,_level:a,_fingerprint:l,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:d,_transactionName:p,_span:m}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:o,user:s,level:a,fingerprint:l||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:d,transactionName:p,span:m}}applyToEvent(t,n={},r=[]){zhe(t,this.getScopeData());const i=[...r,...jj(),...this._eventProcessors];return SA(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:xo();if(!this._client)return Lt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:xo();if(!this._client)return Lt.warn("No client configured on scope - will not capture message!"),i;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:xo();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Lt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function pyt(){return e3||(e3=new Cd),e3}function jK(){return{traceId:xo(),spanId:xo().substring(16)}}const Z4="7.99.0",Vhe=parseFloat(Z4),hyt=100;class Hhe{constructor(t,n,r,i=Vhe){this._version=i;let o;n?o=n:(o=new Cd,o.setClient(t));let s;r?s=r:(s=new Cd,s.setClient(t)),this._stack=[{scope:o}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:xo(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:xo(),o=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:xo();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=hyt}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:qT(),...t},u=o?hI(()=>o(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=zK(this);try{t(this)}finally{zK(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Ln&&Lt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Ln&&!r&&(this.getClient()?Lt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +Error:`,i)}}function abt(e){const t="console";Gg(t,e),qg(t,sbt)}function sbt(){"console"in Gr&&$$.forEach(function(e){e in Gr.console&&Fa(Gr.console,e,function(t){return vA[e]=t,function(...n){Tc("console",{args:n,level:e});const i=vA[e];i&&i.apply(Gr.console,n)}})})}function xo(){const e=Gr,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Ehe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function qp(e){const{message:t,event_id:n}=e;if(t)return t;const r=Ehe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function B$(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function ES(e,t){const n=Ehe(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function kK(e){if(e&&e.__sentry_captured__)return!0;try{OS(e,"__sentry_captured__",!0)}catch{}return!1}function She(e){return Array.isArray(e)?e:[e]}const Yb=Gr,lbt=1e3;let CK,U$,j$;function ubt(e){const t="dom";Gg(t,e),qg(t,cbt)}function cbt(){if(!Yb.document)return;const e=Tc.bind(null,"dom"),t=_K(e,!0);Yb.document.addEventListener("click",t,!1),Yb.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Yb[n]&&Yb[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Fa(r,"addEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},c=u[o]=u[o]||{refCount:0};if(!c.handler){const d=_K(e);c.handler=d,i.call(this,o,d,s)}c.refCount++}catch{}return i.call(this,o,a,s)}}),Fa(r,"removeEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},c=u[o];c&&(c.refCount--,c.refCount<=0&&(i.call(this,o,c.handler,s),c.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,s)}}))})}function dbt(e){if(e.type!==U$)return!1;try{if(!e.target||e.target._sentryId!==j$)return!1}catch{}return!0}function fbt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function _K(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=pbt(n);if(fbt(n.type,r))return;OS(n,"_sentryCaptured",!0),r&&!r._sentryId&&OS(r,"_sentryId",xo());const i=n.type==="keypress"?"input":n.type;dbt(n)||(e({event:n,name:i,global:t}),U$=n.type,j$=r?r._sentryId:void 0),clearTimeout(CK),CK=Yb.setTimeout(()=>{j$=void 0,U$=void 0},lbt)}}function pbt(e){try{return e.target}catch{return null}}const z$=Nj();function The(){if(!("fetch"in z$))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function V$(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function hbt(){if(typeof EdgeRuntime=="string")return!0;if(!The())return!1;if(V$(z$.fetch))return!0;let e=!1;const t=z$.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=V$(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){_v&&Lt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function whe(e){const t="fetch";Gg(t,e),qg(t,mbt)}function mbt(){hbt()&&Fa(Gr,"fetch",function(e){return function(...t){const{method:n,url:r}=gbt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Tc("fetch",{...i}),e.apply(Gr,t).then(o=>{const a={...i,endTimestamp:Date.now(),response:o};return Tc("fetch",a),o},o=>{const a={...i,endTimestamp:Date.now(),error:o};throw Tc("fetch",a),o})}})}function W$(e,t){return!!e&&typeof e=="object"&&!!e[t]}function AK(e){return typeof e=="string"?e:e?W$(e,"url")?e.url:e.toString?e.toString():"":""}function gbt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:AK(n),method:W$(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:AK(t),method:W$(t,"method")?String(t.method).toUpperCase():"GET"}}let ck=null;function xhe(e){const t="error";Gg(t,e),qg(t,bbt)}function bbt(){ck=Gr.onerror,Gr.onerror=function(e,t,n,r,i){return Tc("error",{column:r,error:i,line:n,msg:e,url:t}),ck&&!ck.__SENTRY_LOADER__?ck.apply(this,arguments):!1},Gr.onerror.__SENTRY_INSTRUMENTED__=!0}let dk=null;function khe(e){const t="unhandledrejection";Gg(t,e),qg(t,ybt)}function ybt(){dk=Gr.onunhandledrejection,Gr.onunhandledrejection=function(e){return Tc("unhandledrejection",e),dk&&!dk.__SENTRY_LOADER__?dk.apply(this,arguments):!0},Gr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const fk=Nj();function vbt(){const e=fk.chrome,t=e&&e.app&&e.app.runtime,n="history"in fk&&!!fk.history.pushState&&!!fk.history.replaceState;return!t&&n}const jO=Gr;let pk;function Lj(e){const t="history";Gg(t,e),qg(t,Obt)}function Obt(){if(!vbt())return;const e=jO.onpopstate;jO.onpopstate=function(...n){const r=jO.location.href,i=pk;if(pk=r,Tc("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=pk,a=String(i);pk=a,Tc("history",{from:o,to:a})}return n.apply(this,r)}}Fa(jO.history,"pushState",t),Fa(jO.history,"replaceState",t)}const Ebt=Gr,b0="__sentry_xhr_v3__";function Che(e){const t="xhr";Gg(t,e),qg(t,Sbt)}function Sbt(){if(!Ebt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Fa(e,"open",function(t){return function(...n){const r=Date.now(),i=$d(n[0])?n[0].toUpperCase():void 0,o=Tbt(n[1]);if(!i||!o)return t.apply(this,n);this[b0]={method:i,url:o,request_headers:{}},i==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const s=this[b0];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}const l={args:[i,o],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Tc("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Fa(this,"onreadystatechange",function(s){return function(...l){return a(),s.apply(this,l)}}):this.addEventListener("readystatechange",a),Fa(this,"setRequestHeader",function(s){return function(...l){const[u,c]=l,d=this[b0];return d&&$d(u)&&$d(c)&&(d.request_headers[u.toLowerCase()]=c),s.apply(this,l)}}),t.apply(this,n)}}),Fa(e,"send",function(t){return function(...n){const r=this[b0];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Tc("xhr",i),t.apply(this,n)}})}function Tbt(e){if($d(e))return e;try{return e.toString()}catch{}}function wbt(){return"npm"}function xbt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;on?_he(e,t-1,n):r}function H$(e,t,n=1/0,r=1/0,i=xbt()){const[o,a]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!fhe(t))return t;const s=kbt(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return s.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const m=u.toJSON();return H$("",m,l-1,r,i)}catch{}const c=Array.isArray(t)?[]:{};let d=0;const f=yhe(t);for(const m in f){if(!Object.prototype.hasOwnProperty.call(f,m))continue;if(d>=r){c[m]="[MaxProperties ~]";break}const g=f[m];c[m]=H$(m,g,l-1,r,i),d++}return a(t),c}function kbt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(phe(t))return"[VueViewModel]";if(Ugt(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${np(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Cbt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Cbt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function _bt(e){return~-encodeURI(e).split(/%..|./).length}function Abt(e){return _bt(JSON.stringify(e))}var kf;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(kf||(kf={}));function Uy(e){return new Ml(t=>{t(e)})}function Mj(e){return new Ml((t,n)=>{n(e)})}class Ml{constructor(t){Ml.prototype.__init.call(this),Ml.prototype.__init2.call(this),Ml.prototype.__init3.call(this),Ml.prototype.__init4.call(this),this._state=kf.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Ml((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(a){i(a)}},o=>{if(!n)i(o);else try{r(n(o))}catch(a){i(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ml((n,r)=>{let i,o;return this.then(a=>{o=!1,i=a,t&&t()},a=>{o=!0,i=a,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(kf.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(kf.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===kf.PENDING){if(d2(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===kf.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===kf.RESOLVED&&n[1](this._value),this._state===kf.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Rbt(e){const t=[];function n(){return e===void 0||t.lengthr(s)).then(null,()=>r(s).then(null,()=>{})),s}function o(a){return new Ml((s,l)=>{let u=t.length;if(!u)return s(!0);const c=setTimeout(()=>{a&&a>0&&s(!1)},a);t.forEach(d=>{Uy(d).then(()=>{--u||(clearTimeout(c),s(!0))},l)})})}return{$:t,add:i,drain:o}}function hC(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Ibt=["fatal","error","warning","log","info","debug"];function Dbt(e){return e==="warn"?"warning":Ibt.includes(e)?e:"log"}const Ahe=1e3;function GT(){return Date.now()/Ahe}function Nbt(){const{performance:e}=Gr;if(!e||!e.now)return GT;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Ahe}const qT=Nbt(),Ud=(()=>{const{performance:e}=Gr;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i{const o=RK(i);for(const a of Object.keys(o))r[a]=o[a];return r},{});else{if(!e)return;t=RK(e)}const n=Object.entries(t).reduce((r,[i,o])=>{if(i.match(Pbt)){const a=i.slice(Rhe.length);r[a]=o}return r},{});if(Object.keys(n).length>0)return n}function Ihe(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Rhe}${r}`]=i),n),{});return $bt(t)}function RK(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function $bt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,a=i===0?o:`${t},${o}`;return a.length>Lbt?(_v&&Lt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):a},"")}const Fbt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Bbt(e){if(!e)return;const t=e.match(Fbt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Ubt(e,t){const n=Bbt(e),r=Mbt(t),{traceId:i,parentSpanId:o,parentSampled:a}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||xo(),parentSpanId:o||xo().substring(16),spanId:xo().substring(16),sampled:a,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||xo(),spanId:xo().substring(16)}}}function $j(e=xo(),t=xo().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Av(e,t=[]){return[e,t]}function jbt(e,t){const[n,r]=e;return[n,[...r,t]]}function IK(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Y$(e,t){return(t||new TextEncoder).encode(e)}function zbt(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(a){typeof i=="string"?i=typeof a=="string"?i+a:[Y$(i,t),a]:i.push(typeof a=="string"?Y$(a,t):a)}for(const a of r){const[s,l]=a;if(o(` +${JSON.stringify(s)} +`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(Vp(l))}o(u)}}return typeof i=="string"?i:Vbt(i)}function Vbt(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Wbt(e,t){const n=typeof e.data=="string"?Y$(e.data,t):e.data;return[Au({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Hbt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function DK(e){return Hbt[e]}function Dhe(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Qbt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:YT(r)},...i&&{trace:Au({...i})}}}function Ybt(e,t,n){const r=[{type:"client_report"},{timestamp:n||GT(),discarded_events:e}];return Av(t?{dsn:t}:{},[r])}const Gbt=60*1e3;function qbt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Gbt:r-t}function Zbt(e,t){return e[t]||e.all||0}function Xbt(e,t,n=Date.now()){return Zbt(e,t)>n}function Kbt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const s of o.trim().split(",")){const[l,u]=s.split(":",2),c=parseInt(l,10),d=(isNaN(c)?60:c)*1e3;if(!u)i.all=r+d;else for(const f of u.split(";"))i[f]=r+d}else a?i.all=r+qbt(a,r):t===429&&(i.all=r+60*1e3);return i}const Ln=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,p2="production";function Fj(){return hhe("globalEventProcessors",()=>[])}function Jbt(e){Fj().push(e)}function OA(e,t,n,r=0){return new Ml((i,o)=>{const a=e[r];if(t===null||typeof a!="function")i(t);else{const s=a({...t},n);Ln&&a.id&&s===null&&Lt.log(`Event processor "${a.id}" dropped event`),d2(s)?s.then(l=>OA(e,l,n,r+1).then(i)).then(null,o):OA(e,s,n,r+1).then(i).then(null,o)}})}function Nhe(e){const t=qT(),n={sid:xo(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>e0t(n)};return e&&Rg(n,e),n}function Rg(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||qT(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:xo()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Phe(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Rg(e,n)}function e0t(e){return Au({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const t0t=0,Lhe=1;function Bj(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:l}=Ms(e);return Au({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:l})}function h2(e){const{traceId:t,spanId:n}=e.spanContext(),r=Mhe(e);return $j(t,n,r)}function m2(e){return typeof e=="number"?NK(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?NK(e.getTime()):qT()}function NK(e){return e>9999999999?e/1e3:e}function Ms(e){return n0t(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function n0t(e){return typeof e.getSpanJSON=="function"}function Mhe(e){const{traceFlags:t}=e.spanContext();return!!(t&Lhe)}function r0t(e,t,n,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||xo(),timestamp:t.timestamp||GT()},u=n.integrations||e.integrations.map(S=>S.name);i0t(l,e),s0t(l,u),t.type===void 0&&o0t(l,e.stackParser);const c=u0t(r,n.captureContext);n.mechanism&&ES(l,n.mechanism);const d=i&&i.getEventProcessors?i.getEventProcessors():[],f=S0t().getScopeData();if(o){const S=o.getScopeData();$K(f,S)}if(c){const S=c.getScopeData();$K(f,S)}const m=[...n.attachments||[],...f.attachments];m.length&&(n.attachments=m),Uhe(l,f);const g=[...d,...Fj(),...f.eventProcessors];return OA(g,l,n).then(S=>(S&&a0t(S),typeof a=="number"&&a>0?l0t(S,a,s):S))}function i0t(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:p2),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=W0(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=W0(a.value,o));const s=e.request;s&&s.url&&(s.url=W0(s.url,o))}const PK=new WeakMap;function o0t(e,t){const n=Gr._sentryDebugIds;if(!n)return;let r;const i=PK.get(t);i?r=i:(r=new Map,PK.set(t,r));const o=Object.keys(n).reduce((a,s)=>{let l;const u=r.get(s);u?l=u:(l=t(s),r.set(s,l));for(let c=l.length-1;c>=0;c--){const d=l[c];if(d.filename){a[d.filename]=n[s];break}}return a},{});try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=o[s.filename])})})}catch{}}function a0t(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function s0t(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function l0t(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Vp(i.data,t,n)}}))},...e.user&&{user:Vp(e.user,t,n)},...e.contexts&&{contexts:Vp(e.contexts,t,n)},...e.extra&&{extra:Vp(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Vp(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const o=Ms(i).data;return o&&(i.data=Vp(o,t,n)),i})),r}function u0t(e,t){if(!t)return e;const n=e?e.clone():new _d;return n.update(t),n}function c0t(e){if(e)return d0t(e)?{captureContext:e}:p0t(e)?{captureContext:e}:e}function d0t(e){return e instanceof _d||typeof e=="function"}const f0t=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function p0t(e){return Object.keys(e).some(t=>f0t.includes(t))}function h0t(e,t){return qu().captureException(e,c0t(t))}function $he(e,t){return qu().captureEvent(e,t)}function Ig(e,t){qu().addBreadcrumb(e,t)}function m0t(...e){const t=qu();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Ha(){return qu().getClient()}function fp(){return qu().getScope()}function LK(e){const t=Ha(),n=Zg(),r=fp(),{release:i,environment:o=p2}=t&&t.getOptions()||{},{userAgent:a}=Gr.navigator||{},s=Nhe({release:i,environment:o,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),l=n.getSession();return l&&l.status==="ok"&&Rg(l,{status:"exited"}),Fhe(),n.setSession(s),r.setSession(s),s}function Fhe(){const e=Zg(),t=fp(),n=t.getSession()||e.getSession();n&&Phe(n),Bhe(),e.setSession(),t.setSession()}function Bhe(){const e=Zg(),t=fp(),n=Ha(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function MK(e=!1){if(e){Fhe();return}Bhe()}function EA(e){return e.transaction}function g2(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Au({environment:r.environment||p2,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function SS(e){const t=Ha();if(!t)return{};const n=g2(Ms(e).trace_id||"",t,fp()),r=EA(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:a}=r.metadata;o!=null&&(n.sample_rate=`${o}`);const s=Ms(r);return a&&a!=="url"&&(n.transaction=s.description),n.sampled=String(Mhe(r)),t.emit&&t.emit("createDsc",n),n}function Uhe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;g0t(e,t),r&&v0t(e,r),O0t(e,n),b0t(e,i),y0t(e,o)}function $K(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:f,transactionName:m,span:g}=t;zO(e,"extra",n),zO(e,"tags",r),zO(e,"user",i),zO(e,"contexts",o),zO(e,"sdkProcessingMetadata",s),a&&(e.level=a),m&&(e.transactionName=m),g&&(e.span=g),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function zO(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function g0t(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=Au(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=Au(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const c=Au(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const d=Au(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)}function b0t(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function y0t(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function v0t(e,t){e.contexts={trace:Bj(t),...e.contexts};const n=EA(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:SS(t),...e.sdkProcessingMetadata};const r=Ms(n).description;r&&(e.tags={transaction:r,...e.tags})}}function O0t(e,t){e.fingerprint=e.fingerprint?She(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const E0t=100;let XP;class _d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=FK()}static clone(t){return t?t.clone():new _d}clone(){const t=new _d;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Rg(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof _d?n:this}return t instanceof _d?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):By(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=FK(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:E0t;if(r<=0)return this;const i={timestamp:GT(),...t},o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:o,_user:a,_level:s,_fingerprint:l,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:d,_transactionName:f,_span:m}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:o,user:a,level:s,fingerprint:l||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:d,transactionName:f,span:m}}applyToEvent(t,n={},r=[]){Uhe(t,this.getScopeData());const i=[...r,...Fj(),...this._eventProcessors];return OA(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:xo();if(!this._client)return Lt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:xo();if(!this._client)return Lt.warn("No client configured on scope - will not capture message!"),i;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:xo();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Lt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function S0t(){return XP||(XP=new _d),XP}function FK(){return{traceId:xo(),spanId:xo().substring(16)}}const G$="7.99.0",jhe=parseFloat(G$),T0t=100;class zhe{constructor(t,n,r,i=jhe){this._version=i;let o;n?o=n:(o=new _d,o.setClient(t));let a;r?a=r:(a=new _d,a.setClient(t)),this._stack=[{scope:o}],t&&this.bindClient(t),this._isolationScope=a}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:xo(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:xo(),o=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:xo();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=T0t}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const l={timestamp:GT(),...t},u=o?f2(()=>o(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,a))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=BK(this);try{t(this)}finally{BK(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Ln&&Lt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Ln&&!r&&(this.getClient()?Lt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); -`):Lt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Mhe(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=mI}=r&&r.getOptions()||{},{userAgent:s}=Gr.navigator||{},a=Lhe({release:i,environment:o,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&Rg(l,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=XT().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);Ln&&Lt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function XT(){return Gr.__SENTRY__=Gr.__SENTRY__||{extensions:{},hub:void 0},Gr}function zK(e){const t=XT(),n=X4(t);return Whe(t,e),n}function qu(){const e=XT();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return myt(e)}function Zg(){return qu().getIsolationScope()}function myt(e=XT()){return(!gyt(e)||X4(e).isOlderThan(Vhe))&&Whe(e,new Hhe),X4(e)}function gyt(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function X4(e){return ghe("hub",()=>new Hhe,e)}function Whe(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function I1(e){return(e||qu()).getScope().getTransaction()}let VK=!1;function byt(){VK||(VK=!0,Che(K4),_he(K4))}function K4(){const e=I1();if(e){const t="internal_error";Ln&&Lt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}K4.tag="sentry_tracingErrorCallback";const Qb="sentry.source",yb="sentry.sample_rate",gk="sentry.op",vb="sentry.origin";var HK;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const o="not_found";e.NotFound=o;const s="resource_exhausted";e.ResourceExhausted=s;const a="invalid_argument";e.InvalidArgument=a;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const c="internal_error";e.InternalError=c;const d="unknown_error";e.UnknownError=d;const p="cancelled";e.Cancelled=p;const m="already_exists";e.AlreadyExists=m;const g="failed_precondition";e.FailedPrecondition=g;const v="aborted";e.Aborted=v;const E="out_of_range";e.OutOfRange=E;const O="data_loss";e.DataLoss=O})(HK||(HK={}));function yyt(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Vj(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=yyt(t);n!=="unknown_error"&&e.setStatus(n)}class Qhe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Hj{constructor(t={}){this._traceId=t.traceId||xo(),this._spanId=t.spanId||xo().substring(16),this._startTime=t.startTimestamp||ZT(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[vb]:t.origin||"manual",[gk]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp)}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[gk]}set op(t){this.setAttribute(gk,t)}get origin(){return this._attributes[vb]}set origin(t){this.setAttribute(vb,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?$he:Qbt}}startChild(t){const n=new Hj({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=TA(this);if(n.transaction=r,Ln&&r){const i=t&&t.op||"< unknown op >",o=Ma(n).description||"< unknown name >",s=r.spanContext().spanId,a=`[Tracing] Starting '${i}' span on transaction '${o}' (${s}).`;Lt.log(a),this._logMessage=a}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Vj(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=TA(this);if(Ln&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Lt.log(r.replace("Starting","Finishing"))}this._endTime=bI(t)}toTraceparent(){return gI(this)}toContext(){return Au({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return zj(this)}getSpanJSON(){return Au({data:this._getData(),description:this._name,op:this._attributes[gk],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[vb]})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class Yhe extends Hj{constructor(t,n){super(t),this._measurements={},this._contexts={},this._hub=n||qu(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Qb]&&{source:this._attributes[Qb]},...this._attributes[yb]&&{sampleRate:this._attributes[yb]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(Qb,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Qhe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=bI(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Au({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return TS(this)}setHub(t){this._hub=t}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(Ln&&Lt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){Ln&&Lt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&Ma(l).timestamp):[];if(this._trimEnd&&r.length>0){const l=r.map(u=>Ma(u).timestamp).filter(Boolean);this._endTime=l.reduce((u,c)=>u>c?u:c)}const{metadata:i}=this,{source:o}=i,s={contexts:{...this._contexts,trace:zj(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:TS(this)},...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(Ln&&Lt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),Ln&&Lt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}const bC={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},vyt="finishReason",N0=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Oyt extends Qhe{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Ma(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class Eyt extends Yhe{constructor(t,n,r=bC.idleTimeout,i=bC.finalTimeout,o=bC.heartbeatInterval,s=!1,a=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=o,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=N0[4],this._autoFinishAllowed=!a,s&&(Ln&&Lt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=N0[3],this.end())},this._finalTimeout)}end(t){const n=bI(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(vyt,this._finishReason),this.spanRecorder){Ln&&Lt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Ma(r).timestamp||(r.setStatus("cancelled"),r.end(n),Ln&&Lt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:o}=Ma(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new Oyt(n,r,this.spanContext().spanId,t),Ln&&Lt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=N0[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(Ln&&Lt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=N0[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Ln&&Lt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,Ln&&Lt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(Ln&&Lt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],Ln&&Lt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=ZT();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=N0[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Ln&&Lt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=N0[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Ln&&Lt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function vI(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ws(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Ghe(e,t,n){if(!vI(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(yb,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(yb,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(yb,Number(r))):(r=1,e.setAttribute(yb,r)),Syt(r)?r?(e.sampled=Math.random()1?(Ln&&Lt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Tyt(){const t=this.getScope().getSpan();return t?{"sentry-trace":gI(t)}:{}}function wyt(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(Ln&&Lt.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter. -The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new Yhe(e,this);return s=Ghe(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function WK(e,t,n,r,i,o,s,a=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let c=new Eyt(t,e,n,r,s,i,a);return c=Ghe(c,u,{parentSampled:t.parentSampled,transactionContext:t,...o}),c.isRecording()&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",c),c}function xyt(){const e=XT();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=wyt),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Tyt),byt())}function qhe(e){if(!vI())return;const t=Cyt(e),n=qu(),r=e.scope?e.scope.getSpan():kyt();if(!(e.onlyIfParent&&!r)){if(r)return r.startChild(t);{const o=Zg(),s=fp(),{traceId:a,dsc:l,parentSpanId:u,sampled:c}={...o.getPropagationContext(),...s.getPropagationContext()};return n.startTransaction({traceId:a,parentSpanId:u,parentSampled:c,...t,metadata:{dynamicSamplingContext:l,...t.metadata}})}}}function kyt(){return fp().getSpan()}function Cyt(e){if(e.startTime){const t={...e};return t.startTimestamp=bI(e.startTime),delete t.startTime,t}return e}function _yt(e,t,n){const r=I1();r&&r.setMeasurement(e,t,n)}function Ayt(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Ryt(e,t,n,r){const i=Phe(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:GT(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return R1(o,[s])}function Iyt(e,t,n,r){const i=Phe(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Ayt(e,n&&n.sdk);const s=$bt(e,i,r,t);return delete e.sdkProcessingMetadata,R1(s,[[{type:o},e]])}const Dyt="7";function Nyt(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Pyt(e){return`${Nyt(e)}${e.projectId}/envelope/`}function Lyt(e,t){return Q0t({sentry_key:e.publicKey,sentry_version:Dyt,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Myt(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Pyt(e)}?${Lyt(e,r)}`}const QK=[];function $yt(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Fyt(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=whe(n(t)):r=t;const i=$yt(r),o=Uyt(i,s=>s.name==="Debug");if(o!==-1){const[s]=i.splice(o,1);i.push(s)}return i}function Byt(e,t){const n={};return t.forEach(r=>{r&&Zhe(e,r,n)}),n}function YK(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Zhe(e,t,n){if(n[t.name]){Ln&&Lt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,QK.indexOf(t.name)===-1&&(t.setupOnce(Hbt,qu),QK.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((o,s)=>r(o,s,e),{id:t.name});e.addEventProcessor(i)}Ln&&Lt.log(`Integration installed: ${t.name}`)}function Uyt(e,t){for(let n=0;n0?`|#${r.map(([o,s])=>`${o}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} -`}return t}function zyt(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=GT(t));const o=Vyt(e);return R1(i,[o])}function Vyt(e){const t=jyt(e);return[{type:"statsd",length:t.length},t]}const GK="Not capturing exception because it's already been captured.";class Hyt{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=W0t(t.dsn):Ln&&Lt.warn("No DSN provided, client will not send events."),this._dsn){const n=Myt(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(AK(t)){Ln&&Lt.log(GK);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(t,n,r,i){let o=r&&r.event_id;const s=Pj(t)?t:String(t),a=Lj(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(a.then(l=>this._captureEvent(l,r,i)).then(l=>{o=l})),o}captureEvent(t,n,r){if(n&&n.originalException&&AK(n.originalException)){Ln&&Lt.log(GK);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(o=>{i=o})),i}captureSession(t){typeof t.release!="string"?Ln&&Lt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Rg(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):Uy(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Ln&&Lt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];Zhe(this,t,this._integrations),n||YK(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Iyt(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Dbt(r,Lbt(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=Ryt(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;Ln&&Lt.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}captureAggregateMetrics(t){Ln&&Lt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=zyt(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Byt(this,t),YK(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const l of o){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(Rg(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Ml(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=Zg()){const o=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),Gbt(o,t,n,r,this,i).then(a=>{if(a===null)return a;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&l){const{traceId:c,spanId:d,parentSpanId:p,dsc:m}=l;a.contexts={trace:{trace_id:c,span_id:d,parent_span_id:p},...a.contexts};const g=m||yI(c,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:g,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(Ln){const o=i;o.logLevel==="log"?Lt.log(o.message):Lt.warn(o)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i,s=Khe(t),a=Xhe(t),l=t.type||"error",u=`before send for type \`${l}\``;if(a&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),Bj(new Od(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const c=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",c,t),new Od("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const m=Qyt(i,d,n);return Wyt(m,u)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",c,t),new Od(`${u} returned \`null\`, will not send event.`,"log");const p=r&&r.getSession();!s&&p&&this._updateSessionFromEvent(p,d);const m=d.transaction_info;if(s&&m&&d.transaction!==t.transaction){const g="custom";d.transaction_info={...m,source:g}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof Od?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new Od(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Ln&&Lt.error("Error while sending event:",n)});Ln&&Lt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function Wyt(e,t){const n=`${t} must return \`null\` or a valid event.`;if(pI(e))return e.then(r=>{if(!By(r)&&r!==null)throw new Od(n);return r},r=>{throw new Od(`${t} rejected with ${r}`)});if(!By(e)&&e!==null)throw new Od(n);return e}function Qyt(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return Xhe(t)&&r?r(t,n):Khe(t)&&i?i(t,n):t}function Xhe(e){return e.type===void 0}function Khe(e){return e.type==="transaction"}function Yyt(e,t){t.debug===!0&&(Ln?Lt.enable():hI(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),fp().update(t.initialScope);const r=new e(t);Gyt(r),qyt(r)}function Gyt(e){const n=qu().getStackTop();n.client=e,n.scope.setClient(e)}function qyt(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const Zyt=30;function Jhe(e,t,n=Ebt(e.bufferSize||Zyt)){let r={};const i=s=>n.drain(s);function o(s){const a=[];if(PK(s,(d,p)=>{const m=LK(p);if(zbt(r,m)){const g=qK(d,p);e.recordDroppedEvent("ratelimit_backoff",m,g)}else a.push(d)}),a.length===0)return Uy();const l=R1(s[0],a),u=d=>{PK(l,(p,m)=>{const g=qK(p,m);e.recordDroppedEvent(d,LK(m),g)})},c=()=>t({body:Nbt(l,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&Ln&&Lt.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Vbt(r,d),d),d=>{throw u("network_error"),d});return n.add(c).then(d=>d,d=>{if(d instanceof Od)return Ln&&Lt.error("Skipped sending event because buffer is full."),u("queue_overflow"),Uy();throw d})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function qK(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function eme(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Z4})),version:Z4}),e._metadata=i}const Xyt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Kyt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],tme="InboundFilters",Jyt=(e={})=>({name:tme,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),o=e1t(e,i);return t1t(t,o)?null:t}}),nme=Jyt;om(tme,nme);function e1t(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Xyt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Kyt],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function t1t(e,t){return t.ignoreInternal&&a1t(e)?(Ln&&Lt.warn(`Event dropped due to being internal Sentry Error. -Event: ${qp(e)}`),!0):n1t(e,t.ignoreErrors)?(Ln&&Lt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${qp(e)}`),!0):r1t(e,t.ignoreTransactions)?(Ln&&Lt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${qp(e)}`),!0):i1t(e,t.denyUrls)?(Ln&&Lt.warn(`Event dropped due to being matched by \`denyUrls\` option. +`):Lt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Phe(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=p2}=r&&r.getOptions()||{},{userAgent:a}=Gr.navigator||{},s=Nhe({release:i,environment:o,user:n.getUser(),...a&&{userAgent:a},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&Rg(l,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=ZT().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);Ln&&Lt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function ZT(){return Gr.__SENTRY__=Gr.__SENTRY__||{extensions:{},hub:void 0},Gr}function BK(e){const t=ZT(),n=q$(t);return Vhe(t,e),n}function qu(){const e=ZT();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return w0t(e)}function Zg(){return qu().getIsolationScope()}function w0t(e=ZT()){return(!x0t(e)||q$(e).isOlderThan(jhe))&&Vhe(e,new zhe),q$(e)}function x0t(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function q$(e){return hhe("hub",()=>new zhe,e)}function Vhe(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Rv(e){return(e||qu()).getScope().getTransaction()}let UK=!1;function k0t(){UK||(UK=!0,xhe(Z$),khe(Z$))}function Z$(){const e=Rv();if(e){const t="internal_error";Ln&&Lt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Z$.tag="sentry_tracingErrorCallback";const Q0="sentry.source",y0="sentry.sample_rate",hk="sentry.op",v0="sentry.origin";var jK;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const o="not_found";e.NotFound=o;const a="resource_exhausted";e.ResourceExhausted=a;const s="invalid_argument";e.InvalidArgument=s;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const c="internal_error";e.InternalError=c;const d="unknown_error";e.UnknownError=d;const f="cancelled";e.Cancelled=f;const m="already_exists";e.AlreadyExists=m;const g="failed_precondition";e.FailedPrecondition=g;const v="aborted";e.Aborted=v;const S="out_of_range";e.OutOfRange=S;const O="data_loss";e.DataLoss=O})(jK||(jK={}));function C0t(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Uj(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=C0t(t);n!=="unknown_error"&&e.setStatus(n)}class Whe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class jj{constructor(t={}){this._traceId=t.traceId||xo(),this._spanId=t.spanId||xo().substring(16),this._startTime=t.startTimestamp||qT(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[v0]:t.origin||"manual",[hk]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp)}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[hk]}set op(t){this.setAttribute(hk,t)}get origin(){return this._attributes[v0]}set origin(t){this.setAttribute(v0,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Lhe:t0t}}startChild(t){const n=new jj({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=EA(this);if(n.transaction=r,Ln&&r){const i=t&&t.op||"< unknown op >",o=Ms(n).description||"< unknown name >",a=r.spanContext().spanId,s=`[Tracing] Starting '${i}' span on transaction '${o}' (${a}).`;Lt.log(s),this._logMessage=s}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Uj(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=EA(this);if(Ln&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Lt.log(r.replace("Starting","Finishing"))}this._endTime=m2(t)}toTraceparent(){return h2(this)}toContext(){return Au({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return Bj(this)}getSpanJSON(){return Au({data:this._getData(),description:this._name,op:this._attributes[hk],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[v0]})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class Hhe extends jj{constructor(t,n){super(t),this._measurements={},this._contexts={},this._hub=n||qu(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Q0]&&{source:this._attributes[Q0]},...this._attributes[y0]&&{sampleRate:this._attributes[y0]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(Q0,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Whe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=m2(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Au({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return SS(this)}setHub(t){this._hub=t}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(Ln&&Lt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){Ln&&Lt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&Ms(l).timestamp):[];if(this._trimEnd&&r.length>0){const l=r.map(u=>Ms(u).timestamp).filter(Boolean);this._endTime=l.reduce((u,c)=>u>c?u:c)}const{metadata:i}=this,{source:o}=i,a={contexts:{...this._contexts,trace:Bj(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:SS(this)},...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(Ln&&Lt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),Ln&&Lt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),a}}const mC={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},_0t="finishReason",Nb=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class A0t extends Whe{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Ms(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class R0t extends Hhe{constructor(t,n,r=mC.idleTimeout,i=mC.finalTimeout,o=mC.heartbeatInterval,a=!1,s=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=o,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Nb[4],this._autoFinishAllowed=!s,a&&(Ln&&Lt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Nb[3],this.end())},this._finalTimeout)}end(t){const n=m2(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(_0t,this._finishReason),this.spanRecorder){Ln&&Lt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Ms(r).timestamp||(r.setStatus("cancelled"),r.end(n),Ln&&Lt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:o}=Ms(r),a=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new A0t(n,r,this.spanContext().spanId,t),Ln&&Lt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Nb[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(Ln&&Lt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Nb[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Ln&&Lt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,Ln&&Lt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(Ln&&Lt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],Ln&&Lt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=qT();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Nb[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Ln&&Lt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Nb[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Ln&&Lt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function b2(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ha(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Qhe(e,t,n){if(!b2(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(y0,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(y0,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(y0,Number(r))):(r=1,e.setAttribute(y0,r)),I0t(r)?r?(e.sampled=Math.random()1?(Ln&&Lt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function D0t(){const t=this.getScope().getSpan();return t?{"sentry-trace":h2(t)}:{}}function N0t(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(Ln&&Lt.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter. +The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let a=new Hhe(e,this);return a=Qhe(a,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),a.isRecording()&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function zK(e,t,n,r,i,o,a,s=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let c=new R0t(t,e,n,r,a,i,s);return c=Qhe(c,u,{parentSampled:t.parentSampled,transactionContext:t,...o}),c.isRecording()&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",c),c}function P0t(){const e=ZT();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=N0t),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=D0t),k0t())}function Yhe(e){if(!b2())return;const t=M0t(e),n=qu(),r=e.scope?e.scope.getSpan():L0t();if(!(e.onlyIfParent&&!r)){if(r)return r.startChild(t);{const o=Zg(),a=fp(),{traceId:s,dsc:l,parentSpanId:u,sampled:c}={...o.getPropagationContext(),...a.getPropagationContext()};return n.startTransaction({traceId:s,parentSpanId:u,parentSampled:c,...t,metadata:{dynamicSamplingContext:l,...t.metadata}})}}}function L0t(){return fp().getSpan()}function M0t(e){if(e.startTime){const t={...e};return t.startTimestamp=m2(e.startTime),delete t.startTime,t}return e}function $0t(e,t,n){const r=Rv();r&&r.setMeasurement(e,t,n)}function F0t(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function B0t(e,t,n,r){const i=Dhe(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:YT(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Av(o,[a])}function U0t(e,t,n,r){const i=Dhe(n),o=e.type&&e.type!=="replay_event"?e.type:"event";F0t(e,n&&n.sdk);const a=Qbt(e,i,r,t);return delete e.sdkProcessingMetadata,Av(a,[[{type:o},e]])}const j0t="7";function z0t(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function V0t(e){return`${z0t(e)}${e.projectId}/envelope/`}function W0t(e,t){return tbt({sentry_key:e.publicKey,sentry_version:j0t,...t&&{sentry_client:`${t.name}/${t.version}`}})}function H0t(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${V0t(e)}?${W0t(e,r)}`}const VK=[];function Q0t(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Y0t(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=She(n(t)):r=t;const i=Q0t(r),o=q0t(i,a=>a.name==="Debug");if(o!==-1){const[a]=i.splice(o,1);i.push(a)}return i}function G0t(e,t){const n={};return t.forEach(r=>{r&&Ghe(e,r,n)}),n}function WK(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Ghe(e,t,n){if(n[t.name]){Ln&&Lt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,VK.indexOf(t.name)===-1&&(t.setupOnce(Jbt,qu),VK.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((o,a)=>r(o,a,e),{id:t.name});e.addEventProcessor(i)}Ln&&Lt.log(`Integration installed: ${t.name}`)}function q0t(e,t){for(let n=0;n0?`|#${r.map(([o,a])=>`${o}:${a}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} +`}return t}function X0t(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=YT(t));const o=K0t(e);return Av(i,[o])}function K0t(e){const t=Z0t(e);return[{type:"statsd",length:t.length},t]}const HK="Not capturing exception because it's already been captured.";class J0t{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=ebt(t.dsn):Ln&&Lt.warn("No DSN provided, client will not send events."),this._dsn){const n=H0t(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(kK(t)){Ln&&Lt.log(HK);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(t,n,r,i){let o=r&&r.event_id;const a=Ij(t)?t:String(t),s=Dj(t)?this.eventFromMessage(a,n,r):this.eventFromException(t,r);return this._process(s.then(l=>this._captureEvent(l,r,i)).then(l=>{o=l})),o}captureEvent(t,n,r){if(n&&n.originalException&&kK(n.originalException)){Ln&&Lt.log(HK);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(o=>{i=o})),i}captureSession(t){typeof t.release!="string"?Ln&&Lt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Rg(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):Uy(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Ln&&Lt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];Ghe(this,t,this._integrations),n||WK(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=U0t(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=jbt(r,Wbt(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=B0t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;Ln&&Lt.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}captureAggregateMetrics(t){Ln&&Lt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=X0t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=G0t(this,t),WK(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const l of o){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(Rg(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Ml(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=Zg()){const o=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a.length>0&&(n.integrations=a),this.emit("preprocessEvent",t,n),r0t(o,t,n,r,this,i).then(s=>{if(s===null)return s;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&l){const{traceId:c,spanId:d,parentSpanId:f,dsc:m}=l;s.contexts={trace:{trace_id:c,span_id:d,parent_span_id:f},...s.contexts};const g=m||g2(c,this,r);s.sdkProcessingMetadata={dynamicSamplingContext:g,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(Ln){const o=i;o.logLevel==="log"?Lt.log(o.message):Lt.warn(o)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i,a=Zhe(t),s=qhe(t),l=t.type||"error",u=`before send for type \`${l}\``;if(s&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),Mj(new Ed(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const c=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",c,t),new Ed("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const m=tyt(i,d,n);return eyt(m,u)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",c,t),new Ed(`${u} returned \`null\`, will not send event.`,"log");const f=r&&r.getSession();!a&&f&&this._updateSessionFromEvent(f,d);const m=d.transaction_info;if(a&&m&&d.transaction!==t.transaction){const g="custom";d.transaction_info={...m,source:g}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof Ed?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new Ed(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Ln&&Lt.error("Error while sending event:",n)});Ln&&Lt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function eyt(e,t){const n=`${t} must return \`null\` or a valid event.`;if(d2(e))return e.then(r=>{if(!By(r)&&r!==null)throw new Ed(n);return r},r=>{throw new Ed(`${t} rejected with ${r}`)});if(!By(e)&&e!==null)throw new Ed(n);return e}function tyt(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return qhe(t)&&r?r(t,n):Zhe(t)&&i?i(t,n):t}function qhe(e){return e.type===void 0}function Zhe(e){return e.type==="transaction"}function nyt(e,t){t.debug===!0&&(Ln?Lt.enable():f2(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),fp().update(t.initialScope);const r=new e(t);ryt(r),iyt(r)}function ryt(e){const n=qu().getStackTop();n.client=e,n.scope.setClient(e)}function iyt(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const oyt=30;function Xhe(e,t,n=Rbt(e.bufferSize||oyt)){let r={};const i=a=>n.drain(a);function o(a){const s=[];if(IK(a,(d,f)=>{const m=DK(f);if(Xbt(r,m)){const g=QK(d,f);e.recordDroppedEvent("ratelimit_backoff",m,g)}else s.push(d)}),s.length===0)return Uy();const l=Av(a[0],s),u=d=>{IK(l,(f,m)=>{const g=QK(f,m);e.recordDroppedEvent(d,DK(m),g)})},c=()=>t({body:zbt(l,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&Ln&&Lt.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Kbt(r,d),d),d=>{throw u("network_error"),d});return n.add(c).then(d=>d,d=>{if(d instanceof Ed)return Ln&&Lt.error("Skipped sending event because buffer is full."),u("queue_overflow"),Uy();throw d})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function QK(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Khe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:G$})),version:G$}),e._metadata=i}const ayt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],syt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Jhe="InboundFilters",lyt=(e={})=>({name:Jhe,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),o=uyt(e,i);return cyt(t,o)?null:t}}),eme=lyt;om(Jhe,eme);function uyt(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ayt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:syt],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function cyt(e,t){return t.ignoreInternal&&gyt(e)?(Ln&&Lt.warn(`Event dropped due to being internal Sentry Error. +Event: ${qp(e)}`),!0):dyt(e,t.ignoreErrors)?(Ln&&Lt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${qp(e)}`),!0):fyt(e,t.ignoreTransactions)?(Ln&&Lt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${qp(e)}`),!0):pyt(e,t.denyUrls)?(Ln&&Lt.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${qp(e)}. -Url: ${wA(e)}`),!0):o1t(e,t.allowUrls)?!1:(Ln&&Lt.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Url: ${SA(e)}`),!0):hyt(e,t.allowUrls)?!1:(Ln&&Lt.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${qp(e)}. -Url: ${wA(e)}`),!0)}function n1t(e,t){return e.type||!t||!t.length?!1:s1t(e).some(n=>YT(n,t))}function r1t(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?YT(n,t):!1}function i1t(e,t){if(!t||!t.length)return!1;const n=wA(e);return n?YT(n,t):!1}function o1t(e,t){if(!t||!t.length)return!0;const n=wA(e);return n?YT(n,t):!0}function s1t(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Ln&&t.length===0&&Lt.error(`Could not extract message for event ${qp(e)}`),t}function a1t(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function l1t(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function wA(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?l1t(t):null}catch{return Ln&&Lt.error(`Cannot extract url for event ${qp(e)}`),null}}let ZK;const rme="FunctionToString",XK=new WeakMap,u1t=()=>({name:rme,setupOnce(){ZK=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=$j(this),n=XK.has(Ws())&&t!==void 0?t:this;return ZK.apply(n,e)}}catch{}},setup(e){XK.set(e,!0)}}),ime=u1t;om(rme,ime);const Zi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yr=Gr;function c1t(){Yr&&Yr.document?Yr.document.addEventListener("visibilitychange",()=>{const e=I1();if(Yr.document.hidden&&e){const t="cancelled",{op:n,status:r}=Ma(e);Zi&&Lt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):Zi&&Lt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Wj=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},d1t=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,f1t=()=>{const e=Yr.performance.timing,t=Yr.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},ome=()=>Yr.__WEB_VITALS_POLYFILL__?Yr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||f1t()):Yr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],sme=()=>{const e=ome();return e&&e.activationStart||0},Qj=(e,t)=>{const n=ome();let r="navigate";return n&&(Yr.document.prerendering||sme()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:d1t(),navigationType:r}},OI=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},EI=(e,t)=>{const n=r=>{(r.type==="pagehide"||Yr.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},p1t=e=>{const t=Qj("CLS",0);let n,r=0,i=[];const o=a=>{a.forEach(l=>{if(!l.hadRecentInput){const u=i[0],c=i[i.length-1];r&&i.length!==0&&l.startTime-c.startTime<1e3&&l.startTime-u.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=OI("layout-shift",o);if(s){n=Wj(e,t);const a=()=>{o(s.takeRecords()),n(!0)};return EI(a),a}};let yC=-1;const h1t=()=>Yr.document.visibilityState==="hidden"&&!Yr.document.prerendering?0:1/0,m1t=()=>{EI(({timeStamp:e})=>{yC=e},!0)},Yj=()=>(yC<0&&(yC=h1t(),m1t()),{get firstHiddenTime(){return yC}}),g1t=e=>{const t=Yj(),n=Qj("FID");let r;const i=a=>{a.startTime{a.forEach(i)},s=OI("first-input",o);r=Wj(e,n),s&&EI(()=>{o(s.takeRecords()),s.disconnect()},!0)},KK={},b1t=e=>{const t=Yj(),n=Qj("LCP");let r;const i=s=>{const a=s[s.length-1];if(a){const l=Math.max(a.startTime-sme(),0);l{KK[n.id]||(i(o.takeRecords()),o.disconnect(),KK[n.id]=!0,r(!0))};return["keydown","click"].forEach(a=>{addEventListener(a,s,{once:!0,capture:!0})}),EI(s,!0),s}},eE={},xA={};let ame,lme,ume;function y1t(e,t=!1){return qj("cls",e,E1t,ame,t)}function v1t(e,t=!1){return qj("lcp",e,T1t,ume,t)}function O1t(e){return qj("fid",e,S1t,lme)}function Gj(e,t){return cme(e,t),xA[e]||(w1t(e),xA[e]=!0),dme(e,t)}function SI(e,t){const n=eE[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){Zi&&Lt.error(`Error while triggering instrumentation handler. +Url: ${SA(e)}`),!0)}function dyt(e,t){return e.type||!t||!t.length?!1:myt(e).some(n=>QT(n,t))}function fyt(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?QT(n,t):!1}function pyt(e,t){if(!t||!t.length)return!1;const n=SA(e);return n?QT(n,t):!1}function hyt(e,t){if(!t||!t.length)return!0;const n=SA(e);return n?QT(n,t):!0}function myt(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Ln&&t.length===0&&Lt.error(`Could not extract message for event ${qp(e)}`),t}function gyt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function byt(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function SA(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?byt(t):null}catch{return Ln&&Lt.error(`Cannot extract url for event ${qp(e)}`),null}}let YK;const tme="FunctionToString",GK=new WeakMap,yyt=()=>({name:tme,setupOnce(){YK=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Pj(this),n=GK.has(Ha())&&t!==void 0?t:this;return YK.apply(n,e)}}catch{}},setup(e){GK.set(e,!0)}}),nme=yyt;om(tme,nme);const qi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yr=Gr;function vyt(){Yr&&Yr.document?Yr.document.addEventListener("visibilitychange",()=>{const e=Rv();if(Yr.document.hidden&&e){const t="cancelled",{op:n,status:r}=Ms(e);qi&&Lt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):qi&&Lt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const zj=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Oyt=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Eyt=()=>{const e=Yr.performance.timing,t=Yr.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},rme=()=>Yr.__WEB_VITALS_POLYFILL__?Yr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Eyt()):Yr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ime=()=>{const e=rme();return e&&e.activationStart||0},Vj=(e,t)=>{const n=rme();let r="navigate";return n&&(Yr.document.prerendering||ime()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Oyt(),navigationType:r}},y2=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},v2=(e,t)=>{const n=r=>{(r.type==="pagehide"||Yr.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Syt=e=>{const t=Vj("CLS",0);let n,r=0,i=[];const o=s=>{s.forEach(l=>{if(!l.hadRecentInput){const u=i[0],c=i[i.length-1];r&&i.length!==0&&l.startTime-c.startTime<1e3&&l.startTime-u.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},a=y2("layout-shift",o);if(a){n=zj(e,t);const s=()=>{o(a.takeRecords()),n(!0)};return v2(s),s}};let gC=-1;const Tyt=()=>Yr.document.visibilityState==="hidden"&&!Yr.document.prerendering?0:1/0,wyt=()=>{v2(({timeStamp:e})=>{gC=e},!0)},Wj=()=>(gC<0&&(gC=Tyt(),wyt()),{get firstHiddenTime(){return gC}}),xyt=e=>{const t=Wj(),n=Vj("FID");let r;const i=s=>{s.startTime{s.forEach(i)},a=y2("first-input",o);r=zj(e,n),a&&v2(()=>{o(a.takeRecords()),a.disconnect()},!0)},qK={},kyt=e=>{const t=Wj(),n=Vj("LCP");let r;const i=a=>{const s=a[a.length-1];if(s){const l=Math.max(s.startTime-ime(),0);l{qK[n.id]||(i(o.takeRecords()),o.disconnect(),qK[n.id]=!0,r(!0))};return["keydown","click"].forEach(s=>{addEventListener(s,a,{once:!0,capture:!0})}),v2(a,!0),a}},J1={},TA={};let ome,ame,sme;function Cyt(e,t=!1){return Qj("cls",e,Ryt,ome,t)}function _yt(e,t=!1){return Qj("lcp",e,Dyt,sme,t)}function Ayt(e){return Qj("fid",e,Iyt,ame)}function Hj(e,t){return lme(e,t),TA[e]||(Nyt(e),TA[e]=!0),ume(e,t)}function O2(e,t){const n=J1[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){qi&&Lt.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${np(r)} -Error:`,i)}}function E1t(){return p1t(e=>{SI("cls",{metric:e}),ame=e})}function S1t(){return g1t(e=>{SI("fid",{metric:e}),lme=e})}function T1t(){return b1t(e=>{SI("lcp",{metric:e}),ume=e})}function qj(e,t,n,r,i=!1){cme(e,t);let o;return xA[e]||(o=n(),xA[e]=!0),r&&t({metric:r}),dme(e,t,i?o:void 0)}function w1t(e){const t={};e==="event"&&(t.durationThreshold=0),OI(e,n=>{SI(e,{entries:n})},t)}function cme(e,t){eE[e]=eE[e]||[],eE[e].push(t)}function dme(e,t,n){return()=>{n&&n();const r=eE[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function t3(e){return typeof e=="number"&&isFinite(e)}function jy(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const x1t=2147483647;function Qo(e){return e/1e3}function fme(){return Yr&&Yr.addEventListener&&Yr.performance}let JK=0,vo={},ld,tE;function k1t(){const e=fme();if(e&&Bd){e.mark&&Yr.performance.mark("sentry-tracing-init");const t=I1t(),n=A1t(),r=R1t();return()=>{t(),n(),r()}}return()=>{}}function C1t(){Gj("longtask",({entries:e})=>{for(const t of e){const n=I1();if(!n)return;const r=Qo(Bd+t.startTime),i=Qo(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function _1t(){Gj("event",({entries:e})=>{for(const t of e){const n=I1();if(!n)return;if(t.name==="click"){const r=Qo(Bd+t.startTime),i=Qo(t.duration),o={description:OS(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=bhe(t.target);s&&(o.attributes={"ui.component_name":s}),n.startChild(o)}}})}function A1t(){return y1t(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Zi&&Lt.log("[Measurements] Adding CLS"),vo.cls={value:e.value,unit:""},tE=t)},!0)}function R1t(){return v1t(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Zi&&Lt.log("[Measurements] Adding LCP"),vo.lcp={value:e.value,unit:"millisecond"},ld=t)},!0)}function I1t(){return O1t(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Qo(Bd),r=Qo(t.startTime);Zi&&Lt.log("[Measurements] Adding FID"),vo.fid={value:e.value,unit:"millisecond"},vo["mark.fid"]={value:n+r,unit:"second"}})}function D1t(e){const t=fme();if(!t||!Yr.performance.getEntries||!Bd)return;Zi&&Lt.log("[Tracing] Adding & adjusting spans using Performance API");const n=Qo(Bd),r=t.getEntries();let i,o;const{op:s,start_timestamp:a}=Ma(e);if(r.slice(JK).forEach(l=>{const u=Qo(l.startTime),c=Qo(l.duration);if(!(e.op==="navigation"&&a&&n+u{if(!vo[u]||!a||n>=a)return;const c=vo[u].value,d=n+Qo(c),p=Math.abs((d-a)*1e3),m=p-c;Zi&&Lt.log(`[Measurements] Normalized ${u} from ${c} to ${p} (${m})`),vo[u].value=p});const l=vo["mark.fid"];l&&vo.fid&&(jy(e,{description:"first input delay",endTimestamp:l.value+Qo(vo.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete vo["mark.fid"]),"fcp"in vo||delete vo.cls,Object.keys(vo).forEach(u=>{_yt(u,vo[u].value,vo[u].unit)}),F1t(e)}ld=void 0,tE=void 0,vo={}}function N1t(e,t,n,r,i){const o=i+n,s=o+r;return jy(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o}),o}function P1t(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{bk(e,t,r,n)}),bk(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),bk(e,t,"fetch",n,"cache","domainLookupStart"),bk(e,t,"domainLookup",n,"DNS"),L1t(e,t,n)}function bk(e,t,n,r,i,o){const s=o?t[o]:t[`${n}End`],a=t[`${n}Start`];!a||!s||jy(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+Qo(a),endTimestamp:r+Qo(s)})}function L1t(e,t,n){t.responseEnd&&(jy(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Qo(t.requestStart),endTimestamp:n+Qo(t.responseEnd)}),jy(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Qo(t.responseStart),endTimestamp:n+Qo(t.responseEnd)}))}function M1t(e,t,n,r,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=gC(n),a={};n3(a,t,"transferSize","http.response_transfer_size"),n3(a,t,"encodedBodySize","http.response_content_length"),n3(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(Yr.location.origin);const l=o+r,u=l+i;jy(e,{description:n.replace(Yr.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:a})}function $1t(e){const t=Yr.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),t3(n.rtt)&&(vo["connection.rtt"]={value:n.rtt,unit:"millisecond"})),t3(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),t3(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function F1t(e){ld&&(Zi&&Lt.log("[Measurements] Adding LCP Data"),ld.element&&e.setTag("lcp.element",OS(ld.element)),ld.id&&e.setTag("lcp.id",ld.id),ld.url&&e.setTag("lcp.url",ld.url.trim().slice(0,200)),e.setTag("lcp.size",ld.size)),tE&&tE.sources&&(Zi&&Lt.log("[Measurements] Adding CLS Data"),tE.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,OS(t.node))))}function n3(e,t,n,r){const i=t[n];i!=null&&i0&&p.setAttribute("http.response_content_length",g)}}else e.error&&p.setStatus("internal_error");p.end(),delete r[d]}return}const s=fp(),a=Ws(),{method:l,url:u}=e.fetchData,c=o?qhe({name:`${l} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":l,[vb]:i},op:"http.client"}):void 0;if(c&&(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c),n(e.fetchData.url)&&a){const d=e.args[0];e.args[1]=e.args[1]||{};const p=e.args[1];p.headers=j1t(d,a,s,p,c)}return c}function j1t(e,t,n,r,i){const o=i||n.getSpan(),s=Zg(),{traceId:a,spanId:l,sampled:u,dsc:c}={...s.getPropagationContext(),...n.getPropagationContext()},d=o?gI(o):Uj(a,l,u),p=Nhe(c||(o?TS(o):yI(a,t,n))),m=r.headers||(typeof Request<"u"&&tp(e,Request)?e.headers:void 0);if(m)if(typeof Headers<"u"&&tp(m,Headers)){const g=new Headers(m);return g.append("sentry-trace",d),p&&g.append(G4,p),g}else if(Array.isArray(m)){const g=[...m,["sentry-trace",d]];return p&&g.push([G4,p]),g}else{const g="baggage"in m?m.baggage:void 0,v=[];return Array.isArray(g)?v.push(...g):g&&v.push(g),p&&v.push(p),{...m,"sentry-trace":d,baggage:v.length>0?v.join(","):void 0}}else return{"sentry-trace":d,baggage:p}}const J4=["localhost",/^\/(?!\/)/],e5={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:J4,tracePropagationTargets:J4};function z1t(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s}={traceFetch:e5.traceFetch,traceXHR:e5.traceXHR,...e},a=typeof o=="function"?o:c=>!0,l=c=>Q1t(c,r||i),u={};t&&khe(c=>{const d=U1t(c,a,l,u);s&&d&&eJ(d)}),n&&Ahe(c=>{const d=Y1t(c,a,l,u);s&&d&&eJ(d)})}function V1t(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function eJ(e){const{url:t}=Ma(e).data||{};if(!t||typeof t!="string")return;const n=Gj("resource",({entries:r})=>{r.forEach(i=>{V1t(i)&&i.name.endsWith(t)&&(W1t(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function H1t(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function rd(e=0){return((Bd||performance.timeOrigin)+e)/1e3}function W1t(e){const{name:t,version:n}=H1t(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Bd?[...r,["http.request.redirect_start",rd(e.redirectStart)],["http.request.fetch_start",rd(e.fetchStart)],["http.request.domain_lookup_start",rd(e.domainLookupStart)],["http.request.domain_lookup_end",rd(e.domainLookupEnd)],["http.request.connect_start",rd(e.connectStart)],["http.request.secure_connection_start",rd(e.secureConnectionStart)],["http.request.connection_end",rd(e.connectEnd)],["http.request.request_start",rd(e.requestStart)],["http.request.response_start",rd(e.responseStart)],["http.request.response_end",rd(e.responseEnd)]]:r}function Q1t(e,t){return YT(e,t||J4)}function Y1t(e,t,n,r){const i=e.xhr,o=i&&i[bb];if(!vI()||!i||i.__sentry_own_request__||!o)return;const s=t(o.url);if(e.endTimestamp&&s){const d=i.__sentry_xhr_span_id__;if(!d)return;const p=r[d];p&&o.status_code!==void 0&&(Vj(p,o.status_code),p.end(),delete r[d]);return}const a=fp(),l=Zg(),u=s?qhe({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,url:o.url,[vb]:"auto.http.browser"},op:"http.client"}):void 0;u&&(i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u);const c=Ws();if(i.setRequestHeader&&n(o.url)&&c){const{traceId:d,spanId:p,sampled:m,dsc:g}={...l.getPropagationContext(),...a.getPropagationContext()},v=u?gI(u):Uj(d,p,m),E=Nhe(g||(u?TS(u):yI(d,c,a)));G1t(i,v,E)}return u}function G1t(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(G4,n)}catch{}}function q1t(e,t=!0,n=!0){if(!Yr||!Yr.location){Zi&&Lt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=Yr.location.href,i;t&&(i=e({name:Yr.location.pathname,startTimestamp:Bd?Bd/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Fj(({to:o,from:s})=>{if(s===void 0&&r&&r.indexOf(o)!==-1){r=void 0;return}s!==o&&(r=void 0,i&&(Zi&&Lt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:Yr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const Z1t="BrowserTracing",X1t={...bC,markBackgroundTransactions:!0,routingInstrumentation:q1t,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...e5};class K1t{constructor(t){this.name=Z1t,this._hasSetTracePropagationTargets=!1,xyt(),Zi&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...X1t,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=k1t(),this.options.enableLongTask&&C1t(),this.options._experiments.enableInteractions&&_1t()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),o=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:a,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:c,traceXHR:d,shouldCreateSpanForRequest:p,enableHTTPTimings:m,_experiments:g}=this.options,v=o&&o.tracePropagationTargets,E=v||this.options.tracePropagationTargets;Zi&&this._hasSetTracePropagationTargets&&v&&Lt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(O=>{const S=this._createRouteTransaction(O);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(S,O,n),S},l,a),u&&c1t(),g.enableInteractions&&this._registerInteractionListener(),z1t({traceFetch:c,traceXHR:d,tracePropagationTargets:E,shouldCreateSpanForRequest:p,enableHTTPTimings:m})}_createRouteTransaction(t){if(!this._getCurrentHub){Zi&&Lt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:o,heartbeatInterval:s}=this.options,a=t.op==="pageload";let l;if(a){const m=a?tJ("sentry-trace"):"",g=a?tJ("baggage"):void 0,{traceparentData:v,dynamicSamplingContext:E}=Ibt(m,g);l={...t,...v,metadata:{...t.metadata,dynamicSamplingContext:v&&!E?{}:E},trimEnd:!0}}else l={...t,trimEnd:!0};const u=typeof r=="function"?r(l):l,c=u===void 0?{...l,sampled:!1}:u;c.metadata=c.name!==l.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRouteName=c.name,this._latestRouteSource=J1t(c),c.sampled===!1&&Zi&&Lt.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),Zi&&Lt.log(`[Tracing] Starting ${c.op} transaction on scope`);const{location:d}=Yr,p=WK(n,c,i,o,!0,{location:d},s,a);return a&&(Yr.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Yr.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(Yr.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(m=>{this._collectWebVitals(),D1t(m)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,s="ui.action.click",a=I1();if(a&&a.op&&["navigation","pageload"].includes(a.op)){Zi&&Lt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){Zi&&Lt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){Zi&&Lt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=Yr,c={name:this._latestRouteName,op:s,trimEnd:!0,data:{[Qb]:this._latestRouteSource||"url"}};t=WK(l,c,r,i,!0,{location:u},o)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function tJ(e){const t=F0t(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function J1t(e){const t=e.attributes&&e.attributes[Qb],n=e.data&&e.data[Qb],r=e.metadata&&e.metadata.source;return t||n||r}const Zr=Gr;let t5=0;function pme(){return t5>0}function evt(){t5++,setTimeout(()=>{t5--})}function zy(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if($j(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(s=>zy(s,t));return e.apply(this,o)}catch(o){throw evt(),syt(s=>{s.addEventProcessor(a=>(t.mechanism&&(j4(a,void 0,void 0),SS(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),oyt(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}vhe(r,e),ES(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const $f=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function hme(e,t){const n=Zj(e,t),r={type:t&&t.name,value:ivt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function tvt(e,t,n,r){const i=Ws(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:fI(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:avt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Rhe(t,o)}};if(n){const a=Zj(e,n);a.length&&(s.exception.values[0].stacktrace={frames:a})}return s}function r3(e,t){return{exception:{values:[hme(e,t)]}}}function Zj(e,t){const n=t.stacktrace||t.stack||"",r=rvt(t);try{return e(n,r)}catch{}return[]}const nvt=/Minified React error #\d+;/i;function rvt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(nvt.test(e.message))return 1}return 0}function ivt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function ovt(e,t,n,r){const i=n&&n.syntheticException||void 0,o=Xj(e,t,i,r);return SS(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Uy(o)}function svt(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,s=n5(e,t,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Uy(s)}function Xj(e,t,n,r,i){let o;if(Nj(t)&&t.error)return r3(e,t.error);if(OK(t)||_0t(t)){const s=t;if("stack"in t)o=r3(e,t);else{const a=s.name||(OK(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=n5(e,l,n,r),j4(o,l)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return phe(t)?r3(e,t):By(t)||fI(t)?(o=tvt(e,t,n,i),SS(o,{synthetic:!0}),o):(o=n5(e,t,n,r),j4(o,`${t}`,void 0),SS(o,{synthetic:!0}),o)}function n5(e,t,n,r){const i={};if(r&&n){const o=Zj(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(Pj(t)){const{__sentry_template_string__:o,__sentry_template_values__:s}=t;return i.logentry={message:o,params:s},i}return i.message=t,i}function avt(e,{isUnhandledRejection:t}){const n=Y0t(e),r=t?"promise rejection":"exception";return Nj(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:fI(e)?`Event \`${lvt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function lvt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function uvt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:GT(r)}},o=cvt(e);return R1(i,[o])}function cvt(e){return[{type:"user_report"},e]}class dvt extends Hyt{constructor(t){const n=Zr.SENTRY_SDK_SOURCE||mbt();eme(t,"browser",["browser"],n),super(t),t.sendClientReports&&Zr.document&&Zr.document.addEventListener("visibilitychange",()=>{Zr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return ovt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return svt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){$f&&Lt.warn("SDK not enabled, will not capture user feedback.");return}const n=uvt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){$f&&Lt.log("No outcomes to send");return}if(!this._dsn){$f&&Lt.log("No dsn provided, will not send outcomes");return}$f&&Lt.log("Sending outcomes:",t);const n=Fbt(t,this._options.tunnel&>(this._dsn));this._sendEnvelope(n)}}let uO;function fvt(){if(uO)return uO;if(W4(Zr.fetch))return uO=Zr.fetch.bind(Zr);const e=Zr.document;let t=Zr.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){$f&&Lt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return uO=t.bind(Zr)}function pvt(){uO=void 0}function hvt(e,t=fvt()){let n=0,r=0;function i(o){const s=o.body.length;n+=s,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return pvt(),n-=s,r--,Bj(l)}}return Jhe(e,i)}const mvt=4;function gvt(e){function t(n){return new Ml((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===mvt&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&o.setRequestHeader(s,e.headers[s]);o.send(n.body)})}return Jhe(e,t)}const TI="?",bvt=30,yvt=40,vvt=50;function Kj(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Ovt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Evt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Svt=e=>{const t=Ovt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=Evt.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,i]=mme(t[1]||TI,t[2]);return Kj(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Tvt=[bvt,Svt],wvt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xvt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,kvt=e=>{const t=wvt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=xvt.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||TI;return[i,r]=mme(i,r),Kj(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Cvt=[vvt,kvt],_vt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Avt=e=>{const t=_vt.exec(e);return t?Kj(t[2],t[1]||TI,+t[3],t[4]?+t[4]:void 0):void 0},Rvt=[yvt,Avt],Ivt=[Tvt,Cvt,Rvt],Dvt=She(...Ivt),mme=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:TI,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},yk=1024,gme="Breadcrumbs",Nvt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:gme,setupOnce(){},setup(n){t.console&&X0t(Mvt(n)),t.dom&&ebt(Lvt(n,t.dom)),t.xhr&&Ahe($vt(n)),t.fetch&&khe(Fvt(n)),t.history&&Fj(Bvt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Pvt(n))}}},bme=Nvt;om(gme,bme);function Pvt(e){return function(n){Ws()===e&&Ig({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:qp(n)},{event:n})}}function Lvt(e,t){return function(r){if(Ws()!==e)return;let i,o,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>yk&&($f&&Lt.warn(`\`dom.maxStringLength\` cannot exceed ${yk}, but a value of ${a} was configured. Sentry will use ${yk} instead.`),a=yk),typeof s=="string"&&(s=[s]);try{const u=r.event,c=Uvt(u)?u.target:u;i=OS(c,{keyAttrs:s,maxStringLength:a}),o=bhe(c)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};o&&(l.data={"ui.component_name":o}),Ig(l,{event:r.event,name:r.name,global:r.global})}}function Mvt(e){return function(n){if(Ws()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Tbt(n.level),message:EK(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${EK(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ig(r,{input:n.args,level:n.level})}}function $vt(e){return function(n){if(Ws()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[bb];if(!r||!i||!o)return;const{method:s,url:a,status_code:l,body:u}=o,c={method:s,url:a,status_code:l},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};Ig({category:"xhr",data:c,type:"http"},d)}}function Fvt(e){return function(n){if(Ws()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};Ig({category:"fetch",data:o,level:"error",type:"http"},s)}else{const o=n.response,s={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:i};Ig({category:"fetch",data:s,type:"http"},a)}}}function Bvt(e){return function(n){if(Ws()!==e)return;let r=n.from,i=n.to;const o=gC(Zr.location.href);let s=r?gC(r):void 0;const a=gC(i);(!s||!s.path)&&(s=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),Ig({category:"navigation",data:{from:r,to:i}})}}function Uvt(e){return!!e&&!!e.target}const yme="Dedupe",jvt=()=>{let e;return{name:yme,setupOnce(){},processEvent(t){if(t.type)return t;try{if(zvt(t,e))return $f&&Lt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},vme=jvt;om(yme,vme);function zvt(e,t){return t?!!(Vvt(e,t)||Hvt(e,t)):!1}function Vvt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Eme(e,t)||!Ome(e,t))}function Hvt(e,t){const n=nJ(t),r=nJ(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Eme(e,t)||!Ome(e,t))}function Ome(e,t){let n=rJ(e),r=rJ(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Sme,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Qvt(n),iJ("onerror")),t.onunhandledrejection&&(Yvt(n),iJ("onunhandledrejection"))}}},Tme=Wvt;om(Sme,Tme);function Qvt(e){Che(t=>{const{stackParser:n,attachStacktrace:r}=xme();if(Ws()!==e||pme())return;const{msg:i,url:o,line:s,column:a,error:l}=t,u=l===void 0&&Md(i)?Zvt(i,o,s,a):wme(Xj(n,l||i,void 0,r,!1),o,s,a);u.level="error",Bhe(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Yvt(e){_he(t=>{const{stackParser:n,attachStacktrace:r}=xme();if(Ws()!==e||pme())return;const i=Gvt(t),o=Lj(i)?qvt(i):Xj(n,i,void 0,r,!0);o.level="error",Bhe(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Gvt(e){if(Lj(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function qvt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Zvt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Nj(e)?e.message:e,s="Error";const a=o.match(i);return a&&(s=a[1],o=a[2]),wme({exception:{values:[{type:s,value:o}]}},t,n,r)}function wme(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=Md(t)&&t.length>0?t:$0t();return l.length===0&&l.push({colno:u,filename:d,function:"?",in_app:!0,lineno:c}),e}function iJ(e){$f&&Lt.log(`Global Handler attached: ${e}`)}function xme(){const e=Ws();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const kme="HttpContext",Xvt=()=>({name:kme,setupOnce(){},preprocessEvent(e){if(!Zr.navigator&&!Zr.location&&!Zr.document)return;const t=e.request&&e.request.url||Zr.location&&Zr.location.href,{referrer:n}=Zr.document||{},{userAgent:r}=Zr.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}),Cme=Xvt;om(kme,Cme);const Kvt="cause",Jvt=5,_me="LinkedErrors",eOt=(e={})=>{const t=e.limit||Jvt,n=e.key||Kvt;return{name:_me,setupOnce(){},preprocessEvent(r,i,o){const s=o.getOptions();N0t(hme,s.stackParser,s.maxValueLength,n,t,r,i)}}},Ame=eOt;om(_me,Ame);const tOt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Rme="TryCatch",nOt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Rme,setupOnce(){t.setTimeout&&Fs(Zr,"setTimeout",oJ),t.setInterval&&Fs(Zr,"setInterval",oJ),t.requestAnimationFrame&&Fs(Zr,"requestAnimationFrame",rOt),t.XMLHttpRequest&&"XMLHttpRequest"in Zr&&Fs(XMLHttpRequest.prototype,"send",iOt);const n=t.eventTarget;n&&(Array.isArray(n)?n:tOt).forEach(oOt)}}},Ime=nOt;om(Rme,Ime);function oJ(e){return function(...t){const n=t[0];return t[0]=zy(n,{mechanism:{data:{function:np(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function rOt(e){return function(t){return e.apply(this,[zy(t,{mechanism:{data:{function:"requestAnimationFrame",handler:np(e)},handled:!1,type:"instrument"}})])}}function iOt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Fs(n,i,function(o){const s={mechanism:{data:{function:i,handler:np(o)},handled:!1,type:"instrument"}},a=$j(o);return a&&(s.mechanism.data.handler=np(a)),zy(o,s)})}),e.apply(this,t)}}function oOt(e){const t=Zr,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Fs(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=zy(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:np(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,zy(o,{mechanism:{data:{function:"addEventListener",handler:np(o),target:e},handled:!1,type:"instrument"}}),s])}}),Fs(n,"removeEventListener",function(r){return function(i,o,s){const a=o;try{const l=a&&a.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,a,s)}}))}const sOt=[nme(),ime(),Ime(),bme(),Tme(),Ame(),vme(),Cme()];function aOt(e){return[...sOt]}function lOt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=aOt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Zr.SENTRY_RELEASE&&Zr.SENTRY_RELEASE.id&&(e.release=Zr.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:q0t(e.stackParser||Dvt),integrations:Fyt(e),transport:e.transport||(xhe()?hvt:gvt)};Yyt(dvt,t),e.autoSessionTracking&&uOt()}function uOt(){if(typeof Zr.document>"u"){$f&&Lt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}FK({ignoreDuration:!0}),BK(),Fj(({from:e,to:t})=>{e!==void 0&&e!==t&&(FK({ignoreDuration:!0}),BK())})}function cOt(e){const t={...e};eme(t,"react"),lOt(t)}const dOt={"routing.instrumentation":"react-router-v6"};function fOt(e,t,n,r,i,o){return(s,a=!0,l=!0)=>{const u=Zr&&Zr.location&&Zr.location.pathname;a&&u&&s({name:u,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:dOt,metadata:{source:"url"}})}}cOt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.0.0",integrations:[new K1t({routingInstrumentation:fOt()})],tracesSampleRate:1});const pOt=m4e(S0t);gr.defaults.baseURL="https://codepair-api.yorkie.dev";function hOt(){const e=po(Kre),t=Ky("(prefers-color-scheme: dark)"),n=P.useMemo(()=>{const o=t?"dark":"light";return y$({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?o:e.theme}})},[e.theme,t]),r=C0t(),i=P.useMemo(()=>new dFe({queryCache:new Cie({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return N.jsx(gFe,{client:i,children:N.jsx(k0t,{children:N.jsxs(Mxe,{theme:n,children:[N.jsx(_Re,{}),N.jsx(Zo,{minHeight:"100vh",children:N.jsx(w4e,{router:pOt})})]})})})}var Jj={},ez={};ez.__esModule=!0;ez.default=bOt;function vC(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vC=function(n){return typeof n}:vC=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vC(e)}function i3(){}var mOt={getItem:i3,setItem:i3,removeItem:i3};function gOt(e){if((typeof self>"u"?"undefined":vC(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 bOt(e){var t="".concat(e,"Storage");return gOt(t)?self[t]:mOt}Jj.__esModule=!0;Jj.default=OOt;var yOt=vOt(ez);function vOt(e){return e&&e.__esModule?e:{default:e}}function OOt(e){var t=(0,yOt.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,s){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var Dme=void 0,EOt=SOt(Jj);function SOt(e){return e&&e.__esModule?e:{default:e}}var TOt=(0,EOt.default)("local");Dme=TOt;var tz="persist:",Nme="persist/FLUSH",nz="persist/REHYDRATE",Pme="persist/PAUSE",Lme="persist/PERSIST",Mme="persist/PURGE",$me="persist/REGISTER",wOt=-1;function OC(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?OC=function(n){return typeof n}:OC=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},OC(e)}function sJ(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 xOt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MOt(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 $Ot=5e3;function FOt(e,t){var n=e.version!==void 0?e.version:wOt;e.debug;var r=e.stateReconciler===void 0?COt:e.stateReconciler,i=e.getStoredState||ROt,o=e.timeout!==void 0?e.timeout:$Ot,s=null,a=!1,l=!0,u=function(d){return d._persist.rehydrated&&s&&!l&&s.update(d),d};return function(c,d){var p=c||{},m=p._persist,g=LOt(p,["_persist"]),v=g;if(d.type===Lme){var E=!1,O=function(F,M){E||(d.rehydrate(e.key,F,M),E=!0)};if(o&&setTimeout(function(){!E&&O(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),l=!1,s||(s=_Ot(e)),m)return Ef({},t(v,d),{_persist:m});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(w){var F=e.migrate||function(M,L){return Promise.resolve(M)};F(w,n).then(function(M){O(M)},function(M){O(void 0,M)})},function(w){O(void 0,w)}),Ef({},t(v,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Mme)return a=!0,d.result(DOt(e)),Ef({},t(v,d),{_persist:m});if(d.type===Nme)return d.result(s&&s.flush()),Ef({},t(v,d),{_persist:m});if(d.type===Pme)l=!0;else if(d.type===nz){if(a)return Ef({},v,{_persist:Ef({},m,{rehydrated:!0})});if(d.key===e.key){var S=t(v,d),x=d.payload,C=r!==!1&&x!==void 0?r(x,c,S,e):S,I=Ef({},C,{_persist:Ef({},m,{rehydrated:!0})});return u(I)}}}if(!m)return t(c,d);var _=t(v,d);return _===v?c:u(Ef({},_,{_persist:m}))}}function lJ(e){return jOt(e)||UOt(e)||BOt()}function BOt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function UOt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function jOt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Fme,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case $me:return r5({},t,{registry:[].concat(lJ(t.registry),[n.key])});case nz:var r=t.registry.indexOf(n.key),i=lJ(t.registry);return i.splice(r,1),r5({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function HOt(e,t,n){var r=n||!1,i=Z$(VOt,Fme,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:$me,key:u})},s=function(u,c,d){var p={type:nz,payload:c,err:d,key:u};e.dispatch(p),i.dispatch(p),r&&a.getState().bootstrapped&&(r(),r=!1)},a=r5({},i,{purge:function(){var u=[];return e.dispatch({type:Mme,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Nme,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:Pme})},persist:function(){e.dispatch({type:Lme,register:o,rehydrate:s})}});return t&&t.manualPersist||a.persist(),a}const WOt=$re({auth:zit,config:_5e,user:Z$e,editor:G$e,workspace:MFe,document:AFe}),QOt={key:"root",storage:Dme,whitelist:["auth","config"]},YOt=FOt(QOt,WOt),Bme=a5e({reducer:YOt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function EC(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?EC=function(n){return typeof n}:EC=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},EC(e)}function GOt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cJ(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(a=window).gtag.apply(a,o)}},n=t;e.default=n})(Vme);var Hme={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(a){return a.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,c){return u>0&&u+l.length!==c.length&&l.search(t)>-1&&c.charAt(u-2)!==":"&&(c.charAt(u+l.length)!=="-"||c.charAt(u-1)==="-")&&c.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(a){return typeof a=="string"&&a.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function o(a){return r(a)?(console.warn("This arg looks like an email address, redacting."),i):a}function s(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=a||"";return l&&(c=n(a)),u&&(c=o(c)),c}})(Hme);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(Vme),n=s(Hme),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],o=["page","hitType"];function s(j){return j&&j.__esModule?j:{default:j}}function a(j,z){if(j==null)return{};var X=l(j,z),Z,G;if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(j);for(G=0;G=0)&&Object.prototype.propertyIsEnumerable.call(j,Z)&&(X[Z]=j[Z])}return X}function l(j,z){if(j==null)return{};var X={},Z=Object.keys(j),G,ee;for(ee=0;ee=0)&&(X[G]=j[G]);return X}function u(j){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},u(j)}function c(j){return m(j)||p(j)||S(j)||d()}function d(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function m(j){if(Array.isArray(j))return x(j)}function g(j,z){var X=Object.keys(j);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(j);z&&(Z=Z.filter(function(G){return Object.getOwnPropertyDescriptor(j,G).enumerable})),X.push.apply(X,Z)}return X}function v(j){for(var z=1;zj.length)&&(z=j.length);for(var X=0,Z=new Array(z);X2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!z._hasLoadedGA){var ee=document.createElement("script");ee.async=!0,ee.src="".concat(G,"?id=").concat(X),Z&&ee.setAttribute("nonce",Z),document.body.appendChild(ee),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},z._hasLoadedGA=!0}}),M(this,"_toGtagOptions",function(X){if(X){var Z={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},G=Object.entries(X).reduce(function(ee,Q){var ae=E(Q,2),Te=ae[0],te=ae[1];return Z[Te]?ee[Z[Te]]=te:ee[Te]=te,ee},{});return G}}),M(this,"initialize",function(X){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!X)throw new Error("Require GA_MEASUREMENT_ID");var G=typeof X=="string"?[{trackingId:X}]:X;z._currentMeasurementId=G[0].trackingId;var ee=Z.gaOptions,Q=Z.gtagOptions,ae=Z.nonce,Te=Z.testMode,te=Te===void 0?!1:Te,pe=Z.gtagUrl;if(z._testMode=te,te||z._loadGA(z._currentMeasurementId,ae,pe),z.isInitialized||(z._gtag("js",new Date),G.forEach(function(Re){var Fe=v(v(v({},z._toGtagOptions(v(v({},ee),Re.gaOptions))),Q),Re.gtagOptions);Object.keys(Fe).length?z._gtag("config",Re.trackingId,Fe):z._gtag("config",Re.trackingId)})),z.isInitialized=!0,!te){var Oe=c(z._queueGtag);for(z._queueGtag=[],z._isQueuing=!1;Oe.length;){var me=Oe.shift();z._gtag.apply(z,c(me)),me[0]==="get"&&(z._isQueuing=!0)}}}),M(this,"set",function(X){if(!X){console.warn("`fieldsObject` is required in .set()");return}if(u(X)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(X).length===0&&console.warn("empty `fieldsObject` given to .set()"),z._gaCommand("set",X)}),M(this,"_gaCommandSendEvent",function(X,Z,G,ee,Q){z._gtag("event",Z,v(v({event_category:X,event_label:G,value:ee},Q&&{non_interaction:Q.nonInteraction}),z._toGtagOptions(Q)))}),M(this,"_gaCommandSendEventParameters",function(){for(var X=arguments.length,Z=new Array(X),G=0;G1?Z-1:0),ee=1;ee{O2("cls",{metric:e}),ome=e})}function Iyt(){return xyt(e=>{O2("fid",{metric:e}),ame=e})}function Dyt(){return kyt(e=>{O2("lcp",{metric:e}),sme=e})}function Qj(e,t,n,r,i=!1){lme(e,t);let o;return TA[e]||(o=n(),TA[e]=!0),r&&t({metric:r}),ume(e,t,i?o:void 0)}function Nyt(e){const t={};e==="event"&&(t.durationThreshold=0),y2(e,n=>{O2(e,{entries:n})},t)}function lme(e,t){J1[e]=J1[e]||[],J1[e].push(t)}function ume(e,t,n){return()=>{n&&n();const r=J1[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function KP(e){return typeof e=="number"&&isFinite(e)}function jy(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Pyt=2147483647;function Qo(e){return e/1e3}function cme(){return Yr&&Yr.addEventListener&&Yr.performance}let ZK=0,vo={},ld,eE;function Lyt(){const e=cme();if(e&&Ud){e.mark&&Yr.performance.mark("sentry-tracing-init");const t=Uyt(),n=Fyt(),r=Byt();return()=>{t(),n(),r()}}return()=>{}}function Myt(){Hj("longtask",({entries:e})=>{for(const t of e){const n=Rv();if(!n)return;const r=Qo(Ud+t.startTime),i=Qo(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function $yt(){Hj("event",({entries:e})=>{for(const t of e){const n=Rv();if(!n)return;if(t.name==="click"){const r=Qo(Ud+t.startTime),i=Qo(t.duration),o={description:vS(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},a=mhe(t.target);a&&(o.attributes={"ui.component_name":a}),n.startChild(o)}}})}function Fyt(){return Cyt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(qi&&Lt.log("[Measurements] Adding CLS"),vo.cls={value:e.value,unit:""},eE=t)},!0)}function Byt(){return _yt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(qi&&Lt.log("[Measurements] Adding LCP"),vo.lcp={value:e.value,unit:"millisecond"},ld=t)},!0)}function Uyt(){return Ayt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Qo(Ud),r=Qo(t.startTime);qi&&Lt.log("[Measurements] Adding FID"),vo.fid={value:e.value,unit:"millisecond"},vo["mark.fid"]={value:n+r,unit:"second"}})}function jyt(e){const t=cme();if(!t||!Yr.performance.getEntries||!Ud)return;qi&&Lt.log("[Tracing] Adding & adjusting spans using Performance API");const n=Qo(Ud),r=t.getEntries();let i,o;const{op:a,start_timestamp:s}=Ms(e);if(r.slice(ZK).forEach(l=>{const u=Qo(l.startTime),c=Qo(l.duration);if(!(e.op==="navigation"&&s&&n+u{if(!vo[u]||!s||n>=s)return;const c=vo[u].value,d=n+Qo(c),f=Math.abs((d-s)*1e3),m=f-c;qi&&Lt.log(`[Measurements] Normalized ${u} from ${c} to ${f} (${m})`),vo[u].value=f});const l=vo["mark.fid"];l&&vo.fid&&(jy(e,{description:"first input delay",endTimestamp:l.value+Qo(vo.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete vo["mark.fid"]),"fcp"in vo||delete vo.cls,Object.keys(vo).forEach(u=>{$0t(u,vo[u].value,vo[u].unit)}),Yyt(e)}ld=void 0,eE=void 0,vo={}}function zyt(e,t,n,r,i){const o=i+n,a=o+r;return jy(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o}),o}function Vyt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{mk(e,t,r,n)}),mk(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),mk(e,t,"fetch",n,"cache","domainLookupStart"),mk(e,t,"domainLookup",n,"DNS"),Wyt(e,t,n)}function mk(e,t,n,r,i,o){const a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];!s||!a||jy(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+Qo(s),endTimestamp:r+Qo(a)})}function Wyt(e,t,n){t.responseEnd&&(jy(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Qo(t.requestStart),endTimestamp:n+Qo(t.responseEnd)}),jy(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Qo(t.responseStart),endTimestamp:n+Qo(t.responseEnd)}))}function Hyt(e,t,n,r,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=hC(n),s={};JP(s,t,"transferSize","http.response_transfer_size"),JP(s,t,"encodedBodySize","http.response_content_length"),JP(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop()),a.host&&(s["server.address"]=a.host),s["url.same_origin"]=n.includes(Yr.location.origin);const l=o+r,u=l+i;jy(e,{description:n.replace(Yr.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:s})}function Qyt(e){const t=Yr.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),KP(n.rtt)&&(vo["connection.rtt"]={value:n.rtt,unit:"millisecond"})),KP(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),KP(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function Yyt(e){ld&&(qi&&Lt.log("[Measurements] Adding LCP Data"),ld.element&&e.setTag("lcp.element",vS(ld.element)),ld.id&&e.setTag("lcp.id",ld.id),ld.url&&e.setTag("lcp.url",ld.url.trim().slice(0,200)),e.setTag("lcp.size",ld.size)),eE&&eE.sources&&(qi&&Lt.log("[Measurements] Adding CLS Data"),eE.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,vS(t.node))))}function JP(e,t,n,r){const i=t[n];i!=null&&i0&&f.setAttribute("http.response_content_length",g)}}else e.error&&f.setStatus("internal_error");f.end(),delete r[d]}return}const a=fp(),s=Ha(),{method:l,url:u}=e.fetchData,c=o?Yhe({name:`${l} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":l,[v0]:i},op:"http.client"}):void 0;if(c&&(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c),n(e.fetchData.url)&&s){const d=e.args[0];e.args[1]=e.args[1]||{};const f=e.args[1];f.headers=Zyt(d,s,a,f,c)}return c}function Zyt(e,t,n,r,i){const o=i||n.getSpan(),a=Zg(),{traceId:s,spanId:l,sampled:u,dsc:c}={...a.getPropagationContext(),...n.getPropagationContext()},d=o?h2(o):$j(s,l,u),f=Ihe(c||(o?SS(o):g2(s,t,n))),m=r.headers||(typeof Request<"u"&&tp(e,Request)?e.headers:void 0);if(m)if(typeof Headers<"u"&&tp(m,Headers)){const g=new Headers(m);return g.append("sentry-trace",d),f&&g.append(Q$,f),g}else if(Array.isArray(m)){const g=[...m,["sentry-trace",d]];return f&&g.push([Q$,f]),g}else{const g="baggage"in m?m.baggage:void 0,v=[];return Array.isArray(g)?v.push(...g):g&&v.push(g),f&&v.push(f),{...m,"sentry-trace":d,baggage:v.length>0?v.join(","):void 0}}else return{"sentry-trace":d,baggage:f}}const X$=["localhost",/^\/(?!\/)/],K$={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:X$,tracePropagationTargets:X$};function Xyt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:K$.traceFetch,traceXHR:K$.traceXHR,...e},s=typeof o=="function"?o:c=>!0,l=c=>tvt(c,r||i),u={};t&&whe(c=>{const d=qyt(c,s,l,u);a&&d&&XK(d)}),n&&Che(c=>{const d=nvt(c,s,l,u);a&&d&&XK(d)})}function Kyt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function XK(e){const{url:t}=Ms(e).data||{};if(!t||typeof t!="string")return;const n=Hj("resource",({entries:r})=>{r.forEach(i=>{Kyt(i)&&i.name.endsWith(t)&&(evt(i).forEach(a=>e.setAttribute(...a)),setTimeout(n))})})}function Jyt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function rd(e=0){return((Ud||performance.timeOrigin)+e)/1e3}function evt(e){const{name:t,version:n}=Jyt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Ud?[...r,["http.request.redirect_start",rd(e.redirectStart)],["http.request.fetch_start",rd(e.fetchStart)],["http.request.domain_lookup_start",rd(e.domainLookupStart)],["http.request.domain_lookup_end",rd(e.domainLookupEnd)],["http.request.connect_start",rd(e.connectStart)],["http.request.secure_connection_start",rd(e.secureConnectionStart)],["http.request.connection_end",rd(e.connectEnd)],["http.request.request_start",rd(e.requestStart)],["http.request.response_start",rd(e.responseStart)],["http.request.response_end",rd(e.responseEnd)]]:r}function tvt(e,t){return QT(e,t||X$)}function nvt(e,t,n,r){const i=e.xhr,o=i&&i[b0];if(!b2()||!i||i.__sentry_own_request__||!o)return;const a=t(o.url);if(e.endTimestamp&&a){const d=i.__sentry_xhr_span_id__;if(!d)return;const f=r[d];f&&o.status_code!==void 0&&(Uj(f,o.status_code),f.end(),delete r[d]);return}const s=fp(),l=Zg(),u=a?Yhe({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,url:o.url,[v0]:"auto.http.browser"},op:"http.client"}):void 0;u&&(i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u);const c=Ha();if(i.setRequestHeader&&n(o.url)&&c){const{traceId:d,spanId:f,sampled:m,dsc:g}={...l.getPropagationContext(),...s.getPropagationContext()},v=u?h2(u):$j(d,f,m),S=Ihe(g||(u?SS(u):g2(d,c,s)));rvt(i,v,S)}return u}function rvt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Q$,n)}catch{}}function ivt(e,t=!0,n=!0){if(!Yr||!Yr.location){qi&&Lt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=Yr.location.href,i;t&&(i=e({name:Yr.location.pathname,startTimestamp:Ud?Ud/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Lj(({to:o,from:a})=>{if(a===void 0&&r&&r.indexOf(o)!==-1){r=void 0;return}a!==o&&(r=void 0,i&&(qi&&Lt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:Yr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const ovt="BrowserTracing",avt={...mC,markBackgroundTransactions:!0,routingInstrumentation:ivt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...K$};class svt{constructor(t){this.name=ovt,this._hasSetTracePropagationTargets=!1,P0t(),qi&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...avt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=Lyt(),this.options.enableLongTask&&Myt(),this.options._experiments.enableInteractions&&$yt()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),o=i&&i.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:s,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:c,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:m,_experiments:g}=this.options,v=o&&o.tracePropagationTargets,S=v||this.options.tracePropagationTargets;qi&&this._hasSetTracePropagationTargets&&v&&Lt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),a(O=>{const E=this._createRouteTransaction(O);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(E,O,n),E},l,s),u&&vyt(),g.enableInteractions&&this._registerInteractionListener(),Xyt({traceFetch:c,traceXHR:d,tracePropagationTargets:S,shouldCreateSpanForRequest:f,enableHTTPTimings:m})}_createRouteTransaction(t){if(!this._getCurrentHub){qi&&Lt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:o,heartbeatInterval:a}=this.options,s=t.op==="pageload";let l;if(s){const m=s?KK("sentry-trace"):"",g=s?KK("baggage"):void 0,{traceparentData:v,dynamicSamplingContext:S}=Ubt(m,g);l={...t,...v,metadata:{...t.metadata,dynamicSamplingContext:v&&!S?{}:S},trimEnd:!0}}else l={...t,trimEnd:!0};const u=typeof r=="function"?r(l):l,c=u===void 0?{...l,sampled:!1}:u;c.metadata=c.name!==l.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRouteName=c.name,this._latestRouteSource=lvt(c),c.sampled===!1&&qi&&Lt.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),qi&&Lt.log(`[Tracing] Starting ${c.op} transaction on scope`);const{location:d}=Yr,f=zK(n,c,i,o,!0,{location:d},a,s);return s&&(Yr.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Yr.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(Yr.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(m=>{this._collectWebVitals(),jyt(m)}),f}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,a="ui.action.click",s=Rv();if(s&&s.op&&["navigation","pageload"].includes(s.op)){qi&&Lt.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){qi&&Lt.warn(`[Tracing] Did not create ${a} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){qi&&Lt.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=Yr,c={name:this._latestRouteName,op:a,trimEnd:!0,data:{[Q0]:this._latestRouteSource||"url"}};t=zK(l,c,r,i,!0,{location:u},o)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function KK(e){const t=Ygt(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function lvt(e){const t=e.attributes&&e.attributes[Q0],n=e.data&&e.data[Q0],r=e.metadata&&e.metadata.source;return t||n||r}const Zr=Gr;let J$=0;function dme(){return J$>0}function uvt(){J$++,setTimeout(()=>{J$--})}function zy(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(Pj(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(a=>zy(a,t));return e.apply(this,o)}catch(o){throw uvt(),m0t(a=>{a.addEventProcessor(s=>(t.mechanism&&(B$(s,void 0,void 0),ES(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),h0t(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}bhe(r,e),OS(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const $f=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function fme(e,t){const n=Yj(e,t),r={type:t&&t.name,value:pvt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function cvt(e,t,n,r){const i=Ha(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:c2(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:gvt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:_he(t,o)}};if(n){const s=Yj(e,n);s.length&&(a.exception.values[0].stacktrace={frames:s})}return a}function eL(e,t){return{exception:{values:[fme(e,t)]}}}function Yj(e,t){const n=t.stacktrace||t.stack||"",r=fvt(t);try{return e(n,r)}catch{}return[]}const dvt=/Minified React error #\d+;/i;function fvt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(dvt.test(e.message))return 1}return 0}function pvt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function hvt(e,t,n,r){const i=n&&n.syntheticException||void 0,o=Gj(e,t,i,r);return ES(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Uy(o)}function mvt(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,a=e5(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),Uy(a)}function Gj(e,t,n,r,i){let o;if(Rj(t)&&t.error)return eL(e,t.error);if(bK(t)||$gt(t)){const a=t;if("stack"in t)o=eL(e,t);else{const s=a.name||(bK(a)?"DOMError":"DOMException"),l=a.message?`${s}: ${a.message}`:s;o=e5(e,l,n,r),B$(o,l)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return dhe(t)?eL(e,t):By(t)||c2(t)?(o=cvt(e,t,n,i),ES(o,{synthetic:!0}),o):(o=e5(e,t,n,r),B$(o,`${t}`,void 0),ES(o,{synthetic:!0}),o)}function e5(e,t,n,r){const i={};if(r&&n){const o=Yj(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(Ij(t)){const{__sentry_template_string__:o,__sentry_template_values__:a}=t;return i.logentry={message:o,params:a},i}return i.message=t,i}function gvt(e,{isUnhandledRejection:t}){const n=nbt(e),r=t?"promise rejection":"exception";return Rj(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:c2(e)?`Event \`${bvt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function bvt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function yvt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:YT(r)}},o=vvt(e);return Av(i,[o])}function vvt(e){return[{type:"user_report"},e]}class Ovt extends J0t{constructor(t){const n=Zr.SENTRY_SDK_SOURCE||wbt();Khe(t,"browser",["browser"],n),super(t),t.sendClientReports&&Zr.document&&Zr.document.addEventListener("visibilitychange",()=>{Zr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return hvt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return mvt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){$f&&Lt.warn("SDK not enabled, will not capture user feedback.");return}const n=yvt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){$f&&Lt.log("No outcomes to send");return}if(!this._dsn){$f&&Lt.log("No dsn provided, will not send outcomes");return}$f&&Lt.log("Sending outcomes:",t);const n=Ybt(t,this._options.tunnel&&YT(this._dsn));this._sendEnvelope(n)}}let l1;function Evt(){if(l1)return l1;if(V$(Zr.fetch))return l1=Zr.fetch.bind(Zr);const e=Zr.document;let t=Zr.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){$f&&Lt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return l1=t.bind(Zr)}function Svt(){l1=void 0}function Tvt(e,t=Evt()){let n=0,r=0;function i(o){const a=o.body.length;n+=a,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(l=>(n-=a,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Svt(),n-=a,r--,Mj(l)}}return Xhe(e,i)}const wvt=4;function xvt(e){function t(n){return new Ml((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===wvt&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const a in e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&o.setRequestHeader(a,e.headers[a]);o.send(n.body)})}return Xhe(e,t)}const E2="?",kvt=30,Cvt=40,_vt=50;function qj(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Avt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Rvt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ivt=e=>{const t=Avt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=Rvt.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,i]=pme(t[1]||E2,t[2]);return qj(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Dvt=[kvt,Ivt],Nvt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Pvt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Lvt=e=>{const t=Nvt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Pvt.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||E2;return[i,r]=pme(i,r),qj(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Mvt=[_vt,Lvt],$vt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Fvt=e=>{const t=$vt.exec(e);return t?qj(t[2],t[1]||E2,+t[3],t[4]?+t[4]:void 0):void 0},Bvt=[Cvt,Fvt],Uvt=[Dvt,Mvt,Bvt],jvt=Ohe(...Uvt),pme=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:E2,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},gk=1024,hme="Breadcrumbs",zvt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:hme,setupOnce(){},setup(n){t.console&&abt(Hvt(n)),t.dom&&ubt(Wvt(n,t.dom)),t.xhr&&Che(Qvt(n)),t.fetch&&whe(Yvt(n)),t.history&&Lj(Gvt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Vvt(n))}}},mme=zvt;om(hme,mme);function Vvt(e){return function(n){Ha()===e&&Ig({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:qp(n)},{event:n})}}function Wvt(e,t){return function(r){if(Ha()!==e)return;let i,o,a=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>gk&&($f&&Lt.warn(`\`dom.maxStringLength\` cannot exceed ${gk}, but a value of ${s} was configured. Sentry will use ${gk} instead.`),s=gk),typeof a=="string"&&(a=[a]);try{const u=r.event,c=qvt(u)?u.target:u;i=vS(c,{keyAttrs:a,maxStringLength:s}),o=mhe(c)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};o&&(l.data={"ui.component_name":o}),Ig(l,{event:r.event,name:r.name,global:r.global})}}function Hvt(e){return function(n){if(Ha()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Dbt(n.level),message:yK(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${yK(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ig(r,{input:n.args,level:n.level})}}function Qvt(e){return function(n){if(Ha()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[b0];if(!r||!i||!o)return;const{method:a,url:s,status_code:l,body:u}=o,c={method:a,url:s,status_code:l},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};Ig({category:"xhr",data:c,type:"http"},d)}}function Yvt(e){return function(n){if(Ha()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,a={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};Ig({category:"fetch",data:o,level:"error",type:"http"},a)}else{const o=n.response,a={...n.fetchData,status_code:o&&o.status},s={input:n.args,response:o,startTimestamp:r,endTimestamp:i};Ig({category:"fetch",data:a,type:"http"},s)}}}function Gvt(e){return function(n){if(Ha()!==e)return;let r=n.from,i=n.to;const o=hC(Zr.location.href);let a=r?hC(r):void 0;const s=hC(i);(!a||!a.path)&&(a=o),o.protocol===s.protocol&&o.host===s.host&&(i=s.relative),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),Ig({category:"navigation",data:{from:r,to:i}})}}function qvt(e){return!!e&&!!e.target}const gme="Dedupe",Zvt=()=>{let e;return{name:gme,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Xvt(t,e))return $f&&Lt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},bme=Zvt;om(gme,bme);function Xvt(e,t){return t?!!(Kvt(e,t)||Jvt(e,t)):!1}function Kvt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!vme(e,t)||!yme(e,t))}function Jvt(e,t){const n=JK(t),r=JK(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!vme(e,t)||!yme(e,t))}function yme(e,t){let n=eJ(e),r=eJ(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Ome,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(tOt(n),tJ("onerror")),t.onunhandledrejection&&(nOt(n),tJ("onunhandledrejection"))}}},Eme=eOt;om(Ome,Eme);function tOt(e){xhe(t=>{const{stackParser:n,attachStacktrace:r}=Tme();if(Ha()!==e||dme())return;const{msg:i,url:o,line:a,column:s,error:l}=t,u=l===void 0&&$d(i)?oOt(i,o,a,s):Sme(Gj(n,l||i,void 0,r,!1),o,a,s);u.level="error",$he(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function nOt(e){khe(t=>{const{stackParser:n,attachStacktrace:r}=Tme();if(Ha()!==e||dme())return;const i=rOt(t),o=Dj(i)?iOt(i):Gj(n,i,void 0,r,!0);o.level="error",$he(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function rOt(e){if(Dj(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function iOt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function oOt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Rj(e)?e.message:e,a="Error";const s=o.match(i);return s&&(a=s[1],o=s[2]),Sme({exception:{values:[{type:a,value:o}]}},t,n,r)}function Sme(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=$d(t)&&t.length>0?t:Qgt();return l.length===0&&l.push({colno:u,filename:d,function:"?",in_app:!0,lineno:c}),e}function tJ(e){$f&&Lt.log(`Global Handler attached: ${e}`)}function Tme(){const e=Ha();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const wme="HttpContext",aOt=()=>({name:wme,setupOnce(){},preprocessEvent(e){if(!Zr.navigator&&!Zr.location&&!Zr.document)return;const t=e.request&&e.request.url||Zr.location&&Zr.location.href,{referrer:n}=Zr.document||{},{userAgent:r}=Zr.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}),xme=aOt;om(wme,xme);const sOt="cause",lOt=5,kme="LinkedErrors",uOt=(e={})=>{const t=e.limit||lOt,n=e.key||sOt;return{name:kme,setupOnce(){},preprocessEvent(r,i,o){const a=o.getOptions();zgt(fme,a.stackParser,a.maxValueLength,n,t,r,i)}}},Cme=uOt;om(kme,Cme);const cOt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],_me="TryCatch",dOt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:_me,setupOnce(){t.setTimeout&&Fa(Zr,"setTimeout",nJ),t.setInterval&&Fa(Zr,"setInterval",nJ),t.requestAnimationFrame&&Fa(Zr,"requestAnimationFrame",fOt),t.XMLHttpRequest&&"XMLHttpRequest"in Zr&&Fa(XMLHttpRequest.prototype,"send",pOt);const n=t.eventTarget;n&&(Array.isArray(n)?n:cOt).forEach(hOt)}}},Ame=dOt;om(_me,Ame);function nJ(e){return function(...t){const n=t[0];return t[0]=zy(n,{mechanism:{data:{function:np(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function fOt(e){return function(t){return e.apply(this,[zy(t,{mechanism:{data:{function:"requestAnimationFrame",handler:np(e)},handled:!1,type:"instrument"}})])}}function pOt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Fa(n,i,function(o){const a={mechanism:{data:{function:i,handler:np(o)},handled:!1,type:"instrument"}},s=Pj(o);return s&&(a.mechanism.data.handler=np(s)),zy(o,a)})}),e.apply(this,t)}}function hOt(e){const t=Zr,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Fa(n,"addEventListener",function(r){return function(i,o,a){try{typeof o.handleEvent=="function"&&(o.handleEvent=zy(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:np(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,zy(o,{mechanism:{data:{function:"addEventListener",handler:np(o),target:e},handled:!1,type:"instrument"}}),a])}}),Fa(n,"removeEventListener",function(r){return function(i,o,a){const s=o;try{const l=s&&s.__sentry_wrapped__;l&&r.call(this,i,l,a)}catch{}return r.call(this,i,s,a)}}))}const mOt=[eme(),nme(),Ame(),mme(),Eme(),Cme(),bme(),xme()];function gOt(e){return[...mOt]}function bOt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=gOt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Zr.SENTRY_RELEASE&&Zr.SENTRY_RELEASE.id&&(e.release=Zr.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:ibt(e.stackParser||jvt),integrations:Y0t(e),transport:e.transport||(The()?Tvt:xvt)};nyt(Ovt,t),e.autoSessionTracking&&yOt()}function yOt(){if(typeof Zr.document>"u"){$f&&Lt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}LK({ignoreDuration:!0}),MK(),Lj(({from:e,to:t})=>{e!==void 0&&e!==t&&(LK({ignoreDuration:!0}),MK())})}function vOt(e){const t={...e};Khe(t,"react"),bOt(t)}const OOt={"routing.instrumentation":"react-router-v6"};function EOt(e,t,n,r,i,o){return(a,s=!0,l=!0)=>{const u=Zr&&Zr.location&&Zr.location.pathname;s&&u&&a({name:u,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:OOt,metadata:{source:"url"}})}}vOt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.0.0",integrations:[new svt({routingInstrumentation:EOt()})],tracesSampleRate:1});const SOt=p$e(Igt);gr.defaults.baseURL="https://codepair-api.yorkie.dev";function TOt(){const e=po(qre),t=Ky("(prefers-color-scheme: dark)"),n=L.useMemo(()=>{const o=t?"dark":"light";return gF({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?o:e.theme}})},[e.theme,t]),r=Mgt(),i=L.useMemo(()=>new u4e({queryCache:new wie({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return N.jsx(h4e,{client:i,children:N.jsx(Lgt,{children:N.jsxs(Pxe,{theme:n,children:[N.jsx(kIe,{}),N.jsx(Zo,{minHeight:"100vh",children:N.jsx(S$e,{router:SOt})})]})})})}var Zj={},Xj={};Xj.__esModule=!0;Xj.default=kOt;function bC(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bC=function(n){return typeof n}:bC=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bC(e)}function tL(){}var wOt={getItem:tL,setItem:tL,removeItem:tL};function xOt(e){if((typeof self>"u"?"undefined":bC(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 kOt(e){var t="".concat(e,"Storage");return xOt(t)?self[t]:wOt}Zj.__esModule=!0;Zj.default=AOt;var COt=_Ot(Xj);function _Ot(e){return e&&e.__esModule?e:{default:e}}function AOt(e){var t=(0,COt.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 Rme=void 0,ROt=IOt(Zj);function IOt(e){return e&&e.__esModule?e:{default:e}}var DOt=(0,ROt.default)("local");Rme=DOt;var Kj="persist:",Ime="persist/FLUSH",Jj="persist/REHYDRATE",Dme="persist/PAUSE",Nme="persist/PERSIST",Pme="persist/PURGE",Lme="persist/REGISTER",NOt=-1;function yC(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yC=function(n){return typeof n}:yC=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yC(e)}function rJ(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 POt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HOt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var QOt=5e3;function YOt(e,t){var n=e.version!==void 0?e.version:NOt;e.debug;var r=e.stateReconciler===void 0?MOt:e.stateReconciler,i=e.getStoredState||BOt,o=e.timeout!==void 0?e.timeout:QOt,a=null,s=!1,l=!0,u=function(d){return d._persist.rehydrated&&a&&!l&&a.update(d),d};return function(c,d){var f=c||{},m=f._persist,g=WOt(f,["_persist"]),v=g;if(d.type===Nme){var S=!1,O=function(F,M){S||(d.rehydrate(e.key,F,M),S=!0)};if(o&&setTimeout(function(){!S&&O(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),l=!1,a||(a=$Ot(e)),m)return Sf({},t(v,d),{_persist:m});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(x){var F=e.migrate||function(M,P){return Promise.resolve(M)};F(x,n).then(function(M){O(M)},function(M){O(void 0,M)})},function(x){O(void 0,x)}),Sf({},t(v,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Pme)return s=!0,d.result(jOt(e)),Sf({},t(v,d),{_persist:m});if(d.type===Ime)return d.result(a&&a.flush()),Sf({},t(v,d),{_persist:m});if(d.type===Dme)l=!0;else if(d.type===Jj){if(s)return Sf({},v,{_persist:Sf({},m,{rehydrated:!0})});if(d.key===e.key){var E=t(v,d),w=d.payload,k=r!==!1&&w!==void 0?r(w,c,E,e):E,A=Sf({},k,{_persist:Sf({},m,{rehydrated:!0})});return u(A)}}}if(!m)return t(c,d);var C=t(v,d);return C===v?c:u(Sf({},C,{_persist:m}))}}function oJ(e){return ZOt(e)||qOt(e)||GOt()}function GOt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function qOt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function ZOt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Mme,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Lme:return t5({},t,{registry:[].concat(oJ(t.registry),[n.key])});case Jj:var r=t.registry.indexOf(n.key),i=oJ(t.registry);return i.splice(r,1),t5({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function JOt(e,t,n){var r=n||!1,i=GF(KOt,Mme,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:Lme,key:u})},a=function(u,c,d){var f={type:Jj,payload:c,err:d,key:u};e.dispatch(f),i.dispatch(f),r&&s.getState().bootstrapped&&(r(),r=!1)},s=t5({},i,{purge:function(){var u=[];return e.dispatch({type:Pme,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Ime,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:Dme})},persist:function(){e.dispatch({type:Nme,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const e1t=Pre({auth:Xrt,config:k5e,user:GFe,editor:QFe,workspace:P4e,document:C4e}),t1t={key:"root",storage:Rme,whitelist:["auth","config"]},n1t=YOt(t1t,e1t),$me=o5e({reducer:n1t,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function vC(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vC=function(n){return typeof n}:vC=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vC(e)}function r1t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sJ(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(s=window).gtag.apply(s,o)}},n=t;e.default=n})(jme);var zme={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(s){return s.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,c){return u>0&&u+l.length!==c.length&&l.search(t)>-1&&c.charAt(u-2)!==":"&&(c.charAt(u+l.length)!=="-"||c.charAt(u-1)==="-")&&c.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(s){return typeof s=="string"&&s.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function o(s){return r(s)?(console.warn("This arg looks like an email address, redacting."),i):s}function a(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=s||"";return l&&(c=n(s)),u&&(c=o(c)),c}})(zme);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=a(jme),n=a(zme),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],o=["page","hitType"];function a(j){return j&&j.__esModule?j:{default:j}}function s(j,z){if(j==null)return{};var X=l(j,z),Z,q;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(j);for(q=0;q=0)&&Object.prototype.propertyIsEnumerable.call(j,Z)&&(X[Z]=j[Z])}return X}function l(j,z){if(j==null)return{};var X={},Z=Object.keys(j),q,te;for(te=0;te=0)&&(X[q]=j[q]);return X}function u(j){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},u(j)}function c(j){return m(j)||f(j)||E(j)||d()}function d(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function m(j){if(Array.isArray(j))return w(j)}function g(j,z){var X=Object.keys(j);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(j);z&&(Z=Z.filter(function(q){return Object.getOwnPropertyDescriptor(j,q).enumerable})),X.push.apply(X,Z)}return X}function v(j){for(var z=1;zj.length)&&(z=j.length);for(var X=0,Z=new Array(z);X2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!z._hasLoadedGA){var te=document.createElement("script");te.async=!0,te.src="".concat(q,"?id=").concat(X),Z&&te.setAttribute("nonce",Z),document.body.appendChild(te),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},z._hasLoadedGA=!0}}),M(this,"_toGtagOptions",function(X){if(X){var Z={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},q=Object.entries(X).reduce(function(te,Q){var se=S(Q,2),he=se[0],J=se[1];return Z[he]?te[Z[he]]=J:te[he]=J,te},{});return q}}),M(this,"initialize",function(X){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!X)throw new Error("Require GA_MEASUREMENT_ID");var q=typeof X=="string"?[{trackingId:X}]:X;z._currentMeasurementId=q[0].trackingId;var te=Z.gaOptions,Q=Z.gtagOptions,se=Z.nonce,he=Z.testMode,J=he===void 0?!1:he,le=Z.gtagUrl;if(z._testMode=J,J||z._loadGA(z._currentMeasurementId,se,le),z.isInitialized||(z._gtag("js",new Date),q.forEach(function(we){var ke=v(v(v({},z._toGtagOptions(v(v({},te),we.gaOptions))),Q),we.gtagOptions);Object.keys(ke).length?z._gtag("config",we.trackingId,ke):z._gtag("config",we.trackingId)})),z.isInitialized=!0,!J){var ve=c(z._queueGtag);for(z._queueGtag=[],z._isQueuing=!1;ve.length;){var ue=ve.shift();z._gtag.apply(z,c(ue)),ue[0]==="get"&&(z._isQueuing=!0)}}}),M(this,"set",function(X){if(!X){console.warn("`fieldsObject` is required in .set()");return}if(u(X)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(X).length===0&&console.warn("empty `fieldsObject` given to .set()"),z._gaCommand("set",X)}),M(this,"_gaCommandSendEvent",function(X,Z,q,te,Q){z._gtag("event",Z,v(v({event_category:X,event_label:q,value:te},Q&&{non_interaction:Q.nonInteraction}),z._toGtagOptions(Q)))}),M(this,"_gaCommandSendEventParameters",function(){for(var X=arguments.length,Z=new Array(X),q=0;q1?Z-1:0),te=1;te - +