!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d7d1436d-ed19-46eb-8ee6-d2870ed9d5ce",e._sentryDebugIdIdentifier="sentry-dbid-d7d1436d-ed19-46eb-8ee6-d2870ed9d5ce")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[851],{51182:function(e,n,r){"use strict";r.d(n,{BH:function(){return Deferred},L:function(){return base64urlEncodeWithoutPadding},LL:function(){return ErrorFactory},ZR:function(){return FirebaseError},aH:function(){return getDefaultAppConfig},eu:function(){return validateIndexedDBOpenable},hl:function(){return isIndexedDBAvailable},vZ:function(){return function deepEqual(e,n){if(e===n)return!0;let r=Object.keys(e),a=Object.keys(n);for(let o of r){if(!a.includes(o))return!1;let r=e[o],u=n[o];if(isObject(r)&&isObject(u)){if(!deepEqual(r,u))return!1}else if(r!==u)return!1}for(let e of a)if(!r.includes(e))return!1;return!0}}});var a=r(94498);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let stringToByteArray$1=function(e){let n=[],r=0;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);o<128?n[r++]=o:(o<2048?n[r++]=o>>6|192:((64512&o)==55296&&a+1<e.length&&(64512&e.charCodeAt(a+1))==56320?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),n[r++]=o>>18|240,n[r++]=o>>12&63|128):n[r++]=o>>12|224,n[r++]=o>>6&63|128),n[r++]=63&o|128)}return n},byteArrayToString=function(e){let n=[],r=0,a=0;for(;r<e.length;){let o=e[r++];if(o<128)n[a++]=String.fromCharCode(o);else if(o>191&&o<224){let u=e[r++];n[a++]=String.fromCharCode((31&o)<<6|63&u)}else if(o>239&&o<365){let u=e[r++],d=e[r++],f=e[r++],p=((7&o)<<18|(63&u)<<12|(63&d)<<6|63&f)-65536;n[a++]=String.fromCharCode(55296+(p>>10)),n[a++]=String.fromCharCode(56320+(1023&p))}else{let u=e[r++],d=e[r++];n[a++]=String.fromCharCode((15&o)<<12|(63&u)<<6|63&d)}}return n.join("")},o={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,n){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=n?this.byteToCharMapWebSafe_:this.byteToCharMap_,a=[];for(let n=0;n<e.length;n+=3){let o=e[n],u=n+1<e.length,d=u?e[n+1]:0,f=n+2<e.length,p=f?e[n+2]:0,g=o>>2,h=(3&o)<<4|d>>4,m=(15&d)<<2|p>>6,b=63&p;f||(b=64,u||(m=64)),a.push(r[g],r[h],r[m],r[b])}return a.join("")},encodeString(e,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(e):this.encodeByteArray(stringToByteArray$1(e),n)},decodeString(e,n){return this.HAS_NATIVE_SUPPORT&&!n?atob(e):byteArrayToString(this.decodeStringToByteArray(e,n))},decodeStringToByteArray(e,n){this.init_();let r=n?this.charToByteMapWebSafe_:this.charToByteMap_,a=[];for(let n=0;n<e.length;){let o=r[e.charAt(n++)],u=n<e.length,d=u?r[e.charAt(n)]:0;++n;let f=n<e.length,p=f?r[e.charAt(n)]:64;++n;let g=n<e.length,h=g?r[e.charAt(n)]:64;if(++n,null==o||null==d||null==p||null==h)throw new DecodeBase64StringError;let m=o<<2|d>>4;if(a.push(m),64!==p){let e=d<<4&240|p>>2;if(a.push(e),64!==h){let e=p<<6&192|h;a.push(e)}}}return a},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};let DecodeBase64StringError=class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}};let base64Encode=function(e){let n=stringToByteArray$1(e);return o.encodeByteArray(n,!0)},base64urlEncodeWithoutPadding=function(e){return base64Encode(e).replace(/\./g,"")},base64Decode=function(e){try{return o.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},getDefaultsFromGlobal=()=>/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,getDefaultsFromEnvVariable=()=>{if(void 0===a||void 0===a.env)return;let e=a.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},getDefaultsFromCookie=()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let n=e&&base64Decode(e[1]);return n&&JSON.parse(n)},getDefaults=()=>{try{return getDefaultsFromGlobal()||getDefaultsFromEnvVariable()||getDefaultsFromCookie()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},getDefaultAppConfig=()=>{var e;return null===(e=getDefaults())||void 0===e?void 0:e.config};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let Deferred=class Deferred{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(n):e(n,r))}}};function isIndexedDBAvailable(){try{return"object"==typeof indexedDB}catch(e){return!1}}function validateIndexedDBOpenable(){return new Promise((e,n)=>{try{let r=!0,a="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(a);o.onsuccess=()=>{o.result.close(),r||self.indexedDB.deleteDatabase(a),e(!0)},o.onupgradeneeded=()=>{r=!1},o.onerror=()=>{var e;n((null===(e=o.error)||void 0===e?void 0:e.message)||"")}}catch(e){n(e)}})}let FirebaseError=class FirebaseError extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}};let ErrorFactory=class ErrorFactory{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){let r=n[0]||{},a=`${this.service}/${e}`,o=this.errors[e],d=o?o.replace(u,(e,n)=>{let a=r[n];return null!=a?String(a):`<${n}?>`}):"Error",f=`${this.serviceName}: ${d} (${a}).`,p=new FirebaseError(a,f,r);return p}};let u=/\{\$([^}]+)}/g;function isObject(e){return null!==e&&"object"==typeof e}},17811:function(e,n,r){"use strict";let a,o;r.d(n,{wD:function(){return FloatingFocusManager},mN:function(){return FloatingNode},ll:function(){return FloatingPortal},RB:function(){return FloatingTree},xp:function(){return safePolygon},eS:function(){return useClick},bQ:function(){return useDismiss},YF:function(){return floating_ui_react_esm_useFloating},jV:function(){return useFloatingNodeId},Zm:function(){return useFloatingParentNodeId},ay:function(){return useFloatingTree},XI:function(){return useHover},NI:function(){return useInteractions},c0:function(){return useListNavigation},qs:function(){return useRole},ox:function(){return useTypeahead}});var u=r(94623),d=r.t(u,2),f=new WeakMap,p=new WeakMap,g={},h=0,unwrapHost=function(e){return e&&(e.host||unwrapHost(e.parentNode))},applyAttributeToOthers=function(e,n,r,a){var o=(Array.isArray(e)?e:[e]).map(function(e){if(n.contains(e))return e;var r=unwrapHost(e);return r&&n.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",n,". Doing nothing"),null)}).filter(function(e){return!!e});g[r]||(g[r]=new WeakMap);var u=g[r],d=[],m=new Set,b=new Set(o),keep=function(e){!e||m.has(e)||(m.add(e),keep(e.parentNode))};o.forEach(keep);var deep=function(e){!e||b.has(e)||Array.prototype.forEach.call(e.children,function(e){if(m.has(e))deep(e);else{var n=e.getAttribute(a),o=null!==n&&"false"!==n,g=(f.get(e)||0)+1,h=(u.get(e)||0)+1;f.set(e,g),u.set(e,h),d.push(e),1===g&&o&&p.set(e,!0),1===h&&e.setAttribute(r,"true"),o||e.setAttribute(a,"true")}})};return deep(n),m.clear(),h++,function(){d.forEach(function(e){var n=f.get(e)-1,o=u.get(e)-1;f.set(e,n),u.set(e,o),n||(p.has(e)||e.removeAttribute(a),p.delete(e)),o||e.removeAttribute(r)}),--h||(f=new WeakMap,f=new WeakMap,p=new WeakMap,g={})}},hideOthers=function(e,n,r){void 0===r&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),o=n||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live]"))),applyAttributeToOthers(a,o,r,"aria-hidden")):function(){return null}},m='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',b="undefined"==typeof Element,y=b?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,v=!b&&Element.prototype.getRootNode?function(e){var n;return null==e?void 0:null===(n=e.getRootNode)||void 0===n?void 0:n.call(e)}:function(e){return null==e?void 0:e.ownerDocument},isInert=function isInert(e,n){void 0===n&&(n=!0);var r,a=null==e?void 0:null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===a||"true"===a||n&&e&&isInert(e.parentNode)},isContentEditable=function(e){var n,r=null==e?void 0:null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"contenteditable");return""===r||"true"===r},getCandidates=function(e,n,r){if(isInert(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(m));return n&&y.call(e,m)&&a.unshift(e),a=a.filter(r)},getCandidatesIteratively=function getCandidatesIteratively(e,n,r){for(var a=[],o=Array.from(e);o.length;){var u=o.shift();if(!isInert(u,!1)){if("SLOT"===u.tagName){var d=u.assignedElements(),f=getCandidatesIteratively(d.length?d:u.children,!0,r);r.flatten?a.push.apply(a,f):a.push({scopeParent:u,candidates:f})}else{y.call(u,m)&&r.filter(u)&&(n||!e.includes(u))&&a.push(u);var p=u.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(u),g=!isInert(p,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(p&&g){var h=getCandidatesIteratively(!0===p?u.children:p.children,!0,r);r.flatten?a.push.apply(a,h):a.push({scopeParent:u,candidates:h})}else o.unshift.apply(o,u.children)}}}return a},hasTabIndex=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},getTabIndex=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||isContentEditable(e))&&!hasTabIndex(e)?0:e.tabIndex},getSortOrderTabIndex=function(e,n){var r=getTabIndex(e);return r<0&&n&&!hasTabIndex(e)?0:r},sortOrderedTabbables=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},isInput=function(e){return"INPUT"===e.tagName},getCheckedRadio=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},isTabbableRadio=function(e){if(!e.name)return!0;var n,r=e.form||v(e),queryRadios=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)n=queryRadios(window.CSS.escape(e.name));else try{n=queryRadios(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var a=getCheckedRadio(n,e.form);return!a||a===e},isNodeAttached=function(e){var n,r,a,o,u,d,f,p=e&&v(e),g=null===(n=p)||void 0===n?void 0:n.host,h=!1;if(p&&p!==e)for(h=!!(null!==(r=g)&&void 0!==r&&null!==(a=r.ownerDocument)&&void 0!==a&&a.contains(g)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!h&&g;)h=!!(null!==(d=g=null===(u=p=v(g))||void 0===u?void 0:u.host)&&void 0!==d&&null!==(f=d.ownerDocument)&&void 0!==f&&f.contains(g));return h},isZeroArea=function(e){var n=e.getBoundingClientRect(),r=n.width,a=n.height;return 0===r&&0===a},isHidden=function(e,n){var r=n.displayCheck,a=n.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=y.call(e,"details>summary:first-of-type")?e.parentElement:e;if(y.call(o,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return isZeroArea(e)}else{if("function"==typeof a){for(var u=e;e;){var d=e.parentElement,f=v(e);if(d&&!d.shadowRoot&&!0===a(d))return isZeroArea(e);e=e.assignedSlot?e.assignedSlot:d||f===e.ownerDocument?d:f.host}e=u}if(isNodeAttached(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},isDisabledFromFieldset=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if("FIELDSET"===n.tagName&&n.disabled){for(var r=0;r<n.children.length;r++){var a=n.children.item(r);if("LEGEND"===a.tagName)return!!y.call(n,"fieldset[disabled] *")||!a.contains(e)}return!0}n=n.parentElement}return!1},isNodeMatchingSelectorTabbable=function(e,n){var r,a,o;return!(isInput(r=n)&&"radio"===r.type&&!isTabbableRadio(r)||0>getTabIndex(n))&&(a=e,!((o=n).disabled||isInert(o)||isInput(o)&&"hidden"===o.type||isHidden(o,a)||"DETAILS"===o.tagName&&Array.prototype.slice.apply(o.children).some(function(e){return"SUMMARY"===e.tagName})||isDisabledFromFieldset(o)))},isValidShadowRootTabbable=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(n)||n>=0},sortByOrder=function sortByOrder(e){var n=[],r=[];return e.forEach(function(e,a){var o=!!e.scopeParent,u=o?e.scopeParent:e,d=getSortOrderTabIndex(u,o),f=o?sortByOrder(e.candidates):u;0===d?o?n.push.apply(n,f):n.push(u):r.push({documentOrder:a,tabIndex:d,item:e,isScope:o,content:f})}),r.sort(sortOrderedTabbables).reduce(function(e,n){return n.isScope?e.push.apply(e,n.content):e.push(n.content),e},[]).concat(n)},tabbable=function(e,n){return sortByOrder((n=n||{}).getShadowRoot?getCandidatesIteratively([e],n.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(e,n.includeContainer,isNodeMatchingSelectorTabbable.bind(null,n)))},w=r(13789),E=r(55187),k=r(15048),_="undefined"!=typeof document?u.useLayoutEffect:u.useEffect;function deepEqual(e,n){let r,a,o;if(e===n)return!0;if(typeof e!=typeof n)return!1;if("function"==typeof e&&e.toString()===n.toString())return!0;if(e&&n&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(a=r;0!=a--;)if(!deepEqual(e[a],n[a]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){let r=o[a];if(("_owner"!==r||!e.$$typeof)&&!deepEqual(e[r],n[r]))return!1}return!0}return e!=e&&n!=n}function useLatestRef(e){let n=u.useRef(e);return _(()=>{n.current=e}),n}var x="undefined"!=typeof document?u.useLayoutEffect:u.useEffect;let S=!1,C=0,genId=()=>"floating-ui-"+C++,A=d["useId".toString()],N=A||function(){let[e,n]=u.useState(()=>S?genId():void 0);return x(()=>{null==e&&n(genId())},[]),u.useEffect(()=>{S||(S=!0)},[]),e};function createPubSub(){let e=new Map;return{emit(n,r){var a;null==(a=e.get(n))||a.forEach(e=>e(r))},on(n,r){e.set(n,[...e.get(n)||[],r])},off(n,r){e.set(n,(e.get(n)||[]).filter(e=>e!==r))}}}let O=u.createContext(null),T=u.createContext(null),useFloatingParentNodeId=()=>{var e;return(null==(e=u.useContext(O))?void 0:e.id)||null},useFloatingTree=()=>u.useContext(T),useFloatingNodeId=e=>{let n=N(),r=useFloatingTree(),a=useFloatingParentNodeId(),o=e||a;return x(()=>{let e={id:n,parentId:o};return null==r||r.addNode(e),()=>{null==r||r.removeNode(e)}},[r,n,o]),n},FloatingNode=e=>{let{children:n,id:r}=e,a=useFloatingParentNodeId();return u.createElement(O.Provider,{value:u.useMemo(()=>({id:r,parentId:a}),[r,a])},n)},FloatingTree=e=>{let{children:n}=e,r=u.useRef([]),a=u.useCallback(e=>{r.current=[...r.current,e]},[]),o=u.useCallback(e=>{r.current=r.current.filter(n=>n!==e)},[]),d=u.useState(()=>createPubSub())[0];return u.createElement(T.Provider,{value:u.useMemo(()=>({nodesRef:r,addNode:a,removeNode:o,events:d}),[r,a,o,d])},n)};function getDocument(e){return(null==e?void 0:e.ownerDocument)||document}function getPlatform(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function getWindow(e){return getDocument(e).defaultView||window}function isElement(e){return!!e&&e instanceof getWindow(e).Element}function isHTMLElement(e){return!!e&&e instanceof getWindow(e).HTMLElement}function isVirtualClick(e){if(0===e.mozInputSource&&e.isTrusted)return!0;let n=/Android/i;return(n.test(getPlatform())||n.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}function isVirtualPointerEvent(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"!==e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function isSafari(){return/apple/i.test(navigator.vendor)}function isMac(){return getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function isMouseLikePointerType(e,n){let r=["mouse","pen"];return n||r.push("",void 0),r.includes(e)}function contains(e,n){if(!e||!n)return!1;let r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&function(e){if("undefined"==typeof ShadowRoot)return!1;let n=getWindow(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}(r)){let r=n;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function getChildren(e,n){let r=e.filter(e=>{var r;return e.parentId===n&&(null==(r=e.context)?void 0:r.open)})||[],a=r;for(;a.length;)a=e.filter(e=>{var n;return null==(n=a)?void 0:n.some(n=>{var r;return e.parentId===n.id&&(null==(r=e.context)?void 0:r.open)})})||[],r=r.concat(a);return r}function getTarget(e){return"composedPath"in e?e.composedPath()[0]:e.target}let I="http://www.w3.org/2000/svg";function destroyPolygon(e){e.current&&(e.current.remove(),e.current=null)}function safePolygon(e){let n,{restMs:r=0,buffer:a=.5,blockPointerEvents:o=!0}=void 0===e?{}:e,u=!1,d=!1;return e=>{let{x:f,y:p,placement:g,refs:h,onClose:m,nodeId:b,tree:y,polygonRef:v}=e;return function(e){var w;function close(){destroyPolygon(v),clearTimeout(n),m()}if(clearTimeout(n),!h.domReference.current||!h.floating.current||null==g||null==f||null==p)return;let{clientX:E,clientY:k}=e,_=getTarget(e),x="mouseleave"===e.type,S=contains(h.domReference.current,_),C=contains(h.floating.current,_);if(!x&&S){destroyPolygon(v);return}if(!x&&(S||u&&contains(v.current,_))||x&&isElement(e.relatedTarget)&&contains(h.floating.current,e.relatedTarget)||y&&getChildren(y.nodesRef.current,b).some(e=>{let{context:n}=e;return null==n?void 0:n.open}))return;if(C&&(d=!0),C&&!x&&(null==(w=v.current)?void 0:w.dataset.type)!=="rect"){destroyPolygon(v);return}let A=h.domReference.current.getBoundingClientRect(),N=h.floating.current.getBoundingClientRect(),O=g.split("-")[0],T=f>N.right-N.width/2,D=p>N.bottom-N.height/2;if("top"===O&&p>=A.bottom-1||"bottom"===O&&p<=A.top+1||"left"===O&&f>=A.right-1||"right"===O&&f<=A.left+1)return close();let M=[];switch(O){case"top":M=[[N.left,A.top+1],[N.left,N.bottom-1],[N.right,N.bottom-1],[N.right,A.top+1]],u=E>=N.left&&E<=N.right&&k>=N.top&&k<=A.top+1;break;case"bottom":M=[[N.left,N.top+1],[N.left,A.bottom-1],[N.right,A.bottom-1],[N.right,N.top+1]],u=E>=N.left&&E<=N.right&&k>=A.bottom-1&&k<=N.bottom;break;case"left":M=[[N.right-1,N.bottom],[N.right-1,N.top],[A.left+1,N.top],[A.left+1,N.bottom]],u=E>=N.left&&E<=A.left+1&&k>=N.top&&k<=N.bottom;break;case"right":M=[[A.right-1,N.bottom],[A.right-1,N.top],[N.left+1,N.top],[N.left+1,N.bottom]],u=E>=A.right-1&&E<=N.right&&k>=N.top&&k<=N.bottom}let R=u?M:function(e){let[n,r]=e,o=N.width>A.width,u=N.height>A.height;switch(O){case"top":{let e=[[N.left,T?N.bottom-a:o?N.bottom-a:N.top],[N.right,T?o?N.bottom-a:N.top:N.bottom-a]];return[[o?n+a/2:T?n+4*a:n-4*a,r+a+1],[o?n-a/2:T?n+4*a:n-4*a,r+a+1],...e]}case"bottom":{let e=[[N.left,T?N.top+a:o?N.top+a:N.bottom],[N.right,T?o?N.top+a:N.bottom:N.top+a]];return[[o?n+a/2:T?n+4*a:n-4*a,r-a],[o?n-a/2:T?n+4*a:n-4*a,r-a],...e]}case"left":{let e=[[D?N.right-a:u?N.right-a:N.left,N.top],[D?u?N.right-a:N.left:N.right-a,N.bottom]];return[...e,[n+a+1,u?r+a/2:D?r+4*a:r-4*a],[n+a+1,u?r-a/2:D?r+4*a:r-4*a]]}case"right":{let e=[[D?N.left+a:u?N.left+a:N.right,N.top],[D?u?N.left+a:N.right:N.left+a,N.bottom]];return[[n-a,u?r+a/2:D?r+4*a:r-4*a],[n-a,u?r-a/2:D?r+4*a:r-4*a],...e]}}}([f,p]);if(!v.current&&o&&x){let e=getDocument(h.floating.current);v.current=function(e,n,r){var a,o;let u=isSafari(),d=n.defaultView||window,f=n.createElementNS(I,"svg");Object.assign(f.style,{position:"fixed",left:(u&&(null==(a=d.visualViewport)?void 0:a.offsetLeft)||0)+"px",top:(u&&(null==(o=d.visualViewport)?void 0:o.offsetTop)||0)+"px",width:"100%",height:"100%",pointerEvents:"none",zIndex:2147483647}),f.setAttribute("data-type",r?"rect":"triangle");let p=n.createElementNS(I,"polygon");return p.setAttribute("points",e.map(e=>{let[n,r]=e;return n+","+r}).join(" ")),Object.assign(p.style,{pointerEvents:"auto",fill:"transparent",opacity:0}),f.appendChild(p),f}(R,e,u),e.body.appendChild(v.current)}u||(function(e,n){let[r,a]=e,o=!1,u=n.length;for(let e=0,d=u-1;e<u;d=e++){let[u,f]=n[e]||[0,0],[p,g]=n[d]||[0,0],h=f>=a!=g>=a&&r<=(p-u)*(a-f)/(g-f)+u;h&&(o=!o)}return o}([E,k],R)?r&&!d&&(n=setTimeout(m,r)):close())}}}function floating_ui_react_esm_useLatestRef(e){let n=(0,u.useRef)(e);return x(()=>{n.current=e}),n}function getDelay(e,n,r){return r&&!isMouseLikePointerType(r)?0:"number"==typeof e?e:null==e?void 0:e[n]}let useHover=function(e,n){let{enabled:r=!0,delay:a=0,handleClose:o=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=void 0===n?{}:n,{open:g,onOpenChange:h,dataRef:m,events:b,refs:y,_:v}=e,w=useFloatingTree(),E=floating_ui_react_esm_useLatestRef(o),k=floating_ui_react_esm_useLatestRef(a),_=u.useRef(),S=u.useRef(),C=u.useRef(),A=u.useRef(),N=u.useRef(!0),O=u.useRef(null),T=u.useCallback(()=>{var e;let n=null==(e=m.current.openEvent)?void 0:e.type;return(null==n?void 0:n.includes("mouse"))&&"mousedown"!==n},[m]);u.useEffect(()=>{if(r)return b.on("dismiss",onDismiss),()=>{b.off("dismiss",onDismiss)};function onDismiss(){clearTimeout(S.current),clearTimeout(A.current),N.current=!0}},[r,b,y]),u.useEffect(()=>{if(!r||!E.current||!g)return;function onLeave(){T()&&h(!1)}let e=getDocument(y.floating.current).documentElement;return e.addEventListener("mouseleave",onLeave),()=>{e.removeEventListener("mouseleave",onLeave)}},[y,g,h,r,E,m,T]);let I=u.useCallback(function(e){void 0===e&&(e=!0);let n=getDelay(k.current,"close",_.current);n&&!C.current?(clearTimeout(S.current),S.current=setTimeout(()=>h(!1),n)):e&&(clearTimeout(S.current),h(!1))},[k,h]),D=u.useCallback(()=>{C.current&&(getDocument(y.floating.current).removeEventListener("mousemove",C.current),C.current=void 0)},[y]);return u.useEffect(()=>{if(!r)return;function isClickLikeOpenEvent(){return!!m.current.openEvent&&["click","mousedown"].includes(m.current.openEvent.type)}function onMouseEnter(e){if(clearTimeout(S.current),N.current=!1,d&&!isMouseLikePointerType(_.current)||f>0&&0===getDelay(k.current,"open"))return;m.current.openEvent=e;let n=getDelay(k.current,"open",_.current);n?S.current=setTimeout(()=>{h(!0)},n):h(!0)}function onMouseLeave(n){if(isClickLikeOpenEvent())return;let r=getDocument(y.floating.current);if(clearTimeout(A.current),E.current){clearTimeout(S.current),C.current&&r.removeEventListener("mousemove",C.current),C.current=E.current({...e,tree:w,polygonRef:O,x:n.clientX,y:n.clientY,onClose(){D(),I()}}),r.addEventListener("mousemove",C.current);return}I()}function onScrollMouseLeave(n){isClickLikeOpenEvent()||null==E.current||E.current({...e,tree:w,polygonRef:O,x:n.clientX,y:n.clientY,onClose(){D(),I()}})(n)}let n=y.floating.current,a=y.domReference.current;if(isElement(a))return g&&a.addEventListener("mouseleave",onScrollMouseLeave),null==n||n.addEventListener("mouseleave",onScrollMouseLeave),p&&a.addEventListener("mousemove",onMouseEnter,{once:!0}),a.addEventListener("mouseenter",onMouseEnter),a.addEventListener("mouseleave",onMouseLeave),()=>{g&&a.removeEventListener("mouseleave",onScrollMouseLeave),null==n||n.removeEventListener("mouseleave",onScrollMouseLeave),p&&a.removeEventListener("mousemove",onMouseEnter),a.removeEventListener("mouseenter",onMouseEnter),a.removeEventListener("mouseleave",onMouseLeave)}},[v.domReference,r,e,d,f,p,I,D,h,g,w,y,k,E,m]),x(()=>{g||(_.current=void 0,D(),destroyPolygon(O))},[g,D]),u.useEffect(()=>()=>{D(),clearTimeout(S.current),clearTimeout(A.current),destroyPolygon(O)},[r,D]),u.useMemo(()=>{if(!r)return{};function setPointerRef(e){_.current=e.pointerType}return{reference:{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(){g||0===f||(clearTimeout(A.current),A.current=setTimeout(()=>{N.current||h(!0)},f))}},floating:{onMouseEnter(){clearTimeout(S.current)},onMouseLeave(){b.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),I(!1)}}}},[b,r,f,g,h,I])};function _extends(){return(_extends=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function activeElement$1(e){let n=e.activeElement;for(;(null==(r=n)?void 0:null==(a=r.shadowRoot)?void 0:a.activeElement)!=null;){var r,a;n=n.shadowRoot.activeElement}return n}let D=0;function enqueueFocus(e,n){void 0===n&&(n={});let{preventScroll:r=!1,cancelPrevious:a=!0,sync:o=!1}=n;a&&cancelAnimationFrame(D);let exec=()=>null==e?void 0:e.focus({preventScroll:r});o?exec():D=requestAnimationFrame(exec)}function isTypeableElement(e){return isHTMLElement(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function stopEvent(e){e.preventDefault(),e.stopPropagation()}let getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(e,n){let r=tabbable(e,getTabbableOptions());"prev"===n&&r.reverse();let a=r.indexOf(activeElement$1(getDocument(e))),o=r.slice(a+1);return o[0]}function getNextTabbable(){return getTabbableIn(document.body,"next")}function getPreviousTabbable(){return getTabbableIn(document.body,"prev")}function isOutsideEvent(e,n){let r=n||e.currentTarget,a=e.relatedTarget;return!a||!contains(r,a)}let M=d["useInsertionEffect".toString()],R=M||(e=>e());function useEvent(e){let n=u.useRef(()=>{});return R(()=>{n.current=e}),u.useCallback(function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return null==n.current?void 0:n.current(...r)},[])}let L={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function setActiveElementOnTab(e){"Tab"===e.key&&(a=e.target,clearTimeout(o))}let F=u.forwardRef(function(e,n){let r=useEvent(e.onFocus),[d,f]=u.useState();return x(()=>(isSafari()&&f("button"),document.addEventListener("keydown",setActiveElementOnTab),()=>{document.removeEventListener("keydown",setActiveElementOnTab)}),[]),u.createElement("span",_extends({},e,{ref:n,tabIndex:0,role:d,"aria-hidden":!d||void 0,"data-floating-ui-focus-guard":"",style:L,onFocus:e=>{isSafari()&&isMac()&&!function(e){let n=a===e.relatedTarget;return a=e.relatedTarget,clearTimeout(o),n}(e)?(e.persist(),o=window.setTimeout(()=>{r(e)},50)):r(e)}}))}),P=u.createContext(null),useFloatingPortalNode=function(e){let{id:n,enabled:r=!0}=void 0===e?{}:e,[a,o]=u.useState(null),d=N(),f=usePortalContext();return x(()=>{if(!r)return;let e=n?document.getElementById(n):null;if(e)e.setAttribute("data-floating-ui-portal",""),o(e);else{let e=document.createElement("div");e.id=n||d,e.setAttribute("data-floating-ui-portal",""),o(e);let r=(null==f?void 0:f.portalNode)||document.body;return r.appendChild(e),()=>{r.removeChild(e)}}},[n,f,d,r]),a},FloatingPortal=e=>{let{children:n,id:r,root:a=null,preserveTabOrder:o=!0}=e,d=useFloatingPortalNode({id:r,enabled:!a}),[f,p]=u.useState(null),g=u.useRef(null),h=u.useRef(null),m=u.useRef(null),b=u.useRef(null),y=!!f&&!f.modal&&!!(a||d)&&o;return u.useEffect(()=>{if(d&&o&&(null==f||!f.modal))return d.addEventListener("focusin",onFocus,!0),d.addEventListener("focusout",onFocus,!0),()=>{d.removeEventListener("focusin",onFocus,!0),d.removeEventListener("focusout",onFocus,!0)};function onFocus(e){if(d&&isOutsideEvent(e)){let n="focusin"===e.type;(n?function(e){let n=e.querySelectorAll("[data-tabindex]");n.forEach(e=>{let n=e.dataset.tabindex;delete e.dataset.tabindex,n?e.setAttribute("tabindex",n):e.removeAttribute("tabindex")})}:function(e){let n=tabbable(e,getTabbableOptions());n.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(d)}}},[d,o,null==f?void 0:f.modal]),u.createElement(P.Provider,{value:u.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:g,afterOutsideRef:h,beforeInsideRef:m,afterInsideRef:b,portalNode:d,setFocusManagerState:p}),[o,d])},y&&d&&u.createElement(F,{ref:g,onFocus:e=>{if(isOutsideEvent(e,d)){var n;null==(n=m.current)||n.focus()}else{let e=getPreviousTabbable()||(null==f?void 0:f.refs.domReference.current);null==e||e.focus()}}}),y&&d&&u.createElement("span",{"aria-owns":d.id,style:L}),a?(0,w.createPortal)(n,a):d?(0,w.createPortal)(n,d):null,y&&d&&u.createElement(F,{ref:h,onFocus:e=>{if(isOutsideEvent(e,d)){var n;null==(n=b.current)||n.focus()}else{let e=getNextTabbable()||(null==f?void 0:f.refs.domReference.current);null==e||e.focus(),null==f||f.onOpenChange(!1)}}}))},usePortalContext=()=>u.useContext(P),B=u.forwardRef(function(e,n){return u.createElement("button",_extends({},e,{ref:n,tabIndex:-1,style:L}))});function FloatingFocusManager(e){let{context:n,children:r,order:a=["content"],guards:o=!0,initialFocus:d=0,returnFocus:f=!0,modal:p=!0,visuallyHiddenDismiss:g=!1,closeOnFocusOut:h=!0}=e,{refs:m,nodeId:b,onOpenChange:y,events:v,_:{domReference:w}}=n,E=floating_ui_react_esm_useLatestRef(a),k=useFloatingTree(),_=usePortalContext(),[S,C]=u.useState(null),A="number"==typeof d&&d<0,N=u.useRef(null),O=u.useRef(null),T=u.useRef(!1),I=u.useRef(null),D=null!=_,M=w&&"combobox"===w.getAttribute("role")&&isTypeableElement(w),R=u.useCallback(function(e){return void 0===e&&(e=m.floating.current),e?tabbable(e,getTabbableOptions()):[]},[m]),L=u.useCallback(e=>{let n=R(e);return E.current.map(e=>m.domReference.current&&"reference"===e?m.domReference.current:m.floating.current&&"floating"===e?m.floating.current:n).filter(Boolean).flat()},[E,m,R]);u.useEffect(()=>{if(!p)return;function onKeyDown(e){if("Tab"===e.key){0!==R().length||M||stopEvent(e);let n=L(),r=getTarget(e);"reference"===E.current[0]&&r===m.domReference.current&&(stopEvent(e),e.shiftKey?enqueueFocus(n[n.length-1]):enqueueFocus(n[1])),"floating"===E.current[1]&&r===m.floating.current&&e.shiftKey&&(stopEvent(e),enqueueFocus(n[0]))}}let e=getDocument(m.floating.current);return e.addEventListener("keydown",onKeyDown),()=>{e.removeEventListener("keydown",onKeyDown)}},[p,E,m,M,R,L]),u.useEffect(()=>{if(!h)return;let e=m.floating.current,n=m.domReference.current,r=!1;function handlePointerDown(){r=!0,setTimeout(()=>{r=!1})}function handleFocusOutside(a){let o=a.relatedTarget,u=!(contains(n,o)||contains(e,o)||contains(o,e)||contains(null==_?void 0:_.portalNode,o)||null!=o&&o.hasAttribute("data-floating-ui-focus-guard")||k&&(getChildren(k.nodesRef.current,b).find(e=>{var n,r;return contains(null==(n=e.context)?void 0:n.refs.floating.current,o)||contains(null==(r=e.context)?void 0:r.refs.domReference.current,o)})||(function(e,n){var r;let a=[],o=null==(r=e.find(e=>e.id===n))?void 0:r.parentId;for(;o;){let n=e.find(e=>e.id===o);o=null==n?void 0:n.parentId,n&&(a=a.concat(n))}return a})(k.nodesRef.current,b).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.refs.floating.current)===o||(null==(r=e.context)?void 0:r.refs.domReference.current)===o})));o&&u&&!r&&o!==I.current&&(T.current=!0,setTimeout(()=>y(!1)))}if(e&&isHTMLElement(n))return n.addEventListener("focusout",handleFocusOutside),n.addEventListener("pointerdown",handlePointerDown),p||e.addEventListener("focusout",handleFocusOutside),()=>{n.removeEventListener("focusout",handleFocusOutside),n.removeEventListener("pointerdown",handlePointerDown),p||e.removeEventListener("focusout",handleFocusOutside)}},[p,b,k,m,_,y,h]),u.useEffect(()=>{var e;let n=m.floating.current,r=m.domReference.current,a=Array.from((null==_?void 0:null==(e=_.portalNode)?void 0:e.querySelectorAll("[data-floating-ui-portal]"))||[]);if(n&&isHTMLElement(r)&&p){let e=[n,...a,...[N.current,O.current].filter(Boolean)],o=hideOthers(E.current.includes("reference")||M?e.concat(r):e);return()=>{o()}}},[p,E,_,m,M]),u.useEffect(()=>{let e=m.floating.current;if(p&&!o&&e){let n=[],r=getTabbableOptions(),a=tabbable(getDocument(e).body,r),o=L(),u=a.filter(e=>!o.includes(e));return u.forEach((e,r)=>{n[r]=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")}),()=>{u.forEach((e,r)=>{let a=n[r];null==a?e.removeAttribute("tabindex"):e.setAttribute("tabindex",a)})}}},[p,o,m,L]),x(()=>{let e=m.floating.current;if(!e)return;let n=getDocument(e),r=f,a=!1,o=activeElement$1(n);I.current=o;let u=L(e),p=("number"==typeof d?u[d]:d.current)||e;function onDismiss(e){if("escapeKey"===e.type&&m.domReference.current&&(I.current=m.domReference.current),["referencePress","escapeKey"].includes(e.type))return;let n=e.data.returnFocus;"object"==typeof n?(r=!0,a=n.preventScroll):r=n}return A||enqueueFocus(p,{preventScroll:p===e}),v.on("dismiss",onDismiss),()=>{if(v.off("dismiss",onDismiss),contains(e,activeElement$1(n))&&m.domReference.current&&(I.current=m.domReference.current),r&&isHTMLElement(I.current)&&!T.current){if(m.domReference.current){var o;null==(o=I.current)||o.focus({preventScroll:a})}else enqueueFocus(I.current,{cancelPrevious:!1,preventScroll:a})}}},[L,d,f,m,v,A]),x(()=>{if(_)return _.setFocusManagerState({...n,modal:p}),()=>{_.setFocusManagerState(null)}},[_,p,n]),x(()=>{let e=m.floating.current;if(!A&&e&&(setState(),"function"==typeof MutationObserver)){let n=new MutationObserver(setState);return n.observe(e,{childList:!0,subtree:!0}),()=>{n.disconnect()}}function setState(){C(R().length)}},[R,A,m]);let P=o&&(D||p)&&!M;function renderDismissButton(e){return g&&p?u.createElement(B,{ref:"start"===e?N:O,onClick:()=>y(!1)},"string"==typeof g?g:"Dismiss"):null}return u.createElement(u.Fragment,null,P&&u.createElement(F,{ref:null==_?void 0:_.beforeInsideRef,onFocus:e=>{if(p){let e=L();enqueueFocus("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=_&&_.preserveTabOrder&&_.portalNode){if(T.current=!1,isOutsideEvent(e,_.portalNode)){let e=getNextTabbable()||w;null==e||e.focus()}else{var n;null==(n=_.beforeOutsideRef.current)||n.focus()}}}}),M?null:renderDismissButton("start"),u.cloneElement(r,0===S||a.includes("floating")?{tabIndex:0}:{}),renderDismissButton("end"),P&&u.createElement(F,{ref:null==_?void 0:_.afterInsideRef,onFocus:e=>{if(p)enqueueFocus(L()[0]);else if(null!=_&&_.preserveTabOrder&&_.portalNode){if(T.current=!0,isOutsideEvent(e,_.portalNode)){let e=getPreviousTabbable()||w;null==e||e.focus()}else{var n;null==(n=_.afterOutsideRef.current)||n.focus()}}}}))}function isButtonTarget(e){return isHTMLElement(e.target)&&"BUTTON"===e.target.tagName}let useClick=function(e,n){let{open:r,onOpenChange:a,dataRef:o,refs:d}=e,{enabled:f=!0,event:p="click",toggle:g=!0,ignoreMouse:h=!1,keyboardHandlers:m=!0}=void 0===n?{}:n,b=u.useRef();return u.useMemo(()=>f?{reference:{onPointerDown(e){b.current=e.pointerType},onMouseDown(e){0!==e.button||isMouseLikePointerType(b.current,!0)&&h||"click"===p||(r?g&&(!o.current.openEvent||"mousedown"===o.current.openEvent.type)&&a(!1):(e.preventDefault(),a(!0)),o.current.openEvent=e.nativeEvent)},onClick(e){if("mousedown"===p&&b.current){b.current=void 0;return}isMouseLikePointerType(b.current,!0)&&h||(r?g&&(!o.current.openEvent||"click"===o.current.openEvent.type)&&a(!1):a(!0),o.current.openEvent=e.nativeEvent)},onKeyDown(e){b.current=void 0,!(!m||isButtonTarget(e))&&(" "!==e.key||isTypeableElement(d.domReference.current)||e.preventDefault(),"Enter"===e.key&&(r?g&&a(!1):a(!0)))},onKeyUp(e){m&&!(isButtonTarget(e)||isTypeableElement(d.domReference.current))&&" "===e.key&&(r?g&&a(!1):a(!0))}}}:{},[f,o,p,h,m,d,g,r,a])};function isEventTargetWithin(e,n){return null!=n&&("composedPath"in e?e.composedPath().includes(n):null!=e.target&&n.contains(e.target))}let z={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},j={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeBubblesProp=function(e){var n,r;return void 0===e&&(e=!0),{escapeKeyBubbles:"boolean"==typeof e?e:null==(n=e.escapeKey)||n,outsidePressBubbles:"boolean"==typeof e?e:null==(r=e.outsidePress)||r}},useDismiss=function(e,n){let{open:r,onOpenChange:a,refs:o,events:d,nodeId:f}=e,{enabled:p=!0,escapeKey:g=!0,outsidePress:h=!0,outsidePressEvent:m="pointerdown",referencePress:b=!1,referencePressEvent:y="pointerdown",ancestorScroll:v=!1,bubbles:w=!0}=void 0===n?{}:n,k=useFloatingTree(),_=null!=useFloatingParentNodeId(),x=useEvent("function"==typeof h?h:()=>!1),S="function"==typeof h?x:h,C=u.useRef(!1),{escapeKeyBubbles:A,outsidePressBubbles:N}=normalizeBubblesProp(w);return u.useEffect(()=>{if(!r||!p)return;function onKeyDown(e){"Escape"!==e.key||!A&&k&&getChildren(k.nodesRef.current,f).length>0||(d.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),a(!1))}function onOutsidePress(e){let n=C.current;if(C.current=!1,n||"function"==typeof S&&!S(e))return;let r=getTarget(e);if(isElement(r)&&o.floating.current){let n=o.floating.current.ownerDocument.defaultView||window,a=r.scrollWidth>r.clientWidth,u=r.scrollHeight>r.clientHeight,d=u&&e.offsetX>r.clientWidth;if(u){let a="rtl"===n.getComputedStyle(r).direction;a&&(d=e.offsetX<=r.offsetWidth-r.clientWidth)}if(d||a&&e.offsetY>r.clientHeight)return}let u=k&&getChildren(k.nodesRef.current,f).some(n=>{var r;return isEventTargetWithin(e,null==(r=n.context)?void 0:r.refs.floating.current)});isEventTargetWithin(e,o.floating.current)||isEventTargetWithin(e,o.domReference.current)||u||!N&&k&&getChildren(k.nodesRef.current,f).length>0||(d.emit("dismiss",{type:"outsidePress",data:{returnFocus:_?{preventScroll:!0}:isVirtualClick(e)||isVirtualPointerEvent(e)}}),a(!1))}function onScroll(){a(!1)}let e=getDocument(o.floating.current);g&&e.addEventListener("keydown",onKeyDown),S&&e.addEventListener(m,onOutsidePress);let n=[];return v&&(isElement(o.domReference.current)&&(n=(0,E.Kx)(o.domReference.current)),isElement(o.floating.current)&&(n=n.concat((0,E.Kx)(o.floating.current))),!isElement(o.reference.current)&&o.reference.current&&o.reference.current.contextElement&&(n=n.concat((0,E.Kx)(o.reference.current.contextElement)))),(n=n.filter(n=>{var r;return n!==(null==(r=e.defaultView)?void 0:r.visualViewport)})).forEach(e=>{e.addEventListener("scroll",onScroll,{passive:!0})}),()=>{g&&e.removeEventListener("keydown",onKeyDown),S&&e.removeEventListener(m,onOutsidePress),n.forEach(e=>{e.removeEventListener("scroll",onScroll)})}},[g,S,m,d,k,f,r,a,v,p,A,N,o,_]),u.useEffect(()=>{C.current=!1},[S,m]),u.useMemo(()=>p?{reference:{[z[y]]:()=>{b&&(d.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),a(!1))}},floating:{[j[m]]:()=>{C.current=!0}}}:{},[p,d,b,m,y,a])},U=!1,H="ArrowUp",$="ArrowDown",q="ArrowLeft",K="ArrowRight";function isDifferentRow(e,n,r){return Math.floor(e/n)!==r}function isIndexOutOfBounds(e,n){return n<0||n>=e.current.length}function findNonDisabledIndex(e,n){let{startingIndex:r=-1,decrement:a=!1,disabledIndices:o,amount:u=1}=void 0===n?{}:n,d=e.current,f=r;do{var p,g;f+=a?-u:u}while(f>=0&&f<=d.length-1&&(o?o.includes(f):null==d[f]||(null==(p=d[f])?void 0:p.hasAttribute("disabled"))||(null==(g=d[f])?void 0:g.getAttribute("aria-disabled"))==="true"));return f}function doSwitch(e,n,r){switch(e){case"vertical":return n;case"horizontal":return r;default:return n||r}}function isMainOrientationKey(e,n){return doSwitch(n,e===H||e===$,e===q||e===K)}function isMainOrientationToEndKey(e,n,r){return doSwitch(n,e===$,r?e===q:e===K)||"Enter"===e||" "==e||""===e}function getMinIndex(e,n){return findNonDisabledIndex(e,{disabledIndices:n})}function getMaxIndex(e,n){return findNonDisabledIndex(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:n})}let useListNavigation=function(e,n){let{open:r,onOpenChange:a,refs:o}=e,{listRef:d,activeIndex:f,onNavigate:p=()=>{},enabled:g=!0,selectedIndex:h=null,allowEscape:m=!1,loop:b=!1,nested:y=!1,rtl:v=!1,virtual:E=!1,focusItemOnOpen:k="auto",focusItemOnHover:_=!0,openOnArrowKeyDown:S=!0,disabledIndices:C,orientation:A="vertical",cols:N=1,scrollItemIntoView:O=!0}=void 0===n?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:n,T=useFloatingParentNodeId(),I=useFloatingTree(),D=useEvent(p),M=u.useRef(k),R=u.useRef(null!=h?h:-1),L=u.useRef(null),F=u.useRef(!0),P=u.useRef(D),B=u.useRef(r),z=u.useRef(!1),j=floating_ui_react_esm_useLatestRef(C),V=floating_ui_react_esm_useLatestRef(r),W=floating_ui_react_esm_useLatestRef(O),[G,Z]=u.useState(),X=u.useCallback((e,n)=>{let r=e.current[n.current];E?Z(null==r?void 0:r.id):enqueueFocus(r,{preventScroll:!0,sync:!!(isMac()&&isSafari())&&(U||z.current)}),requestAnimationFrame(()=>{let e=W.current;e&&r&&!F.current&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})},[E,W]);return x(()=>{document.createElement("div").focus({get preventScroll(){return U=!0,!1}})},[]),x(()=>{g&&(r?M.current&&null!=h&&D(h):B.current&&(R.current=-1,P.current(null)))},[g,r,h,D]),x(()=>{g&&r&&(null==f?(z.current=!1,null==h&&(B.current&&(R.current=-1,X(d,R)),!B.current&&M.current&&(null!=L.current||!0===M.current&&null==L.current)&&(R.current=null==L.current||isMainOrientationToEndKey(L.current,A,v)||y?getMinIndex(d,j.current):getMaxIndex(d,j.current),D(R.current)))):isIndexOutOfBounds(d,f)||(R.current=f,X(d,R)))},[g,r,f,h,y,d,A,v,D,X,j]),x(()=>{if(g&&B.current&&!r){var e,n;let r=null==I?void 0:null==(e=I.nodesRef.current.find(e=>e.id===T))?void 0:null==(n=e.context)?void 0:n.refs.floating.current;r&&!contains(r,activeElement$1(getDocument(r)))&&r.focus({preventScroll:!0})}},[g,r,I,T]),x(()=>{L.current=null,P.current=D,B.current=r}),u.useMemo(()=>{if(!g)return{};let e=j.current;function onKeyDown(n){var u;if(F.current=!1,z.current=!0,!V.current&&n.currentTarget===o.floating.current)return;if(y&&(u=n.key,doSwitch(A,v?u===K:u===q,u===H))){stopEvent(n),a(!1),isHTMLElement(o.domReference.current)&&o.domReference.current.focus();return}let f=R.current,p=getMinIndex(d,e),g=getMaxIndex(d,e);if("Home"===n.key&&(R.current=p,D(R.current)),"End"===n.key&&(R.current=g,D(R.current)),N>1){let r=R.current;if(n.key===H){if(stopEvent(n),-1===r)R.current=g;else if(R.current=findNonDisabledIndex(d,{startingIndex:r,amount:N,decrement:!0,disabledIndices:e}),b&&(r-N<p||R.current<0)){let e=r%N,n=g%N,a=g-(n-e);n===e?R.current=g:R.current=n>e?a:a-N}isIndexOutOfBounds(d,R.current)&&(R.current=r),D(R.current)}if(n.key===$&&(stopEvent(n),-1===r?R.current=p:(R.current=findNonDisabledIndex(d,{startingIndex:r,amount:N,disabledIndices:e}),b&&r+N>g&&(R.current=findNonDisabledIndex(d,{startingIndex:r%N-N,amount:N,disabledIndices:e}))),isIndexOutOfBounds(d,R.current)&&(R.current=r),D(R.current)),"both"===A){let a=Math.floor(r/N);n.key===K&&(stopEvent(n),r%N!=N-1?(R.current=findNonDisabledIndex(d,{startingIndex:r,disabledIndices:e}),b&&isDifferentRow(R.current,N,a)&&(R.current=findNonDisabledIndex(d,{startingIndex:r-r%N-1,disabledIndices:e}))):b&&(R.current=findNonDisabledIndex(d,{startingIndex:r-r%N-1,disabledIndices:e})),isDifferentRow(R.current,N,a)&&(R.current=r)),n.key===q&&(stopEvent(n),r%N!=0?(R.current=findNonDisabledIndex(d,{startingIndex:r,disabledIndices:e,decrement:!0}),b&&isDifferentRow(R.current,N,a)&&(R.current=findNonDisabledIndex(d,{startingIndex:r+(N-r%N),decrement:!0,disabledIndices:e}))):b&&(R.current=findNonDisabledIndex(d,{startingIndex:r+(N-r%N),decrement:!0,disabledIndices:e})),isDifferentRow(R.current,N,a)&&(R.current=r));let o=Math.floor(g/N)===a;isIndexOutOfBounds(d,R.current)&&(b&&o?R.current=n.key===q?g:findNonDisabledIndex(d,{startingIndex:r-r%N-1,disabledIndices:e}):R.current=r),D(R.current);return}}if(isMainOrientationKey(n.key,A)){if(stopEvent(n),r&&!E&&activeElement$1(n.currentTarget.ownerDocument)===n.currentTarget){R.current=isMainOrientationToEndKey(n.key,A,v)?p:g,D(R.current);return}isMainOrientationToEndKey(n.key,A,v)?b?R.current=f>=g?m&&f!==d.current.length?-1:p:findNonDisabledIndex(d,{startingIndex:f,disabledIndices:e}):R.current=Math.min(g,findNonDisabledIndex(d,{startingIndex:f,disabledIndices:e})):b?R.current=f<=p?m&&-1!==f?d.current.length:g:findNonDisabledIndex(d,{startingIndex:f,decrement:!0,disabledIndices:e}):R.current=Math.max(p,findNonDisabledIndex(d,{startingIndex:f,decrement:!0,disabledIndices:e})),isIndexOutOfBounds(d,R.current)?D(null):D(R.current)}}function checkVirtualMouse(e){"auto"===k&&isVirtualClick(e.nativeEvent)&&(M.current=!0)}return{reference:{...E&&r&&null!=f&&{"aria-activedescendant":G},onKeyDown(n){F.current=!1;let o=0===n.key.indexOf("Arrow");if(E&&r)return onKeyDown(n);if(!r&&!S&&o)return;let u=o||"Enter"===n.key||" "===n.key||""===n.key;if(u&&(L.current=n.key),y){var f;f=n.key,doSwitch(A,v?f===q:f===K,f===$)&&(stopEvent(n),r?(R.current=getMinIndex(d,e),D(R.current)):a(!0));return}isMainOrientationKey(n.key,A)&&(null!=h&&(R.current=h),stopEvent(n),!r&&S?a(!0):onKeyDown(n),r&&D(R.current))},onFocus(){r&&D(null)},onPointerDown:function(e){M.current=k,"auto"===k&&isVirtualPointerEvent(e.nativeEvent)&&(M.current=!0)},onMouseDown:checkVirtualMouse,onClick:checkVirtualMouse},floating:{"aria-orientation":"both"===A?void 0:A,...E&&null!=f&&{"aria-activedescendant":G},onKeyDown,onPointerMove(){F.current=!0}},item:{onFocus(e){let{currentTarget:n}=e,r=d.current.indexOf(n);-1!==r&&f!==r&&D(r)},onClick:e=>{let{currentTarget:n}=e;return n.focus({preventScroll:!0})},..._&&{onMouseMove(e){let{currentTarget:n}=e;if(n){let e=d.current.indexOf(n);-1!==e&&f!==e&&D(e)}},onPointerLeave(){if(F.current&&(R.current=-1,X(d,R),(0,w.flushSync)(()=>D(null)),!E)){var e;null==(e=o.floating.current)||e.focus({preventScroll:!0})}}}}}},[G,j,V,d,g,A,v,E,r,f,y,h,S,_,m,N,b,o,k,X,D,a])},useRole=function(e,n){let{open:r}=e,{enabled:a=!0,role:o="dialog"}=void 0===n?{}:n,d=N(),f=N();return u.useMemo(()=>{let e={id:d,role:o};return a?"tooltip"===o?{reference:{"aria-describedby":r?d:void 0},floating:e}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===o?"dialog":o,"aria-controls":r?d:void 0,..."listbox"===o&&{role:"combobox"},..."menu"===o&&{id:f}},floating:{...e,..."menu"===o&&{"aria-labelledby":f}}}:{}},[a,o,r,d,f])},useTypeahead=function(e,n){var r;let{open:a,dataRef:o}=e,{listRef:d,activeIndex:f,onMatch:p=()=>{},enabled:g=!0,findMatch:h=null,resetMs:m=1e3,ignoreKeys:b=[],selectedIndex:y=null}=void 0===n?{listRef:{current:[]},activeIndex:null}:n,v=u.useRef(),w=u.useRef(""),E=u.useRef(null!=(r=null!=y?y:f)?r:-1),k=u.useRef(null),_=useEvent(p),S=floating_ui_react_esm_useLatestRef(h),C=floating_ui_react_esm_useLatestRef(b);return x(()=>{a&&(clearTimeout(v.current),k.current=null,w.current="")},[a]),x(()=>{if(a&&""===w.current){var e;E.current=null!=(e=null!=y?y:f)?e:-1}},[a,y,f]),u.useMemo(()=>{if(!g)return{};function onKeyDown(e){let n=getTarget(e.nativeEvent);if(isElement(n)&&activeElement$1(getDocument(n))!==e.currentTarget&&n.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==e.currentTarget)return;w.current.length>0&&" "!==w.current[0]&&(o.current.typing=!0," "===e.key&&stopEvent(e));let r=d.current;if(null==r||C.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;let a=r.every(e=>{var n,r;return!e||(null==(n=e[0])?void 0:n.toLocaleLowerCase())!==(null==(r=e[1])?void 0:r.toLocaleLowerCase())});a&&w.current===e.key&&(w.current="",E.current=k.current),w.current+=e.key,clearTimeout(v.current),v.current=setTimeout(()=>{w.current="",E.current=k.current,o.current.typing=!1},m);let u=E.current,f=[...r.slice((u||0)+1),...r.slice(0,(u||0)+1)],p=S.current?S.current(f,w.current):f.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(w.current.toLocaleLowerCase()))===0),g=p?r.indexOf(p):-1;-1!==g&&(_(g),k.current=g)}return{reference:{onKeyDown},floating:{onKeyDown}}},[g,o,d,m,C,S,_])};function floating_ui_react_esm_useFloating(e){let{open:n=!1,onOpenChange:r,whileElementsMounted:a,placement:o,middleware:d,strategy:f,nodeId:p}=void 0===e?{}:e,[g,h]=u.useState(null),m=useFloatingTree(),b=u.useRef(null),y=u.useRef({}),v=u.useState(()=>createPubSub())[0],E=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:o,whileElementsMounted:d,open:f}=e,[p,g]=u.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[h,m]=u.useState(a);deepEqual(h,a)||m(a);let b=u.useRef(null),y=u.useRef(null),v=u.useRef(p),E=useLatestRef(d),x=useLatestRef(o),[S,C]=u.useState(null),[A,N]=u.useState(null),O=u.useCallback(e=>{b.current!==e&&(b.current=e,C(e))},[]),T=u.useCallback(e=>{y.current!==e&&(y.current=e,N(e))},[]),I=u.useCallback(()=>{if(!b.current||!y.current)return;let e={placement:n,strategy:r,middleware:h};x.current&&(e.platform=x.current),(0,k.oo)(b.current,y.current,e).then(e=>{let n={...e,isPositioned:!0};D.current&&!deepEqual(v.current,n)&&(v.current=n,w.flushSync(()=>{g(n)}))})},[h,n,r,x]);_(()=>{!1===f&&v.current.isPositioned&&(v.current.isPositioned=!1,g(e=>({...e,isPositioned:!1})))},[f]);let D=u.useRef(!1);_(()=>(D.current=!0,()=>{D.current=!1}),[]),_(()=>{if(S&&A){if(E.current)return E.current(S,A,I);I()}},[S,A,I,E]);let M=u.useMemo(()=>({reference:b,floating:y,setReference:O,setFloating:T}),[O,T]),R=u.useMemo(()=>({reference:S,floating:A}),[S,A]);return u.useMemo(()=>({...p,update:I,refs:M,elements:R,reference:O,floating:T}),[p,I,M,R,O,T])}({open:n,placement:o,middleware:d,strategy:f,whileElementsMounted:a}),S=useEvent(r),C=u.useMemo(()=>({...E.refs,domReference:b}),[E.refs]),A=u.useMemo(()=>({...E,refs:C,dataRef:y,nodeId:p,events:v,open:n,onOpenChange:S,_:{domReference:g}}),[E,p,v,n,S,C,g]);x(()=>{let e=null==m?void 0:m.nodesRef.current.find(e=>e.id===p);e&&(e.context=A)});let{reference:N}=E,O=u.useCallback(e=>{(isElement(e)||null===e)&&(C.domReference.current=e,h(e)),(isElement(C.reference.current)||null===C.reference.current||null!==e&&!isElement(e))&&N(e)},[N,C]),T=u.useCallback(e=>{let n=isElement(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;N(n)},[N]);return u.useMemo(()=>({...E,context:A,refs:C,reference:O,positionReference:T}),[E,C,A,O,T])}function mergeProps(e,n,r){let a=new Map;return{..."floating"===r&&{tabIndex:-1},...e,...n.map(e=>e?e[r]:null).concat(e).reduce((e,n)=>(n&&Object.entries(n).forEach(n=>{let[r,o]=n;if(0===r.indexOf("on")){if(a.has(r)||a.set(r,[]),"function"==typeof o){var u;null==(u=a.get(r))||u.push(o),e[r]=function(){for(var e,n=arguments.length,o=Array(n),u=0;u<n;u++)o[u]=arguments[u];null==(e=a.get(r))||e.forEach(e=>e(...o))}}}else e[r]=o}),e),{})}}let useInteractions=function(e){void 0===e&&(e=[]);let n=e,r=u.useCallback(n=>mergeProps(n,e,"reference"),n),a=u.useCallback(n=>mergeProps(n,e,"floating"),n),o=u.useCallback(n=>mergeProps(n,e,"item"),n);return u.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:o}),[r,a,o])}},67904:function(e,n,r){"use strict";var a=r(24026);n.Z=void 0;var o=a(r(30638)),u=r(37047),d=(0,o.default)((0,u.jsx)("path",{d:"M18 11v2h4v-2h-4zm-2 6.61c.96.71 2.21 1.65 3.2 2.39.4-.53.8-1.07 1.2-1.6-.99-.74-2.24-1.68-3.2-2.4-.4.54-.8 1.08-1.2 1.61zM20.4 5.6c-.4-.53-.8-1.07-1.2-1.6-.99.74-2.24 1.68-3.2 2.4.4.53.8 1.07 1.2 1.6.96-.72 2.21-1.65 3.2-2.4zM4 9c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h1v4h2v-4h1l5 3V6L8 9H4zm5.03 1.71L11 9.53v4.94l-1.97-1.18-.48-.29H4v-2h4.55l.48-.29zM15.5 12c0-1.33-.58-2.53-1.5-3.35v6.69c.92-.81 1.5-2.01 1.5-3.34z"}),"CampaignOutlined");n.Z=d},74054:function(e,n,r){"use strict";var a=r(24026);n.Z=void 0;var o=a(r(30638)),u=r(37047),d=(0,o.default)((0,u.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");n.Z=d},76169:function(e,n,r){"use strict";var a=r(24026);n.Z=void 0;var o=a(r(30638)),u=r(37047),d=(0,o.default)((0,u.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");n.Z=d},23900:function(e,n,r){"use strict";var a=r(24026);n.Z=void 0;var o=a(r(30638)),u=r(37047),d=(0,o.default)((0,u.jsx)("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"}),"HourglassFull");n.Z=d},69985:function(e,n,r){"use strict";var a=r(24026);n.Z=void 0;var o=a(r(30638)),u=r(37047),d=(0,o.default)((0,u.jsx)("path",{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-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-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69z"}),"SettingsApplications");n.Z=d},26186:function(e,n,r){"use strict";var a=r(24026);n.Z=void 0;var o=a(r(30638)),u=r(37047),d=(0,o.default)((0,u.jsx)("path",{d:"M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10zm3.61 6.34c1.07 0 1.93.86 1.93 1.93 0 1.07-.86 1.93-1.93 1.93-1.07 0-1.93-.86-1.93-1.93-.01-1.07.86-1.93 1.93-1.93zm-6-1.58c1.3 0 2.36 1.06 2.36 2.36 0 1.3-1.06 2.36-2.36 2.36s-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36zm0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68zM11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09z"}),"SupervisedUserCircle");n.Z=d},98223:function(e,n,r){"use strict";var a=r(24026);n.Z=void 0;var o=a(r(30638)),u=r(37047),d=(0,o.default)((0,u.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"}),"VerifiedUser");n.Z=d},50873:function(e,n,r){"use strict";var a=r(24026);n.Z=void 0;var o=a(r(30638)),u=r(37047),d=(0,o.default)((0,u.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"}),"Work");n.Z=d},56929:function(e,n,r){"use strict";r.d(n,{Z:function(){return f}});var a,o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function buildFormatLongFn(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var u={date:buildFormatLongFn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:buildFormatLongFn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},d={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function buildLocalizeFn(e){return function(n,r){var a;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,u=null!=r&&r.width?String(r.width):o;a=e.formattingValues[u]||e.formattingValues[o]}else{var d=e.defaultWidth,f=null!=r&&r.width?String(r.width):e.defaultWidth;a=e.values[f]||e.values[d]}return a[e.argumentCallback?e.argumentCallback(n):n]}}function buildMatchFn(e){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.width,u=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],d=n.match(u);if(!d)return null;var f=d[0],p=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],g=Array.isArray(p)?function(e,n){for(var r=0;r<e.length;r++)if(n(e[r]))return r}(p,function(e){return e.test(f)}):function(e,n){for(var r in e)if(e.hasOwnProperty(r)&&n(e[r]))return r}(p,function(e){return e.test(f)});return r=e.valueCallback?e.valueCallback(g):g,{value:r=a.valueCallback?a.valueCallback(r):r,rest:n.slice(f.length)}}}var f={code:"en-US",formatDistance:function(e,n,r){var a,u=o[e];return(a="string"==typeof u?u:1===n?u.one:u.other.replace("{{count}}",n.toString()),null!=r&&r.addSuffix)?r.comparison&&r.comparison>0?"in "+a:a+" ago":a},formatLong:u,formatRelative:function(e,n,r,a){return d[e]},localize:{ordinalNumber:function(e,n){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:buildLocalizeFn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:buildLocalizeFn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:buildLocalizeFn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(a={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(a.matchPattern);if(!r)return null;var o=r[0],u=e.match(a.parsePattern);if(!u)return null;var d=a.valueCallback?a.valueCallback(u[0]):u[0];return{value:d=n.valueCallback?n.valueCallback(d):d,rest:e.slice(o.length)}}),era:buildMatchFn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},84043:function(e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,isArray=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},isPlainObject=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var a,o=n.call(e,"constructor"),u=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!u)return!1;for(a in e);return void 0===a||n.call(e,a)},setProperty=function(e,n){a&&"__proto__"===n.name?a(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},getProperty=function(e,r){if("__proto__"===r){if(!n.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function extend(){var e,n,r,a,o,u,d=arguments[0],f=1,p=arguments.length,g=!1;for("boolean"==typeof d&&(g=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(e=arguments[f],null!=e)for(n in e)r=getProperty(d,n),d!==(a=getProperty(e,n))&&(g&&a&&(isPlainObject(a)||(o=isArray(a)))?(o?(o=!1,u=r&&isArray(r)?r:[]):u=r&&isPlainObject(r)?r:{},setProperty(d,{name:n,newValue:extend(g,u,a)})):void 0!==a&&setProperty(d,{name:n,newValue:a}));return d}},45396:function(e){!function(){var n;function format(e){for(var n,r,a,o,u=1,d=[].slice.call(arguments),f=0,p=e.length,g="",h=!1,m=!1,nextArg=function(){return d[u++]};f<p;++f)if(n=e[f],h)switch(h=!1,"."==n?(m=!1,n=e[++f]):"0"==n&&"."==e[f+1]?(m=!0,f+=2,n=e[f]):m=!0,o=function(){for(var r="";/\d/.test(e[f]);)r+=e[f++],n=e[f];return r.length>0?parseInt(r):null}(),n){case"b":g+=parseInt(nextArg(),10).toString(2);break;case"c":"string"==typeof(r=nextArg())||r instanceof String?g+=r:g+=String.fromCharCode(parseInt(r,10));break;case"d":g+=parseInt(nextArg(),10);break;case"f":a=String(parseFloat(nextArg()).toFixed(o||6)),g+=m?a:a.replace(/^0/,"");break;case"j":g+=JSON.stringify(nextArg());break;case"o":g+="0"+parseInt(nextArg(),10).toString(8);break;case"s":g+=nextArg();break;case"x":g+="0x"+parseInt(nextArg(),10).toString(16);break;case"X":g+="0x"+parseInt(nextArg(),10).toString(16).toUpperCase();break;default:g+=n}else"%"===n?h=!0:g+=n;return g}(n=e.exports=format).format=format,n.vsprintf=function(e,n){return format.apply(null,[e].concat(n))},"undefined"!=typeof console&&"function"==typeof console.log&&(n.printf=function(){console.log(format.apply(null,arguments))})}()},84311:function(e){var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,d=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,p=/^\s+|\s+$/g;function trim(e){return e?e.replace(p,""):""}e.exports=function(e,p){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];p=p||{};var g=1,h=1;function updatePosition(e){var n=e.match(r);n&&(g+=n.length);var a=e.lastIndexOf("\n");h=~a?e.length-a:h+e.length}function position(){var e={line:g,column:h};return function(n){return n.position=new Position(e),match(a),n}}function Position(e){this.start=e,this.end={line:g,column:h},this.source=p.source}Position.prototype.content=e;var m=[];function error(n){var r=Error(p.source+":"+g+":"+h+": "+n);if(r.reason=n,r.filename=p.source,r.line=g,r.column=h,r.source=e,p.silent)m.push(r);else throw r}function match(n){var r=n.exec(e);if(r){var a=r[0];return updatePosition(a),e=e.slice(a.length),r}}function comments(e){var n;for(e=e||[];n=comment();)!1!==n&&e.push(n);return e}function comment(){var n=position();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return error("End of comment missing");var a=e.slice(2,r-2);return h+=2,updatePosition(a),e=e.slice(r),h+=2,n({type:"comment",comment:a})}}return match(a),function(){var e,r=[];for(comments(r);e=function(){var e=position(),r=match(o);if(r){if(comment(),!match(u))return error("property missing ':'");var a=match(d),p=e({type:"declaration",property:trim(r[0].replace(n,"")),value:a?trim(a[0].replace(n,"")):""});return match(f),p}}();)!1!==e&&(r.push(e),comments(r));return r}()}},2026:function(e){/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},74887:function(e){e.exports=function(e,n,r,a){var o=-1,u=null==e?0:e.length;for(a&&u&&(r=e[++o]);++o<u;)r=n(r,e[o],o,e);return r}},41169:function(e){e.exports=function(e){return e.split("")}},82910:function(e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},75317:function(e){e.exports=function(e){return function(n){return null==e?void 0:e[n]}}},12927:function(e,n,r){var a=r(47940),o=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(o,""):e}},90135:function(e,n,r){var a=r(49337);e.exports=function(e,n,r){var o=e.length;return r=void 0===r?o:r,!n&&r>=o?e:a(e,n,r)}},49021:function(e,n,r){var a=r(90135),o=r(37275),u=r(90160),d=r(62288);e.exports=function(e){return function(n){var r=o(n=d(n))?u(n):void 0,f=r?r[0]:n.charAt(0),p=r?a(r,1).join(""):n.slice(1);return f[e]()+p}}},88109:function(e,n,r){var a=r(74887),o=r(32744),u=r(71395),d=RegExp("['’]","g");e.exports=function(e){return function(n){return a(u(o(n).replace(d,"")),e,"")}}},89308:function(e,n,r){var a=r(75317)({À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});e.exports=a},37275:function(e){var n=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},64126:function(e){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},90160:function(e,n,r){var a=r(41169),o=r(37275),u=r(35141);e.exports=function(e){return o(e)?u(e):a(e)}},47940:function(e){var n=/\s/;e.exports=function(e){for(var r=e.length;r--&&n.test(e.charAt(r)););return r}},35141:function(e){var n="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\ud83c[\udffb-\udfff]",o="[^"+n+"]",u="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="(?:"+r+"|"+a+")?",p="[\\ufe0e\\ufe0f]?",g="(?:\\u200d(?:"+[o,u,d].join("|")+")"+p+f+")*",h=RegExp(a+"(?="+a+")|(?:"+[o+r+"?",r,u,d,"["+n+"]"].join("|")+")"+(p+f+g),"g");e.exports=function(e){return e.match(h)||[]}},40921:function(e){var n="\ud800-\udfff",r="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",d="['’]",f="["+u+"]",p="["+a+"]",g="[^"+n+u+"\\d+"+r+a+o+"]",h="(?:\ud83c[\udde6-\uddff]){2}",m="[\ud800-\udbff][\udc00-\udfff]",b="["+o+"]",y="(?:"+p+"|"+g+")",v="(?:"+d+"(?:d|ll|m|re|s|t|ve))?",w="(?:"+d+"(?:D|LL|M|RE|S|T|VE))?",E="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",k="[\\ufe0e\\ufe0f]?",_="(?:\\u200d(?:"+["[^"+n+"]",h,m].join("|")+")"+k+E+")*",x="(?:"+["["+r+"]",h,m].join("|")+")"+(k+E+_),S=RegExp([b+"?"+p+"+"+v+"(?="+[f,b,"$"].join("|")+")","(?:"+b+"|"+g+")+"+w+"(?="+[f,b+y,"$"].join("|")+")",b+"?"+y+"+"+v,b+"+"+w,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",x].join("|"),"g");e.exports=function(e){return e.match(S)||[]}},8223:function(e,n,r){var a=r(62288),o=r(47908);e.exports=function(e){return o(a(e).toLowerCase())}},2487:function(e,n,r){var a=r(81747),o=r(37196),u=r(16448),d=Math.max,f=Math.min;e.exports=function(e,n,r){var p,g,h,m,b,y,v=0,w=!1,E=!1,k=!0;if("function"!=typeof e)throw TypeError("Expected a function");function invokeFunc(n){var r=p,a=g;return p=g=void 0,v=n,m=e.apply(a,r)}function shouldInvoke(e){var r=e-y,a=e-v;return void 0===y||r>=n||r<0||E&&a>=h}function timerExpired(){var e,r,a,u=o();if(shouldInvoke(u))return trailingEdge(u);b=setTimeout(timerExpired,(e=u-y,r=u-v,a=n-e,E?f(a,h-r):a))}function trailingEdge(e){return(b=void 0,k&&p)?invokeFunc(e):(p=g=void 0,m)}function debounced(){var e,r=o(),a=shouldInvoke(r);if(p=arguments,g=this,y=r,a){if(void 0===b)return v=e=y,b=setTimeout(timerExpired,n),w?invokeFunc(e):m;if(E)return clearTimeout(b),b=setTimeout(timerExpired,n),invokeFunc(y)}return void 0===b&&(b=setTimeout(timerExpired,n)),m}return n=u(n)||0,a(r)&&(w=!!r.leading,h=(E="maxWait"in r)?d(u(r.maxWait)||0,n):h,k="trailing"in r?!!r.trailing:k),debounced.cancel=function(){void 0!==b&&clearTimeout(b),v=0,p=y=g=b=void 0},debounced.flush=function(){return void 0===b?m:trailingEdge(o())},debounced}},32744:function(e,n,r){var a=r(89308),o=r(62288),u=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,d=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(u,a).replace(d,"")}},47407:function(e,n,r){var a=r(59100),o=r(77814),u=Object.prototype.hasOwnProperty,d=o(function(e,n,r){u.call(e,r)?e[r].push(n):a(e,r,[n])});e.exports=d},37196:function(e,n,r){var a=r(31407);e.exports=function(){return a.Date.now()}},85864:function(e,n,r){var a=r(88109),o=r(47908),u=a(function(e,n,r){return e+(r?" ":"")+o(n)});e.exports=u},16448:function(e,n,r){var a=r(12927),o=r(81747),u=r(30201),d=0/0,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,g=/^0o[0-7]+$/i,h=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(u(e))return d;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var r=p.test(e);return r||g.test(e)?h(e.slice(2),r?2:8):f.test(e)?d:+e}},47908:function(e,n,r){var a=r(49021)("toUpperCase");e.exports=a},71395:function(e,n,r){var a=r(82910),o=r(64126),u=r(62288),d=r(40921);e.exports=function(e,n,r){return(e=u(e),void 0===(n=r?void 0:n))?o(e)?d(e):a(e):e.match(n)||[]}},29018:function(e,n,r){"use strict";r.d(n,{Z:function(){return Trans}});var a=r(94623),o=r(7452),u=r(77099);function Trans(e){var n=e.i18nKey,r=e.values,d=e.components,f=e.fallback,p=e.defaultTrans,g=e.ns,h=(0,o.Z)(g),m=h.t,b=h.lang;return(0,a.useMemo)(function(){var e=m(n,r,{fallback:f,default:p});return e&&d&&0!==d.length?(0,u.Z)(e,d):e},[n,r,d,b])}},77099:function(e,n,r){"use strict";r.d(n,{Z:function(){return function formatElements(e,n){void 0===n&&(n=[]);var r=e.replace(u,"").split(o);if(1===r.length)return e;var d=[],f=r.shift();return f&&d.push(f),(function getElements(e){if(!e.length)return[];var n=e.slice(0,4),r=n[0],a=n[1],o=n[2];return[[r||o,a||"",n[3]]].concat(getElements(e.slice(4,e.length)))})(r).forEach(function(e,r){var o=e[0],u=e[1],f=e[2],p=n[o]||a.createElement(a.Fragment,null);d.push((0,a.cloneElement)(p,{key:r},u?formatElements(u,n):p.props.children)),f&&d.push(f)}),d}}});var a=r(94623),o=/<(\w+) *>(.*?)<\/\1 *>|<(\w+) *\/>/,u=/(?:\r\n|\r|\n)/g},61757:function(e,n,r){"use strict";var a=r(94623);function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}var c=function(){};function l(e,n){return Math.random()*(n-e+1)+e}function s(e,n){return Math.floor(l(e,n))}(0,a.forwardRef)(function(e,n){var r=e.progress,o=e.height,u=e.className,d=e.color,f=void 0===d?"red":d,p=e.background,g=e.onLoaderFinished,h=e.transitionTime,m=void 0===h?300:h,b=e.loaderSpeed,y=void 0===b?500:b,v=e.waitingTime,w=void 0===v?1e3:v,E=e.shadow,k=void 0===E||E,_=e.containerStyle,x=void 0===_?{}:_,S=e.style,C=void 0===S?{}:S,A=e.shadowStyle,N=void 0===A?{}:A,O=e.containerClassName,T=(0,a.useRef)(!1),I=(0,a.useState)(0),D=I[0],M=I[1],R=(0,a.useRef)({active:!1,refreshRate:1e3}),L=(0,a.useState)(!1),F=L[0],P=L[1],B=(0,a.useState)({active:!1,value:20}),z=B[0],j=B[1],U=(0,a.useState)({height:"100%",background:f,transition:"all "+y+"ms ease",width:"0%"}),H=U[0],$=U[1],q=(0,a.useState)({boxShadow:"0 0 10px "+f+", 0 0 10px "+f,width:"5%",opacity:1,position:"absolute",height:"100%",transition:"all "+y+"ms ease",transform:"rotate(3deg) translate(0px, -4px)",left:"-10rem"}),K=q[0],V=q[1];(0,a.useEffect)(function(){return T.current=!0,function(){T.current=!1}},[]),(0,a.useImperativeHandle)(n,function(){return{continuousStart:function(e,n){if(void 0===n&&(n=1e3),!z.active){if(F)console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");else{var r=e||s(10,20);R.current={active:!0,refreshRate:n},M(r),at(r)}}},staticStart:function(e){if(!R.current.active){if(F)console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");else{var n=e||s(30,50);j({active:!0,value:n}),M(n),at(n)}}},complete:function(){F?console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!"):(M(100),at(100))}}}),(0,a.useEffect)(function(){$(i({},H,{background:f})),V(i({},K,{boxShadow:"0 0 10px "+f+", 0 0 5px "+f}))},[f]),(0,a.useEffect)(function(){if(n){if(n&&void 0!==r)return void console.warn('react-top-loading-bar: You can\'t use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.');at(D),P(!1)}else r&&at(r),P(!0)},[r]);var W,G,Z,at=function t(e){e>=100?($(i({},H,{width:"100%"})),k&&V(i({},K,{left:e-10+"%"})),setTimeout(function(){T.current&&($(i({},H,{opacity:0,width:"100%",transition:"all "+m+"ms ease-out",color:f})),setTimeout(function(){T.current&&(R.current.active&&(R.current=i({},R.current,{active:!1}),M(0),t(0)),z.active&&(j(i({},z,{active:!1})),M(0),t(0)),g&&g(),M(0),t(0))},m))},w)):($(function(n){return i({},n,{width:e+"%",opacity:1,transition:e>0?"all "+y+"ms ease":""})}),k&&V(i({},K,{left:e-5.5+"%",transition:e>0?"all "+y+"ms ease":""})))};return W=function(){var e=l(Math.min(10,(100-D)/5),Math.min(20,(100-D)/3));D+e<95&&(M(D+e),at(D+e))},G=R.current.active?R.current.refreshRate:null,Z=(0,a.useRef)(c),(0,a.useEffect)(function(){Z.current=W}),(0,a.useEffect)(function(){},[void 0]),(0,a.useEffect)(function(){if(null!==G&&!1!==G){var e=setInterval(function(){return Z.current()},G);return function(){return clearInterval(e)}}},[G]),(0,a.createElement)("div",{className:void 0===O?"":O,style:i({},{position:"fixed",top:0,left:0,height:void 0===o?2:o,background:void 0===p?"transparent":p,zIndex:99999999999,width:"100%"},x)},(0,a.createElement)("div",{className:void 0===u?"":u,style:i({},H,C)},k?(0,a.createElement)("div",{style:i({},K,N)}):null))})},89283:function(e,n,r){var a=r(84311);function StyleToObject(e,n){var r,o,u,d=null;if(!e||"string"!=typeof e)return d;for(var f=a(e),p="function"==typeof n,g=0,h=f.length;g<h;g++)o=(r=f[g]).property,u=r.value,p?n(o,u,r):u&&(d||(d={}),d[o]=u);return d}e.exports=StyleToObject,e.exports.default=StyleToObject},99006:function(e,n,r){"use strict";r.d(n,{Z:function(){return es_useDebounce}});var a=r(83618),o=r(94623),u=r(2487),d=r.n(u),f=r(76029),p=r(99740),g=r(9007),h=r(71782),es_useDebounceFn=function(e,n){h.Z&&!(0,g.mf)(e)&&console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e));var r,u=(0,f.Z)(e),m=null!==(r=null==n?void 0:n.wait)&&void 0!==r?r:1e3,b=(0,o.useMemo)(function(){return d()(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return u.current.apply(u,(0,a.ev)([],(0,a.CR)(e),!1))},m,n)},[]);return(0,p.Z)(function(){b.cancel()}),{run:b,cancel:b.cancel,flush:b.flush}},es_useDebounce=function(e,n){var r=(0,a.CR)((0,o.useState)(e),2),u=r[0],d=r[1],f=es_useDebounceFn(function(){d(e)},n).run;return(0,o.useEffect)(function(){f()},[e]),u}},76029:function(e,n,r){"use strict";var a=r(94623);n.Z=function(e){var n=(0,a.useRef)(e);return n.current=e,n}},99740:function(e,n,r){"use strict";var a=r(94623),o=r(76029),u=r(9007),d=r(71782);n.Z=function(e){d.Z&&!(0,u.mf)(e)&&console.error("useUnmount expected parameter is a function, got ".concat(typeof e));var n=(0,o.Z)(e);(0,a.useEffect)(function(){return function(){n.current()}},[])}},9007:function(e,n,r){"use strict";r.d(n,{mf:function(){return isFunction}});var isFunction=function(e){return"function"==typeof e}},71782:function(e,n){"use strict";n.Z=!1},6586:function(e,n){"use strict";function NoopHead(){return null}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return NoopHead}}),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},13036:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e,n){for(var r in n)Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}(n,{suspense:function(){return suspense},NoSSR:function(){return NoSSR}});let a=r(43038);function suspense(){let e=Error(a.NEXT_DYNAMIC_NO_SSR_CODE);throw e.digest=a.NEXT_DYNAMIC_NO_SSR_CODE,e}function NoSSR(e){let{children:n}=e;return n}},36505:function(){},11426:function(e){let Response=class Response{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function escapeHTML(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function inherit$1(e,...n){let r=Object.create(null);for(let n in e)r[n]=e[n];return n.forEach(function(e){for(let n in e)r[n]=e[n]}),r}let emitsWrappingTags=e=>!!e.scope,scopeToCSSClass=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let r=e.split(".");return[`${n}${r.shift()}`,...r.map((e,n)=>`${e}${"_".repeat(n+1)}`)].join(" ")}return`${n}${e}`};let HTMLRenderer=class HTMLRenderer{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=escapeHTML(e)}openNode(e){if(!emitsWrappingTags(e))return;let n=scopeToCSSClass(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){emitsWrappingTags(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}};let newNode=(e={})=>{let n={children:[]};return Object.assign(n,e),n};let TokenTree=class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let n=newNode({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(n=>this._walk(e,n)),e.closeNode(n)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{TokenTree._collapse(e)}))}};let TokenTreeEmitter=class TokenTreeEmitter extends TokenTree{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){let r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){let e=new HTMLRenderer(this,this.options);return e.value()}finalize(){return this.closeAllNodes(),!0}};function source(e){return e?"string"==typeof e?e:e.source:null}function lookahead(e){return concat("(?=",e,")")}function anyNumberOfTimes(e){return concat("(?:",e,")*")}function optional(e){return concat("(?:",e,")?")}function concat(...e){let n=e.map(e=>source(e)).join("");return n}function either(...e){let n=function(e){let n=e[e.length-1];return"object"==typeof n&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}(e),r="("+(n.capture?"":"?:")+e.map(e=>source(e)).join("|")+")";return r}function countMatchGroups(e){return RegExp(e.toString()+"|").exec("").length-1}let n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(e,{joinWith:r}){let a=0;return e.map(e=>{a+=1;let r=a,o=source(e),u="";for(;o.length>0;){let e=n.exec(o);if(!e){u+=o;break}u+=o.substring(0,e.index),o=o.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?u+="\\"+String(Number(e[1])+r):(u+=e[0],"("===e[0]&&a++)}return u}).map(e=>`(${e})`).join(r)}let r="[a-zA-Z]\\w*",a="[a-zA-Z_]\\w*",o="\\b\\d+(\\.\\d+)?",u="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",d="\\b(0b[01]+)",f={begin:"\\\\[\\s\\S]",relevance:0},COMMENT=function(e,n,r={}){let a=inherit$1({scope:"comment",begin:e,end:n,contains:[]},r);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let o=either("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:concat(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},p=COMMENT("//","$"),g=COMMENT("/\\*","\\*/"),h=COMMENT("#","$");var m=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:r,UNDERSCORE_IDENT_RE:a,NUMBER_RE:o,C_NUMBER_RE:u,BINARY_NUMBER_RE:d,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{let n=/^#![ ]*\//;return e.binary&&(e.begin=concat(n,/.*\b/,e.binary,/\b.*/)),inherit$1({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:f,APOS_STRING_MODE:{scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[f]},QUOTE_STRING_MODE:{scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[f]},PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:COMMENT,C_LINE_COMMENT_MODE:p,C_BLOCK_COMMENT_MODE:g,HASH_COMMENT_MODE:h,NUMBER_MODE:{scope:"number",begin:o,relevance:0},C_NUMBER_MODE:{scope:"number",begin:u,relevance:0},BINARY_NUMBER_MODE:{scope:"number",begin:d,relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[f,{begin:/\[/,end:/\]/,relevance:0,contains:[f]}]}]},TITLE_MODE:{scope:"title",begin:r,relevance:0},UNDERSCORE_TITLE_MODE:{scope:"title",begin:a,relevance:0},METHOD_GUARD:{begin:"\\.\\s*"+a,relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});function skipIfHasPrecedingDot(e,n){let r=e.input[e.index-1];"."===r&&n.ignoreMatch()}function scopeClassName(e,n){void 0!==e.className&&(e.scope=e.className,delete e.className)}function beginKeywords(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=skipIfHasPrecedingDot,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function compileIllegal(e,n){Array.isArray(e.illegal)&&(e.illegal=either(...e.illegal))}function compileMatch(e,n){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function compileRelevance(e,n){void 0===e.relevance&&(e.relevance=1)}let beforeMatchExt=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw Error("beforeMatch cannot be used with starts");let r=Object.assign({},e);Object.keys(e).forEach(n=>{delete e[n]}),e.keywords=r.keywords,e.begin=concat(r.beforeMatch,lookahead(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},b=["of","and","for","in","not","or","if","then","parent","list","value"],y={},error=e=>{console.error(e)},warn=(e,...n)=>{console.log(`WARN: ${e}`,...n)},deprecated=(e,n)=>{y[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),y[`${e}/${n}`]=!0)},v=Error();function remapScopeNames(e,n,{key:r}){let a=0,o=e[r],u={},d={};for(let e=1;e<=n.length;e++)d[e+a]=o[e],u[e+a]=!0,a+=countMatchGroups(n[e-1]);e[r]=d,e[r]._emit=u,e[r]._multi=!0}function MultiClass(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw error("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),v;if("object"!=typeof e.beginScope||null===e.beginScope)throw error("beginScope must be object"),v;remapScopeNames(e,e.begin,{key:"beginScope"}),e.begin=_rewriteBackreferences(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw error("skip, excludeEnd, returnEnd not compatible with endScope: {}"),v;if("object"!=typeof e.endScope||null===e.endScope)throw error("endScope must be object"),v;remapScopeNames(e,e.end,{key:"endScope"}),e.end=_rewriteBackreferences(e.end,{joinWith:""})}}(e)}let HTMLInjectionError=class HTMLInjectionError extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}};let w=Symbol("nomatch"),HLJS=function(e){let n=Object.create(null),r=Object.create(null),a=[],o=!0,u="Could not find the language '{}', did you forget to load/include a language module?",d={disableAutodetect:!0,name:"Plain text",contains:[]},f={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter};function shouldNotHighlight(e){return f.noHighlightRe.test(e)}function highlight(e,n,r){let a="",o="";"object"==typeof n?(a=e,r=n.ignoreIllegals,o=n.language):(deprecated("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,a=n),void 0===r&&(r=!0);let u={code:a,language:o};fire("before:highlight",u);let d=u.result?u.result:_highlight(u.language,u.code,r);return d.code=u.code,fire("after:highlight",d),d}function _highlight(e,r,a,d){let p=Object.create(null);function processKeywords(){if(!v.keywords){k.addText(_);return}let e=0;v.keywordPatternRe.lastIndex=0;let n=v.keywordPatternRe.exec(_),r="";for(;n;){r+=_.substring(e,n.index);let a=h.case_insensitive?n[0].toLowerCase():n[0],o=v.keywords[a];if(o){let[e,u]=o;if(k.addText(r),r="",p[a]=(p[a]||0)+1,p[a]<=7&&(x+=u),e.startsWith("_"))r+=n[0];else{let r=h.classNameAliases[e]||e;emitKeyword(n[0],r)}}else r+=n[0];e=v.keywordPatternRe.lastIndex,n=v.keywordPatternRe.exec(_)}r+=_.substring(e),k.addText(r)}function processBuffer(){null!=v.subLanguage?function(){if(""===_)return;let e=null;if("string"==typeof v.subLanguage){if(!n[v.subLanguage]){k.addText(_);return}e=_highlight(v.subLanguage,_,!0,E[v.subLanguage]),E[v.subLanguage]=e._top}else e=highlightAuto(_,v.subLanguage.length?v.subLanguage:null);v.relevance>0&&(x+=e.relevance),k.__addSublanguage(e._emitter,e.language)}():processKeywords(),_=""}function emitKeyword(e,n){""!==e&&(k.startScope(n),k.addText(e),k.endScope())}function emitMultiClass(e,n){let r=1,a=n.length-1;for(;r<=a;){if(!e._emit[r]){r++;continue}let a=h.classNameAliases[e[r]]||e[r],o=n[r];a?emitKeyword(o,a):(_=o,processKeywords(),_=""),r++}}function startNewMode(e,n){return e.scope&&"string"==typeof e.scope&&k.openNode(h.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(emitKeyword(_,h.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),_=""):e.beginScope._multi&&(emitMultiClass(e.beginScope,n),_="")),v=Object.create(e,{parent:{value:v}})}let g={};function processLexeme(n,u){let d=u&&u[0];if(_+=n,null==d)return processBuffer(),0;if("begin"===g.type&&"end"===u.type&&g.index===u.index&&""===d){if(_+=r.slice(u.index,u.index+1),!o){let n=Error(`0 width match regex (${e})`);throw n.languageName=e,n.badRule=g.rule,n}return 1}if(g=u,"begin"===u.type)return function(e){let n=e[0],r=e.rule,a=new Response(r),o=[r.__beforeBegin,r["on:begin"]];for(let r of o)if(r&&(r(e,a),a.isMatchIgnored))return 0===v.matcher.regexIndex?(_+=n[0],1):(A=!0,0);return r.skip?_+=n:(r.excludeBegin&&(_+=n),processBuffer(),r.returnBegin||r.excludeBegin||(_=n)),startNewMode(r,e),r.returnBegin?0:n.length}(u);if("illegal"!==u.type||a){if("end"===u.type){let e=function(e){let n=e[0],a=r.substring(e.index),o=function endOfMode(e,n,r){let a=function(e,n){let r=e&&e.exec(n);return r&&0===r.index}(e.endRe,r);if(a){if(e["on:end"]){let r=new Response(e);e["on:end"](n,r),r.isMatchIgnored&&(a=!1)}if(a){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return endOfMode(e.parent,n,r)}(v,e,a);if(!o)return w;let u=v;v.endScope&&v.endScope._wrap?(processBuffer(),emitKeyword(n,v.endScope._wrap)):v.endScope&&v.endScope._multi?(processBuffer(),emitMultiClass(v.endScope,e)):u.skip?_+=n:(u.returnEnd||u.excludeEnd||(_+=n),processBuffer(),u.excludeEnd&&(_=n));do v.scope&&k.closeNode(),v.skip||v.subLanguage||(x+=v.relevance),v=v.parent;while(v!==o.parent);return o.starts&&startNewMode(o.starts,e),u.returnEnd?0:n.length}(u);if(e!==w)return e}}else{let e=Error('Illegal lexeme "'+d+'" for mode "'+(v.scope||"<unnamed>")+'"');throw e.mode=v,e}if("illegal"===u.type&&""===d)return 1;if(C>1e5&&C>3*u.index){let e=Error("potential infinite loop, way more iterations than matches");throw e}return _+=d,d.length}let h=getLanguage(e);if(!h)throw error(u.replace("{}",e)),Error('Unknown language: "'+e+'"');let m=function(e){function langRe(n,r){return RegExp(source(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}let MultiRegex=class MultiRegex{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=countMatchGroups(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=langRe(_rewriteBackreferences(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let n=this.matcherRe.exec(e);if(!n)return null;let r=n.findIndex((e,n)=>n>0&&void 0!==e),a=this.matchIndexes[r];return n.splice(0,r),Object.assign(n,a)}};let ResumableMultiRegex=class ResumableMultiRegex{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let n=new MultiRegex;return this.rules.slice(e).forEach(([e,r])=>n.addRule(e,r)),n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){let n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;let r=n.exec(e);if(this.resumingScanAtSamePosition()){if(r&&r.index===this.lastIndex);else{let n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,r=n.exec(e)}}return r&&(this.regexIndex+=r.position+1,this.regexIndex===this.count&&this.considerAll()),r}};if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return e.classNameAliases=inherit$1(e.classNameAliases||{}),function compileMode(n,r){if(n.isCompiled)return n;[scopeClassName,compileMatch,MultiClass,beforeMatchExt].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[beginKeywords,compileIllegal,compileRelevance].forEach(e=>e(n,r)),n.isCompiled=!0;let a=null;return"object"==typeof n.keywords&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),a=n.keywords.$pattern,delete n.keywords.$pattern),a=a||/\w+/,n.keywords&&(n.keywords=function compileKeywords(e,n,r="keyword"){let a=Object.create(null);return"string"==typeof e?compileList(r,e.split(" ")):Array.isArray(e)?compileList(r,e):Object.keys(e).forEach(function(r){Object.assign(a,compileKeywords(e[r],n,r))}),a;function compileList(e,r){n&&(r=r.map(e=>e.toLowerCase())),r.forEach(function(n){var r,o;let u=n.split("|");a[u[0]]=[e,(r=u[0],(o=u[1])?Number(o):b.includes(r.toLowerCase())?0:1)]})}}(n.keywords,e.case_insensitive)),n.keywordPatternRe=langRe(a,!0),r&&(n.begin||(n.begin=/\B|\b/),n.beginRe=langRe(n.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(n.endRe=langRe(n.end)),n.terminatorEnd=source(n.end)||"",n.endsWithParent&&r.terminatorEnd&&(n.terminatorEnd+=(n.end?"|":"")+r.terminatorEnd)),n.illegal&&(n.illegalRe=langRe(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(e){var r;return((r="self"===e?n:e).variants&&!r.cachedVariants&&(r.cachedVariants=r.variants.map(function(e){return inherit$1(r,{variants:null},e)})),r.cachedVariants)?r.cachedVariants:!function dependencyOnParent(e){return!!e&&(e.endsWithParent||dependencyOnParent(e.starts))}(r)?Object.isFrozen(r)?inherit$1(r):r:inherit$1(r,{starts:r.starts?inherit$1(r.starts):null})})),n.contains.forEach(function(e){compileMode(e,n)}),n.starts&&compileMode(n.starts,r),n.matcher=function(e){let n=new ResumableMultiRegex;return e.contains.forEach(e=>n.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n}(n),n}(e)}(h),y="",v=d||m,E={},k=new f.__emitter(f);!function(){let e=[];for(let n=v;n!==h;n=n.parent)n.scope&&e.unshift(n.scope);e.forEach(e=>k.openNode(e))}();let _="",x=0,S=0,C=0,A=!1;try{if(h.__emitTokens)h.__emitTokens(r,k);else{for(v.matcher.considerAll();;){C++,A?A=!1:v.matcher.considerAll(),v.matcher.lastIndex=S;let e=v.matcher.exec(r);if(!e)break;let n=r.substring(S,e.index),a=processLexeme(n,e);S=e.index+a}processLexeme(r.substring(S))}return k.finalize(),y=k.toHTML(),{language:e,value:y,relevance:x,illegal:!1,_emitter:k,_top:v}}catch(n){if(n.message&&n.message.includes("Illegal"))return{language:e,value:escapeHTML(r),illegal:!0,relevance:0,_illegalBy:{message:n.message,index:S,context:r.slice(S-100,S+100),mode:n.mode,resultSoFar:y},_emitter:k};if(o)return{language:e,value:escapeHTML(r),illegal:!1,relevance:0,errorRaised:n,_emitter:k,_top:v};throw n}}function highlightAuto(e,r){r=r||f.languages||Object.keys(n);let a=function(e){let n={value:escapeHTML(e),illegal:!1,relevance:0,_top:d,_emitter:new f.__emitter(f)};return n._emitter.addText(e),n}(e),o=r.filter(getLanguage).filter(autoDetection).map(n=>_highlight(n,e,!1));o.unshift(a);let u=o.sort((e,n)=>{if(e.relevance!==n.relevance)return n.relevance-e.relevance;if(e.language&&n.language){if(getLanguage(e.language).supersetOf===n.language)return 1;if(getLanguage(n.language).supersetOf===e.language)return -1}return 0}),[p,g]=u;return p.secondBest=g,p}function highlightElement(e){let n=null,a=function(e){let n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";let r=f.languageDetectRe.exec(n);if(r){let n=getLanguage(r[1]);return n||(warn(u.replace("{}",r[1])),warn("Falling back to no-highlight mode for this block.",e)),n?r[1]:"no-highlight"}return n.split(/\s+/).find(e=>shouldNotHighlight(e)||getLanguage(e))}(e);if(shouldNotHighlight(a))return;if(fire("before:highlightElement",{el:e,language:a}),e.children.length>0&&(f.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),f.throwUnescapedHTML)){let n=new HTMLInjectionError("One of your code blocks includes unescaped HTML.",e.innerHTML);throw n}n=e;let o=n.textContent,d=a?highlight(o,{language:a,ignoreIllegals:!0}):highlightAuto(o);e.innerHTML=d.value,function(e,n,a){let o=n&&r[n]||a;e.classList.add("hljs"),e.classList.add(`language-${o}`)}(e,a,d.language),e.result={language:d.language,re:d.relevance,relevance:d.relevance},d.secondBest&&(e.secondBest={language:d.secondBest.language,relevance:d.secondBest.relevance}),fire("after:highlightElement",{el:e,result:d,text:o})}let p=!1;function highlightAll(){if("loading"===document.readyState){p=!0;return}let e=document.querySelectorAll(f.cssSelector);e.forEach(highlightElement)}function getLanguage(e){return n[e=(e||"").toLowerCase()]||n[r[e]]}function registerAliases(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach(e=>{r[e.toLowerCase()]=n})}function autoDetection(e){let n=getLanguage(e);return n&&!n.disableAutodetect}function fire(e,n){a.forEach(function(r){r[e]&&r[e](n)})}for(let u in"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function(){p&&highlightAll()},!1),Object.assign(e,{highlight,highlightAuto,highlightAll,highlightElement,highlightBlock:function(e){return deprecated("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated("10.7.0","Please use highlightElement now."),highlightElement(e)},configure:function(e){f=inherit$1(f,e)},initHighlighting:()=>{highlightAll(),deprecated("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")},initHighlightingOnLoad:function(){highlightAll(),deprecated("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")},registerLanguage:function(r,a){let u=null;try{u=a(e)}catch(e){if(error("Language definition for '{}' could not be registered.".replace("{}",r)),o)error(e);else throw e;u=d}u.name||(u.name=r),n[r]=u,u.rawDefinition=a.bind(null,e),u.aliases&&registerAliases(u.aliases,{languageName:r})},unregisterLanguage:function(e){for(let a of(delete n[e],Object.keys(r)))r[a]===e&&delete r[a]},listLanguages:function(){return Object.keys(n)},getLanguage,registerAliases,autoDetection,inherit:inherit$1,addPlugin:function(e){var n;(n=e)["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=e=>{n["before:highlightBlock"](Object.assign({block:e.el},e))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=e=>{n["after:highlightBlock"](Object.assign({block:e.el},e))}),a.push(e)},removePlugin:function(e){let n=a.indexOf(e);-1!==n&&a.splice(n,1)}}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="11.8.0",e.regex={concat:concat,lookahead:lookahead,either:either,optional:optional,anyNumberOfTimes:anyNumberOfTimes},m)"object"==typeof m[u]&&function deepFreeze(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{let r=e[n],a=typeof r;"object"!==a&&"function"!==a||Object.isFrozen(r)||deepFreeze(r)}),e}(m[u]);return Object.assign(e,m),e},E=HLJS({});E.newInstance=()=>HLJS({}),e.exports=E,E.HighlightJS=E,E.default=E},11358:function(e,n,r){"use strict";r.d(n,{qX:function(){return _getProvider},Xd:function(){return _registerComponent},ZF:function(){return initializeApp},KN:function(){return registerVersion}});var a,o,u=r(32180);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let d=[];(a=o||(o={}))[a.DEBUG=0]="DEBUG",a[a.VERBOSE=1]="VERBOSE",a[a.INFO=2]="INFO",a[a.WARN=3]="WARN",a[a.ERROR=4]="ERROR",a[a.SILENT=5]="SILENT";let f={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},p=o.INFO,g={[o.DEBUG]:"log",[o.VERBOSE]:"log",[o.INFO]:"info",[o.WARN]:"warn",[o.ERROR]:"error"},defaultLogHandler=(e,n,...r)=>{if(n<e.logLevel)return;let a=new Date().toISOString(),o=g[n];if(o)console[o](`[${a}]  ${e.name}:`,...r);else throw Error(`Attempted to log a message with an invalid logType (value: ${n})`)};var h=r(51182),m=r(40678);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let PlatformLoggerServiceImpl=class PlatformLoggerServiceImpl{constructor(e){this.container=e}getPlatformInfoString(){let e=this.container.getProviders();return e.map(e=>{if(!function(e){let n=e.getComponent();return(null==n?void 0:n.type)==="VERSION"}(e))return null;{let n=e.getImmediate();return`${n.library}/${n.version}`}}).filter(e=>e).join(" ")}};let b="@firebase/app",y="0.10.5",v=new class{constructor(e){this.name=e,this._logLevel=p,this._logHandler=defaultLogHandler,this._userLogHandler=null,d.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in o))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?f[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,o.DEBUG,...e),this._logHandler(this,o.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,o.VERBOSE,...e),this._logHandler(this,o.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,o.INFO,...e),this._logHandler(this,o.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,o.WARN,...e),this._logHandler(this,o.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,o.ERROR,...e),this._logHandler(this,o.ERROR,...e)}}("@firebase/app"),w={[b]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},E=new Map,k=new Map,_=new Map;function _addComponent(e,n){try{e.container.addComponent(n)}catch(r){v.debug(`Component ${n.name} failed to register with FirebaseApp ${e.name}`,r)}}function _registerComponent(e){let n=e.name;if(_.has(n))return v.debug(`There were multiple attempts to register component ${n}.`),!1;for(let r of(_.set(n,e),E.values()))_addComponent(r,e);for(let n of k.values())_addComponent(n,e);return!0}function _getProvider(e,n){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(n)}let x=new h.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let FirebaseAppImpl=class FirebaseAppImpl{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new u.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw x.create("app-deleted",{appName:this._name})}};function initializeApp(e,n={}){let r=e;if("object"!=typeof n){let e=n;n={name:e}}let a=Object.assign({name:"[DEFAULT]",automaticDataCollectionEnabled:!1},n),o=a.name;if("string"!=typeof o||!o)throw x.create("bad-app-name",{appName:String(o)});if(r||(r=(0,h.aH)()),!r)throw x.create("no-options");let d=E.get(o);if(d){if((0,h.vZ)(r,d.options)&&(0,h.vZ)(a,d.config))return d;throw x.create("duplicate-app",{appName:o})}let f=new u.H0(o);for(let e of _.values())f.addComponent(e);let p=new FirebaseAppImpl(r,a,f);return E.set(o,p),p}function registerVersion(e,n,r){var a;let o=null!==(a=w[e])&&void 0!==a?a:e;r&&(o+=`-${r}`);let d=o.match(/\s|\//),f=n.match(/\s|\//);if(d||f){let e=[`Unable to register library "${o}" with version "${n}":`];d&&e.push(`library name "${o}" contains illegal characters (whitespace or "/")`),d&&f&&e.push("and"),f&&e.push(`version name "${n}" contains illegal characters (whitespace or "/")`),v.warn(e.join(" "));return}_registerComponent(new u.wA(`${o}-version`,()=>({library:o,version:n}),"VERSION"))}let S="firebase-heartbeat-store",C=null;function getDbPromise(){return C||(C=(0,m.X3)("firebase-heartbeat-database",1,{upgrade:(e,n)=>{if(0===n)try{e.createObjectStore(S)}catch(e){console.warn(e)}}}).catch(e=>{throw x.create("idb-open",{originalErrorMessage:e.message})})),C}async function readHeartbeatsFromIndexedDB(e){try{let n=await getDbPromise(),r=n.transaction(S),a=await r.objectStore(S).get(computeKey(e));return await r.done,a}catch(e){if(e instanceof h.ZR)v.warn(e.message);else{let n=x.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});v.warn(n.message)}}}async function writeHeartbeatsToIndexedDB(e,n){try{let r=await getDbPromise(),a=r.transaction(S,"readwrite"),o=a.objectStore(S);await o.put(n,computeKey(e)),await a.done}catch(e){if(e instanceof h.ZR)v.warn(e.message);else{let n=x.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});v.warn(n.message)}}}function computeKey(e){return`${e.name}!${e.options.appId}`}let HeartbeatServiceImpl=class HeartbeatServiceImpl{constructor(e){this.container=e,this._heartbeatsCache=null;let n=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl(n),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,n;let r=this.container.getProvider("platform-logger").getImmediate(),a=r.getPlatformInfoString(),o=getUTCDateString();return(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null===(n=this._heartbeatsCache)||void 0===n?void 0:n.heartbeats)==null)?void 0:this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(e=>e.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:a}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{let n=new Date(e.date).valueOf(),r=Date.now();return r-n<=2592e6}),this._storage.overwrite(this._heartbeatsCache))}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)==null||0===this._heartbeatsCache.heartbeats.length)return"";let n=getUTCDateString(),{heartbeatsToSend:r,unsentEntries:a}=function(e,n=1024){let r=[],a=e.slice();for(let o of e){let e=r.find(e=>e.agent===o.agent);if(e){if(e.dates.push(o.date),countBytes(r)>n){e.dates.pop();break}}else if(r.push({agent:o.agent,dates:[o.date]}),countBytes(r)>n){r.pop();break}a=a.slice(1)}return{heartbeatsToSend:r,unsentEntries:a}}(this._heartbeatsCache.heartbeats),o=(0,h.L)(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,a.length>0?(this._heartbeatsCache.heartbeats=a,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}};function getUTCDateString(){let e=new Date;return e.toISOString().substring(0,10)}let HeartbeatStorageImpl=class HeartbeatStorageImpl{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,h.hl)()&&(0,h.eu)().then(()=>!0).catch(()=>!1)}async read(){let e=await this._canUseIndexedDBPromise;if(!e)return{heartbeats:[]};{let e=await readHeartbeatsFromIndexedDB(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}}async overwrite(e){var n;let r=await this._canUseIndexedDBPromise;if(r){let r=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(n=e.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var n;let r=await this._canUseIndexedDBPromise;if(r){let r=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(n=e.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}};function countBytes(e){return(0,h.L)(JSON.stringify({version:2,heartbeats:e})).length}_registerComponent(new u.wA("platform-logger",e=>new PlatformLoggerServiceImpl(e),"PRIVATE")),_registerComponent(new u.wA("heartbeat",e=>new HeartbeatServiceImpl(e),"PRIVATE")),registerVersion(b,y,""),registerVersion(b,y,"esm2017"),registerVersion("fire-js","")},32180:function(e,n,r){"use strict";r.d(n,{H0:function(){return ComponentContainer},wA:function(){return Component}});var a=r(51182);let Component=class Component{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let o="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let Provider=class Provider{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){let e=new a.BH;if(this.instancesDeferred.set(n,e),this.isInitialized(n)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:n});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;let r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),a=null!==(n=null==e?void 0:e.optional)&&void 0!==n&&n;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(a)return null;throw e}else{if(a)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:o})}catch(e){}for(let[e,n]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(e){}}}}clearInstance(e=o){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=o){return this.instances.has(e)}getOptions(e=o){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let a=this.getOrInitializeService({instanceIdentifier:r,options:n});for(let[e,n]of this.instancesDeferred.entries()){let o=this.normalizeInstanceIdentifier(e);r===o&&n.resolve(a)}return a}onInit(e,n){var r;let a=this.normalizeInstanceIdentifier(n),o=null!==(r=this.onInitCallbacks.get(a))&&void 0!==r?r:new Set;o.add(e),this.onInitCallbacks.set(a,o);let u=this.instances.get(a);return u&&e(u,a),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){let r=this.onInitCallbacks.get(n);if(r)for(let a of r)try{a(e,n)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:e===o?void 0:e,options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(e){}return r||null}normalizeInstanceIdentifier(e=o){return this.component?this.component.multipleInstances?e:o:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let ComponentContainer=class ComponentContainer{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let n=this.getProvider(e.name);if(n.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){let n=this.getProvider(e.name);n.isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let n=new Provider(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}},72479:function(e,n,r){"use strict";r.d(n,{RR:function(){return flip},cv:function(){return offset},oo:function(){return computePosition},uY:function(){return shift}});var a=r(80903);function computeCoordsFromPlacement(e,n,r){let o,{reference:u,floating:d}=e,f=(0,a.Qq)(n),p=(0,a.Wh)(n),g=(0,a.I4)(p),h=(0,a.k3)(n),m="y"===f,b=u.x+u.width/2-d.width/2,y=u.y+u.height/2-d.height/2,v=u[g]/2-d[g]/2;switch(h){case"top":o={x:b,y:u.y-d.height};break;case"bottom":o={x:b,y:u.y+u.height};break;case"right":o={x:u.x+u.width,y:y};break;case"left":o={x:u.x-d.width,y:y};break;default:o={x:u.x,y:u.y}}switch((0,a.hp)(n)){case"start":o[p]-=v*(r&&m?-1:1);break;case"end":o[p]+=v*(r&&m?-1:1)}return o}let computePosition=async(e,n,r)=>{let{placement:a="bottom",strategy:o="absolute",middleware:u=[],platform:d}=r,f=u.filter(Boolean),p=await (null==d.isRTL?void 0:d.isRTL(n)),g=await d.getElementRects({reference:e,floating:n,strategy:o}),{x:h,y:m}=computeCoordsFromPlacement(g,a,p),b=a,y={},v=0;for(let r=0;r<f.length;r++){let{name:u,fn:w}=f[r],{x:E,y:k,data:_,reset:x}=await w({x:h,y:m,initialPlacement:a,placement:b,strategy:o,middlewareData:y,rects:g,platform:d,elements:{reference:e,floating:n}});if(h=null!=E?E:h,m=null!=k?k:m,y={...y,[u]:{...y[u],..._}},x&&v<=50){v++,"object"==typeof x&&(x.placement&&(b=x.placement),x.rects&&(g=!0===x.rects?await d.getElementRects({reference:e,floating:n,strategy:o}):x.rects),{x:h,y:m}=computeCoordsFromPlacement(g,b,p)),r=-1;continue}}return{x:h,y:m,placement:b,strategy:o,middlewareData:y}};async function detectOverflow(e,n){var r;void 0===n&&(n={});let{x:o,y:u,platform:d,rects:f,elements:p,strategy:g}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:b="floating",altBoundary:y=!1,padding:v=0}=(0,a.ku)(n,e),w=(0,a.yd)(v),E=p[y?"floating"===b?"reference":"floating":b],k=(0,a.JB)(await d.getClippingRect({element:null==(r=await (null==d.isElement?void 0:d.isElement(E)))||r?E:E.contextElement||await (null==d.getDocumentElement?void 0:d.getDocumentElement(p.floating)),boundary:h,rootBoundary:m,strategy:g})),_="floating"===b?{...f.floating,x:o,y:u}:f.reference,x=await (null==d.getOffsetParent?void 0:d.getOffsetParent(p.floating)),S=await (null==d.isElement?void 0:d.isElement(x))&&await (null==d.getScale?void 0:d.getScale(x))||{x:1,y:1},C=(0,a.JB)(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:x,strategy:g}):_);return{top:(k.top-C.top+w.top)/S.y,bottom:(C.bottom-k.bottom+w.bottom)/S.y,left:(k.left-C.left+w.left)/S.x,right:(C.right-k.right+w.right)/S.x}}let flip=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r,o,u,d;let{placement:f,middlewareData:p,rects:g,initialPlacement:h,platform:m,elements:b}=n,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:_=!0,...x}=(0,a.ku)(e,n),S=(0,a.k3)(f),C=(0,a.k3)(h)===h,A=await (null==m.isRTL?void 0:m.isRTL(b.floating)),N=w||(C||!_?[(0,a.pw)(h)]:(0,a.gy)(h));w||"none"===k||N.push(...(0,a.KX)(h,_,k,A));let O=[h,...N],T=await detectOverflow(n,x),I=[],D=(null==(r=p.flip)?void 0:r.overflows)||[];if(y&&I.push(T[S]),v){let e=(0,a.i8)(f,g,A);I.push(T[e[0]],T[e[1]])}if(D=[...D,{placement:f,overflows:I}],!I.every(e=>e<=0)){let e=((null==(o=p.flip)?void 0:o.index)||0)+1,n=O[e];if(n)return{data:{index:e,overflows:D},reset:{placement:n}};let r=null==(u=D.filter(e=>e.overflows[0]<=0).sort((e,n)=>e.overflows[1]-n.overflows[1])[0])?void 0:u.placement;if(!r)switch(E){case"bestFit":{let e=null==(d=D.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,n)=>e+n,0)]).sort((e,n)=>e[1]-n[1])[0])?void 0:d[0];e&&(r=e);break}case"initialPlacement":r=h}if(f!==r)return{reset:{placement:r}}}return{}}}};async function convertValueToCoords(e,n){let{placement:r,platform:o,elements:u}=e,d=await (null==o.isRTL?void 0:o.isRTL(u.floating)),f=(0,a.k3)(r),p=(0,a.hp)(r),g="y"===(0,a.Qq)(r),h=["left","top"].includes(f)?-1:1,m=d&&g?-1:1,b=(0,a.ku)(n,e),{mainAxis:y,crossAxis:v,alignmentAxis:w}="number"==typeof b?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return p&&"number"==typeof w&&(v="end"===p?-1*w:w),g?{x:v*m,y:y*h}:{x:y*h,y:v*m}}let offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(n){let{x:r,y:a}=n,o=await convertValueToCoords(n,e);return{x:r+o.x,y:a+o.y,data:o}}}},shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(n){let{x:r,y:o,placement:u}=n,{mainAxis:d=!0,crossAxis:f=!1,limiter:p={fn:e=>{let{x:n,y:r}=e;return{x:n,y:r}}},...g}=(0,a.ku)(e,n),h={x:r,y:o},m=await detectOverflow(n,g),b=(0,a.Qq)((0,a.k3)(u)),y=(0,a.Rn)(b),v=h[y],w=h[b];if(d){let e=v+m["y"===y?"top":"left"],n=v-m["y"===y?"bottom":"right"];v=(0,a.uZ)(e,v,n)}if(f){let e="y"===b?"top":"left",n="y"===b?"bottom":"right",r=w+m[e],o=w-m[n];w=(0,a.uZ)(r,w,o)}let E=p.fn({...n,[y]:v,[b]:w});return{...E,data:{x:E.x-r,y:E.y-o}}}}}},15048:function(e,n,r){"use strict";r.d(n,{Me:function(){return autoUpdate},oo:function(){return computePosition}});var a=r(80903),o=r(72479),u=r(55187);function getCssDimensions(e){let n=(0,u.Dx)(e),r=parseFloat(n.width)||0,o=parseFloat(n.height)||0,d=(0,u.Re)(e),f=d?e.offsetWidth:r,p=d?e.offsetHeight:o,g=(0,a.NM)(r)!==f||(0,a.NM)(o)!==p;return g&&(r=f,o=p),{width:r,height:o,$:g}}function unwrapElement(e){return(0,u.kK)(e)?e:e.contextElement}function getScale(e){let n=unwrapElement(e);if(!(0,u.Re)(n))return(0,a.ze)(1);let r=n.getBoundingClientRect(),{width:o,height:d,$:f}=getCssDimensions(n),p=(f?(0,a.NM)(r.width):r.width)/o,g=(f?(0,a.NM)(r.height):r.height)/d;return p&&Number.isFinite(p)||(p=1),g&&Number.isFinite(g)||(g=1),{x:p,y:g}}let d=(0,a.ze)(0);function getVisualOffsets(e){let n=(0,u.Jj)(e);return(0,u.Pf)()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:d}function getBoundingClientRect(e,n,r,o){var d;void 0===n&&(n=!1),void 0===r&&(r=!1);let f=e.getBoundingClientRect(),p=unwrapElement(e),g=(0,a.ze)(1);n&&(o?(0,u.kK)(o)&&(g=getScale(o)):g=getScale(e));let h=(void 0===(d=r)&&(d=!1),o&&(!d||o===(0,u.Jj)(p))&&d)?getVisualOffsets(p):(0,a.ze)(0),m=(f.left+h.x)/g.x,b=(f.top+h.y)/g.y,y=f.width/g.x,v=f.height/g.y;if(p){let e=(0,u.Jj)(p),n=o&&(0,u.kK)(o)?(0,u.Jj)(o):o,r=e.frameElement;for(;r&&o&&n!==e;){let e=getScale(r),n=r.getBoundingClientRect(),a=(0,u.Dx)(r),o=n.left+(r.clientLeft+parseFloat(a.paddingLeft))*e.x,d=n.top+(r.clientTop+parseFloat(a.paddingTop))*e.y;m*=e.x,b*=e.y,y*=e.x,v*=e.y,m+=o,b+=d,r=(0,u.Jj)(r).frameElement}}return(0,a.JB)({width:y,height:v,x:m,y:b})}function getWindowScrollBarX(e){return getBoundingClientRect((0,u.tF)(e)).left+(0,u.Lw)(e).scrollLeft}function getClientRectFromClippingAncestor(e,n,r){let o;if("viewport"===n)o=function(e,n){let r=(0,u.Jj)(e),a=(0,u.tF)(e),o=r.visualViewport,d=a.clientWidth,f=a.clientHeight,p=0,g=0;if(o){d=o.width,f=o.height;let e=(0,u.Pf)();(!e||e&&"fixed"===n)&&(p=o.offsetLeft,g=o.offsetTop)}return{width:d,height:f,x:p,y:g}}(e,r);else if("document"===n)o=function(e){let n=(0,u.tF)(e),r=(0,u.Lw)(e),o=e.ownerDocument.body,d=(0,a.Fp)(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),f=(0,a.Fp)(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight),p=-r.scrollLeft+getWindowScrollBarX(e),g=-r.scrollTop;return"rtl"===(0,u.Dx)(o).direction&&(p+=(0,a.Fp)(n.clientWidth,o.clientWidth)-d),{width:d,height:f,x:p,y:g}}((0,u.tF)(e));else if((0,u.kK)(n))o=function(e,n){let r=getBoundingClientRect(e,!0,"fixed"===n),o=r.top+e.clientTop,d=r.left+e.clientLeft,f=(0,u.Re)(e)?getScale(e):(0,a.ze)(1),p=e.clientWidth*f.x,g=e.clientHeight*f.y,h=d*f.x,m=o*f.y;return{width:p,height:g,x:h,y:m}}(n,r);else{let r=getVisualOffsets(e);o={...n,x:n.x-r.x,y:n.y-r.y}}return(0,a.JB)(o)}function getTrueOffsetParent(e,n){return(0,u.Re)(e)&&"fixed"!==(0,u.Dx)(e).position?n?n(e):e.offsetParent:null}function getOffsetParent(e,n){let r=(0,u.Jj)(e);if(!(0,u.Re)(e))return r;let a=getTrueOffsetParent(e,n);for(;a&&(0,u.Ze)(a)&&"static"===(0,u.Dx)(a).position;)a=getTrueOffsetParent(a,n);return a&&("html"===(0,u.wk)(a)||"body"===(0,u.wk)(a)&&"static"===(0,u.Dx)(a).position&&!(0,u.hT)(a))?r:a||(0,u.gQ)(e)||r}let getElementRects=async function(e){let{reference:n,floating:r,strategy:o}=e,d=this.getOffsetParent||getOffsetParent,f=this.getDimensions;return{reference:function(e,n,r){let o=(0,u.Re)(n),d=(0,u.tF)(n),f="fixed"===r,p=getBoundingClientRect(e,!0,f,n),g={scrollLeft:0,scrollTop:0},h=(0,a.ze)(0);if(o||!o&&!f){if(("body"!==(0,u.wk)(n)||(0,u.ao)(d))&&(g=(0,u.Lw)(n)),o){let e=getBoundingClientRect(n,!0,f,n);h.x=e.x+n.clientLeft,h.y=e.y+n.clientTop}else d&&(h.x=getWindowScrollBarX(d))}return{x:p.left+g.scrollLeft-h.x,y:p.top+g.scrollTop-h.y,width:p.width,height:p.height}}(n,await d(r),o),floating:{x:0,y:0,...await f(r)}}},f={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:n,offsetParent:r,strategy:o}=e,d=(0,u.Re)(r),f=(0,u.tF)(r);if(r===f)return n;let p={scrollLeft:0,scrollTop:0},g=(0,a.ze)(1),h=(0,a.ze)(0);if((d||!d&&"fixed"!==o)&&(("body"!==(0,u.wk)(r)||(0,u.ao)(f))&&(p=(0,u.Lw)(r)),(0,u.Re)(r))){let e=getBoundingClientRect(r);g=getScale(r),h.x=e.x+r.clientLeft,h.y=e.y+r.clientTop}return{width:n.width*g.x,height:n.height*g.y,x:n.x*g.x-p.scrollLeft*g.x+h.x,y:n.y*g.y-p.scrollTop*g.y+h.y}},getDocumentElement:u.tF,getClippingRect:function(e){let{element:n,boundary:r,rootBoundary:o,strategy:d}=e,f="clippingAncestors"===r?function(e,n){let r=n.get(e);if(r)return r;let a=(0,u.Kx)(e).filter(e=>(0,u.kK)(e)&&"body"!==(0,u.wk)(e)),o=null,d="fixed"===(0,u.Dx)(e).position,f=d?(0,u.Ow)(e):e;for(;(0,u.kK)(f)&&!(0,u.Py)(f);){let n=(0,u.Dx)(f),r=(0,u.hT)(f);r||"fixed"!==n.position||(o=null);let p=d?!r&&!o:!r&&"static"===n.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,u.ao)(f)&&!r&&function hasFixedPositionAncestor(e,n){let r=(0,u.Ow)(e);return!(r===n||!(0,u.kK)(r)||(0,u.Py)(r))&&("fixed"===(0,u.Dx)(r).position||hasFixedPositionAncestor(r,n))}(e,f);p?a=a.filter(e=>e!==f):o=n,f=(0,u.Ow)(f)}return n.set(e,a),a}(n,this._c):[].concat(r),p=[...f,o],g=p[0],h=p.reduce((e,r)=>{let o=getClientRectFromClippingAncestor(n,r,d);return e.top=(0,a.Fp)(o.top,e.top),e.right=(0,a.VV)(o.right,e.right),e.bottom=(0,a.VV)(o.bottom,e.bottom),e.left=(0,a.Fp)(o.left,e.left),e},getClientRectFromClippingAncestor(n,g,d));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},getOffsetParent,getElementRects,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return getCssDimensions(e)},getScale,isElement:u.kK,isRTL:function(e){return"rtl"===(0,u.Dx)(e).direction}};function autoUpdate(e,n,r,o){let d;void 0===o&&(o={});let{ancestorScroll:f=!0,ancestorResize:p=!0,elementResize:g="function"==typeof ResizeObserver,layoutShift:h="function"==typeof IntersectionObserver,animationFrame:m=!1}=o,b=unwrapElement(e),y=f||p?[...b?(0,u.Kx)(b):[],...(0,u.Kx)(n)]:[];y.forEach(e=>{f&&e.addEventListener("scroll",r,{passive:!0}),p&&e.addEventListener("resize",r)});let v=b&&h?function(e,n){let r,o=null,d=(0,u.tF)(e);function cleanup(){clearTimeout(r),o&&o.disconnect(),o=null}return function refresh(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),cleanup();let{left:p,top:g,width:h,height:m}=e.getBoundingClientRect();if(u||n(),!h||!m)return;let b=(0,a.GW)(g),y=(0,a.GW)(d.clientWidth-(p+h)),v=(0,a.GW)(d.clientHeight-(g+m)),w=(0,a.GW)(p),E={rootMargin:-b+"px "+-y+"px "+-v+"px "+-w+"px",threshold:(0,a.Fp)(0,(0,a.VV)(1,f))||1},k=!0;function handleObserve(e){let n=e[0].intersectionRatio;if(n!==f){if(!k)return refresh();n?refresh(!1,n):r=setTimeout(()=>{refresh(!1,1e-7)},100)}k=!1}try{o=new IntersectionObserver(handleObserve,{...E,root:d.ownerDocument})}catch(e){o=new IntersectionObserver(handleObserve,E)}o.observe(e)}(!0),cleanup}(b,r):null,w=-1,E=null;g&&(E=new ResizeObserver(e=>{let[a]=e;a&&a.target===b&&E&&(E.unobserve(n),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{E&&E.observe(n)})),r()}),b&&!m&&E.observe(b),E.observe(n));let k=m?getBoundingClientRect(e):null;return m&&function frameLoop(){let n=getBoundingClientRect(e);k&&(n.x!==k.x||n.y!==k.y||n.width!==k.width||n.height!==k.height)&&r(),k=n,d=requestAnimationFrame(frameLoop)}(),r(),()=>{y.forEach(e=>{f&&e.removeEventListener("scroll",r),p&&e.removeEventListener("resize",r)}),v&&v(),E&&E.disconnect(),E=null,m&&cancelAnimationFrame(d)}}let computePosition=(e,n,r)=>{let a=new Map,u={platform:f,...r},d={...u.platform,_c:a};return(0,o.oo)(e,n,{...u,platform:d})}},80903:function(e,n,r){"use strict";r.d(n,{Fp:function(){return o},GW:function(){return d},I4:function(){return getAxisLength},JB:function(){return rectToClientRect},KX:function(){return getOppositeAxisPlacements},NM:function(){return u},Qq:function(){return getSideAxis},Rn:function(){return getOppositeAxis},VV:function(){return a},Wh:function(){return getAlignmentAxis},gy:function(){return getExpandedPlacements},hp:function(){return getAlignment},i8:function(){return getAlignmentSides},k3:function(){return getSide},ku:function(){return evaluate},pw:function(){return getOppositePlacement},uZ:function(){return clamp},yd:function(){return getPaddingObject},ze:function(){return createCoords}});let a=Math.min,o=Math.max,u=Math.round,d=Math.floor,createCoords=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function clamp(e,n,r){return o(e,a(n,r))}function evaluate(e,n){return"function"==typeof e?e(n):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,n,r){void 0===r&&(r=!1);let a=getAlignment(e),o=getAlignmentAxis(e),u=getAxisLength(o),d="x"===o?a===(r?"end":"start")?"right":"left":"start"===a?"bottom":"top";return n.reference[u]>n.floating[u]&&(d=getOppositePlacement(d)),[d,getOppositePlacement(d)]}function getExpandedPlacements(e){let n=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),n,getOppositeAlignmentPlacement(n)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>p[e])}function getOppositeAxisPlacements(e,n,r,a){let o=getAlignment(e),u=function(e,n,r){let a=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(r)return n?o:a;return n?a:o;case"left":case"right":return n?["top","bottom"]:["bottom","top"];default:return[]}}(getSide(e),"start"===r,a);return o&&(u=u.map(e=>e+"-"+o),n&&(u=u.concat(u.map(getOppositeAlignmentPlacement)))),u}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>f[e])}function getPaddingObject(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},55187:function(e,n,r){"use strict";function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var n;return(null==e?void 0:null==(n=e.ownerDocument)?void 0:n.defaultView)||window}function getDocumentElement(e){var n;return null==(n=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:n.documentElement}function isNode(e){return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){let{overflow:n,overflowX:r,overflowY:a,display:o}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(n+a+r)&&!["inline","contents"].includes(o)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isContainingBlock(e){let n=isWebKit(),r=getComputedStyle(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!n&&!!r.backdropFilter&&"none"!==r.backdropFilter||!n&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function getContainingBlock(e){let n=getParentNode(e);for(;isHTMLElement(n)&&!isLastTraversableNode(n);){if(isContainingBlock(n))return n;n=getParentNode(n)}return null}function isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getParentNode(e){if("html"===getNodeName(e))return e;let n=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(n)?n.host:n}r.d(n,{Dx:function(){return getComputedStyle},Jj:function(){return getWindow},Kx:function(){return function getOverflowAncestors(e,n){var r;void 0===n&&(n=[]);let a=function getNearestOverflowAncestor(e){let n=getParentNode(e);return isLastTraversableNode(n)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(n)&&isOverflowElement(n)?n:getNearestOverflowAncestor(n)}(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),u=getWindow(a);return o?n.concat(u,u.visualViewport||[],isOverflowElement(a)?a:[]):n.concat(a,getOverflowAncestors(a))}},Lw:function(){return getNodeScroll},Ow:function(){return getParentNode},Pf:function(){return isWebKit},Py:function(){return isLastTraversableNode},Re:function(){return isHTMLElement},Ze:function(){return isTableElement},ao:function(){return isOverflowElement},gQ:function(){return getContainingBlock},hT:function(){return isContainingBlock},kK:function(){return isElement},tF:function(){return getDocumentElement},wk:function(){return getNodeName}})},5063:function(e,n,r){"use strict";r.d(n,{T:function(){return decodeNamedCharacterReference}});let a=document.createElement("i");function decodeNamedCharacterReference(e){let n="&"+e+";";a.innerHTML=n;let r=a.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==n&&r}},84869:function(e,n,r){"use strict";r.d(n,{ZF:function(){return a.ZF}});var a=r(11358);/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(0,a.KN)("firebase","10.12.2","app")},12705:function(e,n,r){"use strict";var a,o,u,d,f=r(11358),p=r(32180),g=r(51182),h=r(40678);let m="@firebase/installations",b="0.6.7",y=`w:${b}`,v="FIS_v2",w=new g.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function isServerError(e){return e instanceof g.ZR&&e.code.includes("request-failed")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getInstallationsEndpoint({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function extractAuthTokenInfoFromResponse(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function getErrorFromResponse(e,n){let r=await n.json(),a=r.error;return w.create("request-failed",{requestName:e,serverCode:a.code,serverMessage:a.message,serverStatus:a.status})}function getHeaders({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function retryIfServerError(e){let n=await e();return n.status>=500&&n.status<600?e():n}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function createInstallationRequest({appConfig:e,heartbeatServiceProvider:n},{fid:r}){let a=getInstallationsEndpoint(e),o=getHeaders(e),u=n.getImmediate({optional:!0});if(u){let e=await u.getHeartbeatsHeader();e&&o.append("x-firebase-client",e)}let d={fid:r,authVersion:v,appId:e.appId,sdkVersion:y},f={method:"POST",headers:o,body:JSON.stringify(d)},p=await retryIfServerError(()=>fetch(a,f));if(p.ok){let e=await p.json(),n={fid:e.fid||r,registrationStatus:2,refreshToken:e.refreshToken,authToken:extractAuthTokenInfoFromResponse(e.authToken)};return n}throw await getErrorFromResponse("Create Installation",p)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function sleep(e){return new Promise(n=>{setTimeout(n,e)})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let E=/^[cdef][\w-]{21}$/;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getKey(e){return`${e.appName}!${e.appId}`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let k=new Map;function fidChanged(e,n){let r=getKey(e);callFidChangeCallbacks(r,n),function(e,n){let r=(!_&&"BroadcastChannel"in self&&((_=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{callFidChangeCallbacks(e.data.key,e.data.fid)}),_);r&&r.postMessage({key:e,fid:n}),0===k.size&&_&&(_.close(),_=null)}(r,n)}function callFidChangeCallbacks(e,n){let r=k.get(e);if(r)for(let e of r)e(n)}let _=null,x="firebase-installations-store",S=null;function getDbPromise(){return S||(S=(0,h.X3)("firebase-installations-database",1,{upgrade:(e,n)=>{0===n&&e.createObjectStore(x)}})),S}async function set(e,n){let r=getKey(e),a=await getDbPromise(),o=a.transaction(x,"readwrite"),u=o.objectStore(x),d=await u.get(r);return await u.put(n,r),await o.done,d&&d.fid===n.fid||fidChanged(e,n.fid),n}async function remove(e){let n=getKey(e),r=await getDbPromise(),a=r.transaction(x,"readwrite");await a.objectStore(x).delete(n),await a.done}async function update(e,n){let r=getKey(e),a=await getDbPromise(),o=a.transaction(x,"readwrite"),u=o.objectStore(x),d=await u.get(r),f=n(d);return void 0===f?await u.delete(r):await u.put(f,r),await o.done,f&&(!d||d.fid!==f.fid)&&fidChanged(e,f.fid),f}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function getInstallationEntry(e){let n;let r=await update(e.appConfig,r=>{let a=function(e){let n=e||{fid:function(){try{let e=new Uint8Array(17),n=self.crypto||self.msCrypto;n.getRandomValues(e),e[0]=112+e[0]%16;let r=function(e){let n=/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){let n=btoa(String.fromCharCode(...e));return n.replace(/\+/g,"-").replace(/\//g,"_")}(e);return n.substr(0,22)}(e);return E.test(r)?r:""}catch(e){return""}}(),registrationStatus:0};return clearTimedOutRequest(n)}(r),o=function(e,n){if(0===n.registrationStatus){if(!navigator.onLine){let e=Promise.reject(w.create("app-offline"));return{installationEntry:n,registrationPromise:e}}let r={fid:n.fid,registrationStatus:1,registrationTime:Date.now()},a=registerInstallation(e,r);return{installationEntry:r,registrationPromise:a}}return 1===n.registrationStatus?{installationEntry:n,registrationPromise:waitUntilFidRegistration(e)}:{installationEntry:n}}(e,a);return n=o.registrationPromise,o.installationEntry});return""===r.fid?{installationEntry:await n}:{installationEntry:r,registrationPromise:n}}async function registerInstallation(e,n){try{let r=await createInstallationRequest(e,n);return set(e.appConfig,r)}catch(r){throw isServerError(r)&&409===r.customData.serverCode?await remove(e.appConfig):await set(e.appConfig,{fid:n.fid,registrationStatus:0}),r}}async function waitUntilFidRegistration(e){let n=await updateInstallationRequest(e.appConfig);for(;1===n.registrationStatus;)await sleep(100),n=await updateInstallationRequest(e.appConfig);if(0===n.registrationStatus){let{installationEntry:n,registrationPromise:r}=await getInstallationEntry(e);return r||n}return n}function updateInstallationRequest(e){return update(e,e=>{if(!e)throw w.create("installation-not-found");return clearTimedOutRequest(e)})}function clearTimedOutRequest(e){return 1===e.registrationStatus&&e.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function generateAuthTokenRequest({appConfig:e,heartbeatServiceProvider:n},r){let a=function(e,{fid:n}){return`${getInstallationsEndpoint(e)}/${n}/authTokens:generate`}(e,r),o=function(e,{refreshToken:n}){let r=getHeaders(e);return r.append("Authorization",`${v} ${n}`),r}(e,r),u=n.getImmediate({optional:!0});if(u){let e=await u.getHeartbeatsHeader();e&&o.append("x-firebase-client",e)}let d={installation:{sdkVersion:y,appId:e.appId}},f={method:"POST",headers:o,body:JSON.stringify(d)},p=await retryIfServerError(()=>fetch(a,f));if(p.ok){let e=await p.json(),n=extractAuthTokenInfoFromResponse(e);return n}throw await getErrorFromResponse("Generate Auth Token",p)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function refreshAuthToken(e,n=!1){let r;let a=await update(e.appConfig,a=>{var o;if(!isEntryRegistered(a))throw w.create("not-registered");let u=a.authToken;if(!n&&2===(o=u).requestStatus&&!function(e){let n=Date.now();return n<e.creationTime||e.creationTime+e.expiresIn<n+36e5}(o))return a;if(1===u.requestStatus)return r=waitUntilAuthTokenRequest(e,n),a;{if(!navigator.onLine)throw w.create("app-offline");let n=function(e){let n={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:n})}(a);return r=fetchAuthTokenFromServer(e,n),n}}),o=r?await r:a.authToken;return o}async function waitUntilAuthTokenRequest(e,n){let r=await updateAuthTokenRequest(e.appConfig);for(;1===r.authToken.requestStatus;)await sleep(100),r=await updateAuthTokenRequest(e.appConfig);let a=r.authToken;return 0===a.requestStatus?refreshAuthToken(e,n):a}function updateAuthTokenRequest(e){return update(e,e=>{if(!isEntryRegistered(e))throw w.create("not-registered");let n=e.authToken;return 1===n.requestStatus&&n.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function fetchAuthTokenFromServer(e,n){try{let r=await generateAuthTokenRequest(e,n),a=Object.assign(Object.assign({},n),{authToken:r});return await set(e.appConfig,a),r}catch(r){if(isServerError(r)&&(401===r.customData.serverCode||404===r.customData.serverCode))await remove(e.appConfig);else{let r=Object.assign(Object.assign({},n),{authToken:{requestStatus:0}});await set(e.appConfig,r)}throw r}}function isEntryRegistered(e){return void 0!==e&&2===e.registrationStatus}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function getId(e){let{installationEntry:n,registrationPromise:r}=await getInstallationEntry(e);return r?r.catch(console.error):refreshAuthToken(e).catch(console.error),n.fid}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function getToken(e,n=!1){await completeInstallationRegistration(e);let r=await refreshAuthToken(e,n);return r.token}async function completeInstallationRegistration(e){let{registrationPromise:n}=await getInstallationEntry(e);n&&await n}function getMissingValueError(e){return w.create("missing-app-config-values",{valueName:e})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let C="installations";(0,f.Xd)(new p.wA(C,e=>{let n=e.getProvider("app").getImmediate(),r=/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){if(!e||!e.options)throw getMissingValueError("App Configuration");if(!e.name)throw getMissingValueError("App Name");for(let n of["projectId","apiKey","appId"])if(!e.options[n])throw getMissingValueError(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(n),a=(0,f.qX)(n,"heartbeat");return{app:n,appConfig:r,heartbeatServiceProvider:a,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,f.Xd)(new p.wA("installations-internal",e=>{let n=e.getProvider("app").getImmediate(),r=(0,f.qX)(n,C).getImmediate();return{getId:()=>getId(r),getToken:e=>getToken(r,e)}},"PRIVATE")),(0,f.KN)(m,b),(0,f.KN)(m,b,"esm2017");let A="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",N="google.c.a.c_id";/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function arrayToBase64(e){let n=new Uint8Array(e),r=btoa(String.fromCharCode(...n));return r.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}(a=u||(u={}))[a.DATA_MESSAGE=1]="DATA_MESSAGE",a[a.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION",(o=d||(d={})).PUSH_RECEIVED="push-received",o.NOTIFICATION_CLICKED="notification-clicked";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let O="fcm_token_details_db",T="fcm_token_object_Store";async function migrateOldDatabase(e){if("databases"in indexedDB){let e=await indexedDB.databases(),n=e.map(e=>e.name);if(!n.includes(O))return null}let n=null,r=await (0,h.X3)(O,5,{upgrade:async(r,a,o,u)=>{var d;if(a<2||!r.objectStoreNames.contains(T))return;let f=u.objectStore(T),p=await f.index("fcmSenderId").get(e);if(await f.clear(),p){if(2===a){if(!p.auth||!p.p256dh||!p.endpoint)return;n={token:p.fcmToken,createTime:null!==(d=p.createTime)&&void 0!==d?d:Date.now(),subscriptionOptions:{auth:p.auth,p256dh:p.p256dh,endpoint:p.endpoint,swScope:p.swScope,vapidKey:"string"==typeof p.vapidKey?p.vapidKey:arrayToBase64(p.vapidKey)}}}else 3===a?n={token:p.fcmToken,createTime:p.createTime,subscriptionOptions:{auth:arrayToBase64(p.auth),p256dh:arrayToBase64(p.p256dh),endpoint:p.endpoint,swScope:p.swScope,vapidKey:arrayToBase64(p.vapidKey)}}:4===a&&(n={token:p.fcmToken,createTime:p.createTime,subscriptionOptions:{auth:arrayToBase64(p.auth),p256dh:arrayToBase64(p.p256dh),endpoint:p.endpoint,swScope:p.swScope,vapidKey:arrayToBase64(p.vapidKey)}})}}});return r.close(),await (0,h.Lj)(O),await (0,h.Lj)("fcm_vapid_details_db"),await (0,h.Lj)("undefined"),!function(e){if(!e||!e.subscriptionOptions)return!1;let{subscriptionOptions:n}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof n.auth&&n.auth.length>0&&"string"==typeof n.p256dh&&n.p256dh.length>0&&"string"==typeof n.endpoint&&n.endpoint.length>0&&"string"==typeof n.swScope&&n.swScope.length>0&&"string"==typeof n.vapidKey&&n.vapidKey.length>0}(n)?null:n}let I="firebase-messaging-store",D=null;function index_esm2017_getDbPromise(){return D||(D=(0,h.X3)("firebase-messaging-database",1,{upgrade:(e,n)=>{0===n&&e.createObjectStore(I)}})),D}async function dbGet(e){let n=function({appConfig:e}){return e.appId}(e),r=await index_esm2017_getDbPromise(),a=await r.transaction(I).objectStore(I).get(n);if(a)return a;{let n=await migrateOldDatabase(e.appConfig.senderId);if(n)return await dbSet(e,n),n}}async function dbSet(e,n){let r=function({appConfig:e}){return e.appId}(e),a=await index_esm2017_getDbPromise(),o=a.transaction(I,"readwrite");return await o.objectStore(I).put(n,r),await o.done,n}let M=new g.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function requestGetToken(e,n){let r;let a=await index_esm2017_getHeaders(e),o=getBody(n),u={method:"POST",headers:a,body:JSON.stringify(o)};try{let n=await fetch(getEndpoint(e.appConfig),u);r=await n.json()}catch(e){throw M.create("token-subscribe-failed",{errorInfo:null==e?void 0:e.toString()})}if(r.error){let e=r.error.message;throw M.create("token-subscribe-failed",{errorInfo:e})}if(!r.token)throw M.create("token-subscribe-no-token");return r.token}async function requestUpdateToken(e,n){let r;let a=await index_esm2017_getHeaders(e),o=getBody(n.subscriptionOptions),u={method:"PATCH",headers:a,body:JSON.stringify(o)};try{let a=await fetch(`${getEndpoint(e.appConfig)}/${n.token}`,u);r=await a.json()}catch(e){throw M.create("token-update-failed",{errorInfo:null==e?void 0:e.toString()})}if(r.error){let e=r.error.message;throw M.create("token-update-failed",{errorInfo:e})}if(!r.token)throw M.create("token-update-no-token");return r.token}async function requestDeleteToken(e,n){let r=await index_esm2017_getHeaders(e);try{let a=await fetch(`${getEndpoint(e.appConfig)}/${n}`,{method:"DELETE",headers:r}),o=await a.json();if(o.error){let e=o.error.message;throw M.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw M.create("token-unsubscribe-failed",{errorInfo:null==e?void 0:e.toString()})}}function getEndpoint({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}async function index_esm2017_getHeaders({appConfig:e,installations:n}){let r=await n.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${r}`})}function getBody({p256dh:e,auth:n,endpoint:r,vapidKey:a}){let o={web:{endpoint:r,auth:n,p256dh:e}};return a!==A&&(o.web.applicationPubKey=a),o}async function getTokenInternal(e){let n=await getPushSubscription(e.swRegistration,e.vapidKey),r={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:n.endpoint,auth:arrayToBase64(n.getKey("auth")),p256dh:arrayToBase64(n.getKey("p256dh"))},a=await dbGet(e.firebaseDependencies);if(!a)return getNewToken(e.firebaseDependencies,r);if(function(e,n){let r=n.vapidKey===e.vapidKey,a=n.endpoint===e.endpoint,o=n.auth===e.auth,u=n.p256dh===e.p256dh;return r&&a&&o&&u}(a.subscriptionOptions,r))return Date.now()>=a.createTime+6048e5?updateToken(e,{token:a.token,createTime:Date.now(),subscriptionOptions:r}):a.token;try{await requestDeleteToken(e.firebaseDependencies,a.token)}catch(e){console.warn(e)}return getNewToken(e.firebaseDependencies,r)}async function updateToken(e,n){try{let r=await requestUpdateToken(e.firebaseDependencies,n),a=Object.assign(Object.assign({},n),{token:r,createTime:Date.now()});return await dbSet(e.firebaseDependencies,a),r}catch(e){throw e}}async function getNewToken(e,n){let r=await requestGetToken(e,n),a={token:r,createTime:Date.now(),subscriptionOptions:n};return await dbSet(e,a),a.token}async function getPushSubscription(e,n){let r=await e.pushManager.getSubscription();return r||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let n="=".repeat((4-e.length%4)%4),r=(e+n).replace(/\-/g,"+").replace(/_/g,"/"),a=atob(r),o=new Uint8Array(a.length);for(let e=0;e<a.length;++e)o[e]=a.charCodeAt(e);return o}(n)})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function externalizePayload(e){let n={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,n){if(!n.notification)return;e.notification={};let r=n.notification.title;r&&(e.notification.title=r);let a=n.notification.body;a&&(e.notification.body=a);let o=n.notification.image;o&&(e.notification.image=o);let u=n.notification.icon;u&&(e.notification.icon=u)}(n,e),e.data&&(n.data=e.data),function(e,n){var r,a,o,u,d;if(!n.fcmOptions&&!(null===(r=n.notification)||void 0===r?void 0:r.click_action))return;e.fcmOptions={};let f=null!==(o=null===(a=n.fcmOptions)||void 0===a?void 0:a.link)&&void 0!==o?o:null===(u=n.notification)||void 0===u?void 0:u.click_action;f&&(e.fcmOptions.link=f);let p=null===(d=n.fcmOptions)||void 0===d?void 0:d.analytics_label;p&&(e.fcmOptions.analyticsLabel=p)}(n,e),n}function _mergeStrings(e,n){let r=[];for(let a=0;a<e.length;a++)r.push(e.charAt(a)),a<n.length&&r.push(n.charAt(a));return r.join("")}function index_esm2017_getMissingValueError(e){return M.create("missing-app-config-values",{valueName:e})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */_mergeStrings("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),_mergeStrings("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let MessagingService=class MessagingService{constructor(e,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;let a=/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){if(!e||!e.options)throw index_esm2017_getMissingValueError("App Configuration Object");if(!e.name)throw index_esm2017_getMissingValueError("App Name");let{options:n}=e;for(let e of["projectId","apiKey","appId","messagingSenderId"])if(!n[e])throw index_esm2017_getMissingValueError(e);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:a,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}};/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function registerDefaultSw(e){try{e.swRegistration=await navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}),e.swRegistration.update().catch(()=>{})}catch(e){throw M.create("failed-service-worker-registration",{browserErrorMessage:null==e?void 0:e.message})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function updateSwReg(e,n){if(n||e.swRegistration||await registerDefaultSw(e),n||!e.swRegistration){if(!(n instanceof ServiceWorkerRegistration))throw M.create("invalid-sw-registration");e.swRegistration=n}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function updateVapidKey(e,n){n?e.vapidKey=n:e.vapidKey||(e.vapidKey=A)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function getToken$1(e,n){if(!navigator)throw M.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw M.create("permission-blocked");return await updateVapidKey(e,null==n?void 0:n.vapidKey),await updateSwReg(e,null==n?void 0:n.serviceWorkerRegistration),getTokenInternal(e)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function logToScion(e,n,r){let a=function(e){switch(e){case d.NOTIFICATION_CLICKED:return"notification_open";case d.PUSH_RECEIVED:return"notification_foreground";default:throw Error()}}(n),o=await e.firebaseDependencies.analyticsProvider.get();o.logEvent(a,{message_id:r[N],message_name:r["google.c.a.c_l"],message_time:r["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function messageEventListener(e,n){let r=n.data;if(!r.isFirebaseMessaging)return;e.onMessageHandler&&r.messageType===d.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(externalizePayload(r)):e.onMessageHandler.next(externalizePayload(r)));let a=r.data;"object"==typeof a&&a&&N in a&&"1"===a["google.c.a.e"]&&await logToScion(e,r.messageType,a)}let R="@firebase/messaging",L="0.12.9";(0,f.Xd)(new p.wA("messaging",e=>{let n=new MessagingService(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",e=>messageEventListener(n,e)),n},"PUBLIC")),(0,f.Xd)(new p.wA("messaging-internal",e=>{let n=e.getProvider("messaging").getImmediate();return{getToken:e=>getToken$1(n,e)}},"PRIVATE")),(0,f.KN)(R,L),(0,f.KN)(R,L,"esm2017")},40678:function(e,n,r){"use strict";var a;let o,u;r.d(n,{Lj:function(){return deleteDB},X3:function(){return openDB}});let instanceOfAny=(e,n)=>n.some(n=>e instanceof n),d=new WeakMap,f=new WeakMap,p=new WeakMap,g=new WeakMap,h=new WeakMap,m={get(e,n,r){if(e instanceof IDBTransaction){if("done"===n)return f.get(e);if("objectStoreNames"===n)return e.objectStoreNames||p.get(e);if("store"===n)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return wrap(e[n])},set:(e,n,r)=>(e[n]=r,!0),has:(e,n)=>e instanceof IDBTransaction&&("done"===n||"store"===n)||n in e};function wrap(e){var n;if(e instanceof IDBRequest)return function(e){let n=new Promise((n,r)=>{let unlisten=()=>{e.removeEventListener("success",success),e.removeEventListener("error",error)},success=()=>{n(wrap(e.result)),unlisten()},error=()=>{r(e.error),unlisten()};e.addEventListener("success",success),e.addEventListener("error",error)});return n.then(n=>{n instanceof IDBCursor&&d.set(n,e)}).catch(()=>{}),h.set(n,e),n}(e);if(g.has(e))return g.get(e);let r="function"==typeof(n=e)?n!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(u||(u=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(n)?function(...e){return n.apply(unwrap(this),e),wrap(d.get(this))}:function(...e){return wrap(n.apply(unwrap(this),e))}:function(e,...r){let a=n.call(unwrap(this),e,...r);return p.set(a,e.sort?e.sort():[e]),wrap(a)}:(n instanceof IDBTransaction&&function(e){if(f.has(e))return;let n=new Promise((n,r)=>{let unlisten=()=>{e.removeEventListener("complete",complete),e.removeEventListener("error",error),e.removeEventListener("abort",error)},complete=()=>{n(),unlisten()},error=()=>{r(e.error||new DOMException("AbortError","AbortError")),unlisten()};e.addEventListener("complete",complete),e.addEventListener("error",error),e.addEventListener("abort",error)});f.set(e,n)}(n),instanceOfAny(n,o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(n,m):n;return r!==e&&(g.set(e,r),h.set(r,e)),r}let unwrap=e=>h.get(e);function openDB(e,n,{blocked:r,upgrade:a,blocking:o,terminated:u}={}){let d=indexedDB.open(e,n),f=wrap(d);return a&&d.addEventListener("upgradeneeded",e=>{a(wrap(d.result),e.oldVersion,e.newVersion,wrap(d.transaction),e)}),r&&d.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),f.then(e=>{u&&e.addEventListener("close",()=>u()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),f}function deleteDB(e,{blocked:n}={}){let r=indexedDB.deleteDatabase(e);return n&&r.addEventListener("blocked",e=>n(e.oldVersion,e)),wrap(r).then(()=>void 0)}let b=["get","getKey","getAll","getAllKeys","count"],y=["put","add","delete","clear"],v=new Map;function getMethod(e,n){if(!(e instanceof IDBDatabase&&!(n in e)&&"string"==typeof n))return;if(v.get(n))return v.get(n);let r=n.replace(/FromIndex$/,""),a=n!==r,o=y.includes(r);if(!(r in(a?IDBIndex:IDBObjectStore).prototype)||!(o||b.includes(r)))return;let method=async function(e,...n){let u=this.transaction(e,o?"readwrite":"readonly"),d=u.store;return a&&(d=d.index(n.shift())),(await Promise.all([d[r](...n),o&&u.done]))[0]};return v.set(n,method),method}m={...a=m,get:(e,n,r)=>getMethod(e,n)||a.get(e,n,r),has:(e,n)=>!!getMethod(e,n)||a.has(e,n)}},40804:function(e,n,r){"use strict";r.d(n,{w:function(){return u}});var a=r(57893),o=r(82984);let u={tokenize:function(e,n,r){return function(n){return(0,o.xz)(n)?(0,a.f)(e,after,"linePrefix")(n):after(n)};function after(e){return null===e||(0,o.Ch)(e)?n(e):r(e)}},partial:!0}},57893:function(e,n,r){"use strict";r.d(n,{f:function(){return factorySpace}});var a=r(82984);function factorySpace(e,n,r,o){let u=o?o-1:Number.POSITIVE_INFINITY,d=0;return function(o){return(0,a.xz)(o)?(e.enter(r),function prefix(o){return(0,a.xz)(o)&&d++<u?(e.consume(o),prefix):(e.exit(r),n(o))}(o)):n(o)}}},82984:function(e,n,r){"use strict";r.d(n,{jv:function(){return a},H$:function(){return o},n9:function(){return u},Av:function(){return asciiControl},pY:function(){return d},AF:function(){return f},sR:function(){return p},Ch:function(){return markdownLineEnding},z3:function(){return markdownLineEndingOrSpace},xz:function(){return markdownSpace},Xh:function(){return g},B8:function(){return h}});let a=regexCheck(/[A-Za-z]/),o=regexCheck(/[\dA-Za-z]/),u=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(e){return null!==e&&(e<32||127===e)}let d=regexCheck(/\d/),f=regexCheck(/[\dA-Fa-f]/),p=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(e){return null!==e&&e<-2}function markdownLineEndingOrSpace(e){return null!==e&&(e<0||32===e)}function markdownSpace(e){return -2===e||-1===e||32===e}let g=regexCheck(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),h=regexCheck(/\s/);function regexCheck(e){return function(n){return null!==n&&e.test(String.fromCharCode(n))}}},93493:function(e,n,r){"use strict";function splice(e,n,r,a){let o;let u=e.length,d=0;if(n=n<0?-n>u?0:u+n:n>u?u:n,r=r>0?r:0,a.length<1e4)(o=Array.from(a)).unshift(n,r),e.splice(...o);else for(r&&e.splice(n,r);d<a.length;)(o=a.slice(d,d+1e4)).unshift(n,0),e.splice(...o),d+=1e4,n+=1e4}function push(e,n){return e.length>0?(splice(e,e.length,0,n),e):n}r.d(n,{V:function(){return push},d:function(){return splice}})},20271:function(e,n,r){"use strict";r.d(n,{r:function(){return classifyCharacter}});var a=r(82984);function classifyCharacter(e){return null===e||(0,a.z3)(e)||(0,a.B8)(e)?1:(0,a.Xh)(e)?2:void 0}},45740:function(e,n,r){"use strict";r.d(n,{W:function(){return combineExtensions}});var a=r(93493);let o={}.hasOwnProperty;function combineExtensions(e){let n={},r=-1;for(;++r<e.length;)(function(e,n){let r;for(r in n){let u;let d=o.call(e,r)?e[r]:void 0,f=d||(e[r]={}),p=n[r];if(p)for(u in p){o.call(f,u)||(f[u]=[]);let e=p[u];(function(e,n){let r=-1,o=[];for(;++r<n.length;)("after"===n[r].add?e:o).push(n[r]);(0,a.d)(e,0,0,o)})(f[u],Array.isArray(e)?e:e?[e]:[])}}})(n,e[r]);return n}},21007:function(e,n,r){"use strict";function decodeNumericCharacterReference(e,n){let r=Number.parseInt(e,n);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(65535&r)==65535||(65535&r)==65534||r>1114111?"�":String.fromCharCode(r)}r.d(n,{o:function(){return decodeNumericCharacterReference}})},27138:function(e,n,r){"use strict";r.d(n,{v:function(){return decodeString}});var a=r(5063),o=r(21007);let u=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(e){return e.replace(u,decode)}function decode(e,n,r){if(n)return n;let u=r.charCodeAt(0);if(35===u){let e=r.charCodeAt(1),n=120===e||88===e;return(0,o.o)(r.slice(n?2:1),n?16:10)}return(0,a.T)(r)||e}},42789:function(e,n,r){"use strict";function normalizeIdentifier(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r.d(n,{d:function(){return normalizeIdentifier}})},85716:function(e,n,r){"use strict";function resolveAll(e,n,r){let a=[],o=-1;for(;++o<e.length;){let u=e[o].resolveAll;u&&!a.includes(u)&&(n=u(n,r),a.push(u))}return n}r.d(n,{C:function(){return resolveAll}})},25440:function(e,n,r){"use strict";r.d(n,{D:function(){return ReactMarkdown}});var a={};r.r(a),r.d(a,{attentionMarkers:function(){return eg},contentInitial:function(){return es},disable:function(){return eh},document:function(){return el},flow:function(){return eu},flowInitial:function(){return ec},insideSpan:function(){return ep},string:function(){return ed},text:function(){return ef}});var o={};r.r(o),r.d(o,{boolean:function(){return eN},booleanish:function(){return eO},commaOrSpaceSeparated:function(){return eR},commaSeparated:function(){return eM},number:function(){return eI},overloadedBoolean:function(){return eT},spaceSeparated:function(){return eD}});var u=r(94623),d=r(2026);function stringifyPosition(e){return e&&"object"==typeof e?"position"in e||"type"in e?position(e.position):"start"in e||"end"in e?position(e):"line"in e||"column"in e?point(e):"":""}function point(e){return index(e&&e.line)+":"+index(e&&e.column)}function position(e){return point(e&&e.start)+"-"+point(e&&e.end)}function index(e){return e&&"number"==typeof e?e:1}let VFileMessage=class VFileMessage extends Error{constructor(e,n,r){let a=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof n&&(r=n,n=void 0),"string"==typeof r){let e=r.indexOf(":");-1===e?a[1]=r:(a[0]=r.slice(0,e),a[1]=r.slice(e+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=stringifyPosition(n)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=a[0],this.ruleId=a[1],this.file,this.actual,this.expected,this.url,this.note}};VFileMessage.prototype.file="",VFileMessage.prototype.name="",VFileMessage.prototype.reason="",VFileMessage.prototype.message="",VFileMessage.prototype.stack="",VFileMessage.prototype.fatal=null,VFileMessage.prototype.column=null,VFileMessage.prototype.line=null,VFileMessage.prototype.source=null,VFileMessage.prototype.ruleId=null,VFileMessage.prototype.position=null;let f={basename:function(e,n){let r;if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');assertPath(e);let a=0,o=-1,u=e.length;if(void 0===n||0===n.length||n.length>e.length){for(;u--;)if(47===e.charCodeAt(u)){if(r){a=u+1;break}}else o<0&&(r=!0,o=u+1);return o<0?"":e.slice(a,o)}if(n===e)return"";let d=-1,f=n.length-1;for(;u--;)if(47===e.charCodeAt(u)){if(r){a=u+1;break}}else d<0&&(r=!0,d=u+1),f>-1&&(e.charCodeAt(u)===n.charCodeAt(f--)?f<0&&(o=u):(f=-1,o=d));return a===o?o=d:o<0&&(o=e.length),e.slice(a,o)},dirname:function(e){let n;if(assertPath(e),0===e.length)return".";let r=-1,a=e.length;for(;--a;)if(47===e.charCodeAt(a)){if(n){r=a;break}}else n||(n=!0);return r<0?47===e.charCodeAt(0)?"/":".":1===r&&47===e.charCodeAt(0)?"//":e.slice(0,r)},extname:function(e){let n;assertPath(e);let r=e.length,a=-1,o=0,u=-1,d=0;for(;r--;){let f=e.charCodeAt(r);if(47===f){if(n){o=r+1;break}continue}a<0&&(n=!0,a=r+1),46===f?u<0?u=r:1!==d&&(d=1):u>-1&&(d=-1)}return u<0||a<0||0===d||1===d&&u===a-1&&u===o+1?"":e.slice(u,a)},join:function(...e){let n,r=-1;for(;++r<e.length;)assertPath(e[r]),e[r]&&(n=void 0===n?e[r]:n+"/"+e[r]);return void 0===n?".":function(e){assertPath(e);let n=47===e.charCodeAt(0),r=function(e,n){let r,a,o="",u=0,d=-1,f=0,p=-1;for(;++p<=e.length;){if(p<e.length)r=e.charCodeAt(p);else if(47===r)break;else r=47;if(47===r){if(d===p-1||1===f);else if(d!==p-1&&2===f){if(o.length<2||2!==u||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2)){if(o.length>2){if((a=o.lastIndexOf("/"))!==o.length-1){a<0?(o="",u=0):u=(o=o.slice(0,a)).length-1-o.lastIndexOf("/"),d=p,f=0;continue}}else if(o.length>0){o="",u=0,d=p,f=0;continue}}n&&(o=o.length>0?o+"/..":"..",u=2)}else o.length>0?o+="/"+e.slice(d+1,p):o=e.slice(d+1,p),u=p-d-1;d=p,f=0}else 46===r&&f>-1?f++:f=-1}return o}(e,!n);return 0!==r.length||n||(r="."),r.length>0&&47===e.charCodeAt(e.length-1)&&(r+="/"),n?"/"+r:r}(n)},sep:"/"};function assertPath(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function isUrl(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let p=["history","path","basename","stem","extname","dirname"];let VFile=class VFile{constructor(e){let n,r;n=e?"string"==typeof e||d(e)?{value:e}:isUrl(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd="/",this.value,this.stored,this.result,this.map;let a=-1;for(;++a<p.length;){let e=p[a];e in n&&void 0!==n[e]&&null!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(r in n)p.includes(r)||(this[r]=n[r])}get path(){return this.history[this.history.length-1]}set path(e){isUrl(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!isUrl(e)){let n=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let n=e.pathname,r=-1;for(;++r<n.length;)if(37===n.charCodeAt(r)&&50===n.charCodeAt(r+1)){let e=n.charCodeAt(r+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(n)}(e)}(e)),assertNonEmpty(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?f.dirname(this.path):void 0}set dirname(e){lib_assertPath(this.basename,"dirname"),this.path=f.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?f.basename(this.path):void 0}set basename(e){assertNonEmpty(e,"basename"),assertPart(e,"basename"),this.path=f.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?f.extname(this.path):void 0}set extname(e){if(assertPart(e,"extname"),lib_assertPath(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=f.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?f.basename(this.path,this.extname):void 0}set stem(e){assertNonEmpty(e,"stem"),assertPart(e,"stem"),this.path=f.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,n,r){let a=new VFileMessage(e,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}info(e,n,r){let a=this.message(e,n,r);return a.fatal=null,a}fail(e,n,r){let a=this.message(e,n,r);throw a.fatal=!0,a}};function assertPart(e,n){if(e&&e.includes(f.sep))throw Error("`"+n+"` cannot be a path: did not expect `"+f.sep+"`")}function assertNonEmpty(e,n){if(!e)throw Error("`"+n+"` cannot be empty")}function lib_assertPath(e,n){if(!e)throw Error("Setting `"+n+"` requires `path` to be set too")}function bail(e){if(e)throw e}var g=r(84043);function isPlainObject(e){if("object"!=typeof e||null===e)return!1;let n=Object.getPrototypeOf(e);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let h=(function base(){let e;let n=function(){let e=[],n={run:function(...n){let r=-1,a=n.pop();if("function"!=typeof a)throw TypeError("Expected function as last argument, not "+a);(function next(o,...u){let d=e[++r],f=-1;if(o){a(o);return}for(;++f<n.length;)(null===u[f]||void 0===u[f])&&(u[f]=n[f]);n=u,d?(function(e,n){let r;return function(...n){let a;let o=e.length>n.length;o&&n.push(done);try{a=e.apply(this,n)}catch(e){if(o&&r)throw e;return done(e)}o||(a instanceof Promise?a.then(then,done):a instanceof Error?done(a):then(a))};function done(e,...a){r||(r=!0,n(e,...a))}function then(e){done(null,e)}})(d,next)(...u):a(null,...u)})(null,...n)},use:function(r){if("function"!=typeof r)throw TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),n}};return n}(),r=[],a={},o=-1;return processor.data=function(n,r){return"string"==typeof n?2==arguments.length?(assertUnfrozen("data",e),a[n]=r,processor):m.call(a,n)&&a[n]||null:n?(assertUnfrozen("data",e),a=n,processor):a},processor.Parser=void 0,processor.Compiler=void 0,processor.freeze=function(){if(e)return processor;for(;++o<r.length;){let[e,...a]=r[o];if(!1===a[0])continue;!0===a[0]&&(a[0]=void 0);let u=e.call(processor,...a);"function"==typeof u&&n.use(u)}return e=!0,o=Number.POSITIVE_INFINITY,processor},processor.attachers=r,processor.use=function(n,...o){let u;if(assertUnfrozen("use",e),null==n);else if("function"==typeof n)addPlugin(n,...o);else if("object"==typeof n)Array.isArray(n)?addList(n):addPreset(n);else throw TypeError("Expected usable value, not `"+n+"`");return u&&(a.settings=Object.assign(a.settings||{},u)),processor;function addPreset(e){addList(e.plugins),e.settings&&(u=Object.assign(u||{},e.settings))}function addList(e){let n=-1;if(null==e);else if(Array.isArray(e))for(;++n<e.length;){let r=e[n];!function(e){if("function"==typeof e)addPlugin(e);else if("object"==typeof e){if(Array.isArray(e)){let[n,...r]=e;addPlugin(n,...r)}else addPreset(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(r)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function addPlugin(e,n){let a,o=-1;for(;++o<r.length;)if(r[o][0]===e){a=r[o];break}a?(isPlainObject(a[1])&&isPlainObject(n)&&(n=g(!0,a[1],n)),a[1]=n):r.push([...arguments])}},processor.parse=function(e){processor.freeze();let n=vfile(e),r=processor.Parser;return(assertParser("parse",r),newable(r,"parse"))?new r(String(n),n).parse():r(String(n),n)},processor.stringify=function(e,n){processor.freeze();let r=vfile(n),a=processor.Compiler;return(assertCompiler("stringify",a),assertNode(e),newable(a,"compile"))?new a(e,r).compile():a(e,r)},processor.run=function(e,r,a){if(assertNode(e),processor.freeze(),a||"function"!=typeof r||(a=r,r=void 0),!a)return new Promise(executor);function executor(o,u){n.run(e,vfile(r),function(n,r,d){r=r||e,n?u(n):o?o(r):a(null,r,d)})}executor(null,a)},processor.runSync=function(e,n){let r,a;return processor.run(e,n,function(e,n){bail(e),r=n,a=!0}),assertDone("runSync","run",a),r},processor.process=function(e,n){if(processor.freeze(),assertParser("process",processor.Parser),assertCompiler("process",processor.Compiler),!n)return new Promise(executor);function executor(r,a){let o=vfile(e);function done(e,o){e||!o?a(e):r?r(o):n(null,o)}processor.run(processor.parse(o),o,(e,n,r)=>{if(!e&&n&&r){let a=processor.stringify(n,r);null==a||("string"==typeof a||d(a)?r.value=a:r.result=a),done(e,r)}else done(e)})}executor(null,n)},processor.processSync=function(e){let n;processor.freeze(),assertParser("processSync",processor.Parser),assertCompiler("processSync",processor.Compiler);let r=vfile(e);return processor.process(r,function(e){n=!0,bail(e)}),assertDone("processSync","process",n),r},processor;function processor(){let e=base(),n=-1;for(;++n<r.length;)e.use(...r[n]);return e.data(g(!0,{},a)),e}})().freeze(),m={}.hasOwnProperty;function newable(e,n){return"function"==typeof e&&e.prototype&&(function(e){let n;for(n in e)if(m.call(e,n))return!0;return!1}(e.prototype)||n in e.prototype)}function assertParser(e,n){if("function"!=typeof n)throw TypeError("Cannot `"+e+"` without `Parser`")}function assertCompiler(e,n){if("function"!=typeof n)throw TypeError("Cannot `"+e+"` without `Compiler`")}function assertUnfrozen(e,n){if(n)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(e){if(!isPlainObject(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function assertDone(e,n,r){if(!r)throw Error("`"+e+"` finished async. Use `"+n+"` instead")}function vfile(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new VFile(e)}let b={};function one(e,n,r){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||r?e.value:"";if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lib_all(e.children,n,r)}return Array.isArray(e)?lib_all(e,n,r):""}function lib_all(e,n,r){let a=[],o=-1;for(;++o<e.length;)a[o]=one(e[o],n,r);return a.join("")}var y=r(45740),v=r(57893),w=r(82984);let E={tokenize:function(e){let n;let r=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,v.f)(e,r,"linePrefix")},function(r){return e.enter("paragraph"),function lineStart(r){let a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,function data(n){if(null===n){e.exit("chunkText"),e.exit("paragraph"),e.consume(n);return}return(0,w.Ch)(n)?(e.consume(n),e.exit("chunkText"),lineStart):(e.consume(n),data)}(r)}(r)});return r}};var k=r(93493);let _={tokenize:function(e){let n,r,a;let o=this,u=[],d=0;return start;function start(n){if(d<u.length){let r=u[d];return o.containerState=r[1],e.attempt(r[0].continuation,documentContinue,checkNewContainers)(n)}return checkNewContainers(n)}function documentContinue(e){if(d++,o.containerState._closeFlow){let r;o.containerState._closeFlow=void 0,n&&closeFlow();let a=o.events.length,u=a;for(;u--;)if("exit"===o.events[u][0]&&"chunkFlow"===o.events[u][1].type){r=o.events[u][1].end;break}exitContainers(d);let f=a;for(;f<o.events.length;)o.events[f][1].end=Object.assign({},r),f++;return(0,k.d)(o.events,u+1,0,o.events.slice(a)),o.events.length=f,checkNewContainers(e)}return start(e)}function checkNewContainers(r){if(d===u.length){if(!n)return documentContinued(r);if(n.currentConstruct&&n.currentConstruct.concrete)return flowStart(r);o.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return o.containerState={},e.check(x,thereIsANewContainer,thereIsNoNewContainer)(r)}function thereIsANewContainer(e){return n&&closeFlow(),exitContainers(d),documentContinued(e)}function thereIsNoNewContainer(e){return o.parser.lazy[o.now().line]=d!==u.length,a=o.now().offset,flowStart(e)}function documentContinued(n){return o.containerState={},e.attempt(x,containerContinue,flowStart)(n)}function containerContinue(e){return d++,u.push([o.currentConstruct,o.containerState]),documentContinued(e)}function flowStart(a){if(null===a){n&&closeFlow(),exitContainers(0),e.consume(a);return}return n=n||o.parser.flow(o.now()),e.enter("chunkFlow",{contentType:"flow",previous:r,_tokenizer:n}),function flowContinue(n){if(null===n){writeToChild(e.exit("chunkFlow"),!0),exitContainers(0),e.consume(n);return}return(0,w.Ch)(n)?(e.consume(n),writeToChild(e.exit("chunkFlow")),d=0,o.interrupt=void 0,start):(e.consume(n),flowContinue)}(a)}function writeToChild(e,u){let f=o.sliceStream(e);if(u&&f.push(null),e.previous=r,r&&(r.next=e),r=e,n.defineSkip(e.start),n.write(f),o.parser.lazy[e.start.line]){let e,r,u=n.events.length;for(;u--;)if(n.events[u][1].start.offset<a&&(!n.events[u][1].end||n.events[u][1].end.offset>a))return;let f=o.events.length,p=f;for(;p--;)if("exit"===o.events[p][0]&&"chunkFlow"===o.events[p][1].type){if(e){r=o.events[p][1].end;break}e=!0}for(exitContainers(d),u=f;u<o.events.length;)o.events[u][1].end=Object.assign({},r),u++;(0,k.d)(o.events,p+1,0,o.events.slice(f)),o.events.length=u}}function exitContainers(n){let r=u.length;for(;r-- >n;){let n=u[r];o.containerState=n[1],n[0].exit.call(o,e)}u.length=n}function closeFlow(){n.write([null]),r=void 0,n=void 0,o.containerState._closeFlow=void 0}}},x={tokenize:function(e,n,r){return(0,v.f)(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var S=r(40804);function subtokenize(e){let n,r,a,o,u,d,f;let p={},g=-1;for(;++g<e.length;){for(;(g in p);)g=p[g];if(n=e[g],g&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[g-1][1].type&&((a=0)<(d=n[1]._tokenizer.events).length&&"lineEndingBlank"===d[a][1].type&&(a+=2),a<d.length&&"content"===d[a][1].type))for(;++a<d.length&&"content"!==d[a][1].type;)"chunkText"===d[a][1].type&&(d[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(p,function(e,n){let r,a;let o=e[n][1],u=e[n][2],d=n-1,f=[],p=o._tokenizer||u.parser[o.contentType](o.start),g=p.events,h=[],m={},b=-1,y=o,v=0,w=0,E=[w];for(;y;){for(;e[++d][1]!==y;);f.push(d),!y._tokenizer&&(r=u.sliceStream(y),y.next||r.push(null),a&&p.defineSkip(y.start),y._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(r),y._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),a=y,y=y.next}for(y=o;++b<g.length;)"exit"===g[b][0]&&"enter"===g[b-1][0]&&g[b][1].type===g[b-1][1].type&&g[b][1].start.line!==g[b][1].end.line&&(w=b+1,E.push(w),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(p.events=[],y?(y._tokenizer=void 0,y.previous=void 0):E.pop(),b=E.length;b--;){let n=g.slice(E[b],E[b+1]),r=f.pop();h.unshift([r,r+n.length-1]),(0,k.d)(e,r,2,n)}for(b=-1;++b<h.length;)m[v+h[b][0]]=v+h[b][1],v+=h[b][1]-h[b][0]-1;return m}(e,g)),g=p[g],f=!0);else if(n[1]._container){for(a=g,r=void 0;a--;)if("lineEnding"===(o=e[a])[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=a);else break;r&&(n[1].end=Object.assign({},e[r][1].start),(u=e.slice(r,g)).unshift(n),(0,k.d)(e,r,g-r+1,u))}}return!f}let C={tokenize:function(e,n){let r;return function(n){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),chunkInside(n)};function chunkInside(n){return null===n?contentEnd(n):(0,w.Ch)(n)?e.check(A,contentContinue,contentEnd)(n):(e.consume(n),chunkInside)}function contentEnd(r){return e.exit("chunkContent"),e.exit("content"),n(r)}function contentContinue(n){return e.consume(n),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,chunkInside}},resolve:function(e){return subtokenize(e),e}},A={tokenize:function(e,n,r){let a=this;return function(n){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,v.f)(e,prefixed,"linePrefix")};function prefixed(o){if(null===o||(0,w.Ch)(o))return r(o);let u=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&u&&"linePrefix"===u[1].type&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):e.interrupt(a.parser.constructs.flow,r,n)(o)}},partial:!0},N={tokenize:function(e){let n=this,r=e.attempt(S.w,function(a){if(null===a){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r},e.attempt(this.parser.constructs.flowInitial,afterConstruct,(0,v.f)(e,e.attempt(this.parser.constructs.flow,afterConstruct,e.attempt(C,afterConstruct)),"linePrefix")));return r;function afterConstruct(a){if(null===a){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,r}}},O={resolveAll:createResolver()},T=initializeFactory("string"),I=initializeFactory("text");function initializeFactory(e){return{tokenize:function(n){let r=this,a=this.parser.constructs[e],o=n.attempt(a,start,notText);return start;function start(e){return atBreak(e)?o(e):notText(e)}function notText(e){if(null===e){n.consume(e);return}return n.enter("data"),n.consume(e),data}function data(e){return atBreak(e)?(n.exit("data"),o(e)):(n.consume(e),data)}function atBreak(e){if(null===e)return!0;let n=a[e],o=-1;if(n)for(;++o<n.length;){let e=n[o];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:createResolver("text"===e?resolveAllLineSuffixes:void 0)}}function createResolver(e){return function(n,r){let a,o=-1;for(;++o<=n.length;)void 0===a?n[o]&&"data"===n[o][1].type&&(a=o,o++):n[o]&&"data"===n[o][1].type||(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function resolveAllLineSuffixes(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){let a;let o=e[r-1][1],u=n.sliceStream(o),d=u.length,f=-1,p=0;for(;d--;){let e=u[d];if("string"==typeof e){for(f=e.length;32===e.charCodeAt(f-1);)p++,f--;if(f)break;f=-1}else if(-2===e)a=!0,p++;else if(-1===e);else{d++;break}}if(p){let u={type:r===e.length||a||p<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-p,offset:o.end.offset-p,_index:o.start._index+d,_bufferIndex:d?f:o.start._bufferIndex+f},end:Object.assign({},o.end)};o.end=Object.assign({},u.start),o.start.offset===o.end.offset?Object.assign(o,u):(e.splice(r,0,["enter",u,n],["exit",u,n]),r+=2)}r++}return e}var D=r(85716);let M={name:"thematicBreak",tokenize:function(e,n,r){let a,o=0;return function(u){return e.enter("thematicBreak"),a=u,function atBreak(u){return u===a?(e.enter("thematicBreakSequence"),function sequence(n){return n===a?(e.consume(n),o++,sequence):(e.exit("thematicBreakSequence"),(0,w.xz)(n)?(0,v.f)(e,atBreak,"whitespace")(n):atBreak(n))}(u)):o>=3&&(null===u||(0,w.Ch)(u))?(e.exit("thematicBreak"),n(u)):r(u)}(u)}}},R={name:"list",tokenize:function(e,n,r){let a=this,o=a.events[a.events.length-1],u=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,d=0;return function(n){let o=a.containerState.type||(42===n||43===n||45===n?"listUnordered":"listOrdered");if("listUnordered"===o?!a.containerState.marker||n===a.containerState.marker:(0,w.pY)(n)){if(a.containerState.type||(a.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===n||45===n?e.check(M,r,atMarker)(n):atMarker(n);if(!a.interrupt||49===n)return e.enter("listItemPrefix"),e.enter("listItemValue"),function inside(n){return(0,w.pY)(n)&&++d<10?(e.consume(n),inside):(!a.interrupt||d<2)&&(a.containerState.marker?n===a.containerState.marker:41===n||46===n)?(e.exit("listItemValue"),atMarker(n)):r(n)}(n)}return r(n)};function atMarker(n){return e.enter("listItemMarker"),e.consume(n),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||n,e.check(S.w,a.interrupt?r:onBlank,e.attempt(L,endOfPrefix,otherPrefix))}function onBlank(e){return a.containerState.initialBlankLine=!0,u++,endOfPrefix(e)}function otherPrefix(n){return(0,w.xz)(n)?(e.enter("listItemPrefixWhitespace"),e.consume(n),e.exit("listItemPrefixWhitespace"),endOfPrefix):r(n)}function endOfPrefix(r){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(r)}},continuation:{tokenize:function(e,n,r){let a=this;return a.containerState._closeFlow=void 0,e.check(S.w,function(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,(0,v.f)(e,n,"listItemIndent",a.containerState.size+1)(r)},function(r){return a.containerState.furtherBlankLines||!(0,w.xz)(r)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,notInCurrentItem(r)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(F,n,notInCurrentItem)(r))});function notInCurrentItem(o){return a.containerState._closeFlow=!0,a.interrupt=void 0,(0,v.f)(e,e.attempt(R,n,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},L={tokenize:function(e,n,r){let a=this;return(0,v.f)(e,function(e){let o=a.events[a.events.length-1];return!(0,w.xz)(e)&&o&&"listItemPrefixWhitespace"===o[1].type?n(e):r(e)},"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},F={tokenize:function(e,n,r){let a=this;return(0,v.f)(e,function(e){let o=a.events[a.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===a.containerState.size?n(e):r(e)},"listItemIndent",a.containerState.size+1)},partial:!0},P={name:"blockQuote",tokenize:function(e,n,r){let a=this;return function(n){if(62===n){let r=a.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(n),e.exit("blockQuoteMarker"),after}return r(n)};function after(r){return(0,w.xz)(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(r))}},continuation:{tokenize:function(e,n,r){let a=this;return function(n){return(0,w.xz)(n)?(0,v.f)(e,contBefore,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):contBefore(n)};function contBefore(a){return e.attempt(P,n,r)(a)}}},exit:function(e){e.exit("blockQuote")}};function factoryDestination(e,n,r,a,o,u,d,f,p){let g=p||Number.POSITIVE_INFINITY,h=0;return function(n){return 60===n?(e.enter(a),e.enter(o),e.enter(u),e.consume(n),e.exit(u),enclosedBefore):null===n||32===n||41===n||(0,w.Av)(n)?r(n):(e.enter(a),e.enter(d),e.enter(f),e.enter("chunkString",{contentType:"string"}),raw(n))};function enclosedBefore(r){return 62===r?(e.enter(u),e.consume(r),e.exit(u),e.exit(o),e.exit(a),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),enclosed(r))}function enclosed(n){return 62===n?(e.exit("chunkString"),e.exit(f),enclosedBefore(n)):null===n||60===n||(0,w.Ch)(n)?r(n):(e.consume(n),92===n?enclosedEscape:enclosed)}function enclosedEscape(n){return 60===n||62===n||92===n?(e.consume(n),enclosed):enclosed(n)}function raw(o){return!h&&(null===o||41===o||(0,w.z3)(o))?(e.exit("chunkString"),e.exit(f),e.exit(d),e.exit(a),n(o)):h<g&&40===o?(e.consume(o),h++,raw):41===o?(e.consume(o),h--,raw):null===o||32===o||40===o||(0,w.Av)(o)?r(o):(e.consume(o),92===o?rawEscape:raw)}function rawEscape(n){return 40===n||41===n||92===n?(e.consume(n),raw):raw(n)}}function factoryLabel(e,n,r,a,o,u){let d;let f=this,p=0;return function(n){return e.enter(a),e.enter(o),e.consume(n),e.exit(o),e.enter(u),atBreak};function atBreak(g){return p>999||null===g||91===g||93===g&&!d||94===g&&!p&&"_hiddenFootnoteSupport"in f.parser.constructs?r(g):93===g?(e.exit(u),e.enter(o),e.consume(g),e.exit(o),e.exit(a),n):(0,w.Ch)(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),atBreak):(e.enter("chunkString",{contentType:"string"}),labelInside(g))}function labelInside(n){return null===n||91===n||93===n||(0,w.Ch)(n)||p++>999?(e.exit("chunkString"),atBreak(n)):(e.consume(n),d||(d=!(0,w.xz)(n)),92===n?labelEscape:labelInside)}function labelEscape(n){return 91===n||92===n||93===n?(e.consume(n),p++,labelInside):labelInside(n)}}function factoryTitle(e,n,r,a,o,u){let d;return function(n){return 34===n||39===n||40===n?(e.enter(a),e.enter(o),e.consume(n),e.exit(o),d=40===n?41:n,begin):r(n)};function begin(r){return r===d?(e.enter(o),e.consume(r),e.exit(o),e.exit(a),n):(e.enter(u),atBreak(r))}function atBreak(n){return n===d?(e.exit(u),begin(d)):null===n?r(n):(0,w.Ch)(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,v.f)(e,atBreak,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),inside(n))}function inside(n){return n===d||null===n||(0,w.Ch)(n)?(e.exit("chunkString"),atBreak(n)):(e.consume(n),92===n?escape:inside)}function escape(n){return n===d||92===n?(e.consume(n),inside):inside(n)}}function factoryWhitespace(e,n){let r;return function start(a){return(0,w.Ch)(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,start):(0,w.xz)(a)?(0,v.f)(e,start,r?"linePrefix":"lineSuffix")(a):n(a)}}var B=r(42789);let z={tokenize:function(e,n,r){return function(n){return(0,w.z3)(n)?factoryWhitespace(e,beforeMarker)(n):r(n)};function beforeMarker(n){return factoryTitle(e,titleAfter,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function titleAfter(n){return(0,w.xz)(n)?(0,v.f)(e,titleAfterOptionalWhitespace,"whitespace")(n):titleAfterOptionalWhitespace(n)}function titleAfterOptionalWhitespace(e){return null===e||(0,w.Ch)(e)?n(e):r(e)}},partial:!0},j={name:"codeIndented",tokenize:function(e,n,r){let a=this;return function(n){return e.enter("codeIndented"),(0,v.f)(e,afterPrefix,"linePrefix",5)(n)};function afterPrefix(n){let o=a.events[a.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?function atBreak(n){return null===n?after(n):(0,w.Ch)(n)?e.attempt(U,atBreak,after)(n):(e.enter("codeFlowValue"),function inside(n){return null===n||(0,w.Ch)(n)?(e.exit("codeFlowValue"),atBreak(n)):(e.consume(n),inside)}(n))}(n):r(n)}function after(r){return e.exit("codeIndented"),n(r)}}},U={tokenize:function(e,n,r){let a=this;return furtherStart;function furtherStart(n){return a.parser.lazy[a.now().line]?r(n):(0,w.Ch)(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),furtherStart):(0,v.f)(e,afterPrefix,"linePrefix",5)(n)}function afterPrefix(e){let o=a.events[a.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?n(e):(0,w.Ch)(e)?furtherStart(e):r(e)}},partial:!0},H={name:"setextUnderline",tokenize:function(e,n,r){let a;let o=this;return function(n){let u,d=o.events.length;for(;d--;)if("lineEnding"!==o.events[d][1].type&&"linePrefix"!==o.events[d][1].type&&"content"!==o.events[d][1].type){u="paragraph"===o.events[d][1].type;break}return!o.parser.lazy[o.now().line]&&(o.interrupt||u)?(e.enter("setextHeadingLine"),a=n,e.enter("setextHeadingLineSequence"),function inside(n){return n===a?(e.consume(n),inside):(e.exit("setextHeadingLineSequence"),(0,w.xz)(n)?(0,v.f)(e,after,"lineSuffix")(n):after(n))}(n)):r(n)};function after(a){return null===a||(0,w.Ch)(a)?(e.exit("setextHeadingLine"),n(a)):r(a)}},resolveTo:function(e,n){let r,a,o,u=e.length;for(;u--;)if("enter"===e[u][0]){if("content"===e[u][1].type){r=u;break}"paragraph"===e[u][1].type&&(a=u)}else"content"===e[u][1].type&&e.splice(u,1),o||"definition"!==e[u][1].type||(o=u);let d={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",d,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=d,e.push(["exit",d,n]),e}},$=["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"],q=["pre","script","style","textarea"],K={tokenize:function(e,n,r){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(S.w,n,r)}},partial:!0},V={tokenize:function(e,n,r){let a=this;return function(n){return(0,w.Ch)(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),after):r(n)};function after(e){return a.parser.lazy[a.now().line]?r(e):n(e)}},partial:!0},W={tokenize:function(e,n,r){let a=this;return function(n){return null===n?r(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),lineStart)};function lineStart(e){return a.parser.lazy[a.now().line]?r(e):n(e)}},partial:!0},G={name:"codeFenced",tokenize:function(e,n,r){let a;let o=this,u={tokenize:function(e,n,r){let u=0;return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),start};function start(n){return e.enter("codeFencedFence"),(0,w.xz)(n)?(0,v.f)(e,beforeSequenceClose,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):beforeSequenceClose(n)}function beforeSequenceClose(n){return n===a?(e.enter("codeFencedFenceSequence"),function sequenceClose(n){return n===a?(u++,e.consume(n),sequenceClose):u>=f?(e.exit("codeFencedFenceSequence"),(0,w.xz)(n)?(0,v.f)(e,sequenceCloseAfter,"whitespace")(n):sequenceCloseAfter(n)):r(n)}(n)):r(n)}function sequenceCloseAfter(a){return null===a||(0,w.Ch)(a)?(e.exit("codeFencedFence"),n(a)):r(a)}},partial:!0},d=0,f=0;return function(n){return function(n){let u=o.events[o.events.length-1];return d=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,a=n,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function sequenceOpen(n){return n===a?(f++,e.consume(n),sequenceOpen):f<3?r(n):(e.exit("codeFencedFenceSequence"),(0,w.xz)(n)?(0,v.f)(e,infoBefore,"whitespace")(n):infoBefore(n))}(n)}(n)};function infoBefore(u){return null===u||(0,w.Ch)(u)?(e.exit("codeFencedFence"),o.interrupt?n(u):e.check(W,atNonLazyBreak,after)(u)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function info(n){return null===n||(0,w.Ch)(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),infoBefore(n)):(0,w.xz)(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,v.f)(e,metaBefore,"whitespace")(n)):96===n&&n===a?r(n):(e.consume(n),info)}(u))}function metaBefore(n){return null===n||(0,w.Ch)(n)?infoBefore(n):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function meta(n){return null===n||(0,w.Ch)(n)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),infoBefore(n)):96===n&&n===a?r(n):(e.consume(n),meta)}(n))}function atNonLazyBreak(n){return e.attempt(u,after,contentBefore)(n)}function contentBefore(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),contentStart}function contentStart(n){return d>0&&(0,w.xz)(n)?(0,v.f)(e,beforeContentChunk,"linePrefix",d+1)(n):beforeContentChunk(n)}function beforeContentChunk(n){return null===n||(0,w.Ch)(n)?e.check(W,atNonLazyBreak,after)(n):(e.enter("codeFlowValue"),function contentChunk(n){return null===n||(0,w.Ch)(n)?(e.exit("codeFlowValue"),beforeContentChunk(n)):(e.consume(n),contentChunk)}(n))}function after(r){return e.exit("codeFenced"),n(r)}},concrete:!0};var Z=r(5063);let X={name:"characterReference",tokenize:function(e,n,r){let a,o;let u=this,d=0;return function(n){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(n),e.exit("characterReferenceMarker"),open};function open(n){return 35===n?(e.enter("characterReferenceMarkerNumeric"),e.consume(n),e.exit("characterReferenceMarkerNumeric"),numeric):(e.enter("characterReferenceValue"),a=31,o=w.H$,value(n))}function numeric(n){return 88===n||120===n?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(n),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=w.AF,value):(e.enter("characterReferenceValue"),a=7,o=w.pY,value(n))}function value(f){if(59===f&&d){let a=e.exit("characterReferenceValue");return o!==w.H$||(0,Z.T)(u.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):r(f)}return o(f)&&d++<a?(e.consume(f),value):r(f)}}},Q={name:"characterEscape",tokenize:function(e,n,r){return function(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),inside};function inside(a){return(0,w.sR)(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(a)}}},J={name:"lineEnding",tokenize:function(e,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),(0,v.f)(e,n,"linePrefix")}}},Y={name:"labelEnd",tokenize:function(e,n,r){let a,o;let u=this,d=u.events.length;for(;d--;)if(("labelImage"===u.events[d][1].type||"labelLink"===u.events[d][1].type)&&!u.events[d][1]._balanced){a=u.events[d][1];break}return function(n){return a?a._inactive?labelEndNok(n):(o=u.parser.defined.includes((0,B.d)(u.sliceSerialize({start:a.end,end:u.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelEnd"),after):r(n)};function after(n){return 40===n?e.attempt(ee,labelEndOk,o?labelEndOk:labelEndNok)(n):91===n?e.attempt(et,labelEndOk,o?referenceNotFull:labelEndNok)(n):o?labelEndOk(n):labelEndNok(n)}function referenceNotFull(n){return e.attempt(en,labelEndOk,labelEndNok)(n)}function labelEndOk(e){return n(e)}function labelEndNok(e){return a._balanced=!0,r(e)}},resolveTo:function(e,n){let r,a,o,u,d=e.length,f=0;for(;d--;)if(r=e[d][1],a){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[d][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(o){if("enter"===e[d][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(a=d,"labelLink"!==r.type)){f=2;break}}else"labelEnd"===r.type&&(o=d);let p={type:"labelLink"===e[a][1].type?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},g={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},h={type:"labelText",start:Object.assign({},e[a+f+2][1].end),end:Object.assign({},e[o-2][1].start)};return u=[["enter",p,n],["enter",g,n]],u=(0,k.V)(u,e.slice(a+1,a+f+3)),u=(0,k.V)(u,[["enter",h,n]]),u=(0,k.V)(u,(0,D.C)(n.parser.constructs.insideSpan.null,e.slice(a+f+4,o-3),n)),u=(0,k.V)(u,[["exit",h,n],e[o-2],e[o-1],["exit",g,n]]),u=(0,k.V)(u,e.slice(o+1)),u=(0,k.V)(u,[["exit",p,n]]),(0,k.d)(e,a,e.length,u),e},resolveAll:function(e){let n=-1;for(;++n<e.length;){let r=e[n][1];("labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type)&&(e.splice(n+1,"labelImage"===r.type?4:2),r.type="data",n++)}return e}},ee={tokenize:function(e,n,r){return function(n){return e.enter("resource"),e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),resourceBefore};function resourceBefore(n){return(0,w.z3)(n)?factoryWhitespace(e,resourceOpen)(n):resourceOpen(n)}function resourceOpen(n){return 41===n?resourceEnd(n):factoryDestination(e,resourceDestinationAfter,resourceDestinationMissing,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(n)}function resourceDestinationAfter(n){return(0,w.z3)(n)?factoryWhitespace(e,resourceBetween)(n):resourceEnd(n)}function resourceDestinationMissing(e){return r(e)}function resourceBetween(n){return 34===n||39===n||40===n?factoryTitle(e,resourceTitleAfter,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(n):resourceEnd(n)}function resourceTitleAfter(n){return(0,w.z3)(n)?factoryWhitespace(e,resourceEnd)(n):resourceEnd(n)}function resourceEnd(a){return 41===a?(e.enter("resourceMarker"),e.consume(a),e.exit("resourceMarker"),e.exit("resource"),n):r(a)}}},et={tokenize:function(e,n,r){let a=this;return function(n){return factoryLabel.call(a,e,referenceFullAfter,referenceFullMissing,"reference","referenceMarker","referenceString")(n)};function referenceFullAfter(e){return a.parser.defined.includes((0,B.d)(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(e):r(e)}function referenceFullMissing(e){return r(e)}}},en={tokenize:function(e,n,r){return function(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),referenceCollapsedOpen};function referenceCollapsedOpen(a){return 93===a?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):r(a)}}},er={name:"labelStartImage",tokenize:function(e,n,r){let a=this;return function(n){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(n),e.exit("labelImageMarker"),open};function open(n){return 91===n?(e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelImage"),after):r(n)}function after(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?r(e):n(e)}},resolveAll:Y.resolveAll};var ei=r(20271);let ea={name:"attention",tokenize:function(e,n){let r;let a=this.parser.constructs.attentionMarkers.null,o=this.previous,u=(0,ei.r)(o);return function(d){return r=d,e.enter("attentionSequence"),function inside(d){if(d===r)return e.consume(d),inside;let f=e.exit("attentionSequence"),p=(0,ei.r)(d),g=!p||2===p&&u||a.includes(d),h=!u||2===u&&p||a.includes(o);return f._open=!!(42===r?g:g&&(u||!h)),f._close=!!(42===r?h:h&&(p||!g)),n(d)}(d)}},resolveAll:function(e,n){let r,a,o,u,d,f,p,g,h=-1;for(;++h<e.length;)if("enter"===e[h][0]&&"attentionSequence"===e[h][1].type&&e[h][1]._close){for(r=h;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[r][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;f=e[r][1].end.offset-e[r][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;let m=Object.assign({},e[r][1].end),b=Object.assign({},e[h][1].start);movePoint(m,-f),movePoint(b,f),u={type:f>1?"strongSequence":"emphasisSequence",start:m,end:Object.assign({},e[r][1].end)},d={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[h][1].start),end:b},o={type:f>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[h][1].start)},a={type:f>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},d.end)},e[r][1].end=Object.assign({},u.start),e[h][1].start=Object.assign({},d.end),p=[],e[r][1].end.offset-e[r][1].start.offset&&(p=(0,k.V)(p,[["enter",e[r][1],n],["exit",e[r][1],n]])),p=(0,k.V)(p,[["enter",a,n],["enter",u,n],["exit",u,n],["enter",o,n]]),p=(0,k.V)(p,(0,D.C)(n.parser.constructs.insideSpan.null,e.slice(r+1,h),n)),p=(0,k.V)(p,[["exit",o,n],["enter",d,n],["exit",d,n],["exit",a,n]]),e[h][1].end.offset-e[h][1].start.offset?(g=2,p=(0,k.V)(p,[["enter",e[h][1],n],["exit",e[h][1],n]])):g=0,(0,k.d)(e,r-1,h-r+3,p),h=r+p.length-g-2;break}}for(h=-1;++h<e.length;)"attentionSequence"===e[h][1].type&&(e[h][1].type="data");return e}};function movePoint(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}let eo={name:"labelStartLink",tokenize:function(e,n,r){let a=this;return function(n){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelLink"),after};function after(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?r(e):n(e)}},resolveAll:Y.resolveAll},el={42:R,43:R,45:R,48:R,49:R,50:R,51:R,52:R,53:R,54:R,55:R,56:R,57:R,62:P},es={91:{name:"definition",tokenize:function(e,n,r){let a;let o=this;return function(n){return e.enter("definition"),factoryLabel.call(o,e,labelAfter,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function labelAfter(n){return(a=(0,B.d)(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),58===n)?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),markerAfter):r(n)}function markerAfter(n){return(0,w.z3)(n)?factoryWhitespace(e,destinationBefore)(n):destinationBefore(n)}function destinationBefore(n){return factoryDestination(e,destinationAfter,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(n)}function destinationAfter(n){return e.attempt(z,after,after)(n)}function after(n){return(0,w.xz)(n)?(0,v.f)(e,afterWhitespace,"whitespace")(n):afterWhitespace(n)}function afterWhitespace(u){return null===u||(0,w.Ch)(u)?(e.exit("definition"),o.parser.defined.push(a),n(u)):r(u)}}}},ec={[-2]:j,[-1]:j,32:j},eu={35:{name:"headingAtx",tokenize:function(e,n,r){let a=0;return function(o){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function sequenceOpen(o){return 35===o&&a++<6?(e.consume(o),sequenceOpen):null===o||(0,w.z3)(o)?(e.exit("atxHeadingSequence"),function atBreak(r){return 35===r?(e.enter("atxHeadingSequence"),function sequenceFurther(n){return 35===n?(e.consume(n),sequenceFurther):(e.exit("atxHeadingSequence"),atBreak(n))}(r)):null===r||(0,w.Ch)(r)?(e.exit("atxHeading"),n(r)):(0,w.xz)(r)?(0,v.f)(e,atBreak,"whitespace")(r):(e.enter("atxHeadingText"),function data(n){return null===n||35===n||(0,w.z3)(n)?(e.exit("atxHeadingText"),atBreak(n)):(e.consume(n),data)}(r))}(o)):r(o)}(o)}},resolve:function(e,n){let r,a,o=e.length-2,u=3;return"whitespace"===e[3][1].type&&(u+=2),o-2>u&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(u===o-1||o-4>u&&"whitespace"===e[o-2][1].type)&&(o-=u+1===o?2:4),o>u&&(r={type:"atxHeadingText",start:e[u][1].start,end:e[o][1].end},a={type:"chunkText",start:e[u][1].start,end:e[o][1].end,contentType:"text"},(0,k.d)(e,u,o-u+1,[["enter",r,n],["enter",a,n],["exit",a,n],["exit",r,n]])),e}},42:M,45:[H,M],60:{name:"htmlFlow",tokenize:function(e,n,r){let a,o,u,d,f;let p=this;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),open};function open(d){return 33===d?(e.consume(d),declarationOpen):47===d?(e.consume(d),o=!0,tagCloseStart):63===d?(e.consume(d),a=3,p.interrupt?n:continuationDeclarationInside):(0,w.jv)(d)?(e.consume(d),u=String.fromCharCode(d),tagName):r(d)}function declarationOpen(o){return 45===o?(e.consume(o),a=2,commentOpenInside):91===o?(e.consume(o),a=5,d=0,cdataOpenInside):(0,w.jv)(o)?(e.consume(o),a=4,p.interrupt?n:continuationDeclarationInside):r(o)}function commentOpenInside(a){return 45===a?(e.consume(a),p.interrupt?n:continuationDeclarationInside):r(a)}function cdataOpenInside(a){let o="CDATA[";return a===o.charCodeAt(d++)?(e.consume(a),d===o.length)?p.interrupt?n:continuation:cdataOpenInside:r(a)}function tagCloseStart(n){return(0,w.jv)(n)?(e.consume(n),u=String.fromCharCode(n),tagName):r(n)}function tagName(d){if(null===d||47===d||62===d||(0,w.z3)(d)){let f=47===d,g=u.toLowerCase();return!f&&!o&&q.includes(g)?(a=1,p.interrupt?n(d):continuation(d)):$.includes(u.toLowerCase())?(a=6,f)?(e.consume(d),basicSelfClosing):p.interrupt?n(d):continuation(d):(a=7,p.interrupt&&!p.parser.lazy[p.now().line]?r(d):o?function completeClosingTagAfter(n){return(0,w.xz)(n)?(e.consume(n),completeClosingTagAfter):completeEnd(n)}(d):completeAttributeNameBefore(d))}return 45===d||(0,w.H$)(d)?(e.consume(d),u+=String.fromCharCode(d),tagName):r(d)}function basicSelfClosing(a){return 62===a?(e.consume(a),p.interrupt?n:continuation):r(a)}function completeAttributeNameBefore(n){return 47===n?(e.consume(n),completeEnd):58===n||95===n||(0,w.jv)(n)?(e.consume(n),completeAttributeName):(0,w.xz)(n)?(e.consume(n),completeAttributeNameBefore):completeEnd(n)}function completeAttributeName(n){return 45===n||46===n||58===n||95===n||(0,w.H$)(n)?(e.consume(n),completeAttributeName):completeAttributeNameAfter(n)}function completeAttributeNameAfter(n){return 61===n?(e.consume(n),completeAttributeValueBefore):(0,w.xz)(n)?(e.consume(n),completeAttributeNameAfter):completeAttributeNameBefore(n)}function completeAttributeValueBefore(n){return null===n||60===n||61===n||62===n||96===n?r(n):34===n||39===n?(e.consume(n),f=n,completeAttributeValueQuoted):(0,w.xz)(n)?(e.consume(n),completeAttributeValueBefore):function completeAttributeValueUnquoted(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,w.z3)(n)?completeAttributeNameAfter(n):(e.consume(n),completeAttributeValueUnquoted)}(n)}function completeAttributeValueQuoted(n){return n===f?(e.consume(n),f=null,completeAttributeValueQuotedAfter):null===n||(0,w.Ch)(n)?r(n):(e.consume(n),completeAttributeValueQuoted)}function completeAttributeValueQuotedAfter(e){return 47===e||62===e||(0,w.xz)(e)?completeAttributeNameBefore(e):r(e)}function completeEnd(n){return 62===n?(e.consume(n),completeAfter):r(n)}function completeAfter(n){return null===n||(0,w.Ch)(n)?continuation(n):(0,w.xz)(n)?(e.consume(n),completeAfter):r(n)}function continuation(n){return 45===n&&2===a?(e.consume(n),continuationCommentInside):60===n&&1===a?(e.consume(n),continuationRawTagOpen):62===n&&4===a?(e.consume(n),continuationClose):63===n&&3===a?(e.consume(n),continuationDeclarationInside):93===n&&5===a?(e.consume(n),continuationCdataInside):(0,w.Ch)(n)&&(6===a||7===a)?(e.exit("htmlFlowData"),e.check(K,continuationAfter,continuationStart)(n)):null===n||(0,w.Ch)(n)?(e.exit("htmlFlowData"),continuationStart(n)):(e.consume(n),continuation)}function continuationStart(n){return e.check(V,continuationStartNonLazy,continuationAfter)(n)}function continuationStartNonLazy(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),continuationBefore}function continuationBefore(n){return null===n||(0,w.Ch)(n)?continuationStart(n):(e.enter("htmlFlowData"),continuation(n))}function continuationCommentInside(n){return 45===n?(e.consume(n),continuationDeclarationInside):continuation(n)}function continuationRawTagOpen(n){return 47===n?(e.consume(n),u="",continuationRawEndTag):continuation(n)}function continuationRawEndTag(n){if(62===n){let r=u.toLowerCase();return q.includes(r)?(e.consume(n),continuationClose):continuation(n)}return(0,w.jv)(n)&&u.length<8?(e.consume(n),u+=String.fromCharCode(n),continuationRawEndTag):continuation(n)}function continuationCdataInside(n){return 93===n?(e.consume(n),continuationDeclarationInside):continuation(n)}function continuationDeclarationInside(n){return 62===n?(e.consume(n),continuationClose):45===n&&2===a?(e.consume(n),continuationDeclarationInside):continuation(n)}function continuationClose(n){return null===n||(0,w.Ch)(n)?(e.exit("htmlFlowData"),continuationAfter(n)):(e.consume(n),continuationClose)}function continuationAfter(r){return e.exit("htmlFlow"),n(r)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););return n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},concrete:!0},61:H,95:M,96:G,126:G},ed={38:X,92:Q},ef={[-5]:J,[-4]:J,[-3]:J,33:er,38:X,42:ea,60:[{name:"autolink",tokenize:function(e,n,r){let a=0;return function(n){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),open};function open(n){return(0,w.jv)(n)?(e.consume(n),schemeOrEmailAtext):emailAtext(n)}function schemeOrEmailAtext(n){return 43===n||45===n||46===n||(0,w.H$)(n)?(a=1,function schemeInsideOrEmailAtext(n){return 58===n?(e.consume(n),a=0,urlInside):(43===n||45===n||46===n||(0,w.H$)(n))&&a++<32?(e.consume(n),schemeInsideOrEmailAtext):(a=0,emailAtext(n))}(n)):emailAtext(n)}function urlInside(a){return 62===a?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),n):null===a||32===a||60===a||(0,w.Av)(a)?r(a):(e.consume(a),urlInside)}function emailAtext(n){return 64===n?(e.consume(n),emailAtSignOrDot):(0,w.n9)(n)?(e.consume(n),emailAtext):r(n)}function emailAtSignOrDot(o){return(0,w.H$)(o)?function emailLabel(o){return 46===o?(e.consume(o),a=0,emailAtSignOrDot):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),n):function emailValue(n){if((45===n||(0,w.H$)(n))&&a++<63){let r=45===n?emailValue:emailLabel;return e.consume(n),r}return r(n)}(o)}(o):r(o)}}},{name:"htmlText",tokenize:function(e,n,r){let a,o,u;let d=this;return function(n){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(n),open};function open(n){return 33===n?(e.consume(n),declarationOpen):47===n?(e.consume(n),tagCloseStart):63===n?(e.consume(n),instruction):(0,w.jv)(n)?(e.consume(n),tagOpen):r(n)}function declarationOpen(n){return 45===n?(e.consume(n),commentOpenInside):91===n?(e.consume(n),o=0,cdataOpenInside):(0,w.jv)(n)?(e.consume(n),declaration):r(n)}function commentOpenInside(n){return 45===n?(e.consume(n),commentEnd):r(n)}function comment(n){return null===n?r(n):45===n?(e.consume(n),commentClose):(0,w.Ch)(n)?(u=comment,lineEndingBefore(n)):(e.consume(n),comment)}function commentClose(n){return 45===n?(e.consume(n),commentEnd):comment(n)}function commentEnd(e){return 62===e?end(e):45===e?commentClose(e):comment(e)}function cdataOpenInside(n){let a="CDATA[";return n===a.charCodeAt(o++)?(e.consume(n),o===a.length?cdata:cdataOpenInside):r(n)}function cdata(n){return null===n?r(n):93===n?(e.consume(n),cdataClose):(0,w.Ch)(n)?(u=cdata,lineEndingBefore(n)):(e.consume(n),cdata)}function cdataClose(n){return 93===n?(e.consume(n),cdataEnd):cdata(n)}function cdataEnd(n){return 62===n?end(n):93===n?(e.consume(n),cdataEnd):cdata(n)}function declaration(n){return null===n||62===n?end(n):(0,w.Ch)(n)?(u=declaration,lineEndingBefore(n)):(e.consume(n),declaration)}function instruction(n){return null===n?r(n):63===n?(e.consume(n),instructionClose):(0,w.Ch)(n)?(u=instruction,lineEndingBefore(n)):(e.consume(n),instruction)}function instructionClose(e){return 62===e?end(e):instruction(e)}function tagCloseStart(n){return(0,w.jv)(n)?(e.consume(n),tagClose):r(n)}function tagClose(n){return 45===n||(0,w.H$)(n)?(e.consume(n),tagClose):function tagCloseBetween(n){return(0,w.Ch)(n)?(u=tagCloseBetween,lineEndingBefore(n)):(0,w.xz)(n)?(e.consume(n),tagCloseBetween):end(n)}(n)}function tagOpen(n){return 45===n||(0,w.H$)(n)?(e.consume(n),tagOpen):47===n||62===n||(0,w.z3)(n)?tagOpenBetween(n):r(n)}function tagOpenBetween(n){return 47===n?(e.consume(n),end):58===n||95===n||(0,w.jv)(n)?(e.consume(n),tagOpenAttributeName):(0,w.Ch)(n)?(u=tagOpenBetween,lineEndingBefore(n)):(0,w.xz)(n)?(e.consume(n),tagOpenBetween):end(n)}function tagOpenAttributeName(n){return 45===n||46===n||58===n||95===n||(0,w.H$)(n)?(e.consume(n),tagOpenAttributeName):function tagOpenAttributeNameAfter(n){return 61===n?(e.consume(n),tagOpenAttributeValueBefore):(0,w.Ch)(n)?(u=tagOpenAttributeNameAfter,lineEndingBefore(n)):(0,w.xz)(n)?(e.consume(n),tagOpenAttributeNameAfter):tagOpenBetween(n)}(n)}function tagOpenAttributeValueBefore(n){return null===n||60===n||61===n||62===n||96===n?r(n):34===n||39===n?(e.consume(n),a=n,tagOpenAttributeValueQuoted):(0,w.Ch)(n)?(u=tagOpenAttributeValueBefore,lineEndingBefore(n)):(0,w.xz)(n)?(e.consume(n),tagOpenAttributeValueBefore):(e.consume(n),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuoted(n){return n===a?(e.consume(n),a=void 0,tagOpenAttributeValueQuotedAfter):null===n?r(n):(0,w.Ch)(n)?(u=tagOpenAttributeValueQuoted,lineEndingBefore(n)):(e.consume(n),tagOpenAttributeValueQuoted)}function tagOpenAttributeValueUnquoted(n){return null===n||34===n||39===n||60===n||61===n||96===n?r(n):47===n||62===n||(0,w.z3)(n)?tagOpenBetween(n):(e.consume(n),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuotedAfter(e){return 47===e||62===e||(0,w.z3)(e)?tagOpenBetween(e):r(e)}function end(a){return 62===a?(e.consume(a),e.exit("htmlTextData"),e.exit("htmlText"),n):r(a)}function lineEndingBefore(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),lineEndingAfter}function lineEndingAfter(n){return(0,w.xz)(n)?(0,v.f)(e,lineEndingAfterPrefix,"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):lineEndingAfterPrefix(n)}function lineEndingAfterPrefix(n){return e.enter("htmlTextData"),u(n)}}}],91:eo,92:[{name:"hardBreakEscape",tokenize:function(e,n,r){return function(n){return e.enter("hardBreakEscape"),e.consume(n),after};function after(a){return(0,w.Ch)(a)?(e.exit("hardBreakEscape"),n(a)):r(a)}}},Q],93:Y,95:ea,96:{name:"codeText",tokenize:function(e,n,r){let a,o,u=0;return function(n){return e.enter("codeText"),e.enter("codeTextSequence"),function sequenceOpen(n){return 96===n?(e.consume(n),u++,sequenceOpen):(e.exit("codeTextSequence"),between(n))}(n)};function between(d){return null===d?r(d):32===d?(e.enter("space"),e.consume(d),e.exit("space"),between):96===d?(o=e.enter("codeTextSequence"),a=0,function sequenceClose(r){return 96===r?(e.consume(r),a++,sequenceClose):a===u?(e.exit("codeTextSequence"),e.exit("codeText"),n(r)):(o.type="codeTextData",data(r))}(d)):(0,w.Ch)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),between):(e.enter("codeTextData"),data(d))}function data(n){return null===n||32===n||96===n||(0,w.Ch)(n)?(e.exit("codeTextData"),between(n)):(e.consume(n),data)}},resolve:function(e){let n,r,a=e.length-4,o=3;if(("lineEnding"===e[3][1].type||"space"===e[o][1].type)&&("lineEnding"===e[a][1].type||"space"===e[a][1].type)){for(n=o;++n<a;)if("codeTextData"===e[n][1].type){e[o][1].type="codeTextPadding",e[a][1].type="codeTextPadding",o+=2,a-=2;break}}for(n=o-1,a++;++n<=a;)void 0===r?n!==a&&"lineEnding"!==e[n][1].type&&(r=n):(n===a||"lineEnding"===e[n][1].type)&&(e[r][1].type="codeTextData",n!==r+2&&(e[r][1].end=e[n-1][1].end,e.splice(r+2,n-r-2),a-=n-r-2,n=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},ep={null:[ea,O]},eg={null:[42,95]},eh={null:[]},em=/[\0\t\n\r]/g;var eb=r(21007),ey=r(27138);let ev={}.hasOwnProperty,fromMarkdown=function(e,n,r){let o,u,d,f;return"string"!=typeof n&&(r=n,n=void 0),(function(e){let n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:opener(link),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:opener(heading),blockQuote:opener(function(){return{type:"blockquote",children:[]}}),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:opener(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:opener(codeFlow,buffer),codeText:opener(function(){return{type:"inlineCode",value:""}},buffer),codeTextData:onenterdata,data:onenterdata,codeFlowValue:onenterdata,definition:opener(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:opener(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:opener(hardBreak),hardBreakTrailing:opener(hardBreak),htmlFlow:opener(html,buffer),htmlFlowData:onenterdata,htmlText:opener(html,buffer),htmlTextData:onenterdata,image:opener(function(){return{type:"image",title:null,url:"",alt:null}}),label:buffer,link:opener(link),listItem:opener(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){if(r.expectingFirstListItemValue){let n=this.stack[this.stack.length-2];n.start=Number.parseInt(this.sliceSerialize(e),10),r.expectingFirstListItemValue=void 0}},listOrdered:opener(list,function(){r.expectingFirstListItemValue=!0}),listUnordered:opener(list),paragraph:opener(function(){return{type:"paragraph",children:[]}}),reference:function(){r.referenceType="collapsed"},referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:opener(heading),strong:opener(function(){return{type:"strong",children:[]}}),thematicBreak:opener(function(){return{type:"thematicBreak"}})},exit:{atxHeading:closer(),atxHeadingSequence:function(e){let n=this.stack[this.stack.length-1];if(!n.depth){let r=this.sliceSerialize(e).length;n.depth=r}},autolink:closer(),autolinkEmail:function(e){onexitdata.call(this,e);let n=this.stack[this.stack.length-1];n.url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){onexitdata.call(this,e);let n=this.stack[this.stack.length-1];n.url=this.sliceSerialize(e)},blockQuote:closer(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:function(e){let n;let a=this.sliceSerialize(e),o=r.characterReferenceType;if(o)n=(0,eb.o)(a,"characterReferenceMarkerNumeric"===o?10:16),r.characterReferenceType=void 0;else{let e=(0,Z.T)(a);n=e}let u=this.stack.pop();u.value+=n,u.position.end=lib_point(e.end)},codeFenced:closer(function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),r.flowCodeInside=void 0}),codeFencedFence:function(){!r.flowCodeInside&&(this.buffer(),r.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.lang=e},codeFencedFenceMeta:function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.meta=e},codeFlowValue:onexitdata,codeIndented:closer(function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:closer(function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.value=e}),codeTextData:onexitdata,data:onexitdata,definition:closer(),definitionDestinationString:function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.url=e},definitionLabelString:function(e){let n=this.resume(),r=this.stack[this.stack.length-1];r.label=n,r.identifier=(0,B.d)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.title=e},emphasis:closer(),hardBreakEscape:closer(onexithardbreak),hardBreakTrailing:closer(onexithardbreak),htmlFlow:closer(function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.value=e}),htmlFlowData:onexitdata,htmlText:closer(function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.value=e}),htmlTextData:onexitdata,image:closer(function(){let e=this.stack[this.stack.length-1];if(r.inReference){let n=r.referenceType||"shortcut";e.type+="Reference",e.referenceType=n,delete e.url,delete e.title}else delete e.identifier,delete e.label;r.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],n=this.resume(),a=this.stack[this.stack.length-1];if(r.inReference=!0,"link"===a.type){let n=e.children;a.children=n}else a.alt=n},labelText:function(e){let n=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=(0,ey.v)(n),r.identifier=(0,B.d)(n).toLowerCase()},lineEnding:function(e){let a=this.stack[this.stack.length-1];if(r.atHardBreak){let n=a.children[a.children.length-1];n.position.end=lib_point(e.end),r.atHardBreak=void 0;return}!r.setextHeadingSlurpLineEnding&&n.canContainEols.includes(a.type)&&(onenterdata.call(this,e),onexitdata.call(this,e))},link:closer(function(){let e=this.stack[this.stack.length-1];if(r.inReference){let n=r.referenceType||"shortcut";e.type+="Reference",e.referenceType=n,delete e.url,delete e.title}else delete e.identifier,delete e.label;r.referenceType=void 0}),listItem:closer(),listOrdered:closer(),listUnordered:closer(),paragraph:closer(),referenceString:function(e){let n=this.resume(),a=this.stack[this.stack.length-1];a.label=n,a.identifier=(0,B.d)(this.sliceSerialize(e)).toLowerCase(),r.referenceType="full"},resourceDestinationString:function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.url=e},resourceTitleString:function(){let e=this.resume(),n=this.stack[this.stack.length-1];n.title=e},resource:function(){r.inReference=void 0},setextHeading:closer(function(){r.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){let n=this.stack[this.stack.length-1];n.depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){r.setextHeadingSlurpLineEnding=!0},strong:closer(),thematicBreak:closer()}};(function configure(e,n){let r=-1;for(;++r<n.length;){let a=n[r];Array.isArray(a)?configure(e,a):function(e,n){let r;for(r in n)if(ev.call(n,r)){if("canContainEols"===r){let a=n[r];a&&e[r].push(...a)}else if("transforms"===r){let a=n[r];a&&e[r].push(...a)}else if("enter"===r||"exit"===r){let a=n[r];a&&Object.assign(e[r],a)}}}(e,a)}})(n,(e||{}).mdastExtensions||[]);let r={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:n,enter,exit,buffer,resume,setData,getData},o=[],u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type){if("enter"===e[u][0])o.push(u);else{let n=o.pop();u=function(e,n,r){let a,o,u,d,f=n-1,p=-1,g=!1;for(;++f<=r;){let n=e[f];if("listUnordered"===n[1].type||"listOrdered"===n[1].type||"blockQuote"===n[1].type?("enter"===n[0]?p++:p--,d=void 0):"lineEndingBlank"===n[1].type?"enter"===n[0]&&(!a||d||p||u||(u=f),d=void 0):"linePrefix"===n[1].type||"listItemValue"===n[1].type||"listItemMarker"===n[1].type||"listItemPrefix"===n[1].type||"listItemPrefixWhitespace"===n[1].type||(d=void 0),!p&&"enter"===n[0]&&"listItemPrefix"===n[1].type||-1===p&&"exit"===n[0]&&("listUnordered"===n[1].type||"listOrdered"===n[1].type)){if(a){let d=f;for(o=void 0;d--;){let n=e[d];if("lineEnding"===n[1].type||"lineEndingBlank"===n[1].type){if("exit"===n[0])continue;o&&(e[o][1].type="lineEndingBlank",g=!0),n[1].type="lineEnding",o=d}else if("linePrefix"===n[1].type||"blockQuotePrefix"===n[1].type||"blockQuotePrefixWhitespace"===n[1].type||"blockQuoteMarker"===n[1].type||"listItemIndent"===n[1].type);else break}u&&(!o||u<o)&&(a._spread=!0),a.end=Object.assign({},o?e[o][1].start:n[1].end),e.splice(o||f,0,["exit",a,n[2]]),f++,r++}"listItemPrefix"===n[1].type&&(a={type:"listItem",_spread:!1,start:Object.assign({},n[1].start),end:void 0},e.splice(f,0,["enter",a,n[2]]),f++,r++,u=void 0,d=!0)}}return e[n][1]._spread=g,r}(e,n,u)}}for(u=-1;++u<e.length;){let r=n[e[u][0]];ev.call(r,e[u][1].type)&&r[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},a),e[u][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1],n=e[1]||defaultOnError;n.call(a,void 0,e[0])}for(r.position={start:lib_point(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lib_point(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<n.transforms.length;)r=n.transforms[u](r)||r;return r};function setData(e,n){r[e]=n}function getData(e){return r[e]}function opener(e,n){return function(r){enter.call(this,e(r),r),n&&n.call(this,r)}}function buffer(){this.stack.push({type:"fragment",children:[]})}function enter(e,n,r){let a=this.stack[this.stack.length-1];return a.children.push(e),this.stack.push(e),this.tokenStack.push([n,r]),e.position={start:lib_point(n.start)},e}function closer(e){return function(n){e&&e.call(this,n),exit.call(this,n)}}function exit(e,n){let r=this.stack.pop(),a=this.tokenStack.pop();if(a){if(a[0].type!==e.type){if(n)n.call(this,e,a[0]);else{let n=a[1]||defaultOnError;n.call(this,e,a[0])}}}else throw Error("Cannot close `"+e.type+"` ("+stringifyPosition({start:e.start,end:e.end})+"): it’s not open");return r.position.end=lib_point(e.end),r}function resume(){return function(e,n){let r="boolean"!=typeof b.includeImageAlt||b.includeImageAlt,a="boolean"!=typeof b.includeHtml||b.includeHtml;return one(e,r,a)}(this.stack.pop())}function onenterdata(e){let n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&"text"===r.type||((r={type:"text",value:""}).position={start:lib_point(e.start)},n.children.push(r)),this.stack.push(r)}function onexitdata(e){let n=this.stack.pop();n.value+=this.sliceSerialize(e),n.position.end=lib_point(e.end)}function onexithardbreak(){r.atHardBreak=!0}function onexitcharacterreferencemarker(e){var n;n=e.type,r.characterReferenceType=n}function codeFlow(){return{type:"code",lang:null,meta:null,value:""}}function heading(){return{type:"heading",depth:void 0,children:[]}}function hardBreak(){return{type:"break"}}function html(){return{type:"html",value:""}}function link(){return{type:"link",title:null,url:"",children:[]}}function list(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(r)(function(e){for(;!subtokenize(e););return e}((function(e){let n=(0,y.W)([a,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:create(E),document:create(_),flow:create(N),string:create(T),text:create(I)};return r;function create(e){return function(n){return function(e,n,r){let a=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),o={},u=[],d=[],f=[],p={consume:function(e){(0,w.Ch)(e)?(a.line++,a.column=1,a.offset+=-3===e?2:1,accountForPotentialSkip()):-1!==e&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===d[a._index].length&&(a._bufferIndex=-1,a._index++)),g.previous=e},enter:function(e,n){let r=n||{};return r.type=e,r.start=now(),g.events.push(["enter",r,g]),f.push(r),r},exit:function(e){let n=f.pop();return n.end=now(),g.events.push(["exit",n,g]),n},attempt:constructFactory(function(e,n){addResult(e,n.from)}),check:constructFactory(onsuccessfulcheck),interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0})},g={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream,sliceSerialize:function(e,n){return function(e,n){let r,a=-1,o=[];for(;++a<e.length;){let u;let d=e[a];if("string"==typeof d)u=d;else switch(d){case -5:u="\r";break;case -4:u="\n";break;case -3:u="\r\n";break;case -2:u=n?" ":"	";break;case -1:if(!n&&r)continue;u=" ";break;default:u=String.fromCharCode(d)}r=-2===d,o.push(u)}return o.join("")}(sliceStream(e),n)},now,defineSkip:function(e){o[e.line]=e.column,accountForPotentialSkip()},write:function(e){return(d=(0,k.V)(d,e),function(){let e;for(;a._index<d.length;){var n;let r=d[a._index];if("string"==typeof r)for(e=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===e&&a._bufferIndex<r.length;)n=r.charCodeAt(a._bufferIndex),h=h(n);else h=h(r)}}(),null!==d[d.length-1])?[]:(addResult(n,0),g.events=(0,D.C)(u,g.events,g),g.events)}},h=n.tokenize.call(g,p);return n.resolveAll&&u.push(n),g;function sliceStream(e){return function(e,n){let r;let a=n.start._index,o=n.start._bufferIndex,u=n.end._index,d=n.end._bufferIndex;if(a===u)r=[e[a].slice(o,d)];else{if(r=e.slice(a,u),o>-1){let e=r[0];"string"==typeof e?r[0]=e.slice(o):r.shift()}d>0&&r.push(e[u].slice(0,d))}return r}(d,e)}function now(){let{line:e,column:n,offset:r,_index:o,_bufferIndex:u}=a;return{line:e,column:n,offset:r,_index:o,_bufferIndex:u}}function onsuccessfulcheck(e,n){n.restore()}function constructFactory(e,n){return function(r,o,u){let d,h,m,b;return Array.isArray(r)?handleListOfConstructs(r):"tokenize"in r?handleListOfConstructs([r]):function(e){let n=null!==e&&r[e],a=null!==e&&r.null,o=[...Array.isArray(n)?n:n?[n]:[],...Array.isArray(a)?a:a?[a]:[]];return handleListOfConstructs(o)(e)};function handleListOfConstructs(e){return(d=e,h=0,0===e.length)?u:handleConstruct(e[h])}function handleConstruct(e){return function(r){return(b=function(){let e=now(),n=g.previous,r=g.currentConstruct,o=g.events.length,u=Array.from(f);return{restore:function(){a=e,g.previous=n,g.currentConstruct=r,g.events.length=o,f=u,accountForPotentialSkip()},from:o}}(),m=e,e.partial||(g.currentConstruct=e),e.name&&g.parser.constructs.disable.null.includes(e.name))?nok(r):e.tokenize.call(n?Object.assign(Object.create(g),n):g,p,ok,nok)(r)}}function ok(n){return e(m,b),o}function nok(e){return(b.restore(),++h<d.length)?handleConstruct(d[h]):u}}}function addResult(e,n){e.resolveAll&&!u.includes(e)&&u.push(e),e.resolve&&(0,k.d)(g.events,n,g.events.length-n,e.resolve(g.events.slice(n),g)),e.resolveTo&&(g.events=e.resolveTo(g.events,g))}function accountForPotentialSkip(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}(r,e,n)}}})(r).document().write((u=1,d="",f=!0,function(e,n,r){let a,p,g,h,m;let b=[];for(e=d+e.toString(n),g=0,d="",f&&(65279===e.charCodeAt(0)&&g++,f=void 0);g<e.length;){if(em.lastIndex=g,h=(a=em.exec(e))&&void 0!==a.index?a.index:e.length,m=e.charCodeAt(h),!a){d=e.slice(g);break}if(10===m&&g===h&&o)b.push(-3),o=void 0;else switch(o&&(b.push(-5),o=void 0),g<h&&(b.push(e.slice(g,h)),u+=h-g),m){case 0:b.push(65533),u++;break;case 9:for(p=4*Math.ceil(u/4),b.push(-2);u++<p;)b.push(-1);break;case 10:b.push(-4),u=1;break;default:o=!0,u=1}g=h+1}return r&&(o&&b.push(-5),d&&b.push(d),b.push(null)),b})(e,n,!0))))};function lib_point(e){return{line:e.line,column:e.column,offset:e.offset}}function defaultOnError(e,n){if(e)throw Error("Cannot close `"+e.type+"` ("+stringifyPosition({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+stringifyPosition({start:n.start,end:n.end})+") is open");throw Error("Cannot close document, a token (`"+n.type+"`, "+stringifyPosition({start:n.start,end:n.end})+") is still open")}function remarkParse(e){Object.assign(this,{Parser:n=>{let r=this.data("settings");return fromMarkdown(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function normalizeUri(e){let n=[],r=-1,a=0,o=0;for(;++r<e.length;){let u=e.charCodeAt(r),d="";if(37===u&&(0,w.H$)(e.charCodeAt(r+1))&&(0,w.H$)(e.charCodeAt(r+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(d=String.fromCharCode(u));else if(u>55295&&u<57344){let n=e.charCodeAt(r+1);u<56320&&n>56319&&n<57344?(d=String.fromCharCode(u,n),o=1):d="�"}else d=String.fromCharCode(u);d&&(n.push(e.slice(a,r),encodeURIComponent(d)),a=r+o+1,d=""),o&&(r+=o,o=0)}return n.join("")+e.slice(a)}var ew=r(98936);let eE=unist_util_position_lib_point("start"),ek=unist_util_position_lib_point("end");function unist_util_position_lib_point(e){return function(n){let r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}let e_={}.hasOwnProperty;function clean(e){return String(e||"").toUpperCase()}function footnoteReference(e,n){let r;let a=String(n.identifier).toUpperCase(),o=normalizeUri(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);-1===u?(e.footnoteOrder.push(a),e.footnoteCounts[a]=1,r=e.footnoteOrder.length):(e.footnoteCounts[a]++,r=u+1);let d=e.footnoteCounts[a],f={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+o,id:e.clobberPrefix+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(r)}]};e.patch(n,f);let p={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(n,p),e.applyData(n,p)}function revert(e,n){let r=n.referenceType,a="]";if("collapsed"===r?a+="[]":"full"===r&&(a+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return{type:"text",value:"!["+n.alt+a};let o=e.all(n),u=o[0];u&&"text"===u.type?u.value="["+u.value:o.unshift({type:"text",value:"["});let d=o[o.length-1];return d&&"text"===d.type?d.value+=a:o.push({type:"text",value:a}),o}function listItemLoose(e){let n=e.spread;return null==n?e.children.length>1:n}function trimLine(e,n,r){let a=0,o=e.length;if(n){let n=e.codePointAt(a);for(;9===n||32===n;)a++,n=e.codePointAt(a)}if(r){let n=e.codePointAt(o-1);for(;9===n||32===n;)o--,n=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}let ex={blockquote:function(e,n){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)},break:function(e,n){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:"\n"}]},code:function(e,n){let r=n.value?n.value+"\n":"",a=n.lang?n.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};a&&(o.className=["language-"+a]);let u={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return n.meta&&(u.data={meta:n.meta}),e.patch(n,u),u={type:"element",tagName:"pre",properties:{},children:[u=e.applyData(n,u)]},e.patch(n,u),u},delete:function(e,n){let r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},emphasis:function(e,n){let r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},footnoteReference:footnoteReference,footnote:function(e,n){let r=e.footnoteById,a=1;for(;(a in r);)a++;let o=String(a);return r[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:n.children}],position:n.position},footnoteReference(e,{type:"footnoteReference",identifier:o,position:n.position})},heading:function(e,n){let r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},html:function(e,n){if(e.dangerous){let r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}return null},imageReference:function(e,n){let r=e.definition(n.identifier);if(!r)return revert(e,n);let a={src:normalizeUri(r.url||""),alt:n.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);let o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,o),e.applyData(n,o)},image:function(e,n){let r={src:normalizeUri(n.url)};null!==n.alt&&void 0!==n.alt&&(r.alt=n.alt),null!==n.title&&void 0!==n.title&&(r.title=n.title);let a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)},inlineCode:function(e,n){let r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);let a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,a),e.applyData(n,a)},linkReference:function(e,n){let r=e.definition(n.identifier);if(!r)return revert(e,n);let a={href:normalizeUri(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);let o={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)},link:function(e,n){let r={href:normalizeUri(n.url)};null!==n.title&&void 0!==n.title&&(r.title=n.title);let a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},listItem:function(e,n,r){let a=e.all(n),o=r?function(e){let n=!1;if("list"===e.type){n=e.spread||!1;let r=e.children,a=-1;for(;!n&&++a<r.length;)n=listItemLoose(r[a])}return n}(r):listItemLoose(n),u={},d=[];if("boolean"==typeof n.checked){let e;let r=a[0];r&&"element"===r.type&&"p"===r.tagName?e=r:(e={type:"element",tagName:"p",properties:{},children:[]},a.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<a.length;){let e=a[f];(o||0!==f||"element"!==e.type||"p"!==e.tagName)&&d.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?d.push(e):d.push(...e.children)}let p=a[a.length-1];p&&(o||"element"!==p.type||"p"!==p.tagName)&&d.push({type:"text",value:"\n"});let g={type:"element",tagName:"li",properties:u,children:d};return e.patch(n,g),e.applyData(n,g)},list:function(e,n){let r={},a=e.all(n),o=-1;for("number"==typeof n.start&&1!==n.start&&(r.start=n.start);++o<a.length;){let e=a[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let u={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(n,u),e.applyData(n,u)},paragraph:function(e,n){let r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},root:function(e,n){let r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)},strong:function(e,n){let r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},table:function(e,n){let r=e.all(n),a=r.shift(),o=[];if(a){let r={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(n.children[0],r),o.push(r)}if(r.length>0){let a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},u=eE(n.children[1]),d=ek(n.children[n.children.length-1]);u.line&&d.line&&(a.position={start:u,end:d}),o.push(a)}let u={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,u),e.applyData(n,u)},tableCell:function(e,n){let r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},tableRow:function(e,n,r){let a=r?r.children:void 0,o=a?a.indexOf(n):1,u=0===o?"th":"td",d=r&&"table"===r.type?r.align:void 0,f=d?d.length:n.children.length,p=-1,g=[];for(;++p<f;){let r=n.children[p],a={},o=d?d[p]:void 0;o&&(a.align=o);let f={type:"element",tagName:u,properties:a,children:[]};r&&(f.children=e.all(r),e.patch(r,f),f=e.applyData(n,f)),g.push(f)}let h={type:"element",tagName:"tr",properties:{},children:e.wrap(g,!0)};return e.patch(n,h),e.applyData(n,h)},text:function(e,n){let r={type:"text",value:function(e){let n=String(e),r=/\r?\n|\r/g,a=r.exec(n),o=0,u=[];for(;a;)u.push(trimLine(n.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(n);return u.push(trimLine(n.slice(o),o>0,!1)),u.join("")}(String(n.value))};return e.patch(n,r),e.applyData(n,r)},thematicBreak:function(e,n){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)},toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){return null}let eS={}.hasOwnProperty;function patch(e,n){e.position&&(n.position={start:eE(e),end:ek(e)})}function applyData(e,n){let r=n;if(e&&e.data){let n=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;"string"==typeof n&&("element"===r.type?r.tagName=n:r={type:"element",tagName:n,properties:{},children:[]}),"element"===r.type&&o&&(r.properties={...r.properties,...o}),"children"in r&&r.children&&null!=a&&(r.children=a)}return r}function state_one(e,n,r){let a=n&&n.type;if(!a)throw Error("Expected node, got `"+n+"`");return eS.call(e.handlers,a)?e.handlers[a](e,n,r):e.passThrough&&e.passThrough.includes(a)?"children"in n?{...n,children:state_all(e,n)}:n:e.unknownHandler?e.unknownHandler(e,n,r):function(e,n){let r=n.data||{},a="value"in n&&!(eS.call(r,"hProperties")||eS.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:state_all(e,n)};return e.patch(n,a),e.applyData(n,a)}(e,n)}function state_all(e,n){let r=[];if("children"in n){let a=n.children,o=-1;for(;++o<a.length;){let u=state_one(e,a[o],n);if(u){if(o&&"break"===a[o-1].type&&(Array.isArray(u)||"text"!==u.type||(u.value=u.value.replace(/^\s+/,"")),!Array.isArray(u)&&"element"===u.type)){let e=u.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(u)?r.push(...u):r.push(u)}}}return r}function state_wrap(e,n){let r=[],a=-1;for(n&&r.push({type:"text",value:"\n"});++a<e.length;)a&&r.push({type:"text",value:"\n"}),r.push(e[a]);return n&&e.length>0&&r.push({type:"text",value:"\n"}),r}function toHast(e,n){let r=function(e,n){let r=n||{},a=r.allowDangerousHtml||!1,o={};return state.dangerous=a,state.clobberPrefix=void 0===r.clobberPrefix||null===r.clobberPrefix?"user-content-":r.clobberPrefix,state.footnoteLabel=r.footnoteLabel||"Footnotes",state.footnoteLabelTagName=r.footnoteLabelTagName||"h2",state.footnoteLabelProperties=r.footnoteLabelProperties||{className:["sr-only"]},state.footnoteBackLabel=r.footnoteBackLabel||"Back to content",state.unknownHandler=r.unknownHandler,state.passThrough=r.passThrough,state.handlers={...ex,...r.handlers},state.definition=function(e){let n=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return(0,ew.Vn)(e,"definition",e=>{let r=clean(e.identifier);r&&!e_.call(n,r)&&(n[r]=e)}),function(e){let r=clean(e);return r&&e_.call(n,r)?n[r]:null}}(e),state.footnoteById=o,state.footnoteOrder=[],state.footnoteCounts={},state.patch=patch,state.applyData=applyData,state.one=function(e,n){return state_one(state,e,n)},state.all=function(e){return state_all(state,e)},state.wrap=state_wrap,state.augment=augment,(0,ew.Vn)(e,"footnoteDefinition",e=>{let n=String(e.identifier).toUpperCase();eS.call(o,n)||(o[n]=e)}),state;function augment(e,n){if(e&&"data"in e&&e.data){let r=e.data;r.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=r.hName),"element"===n.type&&r.hProperties&&(n.properties={...n.properties,...r.hProperties}),"children"in n&&n.children&&r.hChildren&&(n.children=r.hChildren)}if(e){let r="type"in e?e:{position:e};!r||!r.position||!r.position.start||!r.position.start.line||!r.position.start.column||!r.position.end||!r.position.end.line||!r.position.end.column||(n.position={start:eE(r),end:ek(r)})}return n}function state(e,n,r,a){return Array.isArray(r)&&(a=r,r={}),augment(e,{type:"element",tagName:n,properties:r||{},children:a||[]})}}(e,n),a=r.one(e,null),o=function(e){let n=[],r=-1;for(;++r<e.footnoteOrder.length;){let a=e.footnoteById[e.footnoteOrder[r]];if(!a)continue;let o=e.all(a),u=String(a.identifier).toUpperCase(),d=normalizeUri(u.toLowerCase()),f=0,p=[];for(;++f<=e.footnoteCounts[u];){let n={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+d+(f>1?"-"+f:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};f>1&&n.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(f)}]}),p.length>0&&p.push({type:"text",value:" "}),p.push(n)}let g=o[o.length-1];if(g&&"element"===g.type&&"p"===g.tagName){let e=g.children[g.children.length-1];e&&"text"===e.type?e.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else o.push(...p);let h={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+d},children:e.wrap(o,!0)};e.patch(a,h),n.push(h)}if(0!==n.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:"\n"}]}}(r);return o&&a.children.push({type:"text",value:"\n"},o),Array.isArray(a)?{type:"root",children:a}:a}var remark_rehype_lib=function(e,n){var r;return e&&"run"in e?(r,a,o)=>{e.run(toHast(r,n),a,e=>{o(e)})}:(r=e||n,e=>toHast(e,r))},eC=r(96895);let Schema=class Schema{constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};function merge(e,n){let r={},a={},o=-1;for(;++o<e.length;)Object.assign(r,e[o].property),Object.assign(a,e[o].normal);return new Schema(r,a,n)}function normalize_normalize(e){return e.toLowerCase()}Schema.prototype.property={},Schema.prototype.normal={},Schema.prototype.space=null;let Info=class Info{constructor(e,n){this.property=e,this.attribute=n}};Info.prototype.space=null,Info.prototype.boolean=!1,Info.prototype.booleanish=!1,Info.prototype.overloadedBoolean=!1,Info.prototype.number=!1,Info.prototype.commaSeparated=!1,Info.prototype.spaceSeparated=!1,Info.prototype.commaOrSpaceSeparated=!1,Info.prototype.mustUseProperty=!1,Info.prototype.defined=!1;let eA=0,eN=increment(),eO=increment(),eT=increment(),eI=increment(),eD=increment(),eM=increment(),eR=increment();function increment(){return 2**++eA}let eL=Object.keys(o);let DefinedInfo=class DefinedInfo extends Info{constructor(e,n,r,a){var u,d;let f=-1;if(super(e,n),a&&(this.space=a),"number"==typeof r)for(;++f<eL.length;){let e=eL[f];u=eL[f],(d=(r&o[e])===o[e])&&(this[u]=d)}}};DefinedInfo.prototype.defined=!0;let eF={}.hasOwnProperty;function create(e){let n;let r={},a={};for(n in e.properties)if(eF.call(e.properties,n)){let o=e.properties[n],u=new DefinedInfo(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(u.mustUseProperty=!0),r[n]=u,a[normalize_normalize(n)]=n,a[normalize_normalize(u.attribute)]=n}return new Schema(r,a,e.space)}let eP=create({space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),eB=create({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(e,n){return n in e?e[n]:n}function caseInsensitiveTransform(e,n){return caseSensitiveTransform(e,n.toLowerCase())}let ez=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),ej=create({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:eO,ariaAutoComplete:null,ariaBusy:eO,ariaChecked:eO,ariaColCount:eI,ariaColIndex:eI,ariaColSpan:eI,ariaControls:eD,ariaCurrent:null,ariaDescribedBy:eD,ariaDetails:null,ariaDisabled:eO,ariaDropEffect:eD,ariaErrorMessage:null,ariaExpanded:eO,ariaFlowTo:eD,ariaGrabbed:eO,ariaHasPopup:null,ariaHidden:eO,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:eD,ariaLevel:eI,ariaLive:null,ariaModal:eO,ariaMultiLine:eO,ariaMultiSelectable:eO,ariaOrientation:null,ariaOwns:eD,ariaPlaceholder:null,ariaPosInSet:eI,ariaPressed:eO,ariaReadOnly:eO,ariaRelevant:null,ariaRequired:eO,ariaRoleDescription:eD,ariaRowCount:eI,ariaRowIndex:eI,ariaRowSpan:eI,ariaSelected:eO,ariaSetSize:eI,ariaSort:null,ariaValueMax:eI,ariaValueMin:eI,ariaValueNow:eI,ariaValueText:null,role:null}}),eU=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eM,acceptCharset:eD,accessKey:eD,action:null,allow:null,allowFullScreen:eN,allowPaymentRequest:eN,allowUserMedia:eN,alt:null,as:null,async:eN,autoCapitalize:null,autoComplete:eD,autoFocus:eN,autoPlay:eN,capture:eN,charSet:null,checked:eN,cite:null,className:eD,cols:eI,colSpan:null,content:null,contentEditable:eO,controls:eN,controlsList:eD,coords:eI|eM,crossOrigin:null,data:null,dateTime:null,decoding:null,default:eN,defer:eN,dir:null,dirName:null,disabled:eN,download:eT,draggable:eO,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:eN,formTarget:null,headers:eD,height:eI,hidden:eN,high:eI,href:null,hrefLang:null,htmlFor:eD,httpEquiv:eD,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:eN,itemId:null,itemProp:eD,itemRef:eD,itemScope:eN,itemType:eD,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:eN,low:eI,manifest:null,max:null,maxLength:eI,media:null,method:null,min:null,minLength:eI,multiple:eN,muted:eN,name:null,nonce:null,noModule:eN,noValidate:eN,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:eN,optimum:eI,pattern:null,ping:eD,placeholder:null,playsInline:eN,poster:null,preload:null,readOnly:eN,referrerPolicy:null,rel:eD,required:eN,reversed:eN,rows:eI,rowSpan:eI,sandbox:eD,scope:null,scoped:eN,seamless:eN,selected:eN,shape:null,size:eI,sizes:null,slot:null,span:eI,spellCheck:eO,src:null,srcDoc:null,srcLang:null,srcSet:null,start:eI,step:null,style:null,tabIndex:eI,target:null,title:null,translate:null,type:null,typeMustMatch:eN,useMap:null,value:eO,width:eI,wrap:null,align:null,aLink:null,archive:eD,axis:null,background:null,bgColor:null,border:eI,borderColor:null,bottomMargin:eI,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:eN,declare:eN,event:null,face:null,frame:null,frameBorder:null,hSpace:eI,leftMargin:eI,link:null,longDesc:null,lowSrc:null,marginHeight:eI,marginWidth:eI,noResize:eN,noHref:eN,noShade:eN,noWrap:eN,object:null,profile:null,prompt:null,rev:null,rightMargin:eI,rules:null,scheme:null,scrolling:eO,standby:null,summary:null,text:null,topMargin:eI,valueType:null,version:null,vAlign:null,vLink:null,vSpace:eI,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:eN,disableRemotePlayback:eN,prefix:null,property:null,results:eI,security:null,unselectable:null}}),eH=create({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:caseSensitiveTransform,properties:{about:eR,accentHeight:eI,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:eI,amplitude:eI,arabicForm:null,ascent:eI,attributeName:null,attributeType:null,azimuth:eI,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:eI,by:null,calcMode:null,capHeight:eI,className:eD,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:eI,diffuseConstant:eI,direction:null,display:null,dur:null,divisor:eI,dominantBaseline:null,download:eN,dx:null,dy:null,edgeMode:null,editable:null,elevation:eI,enableBackground:null,end:null,event:null,exponent:eI,externalResourcesRequired:null,fill:null,fillOpacity:eI,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:eM,g2:eM,glyphName:eM,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:eI,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:eI,horizOriginX:eI,horizOriginY:eI,id:null,ideographic:eI,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:eI,k:eI,k1:eI,k2:eI,k3:eI,k4:eI,kernelMatrix:eR,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:eI,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:eI,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:eI,overlineThickness:eI,paintOrder:null,panose1:null,path:null,pathLength:eI,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:eD,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:eI,pointsAtY:eI,pointsAtZ:eI,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:eR,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:eR,rev:eR,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:eR,requiredFeatures:eR,requiredFonts:eR,requiredFormats:eR,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:eI,specularExponent:eI,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:eI,strikethroughThickness:eI,string:null,stroke:null,strokeDashArray:eR,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:eI,strokeOpacity:eI,strokeWidth:null,style:null,surfaceScale:eI,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:eR,tabIndex:eI,tableValues:null,target:null,targetX:eI,targetY:eI,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:eR,to:null,transform:null,u1:null,u2:null,underlinePosition:eI,underlineThickness:eI,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:eI,values:null,vAlphabetic:eI,vMathematical:eI,vectorEffect:null,vHanging:eI,vIdeographic:eI,version:null,vertAdvY:eI,vertOriginX:eI,vertOriginY:eI,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:eI,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),e$=merge([eB,eP,ez,ej,eU],"html"),eq=merge([eB,eP,ez,ej,eH],"svg");function rehypeFilter(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{(0,ew.Vn)(n,"element",(n,r,a)=>{let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&"number"==typeof r&&(o=!e.allowElement(n,r,a)),o&&"number"==typeof r)return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}var eK=r(30155);let eV=/^data[-\w.:]+$/i,eW=/-[a-z]/g,eG=/[A-Z]/g;function kebab(e){return"-"+e.toLowerCase()}function camelcase(e){return e.charAt(1).toUpperCase()}let eZ={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"};var eX=r(89283);let eQ=["http","https","mailto","tel"];function uriTransformer(e){let n=(e||"").trim(),r=n.charAt(0);if("#"===r||"/"===r)return n;let a=n.indexOf(":");if(-1===a)return n;let o=-1;for(;++o<eQ.length;){let e=eQ[o];if(a===e.length&&n.slice(0,e.length).toLowerCase()===e)return n}return -1!==(o=n.indexOf("?"))&&a>o||-1!==(o=n.indexOf("#"))&&a>o?n:"javascript:void(0)"}let eJ={}.hasOwnProperty,eY=new Set(["table","thead","tbody","tfoot","tr"]);function getElementsBeforeCount(e,n){let r=-1,a=0;for(;++r<e.children.length&&e.children[r]!==n;)"element"===e.children[r].type&&a++;return a}function styleReplacer(e,n){return n.toUpperCase()}let e0={}.hasOwnProperty,e1={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ReactMarkdown(e){for(let n in e1)if(e0.call(e1,n)&&e0.call(e,n)){let e=e1[n];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${n}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete e1[n]}let n=h().use(remarkParse).use(e.remarkPlugins||[]).use(remark_rehype_lib,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(rehypeFilter,e),r=new VFile;"string"==typeof e.children?r.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let a=n.runSync(n.parse(r),r);if("root"!==a.type)throw TypeError("Expected a `root` node");let o=u.createElement(u.Fragment,{},function childrenToReact(e,n){let r;let a=[],o=-1;for(;++o<n.children.length;)"element"===(r=n.children[o]).type?a.push(function(e,n,r,a){let o;let d=e.options,f=void 0===d.transformLinkUri?uriTransformer:d.transformLinkUri,p=e.schema,g=n.tagName,h={},m=p;if("html"===p.space&&"svg"===g&&(m=eq,e.schema=m),n.properties)for(o in n.properties)eJ.call(n.properties,o)&&function(e,n,r,a){let o=function(e,n){let r=normalize_normalize(n),a=n,o=Info;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&eV.test(n)){if("-"===n.charAt(4)){let e=n.slice(5).replace(eW,camelcase);a="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=n.slice(4);if(!eW.test(e)){let r=e.replace(eG,kebab);"-"!==r.charAt(0)&&(r="-"+r),n="data"+r}}o=DefinedInfo}return new o(a,n)}(a.schema,n),u=r;null!=u&&u==u&&(Array.isArray(u)&&(u=o.commaSeparated?function(e,n){let r={},a=""===e[e.length-1]?[...e,""]:e;return a.join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}(u):u.join(" ").trim()),"style"===o.property&&"string"==typeof u&&(u=function(e){let n={};try{eX(e,function(e,r){let a="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[a.replace(/-([a-z])/g,styleReplacer)]=r})}catch{}return n}(u)),o.space&&o.property?e[eJ.call(eZ,o.property)?eZ[o.property]:o.property]=u:o.attribute&&(e[o.attribute]=u))}(h,o,n.properties[o],e);("ol"===g||"ul"===g)&&e.listDepth++;let b=childrenToReact(e,n);("ol"===g||"ul"===g)&&e.listDepth--,e.schema=p;let y=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},v=d.components&&eJ.call(d.components,g)?d.components[g]:g,w="string"==typeof v||v===u.Fragment;if(!eK.isValidElementType(v))throw TypeError(`Component for name \`${g}\` not defined or is not renderable`);if(h.key=r,"a"===g&&d.linkTarget&&(h.target="function"==typeof d.linkTarget?d.linkTarget(String(h.href||""),n.children,"string"==typeof h.title?h.title:null):d.linkTarget),"a"===g&&f&&(h.href=f(String(h.href||""),n.children,"string"==typeof h.title?h.title:null)),w||"code"!==g||"element"!==a.type||"pre"===a.tagName||(h.inline=!0),w||"h1"!==g&&"h2"!==g&&"h3"!==g&&"h4"!==g&&"h5"!==g&&"h6"!==g||(h.level=Number.parseInt(g.charAt(1),10)),"img"===g&&d.transformImageUri&&(h.src=d.transformImageUri(String(h.src||""),String(h.alt||""),"string"==typeof h.title?h.title:null)),!w&&"li"===g&&"element"===a.type){let e=function(e){let n=-1;for(;++n<e.children.length;){let r=e.children[n];if("element"===r.type&&"input"===r.tagName)return r}return null}(n);h.checked=e&&e.properties?!!e.properties.checked:null,h.index=getElementsBeforeCount(a,n),h.ordered="ol"===a.tagName}return w||"ol"!==g&&"ul"!==g||(h.ordered="ol"===g,h.depth=e.listDepth),"td"!==g&&"th"!==g||(h.align&&(h.style||(h.style={}),h.style.textAlign=h.align,delete h.align),w||(h.isHeader="th"===g)),w||"tr"!==g||"element"!==a.type||(h.isHeader="thead"===a.tagName),d.sourcePos&&(h["data-sourcepos"]=[y.start.line,":",y.start.column,"-",y.end.line,":",y.end.column].map(String).join("")),!w&&d.rawSourcePos&&(h.sourcePosition=n.position),!w&&d.includeElementIndex&&(h.index=getElementsBeforeCount(a,n),h.siblingCount=getElementsBeforeCount(a)),w||(h.node=n),b.length>0?u.createElement(v,h,b):u.createElement(v,h)}(e,r,o,n)):"text"===r.type?"element"===n.type&&eY.has(n.tagName)&&function(e){let n=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}(r)||a.push(r.value):"raw"!==r.type||e.options.skipHtml||a.push(r.value);return a}({options:e,schema:e$,listDepth:0},a));return e.className&&(o=u.createElement("div",{className:e.className},o)),o}ReactMarkdown.propTypes={children:eC.string,className:eC.string,allowElement:eC.func,allowedElements:eC.arrayOf(eC.string),disallowedElements:eC.arrayOf(eC.string),unwrapDisallowed:eC.bool,remarkPlugins:eC.arrayOf(eC.oneOfType([eC.object,eC.func,eC.arrayOf(eC.oneOfType([eC.bool,eC.string,eC.object,eC.func,eC.arrayOf(eC.any)]))])),rehypePlugins:eC.arrayOf(eC.oneOfType([eC.object,eC.func,eC.arrayOf(eC.oneOfType([eC.bool,eC.string,eC.object,eC.func,eC.arrayOf(eC.any)]))])),sourcePos:eC.bool,rawSourcePos:eC.bool,skipHtml:eC.bool,includeElementIndex:eC.bool,transformLinkUri:eC.oneOfType([eC.func,eC.bool]),linkTarget:eC.oneOfType([eC.func,eC.string]),transformImageUri:eC.func,components:eC.object}},7455:function(e,n,r){"use strict";r.d(n,{Z:function(){return rehypeHighlight}});let MODES=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],u=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],d=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],f=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();var p="[0-9](_*[0-9])*",g=`\\.(${p})`,h="[0-9a-fA-F](_*[0-9a-fA-F])*",m={className:"number",variants:[{begin:`(\\b(${p})((${g})|\\.)?|(${g}))[eE][+-]?(${p})[fFdD]?\\b`},{begin:`\\b(${p})((${g})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${g})[fFdD]?\\b`},{begin:`\\b(${p})[fFdD]\\b`},{begin:`\\b0[xX]((${h})\\.?|(${h})?\\.(${h}))[pP][+-]?(${p})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${h})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};let b="[A-Za-z$_][0-9A-Za-z$_]*",y=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],v=["true","false","null","undefined","NaN","Infinity"],w=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],E=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],k=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],_=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],x=[].concat(k,w,E);var S="[0-9](_*[0-9])*",C=`\\.(${S})`,A="[0-9a-fA-F](_*[0-9a-fA-F])*",N={className:"number",variants:[{begin:`(\\b(${S})((${C})|\\.)?|(${C}))[eE][+-]?(${S})[fFdD]?\\b`},{begin:`\\b(${S})((${C})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${C})[fFdD]?\\b`},{begin:`\\b(${S})[fFdD]\\b`},{begin:`\\b0[xX]((${A})\\.?|(${A})?\\.(${A}))[pP][+-]?(${S})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${A})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};let less_MODES=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),O=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],T=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],I=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],D=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],M=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),R=I.concat(D),scss_MODES=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),L=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],F=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],P=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],B=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],z=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function source(e){return e?"string"==typeof e?e:e.source:null}function lookahead(e){return concat("(?=",e,")")}function concat(...e){let n=e.map(e=>source(e)).join("");return n}function either(...e){let n=function(e){let n=e[e.length-1];return"object"==typeof n&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}(e),r="("+(n.capture?"":"?:")+e.map(e=>source(e)).join("|")+")";return r}let keywordWrapper=e=>concat(/\b/,e,/\w$/.test(e)?/\b/:/\B/),j=["Protocol","Type"].map(keywordWrapper),U=["init","self"].map(keywordWrapper),H=["Any","Self"],$=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],q=["false","nil","true"],K=["assignment","associativity","higherThan","left","lowerThan","none","right"],V=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],W=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],G=either(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Z=either(G,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),X=concat(G,Z,"*"),Q=either(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),J=either(Q,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Y=concat(Q,J,"*"),ee=concat(/[A-Z]/,J,"*"),et=["autoclosure",concat(/convention\(/,either("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",concat(/objc\(/,Y,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],en=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"],er="[A-Za-z$_][0-9A-Za-z$_]*",ei=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],ea=["true","false","null","undefined","NaN","Infinity"],eo=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],el=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],es=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ec=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],eu=[].concat(es,eo,el);var ed=r(11426),ef=r(45396);let ep=Object.assign(create(Error),{eval:create(EvalError),range:create(RangeError),reference:create(ReferenceError),syntax:create(SyntaxError),type:create(TypeError),uri:create(URIError)});function create(e){return FormattedError.displayName=e.displayName||e.name,FormattedError;function FormattedError(n,...r){let a=n?ef(n,...r):n;return new e(a)}}let eg={}.hasOwnProperty,eh="hljs-";function highlight(e,n,r={}){let a=r.prefix;if("string"!=typeof e)throw ep("Expected `string` for name, got `%s`",e);if(!ed.getLanguage(e))throw ep("Unknown language: `%s` is not registered",e);if("string"!=typeof n)throw ep("Expected `string` for value, got `%s`",n);null==a&&(a=eh),ed.configure({__emitter:HastEmitter,classPrefix:a});let o=ed.highlight(n,{language:e,ignoreIllegals:!0});if(ed.configure({}),o.errorRaised)throw o.errorRaised;return o._emitter.root.data.language=o.language,o._emitter.root.data.relevance=o.relevance,o._emitter.root}let HastEmitter=class HastEmitter{constructor(e){this.options=e,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(e){if(""===e)return;let n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&"text"===r.type?r.value+=e:n.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,n){let r=this.stack[this.stack.length-1],a=e.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:a}):r.children.push(...a)}openNode(e){let n=e.split(".").map((e,n)=>n?e+"_".repeat(n):this.options.classPrefix+e),r=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:n},children:[]};r.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}};let em={highlight,highlightAuto:function(e,n={}){let r=n.subset||ed.listLanguages(),a=n.prefix,o=-1,u={type:"root",data:{language:null,relevance:0},children:[]};if(null==a&&(a=eh),"string"!=typeof e)throw ep("Expected `string` for value, got `%s`",e);for(;++o<r.length;){let a=r[o];if(!ed.getLanguage(a))continue;let d=highlight(a,e,n);d.data.relevance>u.data.relevance&&(u=d)}return u},registerLanguage:function(e,n){ed.registerLanguage(e,n)},registered:function(e){return!!ed.getLanguage(e)},listLanguages:function(){return ed.listLanguages()},registerAlias:function(e,n){if("string"==typeof e)ed.registerAliases(n,{languageName:e});else{let n;for(n in e)eg.call(e,n)&&ed.registerAliases(e[n],{languageName:n})}}};em.registerLanguage("arduino",function(e){let n={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=function(e){let n=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="(?!struct)("+a+"|"+n.optional(o)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:n.optional(o)+e.IDENT_RE,relevance:0},m=n.optional(o)+e.IDENT_RE+"\\s*\\(",b={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},y={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},v=[y,g,d,r,e.C_BLOCK_COMMENT_MODE,p,f],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:v.concat([{begin:/\(/,end:/\)/,keywords:b,contains:v.concat(["self"]),relevance:0}]),relevance:0},E={className:"function",begin:"("+u+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:b,relevance:0},{begin:m,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,f,p,d,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,f,p,d]}]},d,r,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:b,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(w,E,y,v,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:b,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:b},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}(e),a=r.keywords;return a.type=[...a.type,...n.type],a.literal=[...a.literal,...n.literal],a.built_in=[...a.built_in,...n.built_in],a._hints=n._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}),em.registerLanguage("bash",function(e){let n=e.regex,r={};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},{begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]}]});let a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,a]};a.contains.push(u);let d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},f=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]},contains:[f,e.SHEBANG(),p,d,e.HASH_COMMENT_MODE,o,{match:/(\/[a-z._-]+)+/},u,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},r]}}),em.registerLanguage("c",function(e){let n=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="("+a+"|"+n.optional(o)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",d={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:n.optional(o)+e.IDENT_RE,relevance:0},m=n.optional(o)+e.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[g,d,r,e.C_BLOCK_COMMENT_MODE,p,f],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:y.concat([{begin:/\(/,end:/\)/,keywords:b,contains:y.concat(["self"]),relevance:0}]),relevance:0},w={begin:"("+u+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:b,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,f,p,d,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,f,p,d]}]},d,r,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"</",contains:[].concat(v,w,y,[g,{begin:e.IDENT_RE+"::",keywords:b},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:g,strings:f,keywords:b}}}),em.registerLanguage("cpp",function(e){let n=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="(?!struct)("+a+"|"+n.optional(o)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:n.optional(o)+e.IDENT_RE,relevance:0},m=n.optional(o)+e.IDENT_RE+"\\s*\\(",b={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},y={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},v=[y,g,d,r,e.C_BLOCK_COMMENT_MODE,p,f],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:v.concat([{begin:/\(/,end:/\)/,keywords:b,contains:v.concat(["self"]),relevance:0}]),relevance:0},E={className:"function",begin:"("+u+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:b,relevance:0},{begin:m,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,f,p,d,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,f,p,d]}]},d,r,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:b,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(w,E,y,v,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:b,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:b},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}),em.registerLanguage("csharp",function(e){let n={keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],literal:["default","false","null","true"]},r=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},o={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(o,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:n},f=e.inherit(d,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},h=e.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[g,p,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],f.contains=[h,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let m={variants:[g,p,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},r]},y=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",v={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},m,a,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},r,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[r,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+y+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{beginKeywords:"public private protected static internal protected abstract async extern override unsafe virtual new sealed partial",relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0,contains:[m,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}),em.registerLanguage("css",function(e){let n=e.regex,r=MODES(e),p=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+u.join("|")+")"},{begin:":(:)?("+d.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+f.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:n.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:o.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}),em.registerLanguage("diff",function(e){let n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}),em.registerLanguage("go",function(e){let n={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:n,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,illegal:/["']/}]}]}}),em.registerLanguage("graphql",function(e){let n=e.regex;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:n.concat(/[_A-Za-z][_0-9A-Za-z]*/,n.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}),em.registerLanguage("ini",function(e){let n=e.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},u={className:"literal",begin:/\bon|off|true|false|yes|no\b/},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},f=n.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/),p=n.concat(f,"(\\s*\\.\\s*",f,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[a,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[a,{begin:/\[/,end:/\]/,contains:[a,u,o,d,r,"self"],relevance:0},u,o,d,r]}}]}}),em.registerLanguage("java",function(e){let n=e.regex,r="[\xc0-ʸa-zA-Z_$][\xc0-ʸa-zA-Z_$0-9]*",a=r+function recurRegex(e,n,r){return -1===r?"":e.replace(n,a=>recurRegex(e,n,r-1))}("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),o={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:o,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[n.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+a+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:o,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},m,u]}}),em.registerLanguage("javascript",function(e){var n;let r=e.regex,hasClosingTag=(e,{after:n})=>{let r="</"+e[0].slice(1),a=e.input.indexOf(r,n);return -1!==a},a={begin:"<>",end:"</>"},o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{let r;let a=e[0].length+e.index,o=e.input[a];if("<"===o||","===o){n.ignoreMatch();return}">"!==o||hasClosingTag(e,{after:a})||n.ignoreMatch();let u=e.input.substring(a);if((r=u.match(/^\s*=/))||(r=u.match(/^\s+extends\s+/))&&0===r.index){n.ignoreMatch();return}}},u={$pattern:b,keyword:y,literal:v,built_in:x,"variable.language":_},d="[0-9](_?[0-9])*",f=`\\.(${d})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${f})|\\.)?|(${f}))[eE][+-]?(${d})\\b`},{begin:`\\b(${p})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},S={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},C={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},N=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:b+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),O={className:"comment",variants:[N,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},T=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,S,C,A,{match:/\$\d+/},g];h.contains=T.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(T)});let I=[].concat(O,h.contains),D=I.concat([{begin:/\(/,end:/\)/,keywords:u,contains:["self"].concat(I)}]),M={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:D},R={variants:[{match:[/class/,/\s+/,b,/\s+/,/extends/,/\s+/,r.concat(b,"(",r.concat(/\./,b),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,b],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:r.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...w,...E]}},F={match:r.concat(/\b/,(n=[...k,"super","import"],r.concat("(?!",n.join("|"),")")),b,r.lookahead(/\(/)),className:"title.function",relevance:0},P={begin:r.concat(/\./,r.lookahead(r.concat(b,/(?![0-9A-Za-z$_(])/))),end:b,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",z={match:[/const|var|let/,/\s+/,b,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:D,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,S,C,A,O,{match:/\$\d+/},g,L,{className:"attr",begin:b+r.lookahead(":"),relevance:0},z,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:D}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},{variants:[{match:[/function/,/\s+/,b,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,e.inherit(e.TITLE_MODE,{begin:b,className:"title.function"})]},{match:/\.\.\./,relevance:0},P,{match:"\\$"+b,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},F,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},R,{match:[/get|set/,/\s+/,b,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},{match:/\$[(.]/}]}}),em.registerLanguage("json",function(e){let n=["true","false","null"],r={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",keywords:{literal:n},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}),em.registerLanguage("kotlin",function(e){let n={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},u={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,a]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,a]}]};a.contains.push(u);let d={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},f={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(u,{className:"string"}),"self"]}]},p=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]};return g.variants[1].contains=[g],g.variants[1].contains=[g],{name:"Kotlin",aliases:["kt","kts"],keywords:n,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,p,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r,d,f,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:n,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,e.C_LINE_COMMENT_MODE,p],relevance:0},e.C_LINE_COMMENT_MODE,p,d,f,u,e.C_NUMBER_MODE]},p]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},d,f]},u,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},N]}}),em.registerLanguage("less",function(e){let n=less_MODES(e),r="[\\w-]+",a="("+r+"|@\\{"+r+"\\})",o=[],u=[],STRING_MODE=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},IDENT_MODE=function(e,n,r){return{className:e,begin:n,relevance:r}},d={$pattern:/[a-z-]+/,keyword:"and or not only",attribute:T.join(" ")};u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,STRING_MODE("'"),STRING_MODE('"'),n.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},n.HEXCOLOR,{begin:"\\(",end:"\\)",contains:u,keywords:d,relevance:0},IDENT_MODE("variable","@@?"+r,10),IDENT_MODE("variable","@\\{"+r+"\\}"),IDENT_MODE("built_in","~?`[^`]*?`"),{className:"attribute",begin:r+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},n.IMPORTANT,{beginKeywords:"and not"},n.FUNCTION_DISPATCH);let f=u.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(u)},g={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+M.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:u}}]},h={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,IDENT_MODE("keyword","all\\b"),IDENT_MODE("variable","@\\{"+r+"\\}"),{begin:"\\b("+O.join("|")+")\\b",className:"selector-tag"},n.CSS_NUMBER_MODE,IDENT_MODE("selector-tag",a,0),IDENT_MODE("selector-id","#"+a),IDENT_MODE("selector-class","\\."+a,0),IDENT_MODE("selector-tag","&",0),n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+I.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+D.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},n.FUNCTION_DISPATCH]},m={begin:r+":(:)?"+`(${R.join("|")})`,returnBegin:!0,contains:[h]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:u,relevance:0}},{className:"variable",variants:[{begin:"@"+r+"\\s*:",relevance:15},{begin:"@"+r}],starts:{end:"[;}]",returnEnd:!0,contains:f}},m,g,h,p,n.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:o}}),em.registerLanguage("lua",function(e){let n="\\[=*\\[",r="\\]=*\\]",a={begin:n,end:r,contains:["self"]},o=[e.COMMENT("--(?!"+n+")","$"),e.COMMENT("--"+n,r,{contains:[a],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[a],relevance:5}])}}),em.registerLanguage("makefile",function(e){let n={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n]},a={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,n,r,{className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[n]},a,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},{className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]}]}}),em.registerLanguage("markdown",function(e){let n=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},o={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(o,{contains:[]}),f=e.inherit(u,{contains:[]});o.contains.push(f),u.contains.push(d);let p=[r,a];[o,u,d,f].forEach(e=>{e.contains=e.contains.concat(p)}),p=p.concat(o,u);let g={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},h={className:"quote",begin:"^>\\s+",contains:p,end:"$"};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[g,r,{className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o,u,h,{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},a,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}),em.registerLanguage("objectivec",function(e){let n=/[a-zA-Z@][a-zA-Z0-9_]*/,r={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+r.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:r,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}),em.registerLanguage("perl",function(e){let n=e.regex,r=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:"abs accept alarm and atan2 bind binmode bless break caller chdir chmod chomp chop chown chr chroot close closedir connect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eval exec exists exit exp fcntl fileno flock for foreach fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt given glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst length link listen local localtime log lstat lt ma map mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q|0 qq quotemeta qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir say scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn when while write x|0 xor y|0"},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},u={begin:/->\{/,end:/\}/},d={variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},f=[e.BACKSLASH_ESCAPE,o,d],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],PAIRED_DOUBLE_RE=(e,a,o="\\1")=>{let u="\\1"===o?o:n.concat(o,a);return n.concat(n.concat("(?:",e,")"),a,/(?:\\.|[^\\\/])*?/,u,/(?:\\.|[^\\\/])*?/,o,r)},PAIRED_RE=(e,a,o)=>n.concat(n.concat("(?:",e,")"),a,/(?:\\.|[^\\\/])*?/,o,r),g=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:f,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:PAIRED_DOUBLE_RE("s|tr|y",n.either(...p,{capture:!0}))},{begin:PAIRED_DOUBLE_RE("s|tr|y","\\(","\\)")},{begin:PAIRED_DOUBLE_RE("s|tr|y","\\[","\\]")},{begin:PAIRED_DOUBLE_RE("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:PAIRED_RE("(?:m|qr)?",/\//,/\//)},{begin:PAIRED_RE("m|qr",n.either(...p,{capture:!0}),/\1/)},{begin:PAIRED_RE("m|qr",/\(/,/\)/)},{begin:PAIRED_RE("m|qr",/\[/,/\]/)},{begin:PAIRED_RE("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=g,u.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:g}}),em.registerLanguage("php",function(e){let n=e.regex,r=/(?![A-Za-z0-9])(?![$])/,a=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),o=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),u={scope:"variable",match:"\\$+"+a},d={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},f=e.inherit(e.APOS_STRING_MODE,{illegal:null}),p=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(d)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(d),"on:begin":(e,n)=>{n.data._beginMatch=e[1]||e[2]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}},h=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m="[ 	\n]",b={scope:"string",variants:[p,f,g,h]},y={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},v=["false","null","true"],w=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],k={keyword:w,literal:(e=>{let n=[];return e.forEach(e=>{n.push(e),e.toLowerCase()===e?n.push(e.toUpperCase()):n.push(e.toLowerCase())}),n})(v),built_in:E},normalizeKeywords=e=>e.map(e=>e.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,n.concat(m,"+"),n.concat("(?!",normalizeKeywords(E).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},x=n.concat(a,"\\b(?!\\()"),S={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,n.concat(/::/,n.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[o,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},C={scope:"attr",match:n.concat(a,n.lookahead(":"),n.lookahead(/(?!::)/))},A={relevance:0,begin:/\(/,end:/\)/,keywords:k,contains:[C,u,S,e.C_BLOCK_COMMENT_MODE,b,y,_]},N={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",normalizeKeywords(w).join("\\b|"),"|",normalizeKeywords(E).join("\\b|"),"\\b)"),a,n.concat(m,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[A]};A.contains.push(N);let O=[C,S,e.C_BLOCK_COMMENT_MODE,b,y,_],T={begin:n.concat(/#\[\s*/,o),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...O]},...O,{scope:"meta",match:o}]};return{case_insensitive:!1,keywords:k,contains:[T,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},u,N,S,{match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:k,contains:["self",u,S,e.C_BLOCK_COMMENT_MODE,b,y]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},b,y]}}),em.registerLanguage("php-template",function(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}),em.registerLanguage("plaintext",function(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}),em.registerLanguage("python",function(e){let n=e.regex,r=/[\p{XID_Start}_]\p{XID_Continue}*/u,a=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:a,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},f={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,f,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,f,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,f,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,f,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",h=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,m=`\\b|${a.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${h}))[eE][+-]?(${g})[jJ]?(?=${m})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${g})[jJ](?=${m})`}]},y={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},v={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",u,b,p,e.HASH_COMMENT_MODE]}]};return d.contains=[p,b,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[u,b,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},p,y,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[v]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,v,p]}]}}),em.registerLanguage("python-repl",function(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}),em.registerLanguage("r",function(e){let n=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,a=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,u=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,a]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,a]},{scope:{1:"punctuation",2:"number"},match:[u,a]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,a]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:u},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}),em.registerLanguage("ruby",function(e){let n=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=n.concat(a,/(::\w+)*/),u={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},d={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},p=[e.COMMENT("#","$",{contains:[d]}),e.COMMENT("^=begin","^=end",{contains:[d],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],g={className:"subst",begin:/#\{/,end:/\}/,keywords:u},h={className:"string",contains:[e.BACKSLASH_ESCAPE,g],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,g]})]}]},m="[0-9](_?[0-9])*",b={className:"number",relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${m}))?([eE][+-]?(${m})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},y={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:u}]},v=[h,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:u},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:u},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:a,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[y]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[h,{begin:r}],relevance:0},b,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:u},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,g],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(f,p),relevance:0}].concat(f,p);g.contains=v,y.contains=v;let w=[{begin:/^\s*=>/,starts:{end:"$",contains:v}},{className:"meta.prompt",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",keywords:u,contains:v}}];return p.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(w).concat(p).concat(v)}}),em.registerLanguage("rust",function(e){let n=e.regex,r={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let\b)/,e.IDENT_RE,n.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],u=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:u,keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],literal:["true","false","Some","None","Ok","Err"],built_in:o},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:o,type:u}},{className:"punctuation",begin:"->"},r]}}),em.registerLanguage("scss",function(e){let n=scss_MODES(e),r="@[a-z-]+",a={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+L.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+P.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+B.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[n.CSS_NUMBER_MODE]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+z.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[n.BLOCK_COMMENT,a,n.HEXCOLOR,n.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n.IMPORTANT,n.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:r,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:F.join(" ")},contains:[{begin:r,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n.HEXCOLOR,n.CSS_NUMBER_MODE]},n.FUNCTION_DISPATCH]}}),em.registerLanguage("shell",function(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}),em.registerLanguage("sql",function(e){let n=e.regex,r=e.COMMENT("--","$"),a=["true","false","unknown"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter(e=>!u.includes(e)),p={begin:n.concat(/\b/,n.either(...u),/\s*\(/),relevance:0,keywords:{built_in:u}};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:n,when:r}={}){return n=n||[],e.map(e=>e.match(/\|\d+$/)||n.includes(e)?e:r(e)?`${e}|0`:e)}(f,{when:e=>e.length<3}),literal:a,type:o,built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{begin:n.either(...d),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:f.concat(d),literal:a,type:o}},{className:"type",begin:n.either(...["double precision","large object","with timezone","without timezone"])},p,{className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},{className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}),em.registerLanguage("swift",function(e){let n={match:/\s+/,relevance:0},r=e.COMMENT("/\\*","\\*/",{contains:["self"]}),a=[e.C_LINE_COMMENT_MODE,r],o={match:[/\./,either(...j,...U)],className:{2:"keyword"}},u={match:concat(/\./,either(...$)),relevance:0},d=$.filter(e=>"string"==typeof e).concat(["_|0"]),f=$.filter(e=>"string"!=typeof e).concat(H).map(keywordWrapper),p={variants:[{className:"keyword",match:either(...f,...U)}]},g={$pattern:either(/\b\w+/,/#\w+/),keyword:d.concat(V),literal:q},h=[o,u,p],m={match:concat(/\./,either(...W)),relevance:0},b={className:"built_in",match:concat(/\b/,either(...W),/(?=\()/)},y=[m,b],v={match:/->/,relevance:0},w={className:"operator",relevance:0,variants:[{match:X},{match:`\\.(\\.|${Z})+`}]},E=[v,w],k="([0-9]_*)+",_="([0-9a-fA-F]_*)+",x={className:"number",relevance:0,variants:[{match:`\\b(${k})(\\.(${k}))?([eE][+-]?(${k}))?\\b`},{match:`\\b0x(${_})(\\.(${_}))?([pP][+-]?(${k}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ESCAPED_CHARACTER=(e="")=>({className:"subst",variants:[{match:concat(/\\/,e,/[0\\tnr"']/)},{match:concat(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ESCAPED_NEWLINE=(e="")=>({className:"subst",match:concat(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),INTERPOLATION=(e="")=>({className:"subst",label:"interpol",begin:concat(/\\/,e,/\(/),end:/\)/}),MULTILINE_STRING=(e="")=>({begin:concat(e,/"""/),end:concat(/"""/,e),contains:[ESCAPED_CHARACTER(e),ESCAPED_NEWLINE(e),INTERPOLATION(e)]}),SINGLE_LINE_STRING=(e="")=>({begin:concat(e,/"/),end:concat(/"/,e),contains:[ESCAPED_CHARACTER(e),INTERPOLATION(e)]}),S={className:"string",variants:[MULTILINE_STRING(),MULTILINE_STRING("#"),MULTILINE_STRING("##"),MULTILINE_STRING("###"),SINGLE_LINE_STRING(),SINGLE_LINE_STRING("#"),SINGLE_LINE_STRING("##"),SINGLE_LINE_STRING("###")]},C={match:concat(/`/,Y,/`/)},A={className:"variable",match:`\\$${J}+`},N=[C,{className:"variable",match:/\$\d+/},A],O={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:en,contains:[...E,x,S]}]}},T={className:"keyword",match:concat(/@/,either(...et))},I={className:"meta",match:concat(/@/,Y)},D=[O,T,I],M={match:lookahead(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:concat(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,J,"+")},{className:"type",match:ee,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:concat(/\s+&\s+/,lookahead(ee)),relevance:0}]},R={begin:/</,end:/>/,keywords:g,contains:[...a,...h,...D,v,M]};M.contains.push(R);let L={match:concat(Y,/\s*:/),keywords:"_|0",relevance:0},F={begin:/\(/,end:/\)/,relevance:0,keywords:g,contains:["self",L,...a,...h,...y,...E,x,S,...N,...D,M]},P={begin:/</,end:/>/,contains:[...a,M]},B={begin:either(lookahead(concat(Y,/\s*:/)),lookahead(concat(Y,/\s+/,Y,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Y}]},z={begin:/\(/,end:/\)/,keywords:g,contains:[B,...a,...h,...E,x,S,...D,M,F],endsParent:!0,illegal:/["']/},G={match:[/func/,/\s+/,either(C.match,Y,X)],className:{1:"keyword",3:"title.function"},contains:[P,z,n],illegal:[/\[/,/%/]},Q={begin:[/precedencegroup/,/\s+/,ee],className:{1:"keyword",3:"title"},contains:[M],keywords:[...K,...q],end:/}/};for(let e of S.variants){let n=e.contains.find(e=>"interpol"===e.label);n.keywords=g;let r=[...h,...y,...E,x,S,...N];n.contains=[...r,{begin:/\(/,end:/\)/,contains:["self",...r]}]}return{name:"Swift",keywords:g,contains:[...a,G,{match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[P,z,n],illegal:/\[|%/},{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:g,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...h]},{match:[/operator/,/\s+/,X],className:{1:"keyword",3:"title"}},Q,{beginKeywords:"import",end:/$/,contains:[...a],relevance:0},...h,...y,...E,x,S,...N,...D,M,F]}}),em.registerLanguage("typescript",function(e){let n=function(e){var n;let r=e.regex,hasClosingTag=(e,{after:n})=>{let r="</"+e[0].slice(1),a=e.input.indexOf(r,n);return -1!==a},a={begin:"<>",end:"</>"},o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{let r;let a=e[0].length+e.index,o=e.input[a];if("<"===o||","===o){n.ignoreMatch();return}">"!==o||hasClosingTag(e,{after:a})||n.ignoreMatch();let u=e.input.substring(a);if((r=u.match(/^\s*=/))||(r=u.match(/^\s+extends\s+/))&&0===r.index){n.ignoreMatch();return}}},u={$pattern:er,keyword:ei,literal:ea,built_in:eu,"variable.language":ec},d="[0-9](_?[0-9])*",f=`\\.(${d})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${f})|\\.)?|(${f}))[eE][+-]?(${d})\\b`},{begin:`\\b(${p})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},b={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},w=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:er+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),E={className:"comment",variants:[w,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,b,y,v,{match:/\$\d+/},g];h.contains=k.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(k)});let _=[].concat(E,h.contains),x=_.concat([{begin:/\(/,end:/\)/,keywords:u,contains:["self"].concat(_)}]),S={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:x},C={variants:[{match:[/class/,/\s+/,er,/\s+/,/extends/,/\s+/,r.concat(er,"(",r.concat(/\./,er),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,er],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:r.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...eo,...el]}},N={match:r.concat(/\b/,(n=[...es,"super","import"],r.concat("(?!",n.join("|"),")")),er,r.lookahead(/\(/)),className:"title.function",relevance:0},O={begin:r.concat(/\./,r.lookahead(r.concat(er,/(?![0-9A-Za-z$_(])/))),end:er,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},T="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",I={match:[/const|var|let/,/\s+/,er,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(T)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:A},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,b,y,v,E,{match:/\$\d+/},g,A,{className:"attr",begin:er+r.lookahead(":"),relevance:0},I,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,e.REGEXP_MODE,{className:"function",begin:T,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},{variants:[{match:[/function/,/\s+/,er,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],illegal:/%/},{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[S,e.inherit(e.TITLE_MODE,{begin:er,className:"title.function"})]},{match:/\.\.\./,relevance:0},O,{match:"\\$"+er,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[S]},N,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},C,{match:[/get|set/,/\s+/,er,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},S]},{match:/\$[(.]/}]}}(e),r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[n.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},u={$pattern:er,keyword:ei.concat(["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"]),literal:ea,built_in:eu.concat(r),"variable.language":ec},d={className:"meta",begin:"@"+er},swapMode=(e,n,r)=>{let a=e.contains.findIndex(e=>e.label===n);if(-1===a)throw Error("can not find mode to replace");e.contains.splice(a,1,r)};Object.assign(n.keywords,u),n.exports.PARAMS_CONTAINS.push(d),n.contains=n.contains.concat([d,a,o]),swapMode(n,"shebang",e.SHEBANG()),swapMode(n,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/});let f=n.contains.find(e=>"func.def"===e.label);return f.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}),em.registerLanguage("vbnet",function(e){let n=e.regex,r=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:n.concat(/# */,n.either(a,r),/ *#/)},{begin:n.concat(/# */,u,/ *#/)},{begin:n.concat(/# */,o,/ *#/)},{begin:n.concat(/# */,n.either(a,r),/ +/,n.either(o,u),/ *#/)}]},f=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},d,{className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{className:"label",begin:/^\w+:/},f,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}),em.registerLanguage("wasm",function(e){e.regex;let n=e.COMMENT(/\(;/,/;\)/);n.contains.push("self");let r=e.COMMENT(/;;/,/$/);return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"]},contains:[r,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},{className:"variable",begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},{className:"keyword",match:/\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|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:"number",relevance:0,match:/[+-]?\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/}]}}),em.registerLanguage("xml",function(e){let n=e.regex,r=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(o,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),f=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),p={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,f,d,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,u,f,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(r,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:p}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}),em.registerLanguage("yaml",function(e){let n="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},o=e.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),u={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},d=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ 	]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ 	]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ 	]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},{begin:/\{/,end:/\}/,contains:[u],illegal:"\\n",relevance:0},{begin:"\\[",end:"\\]",contains:[u],illegal:"\\n",relevance:0},a],f=[...d];return f.pop(),f.push(o),u.contains=f,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:d}});let convertElement=function(e){if(null==e)return hast_util_is_element_element;if("string"==typeof e)return function(n){return hast_util_is_element_element(n)&&n.tagName===e};if("object"==typeof e)return function(e){let n=[],r=-1;for(;++r<e.length;)n[r]=convertElement(e[r]);return castFactory(function(...e){let r=-1;for(;++r<n.length;)if(n[r].call(this,...e))return!0;return!1})}(e);if("function"==typeof e)return castFactory(e);throw Error("Expected function, string, or array as test")};function castFactory(e){return function(n,...r){return hast_util_is_element_element(n)&&!!e.call(this,n,...r)}}function hast_util_is_element_element(e){return!!(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}var eb=r(38168);let findAfter=function(e,n,r){let a=(0,eb.O)(r);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof n){if(n<0||n===Number.POSITIVE_INFINITY)throw Error("Expected positive finite number as index")}else if((n=e.children.indexOf(n))<0)throw Error("Expected child node or index");for(;++n<e.children.length;)if(a(e.children[n],n,e))return e.children[n];return null},ey=/\n/g,ev=/[\t ]+/g,ew=convertElement("br"),eE=convertElement("p"),ek=convertElement(["th","td"]),e_=convertElement("tr"),ex=convertElement(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),eS=convertElement(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function toText(e,n={}){let r;let a="children"in e?e.children:[],o=eS(e),u=inferWhitespace(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),d=[];("text"===e.type||"comment"===e.type)&&d.push(...collectText(e,{whitespace:u,breakBefore:!0,breakAfter:!0}));let f=-1;for(;++f<a.length;)d.push(...function innerTextCollection(e,n,r){return"element"===e.type?function(e,n,r){let a,o;let u=inferWhitespace(e,r),d=e.children||[],f=-1,p=[];if(ex(e))return p;for(ew(e)?o="\n":e_(e)&&findAfter(n,e,e_)?o="\n":eE(e)?(a=2,o=2):eS(e)&&(a=1,o=1);++f<d.length;)p=p.concat(innerTextCollection(d[f],e,{whitespace:u,breakBefore:f?void 0:a,breakAfter:f<d.length-1?ew(d[f+1]):o}));return ek(e)&&findAfter(n,e,ek)&&p.push("	"),a&&p.unshift(a),o&&p.push(o),p}(e,n,r):"text"===e.type?"normal"===r.whitespace?collectText(e,r):[String(e.value)]:[]}(a[f],e,{whitespace:u,breakBefore:f?void 0:o,breakAfter:f<a.length-1?ew(a[f+1]):o}));let p=[];for(f=-1;++f<d.length;){let e=d[f];"number"==typeof e?void 0!==r&&e>r&&(r=e):e&&(void 0!==r&&r>-1&&p.push("\n".repeat(r)||" "),r=-1,p.push(e))}return p.join("")}function collectText(e,n){let r;let a=String(e.value),o=[],u=[],d=0;for(;d<=a.length;){ey.lastIndex=d;let e=ey.exec(a),r=e&&"index"in e?e.index:a.length;o.push(function(e,n,r){let a;let o=[],u=0;for(;u<e.length;){ev.lastIndex=u;let r=ev.exec(e);a=r?r.index:e.length,u||a||!r||n||o.push(""),u!==a&&o.push(e.slice(u,a)),u=r?a+r[0].length:a}return u===a||r||o.push(""),o.join(" ")}(a.slice(d,r).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==d||n.breakBefore,r!==a.length||n.breakAfter)),d=r+1}let f=-1;for(;++f<o.length;)8203===o[f].charCodeAt(o[f].length-1)||f<o.length-1&&8203===o[f+1].charCodeAt(0)?(u.push(o[f]),r=void 0):o[f]?("number"==typeof r&&u.push(r),u.push(o[f]),r=0):(0===f||f===o.length-1)&&u.push(0);return u}function inferWhitespace(e,n){if("element"===e.type){let r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":n.whitespace;case"textarea":return"pre-wrap"}}return n.whitespace}var eC=r(98936);let eA={}.hasOwnProperty;function rehypeHighlight(e={}){let{aliases:n,languages:r,prefix:a,plainText:o,ignoreMissing:u,subset:d,detect:f}=e,p="hljs";if(n&&em.registerAlias(n),r){let e;for(e in r)eA.call(r,e)&&em.registerLanguage(e,r[e])}if(a){let e=a.indexOf("-");p=e>-1?a.slice(0,e):a}return(e,n)=>{(0,eC.Vn)(e,"element",(e,r,g)=>{let h;if(!g||!("tagName"in g)||"pre"!==g.tagName||"code"!==e.tagName||!e.properties)return;let m=function(e){let n=e.properties&&e.properties.className,r=-1;if(Array.isArray(n))for(;++r<n.length;){let e=String(n[r]);if("no-highlight"===e||"nohighlight"===e)return!1;if("lang-"===e.slice(0,5))return e.slice(5);if("language-"===e.slice(0,9))return e.slice(9)}}(e);if(!(!1===m||!m&&!f||m&&o&&o.includes(m))){Array.isArray(e.properties.className)||(e.properties.className=[]),e.properties.className.includes(p)||e.properties.className.unshift(p);try{h=m?em.highlight(m,toText(g),{prefix:a}):em.highlightAuto(toText(g),{prefix:a,subset:d})}catch(r){u&&/Unknown language/.test(r.message)||n.fail(r,e,"rehype-highlight:missing-language");return}!m&&h.data.language&&e.properties.className.push("language-"+h.data.language),Array.isArray(h.children)&&h.children.length>0&&(e.children=h.children)}})}}},93922:function(e,n,r){"use strict";r.d(n,{Z:function(){return remarkGfm}});var a=r(45740),o=r(82984);let u={tokenize:function(e,n,r){let a=0;return function wwwPrefixInside(n){return(87===n||119===n)&&a<3?(a++,e.consume(n),wwwPrefixInside):46===n&&3===a?(e.consume(n),wwwPrefixAfter):r(n)};function wwwPrefixAfter(e){return null===e?r(e):n(e)}},partial:!0},d={tokenize:function(e,n,r){let a,u,d;return domainInside;function domainInside(n){return 46===n||95===n?e.check(p,domainAfter,domainAtPunctuation)(n):null===n||(0,o.z3)(n)||(0,o.B8)(n)||45!==n&&(0,o.Xh)(n)?domainAfter(n):(d=!0,e.consume(n),domainInside)}function domainAtPunctuation(n){return 95===n?a=!0:(u=a,a=void 0),e.consume(n),domainInside}function domainAfter(e){return u||a||!d?r(e):n(e)}},partial:!0},f={tokenize:function(e,n){let r=0,a=0;return pathInside;function pathInside(u){return 40===u?(r++,e.consume(u),pathInside):41===u&&a<r?pathAtPunctuation(u):33===u||34===u||38===u||39===u||41===u||42===u||44===u||46===u||58===u||59===u||60===u||63===u||93===u||95===u||126===u?e.check(p,n,pathAtPunctuation)(u):null===u||(0,o.z3)(u)||(0,o.B8)(u)?n(u):(e.consume(u),pathInside)}function pathAtPunctuation(n){return 41===n&&a++,e.consume(n),pathInside}},partial:!0},p={tokenize:function(e,n,r){return trail;function trail(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),trail):38===a?(e.consume(a),trailCharRefStart):93===a?(e.consume(a),trailBracketAfter):60===a||null===a||(0,o.z3)(a)||(0,o.B8)(a)?n(a):r(a)}function trailBracketAfter(e){return null===e||40===e||91===e||(0,o.z3)(e)||(0,o.B8)(e)?n(e):trail(e)}function trailCharRefStart(n){return(0,o.jv)(n)?function trailCharRefInside(n){return 59===n?(e.consume(n),trail):(0,o.jv)(n)?(e.consume(n),trailCharRefInside):r(n)}(n):r(n)}},partial:!0},g={tokenize:function(e,n,r){return function(n){return e.consume(n),after};function after(e){return(0,o.H$)(e)?r(e):n(e)}},partial:!0},h={tokenize:function(e,n,r){let a=this;return function(n){return 87!==n&&119!==n||!previousWww.call(a,a.previous)||previousUnbalanced(a.events)?r(n):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(u,e.attempt(d,e.attempt(f,wwwAfter),r),r)(n))};function wwwAfter(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(r)}},previous:previousWww},m={tokenize:function(e,n,r){let a=this,u="",p=!1;return function(n){return(72===n||104===n)&&previousProtocol.call(a,a.previous)&&!previousUnbalanced(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),u+=String.fromCodePoint(n),e.consume(n),protocolPrefixInside):r(n)};function protocolPrefixInside(n){if((0,o.jv)(n)&&u.length<5)return u+=String.fromCodePoint(n),e.consume(n),protocolPrefixInside;if(58===n){let r=u.toLowerCase();if("http"===r||"https"===r)return e.consume(n),protocolSlashesInside}return r(n)}function protocolSlashesInside(n){return 47===n?(e.consume(n),p)?afterProtocol:(p=!0,protocolSlashesInside):r(n)}function afterProtocol(n){return null===n||(0,o.Av)(n)||(0,o.z3)(n)||(0,o.B8)(n)||(0,o.Xh)(n)?r(n):e.attempt(d,e.attempt(f,protocolAfter),r)(n)}function protocolAfter(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(r)}},previous:previousProtocol},b={tokenize:function(e,n,r){let a,u;let d=this;return function(n){return!gfmAtext(n)||!previousEmail.call(d,d.previous)||previousUnbalanced(d.events)?r(n):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function atext(n){return gfmAtext(n)?(e.consume(n),atext):64===n?(e.consume(n),emailDomain):r(n)}(n))};function emailDomain(n){return 46===n?e.check(g,emailDomainAfter,emailDomainDot)(n):45===n||95===n||(0,o.H$)(n)?(u=!0,e.consume(n),emailDomain):emailDomainAfter(n)}function emailDomainDot(n){return e.consume(n),a=!0,emailDomain}function emailDomainAfter(f){return u&&a&&(0,o.jv)(d.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(f)):r(f)}},previous:previousEmail},y={},v={text:y},w=48;for(;w<123;)y[w]=b,58==++w?w=65:91===w&&(w=97);function previousWww(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,o.z3)(e)}function previousProtocol(e){return!(0,o.jv)(e)}function previousEmail(e){return!(47===e||gfmAtext(e))}function gfmAtext(e){return 43===e||45===e||46===e||95===e||(0,o.H$)(e)}function previousUnbalanced(e){let n=e.length,r=!1;for(;n--;){let a=e[n][1];if(("labelLink"===a.type||"labelImage"===a.type)&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}y[43]=b,y[45]=b,y[46]=b,y[95]=b,y[72]=[b,m],y[104]=[b,m],y[87]=[b,h],y[119]=[b,h];var E=r(40804),k=r(57893),_=r(42789);let x={tokenize:function(e,n,r){let a=this;return(0,k.f)(e,function(e){let o=a.events[a.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?n(e):r(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function tokenizePotentialGfmFootnoteCall(e,n,r){let a;let o=this,u=o.events.length,d=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);for(;u--;){let e=o.events[u][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(u){if(!a||!a._balanced)return r(u);let f=(0,_.d)(o.sliceSerialize({start:a.end,end:o.now()}));return 94===f.codePointAt(0)&&d.includes(f.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u)):r(u)}}function resolveToPotentialGfmFootnoteCall(e,n){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let a={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[r+1],e[r+2],["enter",a,n],e[r+3],e[r+4],["enter",o,n],["exit",o,n],["enter",u,n],["enter",d,n],["exit",d,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",a,n]];return e.splice(r,e.length-r+1,...f),e}function tokenizeGfmFootnoteCall(e,n,r){let a;let u=this,d=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]),f=0;return function(n){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(n),e.exit("gfmFootnoteCallLabelMarker"),callStart};function callStart(n){return 94!==n?r(n):(e.enter("gfmFootnoteCallMarker"),e.consume(n),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",callData)}function callData(p){if(f>999||93===p&&!a||null===p||91===p||(0,o.z3)(p))return r(p);if(93===p){e.exit("chunkString");let a=e.exit("gfmFootnoteCallString");return d.includes((0,_.d)(u.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(p)}return(0,o.z3)(p)||(a=!0),f++,e.consume(p),92===p?callEscape:callData}function callEscape(n){return 91===n||92===n||93===n?(e.consume(n),f++,callData):callData(n)}}function tokenizeDefinitionStart(e,n,r){let a,u;let d=this,f=d.parser.gfmFootnotes||(d.parser.gfmFootnotes=[]),p=0;return function(n){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionLabelMarker"),labelAtMarker};function labelAtMarker(n){return 94===n?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",labelInside):r(n)}function labelInside(n){if(p>999||93===n&&!u||null===n||91===n||(0,o.z3)(n))return r(n);if(93===n){e.exit("chunkString");let r=e.exit("gfmFootnoteDefinitionLabelString");return a=(0,_.d)(d.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),labelAfter}return(0,o.z3)(n)||(u=!0),p++,e.consume(n),92===n?labelEscape:labelInside}function labelEscape(n){return 91===n||92===n||93===n?(e.consume(n),p++,labelInside):labelInside(n)}function labelAfter(n){return 58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),f.includes(a)||f.push(a),(0,k.f)(e,whitespaceAfter,"gfmFootnoteDefinitionWhitespace")):r(n)}function whitespaceAfter(e){return n(e)}}function tokenizeDefinitionContinuation(e,n,r){return e.check(E.w,n,e.attempt(x,n,r))}function gfmFootnoteDefinitionEnd(e){e.exit("gfmFootnoteDefinition")}var S=r(93493),C=r(20271),A=r(85716);let EditMap=class EditMap{constructor(){this.map=[]}add(e,n,r){(function(e,n,r,a){let o=0;if(0!==r||0!==a.length){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=r,e.map[o][2].push(...a);return}o+=1}e.map.push([n,r,a])}})(this,e,n,r)}consume(e){if(this.map.sort((e,n)=>e[0]-n[0]),0===this.map.length)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),e.length=this.map[n][0];r.push([...e]),e.length=0;let a=r.pop();for(;a;)e.push(...a),a=r.pop();this.map.length=0}};let N={flow:{null:{tokenize:function(e,n,r){let a;let u=this,d=0,f=0;return function(e){let n=u.events.length-1;for(;n>-1;){let e=u.events[n][1].type;if("lineEnding"===e||"linePrefix"===e)n--;else break}let a=n>-1?u.events[n][1].type:null,o="tableHead"===a||"tableRow"===a?bodyRowStart:headRowBefore;return o===bodyRowStart&&u.parser.lazy[u.now().line]?r(e):o(e)};function headRowBefore(n){return e.enter("tableHead"),e.enter("tableRow"),124===n||(a=!0,f+=1),headRowBreak(n)}function headRowBreak(n){return null===n?r(n):(0,o.Ch)(n)?f>1?(f=0,u.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),headDelimiterStart):r(n):(0,o.xz)(n)?(0,k.f)(e,headRowBreak,"whitespace")(n):(f+=1,a&&(a=!1,d+=1),124===n)?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),a=!0,headRowBreak):(e.enter("data"),headRowData(n))}function headRowData(n){return null===n||124===n||(0,o.z3)(n)?(e.exit("data"),headRowBreak(n)):(e.consume(n),92===n?headRowEscape:headRowData)}function headRowEscape(n){return 92===n||124===n?(e.consume(n),headRowData):headRowData(n)}function headDelimiterStart(n){return(u.interrupt=!1,u.parser.lazy[u.now().line])?r(n):(e.enter("tableDelimiterRow"),a=!1,(0,o.xz)(n))?(0,k.f)(e,headDelimiterBefore,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):headDelimiterBefore(n)}function headDelimiterBefore(n){return 45===n||58===n?headDelimiterValueBefore(n):124===n?(a=!0,e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),headDelimiterCellBefore):r(n)}function headDelimiterCellBefore(n){return(0,o.xz)(n)?(0,k.f)(e,headDelimiterValueBefore,"whitespace")(n):headDelimiterValueBefore(n)}function headDelimiterValueBefore(n){return 58===n?(f+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),headDelimiterLeftAlignmentAfter):45===n?(f+=1,headDelimiterLeftAlignmentAfter(n)):null===n||(0,o.Ch)(n)?headDelimiterCellAfter(n):r(n)}function headDelimiterLeftAlignmentAfter(n){return 45===n?(e.enter("tableDelimiterFiller"),function headDelimiterFiller(n){return 45===n?(e.consume(n),headDelimiterFiller):58===n?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),headDelimiterRightAlignmentAfter):(e.exit("tableDelimiterFiller"),headDelimiterRightAlignmentAfter(n))}(n)):r(n)}function headDelimiterRightAlignmentAfter(n){return(0,o.xz)(n)?(0,k.f)(e,headDelimiterCellAfter,"whitespace")(n):headDelimiterCellAfter(n)}function headDelimiterCellAfter(u){return 124===u?headDelimiterBefore(u):null===u||(0,o.Ch)(u)?a&&d===f?(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(u)):r(u):r(u)}function bodyRowStart(n){return e.enter("tableRow"),bodyRowBreak(n)}function bodyRowBreak(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),bodyRowBreak):null===r||(0,o.Ch)(r)?(e.exit("tableRow"),n(r)):(0,o.xz)(r)?(0,k.f)(e,bodyRowBreak,"whitespace")(r):(e.enter("data"),bodyRowData(r))}function bodyRowData(n){return null===n||124===n||(0,o.z3)(n)?(e.exit("data"),bodyRowBreak(n)):(e.consume(n),92===n?bodyRowEscape:bodyRowData)}function bodyRowEscape(n){return 92===n||124===n?(e.consume(n),bodyRowData):bodyRowData(n)}},resolveAll:function(e,n){let r,a,o,u=-1,d=!0,f=0,p=[0,0,0,0],g=[0,0,0,0],h=!1,m=0,b=new EditMap;for(;++u<e.length;){let y=e[u],v=y[1];"enter"===y[0]?"tableHead"===v.type?(h=!1,0!==m&&(flushTableEnd(b,n,m,r,a),a=void 0,m=0),r={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},b.add(u,0,[["enter",r,n]])):"tableRow"===v.type||"tableDelimiterRow"===v.type?(d=!0,o=void 0,p=[0,0,0,0],g=[0,u+1,0,0],h&&(h=!1,a={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},b.add(u,0,[["enter",a,n]])),f="tableDelimiterRow"===v.type?2:a?3:1):f&&("data"===v.type||"tableDelimiterMarker"===v.type||"tableDelimiterFiller"===v.type)?(d=!1,0===g[2]&&(0!==p[1]&&(g[0]=g[1],o=flushCell(b,n,p,f,void 0,o),p=[0,0,0,0]),g[2]=u)):"tableCellDivider"===v.type&&(d?d=!1:(0!==p[1]&&(g[0]=g[1],o=flushCell(b,n,p,f,void 0,o)),g=[(p=g)[1],u,0,0])):"tableHead"===v.type?(h=!0,m=u):"tableRow"===v.type||"tableDelimiterRow"===v.type?(m=u,0!==p[1]?(g[0]=g[1],o=flushCell(b,n,p,f,u,o)):0!==g[1]&&(o=flushCell(b,n,g,f,u,o)),f=0):f&&("data"===v.type||"tableDelimiterMarker"===v.type||"tableDelimiterFiller"===v.type)&&(g[3]=u)}for(0!==m&&flushTableEnd(b,n,m,r,a),b.consume(n.events),u=-1;++u<n.events.length;){let e=n.events[u];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,n){let r=!1,a=[];for(;n<e.length;){let o=e[n];if(r){if("enter"===o[0])"tableContent"===o[1].type&&a.push("tableDelimiterMarker"===e[n+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[n-1][1].type){let e=a.length-1;a[e]="left"===a[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(r=!0);n+=1}return a}(n.events,u))}return e}}}};function flushCell(e,n,r,a,o,u){0!==r[0]&&(u.end=Object.assign({},getPoint(n.events,r[0])),e.add(r[0],0,[["exit",u,n]]));let d=getPoint(n.events,r[1]);if(u={type:1===a?"tableHeader":2===a?"tableDelimiter":"tableData",start:Object.assign({},d),end:Object.assign({},d)},e.add(r[1],0,[["enter",u,n]]),0!==r[2]){let o=getPoint(n.events,r[2]),u=getPoint(n.events,r[3]),d={type:"tableContent",start:Object.assign({},o),end:Object.assign({},u)};if(e.add(r[2],0,[["enter",d,n]]),2!==a){let a=n.events[r[2]],o=n.events[r[3]];if(a[1].end=Object.assign({},o[1].end),a[1].type="chunkText",a[1].contentType="text",r[3]>r[2]+1){let n=r[2]+1,a=r[3]-r[2]-1;e.add(n,a,[])}}e.add(r[3]+1,0,[["exit",d,n]])}return void 0!==o&&(u.end=Object.assign({},getPoint(n.events,o)),e.add(o,0,[["exit",u,n]]),u=void 0),u}function flushTableEnd(e,n,r,a,o){let u=[],d=getPoint(n.events,r);o&&(o.end=Object.assign({},d),u.push(["exit",o,n])),a.end=Object.assign({},d),u.push(["exit",a,n]),e.add(r+1,0,u)}function getPoint(e,n){let r=e[n],a="enter"===r[0]?"start":"end";return r[1][a]}let O={text:{91:{tokenize:function(e,n,r){let a=this;return function(n){return null===a.previous&&a._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),inside):r(n)};function inside(n){return(0,o.z3)(n)?(e.enter("taskListCheckValueUnchecked"),e.consume(n),e.exit("taskListCheckValueUnchecked"),close):88===n||120===n?(e.enter("taskListCheckValueChecked"),e.consume(n),e.exit("taskListCheckValueChecked"),close):r(n)}function close(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),after):r(n)}function after(a){return(0,o.Ch)(a)?n(a):(0,o.xz)(a)?e.check({tokenize:spaceThenNonSpace},n,r)(a):r(a)}}}}};function spaceThenNonSpace(e,n,r){return(0,k.f)(e,function(e){return null===e?r(e):n(e)},"whitespace")}function ccount(e,n){let r=String(e);if("string"!=typeof n)throw TypeError("Expected character");let a=0,o=r.indexOf(n);for(;-1!==o;)a++,o=r.indexOf(n,o+n.length);return a}var T=r(23182),I=r(38168);let D={}.hasOwnProperty,findAndReplace=function(e,n,r,a){let o,u;"string"==typeof n||n instanceof RegExp?(u=[[n,r]],o=a):(u=n,o=r),o||(o={});let d=(0,I.O)(o.ignore||[]),f=function(e){let n=[];if("object"!=typeof e)throw TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)n.push([toExpression(e[r][0]),toFunction(e[r][1])])}else{let r;for(r in e)D.call(e,r)&&n.push([toExpression(r),toFunction(e[r])])}return n}(u),p=-1;for(;++p<f.length;)(0,T.S4)(e,"text",visitor);return e;function visitor(e,n){let r,a=-1;for(;++a<n.length;){let e=n[a];if(d(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,n){let r=n[n.length-1],a=f[p][0],o=f[p][1],u=0,d=r.children.indexOf(e),g=!1,h=[];a.lastIndex=0;let m=a.exec(e.value);for(;m;){let r=m.index,d={index:m.index,input:m.input,stack:[...n,e]},f=o(...m,d);if("string"==typeof f&&(f=f.length>0?{type:"text",value:f}:void 0),!1!==f&&(u!==r&&h.push({type:"text",value:e.value.slice(u,r)}),Array.isArray(f)?h.push(...f):f&&h.push(f),u=r+m[0].length,g=!0),!a.global)break;m=a.exec(e.value)}return g?(u<e.value.length&&h.push({type:"text",value:e.value.slice(u)}),r.children.splice(d,1,...h)):h=[e],d+h.length}(e,n)}};function toExpression(e){return"string"==typeof e?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function toFunction(e){return"function"==typeof e?e:()=>e}let M="phrasing",R=["autolink","link","image","label"],L={transforms:[function(e){findAndReplace(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,findEmail]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);let n=this.stack[this.stack.length-1];n.url="http://"+this.sliceSerialize(e)}}},F={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:M,notInConstruct:R},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:M,notInConstruct:R},{character:":",before:"[ps]",after:"\\/",inConstruct:M,notInConstruct:R}]};function enterLiteralAutolinkValue(e){this.config.enter.autolinkProtocol.call(this,e)}function findUrl(e,n,r,a,o){let u="";if(!previous(o)||(/^w/i.test(n)&&(r=n+r,n="",u="http://"),!function(e){let n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}(r)))return!1;let d=function(e){let n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],a=r.indexOf(")"),o=ccount(e,"("),u=ccount(e,")");for(;-1!==a&&o>u;)e+=r.slice(0,a+1),a=(r=r.slice(a+1)).indexOf(")"),u++;return[e,r]}(r+a);if(!d[0])return!1;let f={type:"link",title:null,url:u+n+d[0],children:[{type:"text",value:n+d[0]}]};return d[1]?[f,{type:"text",value:d[1]}]:f}function findEmail(e,n,r,a){return!(!previous(a,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function previous(e,n){let r=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.B8)(r)||(0,o.Xh)(r))&&(!n||47!==r)}var P=r(27138);function association(e){return e.label||!e.identifier?e.label||"":(0,P.v)(e.identifier)}let B=/\r?\n|\r/g;function patternCompile(e){if(!e._compiled){let n=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((n?"("+n+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function listInScope(e,n,r){if("string"==typeof n&&(n=[n]),!n||0===n.length)return r;let a=-1;for(;++a<n.length;)if(e.includes(n[a]))return!0;return!1}function safe(e,n,r){let a=(r.before||"")+(n||"")+(r.after||""),o=[],u=[],d={},f=-1;for(;++f<e.unsafe.length;){var p;let n;let r=e.unsafe[f];if(!listInScope(p=e.stack,r.inConstruct,!0)||listInScope(p,r.notInConstruct,!1))continue;let u=patternCompile(r);for(;n=u.exec(a);){let e="before"in r||!!r.atBreak,a="after"in r,u=n.index+(e?n[1].length:0);o.includes(u)?(d[u].before&&!e&&(d[u].before=!1),d[u].after&&!a&&(d[u].after=!1)):(o.push(u),d[u]={before:e,after:a})}}o.sort(numerical);let g=r.before?r.before.length:0,h=a.length-(r.after?r.after.length:0);for(f=-1;++f<o.length;){let e=o[f];!(e<g)&&!(e>=h)&&(!(e+1<h)||o[f+1]!==e+1||!d[e].after||d[e+1].before||d[e+1].after)&&(o[f-1]!==e-1||!d[e].before||d[e-1].before||d[e-1].after)&&(g!==e&&u.push(escapeBackslashes(a.slice(g,e),"\\")),g=e,!/[!-/:-@[-`{-~]/.test(a.charAt(e))||r.encode&&r.encode.includes(a.charAt(e))?(u.push("&#x"+a.charCodeAt(e).toString(16).toUpperCase()+";"),g++):u.push("\\"))}return u.push(escapeBackslashes(a.slice(g,h),r.after)),u.join("")}function numerical(e,n){return e-n}function escapeBackslashes(e,n){let r;let a=/\\(?=[!-/:-@[-`{-~])/g,o=[],u=[],d=e+n,f=-1,p=0;for(;r=a.exec(d);)o.push(r.index);for(;++f<o.length;)p!==o[f]&&u.push(e.slice(p,o[f])),u.push("\\"),p=o[f];return u.push(e.slice(p)),u.join("")}function track(e){let n=e||{},r=n.now||{},a=n.lineShift||0,o=r.line||1,u=r.column||1;return{move:function(e){let n=e||"",r=n.split(/\r?\n|\r/g),d=r[r.length-1];return o+=r.length-1,u=1===r.length?u+d.length:1+d.length+a,n},current:function(){return{now:{line:o,column:u},lineShift:a}},shift:function(e){a+=e}}}function enterFootnoteDefinition(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function enterFootnoteDefinitionLabelString(){this.buffer()}function exitFootnoteDefinitionLabelString(e){let n=this.resume(),r=this.stack[this.stack.length-1];r.label=n,r.identifier=(0,_.d)(this.sliceSerialize(e)).toLowerCase()}function exitFootnoteDefinition(e){this.exit(e)}function enterFootnoteCall(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function enterFootnoteCallString(){this.buffer()}function exitFootnoteCallString(e){let n=this.resume(),r=this.stack[this.stack.length-1];r.label=n,r.identifier=(0,_.d)(this.sliceSerialize(e)).toLowerCase()}function exitFootnoteCall(e){this.exit(e)}function footnoteReference(e,n,r,a){let o=track(a),u=o.move("[^"),d=r.enter("footnoteReference"),f=r.enter("reference");return u+=o.move(safe(r,association(e),{...o.current(),before:u,after:"]"})),f(),d(),u+=o.move("]")}function footnoteDefinition(e,n,r,a){let o=track(a),u=o.move("[^"),d=r.enter("footnoteDefinition"),f=r.enter("label");return u+=o.move(safe(r,association(e),{...o.current(),before:u,after:"]"})),f(),u+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),u+=o.move(function(e,n){let r;let a=[],o=0,u=0;for(;r=B.exec(e);)one(e.slice(o,r.index)),a.push(r[0]),o=r.index+r[0].length,u++;return one(e.slice(o)),a.join("");function one(e){a.push(n(e,u,!e))}}(function(e,n,r){let a=n.indexStack,o=e.children||[],u=n.createTracker(r),d=[],f=-1;for(a.push(-1);++f<o.length;){let r=o[f];a[a.length-1]=f,d.push(u.move(n.handle(r,e,n,{before:"\n",after:"\n",...u.current()}))),"list"!==r.type&&(n.bulletLastUsed=void 0),f<o.length-1&&d.push(u.move(function(e,n,r,a){let o=a.join.length;for(;o--;){let u=a.join[o](e,n,r,a);if(!0===u||1===u)break;if("number"==typeof u)return"\n".repeat(1+u);if(!1===u)return"\n\n<!---->\n\n"}return"\n\n"}(r,o[f+1],e,n)))}return a.pop(),d.join("")}(e,r,o.current()),map)),d(),u}function map(e,n,r){return 0===n?e:(r?"":"    ")+e}function containerPhrasing(e,n,r){let a=n.indexStack,o=e.children||[],u=[],d=-1,f=r.before;a.push(-1);let p=n.createTracker(r);for(;++d<o.length;){let g;let h=o[d];if(a[a.length-1]=d,d+1<o.length){let r=n.handle.handlers[o[d+1].type];r&&r.peek&&(r=r.peek),g=r?r(o[d+1],e,n,{before:"",after:"",...p.current()}).charAt(0):""}else g=r.after;u.length>0&&("\r"===f||"\n"===f)&&"html"===h.type&&(u[u.length-1]=u[u.length-1].replace(/(\r?\n|\r)$/," "),f=" ",(p=n.createTracker(r)).move(u.join(""))),u.push(p.move(n.handle(h,e,n,{...p.current(),before:f,after:g}))),f=u[u.length-1].slice(-1)}return a.pop(),u.join("")}footnoteReference.peek=function(){return"["},handleDelete.peek=function(){return"~"};let z={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},j={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:handleDelete}};function handleDelete(e,n,r,a){let o=track(a),u=r.enter("strikethrough"),d=o.move("~~");return d+=containerPhrasing(e,r,{...o.current(),before:d,after:"~"})+o.move("~~"),u(),d}function inlineCode(e,n,r){let a=e.value||"",o="`",u=-1;for(;RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++u<r.unsafe.length;){let e;let n=r.unsafe[u],o=patternCompile(n);if(n.atBreak)for(;e=o.exec(a);){let n=e.index;10===a.charCodeAt(n)&&13===a.charCodeAt(n-1)&&n--,a=a.slice(0,n)+" "+a.slice(e.index+1)}}return o+a+o}function defaultStringLength(e){return e.length}function toAlignment(e){let n="string"==typeof e?e.codePointAt(0):0;return 67===n||99===n?99:76===n||108===n?108:82===n||114===n?114:0}inlineCode.peek=function(){return"`"};let U={enter:{table:function(e){let n=e._align;this.enter({type:"table",align:n.map(e=>"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:enterCell,tableHeader:enterCell,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let n=this.resume();this.getData("inTable")&&(n=n.replace(/\\([\\|])/g,replace));let r=this.stack[this.stack.length-1];r.value=n,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:exit,tableHeader:exit,tableRow:exit}};function exit(e){this.exit(e)}function enterCell(e){this.enter({type:"tableCell",children:[]},e)}function replace(e,n){return"|"===n?n:e}let H={exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:function(e){let n=this.stack[this.stack.length-2];if(n&&"listItem"===n.type&&"boolean"==typeof n.checked){let e=this.stack[this.stack.length-1],r=e.children[0];if(r&&"text"===r.type){let a;let o=n.children,u=-1;for(;++u<o.length;){let e=o[u];if("paragraph"===e.type){a=e;break}}a===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}}},$={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,n,r,a){let o=e.children[0],u="boolean"==typeof e.checked&&o&&"paragraph"===o.type,d="["+(e.checked?"x":" ")+"] ",f=track(a);u&&f.move(d);let p=function(e,n,r,a){let o=function(e){let n=e.options.listItemIndent||"tab";if(1===n||"1"===n)return"one";if("tab"!==n&&"one"!==n&&"mixed"!==n)throw Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}(r),u=r.bulletCurrent||function(e){let n=e.options.bullet||"*";if("*"!==n&&"+"!==n&&"-"!==n)throw Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}(r);n&&"list"===n.type&&n.ordered&&(u=("number"==typeof n.start&&n.start>-1?n.start:1)+(!1===r.options.incrementListMarker?0:n.children.indexOf(e))+u);let d=u.length+1;("tab"===o||"mixed"===o&&(n&&"list"===n.type&&n.spread||e.spread))&&(d=4*Math.ceil(d/4));let f=r.createTracker(a);f.move(u+" ".repeat(d-u.length)),f.shift(d);let p=r.enter("listItem"),g=r.indentLines(r.containerFlow(e,f.current()),function(e,n,r){return n?(r?"":" ".repeat(d))+e:(r?u:u+" ".repeat(d-u.length))+e});return p(),g}(e,n,r,{...a,...f.current()});return u&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+d})),p}}};function exitCheck(e){let n=this.stack[this.stack.length-2];n.checked="taskListCheckValueChecked"===e.type}function remarkGfm(e={}){let n=this.data();function add(e,r){let a=n[e]?n[e]:n[e]=[];a.push(r)}add("micromarkExtensions",(0,a.W)([v,{document:{91:{tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{91:{tokenize:tokenizeGfmFootnoteCall},93:{add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}},function(e){let n=(e||{}).singleTilde,r={tokenize:function(e,r,a){let o=this.previous,u=this.events,d=0;return function(f){return 126===o&&"characterEscape"!==u[u.length-1][1].type?a(f):(e.enter("strikethroughSequenceTemporary"),function more(u){let f=(0,C.r)(o);if(126===u)return d>1?a(u):(e.consume(u),d++,more);if(d<2&&!n)return a(u);let p=e.exit("strikethroughSequenceTemporary"),g=(0,C.r)(u);return p._open=!g||2===g&&!!f,p._close=!f||2===f&&!!g,r(u)}(f))}},resolveAll:function(e,n){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let a=r;for(;a--;)if("exit"===e[a][0]&&"strikethroughSequenceTemporary"===e[a][1].type&&e[a][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[a][1].end.offset-e[a][1].start.offset){e[r][1].type="strikethroughSequence",e[a][1].type="strikethroughSequence";let o={type:"strikethrough",start:Object.assign({},e[a][1].start),end:Object.assign({},e[r][1].end)},u={type:"strikethroughText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[r][1].start)},d=[["enter",o,n],["enter",e[a][1],n],["exit",e[a][1],n],["enter",u,n]],f=n.parser.constructs.insideSpan.null;f&&(0,S.d)(d,d.length,0,(0,A.C)(f,e.slice(a+1,r),n)),(0,S.d)(d,d.length,0,[["exit",u,n],["enter",e[r][1],n],["exit",e[r][1],n],["exit",o,n]]),(0,S.d)(e,a-1,r-a+3,d),r=a+d.length-2;break}}for(r=-1;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==n&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}(e),N,O])),add("fromMarkdownExtensions",[L,{enter:{gfmFootnoteDefinition:enterFootnoteDefinition,gfmFootnoteDefinitionLabelString:enterFootnoteDefinitionLabelString,gfmFootnoteCall:enterFootnoteCall,gfmFootnoteCallString:enterFootnoteCallString},exit:{gfmFootnoteDefinition:exitFootnoteDefinition,gfmFootnoteDefinitionLabelString:exitFootnoteDefinitionLabelString,gfmFootnoteCall:exitFootnoteCall,gfmFootnoteCallString:exitFootnoteCallString}},z,U,H]),add("toMarkdownExtensions",{extensions:[F,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition,footnoteReference}},j,function(e){let n=e||{},r=n.tableCellPadding,a=n.tablePipeAlign,o=n.stringLength,u=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,n,r,a){return serializeData(function(e,n,r){let a=e.children,o=-1,u=[],d=n.enter("table");for(;++o<a.length;)u[o]=handleTableRowAsData(a[o],n,r);return d(),u}(e,r,a),e.align)},tableRow:function(e,n,r,a){let o=handleTableRowAsData(e,r,a),u=serializeData([o]);return u.slice(0,u.indexOf("\n"))},tableCell:handleTableCell,inlineCode:function(e,n,r){let a=inlineCode(e,n,r);return r.stack.includes("tableCell")&&(a=a.replace(/\|/g,"\\$&")),a}}};function handleTableCell(e,n,r,a){let o=r.enter("tableCell"),d=r.enter("phrasing"),f=containerPhrasing(e,r,{...a,before:u,after:u});return d(),o(),f}function serializeData(e,n){return function(e,n={}){let r=(n.align||[]).concat(),a=n.stringLength||defaultStringLength,o=[],u=[],d=[],f=[],p=0,g=-1;for(;++g<e.length;){let r=[],o=[],m=-1;for(e[g].length>p&&(p=e[g].length);++m<e[g].length;){var h;let u=null==(h=e[g][m])?"":String(h);if(!1!==n.alignDelimiters){let e=a(u);o[m]=e,(void 0===f[m]||e>f[m])&&(f[m]=e)}r.push(u)}u[g]=r,d[g]=o}let m=-1;if("object"==typeof r&&"length"in r)for(;++m<p;)o[m]=toAlignment(r[m]);else{let e=toAlignment(r);for(;++m<p;)o[m]=e}m=-1;let b=[],y=[];for(;++m<p;){let e=o[m],r="",a="";99===e?(r=":",a=":"):108===e?r=":":114===e&&(a=":");let u=!1===n.alignDelimiters?1:Math.max(1,f[m]-r.length-a.length),d=r+"-".repeat(u)+a;!1!==n.alignDelimiters&&((u=r.length+u+a.length)>f[m]&&(f[m]=u),y[m]=u),b[m]=d}u.splice(1,0,b),d.splice(1,0,y),g=-1;let v=[];for(;++g<u.length;){let e=u[g],r=d[g];m=-1;let a=[];for(;++m<p;){let u=e[m]||"",d="",g="";if(!1!==n.alignDelimiters){let e=f[m]-(r[m]||0),n=o[m];114===n?d=" ".repeat(e):99===n?e%2?(d=" ".repeat(e/2+.5),g=" ".repeat(e/2-.5)):g=d=" ".repeat(e/2):g=" ".repeat(e)}!1===n.delimiterStart||m||a.push("|"),!1!==n.padding&&!(!1===n.alignDelimiters&&""===u)&&(!1!==n.delimiterStart||m)&&a.push(" "),!1!==n.alignDelimiters&&a.push(d),a.push(u),!1!==n.alignDelimiters&&a.push(g),!1!==n.padding&&a.push(" "),(!1!==n.delimiterEnd||m!==p-1)&&a.push("|")}v.push(!1===n.delimiterEnd?a.join("").replace(/ +$/,""):a.join(""))}return v.join("\n")}(e,{align:n,alignDelimiters:a,padding:r,stringLength:o})}function handleTableRowAsData(e,n,r){let a=e.children,o=-1,u=[],d=n.enter("tableRow");for(;++o<a.length;)u[o]=handleTableCell(a[o],e,n,r);return d(),u}}(e),$]})}},83618:function(e,n,r){"use strict";function __read(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var a,o,u=r.call(e),d=[];try{for(;(void 0===n||n-- >0)&&!(a=u.next()).done;)d.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}return d}function __spreadArray(e,n,r){if(r||2==arguments.length)for(var a,o=0,u=n.length;o<u;o++)!a&&o in n||(a||(a=Array.prototype.slice.call(n,0,o)),a[o]=n[o]);return e.concat(a||Array.prototype.slice.call(n))}r.d(n,{CR:function(){return __read},ev:function(){return __spreadArray}}),"function"==typeof SuppressedError&&SuppressedError},38168:function(e,n,r){"use strict";r.d(n,{O:function(){return convert}});let convert=function(e){if(null==e)return ok;if("string"==typeof e)return castFactory(function(n){return n&&n.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let n=[],r=-1;for(;++r<e.length;)n[r]=convert(e[r]);return castFactory(function(...e){let r=-1;for(;++r<n.length;)if(n[r].call(this,...e))return!0;return!1})}(e):castFactory(function(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0});if("function"==typeof e)return castFactory(e);throw Error("Expected function, string, or object as test")};function castFactory(e){return function(n,...r){return!!(n&&"object"==typeof n&&"type"in n&&e.call(this,n,...r))}}function ok(){return!0}},23182:function(e,n,r){"use strict";r.d(n,{S4:function(){return visitParents}});var a=r(38168);let visitParents=function(e,n,r,o){"function"==typeof n&&"function"!=typeof r&&(o=r,r=n,n=null);let u=(0,a.O)(n),d=o?-1:1;(function factory(e,a,f){let p=e&&"object"==typeof e?e:{};if("string"==typeof p.type){let n="string"==typeof p.tagName?p.tagName:"string"==typeof p.name?p.name:void 0;Object.defineProperty(visit,"name",{value:"node ("+e.type+(n?"<"+n+">":"")+")"})}return visit;function visit(){var p;let g,h,m,b=[];if((!n||u(e,a,f[f.length-1]||null))&&!1===(b=Array.isArray(p=r(e,f))?p:"number"==typeof p?[!0,p]:[p])[0])return b;if(e.children&&"skip"!==b[0])for(h=(o?e.children.length:-1)+d,m=f.concat(e);h>-1&&h<e.children.length;){if(!1===(g=factory(e.children[h],h,m)())[0])return g;h="number"==typeof g[1]?g[1]:h+d}return b}})(e,void 0,[])()}},98936:function(e,n,r){"use strict";r.d(n,{Vn:function(){return visit}});var a=r(23182);let visit=function(e,n,r,o){"function"==typeof n&&"function"!=typeof r&&(o=r,r=n,n=null),(0,a.S4)(e,n,function(e,n){let a=n[n.length-1];return r(e,a?a.children.indexOf(e):null,a)},o)}}}]);