md/assets/index-DqL3MUN2.js

1064 lines
5.3 MiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-P3YPLUS5-Cvu0GWn2.js","assets/graph-F-lRYGiw.js","assets/_baseUniq-B1Flybha.js","assets/layout-B3T3dhdM.js","assets/min-CjiScnR7.js","assets/json-Dvvisu1f.js","assets/c4Diagram-THADGKDP-z2s09Z8i.js","assets/chunk-XVOYOM2C-D2CgWdoi.js","assets/flowDiagram-JSIZSE4D-31S8DQB0.js","assets/chunk-DUMQOTYW-BNJNkKaQ.js","assets/chunk-YWFND7JV-CHuoUZPA.js","assets/channel-q1VHAzml.js","assets/erDiagram-62CBQV5Y-CTiNkziK.js","assets/gitGraphDiagram-UL5UFKDR-DLUMmjYA.js","assets/chunk-OQCM5LHU-hYeIc3H-.js","assets/chunk-2RYQ3QTB-DZRNnxEy.js","assets/gitGraph-YCYPL57B-DANCyTsA.js","assets/ganttDiagram-ASEIQ4P5-DWYsQsHE.js","assets/linear-CK0OKaTM.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-7APDZ6AT-C4BMMmsE.js","assets/pieDiagram-OZX6XH5M-DcX0GyZf.js","assets/arc-B1CpNSko.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-VG34DGKC-CjDMvYwc.js","assets/xychartDiagram-LESROZAQ-wW-Rjpwg.js","assets/requirementDiagram-FPZB6IJI-Ca-LbwOn.js","assets/sequenceDiagram-PQT5PN7B-DcJjkkJr.js","assets/classDiagram-4BHYIK4I-BdgJT4jb.js","assets/chunk-BAVOGKFW-jpI8a8Z5.js","assets/classDiagram-v2-FI7KE7WJ-DaZ2pEyK.js","assets/chunk-UGV5ZQQN-DsfIFBqE.js","assets/stateDiagram-TQSDS2D4-D-_rRabQ.js","assets/chunk-2JBRQKJ5-ClymeFnE.js","assets/stateDiagram-v2-J5TZWJW5-DIUSmo9x.js","assets/journeyDiagram-G5LC7W2K-Df6aXyG-.js","assets/timeline-definition-KYQAIZUX-BHsMXyod.js","assets/mindmap-definition-FCEC46F3-VnOEc6eV.js","assets/cytoscape.esm-BPL5M0Vw.js","assets/sankeyDiagram-KMMQDL5K-ChG3AGTx.js","assets/diagram-QS5GVLUX-BXLulXfZ.js","assets/blockDiagram-EN3ZKWFM-ODRjdJyk.js","assets/architectureDiagram-V6B76FHG-Bw1CZbuL.js"])))=>i.map(i=>d[i]);
var lw=Object.defineProperty;var Z2=Ra=>{throw TypeError(Ra)};var uw=(Ra,qa,ed)=>qa in Ra?lw(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:ed}):Ra[qa]=ed;var Ym=(Ra,qa,ed)=>uw(Ra,typeof qa!="symbol"?qa+"":qa,ed),cw=(Ra,qa,ed)=>qa.has(Ra)||Z2("Cannot "+ed);var eS=(Ra,qa,ed)=>qa.has(Ra)?Z2("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,ed);var xE=(Ra,qa,ed)=>(cw(Ra,qa,"access private method"),ed);(function(){const qa=document.createElement("link").relList;if(qa&&qa.supports&&qa.supports("modulepreload"))return;for(const rd of document.querySelectorAll('link[rel="modulepreload"]'))td(rd);new MutationObserver(rd=>{for(const sd of rd)if(sd.type==="childList")for(const od of sd.addedNodes)od.tagName==="LINK"&&od.rel==="modulepreload"&&td(od)}).observe(document,{childList:!0,subtree:!0});function ed(rd){const sd={};return rd.integrity&&(sd.integrity=rd.integrity),rd.referrerPolicy&&(sd.referrerPolicy=rd.referrerPolicy),rd.crossOrigin==="use-credentials"?sd.credentials="include":rd.crossOrigin==="anonymous"?sd.credentials="omit":sd.credentials="same-origin",sd}function td(rd){if(rd.ep)return;rd.ep=!0;const sd=ed(rd);fetch(rd.href,sd)}})();const global$1=globalThis||void 0||self;/**
* @vue/shared v3.5.6
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function makeMap(Ra){const qa=Object.create(null);for(const ed of Ra.split(","))qa[ed]=1;return ed=>ed in qa}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&(Ra.charCodeAt(2)>122||Ra.charCodeAt(2)<97),isModelListener=Ra=>Ra.startsWith("onUpdate:"),extend$3=Object.assign,remove$2=(Ra,qa)=>{const ed=Ra.indexOf(qa);ed>-1&&Ra.splice(ed,1)},hasOwnProperty$i=Object.prototype.hasOwnProperty,hasOwn$2=(Ra,qa)=>hasOwnProperty$i.call(Ra,qa),isArray$2=Array.isArray,isMap$1=Ra=>toTypeString(Ra)==="[object Map]",isSet$1=Ra=>toTypeString(Ra)==="[object Set]",isDate$1=Ra=>toTypeString(Ra)==="[object Date]",isFunction$4=Ra=>typeof Ra=="function",isString$3=Ra=>typeof Ra=="string",isSymbol$1=Ra=>typeof Ra=="symbol",isObject$5=Ra=>Ra!==null&&typeof Ra=="object",isPromise=Ra=>(isObject$5(Ra)||isFunction$4(Ra))&&isFunction$4(Ra.then)&&isFunction$4(Ra.catch),objectToString$1=Object.prototype.toString,toTypeString=Ra=>objectToString$1.call(Ra),toRawType=Ra=>toTypeString(Ra).slice(8,-1),isPlainObject$3=Ra=>toTypeString(Ra)==="[object Object]",isIntegerKey=Ra=>isString$3(Ra)&&Ra!=="NaN"&&Ra[0]!=="-"&&""+parseInt(Ra,10)===Ra,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=Ra=>{const qa=Object.create(null);return ed=>qa[ed]||(qa[ed]=Ra(ed))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(Ra=>Ra.replace(camelizeRE,(qa,ed)=>ed?ed.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(Ra=>Ra.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(Ra=>Ra.charAt(0).toUpperCase()+Ra.slice(1)),toHandlerKey=cacheStringFunction(Ra=>Ra?`on${capitalize$1(Ra)}`:""),hasChanged=(Ra,qa)=>!Object.is(Ra,qa),invokeArrayFns=(Ra,...qa)=>{for(let ed=0;ed<Ra.length;ed++)Ra[ed](...qa)},def$2=(Ra,qa,ed,td=!1)=>{Object.defineProperty(Ra,qa,{configurable:!0,enumerable:!1,writable:td,value:ed})},looseToNumber=Ra=>{const qa=parseFloat(Ra);return isNaN(qa)?Ra:qa},toNumber$3=Ra=>{const qa=isString$3(Ra)?Number(Ra):NaN;return isNaN(qa)?Ra:qa};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global$1<"u"?global$1:{});function normalizeStyle(Ra){if(isArray$2(Ra)){const qa={};for(let ed=0;ed<Ra.length;ed++){const td=Ra[ed],rd=isString$3(td)?parseStringStyle(td):normalizeStyle(td);if(rd)for(const sd in rd)qa[sd]=rd[sd]}return qa}else if(isString$3(Ra)||isObject$5(Ra))return Ra}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(Ra){const qa={};return Ra.replace(styleCommentRE,"").split(listDelimiterRE).forEach(ed=>{if(ed){const td=ed.split(propertyDelimiterRE);td.length>1&&(qa[td[0].trim()]=td[1].trim())}}),qa}function normalizeClass(Ra){let qa="";if(isString$3(Ra))qa=Ra;else if(isArray$2(Ra))for(let ed=0;ed<Ra.length;ed++){const td=normalizeClass(Ra[ed]);td&&(qa+=td+" ")}else if(isObject$5(Ra))for(const ed in Ra)Ra[ed]&&(qa+=ed+" ");return qa.trim()}function normalizeProps(Ra){if(!Ra)return null;let{class:qa,style:ed}=Ra;return qa&&!isString$3(qa)&&(Ra.class=normalizeClass(qa)),ed&&(Ra.style=normalizeStyle(ed)),Ra}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(Ra){return!!Ra||Ra===""}function looseCompareArrays(Ra,qa){if(Ra.length!==qa.length)return!1;let ed=!0;for(let td=0;ed&&td<Ra.length;td++)ed=looseEqual(Ra[td],qa[td]);return ed}function looseEqual(Ra,qa){if(Ra===qa)return!0;let ed=isDate$1(Ra),td=isDate$1(qa);if(ed||td)return ed&&td?Ra.getTime()===qa.getTime():!1;if(ed=isSymbol$1(Ra),td=isSymbol$1(qa),ed||td)return Ra===qa;if(ed=isArray$2(Ra),td=isArray$2(qa),ed||td)return ed&&td?looseCompareArrays(Ra,qa):!1;if(ed=isObject$5(Ra),td=isObject$5(qa),ed||td){if(!ed||!td)return!1;const rd=Object.keys(Ra).length,sd=
* @vue/reactivity v3.5.6
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let activeEffectScope;class EffectScope{constructor(qa=!1){this.detached=qa,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!qa&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let qa,ed;if(this.scopes)for(qa=0,ed=this.scopes.length;qa<ed;qa++)this.scopes[qa].pause();for(qa=0,ed=this.effects.length;qa<ed;qa++)this.effects[qa].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let qa,ed;if(this.scopes)for(qa=0,ed=this.scopes.length;qa<ed;qa++)this.scopes[qa].resume();for(qa=0,ed=this.effects.length;qa<ed;qa++)this.effects[qa].resume()}}run(qa){if(this._active){const ed=activeEffectScope;try{return activeEffectScope=this,qa()}finally{activeEffectScope=ed}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(qa){if(this._active){let ed,td;for(ed=0,td=this.effects.length;ed<td;ed++)this.effects[ed].stop();for(ed=0,td=this.cleanups.length;ed<td;ed++)this.cleanups[ed]();if(this.scopes)for(ed=0,td=this.scopes.length;ed<td;ed++)this.scopes[ed].stop(!0);if(!this.detached&&this.parent&&!qa){const rd=this.parent.scopes.pop();rd&&rd!==this&&(this.parent.scopes[this.index]=rd,rd.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(Ra){return new EffectScope(Ra)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(Ra,qa=!1){activeEffectScope&&activeEffectScope.cleanups.push(Ra)}let activeSub;const pausedQueueEffects=new WeakSet;class ReactiveEffect{constructor(qa){this.fn=qa,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&activeEffectScope.active&&activeEffectScope.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const qa=activeSub,ed=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=qa,shouldTrack=ed,this.flags&=-3}}stop(){if(this.flags&1){for(let qa=this.deps;qa;qa=qa.nextDep)removeSub(qa);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}}let batchDepth=0,batchedSub;function batch(Ra){Ra.flags|=8,Ra.next=batchedSub,batchedSub=Ra}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;let Ra;for(;batchedSub;){let qa=batchedSub;for(batchedSub=void 0;qa;){const ed=qa.next;if(qa.next=void 0,qa.flags&=-9,qa.flags&1)try{qa.trigger()}catch(td){Ra||(Ra=td)}qa=ed}}if(Ra)throw Ra}function prepareDeps(Ra){for(let qa=Ra.deps;qa;qa=qa.nextDep)qa.version=-1,qa.prevActiveLink=qa.dep.activeLink,qa.dep.activeLink=qa}function cleanupDeps(Ra){let qa,ed=Ra.depsTail,td=ed;for(;td;){const rd=td.prevDep;td.version===-1?(td===ed&&(ed=rd),removeSub(td),removeDep(td)):qa=td,td.dep.activeLink=td.prevActiveLink,td.prevActiveLink=void 0,td=rd}Ra.deps=qa,Ra.depsTail=ed}function isDirty(Ra){for(let qa=Ra.deps;qa;qa=qa.nextDep)if(qa.dep.version!==qa.version||qa.dep.computed&&(refreshComputed(qa.dep.computed)||qa.dep.version!==qa.version))return!0;return!!Ra._dirty}function refreshComputed(Ra){if(Ra.flags&4&&!(Ra.flags&16)||(Ra.flags&=-17,Ra.globalVersion===globalVersion))return;Ra.globalVersion=globalVersion;const qa=Ra.dep;if(Ra.flags|=2,qa.version>0&&!Ra.isSSR&&Ra.deps&&!isDirty(Ra)){Ra.flags&=-3;return}const ed=activeSub,td=shouldTrack;activeSub=Ra,shouldTrack=!0;try{prepareDeps(Ra);const rd=Ra.fn(Ra._value);(qa.version===0||hasChanged(rd,Ra._value))&&(Ra._value=rd,qa.version++)}catch(rd){throw qa.version++,rd}finally{activeSub=ed,shouldTrack=td,cleanupDeps(Ra),Ra.
* @vue/runtime-core v3.5.6
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const stack=[];let isWarning=!1;function warn$1(Ra,...qa){if(isWarning)return;isWarning=!0,pauseTracking();const ed=stack.length?stack[stack.length-1].component:null,td=ed&&ed.appContext.config.warnHandler,rd=getComponentTrace();if(td)callWithErrorHandling(td,ed,11,[Ra+qa.map(sd=>{var od,ld;return(ld=(od=sd.toString)==null?void 0:od.call(sd))!=null?ld:JSON.stringify(sd)}).join(""),ed&&ed.proxy,rd.map(({vnode:sd})=>`at <${formatComponentName(ed,sd.type)}>`).join(`
`),rd]);else{const sd=[`[Vue warn]: ${Ra}`,...qa];rd.length&&sd.push(`
`,...formatTrace(rd)),console.warn(...sd)}resetTracking(),isWarning=!1}function getComponentTrace(){let Ra=stack[stack.length-1];if(!Ra)return[];const qa=[];for(;Ra;){const ed=qa[0];ed&&ed.vnode===Ra?ed.recurseCount++:qa.push({vnode:Ra,recurseCount:0});const td=Ra.component&&Ra.component.parent;Ra=td&&td.vnode}return qa}function formatTrace(Ra){const qa=[];return Ra.forEach((ed,td)=>{qa.push(...td===0?[]:[`
`],...formatTraceEntry(ed))}),qa}function formatTraceEntry({vnode:Ra,recurseCount:qa}){const ed=qa>0?`... (${qa} recursive calls)`:"",td=Ra.component?Ra.component.parent==null:!1,rd=` at <${formatComponentName(Ra.component,Ra.type,td)}`,sd=">"+ed;return Ra.props?[rd,...formatProps(Ra.props),sd]:[rd+sd]}function formatProps(Ra){const qa=[],ed=Object.keys(Ra);return ed.slice(0,3).forEach(td=>{qa.push(...formatProp(td,Ra[td]))}),ed.length>3&&qa.push(" ..."),qa}function formatProp(Ra,qa,ed){return isString$3(qa)?(qa=JSON.stringify(qa),ed?qa:[`${Ra}=${qa}`]):typeof qa=="number"||typeof qa=="boolean"||qa==null?ed?qa:[`${Ra}=${qa}`]:isRef(qa)?(qa=formatProp(Ra,toRaw(qa.value),!0),ed?qa:[`${Ra}=Ref<`,qa,">"]):isFunction$4(qa)?[`${Ra}=fn${qa.name?`<${qa.name}>`:""}`]:(qa=toRaw(qa),ed?qa:[`${Ra}=`,qa])}function callWithErrorHandling(Ra,qa,ed,td){try{return td?Ra(...td):Ra()}catch(rd){handleError$1(rd,qa,ed)}}function callWithAsyncErrorHandling(Ra,qa,ed,td){if(isFunction$4(Ra)){const rd=callWithErrorHandling(Ra,qa,ed,td);return rd&&isPromise(rd)&&rd.catch(sd=>{handleError$1(sd,qa,ed)}),rd}if(isArray$2(Ra)){const rd=[];for(let sd=0;sd<Ra.length;sd++)rd.push(callWithAsyncErrorHandling(Ra[sd],qa,ed,td));return rd}}function handleError$1(Ra,qa,ed,td=!0){const rd=qa?qa.vnode:null,{errorHandler:sd,throwUnhandledErrorInProduction:od}=qa&&qa.appContext.config||EMPTY_OBJ;if(qa){let ld=qa.parent;const ud=qa.proxy,cd=`https://vuejs.org/error-reference/#runtime-${ed}`;for(;ld;){const dd=ld.ec;if(dd){for(let _d=0;_d<dd.length;_d++)if(dd[_d](Ra,ud,cd)===!1)return}ld=ld.parent}if(sd){pauseTracking(),callWithErrorHandling(sd,null,10,[Ra,ud,cd]),resetTracking();return}}logError(Ra,ed,rd,td,od)}function logError(Ra,qa,ed,td=!0,rd=!1){if(rd)throw Ra;console.error(Ra)}let isFlushing=!1,isFlushPending=!1;const queue$2=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$1(Ra){const qa=currentFlushPromise||resolvedPromise;return Ra?qa.then(this?Ra.bind(this):Ra):qa}function findInsertionIndex(Ra){let qa=isFlushing?flushIndex+1:0,ed=queue$2.length;for(;qa<ed;){const td=qa+ed>>>1,rd=queue$2[td],sd=getId(rd);sd<Ra||sd===Ra&&rd.flags&2?qa=td+1:ed=td}return qa}function queueJob(Ra){if(!(Ra.flags&1)){const qa=getId(Ra),ed=queue$2[queue$2.length-1];!ed||!(Ra.flags&2)&&qa>=getId(ed)?queue$2.push(Ra):queue$2.splice(findInsertionIndex(qa),0,Ra),Ra.flags|=1,queueFlush()}}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(Ra){isArray$2(Ra)?pendingPostFlushCbs.push(...Ra):activePostFlushCbs&&Ra.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,Ra):Ra.flags&1||(pendingPostFlushCbs.push(Ra),Ra.flags|=1),queueFlush()}function flushPreFlushCbs(Ra,qa,ed=isFlushing?flushIndex+1:0){for(;ed<queue$2.length;ed++){const td=queue$2[ed];if(td&&td.flags&2){if(Ra&&td.id!==Ra.uid)continue;queue$2.splice(ed,1),ed--,td.flags&4&&(td.flags&=-2),td(),td.flags&=-2}}}function flushPostFlushCbs(Ra){if(pendingPostFlushCbs.length){const qa=[...new Set(pendingPostFlushCbs)].sort((ed,td)=>getId(ed)-getId(td));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...qa);return}for(activePostFlushCbs=qa,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const ed=activePostFlushCbs[postFlushIndex];ed.flags&4&&(ed.flags&=-2),ed.flags&8||ed(),ed.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId=Ra=>Ra.id==null?Ra.flags&2?-1:1/0:Ra.id;function flushJobs(Ra){isFlushPending=!1,isFlushing=!0;try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const qa=queue$2[flushIndex];qa&&!(qa.flags&8)&&(qa.flags&4&&(qa.flags&=-2),callWithErrorHandling(qa,qa.i,qa.i?15:14),qa.flags&=-2)}}finally{for(;flushIndex<queue$2.length;flushIndex++){const qa=queue$2[flushIndex];qa&&(qa.flags&=-2)}flushIndex=0,queue$2.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&fl
* @vue/runtime-dom v3.5.6
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let policy;const tt$5=typeof window<"u"&&window.trustedTypes;if(tt$5)try{policy=tt$5.createPolicy("vue",{createHTML:Ra=>Ra})}catch{}const unsafeToTrustedHTML=policy?Ra=>policy.createHTML(Ra):Ra=>Ra,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(Ra,qa,ed)=>{qa.insertBefore(Ra,ed||null)},remove:Ra=>{const qa=Ra.parentNode;qa&&qa.removeChild(Ra)},createElement:(Ra,qa,ed,td)=>{const rd=qa==="svg"?doc.createElementNS(svgNS,Ra):qa==="mathml"?doc.createElementNS(mathmlNS,Ra):ed?doc.createElement(Ra,{is:ed}):doc.createElement(Ra);return Ra==="select"&&td&&td.multiple!=null&&rd.setAttribute("multiple",td.multiple),rd},createText:Ra=>doc.createTextNode(Ra),createComment:Ra=>doc.createComment(Ra),setText:(Ra,qa)=>{Ra.nodeValue=qa},setElementText:(Ra,qa)=>{Ra.textContent=qa},parentNode:Ra=>Ra.parentNode,nextSibling:Ra=>Ra.nextSibling,querySelector:Ra=>doc.querySelector(Ra),setScopeId(Ra,qa){Ra.setAttribute(qa,"")},insertStaticContent(Ra,qa,ed,td,rd,sd){const od=ed?ed.previousSibling:qa.lastChild;if(rd&&(rd===sd||rd.nextSibling))for(;qa.insertBefore(rd.cloneNode(!0),ed),!(rd===sd||!(rd=rd.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(td==="svg"?`<svg>${Ra}</svg>`:td==="mathml"?`<math>${Ra}</math>`:Ra);const ld=templateContainer.content;if(td==="svg"||td==="mathml"){const ud=ld.firstChild;for(;ud.firstChild;)ld.appendChild(ud.firstChild);ld.removeChild(ud)}qa.insertBefore(ld,ed)}return[od?od.nextSibling:qa.firstChild,ed?ed.previousSibling:qa.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$3({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=Ra=>(Ra.displayName="Transition",Ra.props=TransitionPropsValidators,Ra),Transition$1=decorate$1((Ra,{slots:qa})=>h$1(BaseTransition,resolveTransitionProps(Ra),qa)),callHook=(Ra,qa=[])=>{isArray$2(Ra)?Ra.forEach(ed=>ed(...qa)):Ra&&Ra(...qa)},hasExplicitCallback=Ra=>Ra?isArray$2(Ra)?Ra.some(qa=>qa.length>1):Ra.length>1:!1;function resolveTransitionProps(Ra){const qa={};for(const df in Ra)df in DOMTransitionPropsValidators||(qa[df]=Ra[df]);if(Ra.css===!1)return qa;const{name:ed="v",type:td,duration:rd,enterFromClass:sd=`${ed}-enter-from`,enterActiveClass:od=`${ed}-enter-active`,enterToClass:ld=`${ed}-enter-to`,appearFromClass:ud=sd,appearActiveClass:cd=od,appearToClass:dd=ld,leaveFromClass:_d=`${ed}-leave-from`,leaveActiveClass:Ed=`${ed}-leave-active`,leaveToClass:Ad=`${ed}-leave-to`}=Ra,Td=normalizeDuration(rd),Id=Td&&Td[0],Bd=Td&&Td[1],{onBeforeEnter:Rd,onEnter:Od,onEnterCancelled:Md,onLeave:Ld,onLeaveCancelled:Fd,onBeforeAppear:jd=Rd,onAppear:Vd=Od,onAppearCancelled:Qd=Md}=qa,qd=(df,mf,bf)=>{removeTransitionClass(df,mf?dd:ld),removeTransitionClass(df,mf?cd:od),bf&&bf()},Kd=(df,mf)=>{df._isLeaving=!1,removeTransitionClass(df,_d),removeTransitionClass(df,Ad),removeTransitionClass(df,Ed),mf&&mf()},Xd=df=>(mf,bf)=>{const pf=df?Vd:Od,_f=()=>qd(mf,df,bf);callHook(pf,[mf,_f]),nextFrame(()=>{removeTransitionClass(mf,df?ud:sd),addTransitionClass(mf,df?dd:ld),hasExplicitCallback(pf)||whenTransitionEnds(mf,td,Id,_f)})};return extend$3(qa,{onBeforeEnter(df){callHook(Rd,[df]),addTransitionClass(df,sd),addTransitionClass(df,od)},onBeforeAppear(df){callHook(jd,[df]),addTransitionClass(df,ud),addTransitionClass(df,cd)},onEnter:Xd(!1),onAppear:Xd(!0),onLeave(df,mf){df._isLeaving=!0;const bf=()=>Kd(df,mf);addTransitionClass(df,_d),addTransitionClass(df,Ed),forceReflow(),nextFrame(()=>{df._isLeaving&&(removeTransitionClass(df,_d),addTransitionClass(df,Ad),hasExplicitCallback(Ld)||whenTransitionEnds(df,td,Bd,bf))}),callHook(Ld,[df,bf])},onEnterCancelled
(?:
(?:`+td+":){7}(?:"+td+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+td+":){6}(?:"+ed+"|:"+td+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+td+":){5}(?::"+ed+"|(?::"+td+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+td+":){4}(?:(?::"+td+"){0,1}:"+ed+"|(?::"+td+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+td+":){3}(?:(?::"+td+"){0,2}:"+ed+"|(?::"+td+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+td+":){2}(?:(?::"+td+"){0,3}:"+ed+"|(?::"+td+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+td+":){1}(?:(?::"+td+"){0,4}:"+ed+"|(?::"+td+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+td+"){0,5}:"+ed+"|(?::"+td+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),sd=new RegExp("(?:^"+ed+"$)|(?:^"+rd+"$)"),od=new RegExp("^"+ed+"$"),ld=new RegExp("^"+rd+"$"),ud=function(Ld){return Ld&&Ld.exact?sd:new RegExp("(?:"+qa(Ld)+ed+qa(Ld)+")|(?:"+qa(Ld)+rd+qa(Ld)+")","g")};ud.v4=function(Md){return Md&&Md.exact?od:new RegExp(""+qa(Md)+ed+qa(Md),"g")},ud.v6=function(Md){return Md&&Md.exact?ld:new RegExp(""+qa(Md)+rd+qa(Md),"g")};var cd="(?:(?:[a-z]+:)?//)",dd="(?:\\S+(?::\\S*)?@)?",_d=ud.v4().source,Ed=ud.v6().source,Ad="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",Td="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",Id="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",Bd="(?::\\d{2,5})?",Rd='(?:[/?#][^\\s"]*)?',Od="(?:"+cd+"|www\\.)"+dd+"(?:localhost|"+_d+"|"+Ed+"|"+Ad+Td+Id+")"+Bd+Rd;return urlReg=new RegExp("(?:^"+Od+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$1={integer:function(qa){return types$1.number(qa)&&parseInt(qa,10)===qa},float:function(qa){return types$1.number(qa)&&!types$1.integer(qa)},array:function(qa){return Array.isArray(qa)},regexp:function(qa){if(qa instanceof RegExp)return!0;try{return!!new RegExp(qa)}catch{return!1}},date:function(qa){return typeof qa.getTime=="function"&&typeof qa.getMonth=="function"&&typeof qa.getYear=="function"&&!isNaN(qa.getTime())},number:function(qa){return isNaN(qa)?!1:typeof qa=="number"},object:function(qa){return typeof qa=="object"&&!types$1.array(qa)},method:function(qa){return typeof qa=="function"},email:function(qa){return typeof qa=="string"&&qa.length<=320&&!!qa.match(pattern$2.email)},url:function(qa){return typeof qa=="string"&&qa.length<=2048&&!!qa.match(getUrlRegex())},hex:function(qa){return typeof qa=="string"&&!!qa.match(pattern$2.hex)}},type$1$1=function(qa,ed,td,rd,sd){if(qa.required&&ed===void 0){required$1(qa,ed,td,rd,sd);return}var od=["integer","float","array","regexp","object","method","email","number","date","url","hex"],ld=qa.type;od.indexOf(ld)>-1?types$1[ld](ed)||rd.push(format$2(sd.messages.types[ld],qa.fullField,qa.type)):ld&&typeof ed!==qa.type&&rd.push(format$2(sd.messages.types[ld],qa.fullField,qa.type))},range$2=function(qa,ed,td,rd,sd){var od=typeof qa.len=="number",ld=typeof qa.min=="number",ud=typeof qa.max=="number",cd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dd=ed,_d=null,Ed=typeof ed=="number",Ad=typeof ed=="string",Td=Array.isArray(ed);if(Ed?_d="number":Ad?_d="string":Td&&(_d="array"),!_d)return!1;Td&&(dd=ed.length),Ad&&(dd=ed.replace(cd,"_").length),od?dd!==qa.len&&rd.push(format$2(sd.messages[_d].len,qa.fullField,qa.len)):ld&&!ud&&dd<qa.min?rd.push(format$2(sd.messages[_d].min,qa.fullField,qa.min)):ud&&!ld&&dd>qa.max?rd.push(format$2(sd.messages[_d].max,qa.fullField,qa.max)):ld&&ud&&(dd<qa.min||dd>qa.max)&&rd.push(format$2(sd.messages[_d].range,qa.fullField,qa.min,qa.max))},ENUM$1="enum",enumerable$1=function(qa,ed,td,rd,sd){qa[ENUM$1]=Array.isArray(qa[ENUM$1])?qa[ENUM$1]:[],qa[ENUM$1].indexOf(ed)===-1&&rd.push(format$2(sd.messages[ENUM$1],qa.fullField,qa[ENUM$1].join(", ")))},pattern$1=function(qa,ed,td,rd,sd){if(qa.pattern){if(qa.pattern instanceof RegExp)qa.pattern.lastIndex=0,qa.pattern.test(ed)||rd.push(format$2(sd.messages.pattern.mismatch,qa.fullField,ed,qa.pattern));else if(typeof qa.pattern=="string"){var od=new RegExp(qa.pattern);od.test(ed)||rd.push(format$2(sd.messages.pattern.mismatch,qa.fullField,ed,qa.pattern))}}},rules={required:required$1,whitespace:whitespace$2,type:type$1$1,range:range$2,enum:enumerable$1,pattern:pattern$1},string=function(qa,ed,td,rd,sd){var od=[],ld=qa.required||!qa.required&&rd.hasOwnProperty(qa.field);if(ld){if(isEmptyValue(ed,"string")&&!qa.required)return td();rules.required(qa,ed,rd,od,sd,"string"),isEmptyValue(ed,"string")||(rules.type(qa,ed,rd,od,sd),rules.range(qa,ed,rd,od,sd),rules.pattern(qa,ed,rd,od,sd),qa.whitespace===!0&
height:0 !important;
visibility:hidden !important;
${isFirefox()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling(Ra){const qa=window.getComputedStyle(Ra),ed=qa.getPropertyValue("box-sizing"),td=Number.parseFloat(qa.getPropertyValue("padding-bottom"))+Number.parseFloat(qa.getPropertyValue("padding-top")),rd=Number.parseFloat(qa.getPropertyValue("border-bottom-width"))+Number.parseFloat(qa.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(od=>`${od}:${qa.getPropertyValue(od)}`).join(";"),paddingSize:td,borderSize:rd,boxSizing:ed}}function calcTextareaHeight(Ra,qa=1,ed){var td;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:rd,borderSize:sd,boxSizing:od,contextStyle:ld}=calculateNodeStyling(Ra);hiddenTextarea.setAttribute("style",`${ld};${HIDDEN_STYLE}`),hiddenTextarea.value=Ra.value||Ra.placeholder||"";let ud=hiddenTextarea.scrollHeight;const cd={};od==="border-box"?ud=ud+sd:od==="content-box"&&(ud=ud-rd),hiddenTextarea.value="";const dd=hiddenTextarea.scrollHeight-rd;if(isNumber$4(qa)){let _d=dd*qa;od==="border-box"&&(_d=_d+rd+sd),ud=Math.max(_d,ud),cd.minHeight=`${_d}px`}if(isNumber$4(ed)){let _d=dd*ed;od==="border-box"&&(_d=_d+rd+sd),ud=Math.min(_d,ud)}return cd.height=`${ud}px`,(td=hiddenTextarea.parentNode)==null||td.removeChild(hiddenTextarea),hiddenTextarea=void 0,cd}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...useAriaProps(["ariaLabel"])}),inputEmits={[UPDATE_MODEL_EVENT]:Ra=>isString$3(Ra),input:Ra=>isString$3(Ra),change:Ra=>isString$3(Ra),focus:Ra=>Ra instanceof FocusEvent,blur:Ra=>Ra instanceof FocusEvent,clear:()=>!0,mouseleave:Ra=>Ra instanceof MouseEvent,mouseenter:Ra=>Ra instanceof MouseEvent,keydown:Ra=>Ra instanceof Event,compositionstart:Ra=>Ra instanceof CompositionEvent,compositionupdate:Ra=>Ra instanceof CompositionEvent,compositionend:Ra=>Ra instanceof CompositionEvent},__default__$s=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main$1q=defineComponent({...__default__$s,props:inputProps,emits:inputEmits,setup(Ra,{expose:qa,emit:ed}){const td=Ra,rd=useAttrs$1(),sd=useSlots(),od=computed(()=>{const vh={};return td.containerRole==="combobox"&&(vh["aria-haspopup"]=rd["aria-haspopup"],vh["aria-owns"]=rd["aria-owns"],vh["aria-expanded"]=rd["aria-expanded"]),vh}),ld=computed(()=>[td.type==="textarea"?Bd.b():Id.b(),Id.m(Ad.value),Id.is("disabled",Td.value),Id.is("exceed",Nf.value),{[Id.b("group")]:sd.prepend||sd.append,[Id.m("prefix")]:sd.prefix||td.prefixIcon,[Id.m("suffix")]:sd.suffix||td.suffixIcon||td.clearable||td.showPassword,[Id.bm("suffix","password-clear")]:zf.value&&Jf.value,[Id.b("hidden")]:td.type==="hidden"},rd.class]),ud=computed(()=>[Id.e("wrapper"),Id.is("focus",qd.value)]),cd=useAttrs({excludeKeys:computed(()=>Object.keys(od.value))}),{form:dd,formItem:_d}=useFormItem(),{inputId:Ed}=useFormItemInputId(td,{formItemContext:_d}),Ad=useFormSize(),Td=useFormDisabled(),Id=useNamespace("input"),Bd=useNamespace("textarea"),Rd=shallowRef(),Od=shallowRef(),Md=ref$1(!1),Ld=ref$1(!1
M 50 50
m 0 ${Ld?"":"-"}${Md}
a ${Md} ${Md} 0 1 1 0 ${Ld?"-":""}${Md*2}
a ${Md} ${Md} 0 1 1 0 ${Ld?"":"-"}${Md*2}
`}),ud=computed(()=>2*Math.PI*od.value),cd=computed(()=>qa.type==="dashboard"?.75:1),dd=computed(()=>`${-1*ud.value*(1-cd.value)/2}px`),_d=computed(()=>({strokeDasharray:`${ud.value*cd.value}px, ${ud.value}px`,strokeDashoffset:dd.value})),Ed=computed(()=>({strokeDasharray:`${ud.value*cd.value*(qa.percentage/100)}px, ${ud.value}px`,strokeDashoffset:dd.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),Ad=computed(()=>{let Md;return qa.color?Md=Od(qa.percentage):Md=ed[qa.status]||ed.default,Md}),Td=computed(()=>qa.status==="warning"?warning_filled_default:qa.type==="line"?qa.status==="success"?circle_check_default:circle_close_default:qa.status==="success"?check_default:close_default),Id=computed(()=>qa.type==="line"?12+qa.strokeWidth*.4:qa.width*.111111+2),Bd=computed(()=>qa.format(qa.percentage));function Rd(Md){const Ld=100/Md.length;return Md.map((jd,Vd)=>isString$3(jd)?{color:jd,percentage:(Vd+1)*Ld}:jd).sort((jd,Vd)=>jd.percentage-Vd.percentage)}const Od=Md=>{var Ld;const{color:Fd}=qa;if(isFunction$4(Fd))return Fd(Md);if(isString$3(Fd))return Fd;{const jd=Rd(Fd);for(const Vd of jd)if(Vd.percentage>Md)return Vd.color;return(Ld=jd[jd.length-1])==null?void 0:Ld.color}};return(Md,Ld)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(td).b(),unref(td).m(Md.type),unref(td).is(Md.status),{[unref(td).m("without-text")]:!Md.showText,[unref(td).m("text-inside")]:Md.textInside}]),role:"progressbar","aria-valuenow":Md.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[Md.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(td).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(td).be("bar","outer")),style:normalizeStyle({height:`${Md.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(td).be("bar","inner"),{[unref(td).bem("bar","inner","indeterminate")]:Md.indeterminate},{[unref(td).bem("bar","inner","striped")]:Md.striped},{[unref(td).bem("bar","inner","striped-flow")]:Md.stripedFlow}]),style:normalizeStyle(unref(rd))},[(Md.showText||Md.$slots.default)&&Md.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(td).be("bar","innerText"))},[renderSlot(Md.$slots,"default",{percentage:Md.percentage},()=>[createBaseVNode("span",null,toDisplayString(unref(Bd)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(td).b("circle")),style:normalizeStyle({height:`${Md.width}px`,width:`${Md.width}px`})},[(openBlock(),createElementBlock("svg",{viewBox:"0 0 100 100"},[createBaseVNode("path",{class:normalizeClass(unref(td).be("circle","track")),d:unref(ld),stroke:`var(${unref(td).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":Md.strokeLinecap,"stroke-width":unref(sd),fill:"none",style:normalizeStyle(unref(_d))},null,14,["d","stroke","stroke-linecap","stroke-width"]),createBaseVNode("path",{class:normalizeClass(unref(td).be("circle","path")),d:unref(ld),stroke:unref(Ad),fill:"none",opacity:Md.percentage?1:0,"stroke-linecap":Md.strokeLinecap,"stroke-width":unref(sd),style:normalizeStyle(unref(Ed))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(Md.showText||Md.$slots.default)&&!Md.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(td).e("text")),style:normalizeStyle({fontSize:`${unref(Id)}px`})},[renderSlot(Md.$slots,"default",{percentage:Md.percentage},()=>[Md.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Td))))]),_:1})):(openBlock(),createElementBlock("span",{key:0},toDisplayString(unref(Bd)),1))])],6)):createCommentVNode("v-if",!0)],10,["aria-valuenow"]))}});var Progress=_export_sfc$1(_sfc_main$Y,[["__file","progress.vue"]]);const ElProgress=withInstall(Progress),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:isValidComponentSize},width:{type:[String,Number],default:"
欢迎来到 Markdown 的奇妙世界无论你是写作爱好者开发者博主还是想要简单记录点什么的人Markdown 都能成为你新的好伙伴它不仅让写作变得简单明了还能轻松地将内容转化为漂亮的网页格式今天我们将全面探讨 Markdown 的基础和进阶语法让你在这个过程中充分享受写作的乐趣
Markdown 是一种轻量级标记语言用于格式化纯文本它以简单直观的语法而著称可以快速地生成 HTMLMarkdown 是写作与代码的完美结合既简单又强大
## Markdown 基础语法
### 1. 标题让你的内容层次分明
\`#\` 号来创建标题。标题从 \`#\` 开始,我们最多支持 4 个 \`#\` 号,对应 4 级标题。
\`\`\`markdown
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
\`\`\`
以上代码将渲染出一组层次分明的标题使你的文章井井有条
> 标准 Markdown 支持 1 ~ 6 级标题此编辑器也不例外不过我们只准备了四个级别样式同时也是不推荐文章超过四级标题
### 2. 段落与换行自然流畅
Markdown 中的段落就是一行接一行的文本要创建新段落只需在两行文本之间空一行
### 3. 字体样式强调你的文字
- **粗体**用两个星号或下划线包裹文字 \`**粗体**\`\`__粗体__\`
- _斜体_用一个星号或下划线包裹文字 \`*斜体*\`\`_斜体_\`
- ~~删除线~~用两个波浪线包裹文字 \`~~删除线~~\`
这些简单的标记可以让你的内容更有层次感和重点突出
### 4. 列表整洁有序
- **无序列表** \`-\`\`*\`\`+\` 加空格开始一行。
- **有序列表**使用数字加点号\`1.\`\`2.\`)开始一行。
在列表中嵌套其他内容只需缩进即可实现嵌套效果
- 无序列表项 1
1. 嵌套有序列表项 1
2. 嵌套有序列表项 2
- 无序列表项 2
1. 有序列表项 1
2. 有序列表项 2
### 5. 链接与图片丰富内容
- **链接**用方括号和圆括号创建链接 \`[显示文本](链接地址)\`
- **图片**和链接类似只需在前面加上 \`!\`,如 \`![描述文本](图片链接)\`
[访问 Doocs](https://github.com/doocs)
![doocs](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/logo-2.png)
轻松实现富媒体内容展示
> 因微信公众号平台不支持除公众号文章以外的链接故其他平台的链接会呈现链接色泽但不能点击
> 对于这些链接请注意明文书写或点击左上角格式->微信外链接转底部引用开启引用这样就可以在底部观察到链接指向
### 6. 引用引用名言或引人深思的句子
使用 \`>\` 来创建引用,只需在文本前面加上它。多层引用?在前一层 \`>\` 后再加一个就行。
> 这是一个引用
>
> > 这是一个嵌套引用
这让你的引用更加富有层次感
### 7. 代码块展示你的代码
- **行内代码**用反引号包裹 \`code\`
- **代码块**用三个反引号包裹并指定语言
\`\`\`js
console.log("Hello, Doocs!");
\`\`\`
语法高亮让你的代码更易读
### 8. 分割线分割内容
用三个或更多的 \`-\`\`*\`\`_\` 来创建分割线。
---
为你的内容添加视觉分隔
### 9. 表格清晰展示数据
Markdown 支持简单的表格 \`|\`\`-\` 分隔单元格和表头。
| 项目人员 | 邮箱 | 微信号 |
| ------------------------------------------- | ---------------------- | ------------ |
| [yanglbme](https://github.com/yanglbme) | contact@yanglibin.info | YLB0109 |
| [YangFong](https://github.com/YangFong) | yangfong2022@gmail.com | yq2419731931 |
| [thinkasany](https://github.com/thinkasany) | thinkasany@gmail.com | thinkasany |
这样的表格让数据展示更为清爽
> 手动编写标记太麻烦我们提供了便捷方式左上方点击编辑->插入表格即可快速实现表格渲染
## Markdown 进阶技巧
### 1. LaTeX 公式完美展示数学表达式
Markdown 允许嵌入 LaTeX 语法展示数学公式
- **行内公式** \`$\` 包裹公式,如 $E = mc^2$
- **块级公式** \`$$\` 包裹公式,如:
$$
\\begin{aligned}
d_{i, j} &\\leftarrow d_{i, j} + 1 \\\\
d_{i, y + 1} &\\leftarrow d_{i, y + 1} - 1 \\\\
d_{x + 1, j} &\\leftarrow d_{x + 1, j} - 1 \\\\
d_{x + 1, y + 1} &\\leftarrow d_{x + 1, y + 1} + 1
\\end{aligned}
$$
这是展示复杂数学表达的利器
### 2. Mermaid 流程图可视化流程
Mermaid 是强大的可视化工具可以在 Markdown 中创建流程图时序图等
\`\`\`mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
\`\`\`
\`\`\`mermaid
pie
title Key elements in Product X
"Calcium" : 42.96
"Potassium" : 50.05
"Magnesium" : 10.01
"Iron" : 5
\`\`\`
\`\`\`mermaid
pie
title 为什么总是宅在家里
"喜欢宅" : 45
"天气太热" : 70
"穷" : 500
"没人约" : 95
\`\`\`
这种方式不仅能直观展示流程还能提升文档的专业性
> 更多用法参见[Mermaid User Guide](https://mermaid.js.org/intro/getting-started.html)。
## 结语
Markdown 是一种简单强大且易于掌握的标记语言通过学习基础和进阶语法你可以快速创作内容并有效传达信息无论是技术文档个人博客还是项目说明Markdown 都是你的得力助手希望这篇文章能够带你全面了解 Markdown 的潜力让你的写作更加丰富多彩
现在拿起 Markdown 编辑器开始创作吧探索 Markdown 的世界你会发现它远比想象中更精彩
#### 推荐阅读
- [阿里又一个 20k+ stars 开源项目诞生恭喜 fastjson](https://mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)
- [刷掉 90% 候选人的互联网大厂海量数据面试题附题解 + 方法总结](https://mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)
- [好用期待已久的文本块功能究竟如何在 Java 13 中发挥作用](https://mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)
- [2019 GitHub 开源贡献排行榜新鲜出炉微软谷歌领头阿里跻身前 12](https://mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)
---
<center>
<img src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png" style="width: 100px;">
</center>
`,DEFAULT_CSS_CONTENT=`/**
* Alt/Option + Shift + F 可格式化
* 如需使用主题色请使用 var(--md-primary-color) 代替颜色值
* color: var(--md-primary-color);
*
* 召集令如果你有好看的主题样式欢迎分享让更多人能够使用到你的主题
* 提交区https://github.com/doocs/md/issues/363
*/
/* 一级标题样式 */
h1 {
}
/* 二级标题样式 */
h2 {
}
/* 三级标题样式 */
h3 {
}
/* 四级标题样式 */
h4 {
}
/* 图片样式 */
image {
}
/* 引用样式 */
blockquote {
}
/* 引用段落样式 */
blockquote_p {
}
/* 段落样式 */
p {
}
/* 分割线样式 */
hr {
}
/* 行内代码样式 */
codespan {
}
/* 粗体样式 */
strong {
}
/* 链接样式 */
link {
}
/* 微信链接样式 */
wx_link {
}
/* 有序列表样式 */
ol {
}
/* 无序列表样式 */
ul {
}
/* 列表项样式 */
li {
}
/* 代码块样式 */
code {
}
/* 代码块外层样式 */
code_pre {
}
`,githubConfig={username:"bucketio",repoList:Array.from({length:20},(Ra,qa)=>`img${qa}`),branch:"main",accessTokenList:["ghp_sqQg5y7XC7Fy8XdoocsmdVEYRiRiTZPvbwzTL4MRjQc","ghp_jB5JXzBjpGbgzdoocsmdogWfSHhfCKGVstozw1cAsPv","ghp_zvy8wkHo259g7doocsmdJnUKOQd1WO1SPzZ9G0O9cJD","ghp_DnCJc2Ms0RVZ1doocsmdiWOAN78FurfSeD1Pv2Y28pO","ghp_EsMYDv9WVjXWP5doocsmd1nnDml2DEP95rOiz44bSo0","ghp_L4isHf01nllOOdoocsmdHBGoDG6jscCA09WV44QDvlg","ghp_qWciwYXHPakAUGdoocsmdBOBZdRcV08JThKey3mBZNJ","ghp_rxkvIO08wVL2DMdoocsmd2jDEhcatp2rfVyhd3A7RiS","ghp_1RvkWKboSxr0yVdoocsmd7OtBCpecYwoV6deh3utifJ","ghp_cduanDnAug60ngdoocsmdF1uDstXUi6S9RMhY1qdada","ghp_q6mxuJIkqAcsCXdoocsmdkkjWvzGlMVRuy5zI0IWNDx","ghp_Pv4npPeJpChKFMTdoocsmdCQneopUcqJrqrjl3vrt9A","ghp_gKMCFqMaQiLTqhjdoocsmd7BJE8RyK6AdRw4b42CutS","ghp_2oShgb33qFlqBmadoocsmdludmuLYxBFY5bao1XrsVo","ghp_eYyd3kxWTZmsV8doocsmdDFbAa7AEGQTJgmOd0GUmtY"]},giteeConfig={username:"filesss",repoList:Array.from({length:20},(Ra,qa)=>`img${qa}`),branch:"main",accessTokenList:["ed5fc9866bd6c2fdoocsmddd433f806fd2f399c","5448ffebbbf1151doocsmdc4e337cf814fc8a62","25b05efd2557ca2doocsmd75b5c0835e3395911","11628c7a5aef015doocsmd2eeff9fb9566f0458","cb2f5145ed938dedoocsmdbd063b4ed244eecf8","d8c0b57500672c1doocsmd55f48b866b5ebcd98","78c56eadb88e453doocsmd43ddd95753351771a","03e1a688003948fdoocsmda16fcf41e6f03f1f0","c49121cf4d191fbdoocsmdd6a7877ed537e474a","adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff","116c94549ca4a0ddoocsmd192653af5c0694616","ecf30ed7f2eb184doocsmd51ea4ec8300371d9e","5837cf2bd5afd93doocsmd73904bed31934949e","b5b7e1c7d57e01fdoocsmd5266f552574297d78","684d55564ffbd0bdoocsmd7d747e5cc23aed6d6","3fc04a9d272ab71doocsmd010c56cb57d88d2ba"]},fontFamilyOptions=[{label:"无衬线",value:"-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif",desc:"字体123Abc"},{label:"衬线",value:"Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif",desc:"字体123Abc"},{label:"等宽",value:"Menlo, Monaco, 'Courier New', monospace",desc:"字体123Abc"}],fontSizeOptions=[{label:"12px",value:"12px",desc:"更小"},{label:"13px",value:"13px",desc:"稍小"},{label:"14px",value:"14px",desc:"推荐"},{label:"15px",value:"15px",desc:"稍大"},{label:"16px",value:"16px",desc:"更大"}],colorOptions=[{label:"经典蓝",value:"#0F4C81",desc:"稳重冷静"},{label:"翡翠绿",value:"#009874",desc:"自然平衡"},{label:"活力橘",value:"#FA5151",desc:"热情活力"},{label:"柠檬黄",value:"#FECE00",desc:"明亮温暖"},{label:"薰衣紫",value:"#92617E",desc:"优雅神秘"},{label:"天空蓝",value:"#55C9EA",desc:"清爽自由"},{label:"玫瑰金",value:"#B76E79",desc:"奢华现代"},{label:"橄榄绿",value:"#556B2F",desc:"沉稳自然"},{label:"石墨黑",value:"#333333",desc:"内敛极简"},{label:"雾烟灰",value:"#A9A9A9",desc:"柔和低调"},{label:"樱花粉",value:"#FFB7C5",desc:"浪漫甜美"}],codeBlockUrlPrefix="https://cdn.bootcdn.net/ajax/libs/highlight.js/11.10.0/styles/",codeBlockThemeList=["1c-light.min.css","a11y-dark.min.css","a11y-light.min.css","agate.min.css","an-old-hope.min.css","androidstudio.min.css","arduino-light.min.css","arta.min.css","ascetic.min.css","atom-one-dark-reasonable.min.css","atom-one-dark.min.css","atom-one-light.min.css","brown-paper.min.css","codepen-embed.min.css","color-brewer.min.css","dark.min.css","default.min.css","devibeans.min.css","docco.min.css","far.min.css","felipec.min.css","foundation.min.css","github-dark-dimmed.min.css","github-dark.min.css","github.min.css","gml.min.css","googlecode.min.css","gradient-dark.min.css","gradient-light.min.css","grayscale.min.css","hybrid.min.css","idea.min.css","intellij-light.min.css","ir-black.min.css","isbl-editor-dark.min.css","isbl-editor-light.min.css","kimbie-dark.min.css","kimbie-light.min.css","lightfair.min.css","lioshi.min.css","magula.min.css","mono-blue.min.css","monokai-sublime.min.css","monokai.min.css","night-owl.min.css","nnfx-dark.min.css","nnfx-light.min.css","nord.min.css","
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(Ra){const qa=base64Js$1,ed=ieee754$1,td=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=dd,Ra.SlowBuffer=Fd,Ra.INSPECT_MAX_BYTES=50;const rd=2147483647;Ra.kMaxLength=rd;const{Uint8Array:sd,ArrayBuffer:od,SharedArrayBuffer:ld}=globalThis;dd.TYPED_ARRAY_SUPPORT=ud(),!dd.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ud(){try{const th=new sd(1),Df={foo:function(){return 42}};return Object.setPrototypeOf(Df,sd.prototype),Object.setPrototypeOf(th,Df),th.foo()===42}catch{return!1}}Object.defineProperty(dd.prototype,"parent",{enumerable:!0,get:function(){if(dd.isBuffer(this))return this.buffer}}),Object.defineProperty(dd.prototype,"offset",{enumerable:!0,get:function(){if(dd.isBuffer(this))return this.byteOffset}});function cd(th){if(th>rd)throw new RangeError('The value "'+th+'" is invalid for option "size"');const Df=new sd(th);return Object.setPrototypeOf(Df,dd.prototype),Df}function dd(th,Df,Af){if(typeof th=="number"){if(typeof Df=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Td(th)}return _d(th,Df,Af)}dd.poolSize=8192;function _d(th,Df,Af){if(typeof th=="string")return Id(th,Df);if(od.isView(th))return Rd(th);if(th==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof th);if(vh(th,od)||th&&vh(th.buffer,od)||typeof ld<"u"&&(vh(th,ld)||th&&vh(th.buffer,ld)))return Od(th,Df,Af);if(typeof th=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Xf=th.valueOf&&th.valueOf();if(Xf!=null&&Xf!==th)return dd.from(Xf,Df,Af);const ah=Md(th);if(ah)return ah;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof th[Symbol.toPrimitive]=="function")return dd.from(th[Symbol.toPrimitive]("string"),Df,Af);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof th)}dd.from=function(th,Df,Af){return _d(th,Df,Af)},Object.setPrototypeOf(dd.prototype,sd.prototype),Object.setPrototypeOf(dd,sd);function Ed(th){if(typeof th!="number")throw new TypeError('"size" argument must be of type number');if(th<0)throw new RangeError('The value "'+th+'" is invalid for option "size"')}function Ad(th,Df,Af){return Ed(th),th<=0?cd(th):Df!==void 0?typeof Af=="string"?cd(th).fill(Df,Af):cd(th).fill(Df):cd(th)}dd.alloc=function(th,Df,Af){return Ad(th,Df,Af)};function Td(th){return Ed(th),cd(th<0?0:Ld(th)|0)}dd.allocUnsafe=function(th){return Td(th)},dd.allocUnsafeSlow=function(th){return Td(th)};function Id(th,Df){if((typeof Df!="string"||Df==="")&&(Df="utf8"),!dd.isEncoding(Df))throw new TypeError("Unknown encoding: "+Df);const Af=jd(th,Df)|0;let Xf=cd(Af);const ah=Xf.write(th,Df);return ah!==Af&&(Xf=Xf.slice(0,ah)),Xf}function Bd(th){const Df=th.length<0?0:Ld(th.length)|0,Af=cd(Df);for(let Xf=0;Xf<Df;Xf+=1)Af[Xf]=th[Xf]&255;return Af}function Rd(th){if(vh(th,sd)){const Df=new sd(th);return Od(Df.buffer,Df.byteOffset,Df.byteLength)}return Bd(th)}function Od(th,Df,Af){if(Df<0||th.byteLength<Df)throw new RangeError('"offset" is outside of buffer bounds');if(th.byteLength<Df+(Af||0))throw new RangeError('"length" is outside of buffer bounds');let Xf;return Df===void 0&&Af===void 0?Xf=new sd(th):Af===void 0?Xf=new sd(th,Df):Xf=new sd(th,Df,Af),Object.setPrototypeOf(Xf,dd.prototype),Xf}function Md(th){if(dd.isBuffer(th)){const Df=Ld(th.length)|0,Af=cd(Df);return Af.length===0||th.copy(Af,0,0,Df),Af}if(th.length!==void 0)return typeof th.length!="number"||qh(th.length)?cd(0):Bd(th);if(th.type==="Buffer"&&Array.isArray(th.data))return Bd(th.data)}function Ld(th){if(th>=rd)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rd.toString(16)+" bytes");return th|0}function Fd(th){return+th!
`:getText(Ra.children):isCDATA(Ra)?getText(Ra.children):isText(Ra)?Ra.data:""}function textContent(Ra){return Array.isArray(Ra)?Ra.map(textContent).join(""):hasChildren(Ra)&&!isComment$1(Ra)?textContent(Ra.children):isText(Ra)?Ra.data:""}function innerText(Ra){return Array.isArray(Ra)?Ra.map(innerText).join(""):hasChildren(Ra)&&(Ra.type===ElementType.Tag||isCDATA(Ra))?innerText(Ra.children):isText(Ra)?Ra.data:""}function getChildren(Ra){return hasChildren(Ra)?Ra.children:[]}function getParent(Ra){return Ra.parent||null}function getSiblings(Ra){const qa=getParent(Ra);if(qa!=null)return getChildren(qa);const ed=[Ra];let{prev:td,next:rd}=Ra;for(;td!=null;)ed.unshift(td),{prev:td}=td;for(;rd!=null;)ed.push(rd),{next:rd}=rd;return ed}function getAttributeValue(Ra,qa){var ed;return(ed=Ra.attribs)===null||ed===void 0?void 0:ed[qa]}function hasAttrib(Ra,qa){return Ra.attribs!=null&&Object.prototype.hasOwnProperty.call(Ra.attribs,qa)&&Ra.attribs[qa]!=null}function getName(Ra){return Ra.name}function nextElementSibling(Ra){let{next:qa}=Ra;for(;qa!==null&&!isTag(qa);)({next:qa}=qa);return qa}function prevElementSibling(Ra){let{prev:qa}=Ra;for(;qa!==null&&!isTag(qa);)({prev:qa}=qa);return qa}function removeElement(Ra){if(Ra.prev&&(Ra.prev.next=Ra.next),Ra.next&&(Ra.next.prev=Ra.prev),Ra.parent){const qa=Ra.parent.children,ed=qa.lastIndexOf(Ra);ed>=0&&qa.splice(ed,1)}Ra.next=null,Ra.prev=null,Ra.parent=null}function replaceElement(Ra,qa){const ed=qa.prev=Ra.prev;ed&&(ed.next=qa);const td=qa.next=Ra.next;td&&(td.prev=qa);const rd=qa.parent=Ra.parent;if(rd){const sd=rd.children;sd[sd.lastIndexOf(Ra)]=qa,Ra.parent=null}}function appendChild(Ra,qa){if(removeElement(qa),qa.next=null,qa.parent=Ra,Ra.children.push(qa)>1){const ed=Ra.children[Ra.children.length-2];ed.next=qa,qa.prev=ed}else qa.prev=null}function append$3(Ra,qa){removeElement(qa);const{parent:ed}=Ra,td=Ra.next;if(qa.next=td,qa.prev=Ra,Ra.next=qa,qa.parent=ed,td){if(td.prev=qa,ed){const rd=ed.children;rd.splice(rd.lastIndexOf(td),0,qa)}}else ed&&ed.children.push(qa)}function prependChild(Ra,qa){if(removeElement(qa),qa.parent=Ra,qa.prev=null,Ra.children.unshift(qa)!==1){const ed=Ra.children[1];ed.prev=qa,qa.next=ed}else qa.next=null}function prepend$1(Ra,qa){removeElement(qa);const{parent:ed}=Ra;if(ed){const td=ed.children;td.splice(td.indexOf(Ra),0,qa)}Ra.prev&&(Ra.prev.next=qa),qa.parent=ed,qa.prev=Ra.prev,qa.next=Ra,Ra.prev=qa}function filter$5(Ra,qa,ed=!0,td=1/0){return find$3(Ra,Array.isArray(qa)?qa:[qa],ed,td)}function find$3(Ra,qa,ed,td){const rd=[],sd=[qa],od=[0];for(;;){if(od[0]>=sd[0].length){if(od.length===1)return rd;sd.shift(),od.shift();continue}const ld=sd[0][od[0]++];if(Ra(ld)&&(rd.push(ld),--td<=0))return rd;ed&&hasChildren(ld)&&ld.children.length>0&&(od.unshift(0),sd.unshift(ld.children))}}function findOneChild(Ra,qa){return qa.find(Ra)}function findOne(Ra,qa,ed=!0){let td=null;for(let rd=0;rd<qa.length&&!td;rd++){const sd=qa[rd];if(isTag(sd))Ra(sd)?td=sd:ed&&sd.children.length>0&&(td=findOne(Ra,sd.children,!0));else continue}return td}function existsOne(Ra,qa){return qa.some(ed=>isTag(ed)&&(Ra(ed)||existsOne(Ra,ed.children)))}function findAll(Ra,qa){const ed=[],td=[qa],rd=[0];for(;;){if(rd[0]>=td[0].length){if(td.length===1)return ed;td.shift(),rd.shift();continue}const sd=td[0][rd[0]++];isTag(sd)&&(Ra(sd)&&ed.push(sd),sd.children.length>0&&(rd.unshift(0),td.unshift(sd.children)))}}const Checks={tag_name(Ra){return typeof Ra=="function"?qa=>isTag(qa)&&Ra(qa.name):Ra==="*"?isTag:qa=>isTag(qa)&&qa.name===Ra},tag_type(Ra){return typeof Ra=="function"?qa=>Ra(qa.type):qa=>qa.type===Ra},tag_contains(Ra){return typeof Ra=="function"?qa=>isText(qa)&&Ra(qa.data):qa=>isText(qa)&&qa.data===Ra}};function getAttribCheck(Ra,qa){return typeof qa=="function"?ed=>isTag(ed)&&qa(ed.attribs[Ra]):ed=>isTag(ed)&&ed.attribs[Ra]===qa}function combineFuncs(Ra,qa){return ed=>Ra(ed)||qa(ed)}function compileTest(Ra){const qa=Object.keys(Ra).map(ed=>{const td=Ra[ed];return Object.prototype.hasOwnProperty.call(Checks,ed)?Checks[ed](td):getAttribCheck(ed,td)});return qa.length===0?null:qa
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},PLACEHOLDER_ELEMENT={};function ensureIsTag(Ra,qa){return Ra===boolbase$1.falseFunc?boolbase$1.falseFunc:ed=>qa.isTag(ed)&&Ra(ed)}function getNextSiblings(Ra,qa){const ed=qa.getSiblings(Ra);if(ed.length<=1)return[];const td=ed.indexOf(Ra);return td<0||td===ed.length-1?[]:ed.slice(td+1).filter(qa.isTag)}function copyOptions(Ra){return{xmlMode:!!Ra.xmlMode,lowerCaseAttributeNames:!!Ra.lowerCaseAttributeNames,lowerCaseTags:!!Ra.lowerCaseTags,quirksMode:!!Ra.quirksMode,cacheResults:!!Ra.cacheResults,pseudos:Ra.pseudos,adapter:Ra.adapter,equals:Ra.equals}}const is$3=(Ra,qa,ed,td,rd)=>{const sd=rd(qa,copyOptions(ed),td);return sd===boolbase$1.trueFunc?Ra:sd===boolbase$1.falseFunc?boolbase$1.falseFunc:od=>sd(od)&&Ra(od)},subselects={is:is$3,matches:is$3,where:is$3,not(Ra,qa,ed,td,rd){const sd=rd(qa,copyOptions(ed),td);return sd===boolbase$1.falseFunc?Ra:sd===boolbase$1.trueFunc?boolbase$1.falseFunc:od=>!sd(od)&&Ra(od)},has(Ra,qa,ed,td,rd){const{adapter:sd}=ed,od=copyOptions(ed);od.relativeSelector=!0;const ld=qa.some(dd=>dd.some(isTraversal))?[PLACEHOLDER_ELEMENT]:void 0,ud=rd(qa,od,ld);if(ud===boolbase$1.falseFunc)return boolbase$1.falseFunc;const cd=ensureIsTag(ud,sd);if(ld&&ud!==boolbase$1.trueFunc){const{shouldTestNextSiblings:dd=!1}=ud;return _d=>{if(!Ra(_d))return!1;ld[0]=_d;const Ed=sd.getChildren(_d),Ad=dd?[...Ed,...getNextSiblings(_d,sd)]:Ed;return sd.existsOne(cd,Ad)}}return dd=>Ra(dd)&&sd.existsOne(cd,sd.getChildren(dd))}};function compilePseudoSelector(Ra,qa,ed,td,rd){var sd;const{name:od,data:ld}=qa;if(Array.isArray(ld)){if(!(od in subselects))throw new Error(`Unknown pseudo-class :${od}(${ld})`);return subselects[od](Ra,ld,ed,td,rd)}const ud=(sd=ed.pseudos)===null||sd===void 0?void 0:sd[od],cd=typeof ud=="string"?ud:aliases[od];if(typeof cd=="string"){if(ld!=null)throw new Error(`Pseudo ${od} doesn't have any arguments`);const dd=parse$7(cd);return subselects.is(Ra,dd,ed,td,rd)}if(typeof ud=="function")return verifyPseudoArgs(ud,od,ld,1),dd=>ud(dd,ld)&&Ra(dd);if(od in filters)return filters[od](Ra,ld,ed,td);if(od in pseudos){const dd=pseudos[od];return verifyPseudoArgs(dd,od,ld,2),_d=>dd(_d,ed,ld)&&Ra(_d)}throw new Error(`Unknown pseudo-class :${od}`)}function getElementParent(Ra,qa){const ed=qa.getParent(Ra);return ed&&qa.isTag(ed)?ed:null}function compileGeneralSelector(Ra,qa,ed,td,rd){const{adapter:sd,equals:od}=ed;switch(qa.type){case SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case SelectorType.Attribute:{if(qa.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!ed.xmlMode||ed.lowerCaseAttributeNames)&&(qa.name=qa.name.toLowerCase()),attributeRules[qa.action](Ra,qa,ed)}case SelectorType.Pseudo:return compilePseudoSelector(Ra,qa,ed,td,rd);case SelectorType.Tag:{if(qa.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:ld}=qa;return(!ed.xmlMode||ed.lowerCaseTags)&&(ld=ld.toLowerCase()),function(cd){return sd.getName(cd)===ld&&Ra(cd)}}case SelectorType.Descendant:{if(ed.cacheResults===!1||typeof WeakSet>"u")return function(cd){let dd=cd;for(;dd=getElementParent(dd,sd);)if(Ra(dd))return!0;return!1};const ld=new WeakSet;return function(cd){let dd=cd;for(;dd=getElementParent(dd,sd);)if(!ld.has(
`)})):{name:rd,value:sd.replace(rCRLF,`\r
`)}}).toArray()}const Forms=Object.freeze(Object.defineProperty({__proto__:null,serialize:serialize$1,serializeArray},Symbol.toStringTag,{value:"Module"}));function getExtractDescr(Ra){var qa;return typeof Ra=="string"?{selector:Ra,value:"textContent"}:{selector:Ra.selector,value:(qa=Ra.value)!==null&&qa!==void 0?qa:"textContent"}}function extract(Ra){const qa={};for(const ed in Ra){const td=Ra[ed],rd=Array.isArray(td),{selector:sd,value:od}=getExtractDescr(rd?td[0]:td),ld=typeof od=="function"?od:typeof od=="string"?ud=>this._make(ud).prop(od):ud=>this._make(ud).extract(od);if(rd)qa[ed]=this._findBySelector(sd,Number.POSITIVE_INFINITY).map((ud,cd)=>ld(cd,ed,qa)).get();else{const ud=this._findBySelector(sd,1);qa[ed]=ud.length>0?ld(ud[0],ed,qa):void 0}}return qa}const Extract=Object.freeze(Object.defineProperty({__proto__:null,extract},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(qa,ed,td){if(this.length=0,this.options=td,this._root=ed,qa){for(let rd=0;rd<qa.length;rd++)this[rd]=qa[rd];this.length=qa.length}}}Cheerio.prototype.cheerio="[cheerio object]";Cheerio.prototype.splice=Array.prototype.splice;Cheerio.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Cheerio.prototype,Attributes,Traversing,Manipulation,Css,Forms,Extract);function getLoad(Ra,qa){return function ed(td,rd,sd=!0){if(td==null)throw new Error("cheerio.load() expects a string");const od=flattenOptions(rd),ld=Ra(td,od,sd,null);class ud extends Cheerio{_make(_d,Ed){const Ad=cd(_d,Ed);return Ad.prevObject=this,Ad}_parse(_d,Ed,Ad,Td){return Ra(_d,Ed,Ad,Td)}_render(_d){return qa(_d,this.options)}}function cd(dd,_d,Ed=ld,Ad){if(dd&&isCheerio(dd))return dd;const Td=flattenOptions(Ad,od),Id=typeof Ed=="string"?[Ra(Ed,Td,!1,null)]:"length"in Ed?Ed:[Ed],Bd=isCheerio(Id)?Id:new ud(Id,null,Td);if(Bd._root=Bd,!dd)return new ud(void 0,Bd,Td);const Rd=typeof dd=="string"&&isHtml(dd)?Ra(dd,Td,!1,null).children:isNode$1(dd)?[dd]:Array.isArray(dd)?dd:void 0,Od=new ud(Rd,Bd,Td);if(Rd)return Od;if(typeof dd!="string")throw new TypeError("Unexpected type of selector");let Md=dd;const Ld=_d?typeof _d=="string"?isHtml(_d)?new ud([Ra(_d,Td,!1,null)],Bd,Td):(Md=`${_d} ${Md}`,Bd):isCheerio(_d)?_d:new ud(Array.isArray(_d)?_d:[_d],Bd,Td):Bd;return Ld?Ld.find(Md):Od}return Object.assign(cd,staticMethods,{load:ed,_root:ld,_options:od,fn:ud.prototype,prototype:ud.prototype}),cd}}function isNode$1(Ra){return!!Ra.name||Ra.type==="root"||Ra.type==="text"||Ra.type==="comment"}const UNDEFINED_CODE_POINTS=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),REPLACEMENT_CHARACTER="<22>";var CODE_POINTS;(function(Ra){Ra[Ra.EOF=-1]="EOF",Ra[Ra.NULL=0]="NULL",Ra[Ra.TABULATION=9]="TABULATION",Ra[Ra.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",Ra[Ra.LINE_FEED=10]="LINE_FEED",Ra[Ra.FORM_FEED=12]="FORM_FEED",Ra[Ra.SPACE=32]="SPACE",Ra[Ra.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",Ra[Ra.QUOTATION_MARK=34]="QUOTATION_MARK",Ra[Ra.NUMBER_SIGN=35]="NUMBER_SIGN",Ra[Ra.AMPERSAND=38]="AMPERSAND",Ra[Ra.APOSTROPHE=39]="APOSTROPHE",Ra[Ra.HYPHEN_MINUS=45]="HYPHEN_MINUS",Ra[Ra.SOLIDUS=47]="SOLIDUS",Ra[Ra.DIGIT_0=48]="DIGIT_0",Ra[Ra.DIGIT_9=57]="DIGIT_9",Ra[Ra.SEMICOLON=59]="SEMICOLON",Ra[Ra.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",Ra[Ra.EQUALS_SIGN=61]="EQUALS_SIGN",Ra[Ra.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",Ra[Ra.QUESTION_MARK=63]="QUESTION_MARK",Ra[Ra.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",Ra[Ra.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",Ra[Ra.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",Ra[Ra.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",Ra[Ra.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",Ra[Ra.GRAVE_ACCENT=96]="GRAVE_ACCENT",Ra[Ra.LATIN_SMALL_A=97]="LATIN_SMALL_A",Ra[Ra.LATIN_SMALL_F=102]="LATIN_SMALL_F",Ra[Ra.LATIN_SMALL_X=120]="LATIN_SMALL_X",Ra[Ra.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",Ra[Ra.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(CODE_POINTS=CODE_POINTS||(CODE_POINTS={}));const SEQUENC
`)}})(debug);var debugExports=debug.exports;(function(Ra,qa){debugExports("lex"),Ra.exports=ed;function ed(td){var rd="",sd,od=0,ld=-1,ud=0,cd=1,dd="before-selector",_d=[dd],Ed={},Ad=[],Td=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function Id(){return Qd(),td[ld]}function Bd(Tf){return Tf?_d[_d.length-1-Tf]:dd}function Rd(Tf){var kf=ld+1;return Tf===td.slice(kf,kf+Tf.length)}function Od(Tf){var kf=td.slice(ld).indexOf(Tf);return kf>0?kf:!1}function Md(Tf){return Tf===Ld(1)}function Ld(Tf){return td[ld+(Tf||1)]}function Fd(){var Tf=_d.pop();return dd=_d[_d.length-1],Tf}function jd(Tf){return dd=Tf,_d.push(dd),_d.length}function Vd(Tf){var kf=dd;return _d[_d.length-1]=dd=Tf,kf}function Qd(Tf){if((Tf||1)==1)td[ld]==`
`?(cd++,od=1):od++,ld++;else{var kf=td.slice(ld,ld+Tf).split(`
`);kf.length>1&&(cd+=kf.length-1,od=1),od+=kf[kf.length-1].length,ld=ld+Tf}}function qd(){Ed.end={line:cd,col:od},Ad.push(Ed),rd="",Ed={}}function Kd(Tf){Ed={type:Tf,start:{line:cd,col:od}}}for(;sd=Id();)switch(sd){case" ":switch(Bd()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":rd+=sd;break}break;case`
`:case" ":case"\r":case"\f":switch(Bd()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":rd+=sd;break;case"at-value":sd===`
`&&(Ed.value=rd.trim(),qd(),Fd());break}break;case":":switch(Bd()){case"name":Ed.name=rd.trim(),rd="",Vd("before-value");break;case"before-selector":rd+=sd,Kd("selector"),jd("selector");break;case"before-value":Vd("value"),rd+=sd;break;default:rd+=sd;break}break;case";":switch(Bd()){case"name":case"before-value":case"value":rd.trim().length>0&&(Ed.value=rd.trim(),qd()),Vd("before-name");break;case"value-paren":rd+=sd;break;case"at-value":Ed.value=rd.trim(),qd(),Fd();break;case"before-name":break;default:rd+=sd;break}break;case"{":switch(Bd()){case"selector":if(Ld(-1)==="\\"){rd+=sd;break}Ed.text=rd.trim(),qd(),Vd("before-name"),ud=ud+1;break;case"at-group":switch(Ed.name=rd.trim(),Ed.type){case"font-face":case"viewport":case"page":jd("before-name");break;default:jd("before-selector")}qd(),ud=ud+1;break;case"name":case"at-rule":Ed.name=rd.trim(),qd(),jd("before-name"),ud=ud+1;break;case"comment":case"double-string":case"single-string":rd+=sd;break;case"before-value":Vd("value"),rd+=sd;break}break;case"}":switch(Bd()){case"before-name":case"name":case"before-value":case"value":rd&&(Ed.value=rd.trim()),Ed.name&&Ed.value&&qd(),Kd("end"),qd(),Fd(),Bd()==="at-group"&&(Kd("at-group-end"),qd(),Fd()),ud>0&&(ud=ud-1);break;case"at-group":case"before-selector":case"selector":if(Ld(-1)==="\\"){rd+=sd;break}ud>0&&Bd(1)==="at-group"&&(Kd("at-group-end"),qd()),ud>1&&Fd(),ud>0&&(ud=ud-1);break;case"double-string":case"single-string":case"comment":rd+=sd;break}break;case'"':case"'":switch(Bd()){case"double-string":sd==='"'&&Ld(-1)!=="\\"&&Fd();break;case"single-string":sd==="'"&&Ld(-1)!=="\\"&&Fd();break;case"before-at-value":Vd("at-value"),jd(sd==='"'?"double-string":"single-string");break;case"before-value":Vd("value"),jd(sd==='"'?"double-string":"single-string");break;case"comment":break;default:Ld(-1)!=="\\"&&jd(sd==='"'?"double-string":"single-string")}rd+=sd;break;case"/":switch(Bd()){case"comment":case"double-string":case"single-string":rd+=sd;break;case"before-value":case"selector":case"name":case"value":if(Md("*")){var Xd=Od("*/");Xd&&Qd(Xd+1)}else Bd()=="before-value"&&Vd("value"),rd+=sd;break;default:Md("*")?(Kd("comment"),jd("comment"),Qd()):rd+=sd;break}break;case"*":switch(Bd()){case"comment":Md("/")?(Ed.text=rd,Qd(),qd(),Fd()):rd+=sd;break;case"before-selector":rd+=sd,Kd("selector"),jd("selector");break;case"before-value":Vd("value"),rd+=sd;break;default:rd+=sd}break;case"@":switch(Bd()){case"comment":case"double-string":case"single-string":rd+=sd;break;case"before-value":Vd("value"),rd+=sd;break;default:for(var df=!1,mf,bf,pf=0,_f=Td.length;!df&&pf<_f;++pf)bf=Td[pf],mf=bf.name||bf,Rd(mf)&&(df=!0,Kd(mf),jd(bf.state||"at-group"),Qd(mf.length),bf.prefix&&(Ed.prefix=bf.prefix),bf.type&&(Ed.type=bf.type));df||(rd+=sd);break}break;case"(":switch(Bd()){case"value":jd("value-paren");break;case"before-value":Vd("value");break}rd+=sd;break;case")":switch(Bd()){case"value-paren":Fd();break;case"before-value":Vd("value");break}rd+=sd;break;default:switch(Bd()){case"before-selector":Kd("selector"),jd("selector");break;case"before-name":Kd("property"),Vd("name");break;case"before-value":Vd("value");break;case"before-at-value":Vd("at-value");break}rd+=sd;break}return Ad}})(lexer);var lexerExports=lexer.exports,parser$2={exports:{}};(function(Ra,qa){debugExports("parse");var ed=lexerExports;Ra.exports=ld;var td,rd,sd,od;function ld(Fd,jd){jd||(jd={}),td=!!jd.comments,sd=!!jd.position,rd=0,od=Array.isArray(Fd)?Fd.slice():ed(Fd);for(var Vd,Qd=[],qd;qd=cd();)Vd=Rd(qd),Vd&&Qd.push(Vd);return{type:"stylesheet",stylesheet:{rules:Qd}}}function ud(Fd,jd){jd||(jd={});for(var Vd,Qd=["type","name","value"],qd={},Kd=0;Kd<Qd.length;++Kd)Vd=Qd[Kd],Fd[Vd]&&(qd[Vd]=jd[Vd]||Fd[Vd]);for(Qd=Object.keys(jd),Kd=0;Kd<Qd.length;++Kd)Vd=Qd[Kd],qd[Vd]||(qd[Vd]=jd[Vd]);return sd&&(qd.position={start:Fd.start,end:Fd.end}),qd}function cd(){var Fd=od.shift();return Fd}function dd(Fd){rd=rd+1;var jd={};switch(Fd.type){case"font-face":case"viewport":jd.declarations=Md();break;case"page":jd.prefix=Fd.prefix,jd.declarations=Md();break;default:jd.prefix=Fd.prefix,jd.rul
`,ld=" ");var jd=Td(Ld.stylesheet.rules,Od).join(`
`).trim();return jd}function cd(Ld){if(Ld){sd+=Ld;return}return td?"":Array(sd).join(rd||"")}function dd(Ld){return"@"+Ld.type+" "+Ld.value+";"+od}function _d(Ld){var Fd="",jd=Ld.prefix||"";Ld.name&&(Fd=" "+Ld.name);var Vd=Ld.type!=="page";return"@"+jd+Ld.type+Fd+ld+Id(Ld,Vd)+od}function Ed(Ld){return ed?"/*"+(Ld.text||"")+"*/"+od:""}function Ad(Ld){var Fd;return Ld.selectors?Fd=Ld.selectors.join(","+od):(Fd="@"+Ld.type,Fd+=Ld.name?" "+Ld.name:""),cd()+Fd+ld+Id(Ld)+od}function Td(Ld,Fd){return Ld.reduce(function(jd,Vd){var Qd=Vd.type==="comment"?Ed(Vd):Fd(Vd);return Qd&&jd.push(Qd),jd},[])}function Id(Ld,Fd){var jd=Ld.declarations,Vd=Rd;return Ld.rules&&(jd=Ld.rules,Vd=Ad),jd=Bd(jd,Vd),jd&&(jd=od+jd+(Fd?"":od)),"{"+jd+cd()+"}"}function Bd(Ld,Fd){if(!Ld)return"";cd(1);var jd=Td(Ld,Fd);return cd(-1),jd.length?jd.join(od):""}function Rd(Ld){if(Ld.type==="property")return Md(Ld)}function Od(Ld){switch(Ld.type){case"rule":return Ad(Ld);case"media":case"keyframes":return _d(Ld);case"comment":return Ed(Ld);case"import":case"charset":case"namespace":return dd(Ld);case"font-face":case"supports":case"viewport":case"document":case"page":return _d(Ld)}}function Md(Ld){var Fd=Ld.name?Ld.name+":"+ld:"";return cd()+Fd+Ld.value+";"}})(stringify$2);var stringifyExports=stringify$2.exports,mensch={lex:lexerExports,parse:parserExports,stringify:stringifyExports},selector$1={exports:{}},escapeRe=/([-.*+?^${}()|[\]\/\\])/g,unescapeRe=/\\/g,escape$5=function(Ra){return(Ra+"").replace(escapeRe,"\\$1")},unescape$2=function(Ra){return(Ra+"").replace(unescapeRe,"")},slickRe=RegExp(`^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:(["']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:(["'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(/<combinator>/,"["+escape$5(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),Part=function(qa){this.combinator=qa||" ",this.tag="*"};Part.prototype.toString=function(){if(!this.raw){var Ra="",qa,ed;if(Ra+=this.tag||"*",this.id&&(Ra+="#"+this.id),this.classes&&(Ra+="."+this.classList.join(".")),this.attributes)for(qa=0;ed=this.attributes[qa++];)Ra+="["+ed.name+(ed.operator?ed.operator+'"'+ed.value+'"':"")+"]";if(this.pseudos)for(qa=0;ed=this.pseudos[qa++];)Ra+=":"+ed.name,ed.value&&(Ra+="("+ed.value+")");this.raw=Ra}return this.raw};var Expression=function(){this.length=0};Expression.prototype.toString=function(){if(!this.raw){for(var Ra="",qa=0,ed;ed=this[qa++];)qa!==1&&(Ra+=" "),ed.combinator!==" "&&(Ra+=ed.combinator+" "),Ra+=ed;this.raw=Ra}return this.raw};var replacer=function(Ra,qa,ed,td,rd,sd,od,ld,ud,cd,dd,_d,Ed,Ad,Td,Id){var Bd,Rd;if((qa||!this.length)&&(Bd=this[this.length++]=new Expression,qa))return"";if(Bd||(Bd=this[this.length-1]),(ed||td||!Bd.length)&&(Rd=Bd[Bd.length++]=new Part(ed)),Rd||(Rd=Bd[Bd.length-1]),rd)Rd.tag=unescape$2(rd);else if(sd)Rd.id=unescape$2(sd);else if(od){var Od=unescape$2(od),Md=Rd.classes||(Rd.classes={});if(!Md[Od]){Md[Od]=escape$5(od);var Ld=Rd.classList||(Rd.classList=[]);Ld.push(Od),Ld.sort()}}else Ed?(Id=Id||Td,(Rd.pseudos||(Rd.pseudos=[])).push({type:_d.length==1?"class":"element",name:unescape$2(Ed),escapedName:escape$5(Ed),value:Id?unescape$2(Id):null,escapedValue:Id?escape$5(Id):null})):ld&&(dd=dd?escape$5(dd):null,(Rd.attributes||(Rd.attributes=[])).push({operator:ud,name:unescape$2(ld),escapedName:escape$5(ld),value:dd?unescape$2(dd):null,escapedValue:dd?escape$5(dd):null}));return""},Expressions=function(qa){this.length=0;for(var ed=this,td=qa,rd;qa;){if(rd=qa.replace(slickRe,function(){return replacer.apply(ed,arguments)}),rd===qa)throw new Error(td+" is an invalid expression");qa=rd}};Expressions.prototype.toString=function(){if(!this.raw){for(var Ra=[],qa=0,ed;ed=this[qa++];)Ra.push(ed);this.raw=Ra.join(", ")}return this.raw};var cache$1={},parse$2=function(Ra){return Ra==null?null:(Ra=(""+Ra).replace(/^\s+|\s+$/g,""),cache$1[Ra]||(cache
* Returns an array of the selectors.
*
* @license Sizzle CSS Selector Engine - MIT
* @param {String} selectorText from mensch
* @api public
*/Ra.extract=function(sd){for(var od=0,ld=[],ud="",cd=0,dd=sd.length;cd<dd;cd++){var _d=sd.charAt(cd);od?((_d==="]"||_d===")")&&od--,ud+=_d):_d===","?(ld.push(ud),ud=""):((_d==="["||_d==="(")&&od++,(ud.length||_d!==","&&_d!==`
`&&_d!==" ")&&(ud+=_d))}return ud.length&&ld.push(ud),ld},Ra.parseCSS=function(rd){for(var sd=qa.parse(rd,{position:!0,comments:!0}),od=typeof sd.stylesheet<"u"&&sd.stylesheet.rules?sd.stylesheet.rules:[],ld=[],ud=0,cd=od.length;ud<cd;ud++)if(od[ud].type=="rule")for(var dd=od[ud],_d=dd.selectors,Ed=0,Ad=_d.length;Ed<Ad;Ed++)ld.push([_d[Ed],dd.declarations]);return ld},Ra.getPreservedText=function(rd,sd,od){for(var ld=qa.parse(rd,{position:!0,comments:!0}),ud=typeof ld.stylesheet<"u"&&ld.stylesheet.rules?ld.stylesheet.rules:[],cd=[],dd=ud.length-1;dd>=0;dd--)(sd.fontFaces&&ud[dd].type==="font-face"||sd.mediaQueries&&ud[dd].type==="media"||sd.keyFrames&&ud[dd].type==="keyframes"||sd.pseudos&&ud[dd].selectors&&this.matchesPseudo(ud[dd].selectors[0],od))&&cd.unshift(qa.stringify({stylesheet:{rules:[ud[dd]]}},{comments:!1,indentation:" "})),ud[dd].position.start;return cd.length===0?!1:`
`+cd.join(`
`)+`
`},Ra.normalizeLineEndings=function(rd){return rd.replace(/\r\n/g,`
`).replace(/\n/g,`\r
`)},Ra.matchesPseudo=function(rd,sd){return sd.find(function(od){return rd.indexOf(od)>-1})},Ra.compareFunc=function(rd,sd){for(var od=Math.min(rd.length,sd.length),ld=0;ld<od;ld++)if(rd[ld]!==sd[ld])return rd[ld]>sd[ld]?1:-1;return rd.length-sd.length},Ra.compare=function(rd,sd){return Ra.compareFunc(rd,sd)==1?rd:sd},Ra.getDefaultOptions=function(rd){var sd=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,resolveCSSVariables:!0,url:""},rd);return sd.webResources=sd.webResources||{},sd}}(utils$4)),utils$4}(function(Ra){var qa=require$$0$2;requireUtils$1();var ed=function(rd,sd,od){const{xmlMode:ld,...ud}=sd;return sd=Object.assign({xml:{decodeEntities:!1,xmlMode:ld}},ud),rd=od(rd),qa.load(rd,sd)},td=function(){var rd=[],sd=function(ld){var ud=Ra.exports.codeBlocks;return Object.keys(ud).forEach(function(cd){var dd=new RegExp(ud[cd].start+"([\\S\\s]*?)"+ud[cd].end,"g");ld=ld.replace(dd,function(_d,Ed){return rd.push(_d),"JUICE_CODE_BLOCK_"+(rd.length-1)+"_"})}),ld},od=function(ld){for(var ud=0;ud<rd.length;ud++){var cd=new RegExp("JUICE_CODE_BLOCK_"+ud+'_(="")?',"gi");ld=ld.replace(cd,function(){return rd[ud]})}return ld};return{encodeEntities:sd,decodeEntities:od}};Ra.exports=function(rd,sd,od,ld){var ud=td(),cd=ed(rd,sd,ud.encodeEntities),dd=[cd];dd.push.apply(dd,ld);var _d=od.apply(void 0,dd)||cd;return sd&&sd.xmlMode?ud.decodeEntities(_d.xml()):ud.decodeEntities(_d.html())},Ra.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}})(cheerio$1);var cheerioExports=cheerio$1.exports,numbers$1={};numbers$1.romanize=function(Ra){if(isNaN(Ra))return NaN;for(var qa=String(+Ra).split(""),ed=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],td="",rd=3;rd--;)td=(ed[+qa.pop()+rd*10]||"")+td;return Array(+qa.join("")+1).join("M")+td};numbers$1.alphanumeric=function(Ra){for(var qa="",ed;Ra>0;)ed=(Ra-1)%26,qa=String.fromCharCode(65+ed)+qa,Ra=(Ra-ed)/26|0;return qa||void 0};const uniqueString=Ra=>{let qa="";do qa=(Math.random()+1).toString(36).substring(2);while(Ra.indexOf(qa)!==-1);return qa},replaceVariables=(Ra,qa)=>{let ed=/([a-z\-]+)\s*\(\s*([^\(\)]*?)\s*(?:,\s*([^\(\)]*?)\s*)?\s*\)/i,td=[],rd,sd=uniqueString(qa);for(;(rd=ed.exec(qa))!==null;){let ld=`${td.length}`;if(rd[1].toLowerCase()=="var"){const cd=findVariableValue(Ra,rd[2]);if(cd){qa=qa.replace(rd[0],cd);continue}if(rd[3]){qa=qa.replace(rd[0],rd[3]);continue}}let ud=`${sd}${ld.padStart(5,"-")}`;qa=qa.replace(rd[0],ud),td.push({placeholder:ud,replace:rd[0]})}for(var od=td.length-1;od>=0;od--){const ld=td[od];qa=qa.replace(ld.placeholder,ld.replace)}return qa},findVariableValue=(Ra,qa)=>{for(;Ra;){if(Ra.styleProps&&qa in Ra.styleProps)return Ra.styleProps[qa].value;var Ra=Ra.pseudoElementParent||Ra.parent}};var variables$1={replaceVariables,findVariableValue},utils$3=requireUtils$1(),numbers=numbers$1,variables=variables$1,inline$2=function(qa){qa.ignoredPseudos=["hover","active","focus","visited","link"],qa.widthElements=["TABLE","TD","TH","IMG"],qa.heightElements=["TABLE","TD","TH","IMG"],qa.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],qa.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],qa.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},qa.excludedProperties=[],qa.juiceDocument=cd,qa.inlineDocument=ed;function ed(Ed,Ad,Td){Td=Td||{};var Id=utils$3.parseCSS(Ad),Bd=[],Rd="style",Od={};if(Td.styleAttributeName&&(Rd=Td.styleAttributeName),Id.forEach(Fd),Bd.forEach(jd),Td.inlinePseudoElements&&Bd.forEach(Vd),Td.applyWidthAttributes&&Bd.forEach(function(Xd){Qd(Xd,"width")}),Td.applyHeightAttributes&&Bd.forEach(function(Xd){Qd(Xd,"height")}),Td.applyAttributesTableElements&&Bd.forEach(Kd),Td.insert
`+Ad.extraCss,ed(Ed,Td,Ad),Ed}function dd(Ed,Ad){var Td=[],Id=Ed("style"),Bd,Rd,Od;return Id.each(function(){if(Od=this,Bd=Od.childNodes,Bd.length!==1){Ad.removeStyleTags&&Ed(Od).remove();return}if(Rd=Bd[0].data,Ad.applyStyleTags&&Ed(Od).attr("data-embed")===void 0&&Td.push(Rd),Ad.removeStyleTags&&Ed(Od).attr("data-embed")===void 0){var Md=Od.childNodes[0].nodeValue,Ld=utils$3.getPreservedText(Md,{mediaQueries:Ad.preserveMediaQueries,fontFaces:Ad.preserveFontFaces,keyFrames:Ad.preserveKeyFrames,pseudos:Ad.preservePseudos},qa.ignoredPseudos);Ld?Od.childNodes[0].nodeValue=Ld:Ed(Od).remove()}Ed(Od).removeAttr("data-embed")}),Td}function _d(Ed,Ad){var Td=dd(Ed,Ad),Id=Td.join(`
`);return Id}return qa},cheerio=cheerioExports,makeJuiceClient=inline$2,juiceClient=makeJuiceClient(function(Ra,qa){return cheerio(Ra,{xmlMode:qa&&qa.xmlMode},juiceDocument,[qa])}),juiceDocument=function(Ra,qa){return juiceClient.juiceDocument(Ra,qa)};juiceClient.inlineContent=function(Ra,qa,ed){return cheerio(Ra,{xmlMode:ed&&ed.xmlMode},juiceClient.inlineDocument,[qa,ed])};juiceClient.codeBlocks=cheerio.codeBlocks;var client=juiceClient;const juice=getDefaultExportFromCjs(client);var $s$2=Object.create,je$4=Object.defineProperty,Vs$1=Object.getOwnPropertyDescriptor,qs$2=Object.getOwnPropertyNames,zs$1=Object.getPrototypeOf,Ks$2=Object.prototype.hasOwnProperty,Hs$2=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Ws$1=(Ra,qa)=>{for(var ed in qa)je$4(Ra,ed,{get:qa[ed],enumerable:!0})},Js$1=(Ra,qa,ed,td)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let rd of qs$2(qa))!Ks$2.call(Ra,rd)&&rd!==ed&&je$4(Ra,rd,{get:()=>qa[rd],enumerable:!(td=Vs$1(qa,rd))||td.enumerable});return Ra},vt$3=(Ra,qa,ed)=>(ed=Ra!=null?$s$2(zs$1(Ra)):{},Js$1(je$4(ed,"default",{value:Ra,enumerable:!0}),Ra)),At$5=Hs$2(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(Hd,kd){if(Hd==null)return{};var Gd={},Zd=Object.keys(Hd),xf,qf;for(qf=0;qf<Zd.length;qf++)xf=Zd[qf],!(kd.indexOf(xf)>=0)&&(Gd[xf]=Hd[xf]);return Gd}var ed=class{constructor(Hd,kd,Gd){this.line=void 0,this.column=void 0,this.index=void 0,this.line=Hd,this.column=kd,this.index=Gd}},td=class{constructor(Hd,kd){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=Hd,this.end=kd}};function rd(Hd,kd){let{line:Gd,column:Zd,index:xf}=Hd;return new ed(Gd,Zd+kd,xf+kd)}var sd="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",od={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:sd},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:sd}},ld={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},ud=Hd=>Hd.type==="UpdateExpression"?ld.UpdateExpression[`${Hd.prefix}`]:ld[Hd.type],cd={AccessorIsGenerator:({kind:Hd})=>`A ${Hd}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'."
- Did you mean \`export { '${Hd}' as '${kd}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:Hd})=>`'${Hd==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:Hd})=>`Unsyntactic ${Hd==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:Hd})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${Hd}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:Hd})=>`\`import()\` requires exactly ${Hd===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:Hd})=>`Expected number in radix ${Hd}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:Hd})=>`Escape sequence in keyword ${Hd}.`,InvalidIdentifier:({identifierName:Hd})=>`Invalid identifier ${Hd}.`,InvalidLhs:({ancestor:Hd})=>`Invalid left-hand side in ${ud(Hd)}.`,InvalidLhsBinding:({ancestor:Hd})=>`Binding invalid left-hand side in ${ud(Hd)}.`,InvalidLhsOptionalChaining:({ancestor:Hd})=>`Invalid optional chaining in the left-hand side of ${ud(Hd)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:Hd})=>`Unexpected character '${Hd}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:Hd})=>`Private name #${Hd} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:Hd})=>`Label '${Hd}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:Hd})=>`This experimental syntax requires enabling the parser plugin: ${Hd.map(kd=>JSON.stringify(kd)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:Hd})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${Hd.map(kd=>JSON.stringify(kd)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:Hd})=>`Duplicate key "${Hd}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:Hd})=>`An export name cannot include a lone surrogate, found '\\u${Hd.toString(16)}'.`,ModuleExportUndefined:({localName:Hd})=>`Export '${Hd}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals ar
`,++Gd,Wm===13&&kd.charCodeAt(Gd)===10&&++Gd,++xf,Mm=Zd=Gd):qf.unterminated(ih,mh,wh):++Gd}return{pos:Gd,str:Th,firstInvalidLoc:dm,lineStart:Zd,curLine:xf,containsInvalid:!!dm}}function y_(Hd,kd,Gd,Zd){return Hd==="template"?kd===96||kd===36&&Gd.charCodeAt(Zd+1)===123:kd===(Hd==="double"?34:39)}function x_(Hd,kd,Gd,Zd,xf,qf){let ih=!xf;kd++;let mh=Th=>({pos:kd,ch:Th,lineStart:Gd,curLine:Zd}),wh=Hd.charCodeAt(kd++);switch(wh){case 110:return mh(`
`);case 114:return mh("\r");case 120:{let Th;return{code:Th,pos:kd}=u_(Hd,kd,Gd,Zd,2,!1,ih,qf),mh(Th===null?null:String.fromCharCode(Th))}case 117:{let Th;return{code:Th,pos:kd}=G_(Hd,kd,Gd,Zd,ih,qf),mh(Th===null?null:String.fromCodePoint(Th))}case 116:return mh(" ");case 98:return mh("\b");case 118:return mh("\v");case 102:return mh("\f");case 13:Hd.charCodeAt(kd)===10&&++kd;case 10:Gd=kd,++Zd;case 8232:case 8233:return mh("");case 56:case 57:if(xf)return mh(null);qf.strictNumericEscape(kd-1,Gd,Zd);default:if(wh>=48&&wh<=55){let Th=kd-1,dm=/^[0-7]+/.exec(Hd.slice(Th,kd+2))[0],Mm=parseInt(dm,8);Mm>255&&(dm=dm.slice(0,-1),Mm=parseInt(dm,8)),kd+=dm.length-1;let Hm=Hd.charCodeAt(kd);if(dm!=="0"||Hm===56||Hm===57){if(xf)return mh(null);qf.strictNumericEscape(Th,Gd,Zd)}return mh(String.fromCharCode(Mm))}return mh(String.fromCharCode(wh))}}function u_(Hd,kd,Gd,Zd,xf,qf,ih,mh){let wh=kd,Th;return{n:Th,pos:kd}=Nm(Hd,kd,Gd,Zd,16,xf,qf,!1,mh,!ih),Th===null&&(ih?mh.invalidEscapeSequence(wh,Gd,Zd):kd=wh-1),{code:Th,pos:kd}}function Nm(Hd,kd,Gd,Zd,xf,qf,ih,mh,wh,Th){let dm=kd,Mm=xf===16?jm.hex:jm.decBinOct,Hm=xf===16?gm.hex:xf===10?gm.dec:xf===8?gm.oct:gm.bin,Wm=!1,c_=0;for(let Q_=0,v_=qf??1/0;Q_<v_;++Q_){let D_=Hd.charCodeAt(kd),_g;if(D_===95&&mh!=="bail"){let Db=Hd.charCodeAt(kd-1),av=Hd.charCodeAt(kd+1);if(mh){if(Number.isNaN(av)||!Hm(av)||Mm.has(Db)||Mm.has(av)){if(Th)return{n:null,pos:kd};wh.unexpectedNumericSeparator(kd,Gd,Zd)}}else{if(Th)return{n:null,pos:kd};wh.numericSeparatorInEscapeSequence(kd,Gd,Zd)}++kd;continue}if(D_>=97?_g=D_-97+10:D_>=65?_g=D_-65+10:cm(D_)?_g=D_-48:_g=1/0,_g>=xf){if(_g<=9&&Th)return{n:null,pos:kd};if(_g<=9&&wh.invalidDigit(kd,Gd,Zd,xf))_g=0;else if(ih)_g=0,Wm=!0;else break}++kd,c_=c_*xf+_g}return kd===dm||qf!=null&&kd-dm!==qf||Wm?{n:null,pos:kd}:{n:c_,pos:kd}}function G_(Hd,kd,Gd,Zd,xf,qf){let ih=Hd.charCodeAt(kd),mh;if(ih===123){if(++kd,{code:mh,pos:kd}=u_(Hd,kd,Gd,Zd,Hd.indexOf("}",kd)-kd,!0,xf,qf),++kd,mh!==null&&mh>1114111)if(xf)qf.invalidCodePoint(kd,Gd,Zd);else return{code:null,pos:kd}}else({code:mh,pos:kd}=u_(Hd,kd,Gd,Zd,4,!1,xf,qf));return{code:mh,pos:kd}}function p_(Hd,kd,Gd){return new ed(Gd,Hd-kd,Hd)}var r_=new Set([103,109,115,105,121,117,100,118]),Lm=class{constructor(Hd){this.type=Hd.type,this.value=Hd.value,this.start=Hd.start,this.end=Hd.end,this.loc=new td(Hd.startLoc,Hd.endLoc)}},g_=class extends oh{constructor(Hd,kd){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Gd,Zd,xf,qf)=>this.options.errorRecovery?(this.raise(Od.InvalidDigit,p_(Gd,Zd,xf),{radix:qf}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Od.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Od.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Od.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Od.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(Gd,Zd,xf)=>{this.recordStrictModeErrors(Od.StrictNumericEscape,p_(Gd,Zd,xf))},unterminated:(Gd,Zd,xf)=>{throw this.raise(Od.UnterminatedString,p_(Gd-1,Zd,xf))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Od.StrictNumericEscape),unterminated:(Gd,Zd,xf)=>{throw this.raise(Od.UnterminatedTemplate,p_(Gd,Zd,xf))}}),this.state=new Xh,this.state.init(Hd),this.input=kd,this.length=kd.length,this.comments=[],this.isLookahead=!1}pushToken(Hd){this.tokens.length=this.state.tokensLength,this.tokens.push(Hd),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Lm(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(Hd){return this.match(Hd)?(this.next(),!0):!1}match(Hd){return this.state.type===Hd}createLookaheadState(Hd){return{pos:Hd.pos,value:null,type:Hd.type,start:Hd.start,end:Hd.end,context:[this.curContext
`:`\r
`):Zd=String.fromCharCode(Gd),++this.state.curLine,this.state.lineStart=this.state.pos,Zd}jsxReadString(kd){let Gd="",Zd=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Od.UnterminatedString,this.state.startLoc);let xf=this.input.charCodeAt(this.state.pos);if(xf===kd)break;xf===38?(Gd+=this.input.slice(Zd,this.state.pos),Gd+=this.jsxReadEntity(),Zd=this.state.pos):bh(xf)?(Gd+=this.input.slice(Zd,this.state.pos),Gd+=this.jsxReadNewLine(!1),Zd=this.state.pos):++this.state.pos}Gd+=this.input.slice(Zd,this.state.pos++),this.finishToken(133,Gd)}jsxReadEntity(){let kd=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Gd=10;this.codePointAtPos(this.state.pos)===120&&(Gd=16,++this.state.pos);let Zd=this.readInt(Gd,void 0,!1,"bail");if(Zd!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(Zd)}else{let Gd=0,Zd=!1;for(;Gd++<10&&this.state.pos<this.length&&!(Zd=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(Zd){this.input.slice(kd,this.state.pos);let xf;++this.state.pos}}return this.state.pos=kd,"&"}jsxReadWord(){let kd,Gd=this.state.pos;do kd=this.input.charCodeAt(++this.state.pos);while(Yh(kd)||kd===45);this.finishToken(140,this.input.slice(Gd,this.state.pos))}jsxParseIdentifier(){let kd=this.startNode();return this.match(140)?kd.name=this.state.value:If(this.state.type)?kd.name=ph(this.state.type):this.unexpected(),this.next(),this.finishNode(kd,"JSXIdentifier")}jsxParseNamespacedName(){let kd=this.state.startLoc,Gd=this.jsxParseIdentifier();if(!this.eat(14))return Gd;let Zd=this.startNodeAt(kd);return Zd.namespace=Gd,Zd.name=this.jsxParseIdentifier(),this.finishNode(Zd,"JSXNamespacedName")}jsxParseElementName(){let kd=this.state.startLoc,Gd=this.jsxParseNamespacedName();if(Gd.type==="JSXNamespacedName")return Gd;for(;this.eat(16);){let Zd=this.startNodeAt(kd);Zd.object=Gd,Zd.property=this.jsxParseIdentifier(),Gd=this.finishNode(Zd,"JSXMemberExpression")}return Gd}jsxParseAttributeValue(){let kd;switch(this.state.type){case 5:return kd=this.startNode(),this.setContext(Qd.brace),this.next(),kd=this.jsxParseExpressionContainer(kd,Qd.j_oTag),kd.expression.type==="JSXEmptyExpression"&&this.raise(ag.AttributeIsEmpty,kd),kd;case 142:case 133:return this.parseExprAtom();default:throw this.raise(ag.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let kd=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(kd,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(kd){return this.next(),kd.expression=this.parseExpression(),this.setContext(Qd.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(kd,"JSXSpreadChild")}jsxParseExpressionContainer(kd,Gd){if(this.match(8))kd.expression=this.jsxParseEmptyExpression();else{let Zd=this.parseExpression();kd.expression=Zd}return this.setContext(Gd),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(kd,"JSXExpressionContainer")}jsxParseAttribute(){let kd=this.startNode();return this.match(5)?(this.setContext(Qd.brace),this.next(),this.expect(21),kd.argument=this.parseMaybeAssignAllowIn(),this.setContext(Qd.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(kd,"JSXSpreadAttribute")):(kd.name=this.jsxParseNamespacedName(),kd.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(kd,"JSXAttribute"))}jsxParseOpeningElementAt(kd){let Gd=this.startNodeAt(kd);return this.eat(143)?this.finishNode(Gd,"JSXOpeningFragment"):(Gd.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Gd))}jsxParseOpeningElementAfterName(kd){let Gd=[];for(;!this.match(56)&&!this.match(143);)Gd.push(this.jsxParseAttribute());return kd.attributes=Gd,kd.selfClosing=this.eat(56),this.expect(143),this.finishNode(kd,"JSXOpeningElement")}jsxParseClosingElementAt(kd){let Gd=this.startNodeAt(kd);return this.eat(143)?this.finishNode(Gd,"JSXClosingFragment"):(Gd.name=this.jsxParseElementName(),this.expect(143),this.finishNode(Gd,"JSXClosingElement"))}jsxParseElementAt(kd){let Gd=this.startNodeAt(kd),Zd=[],xf
`),cooked:xf===null?null:xf.slice(1,wh)},ih.tail=mh,this.next();let dm=this.finishNode(ih,"TemplateElement");return this.resetEndLocation(dm,rd(this.state.lastTokEndLoc,wh)),dm}parseTemplate(Hd){let kd=this.startNode(),Gd=this.parseTemplateElement(Hd),Zd=[Gd],xf=[];for(;!Gd.tail;)xf.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),Zd.push(Gd=this.parseTemplateElement(Hd));return kd.expressions=xf,kd.quasis=Zd,this.finishNode(kd,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(Hd,kd,Gd,Zd){Gd&&this.expectPlugin("recordAndTuple");let xf=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let qf=Object.create(null),ih=!0,mh=this.startNode();for(mh.properties=[],this.next();!this.match(Hd);){if(ih)ih=!1;else if(this.expect(12),this.match(Hd)){this.addTrailingCommaExtraToNode(mh);break}let Th;kd?Th=this.parseBindingProperty():(Th=this.parsePropertyDefinition(Zd),this.checkProto(Th,Gd,qf,Zd)),Gd&&!this.isObjectProperty(Th)&&Th.type!=="SpreadElement"&&this.raise(Od.InvalidRecordProperty,Th),Th.shorthand&&this.addExtra(Th,"shorthand",!0),mh.properties.push(Th)}this.next(),this.state.inFSharpPipelineDirectBody=xf;let wh="ObjectExpression";return kd?wh="ObjectPattern":Gd&&(wh="RecordExpression"),this.finishNode(mh,wh)}addTrailingCommaExtraToNode(Hd){this.addExtra(Hd,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(Hd,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(Hd){return!Hd.computed&&Hd.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(Hd){let kd=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Od.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)kd.push(this.parseDecorator());let Gd=this.startNode(),Zd=!1,xf=!1,qf;if(this.match(21))return kd.length&&this.unexpected(),this.parseSpread();kd.length&&(Gd.decorators=kd,kd=[]),Gd.method=!1,Hd&&(qf=this.state.startLoc);let ih=this.eat(55);this.parsePropertyNamePrefixOperator(Gd);let mh=this.state.containsEsc;if(this.parsePropertyName(Gd,Hd),!ih&&!mh&&this.maybeAsyncOrAccessorProp(Gd)){let{key:wh}=Gd,Th=wh.name;Th==="async"&&!this.hasPrecedingLineBreak()&&(Zd=!0,this.resetPreviousNodeTrailingComments(wh),ih=this.eat(55),this.parsePropertyName(Gd)),(Th==="get"||Th==="set")&&(xf=!0,this.resetPreviousNodeTrailingComments(wh),Gd.kind=Th,this.match(55)&&(ih=!0,this.raise(Od.AccessorIsGenerator,this.state.curPosition(),{kind:Th}),this.next()),this.parsePropertyName(Gd))}return this.parseObjPropValue(Gd,qf,ih,Zd,!1,xf,Hd)}getGetterSetterExpectedParamCount(Hd){return Hd.kind==="get"?0:1}getObjectOrClassMethodParams(Hd){return Hd.params}checkGetterSetterParams(Hd){var kd;let Gd=this.getGetterSetterExpectedParamCount(Hd),Zd=this.getObjectOrClassMethodParams(Hd);Zd.length!==Gd&&this.raise(Hd.kind==="get"?Od.BadGetterArity:Od.BadSetterArity,Hd),Hd.kind==="set"&&((kd=Zd[Zd.length-1])==null?void 0:kd.type)==="RestElement"&&this.raise(Od.BadSetterRestParameter,Hd)}parseObjectMethod(Hd,kd,Gd,Zd,xf){if(xf){let qf=this.parseMethod(Hd,kd,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(qf),qf}if(Gd||kd||this.match(10))return Zd&&this.unexpected(),Hd.kind="method",Hd.method=!0,this.parseMethod(Hd,kd,Gd,!1,!1,"ObjectMethod")}parseObjectProperty(Hd,kd,Gd,Zd){if(Hd.shorthand=!1,this.eat(14))return Hd.value=Gd?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(Zd),this.finishNode(Hd,"ObjectProperty");if(!Hd.computed&&Hd.key.type==="Identifier"){if(this.checkReservedWord(Hd.key.name,Hd.key.loc.start,!0,!1),Gd)Hd.value=this.parseMaybeDefault(kd,mg(Hd.key));else if(this.match(29)){let xf=this.state.startLoc;Zd!=null?Zd.shorthandAssignLoc===null&&(Zd.shorthandAssignLoc=xf):this.raise(Od.InvalidCoverInitializedName,xf),Hd.value=this.parseMaybeDefault(kd,mg(Hd.key))}else Hd.value=mg(Hd.key);return Hd.shorthand=!0,this.finishNode(Hd,"ObjectProperty")}}parseObjPropValue(Hd,kd,Gd,Zd,xf,qf,ih){let mh=this.parseObjectMethod(Hd,Gd,Zd,xf,qf)||this.parseObjectPr
`)return qa-2;if(rd===`
`||rd==="\r"||rd==="\u2028"||rd==="\u2029")return qa-1}else{if(rd==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(rd===`
`||rd==="\r"||rd==="\u2028"||rd==="\u2029")return qa+1}return qa}var us$2=mr$2;function yr$2(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?cs$3(Ra,qa):qa}var fs$3=yr$2;function xr$3(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=ls$1(Ra,td),td=ps$1(Ra,td),td=fs$3(Ra,td),td=us$2(Ra,td);return td}var ds$1=xr$3;function Pr$3(Ra){let qa=[];for(let ed of Ra)try{return ed()}catch(td){qa.push(td)}throw Object.assign(new Error("All combinations failed"),{errors:qa})}var ms$3=Pr$3;function gr$2(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var Oe$4=gr$2,Tr$3=(Ra,qa,ed)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[ed<0?qa.length+ed:ed]:qa.at(ed)},St$3=Tr$3;function br$4(Ra){return Array.isArray(Ra)&&Ra.length>0}var Pe$4=br$4;function D$2(Ra){var qa,ed,td;let rd=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,sd=(td=((ed=Ra.declaration)==null?void 0:ed.decorators)??Ra.decorators)==null?void 0:td[0];return sd?Math.min(D$2(sd),rd):rd}function B$2(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function Ar$2(Ra){let qa=new Set(Ra);return ed=>qa.has(ed==null?void 0:ed.type)}var ys$3=Ar$2,Sr$3=ys$3(["Block","CommentBlock","MultiLine"]),ge$4=Sr$3;function wr$3(Ra){let qa=`*${Ra.value}*`.split(`
`);return qa.length>1&&qa.every(ed=>ed.trimStart()[0]==="*")}var wt$2=wr$3;function Cr$1(Ra){return ge$4(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(Ra.value)}var xs$2=Cr$1,Te$3=null;function be$5(Ra){if(Te$3!==null&&typeof Te$3.property){let qa=Te$3;return Te$3=be$5.prototype=null,qa}return Te$3=be$5.prototype=Ra??Object.create(null),new be$5}var Er$2=10;for(let Ra=0;Ra<=Er$2;Ra++)be$5();function Ct$4(Ra){return be$5(Ra)}function Ir$3(Ra,qa="type"){Ct$4(Ra);function ed(td){let rd=td[qa],sd=Ra[rd];if(!Array.isArray(sd))throw Object.assign(new Error(`Missing visitor keys for '${rd}'.`),{node:td});return sd}return ed}var Ps$2=Ir$3,gs$3={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","vari
`;Ra=ie$3(!1,Ra.replace(Or$3,"").replace(Mr$3,""),Ur$3,"$1");let ed="";for(;ed!==Ra;)ed=Ra,Ra=ie$3(!1,Ra,Rr$2,`${qa}$1 $2${qa}`);Ra=Ra.replace(Ss$1,"").trimEnd();let td=Object.create(null),rd=ie$3(!1,Ra,ws$2,"").replace(Ss$1,"").trimEnd(),sd;for(;sd=ws$2.exec(Ra);){let od=ie$3(!1,sd[2],Br$4,"");if(typeof td[sd[1]]=="string"||Array.isArray(td[sd[1]])){let ld=td[sd[1]];td[sd[1]]=[..._r$3,...Array.isArray(ld)?ld:[ld],od]}else td[sd[1]]=od}return{comments:rd,pragmas:td}}function jr$3(Ra){let qa=Oe$4(Ra);qa&&(Ra=Ra.slice(qa.length+1));let ed=Cs$1(Ra),{pragmas:td,comments:rd}=Es$2(ed);return{shebang:qa,text:Ra,pragmas:td,comments:rd}}function Is$2(Ra){let{pragmas:qa}=jr$3(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function $r$3(Ra){return Ra=typeof Ra=="function"?{parse:Ra}:Ra,{astFormat:"estree",hasPragma:Is$2,locStart:D$2,locEnd:B$2,...Ra}}var G$4=$r$3;function Vr$3(Ra){let{filepath:qa}=Ra;if(qa){if(qa=qa.toLowerCase(),qa.endsWith(".cjs"))return"script";if(qa.endsWith(".mjs"))return"module"}}var Ns$1=Vr$3;function qr$3(Ra,qa){let{type:ed="JsExpressionRoot",rootMarker:td,text:rd}=qa,{tokens:sd,comments:od}=Ra;return delete Ra.tokens,delete Ra.comments,{tokens:sd,comments:od,type:ed,node:Ra,range:[0,rd.length],rootMarker:td}}var Ue$4=qr$3,re$4=Ra=>G$4(Jr$3(Ra)),zr$3={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}],"sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ks$1="v8intrinsic",vs$2=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],V$5=(Ra,qa=zr$3)=>({...qa,plugins:[...qa.plugins,...Ra]}),Kr$4=/@(?:no)?flow\b/u;function Hr$4(Ra,qa){var ed;if((ed=qa.filepath)!=null&&ed.endsWith(".js.flow"))return!0;let td=Oe$4(Ra);td&&(Ra=Ra.slice(td.length));let rd=ds$1(Ra,0);return rd!==!1&&(Ra=Ra.slice(0,rd)),Kr$4.test(Ra)}function Wr$3(Ra,qa,ed){let td=Ra(qa,ed),rd=td.errors.find(sd=>!Xr$3.has(sd.reasonCode));if(rd)throw rd;return td}function Jr$3({isExpression:Ra=!1,optionsCombinations:qa}){return(ed,td={})=>{if((td.parser==="babel"||td.parser==="__babel_estree")&&Hr$4(ed,td))return td.parser="babel-flow",Bs$2.parse(ed,td);let rd=qa;(td.__babelSourceType??Ns$1(td))==="script"&&(rd=rd.map(ud=>({...ud,sourceType:"script"})));let sd=/%[A-Z]/u.test(ed);ed.includes("|>")?rd=(sd?[...vs$2,ks$1]:vs$2).flatMap(ud=>rd.map(cd=>V$5([ud],cd))):sd&&(rd=rd.map(ud=>V$5([ks$1],ud)));let od=Ra?_e$4.parseExpression:_e$4.parse,ld;try{ld=ms$3(rd.map(ud=>()=>Wr$3(od,ed,ud)))}catch({errors:[ud]}){throw Re$5(ud)}return Ra&&(ld=Ue$4(ld,{text:ed,rootMarker:td.rootMarker})),As$2(ld,{parser:"babel",text:ed})}}var Xr$3=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Fs
`)return qa-2;if(rd===`
`||rd==="\r"||rd==="\u2028"||rd==="\u2029")return qa-1}else{if(rd==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(rd===`
`||rd==="\r"||rd==="\u2028"||rd==="\u2029")return qa+1}return qa}var Ue$3=$a$2;function Ka$1(Ra,qa,ed={}){let td=Ge$2(Ra,ed.backwards?qa-1:qa,ed),rd=Ue$3(Ra,td,ed);return td!==rd}var te$3=Ka$1;function za(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let ed=qa+2;ed<Ra.length;++ed)if(Ra.charAt(ed)==="*"&&Ra.charAt(ed+1)==="/")return ed+2}return qa}var Lt$2=za;function Qa(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?zs(Ra,qa):qa}var wt$1=Qa;function Za$1(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=Ks$1(Ra,td),td=Lt$2(Ra,td),td=Ge$2(Ra,td);return td=wt$1(Ra,td),td=Ue$3(Ra,td),td!==!1&&te$3(Ra,td)}var Ot$3=Za$1;function eo$1(Ra){return Array.isArray(Ra)&&Ra.length>0}var w$1=eo$1,dr$1="'",Qs$1='"';function to$1(Ra,qa){let ed=qa===!0||qa===dr$1?dr$1:Qs$1,td=ed===dr$1?Qs$1:dr$1,rd=0,sd=0;for(let od of Ra)od===ed?rd++:od===td&&sd++;return rd>sd?td:ed}var xr$2=to$1;function ro$1(Ra,qa,ed){let td=qa==='"'?"'":'"',rd=N$4(!1,Ra,/\\(.)|(["'])/gsu,(sd,od,ld)=>od===td?od:ld===qa?"\\"+ld:ld||(ed&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(od)?od:"\\"+od));return qa+rd+qa}var Zs$1=ro$1;function no$2(Ra,qa){let ed=Ra.slice(1,-1),td=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":xr$2(ed,qa.singleQuote);return Zs$1(ed,td,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var tt$3=no$2;function R$3(Ra){var qa,ed,td;let rd=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,sd=(td=((ed=Ra.declaration)==null?void 0:ed.decorators)??Ra.decorators)==null?void 0:td[0];return sd?Math.min(R$3(sd),rd):rd}function k$1(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function ht$3(Ra,qa){let ed=R$3(Ra);return Number.isInteger(ed)&&ed===R$3(qa)}function so$2(Ra,qa){let ed=k$1(Ra);return Number.isInteger(ed)&&ed===k$1(qa)}function eu$2(Ra,qa){return ht$3(Ra,qa)&&so$2(Ra,qa)}var Qt$2=null;function Zt$2(Ra){if(Qt$2!==null&&typeof Qt$2.property){let qa=Qt$2;return Qt$2=Zt$2.prototype=null,qa}return Qt$2=Zt$2.prototype=Ra??Object.create(null),new Zt$2}var uo$3=10;for(let Ra=0;Ra<=uo$3;Ra++)Zt$2();function In$1(Ra){return Zt$2(Ra)}function io$2(Ra,qa="type"){In$1(Ra);function ed(td){let rd=td[qa],sd=Ra[rd];if(!Array.isArray(sd))throw Object.assign(new Error(`Missing visitor keys for '${rd}'.`),{node:td});return sd}return ed}var hr$3=io$2,tu$3={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument
`):Ra.type==="UnaryExpression"?rr$2(Ra.argument,{printWidth:ed}):Ra.type==="CallExpression"&&Ra.arguments.length===0&&Ra.callee.type==="Identifier"?Ra.callee.name.length<=td-2:kr$2(Ra)}function Oe$3(Ra,qa){return X$4(qa)?Bt$4(qa):d$1(qa,g$3.Leading,ed=>te$3(Ra,k$1(ed)))}function nu$4(Ra){return Ra.quasis.some(qa=>qa.value.raw.includes(`
`))}function Lr$2(Ra,qa){return(Ra.type==="TemplateLiteral"&&nu$4(Ra)||Ra.type==="TaggedTemplateExpression"&&nu$4(Ra.quasi))&&!te$3(qa,R$3(Ra),{backwards:!0})}function wr$2(Ra){if(!d$1(Ra))return!1;let qa=O$3(!1,ct$1(Ra,g$3.Dangling),-1);return qa&&!re$3(qa)}function lu$3(Ra){if(Ra.length<=1)return!1;let qa=0;for(let ed of Ra)if(_t$2(ed)){if(qa+=1,qa>1)return!0}else if(L$4(ed)){for(let td of oe$3(ed))if(_t$2(td))return!0}return!1}function Or$2(Ra){let{node:qa,parent:ed,key:td}=Ra;return td==="callee"&&L$4(qa)&&L$4(ed)&&ed.arguments.length>0&&qa.arguments.length>ed.arguments.length}var xo$3=new Set(["!","-","+","~"]);function be$4(Ra,qa=2){if(qa<=0)return!1;if(Ra.type==="ChainExpression"||Ra.type==="TSNonNullExpression")return be$4(Ra.expression,qa);let ed=td=>be$4(td,qa-1);if(vn$2(Ra))return et$4(Ra.pattern??Ra.regex.pattern)<=5;if(kr$2(Ra)||Do$2(Ra)||Ra.type==="ArgumentPlaceholder")return!0;if(Ra.type==="TemplateLiteral")return Ra.quasis.every(td=>!td.value.raw.includes(`
`))&&Ra.expressions.every(ed);if(se$2(Ra))return Ra.properties.every(td=>!td.computed&&(td.shorthand||td.value&&ed(td.value)));if(U$3(Ra))return Ra.elements.every(td=>td===null||ed(td));if(lt$2(Ra)){if(Ra.type==="ImportExpression"||be$4(Ra.callee,qa)){let td=oe$3(Ra);return td.length<=qa&&td.every(ed)}return!1}return q$3(Ra)?be$4(Ra.object,qa)&&be$4(Ra.property,qa):Ra.type==="UnaryExpression"&&xo$3.has(Ra.operator)||Ra.type==="UpdateExpression"?be$4(Ra.argument,qa):!1}function fe$3(Ra){var qa;return((qa=Ra.extra)==null?void 0:qa.raw)??Ra.raw}function mu$3(Ra){return Ra}function ae$1(Ra,qa="es5"){return Ra.trailingComma==="es5"&&qa==="es5"||Ra.trailingComma==="all"&&(qa==="all"||qa==="es5")}function ie$2(Ra,qa){switch(Ra.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie$2(Ra.left,qa);case"MemberExpression":case"OptionalMemberExpression":return ie$2(Ra.object,qa);case"TaggedTemplateExpression":return Ra.tag.type==="FunctionExpression"?!1:ie$2(Ra.tag,qa);case"CallExpression":case"OptionalCallExpression":return Ra.callee.type==="FunctionExpression"?!1:ie$2(Ra.callee,qa);case"ConditionalExpression":return ie$2(Ra.test,qa);case"UpdateExpression":return!Ra.prefix&&ie$2(Ra.argument,qa);case"BindExpression":return Ra.object&&ie$2(Ra.object,qa);case"SequenceExpression":return ie$2(Ra.expressions[0],qa);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie$2(Ra.expression,qa);default:return qa(Ra)}}var su$3={"==":!0,"!=":!0,"===":!0,"!==":!0},br$3={"*":!0,"/":!0,"%":!0},_n$3={">>":!0,">>>":!0,"<<":!0};function nr$2(Ra,qa){return!(er$2(qa)!==er$2(Ra)||Ra==="**"||su$3[Ra]&&su$3[qa]||qa==="%"&&br$3[Ra]||Ra==="%"&&br$3[qa]||qa!==Ra&&br$3[qa]&&br$3[Ra]||_n$3[Ra]&&_n$3[qa])}var ho$2=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((Ra,qa)=>Ra.map(ed=>[ed,qa])));function er$2(Ra){return ho$2.get(Ra)}function yu$2(Ra){return!!_n$3[Ra]||Ra==="|"||Ra==="^"||Ra==="&"}function Du$2(Ra){var qa;if(Ra.rest)return!0;let ed=K$3(Ra);return((qa=O$3(!1,ed,-1))==null?void 0:qa.type)==="RestElement"}var wn$3=new WeakMap;function K$3(Ra){if(wn$3.has(Ra))return wn$3.get(Ra);let qa=[];return Ra.this&&qa.push(Ra.this),Array.isArray(Ra.parameters)?qa.push(...Ra.parameters):Array.isArray(Ra.params)&&qa.push(...Ra.params),Ra.rest&&qa.push(Ra.rest),wn$3.set(Ra,qa),qa}function fu$1(Ra,qa){let{node:ed}=Ra,td=0,rd=sd=>qa(sd,td++);ed.this&&Ra.call(rd,"this"),Array.isArray(ed.parameters)?Ra.each(rd,"parameters"):Array.isArray(ed.params)&&Ra.each(rd,"params"),ed.rest&&Ra.call(rd,"rest")}var On$3=new WeakMap;function oe$3(Ra){if(On$3.has(Ra))return On$3.get(Ra);if(Ra.type==="ChainExpression")return oe$3(Ra.expression);let qa=Ra.arguments;return Ra.type==="ImportExpression"&&(qa=[Ra.source],Ra.attributes&&qa.push(Ra.attributes),Ra.options&&qa.push(Ra.options)),On$3.set(Ra,qa),qa}function Rt$4(Ra,qa){let{node:ed}=Ra;if(ed.type==="ChainExpression")return Ra.call(()=>Rt$4(Ra,qa),"expression");ed.type==="ImportExpression"?(Ra.call(td=>qa(td,0),"source"),ed.attributes&&Ra.call(td=>qa(td,1),"attributes"),ed.options&&Ra.call(td=>qa(td,1),"options")):Ra.each(qa,"arguments")}function Rn$2(Ra,qa){let ed=[];if(Ra.type==="ChainExpression"&&(Ra=Ra.expression,ed.push("expression")),Ra.type==="ImportExpression"){if(qa===0||qa===(Ra.attributes||Ra.options?-2:-1))return[...ed,"source"];if(Ra.attributes&&(qa===1||qa===-1))return[...ed,"attributes"];if(Ra.options&&(qa===1||qa===-1))return[...ed,"options"];throw new RangeError("Invalid argument index")}if(qa<0&&(qa=Ra.arguments.length+qa),qa<0||qa>=Ra.arguments.length)throw new RangeError("Invalid argument index");return[...ed,"arguments",qa]}function sr$2(Ra){return Ra.value.trim()==="prettier-ignore"&&!Ra.unignore}function Bt$4(Ra){return(Ra==null?void 0:Ra.prettierIgnore)||d$1(Ra,g$3.PrettierIgnore)}var g$3={Leading:2,Trailing:4,
Expected it to be 'string' or 'object'.`;if(ut$1(Ra))throw new Error("doc is valid.");let ed=Object.prototype.toString.call(Ra);if(ed!=="[object Object]")return`Unexpected doc '${ed}'.`;let td=Bo$2([...jr$2].map(rd=>`'${rd}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${td}.`}var Jn$4=class extends Error{constructor(ed){super(bo$1(ed));Ym(this,"name","InvalidDocError");this.doc=ed}},Ct$3=Jn$4,Au$1={};function Po$1(Ra,qa,ed,td){let rd=[Ra];for(;rd.length>0;){let sd=rd.pop();if(sd===Au$1){ed(rd.pop());continue}ed&&rd.push(sd,Au$1);let od=ut$1(sd);if(!od)throw new Ct$3(sd);if((qa==null?void 0:qa(sd))!==!1)switch(od){case _e$3:case Pe$3:{let ld=od===_e$3?sd:sd.parts;for(let ud=ld.length,cd=ud-1;cd>=0;--cd)rd.push(ld[cd]);break}case xe$3:rd.push(sd.flatContents,sd.breakContents);break;case le$3:if(td&&sd.expandedStates)for(let ld=sd.expandedStates.length,ud=ld-1;ud>=0;--ud)rd.push(sd.expandedStates[ud]);else rd.push(sd.contents);break;case Ye$2:case Xe$2:case He$2:case je$3:case Ve$3:rd.push(sd.contents);break;case rt$2:case nt$2:case st$2:case $e$3:case me$1:case ve$3:break;default:throw new Ct$3(sd)}}}var qn$3=Po$1,Tu$2=()=>{},vr$1=Tu$2;function f$1(Ra){return{type:Xe$2,contents:Ra}}function he$2(Ra,qa){return{type:Ye$2,contents:qa,n:Ra}}function l$1(Ra,qa={}){return vr$1(qa.expandedStates),{type:le$3,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function du$3(Ra){return he$2(Number.NEGATIVE_INFINITY,Ra)}function Mr$2(Ra){return he$2(-1,Ra)}function ze$3(Ra,qa){return l$1(Ra[0],{...qa,expandedStates:Ra})}function qt$2(Ra){return{type:Pe$3,parts:Ra}}function b$2(Ra,qa="",ed={}){return{type:xe$3,breakContents:Ra,flatContents:qa,groupId:ed.groupId}}function At$4(Ra,qa){return{type:He$2,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function Wn$2(Ra){return{type:Ve$3,contents:Ra}}var ke$3={type:$e$3},Ee$3={type:ve$3},Gn$4={type:me$1,hard:!0},ko$1={type:me$1,hard:!0,literal:!0},x$3={type:me$1},E$2={type:me$1,soft:!0},F$1=[Gn$4,Ee$3],Rr$1=[ko$1,Ee$3],Un$3={type:nt$2};function P$3(Ra,qa){let ed=[];for(let td=0;td<qa.length;td++)td!==0&&ed.push(Ra),ed.push(qa[td]);return ed}function xu$1(Ra,qa,ed){let td=Ra;if(qa>0){for(let rd=0;rd<Math.floor(qa/ed);++rd)td=f$1(td);td=he$2(qa%ed,td),td=he$2(Number.NEGATIVE_INFINITY,td)}return td}function it$2(Ra,qa){return Ra?{type:je$3,label:Ra,contents:qa}:qa}function mt$3(Ra,qa){if(typeof Ra=="string")return qa(Ra);let ed=new Map;return td(Ra);function td(sd){if(ed.has(sd))return ed.get(sd);let od=rd(sd);return ed.set(sd,od),od}function rd(sd){switch(ut$1(sd)){case _e$3:return qa(sd.map(td));case Pe$3:return qa({...sd,parts:sd.parts.map(td)});case xe$3:return qa({...sd,breakContents:td(sd.breakContents),flatContents:td(sd.flatContents)});case le$3:{let{expandedStates:od,contents:ld}=sd;return od?(od=od.map(td),ld=od[0]):ld=td(ld),qa({...sd,contents:ld,expandedStates:od})}case Ye$2:case Xe$2:case He$2:case je$3:case Ve$3:return qa({...sd,contents:td(sd.contents)});case rt$2:case nt$2:case st$2:case $e$3:case me$1:case ve$3:return qa(sd);default:throw new Ct$3(sd)}}}function gu$2(Ra,qa,ed){let td=ed,rd=!1;function sd(od){if(rd)return!1;let ld=qa(od);ld!==void 0&&(rd=!0,td=ld)}return qn$3(Ra,sd),td}function Io$1(Ra){if(Ra.type===le$3&&Ra.break||Ra.type===me$1&&Ra.hard||Ra.type===ve$3)return!0}function ne$3(Ra){return gu$2(Ra,Io$1,!1)}function hu$3(Ra){if(Ra.length>0){let qa=O$3(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Su$1(Ra){let qa=new Set,ed=[];function td(sd){if(sd.type===ve$3&&hu$3(ed),sd.type===le$3){if(ed.push(sd),qa.has(sd))return!1;qa.add(sd)}}function rd(sd){sd.type===le$3&&ed.pop().break&&hu$3(ed)}qn$3(Ra,td,rd,!0)}function Lo$3(Ra){return Ra.type===me$1&&!Ra.hard?Ra.soft?"":" ":Ra.type===xe$3?Ra.flatContents:Ra}function ur$2(Ra){return mt$3(Ra,Lo$3)}function wo$2(Ra){switch(ut$1(Ra)){case Pe$3:if(Ra.parts.every(qa=>qa===""))return"";break;case le$3:if(!Ra.contents&&!Ra.id&&!Ra.break&&!Ra.expandedStates)return"";if(Ra.contents.type===le$3&&Ra.contents.id===Ra.id&&Ra.contents.break===Ra.break&&Ra.contents.expandedStates===Ra.expandedStates)return Ra.contents;break;case Ye$2:case Xe$2:case He$2:case Ve$3:if(!Ra.contents)return"";break;case xe$3:if(!Ra.flatContents&&!Ra.breakContents)return"";break;case _e$3:{let qa=[];for(let ed of Ra){if(!ed)continue;let[t
`)):ed)}function Oo$1(Ra){if(Ra.type===me$1)return!0}function Bu$1(Ra){return gu$2(Ra,Oo$1,!1)}function ir$3(Ra,qa){return Ra.type===je$3?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}function _o$2(Ra){let qa=`*${Ra.value}*`.split(`
`);return qa.length>1&&qa.every(ed=>ed.trimStart()[0]==="*")}var bu$2=_o$2;function Pu$1(Ra,qa){let ed=Ra.node;if(vt$2(ed))return qa.originalText.slice(R$3(ed),k$1(ed)).trimEnd();if(re$3(ed))return bu$2(ed)?jo$2(ed):["/*",Ie$2(ed.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(ed))}function jo$2(Ra){let qa=Ra.value.split(`
`);return["/*",P$3(F$1,qa.map((ed,td)=>td===0?ed.trimEnd():" "+(td<qa.length-1?ed.trim():ed.trimStart()))),"*/"]}var Kn$3={};Ar$1(Kn$3,{endOfLine:()=>Go$1,ownLine:()=>Wo$2,remaining:()=>Uo$3});function vo(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",ed=String(Ra.name||Ra.id&&(typeof Ra.id=="object"?Ra.id.name:Ra.id)||Ra.key&&(typeof Ra.key=="object"?Ra.key.name:Ra.key)||Ra.value&&(typeof Ra.value=="object"?"":String(Ra.value))||Ra.operator||"");return ed.length>20&&(ed=ed.slice(0,19)+"…"),qa+(ed?" "+ed:"")}function Nn$3(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=vo(Ra)}function ce$3(Ra,qa){qa.leading=!0,qa.trailing=!1,Nn$3(Ra,qa)}function Le$3(Ra,qa,ed){qa.leading=!1,qa.trailing=!1,ed&&(qa.marker=ed),Nn$3(Ra,qa)}function z$3(Ra,qa){qa.leading=!1,qa.trailing=!0,Nn$3(Ra,qa)}function Mo$3(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=Ge$2(Ra,td),td=Lt$2(Ra,td),td=wt$1(Ra,td),td=Ue$3(Ra,td);return td}var yt$2=Mo$3;function Ro$1(Ra,qa){let ed=yt$2(Ra,qa);return ed===!1?"":Ra.charAt(ed)}var ge$3=Ro$1;function Jo$2(Ra,qa,ed){for(let td=qa;td<ed;++td)if(Ra.charAt(td)===`
`)return!0;return!1}var de$2=Jo$2;function qo$1(Ra){return re$3(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(Ra.value)}var ku$1=qo$1;function Wo$2(Ra){return[Mu$2,Lu$1,_u$2,ep,Xo$1,Yn$3,Hn$2,Iu$2,wu$2,sp,rp,$n$4,vu$3,up,Ou$2,ju$2,Vn$3,Yo$1,yp].some(qa=>qa(Ra))}function Go$1(Ra){return[No$1,_u$2,Lu$1,vu$3,Yn$3,Hn$2,Iu$2,wu$2,ju$2,tp,np,$n$4,op$1,Vn$3,lp,mp].some(qa=>qa(Ra))}function Uo$3(Ra){return[Mu$2,Yn$3,Hn$2,Ho$3,Zo$2,Ou$2,$n$4,Qo$2,zo$1,cp,Vn$3,pp].some(qa=>qa(Ra))}function bt$4(Ra,qa){let ed=(Ra.body||Ra.properties).find(({type:td})=>td!=="EmptyStatement");ed?ce$3(ed,qa):Le$3(Ra,qa)}function Xn$4(Ra,qa){Ra.type==="BlockStatement"?bt$4(Ra,qa):ce$3(Ra,qa)}function No$1({comment:Ra,followingNode:qa}){return qa&&ku$1(Ra)?(ce$3(qa,Ra),!0):!1}function Yn$3({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td,text:rd}){if((ed==null?void 0:ed.type)!=="IfStatement"||!td)return!1;if(ge$3(rd,k$1(Ra))===")")return z$3(qa,Ra),!0;if(qa===ed.consequent&&td===ed.alternate){if(qa.type==="BlockStatement")z$3(qa,Ra);else{let sd=vt$2(Ra)||Ra.loc.start.line===Ra.loc.end.line,od=Ra.loc.start.line===qa.loc.start.line;sd&&od?z$3(qa,Ra):Le$3(ed,Ra)}return!0}return td.type==="BlockStatement"?(bt$4(td,Ra),!0):td.type==="IfStatement"?(Xn$4(td.consequent,Ra),!0):ed.consequent===td?(ce$3(td,Ra),!0):!1}function Hn$2({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td,text:rd}){return(ed==null?void 0:ed.type)!=="WhileStatement"||!td?!1:ge$3(rd,k$1(Ra))===")"?(z$3(qa,Ra),!0):td.type==="BlockStatement"?(bt$4(td,Ra),!0):ed.body===td?(ce$3(td,Ra),!0):!1}function Iu$2({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td}){return(ed==null?void 0:ed.type)!=="TryStatement"&&(ed==null?void 0:ed.type)!=="CatchClause"||!td?!1:ed.type==="CatchClause"&&qa?(z$3(qa,Ra),!0):td.type==="BlockStatement"?(bt$4(td,Ra),!0):td.type==="TryStatement"?(Xn$4(td.finalizer,Ra),!0):td.type==="CatchClause"?(Xn$4(td.body,Ra),!0):!1}function Xo$1({comment:Ra,enclosingNode:qa,followingNode:ed}){return q$3(qa)&&(ed==null?void 0:ed.type)==="Identifier"?(ce$3(qa,Ra),!0):!1}function Yo$1({comment:Ra,enclosingNode:qa,followingNode:ed,options:td}){return!td.experimentalTernaries||!((qa==null?void 0:qa.type)==="ConditionalExpression"||(qa==null?void 0:qa.type)==="ConditionalTypeAnnotation"||(qa==null?void 0:qa.type)==="TSConditionalType")?!1:(ed==null?void 0:ed.type)==="ConditionalExpression"||(ed==null?void 0:ed.type)==="ConditionalTypeAnnotation"||(ed==null?void 0:ed.type)==="TSConditionalType"?(Le$3(qa,Ra),!0):!1}function Lu$1({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td,text:rd,options:sd}){let od=qa&&!de$2(rd,k$1(qa),R$3(Ra));return(!qa||!od)&&((ed==null?void 0:ed.type)==="ConditionalExpression"||(ed==null?void 0:ed.type)==="ConditionalTypeAnnotation"||(ed==null?void 0:ed.type)==="TSConditionalType")&&td?sd.experimentalTernaries&&ed.alternate===td&&!(re$3(Ra)&&!de$2(sd.originalText,R$3(Ra),k$1(Ra)))?(Le$3(ed,Ra),!0):(ce$3(td,Ra),!0):!1}function Ho$3({comment:Ra,precedingNode:qa,enclosingNode:ed}){return Ae$2(ed)&&ed.shorthand&&ed.key===qa&&ed.value.type==="AssignmentPattern"?(z$3(ed.value.left,Ra),!0):!1}var Vo$2=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu$2({comment:Ra,precedingNode:qa,enclosingNode:ed,followingNode:td}){if(Vo$2.has(ed==null?void 0:ed.type)){if(w$1(ed.decorators)&&(td==null?void 0:td.type)!=="Decorator")return z$3(O$3(!1,ed.decorators,-1),Ra),!0;if(ed.body&&td===ed.body)return bt$4(ed.body,Ra),!0;if(td){if(ed.superClass&&td===ed.superClass&&qa&&(qa===ed.id||qa===ed.typeParameters))return z$3(qa,Ra),!0;for(let rd of["implements","extends","mixins"])if(ed[rd]&&td===ed[rd][0])return qa&&(qa===ed.id||qa===ed.typeParameters||qa===ed.superClass)?z$3(qa,Ra):Le$3(ed,Ra,rd),!0}}return!1}var $o$2=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty
`;default:return`
`}}var Se$3=Symbol("MODE_BREAK"),at$4=Symbol("MODE_FLAT"),ar$2=Symbol("cursor");function qu$3(){return{value:"",length:0,queue:[]}}function Cp(Ra,qa){return Qn$4(Ra,{type:"indent"},qa)}function Ap$1(Ra,qa,ed){return qa===Number.NEGATIVE_INFINITY?Ra.root||qu$3():qa<0?Qn$4(Ra,{type:"dedent"},ed):qa?qa.type==="root"?{...Ra,root:Ra}:Qn$4(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},ed):Ra}function Qn$4(Ra,qa,ed){let td=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],rd="",sd=0,od=0,ld=0;for(let Td of td)switch(Td.type){case"indent":dd(),ed.useTabs?ud(1):cd(ed.tabWidth);break;case"stringAlign":dd(),rd+=Td.n,sd+=Td.n.length;break;case"numberAlign":od+=1,ld+=Td.n;break;default:throw new Error(`Unexpected type '${Td.type}'`)}return Ed(),{...Ra,value:rd,length:sd,queue:td};function ud(Td){rd+=" ".repeat(Td),sd+=ed.tabWidth*Td}function cd(Td){rd+=" ".repeat(Td),sd+=Td}function dd(){ed.useTabs?_d():Ed()}function _d(){od>0&&ud(od),Ad()}function Ed(){ld>0&&cd(ld),Ad()}function Ad(){od=0,ld=0}}function Zn$3(Ra){let qa=0,ed=0,td=Ra.length;e:for(;td--;){let rd=Ra[td];if(rd===ar$2){ed++;continue}for(let sd=rd.length-1;sd>=0;sd--){let od=rd[sd];if(od===" "||od===" ")qa++;else{Ra[td]=rd.slice(0,sd+1);break e}}}if(qa>0||ed>0)for(Ra.length=td+1;ed-- >0;)Ra.push(ar$2);return qa}function Jr$2(Ra,qa,ed,td,rd,sd){if(ed===Number.POSITIVE_INFINITY)return!0;let od=qa.length,ld=[Ra],ud=[];for(;ed>=0;){if(ld.length===0){if(od===0)return!0;ld.push(qa[--od]);continue}let{mode:cd,doc:dd}=ld.pop(),_d=ut$1(dd);switch(_d){case rt$2:ud.push(dd),ed-=et$4(dd);break;case _e$3:case Pe$3:{let Ed=_d===_e$3?dd:dd.parts;for(let Ad=Ed.length-1;Ad>=0;Ad--)ld.push({mode:cd,doc:Ed[Ad]});break}case Xe$2:case Ye$2:case He$2:case je$3:ld.push({mode:cd,doc:dd.contents});break;case st$2:ed+=Zn$3(ud);break;case le$3:{if(sd&&dd.break)return!1;let Ed=dd.break?Se$3:cd,Ad=dd.expandedStates&&Ed===Se$3?O$3(!1,dd.expandedStates,-1):dd.contents;ld.push({mode:Ed,doc:Ad});break}case xe$3:{let Ed=(dd.groupId?rd[dd.groupId]||at$4:cd)===Se$3?dd.breakContents:dd.flatContents;Ed&&ld.push({mode:cd,doc:Ed});break}case me$1:if(cd===Se$3||dd.hard)return!0;dd.soft||(ud.push(" "),ed--);break;case Ve$3:td=!0;break;case $e$3:if(td)return!1;break}}return!1}function es$1(Ra,qa){let ed={},td=qa.printWidth,rd=Ju$3(qa.endOfLine),sd=0,od=[{ind:qu$3(),mode:Se$3,doc:Ra}],ld=[],ud=!1,cd=[],dd=0;for(Su$1(Ra);od.length>0;){let{ind:Ed,mode:Ad,doc:Td}=od.pop();switch(ut$1(Td)){case rt$2:{let Id=rd!==`
`?N$4(!1,Td,`
`,rd):Td;ld.push(Id),od.length>0&&(sd+=et$4(Id));break}case _e$3:for(let Id=Td.length-1;Id>=0;Id--)od.push({ind:Ed,mode:Ad,doc:Td[Id]});break;case nt$2:if(dd>=2)throw new Error("There are too many 'cursor' in doc.");ld.push(ar$2),dd++;break;case Xe$2:od.push({ind:Cp(Ed,qa),mode:Ad,doc:Td.contents});break;case Ye$2:od.push({ind:Ap$1(Ed,Td.n,qa),mode:Ad,doc:Td.contents});break;case st$2:sd-=Zn$3(ld);break;case le$3:switch(Ad){case at$4:if(!ud){od.push({ind:Ed,mode:Td.break?Se$3:at$4,doc:Td.contents});break}case Se$3:{ud=!1;let Id={ind:Ed,mode:at$4,doc:Td.contents},Bd=td-sd,Rd=cd.length>0;if(!Td.break&&Jr$2(Id,od,Bd,Rd,ed))od.push(Id);else if(Td.expandedStates){let Od=O$3(!1,Td.expandedStates,-1);if(Td.break){od.push({ind:Ed,mode:Se$3,doc:Od});break}else for(let Md=1;Md<Td.expandedStates.length+1;Md++)if(Md>=Td.expandedStates.length){od.push({ind:Ed,mode:Se$3,doc:Od});break}else{let Ld=Td.expandedStates[Md],Fd={ind:Ed,mode:at$4,doc:Ld};if(Jr$2(Fd,od,Bd,Rd,ed)){od.push(Fd);break}}}else od.push({ind:Ed,mode:Se$3,doc:Td.contents});break}}Td.id&&(ed[Td.id]=O$3(!1,od,-1).mode);break;case Pe$3:{let Id=td-sd,{parts:Bd}=Td;if(Bd.length===0)break;let[Rd,Od]=Bd,Md={ind:Ed,mode:at$4,doc:Rd},Ld={ind:Ed,mode:Se$3,doc:Rd},Fd=Jr$2(Md,[],Id,cd.length>0,ed,!0);if(Bd.length===1){Fd?od.push(Md):od.push(Ld);break}let jd={ind:Ed,mode:at$4,doc:Od},Vd={ind:Ed,mode:Se$3,doc:Od};if(Bd.length===2){Fd?od.push(jd,Md):od.push(Vd,Ld);break}Bd.splice(0,2);let Qd={ind:Ed,mode:Ad,doc:qt$2(Bd)},qd=Bd[0];Jr$2({ind:Ed,mode:at$4,doc:[Rd,Od,qd]},[],Id,cd.length>0,ed,!0)?od.push(Qd,jd,Md):Fd?od.push(Qd,Vd,Md):od.push(Qd,Vd,Ld);break}case xe$3:case He$2:{let Id=Td.groupId?ed[Td.groupId]:Ad;if(Id===Se$3){let Bd=Td.type===xe$3?Td.breakContents:Td.negate?Td.contents:f$1(Td.contents);Bd&&od.push({ind:Ed,mode:Ad,doc:Bd})}if(Id===at$4){let Bd=Td.type===xe$3?Td.flatContents:Td.negate?f$1(Td.contents):Td.contents;Bd&&od.push({ind:Ed,mode:Ad,doc:Bd})}break}case Ve$3:cd.push({ind:Ed,mode:Ad,doc:Td.contents});break;case $e$3:cd.length>0&&od.push({ind:Ed,mode:Ad,doc:Gn$4});break;case me$1:switch(Ad){case at$4:if(Td.hard)ud=!0;else{Td.soft||(ld.push(" "),sd+=1);break}case Se$3:if(cd.length>0){od.push({ind:Ed,mode:Ad,doc:Td},...cd.reverse()),cd.length=0;break}Td.literal?Ed.root?(ld.push(rd,Ed.root.value),sd=Ed.root.length):(ld.push(rd),sd=0):(sd-=Zn$3(ld),ld.push(rd+Ed.value),sd=Ed.length);break}break;case je$3:od.push({ind:Ed,mode:Ad,doc:Td.contents});break;case ve$3:break;default:throw new Ct$3(Td)}od.length===0&&cd.length>0&&(od.push(...cd.reverse()),cd.length=0)}let _d=ld.indexOf(ar$2);if(_d!==-1){let Ed=ld.indexOf(ar$2,_d+1),Ad=ld.slice(0,_d).join(""),Td=ld.slice(_d+1,Ed).join(""),Id=ld.slice(Ed+1).join("");return{formatted:Ad+Td+Id,cursorNodeStart:Ad.length,cursorNodeText:Td}}return{formatted:ld.join("")}}function Tp$1(Ra,qa,ed=0){let td=0;for(let rd=ed;rd<Ra.length;++rd)Ra[rd]===" "?td=td+qa-td%qa:td++;return td}var Wu$1=Tp$1;function dp(Ra,qa){let ed=Ra.lastIndexOf(`
`);return ed===-1?0:Wu$1(Ra.slice(ed+1).match(/^[\t ]*/u)[0],qa)}var Gu$2=dp;function qr$2(Ra,qa,ed){let{node:td}=Ra;if(td.type==="TemplateLiteral"&&gp(Ra)){let ud=xp(Ra,ed,qa);if(ud)return ud}let rd="expressions";td.type==="TSTemplateLiteralType"&&(rd="types");let sd=[],od=Ra.map(qa,rd);sd.push(ke$3,"`");let ld=0;return Ra.each(({index:ud,node:cd})=>{if(sd.push(qa()),cd.tail)return;let{tabWidth:dd}=ed,_d=cd.value.raw,Ed=_d.includes(`
`)?Gu$2(_d,dd):ld;ld=Ed;let Ad=od[ud],Td=td[rd][ud],Id=de$2(ed.originalText,k$1(cd),R$3(td.quasis[ud+1]));if(!Id){let Rd=es$1(Ad,{...ed,printWidth:Number.POSITIVE_INFINITY}).formatted;Rd.includes(`
`)?Id=!0:Ad=Rd}Id&&(d$1(Td)||Td.type==="Identifier"||q$3(Td)||Td.type==="ConditionalExpression"||Td.type==="SequenceExpression"||Te$2(Td)||De$2(Td))&&(Ad=[f$1([E$2,Ad]),E$2]);let Bd=Ed===0&&_d.endsWith(`
`)?he$2(Number.NEGATIVE_INFINITY,Ad):xu$1(Ad,Ed,dd);sd.push(l$1(["${",Bd,ke$3,"}"]))},"quasis"),sd.push("`"),sd}function Uu$3(Ra,qa){let ed=qa("quasi");return it$2(ed.label&&{tagged:!0,...ed.label},[qa("tag"),qa(Ra.node.typeArguments?"typeArguments":"typeParameters"),ke$3,ed])}function xp(Ra,qa,ed){let{node:td}=Ra,rd=td.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(rd.length>1||rd.some(sd=>sd.length>0)){qa.__inJestEach=!0;let sd=Ra.map(ed,"expressions");qa.__inJestEach=!1;let od=[],ld=sd.map(Ed=>"${"+es$1(Ed,{...qa,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),ud=[{hasLineBreak:!1,cells:[]}];for(let Ed=1;Ed<td.quasis.length;Ed++){let Ad=O$3(!1,ud,-1),Td=ld[Ed-1];Ad.cells.push(Td),Td.includes(`
`)&&(Ad.hasLineBreak=!0),td.quasis[Ed].value.raw.includes(`
`)&&ud.push({hasLineBreak:!1,cells:[]})}let cd=Math.max(rd.length,...ud.map(Ed=>Ed.cells.length)),dd=Array.from({length:cd}).fill(0),_d=[{cells:rd},...ud.filter(Ed=>Ed.cells.length>0)];for(let{cells:Ed}of _d.filter(Ad=>!Ad.hasLineBreak))for(let[Ad,Td]of Ed.entries())dd[Ad]=Math.max(dd[Ad],et$4(Td));return od.push(ke$3,"`",f$1([F$1,P$3(F$1,_d.map(Ed=>P$3(" | ",Ed.cells.map((Ad,Td)=>Ed.hasLineBreak?Ad:Ad+" ".repeat(dd[Td]-et$4(Ad))))))]),F$1,"`"),od}}function hp(Ra,qa){let{node:ed}=Ra,td=qa();return d$1(ed)&&(td=l$1([f$1([E$2,td]),E$2])),["${",td,ke$3,"}"]}function Gt$3(Ra,qa){return Ra.map(ed=>hp(ed,qa),"expressions")}function Wr$2(Ra,qa){return mt$3(Ra,ed=>typeof ed=="string"?qa?N$4(!1,ed,/(\\*)`/gu,"$1$1\\`"):ts$1(ed):ed)}function ts$1(Ra){return N$4(!1,Ra,/([\\`]|\$\{)/gu,String.raw`\$1`)}function gp({node:Ra,parent:qa}){let ed=/^[fx]?(?:describe|it|test)$/u;return qa.type==="TaggedTemplateExpression"&&qa.quasi===Ra&&qa.tag.type==="MemberExpression"&&qa.tag.property.type==="Identifier"&&qa.tag.property.name==="each"&&(qa.tag.object.type==="Identifier"&&ed.test(qa.tag.object.name)||qa.tag.object.type==="MemberExpression"&&qa.tag.object.property.type==="Identifier"&&(qa.tag.object.property.name==="only"||qa.tag.object.property.name==="skip")&&qa.tag.object.object.type==="Identifier"&&ed.test(qa.tag.object.object.name))}var ns$1=[(Ra,qa)=>Ra.type==="ObjectExpression"&&qa==="properties",(Ra,qa)=>Ra.type==="CallExpression"&&Ra.callee.type==="Identifier"&&Ra.callee.name==="Component"&&qa==="arguments",(Ra,qa)=>Ra.type==="Decorator"&&qa==="expression"];function Nu$2(Ra){let qa=td=>td.type==="TemplateLiteral",ed=(td,rd)=>Ae$2(td)&&!td.computed&&td.key.type==="Identifier"&&td.key.name==="styles"&&rd==="value";return Ra.match(qa,(td,rd)=>U$3(td)&&rd==="elements",ed,...ns$1)||Ra.match(qa,ed,...ns$1)}function Xu$3(Ra){return Ra.match(qa=>qa.type==="TemplateLiteral",(qa,ed)=>Ae$2(qa)&&!qa.computed&&qa.key.type==="Identifier"&&qa.key.name==="template"&&ed==="value",...ns$1)}function rs$1(Ra,qa){return d$1(Ra,g$3.Block|g$3.Leading,({value:ed})=>ed===` ${qa} `)}function Gr$2({node:Ra,parent:qa},ed){return rs$1(Ra,ed)||Sp(qa)&&rs$1(qa,ed)||qa.type==="ExpressionStatement"&&rs$1(qa,ed)}function Sp(Ra){return Ra.type==="AsConstExpression"||Ra.type==="TSAsExpression"&&Ra.typeAnnotation.type==="TSTypeReference"&&Ra.typeAnnotation.typeName.type==="Identifier"&&Ra.typeAnnotation.typeName.name==="const"}async function Bp$1(Ra,qa,ed){let{node:td}=ed,rd=td.quasis.map(dd=>dd.value.raw),sd=0,od=rd.reduce((dd,_d,Ed)=>Ed===0?_d:dd+"@prettier-placeholder-"+sd+++"-id"+_d,""),ld=await Ra(od,{parser:"scss"}),ud=Gt$3(ed,qa),cd=bp(ld,ud);if(!cd)throw new Error("Couldn't insert all the expressions");return["`",f$1([F$1,cd]),E$2,"`"]}function bp(Ra,qa){if(!w$1(qa))return Ra;let ed=0,td=mt$3(Wt$1(Ra),rd=>typeof rd!="string"||!rd.includes("@prettier-placeholder")?rd:rd.split(/@prettier-placeholder-(\d+)-id/u).map((sd,od)=>od%2===0?Ie$2(sd):(ed++,qa[sd])));return qa.length===ed?td:null}function Pp({node:Ra,parent:qa,grandparent:ed}){return ed&&Ra.quasis&&qa.type==="JSXExpressionContainer"&&ed.type==="JSXElement"&&ed.openingElement.name.name==="style"&&ed.openingElement.attributes.some(td=>td.type==="JSXAttribute"&&td.name.name==="jsx")||(qa==null?void 0:qa.type)==="TaggedTemplateExpression"&&qa.tag.type==="Identifier"&&qa.tag.name==="css"||(qa==null?void 0:qa.type)==="TaggedTemplateExpression"&&qa.tag.type==="MemberExpression"&&qa.tag.object.name==="css"&&(qa.tag.property.name==="global"||qa.tag.property.name==="resolve")}function Ur$2(Ra){return Ra.type==="Identifier"&&Ra.name==="styled"}function Yu$2(Ra){return/^[A-Z]/u.test(Ra.object.name)&&Ra.property.name==="extend"}function kp$1({parent:Ra}){if(!Ra||Ra.type!=="TaggedTemplateExpression")return!1;let qa=Ra.tag.type==="ParenthesizedExpression"?Ra.tag.expression:Ra.tag;switch(qa.type){case"MemberExpression":return Ur$2(qa.object)||Yu$2(qa);case"CallExpression":return Ur$2(qa.callee)||qa.callee.type==="MemberExpression"&&(qa.callee.object.type==="MemberExpression"&&(Ur$2(qa.callee.object.object)||Yu$2(qa.cal
`),Ad=Ed.length,Td=sd[ld],Id=Ad>2&&Ed[0].trim()===""&&Ed[1].trim()==="",Bd=Ad>2&&Ed[Ad-1].trim()===""&&Ed[Ad-2].trim()==="",Rd=Ed.every(Md=>/^\s*(?:#[^\n\r]*)?$/u.test(Md));if(!dd&&/#[^\n\r]*$/u.test(Ed[Ad-1]))return null;let Od=null;Rd?Od=Op$1(Ed):Od=await Ra(_d,{parser:"graphql"}),Od?(Od=Wr$2(Od,!1),!cd&&Id&&od.push(""),od.push(Od),!dd&&Bd&&od.push("")):!cd&&!dd&&Id&&od.push(""),Td&&od.push(Td)}return["`",f$1([F$1,P$3(F$1,od)]),F$1,"`"]}function Op$1(Ra){let qa=[],ed=!1,td=Ra.map(rd=>rd.trim());for(let[rd,sd]of td.entries())sd!==""&&(td[rd-1]===""&&ed?qa.push([F$1,sd]):qa.push(sd),ed=!0);return qa.length===0?null:P$3(F$1,qa)}function _p({node:Ra,parent:qa}){return Gr$2({node:Ra,parent:qa},"GraphQL")||qa&&(qa.type==="TaggedTemplateExpression"&&(qa.tag.type==="MemberExpression"&&qa.tag.object.name==="graphql"&&qa.tag.property.name==="experimental"||qa.tag.type==="Identifier"&&(qa.tag.name==="gql"||qa.tag.name==="graphql"))||qa.type==="CallExpression"&&qa.callee.type==="Identifier"&&qa.callee.name==="graphql")}function jp(Ra){if(_p(Ra))return wp}var Vu$3=jp,ss$1=0;async function $u$2(Ra,qa,ed,td,rd){let{node:sd}=td,od=ss$1;ss$1=ss$1+1>>>0;let ld=Rd=>`PRETTIER_HTML_PLACEHOLDER_${Rd}_${od}_IN_JS`,ud=sd.quasis.map((Rd,Od,Md)=>Od===Md.length-1?Rd.value.cooked:Rd.value.cooked+ld(Od)).join(""),cd=Gt$3(td,ed),dd=new RegExp(ld(String.raw`(\d+)`),"gu"),_d=0,Ed=await qa(ud,{parser:Ra,__onHtmlRoot(Rd){_d=Rd.children.length}}),Ad=mt$3(Ed,Rd=>{if(typeof Rd!="string")return Rd;let Od=[],Md=Rd.split(dd);for(let Ld=0;Ld<Md.length;Ld++){let Fd=Md[Ld];if(Ld%2===0){Fd&&(Fd=ts$1(Fd),rd.__embeddedInHtml&&(Fd=N$4(!1,Fd,/<\/(?=script\b)/giu,String.raw`<\/`)),Od.push(Fd));continue}let jd=Number(Fd);Od.push(cd[jd])}return Od}),Td=/^\s/u.test(ud)?" ":"",Id=/\s$/u.test(ud)?" ":"",Bd=rd.htmlWhitespaceSensitivity==="ignore"?F$1:Td&&Id?x$3:null;return Bd?l$1(["`",f$1([Bd,l$1(Ad)]),Bd,"`"]):it$2({hug:!1},l$1(["`",Td,_d>1?f$1(l$1(Ad)):l$1(Ad),Id,"`"]))}function vp(Ra){return Gr$2(Ra,"HTML")||Ra.match(qa=>qa.type==="TemplateLiteral",(qa,ed)=>qa.type==="TaggedTemplateExpression"&&qa.tag.type==="Identifier"&&qa.tag.name==="html"&&ed==="quasi")}var Mp$1=$u$2.bind(void 0,"html"),Rp$1=$u$2.bind(void 0,"angular");function Jp(Ra){if(vp(Ra))return Mp$1;if(Xu$3(Ra))return Rp$1}var Ku$3=Jp;async function qp(Ra,qa,ed){let{node:td}=ed,rd=N$4(!1,td.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(ud,cd)=>"\\".repeat(cd.length/2)+"`"),sd=Wp(rd),od=sd!=="";od&&(rd=N$4(!1,rd,new RegExp(`^${sd}`,"gmu"),""));let ld=Wr$2(await Ra(rd,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",od?f$1([E$2,ld]):[Rr$1,du$3(ld)],E$2,"`"]}function Wp(Ra){let qa=Ra.match(/^([^\S\n]*)\S/mu);return qa===null?"":qa[1]}function Gp(Ra){if(Up(Ra))return qp}function Up({node:Ra,parent:qa}){return(qa==null?void 0:qa.type)==="TaggedTemplateExpression"&&Ra.quasis.length===1&&qa.tag.type==="Identifier"&&(qa.tag.name==="md"||qa.tag.name==="markdown")}var zu$1=Gp;function Np$1(Ra){let{node:qa}=Ra;if(qa.type!=="TemplateLiteral"||Xp(qa))return;let ed;for(let td of[Hu$3,Vu$3,Ku$3,zu$1])if(ed=td(Ra),!!ed)return qa.quasis.length===1&&qa.quasis[0].value.raw.trim()===""?"``":async(...rd)=>{let sd=await ed(...rd);return sd&&it$2({embed:!0,...sd.label},sd)}}function Xp({quasis:Ra}){return Ra.some(({value:{cooked:qa}})=>qa===null)}var Qu$2=Np$1,Yp=/\*\/$/,Hp=/^\/\*\*?/,ri$4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Vp$1=/(^|\s+)\/\/([^\n\r]*)/g,Zu$4=/^(\r?\n)+/,$p$1=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei$3=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Kp$1=/(\r?\n|^) *\* ?/g,ni$4=[];function si$4(Ra){let qa=Ra.match(ri$4);return qa?qa[0].trimStart():""}function ui$3(Ra){let qa=Ra.match(ri$4),ed=qa==null?void 0:qa[0];return ed==null?Ra:Ra.slice(ed.length)}function ii$4(Ra){let qa=`
`;Ra=N$4(!1,Ra.replace(Hp,"").replace(Yp,""),Kp$1,"$1");let ed="";for(;ed!==Ra;)ed=Ra,Ra=N$4(!1,Ra,$p$1,`${qa}$1 $2${qa}`);Ra=Ra.replace(Zu$4,"").trimEnd();let td=Object.create(null),rd=N$4(!1,Ra,ei$3,"").replace(Zu$4,"").trimEnd(),sd;for(;sd=ei$3.exec(Ra);){let od=N$4(!1,sd[2],Vp$1,"");if(typeof td[sd[1]]=="string"||Array.isArray(td[sd[1]])){let ld=td[sd[1]];td[sd[1]]=[...ni$4,...Array.isArray(ld)?ld:[ld],od]}else td[sd[1]]=od}return{comments:rd,pragmas:td}}function ai$4({comments:Ra="",pragmas:qa={}}){let ed=`
`,td="/**",rd=" *",sd=" */",od=Object.keys(qa),ld=od.flatMap(cd=>ti$4(cd,qa[cd])).map(cd=>`${rd} ${cd}${ed}`).join("");if(!Ra){if(od.length===0)return"";if(od.length===1&&!Array.isArray(qa[od[0]])){let cd=qa[od[0]];return`${td} ${ti$4(od[0],cd)[0]}${sd}`}}let ud=Ra.split(ed).map(cd=>`${rd} ${cd}`).join(ed)+ed;return td+ed+(Ra?ud:"")+(Ra&&od.length>0?rd+ed:"")+ld+sd}function ti$4(Ra,qa){return[...ni$4,...Array.isArray(qa)?qa:[qa]].map(ed=>`@${Ra} ${ed}`.trim())}function zp$1(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var oi$3=zp$1;function Qp(Ra){let qa=oi$3(Ra);qa&&(Ra=Ra.slice(qa.length+1));let ed=si$4(Ra),{pragmas:td,comments:rd}=ii$4(ed);return{shebang:qa,text:Ra,pragmas:td,comments:rd}}function pi$6(Ra){let{shebang:qa,text:ed,pragmas:td,comments:rd}=Qp(Ra),sd=ui$3(ed),od=ai$4({pragmas:{format:"",...td},comments:rd.trimStart()});return(qa?`${qa}
`:"")+od+(sd.startsWith(`
`)?`
`:`
`)+sd}function Zp(Ra,qa){let{originalText:ed,[Symbol.for("comments")]:td,locStart:rd,locEnd:sd,[Symbol.for("printedComments")]:od}=qa,{node:ld}=Ra,ud=rd(ld),cd=sd(ld);for(let dd of td)rd(dd)>=ud&&sd(dd)<=cd&&od.add(dd);return ed.slice(ud,cd)}var ci$3=Zp;function us$1(Ra,qa){var ed,td,rd,sd,od,ld,ud,cd,dd;if(Ra.isRoot)return!1;let{node:_d,key:Ed,parent:Ad}=Ra;if(qa.__isInHtmlInterpolation&&!qa.bracketSpacing&&nc$3(_d)&&or$2(Ra))return!0;if(ec$1(_d))return!1;if(_d.type==="Identifier"){if((ed=_d.extra)!=null&&ed.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(_d.name)||Ed==="left"&&(_d.name==="async"&&!Ad.await||_d.name==="let")&&Ad.type==="ForOfStatement")return!0;if(_d.name==="let"){let Td=(td=Ra.findAncestor(Id=>Id.type==="ForOfStatement"))==null?void 0:td.left;if(Td&&ie$2(Td,Id=>Id===_d))return!0}if(Ed==="object"&&_d.name==="let"&&Ad.type==="MemberExpression"&&Ad.computed&&!Ad.optional){let Td=Ra.findAncestor(Bd=>Bd.type==="ExpressionStatement"||Bd.type==="ForStatement"||Bd.type==="ForInStatement"),Id=Td?Td.type==="ExpressionStatement"?Td.expression:Td.type==="ForStatement"?Td.init:Td.left:void 0;if(Id&&ie$2(Id,Bd=>Bd===_d))return!0}if(Ed==="expression")switch(_d.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let Td=Ra.findAncestor(Id=>!Te$2(Id));if(Td!==Ad&&Td.type==="ExpressionStatement")return!0}}return!1}if(_d.type==="ObjectExpression"||_d.type==="FunctionExpression"||_d.type==="ClassExpression"||_d.type==="DoExpression"){let Td=(rd=Ra.findAncestor(Id=>Id.type==="ExpressionStatement"))==null?void 0:rd.expression;if(Td&&ie$2(Td,Id=>Id===_d))return!0}if(_d.type==="ObjectExpression"){let Td=(sd=Ra.findAncestor(Id=>Id.type==="ArrowFunctionExpression"))==null?void 0:sd.body;if(Td&&Td.type!=="SequenceExpression"&&Td.type!=="AssignmentExpression"&&ie$2(Td,Id=>Id===_d))return!0}switch(Ad.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(Ed==="superClass"&&(_d.type==="ArrowFunctionExpression"||_d.type==="AssignmentExpression"||_d.type==="AwaitExpression"||_d.type==="BinaryExpression"||_d.type==="ConditionalExpression"||_d.type==="LogicalExpression"||_d.type==="NewExpression"||_d.type==="ObjectExpression"||_d.type==="SequenceExpression"||_d.type==="TaggedTemplateExpression"||_d.type==="UnaryExpression"||_d.type==="UpdateExpression"||_d.type==="YieldExpression"||_d.type==="TSNonNullExpression"||_d.type==="ClassExpression"&&w$1(_d.decorators)))return!0;break;case"ExportDefaultDeclaration":return li$4(Ra,qa)||_d.type==="SequenceExpression";case"Decorator":if(Ed==="expression"&&!uc$2(_d))return!0;break;case"TypeAnnotation":if(Ra.match(void 0,void 0,(Td,Id)=>Id==="returnType"&&Td.type==="ArrowFunctionExpression")&&rc$2(_d))return!0;break;case"BinaryExpression":if(Ed==="left"&&(Ad.operator==="in"||Ad.operator==="instanceof")&&_d.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(Ed==="init"&&Ra.match(void 0,void 0,(Td,Id)=>Id==="declarations"&&Td.type==="VariableDeclaration",(Td,Id)=>Id==="left"&&Td.type==="ForInStatement"))return!0;break}switch(_d.type){case"UpdateExpression":if(Ad.type==="UnaryExpression")return _d.prefix&&(_d.operator==="++"&&Ad.operator==="+"||_d.operator==="--"&&Ad.operator==="-");case"UnaryExpression":switch(Ad.type){case"UnaryExpression":return _d.operator===Ad.operator&&(_d.operator==="+"||_d.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return Ed==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return Ed==="callee";case"BinaryExpression":return Ed==="left"&&Ad.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(Ad.type==="UpdateExpression"||_d.operator==="in"&&tc$1(Ra))return!0;if(_d.operator==="|>"&&(od=_d.extra)!=null&&od.parenthesized){let Td=Ra.grandparent;if(Td.type==="BinaryExpression"&&Td.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":cas
\r `),ms$2=Ra=>Ra===""||Ra===x$3||Ra===F$1||Ra===E$2;function cc(Ra,qa,ed){var td,rd,sd;let{node:od}=Ra;if(od.type==="JSXElement"&&gc$1(od))return[ed("openingElement"),ed("closingElement")];let ld=od.type==="JSXElement"?ed("openingElement"):ed("openingFragment"),ud=od.type==="JSXElement"?ed("closingElement"):ed("closingFragment");if(od.children.length===1&&od.children[0].type==="JSXExpressionContainer"&&(od.children[0].expression.type==="TemplateLiteral"||od.children[0].expression.type==="TaggedTemplateExpression"))return[ld,...Ra.map(ed,"children"),ud];od.children=od.children.map(jd=>Sc(jd)?{type:"JSXText",value:" ",raw:" "}:jd);let cd=od.children.some(X$4),dd=od.children.filter(jd=>jd.type==="JSXExpressionContainer").length>1,_d=od.type==="JSXElement"&&od.openingElement.attributes.length>1,Ed=ne$3(ld)||cd||_d||dd,Ad=Ra.parent.rootMarker==="mdx",Td=qa.singleQuote?"{' '}":'{" "}',Id=Ad?" ":b$2([Td,E$2]," "),Bd=((rd=(td=od.openingElement)==null?void 0:td.name)==null?void 0:rd.name)==="fbt",Rd=lc$2(Ra,qa,ed,Id,Bd),Od=od.children.some(jd=>pr$2(jd));for(let jd=Rd.length-2;jd>=0;jd--){let Vd=Rd[jd]===""&&Rd[jd+1]==="",Qd=Rd[jd]===F$1&&Rd[jd+1]===""&&Rd[jd+2]===F$1,qd=(Rd[jd]===E$2||Rd[jd]===F$1)&&Rd[jd+1]===""&&Rd[jd+2]===Id,Kd=Rd[jd]===Id&&Rd[jd+1]===""&&(Rd[jd+2]===E$2||Rd[jd+2]===F$1),Xd=Rd[jd]===Id&&Rd[jd+1]===""&&Rd[jd+2]===Id,df=Rd[jd]===E$2&&Rd[jd+1]===""&&Rd[jd+2]===F$1||Rd[jd]===F$1&&Rd[jd+1]===""&&Rd[jd+2]===E$2;Qd&&Od||Vd||qd||Xd||df?Rd.splice(jd,2):Kd&&Rd.splice(jd+1,2)}for(;Rd.length>0&&ms$2(O$3(!1,Rd,-1));)Rd.pop();for(;Rd.length>1&&ms$2(Rd[0])&&ms$2(Rd[1]);)Rd.shift(),Rd.shift();let Md=[];for(let[jd,Vd]of Rd.entries()){if(Vd===Id){if(jd===1&&Rd[jd-1]===""){if(Rd.length===2){Md.push(Td);continue}Md.push([Td,F$1]);continue}else if(jd===Rd.length-1){Md.push(Td);continue}else if(Rd[jd-1]===""&&Rd[jd-2]===F$1){Md.push(Td);continue}}Md.push(Vd),ne$3(Vd)&&(Ed=!0)}let Ld=Od?qt$2(Md):l$1(Md,{shouldBreak:!0});if(((sd=qa.cursorNode)==null?void 0:sd.type)==="JSXText"&&od.children.includes(qa.cursorNode)&&(Ld=[Un$3,Ld,Un$3]),Ad)return Ld;let Fd=l$1([ld,f$1([F$1,Ld]),F$1,ud]);return Ed?Fd:ze$3([l$1([ld,...Rd,ud]),Fd])}function lc$2(Ra,qa,ed,td,rd){let sd=[];return Ra.each(({node:od,next:ld})=>{if(od.type==="JSXText"){let ud=fe$3(od);if(pr$2(od)){let cd=Nr$2.split(ud,!0);cd[0]===""&&(sd.push(""),cd.shift(),/\n/u.test(cd[0])?sd.push(fi$3(rd,cd[1],od,ld)):sd.push(td),cd.shift());let dd;if(O$3(!1,cd,-1)===""&&(cd.pop(),dd=cd.pop()),cd.length===0)return;for(let[_d,Ed]of cd.entries())_d%2===1?sd.push(x$3):sd.push(Ed);dd!==void 0?/\n/u.test(dd)?sd.push(fi$3(rd,O$3(!1,sd,-1),od,ld)):sd.push(td):sd.push(Di$3(rd,O$3(!1,sd,-1),od,ld))}else/\n/u.test(ud)?ud.match(/\n/gu).length>1&&sd.push("",F$1):sd.push("",td)}else{let ud=ed();if(sd.push(ud),ld&&pr$2(ld)){let cd=Nr$2.trim(fe$3(ld)),[dd]=Nr$2.split(cd);sd.push(Di$3(rd,dd,od,ld))}else sd.push(F$1)}},"children"),sd}function Di$3(Ra,qa,ed,td){return Ra?"":ed.type==="JSXElement"&&!ed.closingElement||(td==null?void 0:td.type)==="JSXElement"&&!td.closingElement?qa.length===1?E$2:F$1:E$2}function fi$3(Ra,qa,ed,td){return Ra?F$1:qa.length===1?ed.type==="JSXElement"&&!ed.closingElement||(td==null?void 0:td.type)==="JSXElement"&&!td.closingElement?F$1:E$2:F$1}var mc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function yc$1(Ra,qa,ed){let{parent:td}=Ra;if(mc.has(td.type))return qa;let rd=Ra.match(void 0,od=>od.type==="ArrowFunctionExpression",L$4,od=>od.type==="JSXExpressionContainer"),sd=Be$3(Ra,ed);return l$1([sd?"":b$2("("),f$1([E$2,qa]),E$2,sd?"":b$2(")")],{shouldBreak:rd})}function Dc$1(Ra,qa,ed){let{node:td}=Ra,rd=[];if(rd.push(ed("name")),td.value){let sd;if(Q$4(td.value)){let od=fe$3(td.value),ld=N$4(!1,N$4(!1,od.slice(1,-1),"&apos;","'"),"&quot;",'"'),ud=xr$2(ld,qa.jsxSingleQuote);ld=ud==='"'?N$4(!1,ld,'"',"&quot;"):N$4(!1,ld,"'","&apos;"),sd=Ra.call(()=>ye$2(Ra,Ie$2(ud+ld+ud),qa),"value")}else sd=ed("value");rd.pu
`)&&!od&&!d$1(sd.attributes[0]))return l$1(["<",ed("name"),sd.typeArguments?ed("typeArguments"):ed("typeParameters")," ",...Ra.map(ed,"attributes"),sd.selfClosing?" />":">"]);let ld=(rd=sd.attributes)==null?void 0:rd.some(cd=>Q$4(cd.value)&&cd.value.value.includes(`
`)),ud=qa.singleAttributePerLine&&sd.attributes.length>1?F$1:x$3;return l$1(["<",ed("name"),sd.typeArguments?ed("typeArguments"):ed("typeParameters"),f$1(Ra.map(()=>[ud,ed()],"attributes")),...Fc$1(sd,qa,od)],{shouldBreak:ld})}function Fc$1(Ra,qa,ed){return Ra.selfClosing?[x$3,"/>"]:Cc(Ra,qa,ed)?[">"]:[E$2,">"]}function Cc(Ra,qa,ed){let td=Ra.attributes.length>0&&d$1(O$3(!1,Ra.attributes,-1),g$3.Trailing);return Ra.attributes.length===0&&!ed||(qa.bracketSameLine||qa.jsxBracketSameLine)&&(!ed||Ra.attributes.length>0)&&!td}function Ac(Ra,qa,ed){let{node:td}=Ra,rd=[];rd.push("</");let sd=ed("name");return d$1(td.name,g$3.Leading|g$3.Line)?rd.push(f$1([F$1,sd]),F$1):d$1(td.name,g$3.Leading|g$3.Block)?rd.push(" ",sd):rd.push(sd),rd.push(">"),rd}function Tc(Ra,qa){let{node:ed}=Ra,td=d$1(ed),rd=d$1(ed,g$3.Line),sd=ed.type==="JSXOpeningFragment";return[sd?"<":"</",f$1([rd?F$1:td&&!sd?" ":"",M$4(Ra,qa)]),rd?F$1:"",">"]}function dc$1(Ra,qa,ed){let td=ye$2(Ra,cc(Ra,qa,ed),qa);return yc$1(Ra,td,qa)}function xc$1(Ra,qa){let{node:ed}=Ra,td=d$1(ed,g$3.Line);return[M$4(Ra,qa,{indent:td}),td?F$1:""]}function hc(Ra,qa,ed){let{node:td}=Ra;return["{",Ra.call(({node:rd})=>{let sd=["...",ed()];return!d$1(rd)||!zn$3(Ra)?sd:[f$1([E$2,ye$2(Ra,sd,qa)]),E$2]},td.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ei$2(Ra,qa,ed){let{node:td}=Ra;if(td.type.startsWith("JSX"))switch(td.type){case"JSXAttribute":return Dc$1(Ra,qa,ed);case"JSXIdentifier":return td.name;case"JSXNamespacedName":return P$3(":",[ed("namespace"),ed("name")]);case"JSXMemberExpression":return P$3(".",[ed("object"),ed("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hc(Ra,qa,ed);case"JSXExpressionContainer":return fc(Ra,qa,ed);case"JSXFragment":case"JSXElement":return dc$1(Ra,qa,ed);case"JSXOpeningElement":return Ec$1(Ra,qa,ed);case"JSXClosingElement":return Ac(Ra,qa,ed);case"JSXOpeningFragment":case"JSXClosingFragment":return Tc(Ra,qa);case"JSXEmptyExpression":return xc$1(Ra,qa);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me$4(td,"JSX")}}function gc$1(Ra){if(Ra.children.length===0)return!0;if(Ra.children.length>1)return!1;let qa=Ra.children[0];return qa.type==="JSXText"&&!pr$2(qa)}function pr$2(Ra){return Ra.type==="JSXText"&&(Nr$2.hasNonWhitespaceCharacter(fe$3(Ra))||!/\n/u.test(fe$3(Ra)))}function Sc(Ra){return Ra.type==="JSXExpressionContainer"&&Q$4(Ra.expression)&&Ra.expression.value===" "&&!d$1(Ra.expression)}function Fi$1(Ra){let{node:qa,parent:ed}=Ra;if(!X$4(qa)||!X$4(ed))return!1;let{index:td,siblings:rd}=Ra,sd;for(let od=td;od>0;od--){let ld=rd[od-1];if(!(ld.type==="JSXText"&&!pr$2(ld))){sd=ld;break}}return(sd==null?void 0:sd.type)==="JSXExpressionContainer"&&sd.expression.type==="JSXEmptyExpression"&&Bt$4(sd.expression)}function Bc(Ra){return Bt$4(Ra.node)||Fi$1(Ra)}var Xr$2=Bc,bc=0;function Yr$3(Ra,qa,ed){var td;let{node:rd,parent:sd,grandparent:od,key:ld}=Ra,ud=ld!=="body"&&(sd.type==="IfStatement"||sd.type==="WhileStatement"||sd.type==="SwitchStatement"||sd.type==="DoWhileStatement"),cd=rd.operator==="|>"&&((td=Ra.root.extra)==null?void 0:td.__isUsingHackPipeline),dd=ys$2(Ra,ed,qa,!1,ud);if(ud)return dd;if(cd)return l$1(dd);if(L$4(sd)&&sd.callee===rd||sd.type==="UnaryExpression"||q$3(sd)&&!sd.computed)return l$1([f$1([E$2,...dd]),E$2]);let _d=sd.type==="ReturnStatement"||sd.type==="ThrowStatement"||sd.type==="JSXExpressionContainer"&&od.type==="JSXAttribute"||rd.operator!=="|"&&sd.type==="JsExpressionRoot"||rd.type!=="NGPipeExpression"&&(sd.type==="NGRoot"&&qa.parser==="__ng_binding"||sd.type==="NGMicrosyntaxExpression"&&od.type==="NGMicrosyntax"&&od.body.length===1)||rd===sd.body&&sd.type==="ArrowFunctionExpression"||rd!==sd.body&&sd.type==="ForStatement"||sd.type==="ConditionalExpression"&&od.type!=="ReturnStatement"&&od.type!=="ThrowStatement"&&!L$4(od)||sd.type==="TemplateLiteral",Ed=sd.type==="AssignmentExpression"||sd.type==="VariableDeclarator"||sd.type==="ClassProperty"||sd.type==="PropertyDefinition"||sd.type==="TSAbstractPropertyDefinition"||sd.type==="ClassPrivateProperty"||
`).split(`
`),mf=0,bf=df.length,pf;++mf<bf;)pf=df[mf],pf!==""&&(df[mf]=Vd+pf);return"[^"+(Xd.label||Xd.identifier)+"]: "+df.join(`
`)}}function Md(Fd,jd,Vd){Fd.splice(Fd.indexOf(jd),0,Vd)}function Ld(Fd,jd,Vd,Qd){for(var qd=Fd.length,Kd=-1;++Kd<qd;)if(jd[Fd[Kd][0]].apply(Vd,Qd))return!0;return!1}}),Bt$3=C$1(Ra=>{Ra.isRemarkParser=qa,Ra.isRemarkCompiler=ed;function qa(td){return!!(td&&td.prototype&&td.prototype.blockTokenizers)}function ed(td){return!!(td&&td.prototype&&td.prototype.visitors)}}),Mi=C$1((Ra,qa)=>{var ed=Bt$3();qa.exports=_d;var td=9,rd=32,sd=36,od=48,ld=57,ud=92,cd=["math","math-inline"],dd="math-display";function _d(Td){let Id=this.Parser,Bd=this.Compiler;ed.isRemarkParser(Id)&&Ed(Id,Td),ed.isRemarkCompiler(Bd)&&Ad(Bd)}function Ed(Td,Id){let Bd=Td.prototype,Rd=Bd.inlineMethods;Md.locator=Od,Bd.inlineTokenizers.math=Md,Rd.splice(Rd.indexOf("text"),0,"math");function Od(Ld,Fd){return Ld.indexOf("$",Fd)}function Md(Ld,Fd,jd){let Vd=Fd.length,Qd=!1,qd=!1,Kd=0,Xd,df,mf,bf,pf,_f,Tf;if(Fd.charCodeAt(Kd)===ud&&(qd=!0,Kd++),Fd.charCodeAt(Kd)===sd){if(Kd++,qd)return jd?!0:Ld(Fd.slice(0,Kd))({type:"text",value:"$"});if(Fd.charCodeAt(Kd)===sd&&(Qd=!0,Kd++),mf=Fd.charCodeAt(Kd),!(mf===rd||mf===td)){for(bf=Kd;Kd<Vd;){if(df=mf,mf=Fd.charCodeAt(Kd+1),df===sd){if(Xd=Fd.charCodeAt(Kd-1),Xd!==rd&&Xd!==td&&(mf!==mf||mf<od||mf>ld)&&(!Qd||mf===sd)){pf=Kd-1,Kd++,Qd&&Kd++,_f=Kd;break}}else df===ud&&(Kd++,mf=Fd.charCodeAt(Kd+1));Kd++}if(_f!==void 0)return jd?!0:(Tf=Fd.slice(bf,pf+1),Ld(Fd.slice(0,_f))({type:"inlineMath",value:Tf,data:{hName:"span",hProperties:{className:cd.concat(Qd&&Id.inlineMathDouble?[dd]:[])},hChildren:[{type:"text",value:Tf}]}}))}}}}function Ad(Td){let Id=Td.prototype;Id.visitors.inlineMath=Bd;function Bd(Rd){let Od="$";return(Rd.data&&Rd.data.hProperties&&Rd.data.hProperties.className||[]).includes(dd)&&(Od="$$"),Od+Rd.value+Od}}}),$i$1=C$1((Ra,qa)=>{var ed=Bt$3();qa.exports=dd;var td=10,rd=32,sd=36,od=`
`,ld="$",ud=2,cd=["math","math-display"];function dd(){let Ad=this.Parser,Td=this.Compiler;ed.isRemarkParser(Ad)&&_d(Ad),ed.isRemarkCompiler(Td)&&Ed(Td)}function _d(Ad){let Td=Ad.prototype,Id=Td.blockMethods,Bd=Td.interruptParagraph,Rd=Td.interruptList,Od=Td.interruptBlockquote;Td.blockTokenizers.math=Md,Id.splice(Id.indexOf("fencedCode")+1,0,"math"),Bd.splice(Bd.indexOf("fencedCode")+1,0,["math"]),Rd.splice(Rd.indexOf("fencedCode")+1,0,["math"]),Od.splice(Od.indexOf("fencedCode")+1,0,["math"]);function Md(Ld,Fd,jd){var Vd=Fd.length,Qd=0;let qd,Kd,Xd,df,mf,bf,pf,_f,Tf,kf,zf;for(;Qd<Vd&&Fd.charCodeAt(Qd)===rd;)Qd++;for(mf=Qd;Qd<Vd&&Fd.charCodeAt(Qd)===sd;)Qd++;if(bf=Qd-mf,!(bf<ud)){for(;Qd<Vd&&Fd.charCodeAt(Qd)===rd;)Qd++;for(pf=Qd;Qd<Vd;){if(qd=Fd.charCodeAt(Qd),qd===sd)return;if(qd===td)break;Qd++}if(Fd.charCodeAt(Qd)===td){if(jd)return!0;for(Kd=[],pf!==Qd&&Kd.push(Fd.slice(pf,Qd)),Qd++,Xd=Fd.indexOf(od,Qd+1),Xd=Xd===-1?Vd:Xd;Qd<Vd;){for(_f=!1,kf=Qd,zf=Xd,df=Xd,Tf=0;df>kf&&Fd.charCodeAt(df-1)===rd;)df--;for(;df>kf&&Fd.charCodeAt(df-1)===sd;)Tf++,df--;for(bf<=Tf&&Fd.indexOf(ld,kf)===df&&(_f=!0,zf=df);kf<=zf&&kf-Qd<mf&&Fd.charCodeAt(kf)===rd;)kf++;if(_f)for(;zf>kf&&Fd.charCodeAt(zf-1)===rd;)zf--;if((!_f||kf!==zf)&&Kd.push(Fd.slice(kf,zf)),_f)break;Qd=Xd+1,Xd=Fd.indexOf(od,Qd+1),Xd=Xd===-1?Vd:Xd}return Kd=Kd.join(`
`),Ld(Fd.slice(0,Xd))({type:"math",value:Kd,data:{hName:"div",hProperties:{className:cd.concat()},hChildren:[{type:"text",value:Kd}]}})}}}}function Ed(Ad){let Td=Ad.prototype;Td.visitors.math=Id;function Id(Bd){return`$$
`+Bd.value+`
$$`}}}),Wi=C$1((Ra,qa)=>{var ed=Mi(),td=$i$1();qa.exports=rd;function rd(sd){var od=sd||{};td.call(this,od),ed.call(this,od)}}),Ie$1=C$1((Ra,qa)=>{qa.exports=td;var ed=Object.prototype.hasOwnProperty;function td(){for(var rd={},sd=0;sd<arguments.length;sd++){var od=arguments[sd];for(var ld in od)ed.call(od,ld)&&(rd[ld]=od[ld])}return rd}}),Ji$2=C$1((Ra,qa)=>{typeof Object.create=="function"?qa.exports=function(ed,td){td&&(ed.super_=td,ed.prototype=Object.create(td.prototype,{constructor:{value:ed,enumerable:!1,writable:!0,configurable:!0}}))}:qa.exports=function(ed,td){if(td){ed.super_=td;var rd=function(){};rd.prototype=td.prototype,ed.prototype=new rd,ed.prototype.constructor=ed}}}),Zi=C$1((Ra,qa)=>{var ed=Ie$1(),td=Ji$2();qa.exports=rd;function rd(sd){var od,ld,ud;td(dd,sd),td(cd,dd),od=dd.prototype;for(ld in od)ud=od[ld],ud&&typeof ud=="object"&&(od[ld]="concat"in ud?ud.concat():ed(ud));return dd;function cd(_d){return sd.apply(this,_d)}function dd(){return this instanceof dd?sd.apply(this,arguments):new cd(arguments)}}}),ru$2=C$1((Ra,qa)=>{qa.exports=ed;function ed(td,rd,sd){return od;function od(){var ld=sd||this,ud=ld[td];return ld[td]=!rd,cd;function cd(){ld[td]=ud}}}}),nu$3=C$1((Ra,qa)=>{qa.exports=ed;function ed(td){for(var rd=String(td),sd=[],od=/\r?\n|\r/g;od.exec(rd);)sd.push(od.lastIndex);return sd.push(rd.length+1),{toPoint:ld,toPosition:ld,toOffset:ud};function ld(cd){var dd=-1;if(cd>-1&&cd<sd[sd.length-1]){for(;++dd<sd.length;)if(sd[dd]>cd)return{line:dd+1,column:cd-(sd[dd-1]||0)+1,offset:cd}}return{}}function ud(cd){var dd=cd&&cd.line,_d=cd&&cd.column,Ed;return!isNaN(dd)&&!isNaN(_d)&&dd-1 in sd&&(Ed=(sd[dd-2]||0)+_d-1||0),Ed>-1&&Ed<sd[sd.length-1]?Ed:-1}}}),uu$3=C$1((Ra,qa)=>{qa.exports=td;var ed="\\";function td(rd,sd){return od;function od(ld){for(var ud=0,cd=ld.indexOf(ed),dd=rd[sd],_d=[],Ed;cd!==-1;)_d.push(ld.slice(ud,cd)),ud=cd+1,Ed=ld.charAt(ud),(!Ed||dd.indexOf(Ed)===-1)&&_d.push(ed),cd=ld.indexOf(ed,ud+1);return _d.push(ld.slice(ud)),_d.join("")}}}),au$2=C$1((Ra,qa)=>{qa.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}),ou$2=C$1((Ra,qa)=>{qa.exports={0:"<22>",128:"€",130:"",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"",140:"Œ",142:"Ž",145:"",146:"",147:"“",148:"”",149:"•",150:"",151:"—",152:"˜",153:"™",154:"š",155:"",156:"œ",158:"ž",159:"Ÿ"}}),Ne$1=C$1((Ra,qa)=>{qa.exports=ed;function ed(td){var rd=typeof td=="string"?td.charCodeAt(0):td;return rd>=48&&rd<=57}}),lu$2=C$1((Ra,qa)=>{qa.exports=ed;function ed(td){var rd=typeof td=="string"?td.charCodeAt(0):td;return rd>=97&&rd<=102||rd>=65&&rd<=70||rd>=48&&rd<=57}}),Ve$2=C$1((Ra,qa)=>{qa.exports=ed;function ed(td){var rd=typeof td=="string"?td.charCodeAt(0):td;return rd>=97&&rd<=122||rd>=65&&rd<=90}}),pu$1=C$1((Ra,qa)=>{var ed=Ve$2(),td=Ne$1();qa.exports=rd;function rd(sd){return ed(sd)||td(sd)}}),du$2=C$1((Ra,qa)=>{qa.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"",Popf:"",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"",ThinSpace:"",Tilde:"",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"
`);Tf!==-1;)Id++,_f=Tf,Tf=pf.indexOf(`
`,Tf+1);_f===-1?Bd+=pf.length:Bd=pf.length-_f,Id in _d&&(_f!==-1?Bd+=_d[Id]:Bd<=_d[Id]&&(Bd=_d[Id]+1))}function Qd(){var pf=[],_f=Id+1;return function(){for(var Tf=Id+1;_f<Tf;)pf.push((_d[_f]||0)+1),_f++;return pf}}function qd(){var pf={line:Id,column:Bd};return pf.offset=dd.toOffset(pf),pf}function Kd(pf){this.start=pf,this.end=qd()}function Xd(pf){ud.slice(0,pf.length)!==pf&&dd.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),qd())}function df(){var pf=qd();return _f;function _f(Tf,kf){var zf=Tf.position,Jf=zf?zf.start:pf,Gf=[],Mf=zf&&zf.end.line,Nf=pf.line;if(Tf.position=new Kd(Jf),zf&&kf&&zf.indent){if(Gf=zf.indent,Mf<Nf){for(;++Mf<Nf;)Gf.push((_d[Mf]||0)+1);Gf.push(pf.column)}kf=Gf.concat(kf)}return Tf.position.indent=kf||[],Tf}}function mf(pf,_f){var Tf=_f?_f.children:Ed,kf=Tf[Tf.length-1],zf;return kf&&pf.type===kf.type&&(pf.type==="text"||pf.type==="blockquote")&&td(kf)&&td(pf)&&(zf=pf.type==="text"?rd:sd,pf=zf.call(dd,kf,pf)),pf!==kf&&Tf.push(pf),dd.atStart&&Ed.length!==0&&dd.exitStart(),pf}function bf(pf){var _f=Qd(),Tf=df(),kf=qd();return Xd(pf),zf.reset=Jf,Jf.test=Gf,zf.test=Gf,ud=ud.slice(pf.length),Vd(pf),_f=_f(),zf;function zf(Mf,Nf){return Tf(mf(Tf(Mf),Nf),_f)}function Jf(){var Mf=zf.apply(null,arguments);return Id=kf.line,Bd=kf.column,ud=pf+ud,Mf}function Gf(){var Mf=Tf({});return Id=kf.line,Bd=kf.column,ud=pf+ud,Mf.position}}}}function td(od){var ld,ud;return od.type!=="text"||!od.position?!0:(ld=od.position.start,ud=od.position.end,ld.line!==ud.line||ud.column-ld.column===od.value.length)}function rd(od,ld){return od.value+=ld.value,od}function sd(od,ld){return this.options.commonmark||this.options.gfm?ld:(od.children=od.children.concat(ld.children),od)}}),Uu$2=C$1((Ra,qa)=>{qa.exports=sd;var ed=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],td=ed.concat(["~","|"]),rd=td.concat([`
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);sd.default=ed,sd.gfm=td,sd.commonmark=rd;function sd(od){var ld=od||{};return ld.commonmark?rd:ld.gfm?td:ed}}),Mu$1=C$1((Ra,qa)=>{qa.exports=["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","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}),Rt$3=C$1((Ra,qa)=>{qa.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Mu$1()}}),Vu$2=C$1((Ra,qa)=>{var ed=Ie$1(),td=Uu$2(),rd=Rt$3();qa.exports=sd;function sd(od){var ld=this,ud=ld.options,cd,dd;if(od==null)od={};else if(typeof od=="object")od=ed(od);else throw new Error("Invalid value `"+od+"` for setting `options`");for(cd in rd){if(dd=od[cd],dd==null&&(dd=ud[cd]),cd!=="blocks"&&typeof dd!="boolean"||cd==="blocks"&&typeof dd!="object")throw new Error("Invalid value `"+dd+"` for setting `options."+cd+"`");od[cd]=dd}return ld.options=od,ld.escape=td(od),ld}}),Hu$2=C$1((Ra,qa)=>{qa.exports=ed;function ed(ld){if(ld==null)return od;if(typeof ld=="string")return sd(ld);if(typeof ld=="object")return"length"in ld?rd(ld):td(ld);if(typeof ld=="function")return ld;throw new Error("Expected function, string, or object as test")}function td(ld){return ud;function ud(cd){var dd;for(dd in ld)if(cd[dd]!==ld[dd])return!1;return!0}}function rd(ld){for(var ud=[],cd=-1;++cd<ld.length;)ud[cd]=ed(ld[cd]);return dd;function dd(){for(var _d=-1;++_d<ud.length;)if(ud[_d].apply(this,arguments))return!0;return!1}}function sd(ld){return ud;function ud(cd){return!!(cd&&cd.type===ld)}}function od(){return!0}}),Ku$2=C$1((Ra,qa)=>{qa.exports=ed;function ed(td){return td}}),Zu$3=C$1((Ra,qa)=>{qa.exports=ld;var ed=Hu$2(),td=Ku$2(),rd=!0,sd="skip",od=!1;ld.CONTINUE=rd,ld.SKIP=sd,ld.EXIT=od;function ld(cd,dd,_d,Ed){var Ad,Td;typeof dd=="function"&&typeof _d!="function"&&(Ed=_d,_d=dd,dd=null),Td=ed(dd),Ad=Ed?-1:1,Id(cd,null,[])();function Id(Bd,Rd,Od){var Md=typeof Bd=="object"&&Bd!==null?Bd:{},Ld;return typeof Md.type=="string"&&(Ld=typeof Md.tagName=="string"?Md.tagName:typeof Md.name=="string"?Md.name:void 0,Fd.displayName="node ("+td(Md.type+(Ld?"<"+Ld+">":""))+")"),Fd;function Fd(){var jd=Od.concat(Bd),Vd=[],Qd,qd;if((!dd||Td(Bd,Rd,Od[Od.length-1]||null))&&(Vd=ud(_d(Bd,Od)),Vd[0]===od))return Vd;if(Bd.children&&Vd[0]!==sd)for(qd=(Ed?Bd.children.length:-1)+Ad;qd>-1&&qd<Bd.children.length;){if(Qd=Id(Bd.children[qd],qd,jd)(),Qd[0]===od)return Qd;qd=typeof Qd[1]=="number"?Qd[1]:qd+Ad}return Vd}}}function ud(cd){return cd!==null&&typeof cd=="object"&&"length"in cd?cd:typeof cd=="number"?[rd,cd]:[cd]}}),ra$1=C$1((Ra,qa)=>{qa.exports=od;var ed=Zu$3(),td=ed.CONTINUE,rd=ed.SKIP,sd=ed.EXIT;od.CONTINUE=td,od.SKIP=rd,od.EXIT=sd;function od(ld,ud,cd,dd){typeof ud=="function"&&typeof cd!="function"&&(dd=cd,cd=ud,ud=null),ed(ld,ud,_d,dd);function _d(Ed,Ad){var Td=Ad[Ad.length-1],Id=Td?Td.children.indexOf(Ed):null;return cd(Ed,Id,Td)}}}),na=C$1((Ra,qa)=>{var ed=ra$1();qa.exports=td;function td(od,ld){return ed(od,ld?rd:sd),od}function rd(od){delete od.position}function sd(od){od.position=void 0}}),aa$2=C$1((Ra,qa)=>{var ed=Ie$1(),td=na();qa.exports=od;var rd=`
`,sd=/\r\n|\r/g;function od(){var ld=this,ud=String(ld.file),cd={line:1,column:1,offset:0},dd=ed(cd),_d;return ud=ud.replace(sd,rd),ud.charCodeAt(0)===65279&&(ud=ud.slice(1),dd.column++,dd.offset++),_d={type:"root",children:ld.tokenizeBlock(ud,dd),position:{start:cd,end:ld.eof||ed(cd)}},ld.options.position||td(_d,!0),_d}}),sa=C$1((Ra,qa)=>{var ed=/^[ \t]*(\n|$)/;qa.exports=td;function td(rd,sd,od){for(var ld,ud="",cd=0,dd=sd.length;cd<dd&&(ld=ed.exec(sd.slice(cd)),ld!=null);)cd+=ld[0].length,ud+=ld[0];if(ud!==""){if(od)return!0;rd(ud)}}}),Hr$2=C$1((Ra,qa)=>{var ed="",td;qa.exports=rd;function rd(sd,od){if(typeof sd!="string")throw new TypeError("expected a string");if(od===1)return sd;if(od===2)return sd+sd;var ld=sd.length*od;if(td!==sd||typeof td>"u")td=sd,ed="";else if(ed.length>=ld)return ed.substr(0,ld);for(;ld>ed.length&&od>1;)od&1&&(ed+=sd),od>>=1,sd+=sd;return ed+=sd,ed=ed.substr(0,ld),ed}}),Mt$2=C$1((Ra,qa)=>{qa.exports=ed;function ed(td){return String(td).replace(/\n+$/,"")}}),pa=C$1((Ra,qa)=>{var ed=Hr$2(),td=Mt$2();qa.exports=cd;var rd=`
`,sd=" ",od=" ",ld=4,ud=ed(od,ld);function cd(dd,_d,Ed){for(var Ad=-1,Td=_d.length,Id="",Bd="",Rd="",Od="",Md,Ld,Fd;++Ad<Td;)if(Md=_d.charAt(Ad),Fd)if(Fd=!1,Id+=Rd,Bd+=Od,Rd="",Od="",Md===rd)Rd=Md,Od=Md;else for(Id+=Md,Bd+=Md;++Ad<Td;){if(Md=_d.charAt(Ad),!Md||Md===rd){Od=Md,Rd=Md;break}Id+=Md,Bd+=Md}else if(Md===od&&_d.charAt(Ad+1)===Md&&_d.charAt(Ad+2)===Md&&_d.charAt(Ad+3)===Md)Rd+=ud,Ad+=3,Fd=!0;else if(Md===sd)Rd+=Md,Fd=!0;else{for(Ld="";Md===sd||Md===od;)Ld+=Md,Md=_d.charAt(++Ad);if(Md!==rd)break;Rd+=Ld+Md,Od+=Md}if(Bd)return Ed?!0:dd(Id)({type:"code",lang:null,meta:null,value:td(Bd)})}}),ma=C$1((Ra,qa)=>{qa.exports=cd;var ed=`
`,td=" ",rd=" ",sd="~",od="`",ld=3,ud=4;function cd(dd,_d,Ed){var Ad=this,Td=Ad.options.gfm,Id=_d.length+1,Bd=0,Rd="",Od,Md,Ld,Fd,jd,Vd,Qd,qd,Kd,Xd,df,mf,bf;if(Td){for(;Bd<Id&&(Ld=_d.charAt(Bd),!(Ld!==rd&&Ld!==td));)Rd+=Ld,Bd++;if(mf=Bd,Ld=_d.charAt(Bd),!(Ld!==sd&&Ld!==od)){for(Bd++,Md=Ld,Od=1,Rd+=Ld;Bd<Id&&(Ld=_d.charAt(Bd),Ld===Md);)Rd+=Ld,Od++,Bd++;if(!(Od<ld)){for(;Bd<Id&&(Ld=_d.charAt(Bd),!(Ld!==rd&&Ld!==td));)Rd+=Ld,Bd++;for(Fd="",Qd="";Bd<Id&&(Ld=_d.charAt(Bd),!(Ld===ed||Md===od&&Ld===Md));)Ld===rd||Ld===td?Qd+=Ld:(Fd+=Qd+Ld,Qd=""),Bd++;if(Ld=_d.charAt(Bd),!(Ld&&Ld!==ed)){if(Ed)return!0;bf=dd.now(),bf.column+=Rd.length,bf.offset+=Rd.length,Rd+=Fd,Fd=Ad.decode.raw(Ad.unescape(Fd),bf),Qd&&(Rd+=Qd),Qd="",Xd="",df="",qd="",Kd="";for(var pf=!0;Bd<Id;){if(Ld=_d.charAt(Bd),qd+=Xd,Kd+=df,Xd="",df="",Ld!==ed){qd+=Ld,df+=Ld,Bd++;continue}for(pf?(Rd+=Ld,pf=!1):(Xd+=Ld,df+=Ld),Qd="",Bd++;Bd<Id&&(Ld=_d.charAt(Bd),Ld===rd);)Qd+=Ld,Bd++;if(Xd+=Qd,df+=Qd.slice(mf),!(Qd.length>=ud)){for(Qd="";Bd<Id&&(Ld=_d.charAt(Bd),Ld===Md);)Qd+=Ld,Bd++;if(Xd+=Qd,df+=Qd,!(Qd.length<Od)){for(Qd="";Bd<Id&&(Ld=_d.charAt(Bd),!(Ld!==rd&&Ld!==td));)Xd+=Ld,df+=Ld,Bd++;if(!Ld||Ld===ed)break}}}for(Rd+=qd+Xd,Bd=-1,Id=Fd.length;++Bd<Id;)if(Ld=Fd.charAt(Bd),Ld===rd||Ld===td)jd||(jd=Fd.slice(0,Bd));else if(jd){Vd=Fd.slice(Bd);break}return dd(Rd)({type:"code",lang:jd||Fd||null,meta:Vd||null,value:Kd})}}}}}}),Re$3=C$1((Ra,qa)=>{Ra=qa.exports=ed;function ed(td){return td.trim?td.trim():Ra.right(Ra.left(td))}Ra.left=function(td){return td.trimLeft?td.trimLeft():td.replace(/^\s\s*/,"")},Ra.right=function(td){if(td.trimRight)return td.trimRight();for(var rd=/\s/,sd=td.length;rd.test(td.charAt(--sd)););return td.slice(0,sd+1)}}),Kr$2=C$1((Ra,qa)=>{qa.exports=ed;function ed(td,rd,sd,od){for(var ld=td.length,ud=-1,cd,dd;++ud<ld;)if(cd=td[ud],dd=cd[1]||{},!(dd.pedantic!==void 0&&dd.pedantic!==sd.options.pedantic)&&!(dd.commonmark!==void 0&&dd.commonmark!==sd.options.commonmark)&&rd[cd[0]].apply(sd,od))return!0;return!1}}),ba$1=C$1((Ra,qa)=>{var ed=Re$3(),td=Kr$2();qa.exports=ud;var rd=`
`,sd=" ",od=" ",ld=">";function ud(cd,dd,_d){for(var Ed=this,Ad=Ed.offset,Td=Ed.blockTokenizers,Id=Ed.interruptBlockquote,Bd=cd.now(),Rd=Bd.line,Od=dd.length,Md=[],Ld=[],Fd=[],jd,Vd=0,Qd,qd,Kd,Xd,df,mf,bf,pf;Vd<Od&&(Qd=dd.charAt(Vd),!(Qd!==od&&Qd!==sd));)Vd++;if(dd.charAt(Vd)===ld){if(_d)return!0;for(Vd=0;Vd<Od;){for(Kd=dd.indexOf(rd,Vd),mf=Vd,bf=!1,Kd===-1&&(Kd=Od);Vd<Od&&(Qd=dd.charAt(Vd),!(Qd!==od&&Qd!==sd));)Vd++;if(dd.charAt(Vd)===ld?(Vd++,bf=!0,dd.charAt(Vd)===od&&Vd++):Vd=mf,Xd=dd.slice(Vd,Kd),!bf&&!ed(Xd)){Vd=mf;break}if(!bf&&(qd=dd.slice(Vd),td(Id,Td,Ed,[cd,qd,!0])))break;df=mf===Vd?Xd:dd.slice(mf,Kd),Fd.push(Vd-mf),Md.push(df),Ld.push(Xd),Vd=Kd+1}for(Vd=-1,Od=Fd.length,jd=cd(Md.join(rd));++Vd<Od;)Ad[Rd]=(Ad[Rd]||0)+Fd[Vd],Rd++;return pf=Ed.enterBlock(),Ld=Ed.tokenizeBlock(Ld.join(rd),Bd),pf(),jd({type:"blockquote",children:Ld})}}}),xa$1=C$1((Ra,qa)=>{qa.exports=ld;var ed=`
`,td=" ",rd=" ",sd="#",od=6;function ld(ud,cd,dd){for(var _d=this,Ed=_d.options.pedantic,Ad=cd.length+1,Td=-1,Id=ud.now(),Bd="",Rd="",Od,Md,Ld;++Td<Ad;){if(Od=cd.charAt(Td),Od!==rd&&Od!==td){Td--;break}Bd+=Od}for(Ld=0;++Td<=Ad;){if(Od=cd.charAt(Td),Od!==sd){Td--;break}Bd+=Od,Ld++}if(!(Ld>od)&&!(!Ld||!Ed&&cd.charAt(Td+1)===sd)){for(Ad=cd.length+1,Md="";++Td<Ad;){if(Od=cd.charAt(Td),Od!==rd&&Od!==td){Td--;break}Md+=Od}if(!(!Ed&&Md.length===0&&Od&&Od!==ed)){if(dd)return!0;for(Bd+=Md,Md="",Rd="";++Td<Ad&&(Od=cd.charAt(Td),!(!Od||Od===ed));){if(Od!==rd&&Od!==td&&Od!==sd){Rd+=Md+Od,Md="";continue}for(;Od===rd||Od===td;)Md+=Od,Od=cd.charAt(++Td);if(!Ed&&Rd&&!Md&&Od===sd){Rd+=Od;continue}for(;Od===sd;)Md+=Od,Od=cd.charAt(++Td);for(;Od===rd||Od===td;)Md+=Od,Od=cd.charAt(++Td);Td--}return Id.column+=Bd.length,Id.offset+=Bd.length,Bd+=Rd+Md,ud(Bd)({type:"heading",depth:Ld,children:_d.tokenizeInline(Rd,Id)})}}}}),Ba=C$1((Ra,qa)=>{qa.exports=cd;var ed=" ",td=`
`,rd=" ",sd="*",od="-",ld="_",ud=3;function cd(dd,_d,Ed){for(var Ad=-1,Td=_d.length+1,Id="",Bd,Rd,Od,Md;++Ad<Td&&(Bd=_d.charAt(Ad),!(Bd!==ed&&Bd!==rd));)Id+=Bd;if(!(Bd!==sd&&Bd!==od&&Bd!==ld))for(Rd=Bd,Id+=Bd,Od=1,Md="";++Ad<Td;)if(Bd=_d.charAt(Ad),Bd===Rd)Od++,Id+=Md+Rd,Md="";else if(Bd===rd)Md+=Bd;else return Od>=ud&&(!Bd||Bd===td)?(Id+=Md,Ed?!0:dd(Id)({type:"thematicBreak"})):void 0}}),$t$3=C$1((Ra,qa)=>{qa.exports=od;var ed=" ",td=" ",rd=1,sd=4;function od(ld){for(var ud=0,cd=0,dd=ld.charAt(ud),_d={},Ed,Ad=0;dd===ed||dd===td;){for(Ed=dd===ed?sd:rd,cd+=Ed,Ed>1&&(cd=Math.floor(cd/Ed)*Ed);Ad<cd;)_d[++Ad]=ud;dd=ld.charAt(++ud)}return{indent:cd,stops:_d}}}),Oa$2=C$1((Ra,qa)=>{var ed=Re$3(),td=Hr$2(),rd=$t$3();qa.exports=ud;var sd=`
`,od=" ",ld="!";function ud(cd,dd){var _d=cd.split(sd),Ed=_d.length+1,Ad=1/0,Td=[],Id,Bd,Rd;for(_d.unshift(td(od,dd)+ld);Ed--;)if(Bd=rd(_d[Ed]),Td[Ed]=Bd.stops,ed(_d[Ed]).length!==0)if(Bd.indent)Bd.indent>0&&Bd.indent<Ad&&(Ad=Bd.indent);else{Ad=1/0;break}if(Ad!==1/0)for(Ed=_d.length;Ed--;){for(Rd=Td[Ed],Id=Ad;Id&&!(Id in Rd);)Id--;_d[Ed]=_d[Ed].slice(Rd[Id]+1)}return _d.shift(),_d.join(sd)}}),Ua$2=C$1((Ra,qa)=>{var ed=Re$3(),td=Hr$2(),rd=Ne$1(),sd=$t$3(),od=Oa$2(),ld=Kr$2();qa.exports=Qd;var ud="*",cd="_",dd="+",_d="-",Ed=".",Ad=" ",Td=`
`,Id=" ",Bd=")",Rd="x",Od=4,Md=/\n\n(?!\s*$)/,Ld=/^\[([ X\tx])][ \t]/,Fd=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,jd=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Vd=/^( {1,4}|\t)?/gm;function Qd(df,mf,bf){for(var pf=this,_f=pf.options.commonmark,Tf=pf.options.pedantic,kf=pf.blockTokenizers,zf=pf.interruptList,Jf=0,Gf=mf.length,Mf=null,Nf,Bf,Qf,Wf,yf,hf,Rf,jf,Kf,Ff,wf,Yf,uh,Uf,Cf,If,Lf,sh,hh,rh=!1,Ah,ph,vh,qh;Jf<Gf&&(Wf=mf.charAt(Jf),!(Wf!==Id&&Wf!==Ad));)Jf++;if(Wf=mf.charAt(Jf),Wf===ud||Wf===dd||Wf===_d)yf=Wf,Qf=!1;else{for(Qf=!0,Bf="";Jf<Gf&&(Wf=mf.charAt(Jf),!!rd(Wf));)Bf+=Wf,Jf++;if(Wf=mf.charAt(Jf),!Bf||!(Wf===Ed||_f&&Wf===Bd)||bf&&Bf!=="1")return;Mf=parseInt(Bf,10),yf=Wf}if(Wf=mf.charAt(++Jf),!(Wf!==Ad&&Wf!==Id&&(Tf||Wf!==Td&&Wf!==""))){if(bf)return!0;for(Jf=0,Uf=[],Cf=[],If=[];Jf<Gf;){for(hf=mf.indexOf(Td,Jf),Rf=Jf,jf=!1,qh=!1,hf===-1&&(hf=Gf),Nf=0;Jf<Gf;){if(Wf=mf.charAt(Jf),Wf===Id)Nf+=Od-Nf%Od;else if(Wf===Ad)Nf++;else break;Jf++}if(Lf&&Nf>=Lf.indent&&(qh=!0),Wf=mf.charAt(Jf),Kf=null,!qh){if(Wf===ud||Wf===dd||Wf===_d)Kf=Wf,Jf++,Nf++;else{for(Bf="";Jf<Gf&&(Wf=mf.charAt(Jf),!!rd(Wf));)Bf+=Wf,Jf++;Wf=mf.charAt(Jf),Jf++,Bf&&(Wf===Ed||_f&&Wf===Bd)&&(Kf=Wf,Nf+=Bf.length+1)}if(Kf)if(Wf=mf.charAt(Jf),Wf===Id)Nf+=Od-Nf%Od,Jf++;else if(Wf===Ad){for(vh=Jf+Od;Jf<vh&&mf.charAt(Jf)===Ad;)Jf++,Nf++;Jf===vh&&mf.charAt(Jf)===Ad&&(Jf-=Od-1,Nf-=Od-1)}else Wf!==Td&&Wf!==""&&(Kf=null)}if(Kf){if(!Tf&&yf!==Kf)break;jf=!0}else!_f&&!qh&&mf.charAt(Rf)===Ad?qh=!0:_f&&Lf&&(qh=Nf>=Lf.indent||Nf>Od),jf=!1,Jf=Rf;if(wf=mf.slice(Rf,hf),Ff=Rf===Jf?wf:mf.slice(Jf,hf),(Kf===ud||Kf===cd||Kf===_d)&&kf.thematicBreak.call(pf,df,wf,!0))break;if(Yf=uh,uh=!jf&&!ed(Ff).length,qh&&Lf)Lf.value=Lf.value.concat(If,wf),Cf=Cf.concat(If,wf),If=[];else if(jf)If.length!==0&&(rh=!0,Lf.value.push(""),Lf.trail=If.concat()),Lf={value:[wf],indent:Nf,trail:[]},Uf.push(Lf),Cf=Cf.concat(If,wf),If=[];else if(uh){if(Yf&&!_f)break;If.push(wf)}else{if(Yf||ld(zf,kf,pf,[df,wf,!0]))break;Lf.value=Lf.value.concat(If,wf),Cf=Cf.concat(If,wf),If=[]}Jf=hf+1}for(Ah=df(Cf.join(Td)).reset({type:"list",ordered:Qf,start:Mf,spread:rh,children:[]}),sh=pf.enterList(),hh=pf.enterBlock(),Jf=-1,Gf=Uf.length;++Jf<Gf;)Lf=Uf[Jf].value.join(Td),ph=df.now(),df(Lf)(qd(pf,Lf,ph),Ah),Lf=Uf[Jf].trail.join(Td),Jf!==Gf-1&&(Lf+=Td),df(Lf);return sh(),hh(),Ah}}function qd(df,mf,bf){var pf=df.offset,_f=df.options.pedantic?Kd:Xd,Tf=null,kf,zf;return mf=_f.apply(null,arguments),df.options.gfm&&(kf=mf.match(Ld),kf&&(zf=kf[0].length,Tf=kf[1].toLowerCase()===Rd,pf[bf.line]+=zf,mf=mf.slice(zf))),{type:"listItem",spread:Md.test(mf),checked:Tf,children:df.tokenizeBlock(mf,bf)}}function Kd(df,mf,bf){var pf=df.offset,_f=bf.line;return mf=mf.replace(jd,Tf),_f=bf.line,mf.replace(Vd,Tf);function Tf(kf){return pf[_f]=(pf[_f]||0)+kf.length,_f++,""}}function Xd(df,mf,bf){var pf=df.offset,_f=bf.line,Tf,kf,zf,Jf,Gf,Mf,Nf;for(mf=mf.replace(Fd,Bf),Jf=mf.split(Td),Gf=od(mf,sd(Tf).indent).split(Td),Gf[0]=zf,pf[_f]=(pf[_f]||0)+kf.length,_f++,Mf=0,Nf=Jf.length;++Mf<Nf;)pf[_f]=(pf[_f]||0)+Jf[Mf].length-Gf[Mf].length,_f++;return Gf.join(Td);function Bf(Qf,Wf,yf,hf,Rf){return kf=Wf+yf+hf,zf=Rf,Number(yf)<10&&kf.length%2===1&&(yf=Ad+yf),Tf=Wf+td(Ad,yf.length)+hf,Tf+zf}}}),Ga$1=C$1((Ra,qa)=>{qa.exports=dd;var ed=`
`,td=" ",rd=" ",sd="=",od="-",ld=3,ud=1,cd=2;function dd(_d,Ed,Ad){for(var Td=this,Id=_d.now(),Bd=Ed.length,Rd=-1,Od="",Md,Ld,Fd,jd,Vd;++Rd<Bd;){if(Fd=Ed.charAt(Rd),Fd!==rd||Rd>=ld){Rd--;break}Od+=Fd}for(Md="",Ld="";++Rd<Bd;){if(Fd=Ed.charAt(Rd),Fd===ed){Rd--;break}Fd===rd||Fd===td?Ld+=Fd:(Md+=Ld+Fd,Ld="")}if(Id.column+=Od.length,Id.offset+=Od.length,Od+=Md+Ld,Fd=Ed.charAt(++Rd),jd=Ed.charAt(++Rd),!(Fd!==ed||jd!==sd&&jd!==od)){for(Od+=Fd,Ld=jd,Vd=jd===sd?ud:cd;++Rd<Bd;){if(Fd=Ed.charAt(Rd),Fd!==jd){if(Fd!==ed)return;Rd--;break}Ld+=Fd}return Ad?!0:_d(Od+Ld)({type:"heading",depth:Vd,children:Td.tokenizeInline(Md,Id)})}}}),Xt$2=C$1(Ra=>{var qa="[a-zA-Z_:][a-zA-Z0-9:._-]*",ed="[^\"'=<>`\\u0000-\\u0020]+",td="'[^']*'",rd='"[^"]*"',sd="(?:"+ed+"|"+td+"|"+rd+")",od="(?:\\s+"+qa+"(?:\\s*=\\s*"+sd+")?)",ld="<[A-Za-z][A-Za-z0-9\\-]*"+od+"*\\s*\\/?>",ud="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",cd="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",dd="<[?].*?[?]>",_d="<![A-Za-z]+\\s+[^>]*>",Ed="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";Ra.openCloseTag=new RegExp("^(?:"+ld+"|"+ud+")"),Ra.tag=new RegExp("^(?:"+ld+"|"+ud+"|"+cd+"|"+dd+"|"+_d+"|"+Ed+")")}),Ka=C$1((Ra,qa)=>{var ed=Xt$2().openCloseTag;qa.exports=Md;var td=" ",rd=" ",sd=`
`,od="<",ld=/^<(script|pre|style)(?=(\s|>|$))/i,ud=/<\/(script|pre|style)>/i,cd=/^<!--/,dd=/-->/,_d=/^<\?/,Ed=/\?>/,Ad=/^<![A-Za-z]/,Td=/>/,Id=/^<!\[CDATA\[/,Bd=/]]>/,Rd=/^$/,Od=new RegExp(ed.source+"\\s*$");function Md(Ld,Fd,jd){for(var Vd=this,Qd=Vd.options.blocks.join("|"),qd=new RegExp("^</?("+Qd+")(?=(\\s|/?>|$))","i"),Kd=Fd.length,Xd=0,df,mf,bf,pf,_f,Tf,kf,zf=[[ld,ud,!0],[cd,dd,!0],[_d,Ed,!0],[Ad,Td,!0],[Id,Bd,!0],[qd,Rd,!0],[Od,Rd,!1]];Xd<Kd&&(pf=Fd.charAt(Xd),!(pf!==td&&pf!==rd));)Xd++;if(Fd.charAt(Xd)===od){for(df=Fd.indexOf(sd,Xd+1),df=df===-1?Kd:df,mf=Fd.slice(Xd,df),bf=-1,_f=zf.length;++bf<_f;)if(zf[bf][0].test(mf)){Tf=zf[bf];break}if(Tf){if(jd)return Tf[2];if(Xd=df,!Tf[1].test(mf))for(;Xd<Kd;){if(df=Fd.indexOf(sd,Xd+1),df=df===-1?Kd:df,mf=Fd.slice(Xd+1,df),Tf[1].test(mf)){mf&&(Xd=df);break}Xd=df}return kf=Fd.slice(0,Xd),Ld(kf)({type:"html",value:kf})}}}}),ue$2=C$1((Ra,qa)=>{qa.exports=rd;var ed=String.fromCharCode,td=/\s/;function rd(sd){return td.test(typeof sd=="number"?ed(sd):sd.charAt(0))}}),Qt$1=C$1((Ra,qa)=>{var ed=xr$1();qa.exports=td;function td(rd){return ed(rd).toLowerCase()}}),io$1=C$1((Ra,qa)=>{var ed=ue$2(),td=Qt$1();qa.exports=Rd;var rd='"',sd="'",od="\\",ld=`
`,ud=" ",cd=" ",dd="[",_d="]",Ed="(",Ad=")",Td=":",Id="<",Bd=">";function Rd(Ld,Fd,jd){for(var Vd=this,Qd=Vd.options.commonmark,qd=0,Kd=Fd.length,Xd="",df,mf,bf,pf,_f,Tf,kf,zf;qd<Kd&&(pf=Fd.charAt(qd),!(pf!==cd&&pf!==ud));)Xd+=pf,qd++;if(pf=Fd.charAt(qd),pf===dd){for(qd++,Xd+=pf,bf="";qd<Kd&&(pf=Fd.charAt(qd),pf!==_d);)pf===od&&(bf+=pf,qd++,pf=Fd.charAt(qd)),bf+=pf,qd++;if(!(!bf||Fd.charAt(qd)!==_d||Fd.charAt(qd+1)!==Td)){for(Tf=bf,Xd+=bf+_d+Td,qd=Xd.length,bf="";qd<Kd&&(pf=Fd.charAt(qd),!(pf!==ud&&pf!==cd&&pf!==ld));)Xd+=pf,qd++;if(pf=Fd.charAt(qd),bf="",df=Xd,pf===Id){for(qd++;qd<Kd&&(pf=Fd.charAt(qd),!!Od(pf));)bf+=pf,qd++;if(pf=Fd.charAt(qd),pf===Od.delimiter)Xd+=Id+bf+pf,qd++;else{if(Qd)return;qd-=bf.length+1,bf=""}}if(!bf){for(;qd<Kd&&(pf=Fd.charAt(qd),!!Md(pf));)bf+=pf,qd++;Xd+=bf}if(bf){for(kf=bf,bf="";qd<Kd&&(pf=Fd.charAt(qd),!(pf!==ud&&pf!==cd&&pf!==ld));)bf+=pf,qd++;if(pf=Fd.charAt(qd),_f=null,pf===rd?_f=rd:pf===sd?_f=sd:pf===Ed&&(_f=Ad),!_f)bf="",qd=Xd.length;else if(bf){for(Xd+=bf+pf,qd=Xd.length,bf="";qd<Kd&&(pf=Fd.charAt(qd),pf!==_f);){if(pf===ld){if(qd++,pf=Fd.charAt(qd),pf===ld||pf===_f)return;bf+=ld}bf+=pf,qd++}if(pf=Fd.charAt(qd),pf!==_f)return;mf=Xd,Xd+=bf+pf,qd++,zf=bf,bf=""}else return;for(;qd<Kd&&(pf=Fd.charAt(qd),!(pf!==ud&&pf!==cd));)Xd+=pf,qd++;if(pf=Fd.charAt(qd),!pf||pf===ld)return jd?!0:(df=Ld(df).test().end,kf=Vd.decode.raw(Vd.unescape(kf),df,{nonTerminated:!1}),zf&&(mf=Ld(mf).test().end,zf=Vd.decode.raw(Vd.unescape(zf),mf)),Ld(Xd)({type:"definition",identifier:td(Tf),label:Tf,title:zf||null,url:kf}))}}}}function Od(Ld){return Ld!==Bd&&Ld!==dd&&Ld!==_d}Od.delimiter=Bd;function Md(Ld){return Ld!==dd&&Ld!==_d&&!ed(Ld)}}),oo$3=C$1((Ra,qa)=>{var ed=ue$2();qa.exports=Id;var td=" ",rd=`
`,sd=" ",od="-",ld=":",ud="\\",cd="|",dd=1,_d=2,Ed="left",Ad="center",Td="right";function Id(Bd,Rd,Od){var Md=this,Ld,Fd,jd,Vd,Qd,qd,Kd,Xd,df,mf,bf,pf,_f,Tf,kf,zf,Jf,Gf,Mf,Nf,Bf,Qf;if(Md.options.gfm){for(Ld=0,zf=0,qd=Rd.length+1,Kd=[];Ld<qd;){if(Nf=Rd.indexOf(rd,Ld),Bf=Rd.indexOf(cd,Ld+1),Nf===-1&&(Nf=Rd.length),Bf===-1||Bf>Nf){if(zf<_d)return;break}Kd.push(Rd.slice(Ld,Nf)),zf++,Ld=Nf+1}for(Vd=Kd.join(rd),Fd=Kd.splice(1,1)[0]||[],Ld=0,qd=Fd.length,zf--,jd=!1,bf=[];Ld<qd;){if(df=Fd.charAt(Ld),df===cd){if(mf=null,jd===!1){if(Qf===!1)return}else bf.push(jd),jd=!1;Qf=!1}else if(df===od)mf=!0,jd=jd||null;else if(df===ld)jd===Ed?jd=Ad:mf&&jd===null?jd=Td:jd=Ed;else if(!ed(df))return;Ld++}if(jd!==!1&&bf.push(jd),!(bf.length<dd)){if(Od)return!0;for(kf=-1,Gf=[],Mf=Bd(Vd).reset({type:"table",align:bf,children:Gf});++kf<zf;){for(Jf=Kd[kf],Qd={type:"tableRow",children:[]},kf&&Bd(rd),Bd(Jf).reset(Qd,Mf),qd=Jf.length+1,Ld=0,Xd="",pf="",_f=!0;Ld<qd;){if(df=Jf.charAt(Ld),df===td||df===sd){pf?Xd+=df:Bd(df),Ld++;continue}df===""||df===cd?_f?Bd(df):((pf||df)&&!_f&&(Vd=pf,Xd.length>1&&(df?(Vd+=Xd.slice(0,-1),Xd=Xd.charAt(Xd.length-1)):(Vd+=Xd,Xd="")),Tf=Bd.now(),Bd(Vd)({type:"tableCell",children:Md.tokenizeInline(pf,Tf)},Qd)),Bd(Xd+df),Xd="",pf=""):(Xd&&(pf+=Xd,Xd=""),pf+=df,df===ud&&Ld!==qd-2&&(pf+=Jf.charAt(Ld+1),Ld++)),_f=!1,Ld++}kf||Bd(rd+Fd)}return Mf}}}}),lo$2=C$1((Ra,qa)=>{var ed=Re$3(),td=Mt$2(),rd=Kr$2();qa.exports=cd;var sd=" ",od=`
`,ld=" ",ud=4;function cd(dd,_d,Ed){for(var Ad=this,Td=Ad.options,Id=Td.commonmark,Bd=Ad.blockTokenizers,Rd=Ad.interruptParagraph,Od=_d.indexOf(od),Md=_d.length,Ld,Fd,jd,Vd,Qd;Od<Md;){if(Od===-1){Od=Md;break}if(_d.charAt(Od+1)===od)break;if(Id){for(Vd=0,Ld=Od+1;Ld<Md;){if(jd=_d.charAt(Ld),jd===sd){Vd=ud;break}else if(jd===ld)Vd++;else break;Ld++}if(Vd>=ud&&jd!==od){Od=_d.indexOf(od,Od+1);continue}}if(Fd=_d.slice(Od+1),rd(Rd,Bd,Ad,[dd,Fd,!0]))break;if(Ld=Od,Od=_d.indexOf(od,Od+1),Od!==-1&&ed(_d.slice(Ld,Od))===""){Od=Ld;break}}return Fd=_d.slice(0,Od),Ed?!0:(Qd=dd.now(),Fd=td(Fd),dd(Fd)({type:"paragraph",children:Ad.tokenizeInline(Fd,Qd)}))}}),Do$1=C$1((Ra,qa)=>{qa.exports=ed;function ed(td,rd){return td.indexOf("\\",rd)}}),Fo$1=C$1((Ra,qa)=>{var ed=Do$1();qa.exports=sd,sd.locator=ed;var td=`
`,rd="\\";function sd(od,ld,ud){var cd=this,dd,_d;if(ld.charAt(0)===rd&&(dd=ld.charAt(1),cd.escape.indexOf(dd)!==-1))return ud?!0:(dd===td?_d={type:"break"}:_d={type:"text",value:dd},od(rd+dd)(_d))}}),tn$2=C$1((Ra,qa)=>{qa.exports=ed;function ed(td,rd){return td.indexOf("<",rd)}}),yo$2=C$1((Ra,qa)=>{var ed=ue$2(),td=pr$1(),rd=tn$2();qa.exports=_d,_d.locator=rd,_d.notInLink=!0;var sd="<",od=">",ld="@",ud="/",cd="mailto:",dd=cd.length;function _d(Ed,Ad,Td){var Id=this,Bd="",Rd=Ad.length,Od=0,Md="",Ld=!1,Fd="",jd,Vd,Qd,qd,Kd;if(Ad.charAt(0)===sd){for(Od++,Bd=sd;Od<Rd&&(jd=Ad.charAt(Od),!(ed(jd)||jd===od||jd===ld||jd===":"&&Ad.charAt(Od+1)===ud));)Md+=jd,Od++;if(Md){if(Fd+=Md,Md="",jd=Ad.charAt(Od),Fd+=jd,Od++,jd===ld)Ld=!0;else{if(jd!==":"||Ad.charAt(Od+1)!==ud)return;Fd+=ud,Od++}for(;Od<Rd&&(jd=Ad.charAt(Od),!(ed(jd)||jd===od));)Md+=jd,Od++;if(jd=Ad.charAt(Od),!(!Md||jd!==od))return Td?!0:(Fd+=Md,Qd=Fd,Bd+=Fd+jd,Vd=Ed.now(),Vd.column++,Vd.offset++,Ld&&(Fd.slice(0,dd).toLowerCase()===cd?(Qd=Qd.slice(dd),Vd.column+=dd,Vd.offset+=dd):Fd=cd+Fd),qd=Id.inlineTokenizers,Id.inlineTokenizers={text:qd.text},Kd=Id.enterLink(),Qd=Id.tokenizeInline(Qd,Vd),Id.inlineTokenizers=qd,Kd(),Ed(Bd)({type:"link",title:null,url:td(Fd,{nonTerminated:!1}),children:Qd}))}}}}),xo$2=C$1((Ra,qa)=>{qa.exports=ed;function ed(td,rd){var sd=String(td),od=0,ld;if(typeof rd!="string")throw new Error("Expected character");for(ld=sd.indexOf(rd);ld!==-1;)od++,ld=sd.indexOf(rd,ld+rd.length);return od}}),Bo$1=C$1((Ra,qa)=>{qa.exports=td;var ed=["www.","http://","https://"];function td(rd,sd){var od=-1,ld,ud,cd;if(!this.options.gfm)return od;for(ud=ed.length,ld=-1;++ld<ud;)cd=rd.indexOf(ed[ld],sd),cd!==-1&&(od===-1||cd<od)&&(od=cd);return od}}),Oo=C$1((Ra,qa)=>{var ed=xo$2(),td=pr$1(),rd=Ne$1(),sd=Ve$2(),od=ue$2(),ld=Bo$1();qa.exports=Vd,Vd.locator=ld,Vd.notInLink=!0;var ud=33,cd=38,dd=41,_d=42,Ed=44,Ad=45,Td=46,Id=58,Bd=59,Rd=63,Od=60,Md=95,Ld=126,Fd="(",jd=")";function Vd(Qd,qd,Kd){var Xd=this,df=Xd.options.gfm,mf=Xd.inlineTokenizers,bf=qd.length,pf=-1,_f=!1,Tf,kf,zf,Jf,Gf,Mf,Nf,Bf,Qf,Wf,yf,hf,Rf,jf;if(df){if(qd.slice(0,4)==="www.")_f=!0,Jf=4;else if(qd.slice(0,7).toLowerCase()==="http://")Jf=7;else if(qd.slice(0,8).toLowerCase()==="https://")Jf=8;else return;for(pf=Jf-1,zf=Jf,Tf=[];Jf<bf;){if(Nf=qd.charCodeAt(Jf),Nf===Td){if(pf===Jf-1)break;Tf.push(Jf),pf=Jf,Jf++;continue}if(rd(Nf)||sd(Nf)||Nf===Ad||Nf===Md){Jf++;continue}break}if(Nf===Td&&(Tf.pop(),Jf--),Tf[0]!==void 0&&(kf=Tf.length<2?zf:Tf[Tf.length-2]+1,qd.slice(kf,Jf).indexOf("_")===-1)){if(Kd)return!0;for(Bf=Jf,Gf=Jf;Jf<bf&&(Nf=qd.charCodeAt(Jf),!(od(Nf)||Nf===Od));)Jf++,Nf===ud||Nf===_d||Nf===Ed||Nf===Td||Nf===Id||Nf===Rd||Nf===Md||Nf===Ld||(Bf=Jf);if(Jf=Bf,qd.charCodeAt(Jf-1)===dd)for(Mf=qd.slice(Gf,Jf),Qf=ed(Mf,Fd),Wf=ed(Mf,jd);Wf>Qf;)Jf=Gf+Mf.lastIndexOf(jd),Mf=qd.slice(Gf,Jf),Wf--;if(qd.charCodeAt(Jf-1)===Bd&&(Jf--,sd(qd.charCodeAt(Jf-1)))){for(Bf=Jf-2;sd(qd.charCodeAt(Bf));)Bf--;qd.charCodeAt(Bf)===cd&&(Jf=Bf)}return yf=qd.slice(0,Jf),Rf=td(yf,{nonTerminated:!1}),_f&&(Rf="http://"+Rf),jf=Xd.enterLink(),Xd.inlineTokenizers={text:mf.text},hf=Xd.tokenizeInline(yf,Qd.now()),Xd.inlineTokenizers=mf,jf(),Qd(yf)({type:"link",title:null,url:Rf,children:hf})}}}}),No=C$1((Ra,qa)=>{var ed=Ne$1(),td=Ve$2(),rd=43,sd=45,od=46,ld=95;qa.exports=ud;function ud(dd,_d){var Ed=this,Ad,Td;if(!this.options.gfm||(Ad=dd.indexOf("@",_d),Ad===-1))return-1;if(Td=Ad,Td===_d||!cd(dd.charCodeAt(Td-1)))return ud.call(Ed,dd,Ad+1);for(;Td>_d&&cd(dd.charCodeAt(Td-1));)Td--;return Td}function cd(dd){return ed(dd)||td(dd)||dd===rd||dd===sd||dd===od||dd===ld}}),Mo$2=C$1((Ra,qa)=>{var ed=pr$1(),td=Ne$1(),rd=Ve$2(),sd=No();qa.exports=_d,_d.locator=sd,_d.notInLink=!0;var od=43,ld=45,ud=46,cd=64,dd=95;function _d(Ed,Ad,Td){var Id=this,Bd=Id.options.gfm,Rd=Id.inlineTokenizers,Od=0,Md=Ad.length,Ld=-1,Fd,jd,Vd,Qd;if(Bd){for(Fd=Ad.charCodeAt(Od);td(Fd)||rd(Fd)||Fd===od||Fd===ld||Fd===ud||Fd===dd;)Fd=Ad.charCodeAt(++Od);if(Od!==0&&Fd===cd){for(Od++;Od<Md;){if(Fd=Ad.charCodeAt(Od),td(Fd)||rd(Fd)||Fd===ld||Fd===ud||Fd===dd){Od++,Ld===-1&&Fd===ud&
`,sd="!",od='"',ld="'",ud="(",cd=")",dd="<",_d=">",Ed="[",Ad="\\",Td="]",Id="`";function Bd(Rd,Od,Md){var Ld=this,Fd="",jd=0,Vd=Od.charAt(0),Qd=Ld.options.pedantic,qd=Ld.options.commonmark,Kd=Ld.options.gfm,Xd,df,mf,bf,pf,_f,Tf,kf,zf,Jf,Gf,Mf,Nf,Bf,Qf,Wf,yf,hf;if(Vd===sd&&(kf=!0,Fd=Vd,Vd=Od.charAt(++jd)),Vd===Ed&&!(!kf&&Ld.inLink)){for(Fd+=Vd,Bf="",jd++,Gf=Od.length,Wf=Rd.now(),Nf=0,Wf.column+=jd,Wf.offset+=jd;jd<Gf;){if(Vd=Od.charAt(jd),_f=Vd,Vd===Id){for(df=1;Od.charAt(jd+1)===Id;)_f+=Vd,jd++,df++;mf?df>=mf&&(mf=0):mf=df}else if(Vd===Ad)jd++,_f+=Od.charAt(jd);else if((!mf||Kd)&&Vd===Ed)Nf++;else if((!mf||Kd)&&Vd===Td)if(Nf)Nf--;else{if(Od.charAt(jd+1)!==ud)return;_f+=ud,Xd=!0,jd++;break}Bf+=_f,_f="",jd++}if(Xd){for(zf=Bf,Fd+=Bf+_f,jd++;jd<Gf&&(Vd=Od.charAt(jd),!!ed(Vd));)Fd+=Vd,jd++;if(Vd=Od.charAt(jd),Bf="",bf=Fd,Vd===dd){for(jd++,bf+=dd;jd<Gf&&(Vd=Od.charAt(jd),Vd!==_d);){if(qd&&Vd===rd)return;Bf+=Vd,jd++}if(Od.charAt(jd)!==_d)return;Fd+=dd+Bf+_d,Qf=Bf,jd++}else{for(Vd=null,_f="";jd<Gf&&(Vd=Od.charAt(jd),!(_f&&(Vd===od||Vd===ld||qd&&Vd===ud)));){if(ed(Vd)){if(!Qd)break;_f+=Vd}else{if(Vd===ud)Nf++;else if(Vd===cd){if(Nf===0)break;Nf--}Bf+=_f,_f="",Vd===Ad&&(Bf+=Ad,Vd=Od.charAt(++jd)),Bf+=Vd}jd++}Fd+=Bf,Qf=Bf,jd=Fd.length}for(Bf="";jd<Gf&&(Vd=Od.charAt(jd),!!ed(Vd));)Bf+=Vd,jd++;if(Vd=Od.charAt(jd),Fd+=Bf,Bf&&(Vd===od||Vd===ld||qd&&Vd===ud))if(jd++,Fd+=Vd,Bf="",Jf=Vd===ud?cd:Vd,pf=Fd,qd){for(;jd<Gf&&(Vd=Od.charAt(jd),Vd!==Jf);)Vd===Ad&&(Bf+=Ad,Vd=Od.charAt(++jd)),jd++,Bf+=Vd;if(Vd=Od.charAt(jd),Vd!==Jf)return;for(Mf=Bf,Fd+=Bf+Vd,jd++;jd<Gf&&(Vd=Od.charAt(jd),!!ed(Vd));)Fd+=Vd,jd++}else for(_f="";jd<Gf;){if(Vd=Od.charAt(jd),Vd===Jf)Tf&&(Bf+=Jf+_f,_f=""),Tf=!0;else if(!Tf)Bf+=Vd;else if(Vd===cd){Fd+=Bf+Jf+_f,Mf=Bf;break}else ed(Vd)?_f+=Vd:(Bf+=Jf+_f+Vd,_f="",Tf=!1);jd++}if(Od.charAt(jd)===cd)return Md?!0:(Fd+=cd,Qf=Ld.decode.raw(Ld.unescape(Qf),Rd(bf).test().end,{nonTerminated:!1}),Mf&&(pf=Rd(pf).test().end,Mf=Ld.decode.raw(Ld.unescape(Mf),pf)),hf={type:kf?"image":"link",title:Mf||null,url:Qf},kf?hf.alt=Ld.decode.raw(Ld.unescape(zf),Wf)||null:(yf=Ld.enterLink(),hf.children=Ld.tokenizeInline(zf,Wf),yf()),Rd(Fd)(hf))}}}}),rs=C$1((Ra,qa)=>{var ed=ue$2(),td=dn$2(),rd=Qt$1();qa.exports=Td,Td.locator=td;var sd="link",od="image",ld="shortcut",ud="collapsed",cd="full",dd="!",_d="[",Ed="\\",Ad="]";function Td(Id,Bd,Rd){var Od=this,Md=Od.options.commonmark,Ld=Bd.charAt(0),Fd=0,jd=Bd.length,Vd="",Qd="",qd=sd,Kd=ld,Xd,df,mf,bf,pf,_f,Tf,kf;if(Ld===dd&&(qd=od,Qd=Ld,Ld=Bd.charAt(++Fd)),Ld===_d){for(Fd++,Qd+=Ld,_f="",kf=0;Fd<jd;){if(Ld=Bd.charAt(Fd),Ld===_d)Tf=!0,kf++;else if(Ld===Ad){if(!kf)break;kf--}Ld===Ed&&(_f+=Ed,Ld=Bd.charAt(++Fd)),_f+=Ld,Fd++}if(Vd=_f,Xd=_f,Ld=Bd.charAt(Fd),Ld===Ad){if(Fd++,Vd+=Ld,_f="",!Md)for(;Fd<jd&&(Ld=Bd.charAt(Fd),!!ed(Ld));)_f+=Ld,Fd++;if(Ld=Bd.charAt(Fd),Ld===_d){for(df="",_f+=Ld,Fd++;Fd<jd&&(Ld=Bd.charAt(Fd),!(Ld===_d||Ld===Ad));)Ld===Ed&&(df+=Ed,Ld=Bd.charAt(++Fd)),df+=Ld,Fd++;Ld=Bd.charAt(Fd),Ld===Ad?(Kd=df?cd:ud,_f+=df+Ld,Fd++):df="",Vd+=_f,_f=""}else{if(!Xd)return;df=Xd}if(!(Kd!==cd&&Tf))return Vd=Qd+Vd,qd===sd&&Od.inLink?null:Rd?!0:(mf=Id.now(),mf.column+=Qd.length,mf.offset+=Qd.length,df=Kd===cd?df:Xd,bf={type:qd+"Reference",identifier:rd(df),label:df,referenceType:Kd},qd===sd?(pf=Od.enterLink(),bf.children=Od.tokenizeInline(Xd,mf),pf()):bf.alt=Od.decode.raw(Od.unescape(Xd),mf)||null,Id(Vd)(bf))}}}}),ns=C$1((Ra,qa)=>{qa.exports=ed;function ed(td,rd){var sd=td.indexOf("**",rd),od=td.indexOf("__",rd);return od===-1?sd:sd===-1||od<sd?od:sd}}),os=C$1((Ra,qa)=>{var ed=Re$3(),td=ue$2(),rd=ns();qa.exports=ud,ud.locator=rd;var sd="\\",od="*",ld="_";function ud(cd,dd,_d){var Ed=this,Ad=0,Td=dd.charAt(Ad),Id,Bd,Rd,Od,Md,Ld,Fd;if(!(Td!==od&&Td!==ld||dd.charAt(++Ad)!==Td)&&(Bd=Ed.options.pedantic,Rd=Td,Md=Rd+Rd,Ld=dd.length,Ad++,Od="",Td="",!(Bd&&td(dd.charAt(Ad)))))for(;Ad<Ld;){if(Fd=Td,Td=dd.charAt(Ad),Td===Rd&&dd.charAt(Ad+1)===Rd&&(!Bd||!td(Fd))&&(Td=dd.charAt(Ad+2),Td!==Rd))return ed(Od)?_d?!0:(Id=cd.now(),Id.column+=2,Id.offset+=2,cd(Md+Od+Md)({type:"strong",children:Ed.tokenizeInline(Od,Id)})):void 0;
`,rd);sd>rd&&td.charAt(sd-1)===" ";)sd--;return sd}}),Os$1=C$1((Ra,qa)=>{var ed=Ts();qa.exports=od,od.locator=ed;var td=" ",rd=`
`,sd=2;function od(ld,ud,cd){for(var dd=ud.length,_d=-1,Ed="",Ad;++_d<dd;){if(Ad=ud.charAt(_d),Ad===rd)return _d<sd?void 0:cd?!0:(Ed+=Ad,ld(Ed)({type:"break"}));if(Ad!==td)return;Ed+=Ad}}}),Ls$1=C$1((Ra,qa)=>{qa.exports=ed;function ed(td,rd,sd){var od=this,ld,ud,cd,dd,_d,Ed,Ad,Td,Id,Bd;if(sd)return!0;for(ld=od.inlineMethods,dd=ld.length,ud=od.inlineTokenizers,cd=-1,Id=rd.length;++cd<dd;)Td=ld[cd],!(Td==="text"||!ud[Td])&&(Ad=ud[Td].locator,Ad||td.file.fail("Missing locator: `"+Td+"`"),Ed=Ad.call(od,rd,1),Ed!==-1&&Ed<Id&&(Id=Ed));_d=rd.slice(0,Id),Bd=td.now(),od.decode(_d,Bd,Rd);function Rd(Od,Md,Ld){td(Ld||Od)({type:"text",value:Od})}}}),Us=C$1((Ra,qa)=>{var ed=Ie$1(),td=ru$2(),rd=nu$3(),sd=uu$3(),od=Ou$1(),ld=Iu$1();qa.exports=ud;function ud(_d,Ed){this.file=Ed,this.offset={},this.options=ed(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=rd(Ed).toOffset,this.unescape=sd(this,"escape"),this.decode=od(this)}var cd=ud.prototype;cd.setOptions=Vu$2(),cd.parse=aa$2(),cd.options=Rt$3(),cd.exitStart=td("atStart",!0),cd.enterList=td("inList",!1),cd.enterLink=td("inLink",!1),cd.enterBlock=td("inBlock",!1),cd.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],cd.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],cd.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]],cd.blockTokenizers={blankLine:sa(),indentedCode:pa(),fencedCode:ma(),blockquote:ba$1(),atxHeading:xa$1(),thematicBreak:Ba(),list:Ua$2(),setextHeading:Ga$1(),html:Ka(),definition:io$1(),table:oo$3(),paragraph:lo$2()},cd.inlineTokenizers={escape:Fo$1(),autoLink:yo$2(),url:Oo(),email:Mo$2(),html:Vo$1(),link:Qo$1(),reference:rs(),strong:os(),emphasis:ms$1(),deletion:ys$1(),code:Bs(),break:Os$1(),text:Ls$1()},cd.blockMethods=dd(cd.blockTokenizers),cd.inlineMethods=dd(cd.inlineTokenizers),cd.tokenizeBlock=ld("block"),cd.tokenizeInline=ld("inline"),cd.tokenizeFactory=ld;function dd(_d){var Ed=[],Ad;for(Ad in _d)Ed.push(Ad);return Ed}}),Gs=C$1((Ra,qa)=>{var ed=Zi(),td=Ie$1(),rd=Us();qa.exports=sd,sd.Parser=rd;function sd(od){var ld=this.data("settings"),ud=ed(rd);ud.prototype.options=td(ud.prototype.options,ld,od),this.Parser=ud}}),js$1=C$1((Ra,qa)=>{qa.exports=ed;function ed(td){if(td)throw td}}),yn$2=C$1((Ra,qa)=>{qa.exports=function(ed){return ed!=null&&ed.constructor!=null&&typeof ed.constructor.isBuffer=="function"&&ed.constructor.isBuffer(ed)}}),rc$1=C$1((Ra,qa)=>{var ed=Object.prototype.hasOwnProperty,td=Object.prototype.toString,rd=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,od=function(dd){return typeof Array.isArray=="function"?Array.isArray(dd):td.call(dd)==="[object Array]"},ld=function(dd){if(!dd||td.call(dd)!=="[object Object]")return!1;var _d=ed.call(dd,"constructor"),Ed=dd.constructor&&dd.constructor.prototype&&ed.call(dd.constructor.prototype,"isPrototypeOf");if(dd.constructor&&!_d&&!Ed)return!1;var Ad;for(Ad in dd);return typeof Ad>"u"||ed.call(dd,Ad)},ud=function(dd,_d){rd&&_d.name==="__proto__"?rd(dd,_d.name,{enumerable:!0,configurable:!0,value:_d.newValue,writable:!0}):dd[_d.name]=_d.newValue},cd=function(dd,_d){if(_d==="__proto__")if(ed.call(dd,_d)){if(sd)return sd(dd,_d).value}else return;return dd[_d]};qa.exports=function dd(){var _d,Ed,Ad,Td,Id,Bd,Rd=arguments[0],Od=1,Md=arguments.length,Ld=!1;for(typeof Rd=="boolean"&&(Ld=Rd,Rd=arguments[1]||{},Od=2),(Rd==null||typeof Rd!="object"&&typeof Rd!="function")&&(Rd={});Od<Md;++Od)if(_d=arguments[Od],_d!=null)for(Ed in _d)Ad=cd(Rd,Ed),Td=cd(_d,Ed),Rd!==Td&&(Ld&&Td&&(ld(Td)||(Id=od(Td)))?(Id?(Id=!1,Bd=Ad&&od(Ad)?Ad:[]):Bd=Ad&&ld(Ad)?Ad:{},ud(Rd,{name:Ed,newValue:dd(Ld,Bd,Td)})):typeof Td<"u"&&ud(Rd,{name:Ed,newValue:Td}));ret
Expected it to be 'string' or 'object'.`;if(Y$2(Ra))throw new Error("doc is valid.");let ed=Object.prototype.toString.call(Ra);if(ed!=="[object Object]")return`Unexpected doc '${ed}'.`;let td=ll$1([...wr$1].map(rd=>`'${rd}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${td}.`}var Dt$3=class extends Error{constructor(ed){super(fl$1(ed));Ym(this,"name","InvalidDocError");this.doc=ed}},qe$3=Dt$3,Nn$2={};function Dl$1(Ra,qa,ed,td){let rd=[Ra];for(;rd.length>0;){let sd=rd.pop();if(sd===Nn$2){ed(rd.pop());continue}ed&&rd.push(sd,Nn$2);let od=Y$2(sd);if(!od)throw new qe$3(sd);if((qa==null?void 0:qa(sd))!==!1)switch(od){case H$2:case J$3:{let ld=od===H$2?sd:sd.parts;for(let ud=ld.length,cd=ud-1;cd>=0;--cd)rd.push(ld[cd]);break}case X$3:rd.push(sd.flatContents,sd.breakContents);break;case K$2:if(td&&sd.expandedStates)for(let ld=sd.expandedStates.length,ud=ld-1;ud>=0;--ud)rd.push(sd.expandedStates[ud]);else rd.push(sd.contents);break;case re$2:case ee$2:case se$1:case fe$2:case ce$2:rd.push(sd.contents);break;case $$1:case ge$2:case oe$2:case le$2:case W$3:case te$2:break;default:throw new qe$3(sd)}}}var Rn$1=Dl$1,Un$2=()=>{},kr$1=Un$2;function Ze$2(Ra){return{type:ee$2,contents:Ra}}function ve$2(Ra,qa){return{type:re$2,contents:qa,n:Ra}}function ze$2(Ra,qa={}){return kr$1(qa.expandedStates),{type:K$2,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function _e$2(Ra){return ve$2({type:"root"},Ra)}function Ee$2(Ra){return{type:J$3,parts:Ra}}function zn$2(Ra,qa="",ed={}){return{type:X$3,breakContents:Ra,flatContents:qa,groupId:ed.groupId}}var er$1={type:te$2},rr$1={type:W$3,hard:!0},pl$1={type:W$3,hard:!0,literal:!0},Br$2={type:W$3},qr$1={type:W$3,soft:!0},L$3=[rr$1,er$1],tr$1=[pl$1,er$1];function Tr$1(Ra,qa){let ed=[];for(let td=0;td<qa.length;td++)td!==0&&ed.push(Ra),ed.push(qa[td]);return ed}function dl$1(Ra,qa){if(typeof Ra=="string")return qa(Ra);let ed=new Map;return td(Ra);function td(sd){if(ed.has(sd))return ed.get(sd);let od=rd(sd);return ed.set(sd,od),od}function rd(sd){switch(Y$2(sd)){case H$2:return qa(sd.map(td));case J$3:return qa({...sd,parts:sd.parts.map(td)});case X$3:return qa({...sd,breakContents:td(sd.breakContents),flatContents:td(sd.flatContents)});case K$2:{let{expandedStates:od,contents:ld}=sd;return od?(od=od.map(td),ld=od[0]):ld=td(ld),qa({...sd,contents:ld,expandedStates:od})}case re$2:case ee$2:case se$1:case fe$2:case ce$2:return qa({...sd,contents:td(sd.contents)});case $$1:case ge$2:case oe$2:case le$2:case W$3:case te$2:return qa(sd);default:throw new qe$3(sd)}}}function Mn$1(Ra){if(Ra.length>0){let qa=M$3(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Yn$2(Ra){let qa=new Set,ed=[];function td(sd){if(sd.type===te$2&&Mn$1(ed),sd.type===K$2){if(ed.push(sd),qa.has(sd))return!1;qa.add(sd)}}function rd(sd){sd.type===K$2&&ed.pop().break&&Mn$1(ed)}Rn$1(Ra,td,rd,!0)}function Ce$1(Ra,qa=tr$1){return dl$1(Ra,ed=>typeof ed=="string"?Tr$1(qa,ed.split(`
`)):ed)}function hl$1(Ra,qa){let ed=Ra.match(new RegExp(`(${Be$2(qa)})+`,"gu"));return ed===null?0:ed.reduce((td,rd)=>Math.max(td,rd.length/qa.length),0)}var _r$1=hl$1;function ml$1(Ra,qa){let ed=Ra.match(new RegExp(`(${Be$2(qa)})+`,"gu"));if(ed===null)return 0;let td=new Map,rd=0;for(let sd of ed){let od=sd.length/qa.length;td.set(od,!0),od>rd&&(rd=od)}for(let sd=1;sd<rd;sd++)if(!td.get(sd))return sd;return rd+1}var Gn$3=ml$1,Sr$1="'",Vn$2='"';function Fl$2(Ra,qa){let ed=qa===!0||qa===Sr$1?Sr$1:Vn$2,td=ed===Sr$1?Vn$2:Sr$1,rd=0,sd=0;for(let od of Ra)od===ed?rd++:od===td&&sd++;return rd>sd?td:ed}var jn$2=Fl$2,pt$2=class extends Error{constructor(ed,td,rd="type"){super(`Unexpected ${td} node ${rd}: ${JSON.stringify(ed[rd])}.`);Ym(this,"name","UnexpectedNodeError");this.node=ed}},$n$3=pt$2,Xn$3=Ue$2(xr$1());function gl$1(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var Hn$1=gl$1,nr$1=3;function vl$1(Ra){let qa=Ra.slice(0,nr$1);if(qa!=="---"&&qa!=="+++")return;let ed=Ra.indexOf(`
`,nr$1);if(ed===-1)return;let td=Ra.slice(nr$1,ed).trim(),rd=Ra.indexOf(`
${qa}`,ed),sd=td;if(sd||(sd=qa==="+++"?"toml":"yaml"),rd===-1&&qa==="---"&&sd==="yaml"&&(rd=Ra.indexOf(`
...`,ed)),rd===-1)return;let od=rd+1+nr$1,ld=Ra.charAt(od+1);if(!/\s?/u.test(ld))return;let ud=Ra.slice(0,od);return{type:"front-matter",language:sd,explicitLanguage:td,value:Ra.slice(ed+1,rd),startDelimiter:qa,endDelimiter:ud.slice(-nr$1),raw:ud}}function El$2(Ra){let qa=vl$1(Ra);if(!qa)return{content:Ra};let{raw:ed}=qa;return{frontMatter:qa,content:N$3(!1,ed,/[^\n]/gu," ")+Ra.slice(ed.length)}}var ir$2=El$2,Wn$1=["format","prettier"];function dt$2(Ra){let qa=`@(${Wn$1.join("|")})`,ed=new RegExp([`<!--\\s*${qa}\\s*-->`,`\\{\\s*\\/\\*\\s*${qa}\\s*\\*\\/\\s*\\}`,`<!--.*\r?
[\\s\\S]*(^|
)[^\\S
]*${qa}[^\\S
]*($|
)[\\s\\S]*
.*-->`].join("|"),"mu"),td=Ra.match(ed);return(td==null?void 0:td.index)===0}var Kn$2=Ra=>dt$2(ir$2(Ra).content.trimStart()),Jn$3=Ra=>{let qa=ir$2(Ra),ed=`<!-- @${Wn$1[0]} -->`;return qa.frontMatter?`${qa.frontMatter.raw}
${ed}
${qa.content}`:`${ed}
${qa.content}`},Cl$1=new Set(["position","raw"]);function Qn$3(Ra,qa,ed){if((Ra.type==="front-matter"||Ra.type==="code"||Ra.type==="yaml"||Ra.type==="import"||Ra.type==="export"||Ra.type==="jsx")&&delete qa.value,Ra.type==="list"&&delete qa.isAligned,(Ra.type==="list"||Ra.type==="listItem")&&delete qa.spread,Ra.type==="text")return null;if(Ra.type==="inlineCode"&&(qa.value=N$3(!1,Ra.value,`
`," ")),Ra.type==="wikiLink"&&(qa.value=N$3(!1,Ra.value.trim(),/[\t\n]+/gu," ")),(Ra.type==="definition"||Ra.type==="linkReference"||Ra.type==="imageReference")&&(qa.label=(0,Xn$3.default)(Ra.label)),(Ra.type==="link"||Ra.type==="image")&&Ra.url&&Ra.url.includes("("))for(let td of"<>")qa.url=N$3(!1,Ra.url,td,encodeURIComponent(td));if((Ra.type==="definition"||Ra.type==="link"||Ra.type==="image")&&Ra.title&&(qa.title=N$3(!1,Ra.title,/\\(?=["')])/gu,"")),(ed==null?void 0:ed.type)==="root"&&ed.children.length>0&&(ed.children[0]===Ra||Hn$1(ed.children[0])&&ed.children[1]===Ra)&&Ra.type==="html"&&dt$2(Ra.value))return null}Qn$3.ignoredProperties=Cl$1;var Zn$2=Qn$3,ei$2=/(?:[\u02ea-\u02eb\u1100-\u11ff\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u303f\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u3190-\u4dbf\u4e00-\u9fff\ua700-\ua707\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufe10-\ufe1f\ufe30-\ufe6f\uff00-\uffef]|[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872\ud874-\ud879\ud880-\ud883\ud885-\ud887][\udc00-\udfff]|\ud81b[\udfe3]|\ud82b[\udff0-\udff3\udff5-\udffb\udffd-\udffe]|\ud82c[\udc00-\udd22\udd32\udd50-\udd52\udd55\udd64-\udd67]|\ud83c[\ude00\ude50-\ude51]|\ud869[\udc00-\udedf\udf00-\udfff]|\ud86d[\udc00-\udf39\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\ud884[\udc00-\udf4a\udf50-\udfff]|\ud888[\udc00-\udfaf])(?:[\ufe00-\ufe0f]|\udb40[\udd00-\uddef])?/u,Se$2=new RegExp("(?:[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e]|\\p{General_Category=Connector_Punctuation}|\\p{General_Category=Dash_Punctuation}|\\p{General_Category=Close_Punctuation}|\\p{General_Category=Final_Punctuation}|\\p{General_Category=Initial_Punctuation}|\\p{General_Category=Other_Punctuation}|\\p{General_Category=Open_Punctuation})","u");async function bl$1(Ra,qa){if(Ra.language==="yaml"){let ed=Ra.value.trim(),td=ed?await qa(ed,{parser:"yaml"}):"";return _e$2([Ra.startDelimiter,Ra.explicitLanguage,L$3,td,td?L$3:"",Ra.endDelimiter])}}var ri$3=bl$1,yl$1=Ra=>String(Ra).split(/[/\\]/u).pop();function ti$3(Ra,qa){if(!qa)return;let ed=yl$1(qa).toLowerCase();return Ra.find(({filenames:td})=>td==null?void 0:td.some(rd=>rd.toLowerCase()===ed))??Ra.find(({extensions:td})=>td==null?void 0:td.some(rd=>ed.endsWith(rd)))}function Al$2(Ra,qa){if(qa)return Ra.find(({name:ed})=>ed.toLowerCase()===qa)??Ra.find(({aliases:ed})=>ed==null?void 0:ed.includes(qa))??Ra.find(({extensions:ed})=>ed==null?void 0:ed.includes(`.${qa}`))}function xl$2(Ra,qa){let ed=Ra.plugins.flatMap(rd=>rd.languages??[]),td=Al$2(ed,qa.language)??ti$3(ed,qa.physicalFile)??ti$3(ed,qa.file)??(qa.physicalFile,void 0);return td==null?void 0:td.parsers[0]}var ni$3=xl$2,wl$2=new Proxy(()=>{},{get:()=>wl$2});function Oe$2(Ra){return Ra.position.start.offset}function Pe$2(Ra){return Ra.position.end.offset}var ht$2=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Or$1=new Set([...ht$2,"tableCell","paragraph","heading"]),Le$2="non-cjk",De$1="cj-letter",be$3="k-letter",ur$1="cjk-punctuation",kl$1=new RegExp("\\p{Script_Extensions=Hangul}","u");function Pr$1(Ra){let qa=[],ed=Ra.split(/([\t\n ]+)/u);for(let[rd,sd]of ed.entries()){if(rd%2===1){qa.push({type:"whitespace",value:/\n/u.test(sd)?`
`:" "});continue}if((rd===0||rd===ed.length-1)&&sd==="")continue;let od=sd.split(new RegExp(`(${ei$2.source})`,"u"));for(let[ld,ud]of od.entries())if(!((ld===0||ld===od.length-1)&&ud==="")){if(ld%2===0){ud!==""&&td({type:"word",value:ud,kind:Le$2,hasLeadingPunctuation:Se$2.test(ud[0]),hasTrailingPunctuation:Se$2.test(M$3(!1,ud,-1))});continue}td(Se$2.test(ud)?{type:"word",value:ud,kind:ur$1,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:ud,kind:kl$1.test(ud)?be$3:De$1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return qa;function td(rd){let sd=M$3(!1,qa,-1);(sd==null?void 0:sd.type)==="word"&&!od(Le$2,ur$1)&&![sd.value,rd.value].some(ld=>/\u3000/u.test(ld))&&qa.push({type:"whitespace",value:""}),qa.push(rd);function od(ld,ud){return sd.kind===ld&&rd.kind===ud||sd.kind===ud&&rd.kind===ld}}}function Me$3(Ra,qa){let ed=qa.originalText.slice(Ra.position.start.offset,Ra.position.end.offset),{numberText:td,leadingSpaces:rd}=ed.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(td),leadingSpaces:rd}}function ii$3(Ra,qa){return!Ra.ordered||Ra.children.length<2||Me$3(Ra.children[1],qa).number!==1?!1:Me$3(Ra.children[0],qa).number!==0?!0:Ra.children.length>2&&Me$3(Ra.children[2],qa).number===1}function Lr$1(Ra,qa){let{value:ed}=Ra;return Ra.position.end.offset===qa.length&&ed.endsWith(`
`)&&qa.endsWith(`
`)?ed.slice(0,-1):ed}function ye$1(Ra,qa){return function ed(td,rd,sd){let od={...qa(td,rd,sd)};return od.children&&(od.children=od.children.map((ld,ud)=>ed(ld,ud,[od,...sd]))),od}(Ra,null,[])}function mt$2(Ra){if((Ra==null?void 0:Ra.type)!=="link"||Ra.children.length!==1)return!1;let[qa]=Ra.children;return Oe$2(Ra)===Oe$2(qa)&&Pe$2(Ra)===Pe$2(qa)}function Bl$1(Ra,qa){let{node:ed}=Ra;if(ed.type==="code"&&ed.lang!==null){let td=ni$3(qa,{language:ed.lang});if(td)return async rd=>{let sd=qa.__inJsTemplate?"~":"`",od=sd.repeat(Math.max(3,_r$1(ed.value,sd)+1)),ld={parser:td};ed.lang==="ts"||ed.lang==="typescript"?ld.filepath="dummy.ts":ed.lang==="tsx"&&(ld.filepath="dummy.tsx");let ud=await rd(Lr$1(ed,qa.originalText),ld);return _e$2([od,ed.lang,ed.meta?" "+ed.meta:"",L$3,Ce$1(ud),L$3,od])}}switch(ed.type){case"front-matter":return td=>ri$3(ed,td);case"import":case"export":return td=>td(ed.value,{parser:"babel"});case"jsx":return td=>td(`<$>${ed.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var ui$2=Bl$1,ar$1=null;function or$1(Ra){if(ar$1!==null&&typeof ar$1.property){let qa=ar$1;return ar$1=or$1.prototype=null,qa}return ar$1=or$1.prototype=Ra??Object.create(null),new or$1}var ql$2=10;for(let Ra=0;Ra<=ql$2;Ra++)or$1();function Ft$3(Ra){return or$1(Ra)}function Tl$2(Ra,qa="type"){Ft$3(Ra);function ed(td){let rd=td[qa],sd=Ra[rd];if(!Array.isArray(sd))throw Object.assign(new Error(`Missing visitor keys for '${rd}'.`),{node:td});return sd}return ed}var ai$3=Tl$2,_l$1={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},oi$2=_l$1,Sl$2=ai$3(oi$2),si$3=Sl$2;function ci$2(Ra){switch(Ra){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}var li$3=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\u
`?N$3(!1,Td,`
`,rd):Td;ld.push(Id),od.length>0&&(sd+=sr$1(Id));break}case H$2:for(let Id=Td.length-1;Id>=0;Id--)od.push({ind:Ed,mode:Ad,doc:Td[Id]});break;case ge$2:if(dd>=2)throw new Error("There are too many 'cursor' in doc.");ld.push(cr$1),dd++;break;case ee$2:od.push({ind:Ll$2(Ed,qa),mode:Ad,doc:Td.contents});break;case re$2:od.push({ind:Il$2(Ed,Td.n,qa),mode:Ad,doc:Td.contents});break;case oe$2:sd-=vt$1(ld);break;case K$2:switch(Ad){case ne$2:if(!ud){od.push({ind:Ed,mode:Td.break?G$3:ne$2,doc:Td.contents});break}case G$3:{ud=!1;let Id={ind:Ed,mode:ne$2,doc:Td.contents},Bd=td-sd,Rd=cd.length>0;if(!Td.break&&Ir$1(Id,od,Bd,Rd,ed))od.push(Id);else if(Td.expandedStates){let Od=M$3(!1,Td.expandedStates,-1);if(Td.break){od.push({ind:Ed,mode:G$3,doc:Od});break}else for(let Md=1;Md<Td.expandedStates.length+1;Md++)if(Md>=Td.expandedStates.length){od.push({ind:Ed,mode:G$3,doc:Od});break}else{let Ld=Td.expandedStates[Md],Fd={ind:Ed,mode:ne$2,doc:Ld};if(Ir$1(Fd,od,Bd,Rd,ed)){od.push(Fd);break}}}else od.push({ind:Ed,mode:G$3,doc:Td.contents});break}}Td.id&&(ed[Td.id]=M$3(!1,od,-1).mode);break;case J$3:{let Id=td-sd,{parts:Bd}=Td;if(Bd.length===0)break;let[Rd,Od]=Bd,Md={ind:Ed,mode:ne$2,doc:Rd},Ld={ind:Ed,mode:G$3,doc:Rd},Fd=Ir$1(Md,[],Id,cd.length>0,ed,!0);if(Bd.length===1){Fd?od.push(Md):od.push(Ld);break}let jd={ind:Ed,mode:ne$2,doc:Od},Vd={ind:Ed,mode:G$3,doc:Od};if(Bd.length===2){Fd?od.push(jd,Md):od.push(Vd,Ld);break}Bd.splice(0,2);let Qd={ind:Ed,mode:Ad,doc:Ee$2(Bd)},qd=Bd[0];Ir$1({ind:Ed,mode:ne$2,doc:[Rd,Od,qd]},[],Id,cd.length>0,ed,!0)?od.push(Qd,jd,Md):Fd?od.push(Qd,Vd,Md):od.push(Qd,Vd,Ld);break}case X$3:case se$1:{let Id=Td.groupId?ed[Td.groupId]:Ad;if(Id===G$3){let Bd=Td.type===X$3?Td.breakContents:Td.negate?Td.contents:Ze$2(Td.contents);Bd&&od.push({ind:Ed,mode:Ad,doc:Bd})}if(Id===ne$2){let Bd=Td.type===X$3?Td.flatContents:Td.negate?Ze$2(Td.contents):Td.contents;Bd&&od.push({ind:Ed,mode:Ad,doc:Bd})}break}case ce$2:cd.push({ind:Ed,mode:Ad,doc:Td.contents});break;case le$2:cd.length>0&&od.push({ind:Ed,mode:Ad,doc:rr$1});break;case W$3:switch(Ad){case ne$2:if(Td.hard)ud=!0;else{Td.soft||(ld.push(" "),sd+=1);break}case G$3:if(cd.length>0){od.push({ind:Ed,mode:Ad,doc:Td},...cd.reverse()),cd.length=0;break}Td.literal?Ed.root?(ld.push(rd,Ed.root.value),sd=Ed.root.length):(ld.push(rd),sd=0):(sd-=vt$1(ld),ld.push(rd+Ed.value),sd=Ed.length);break}break;case fe$2:od.push({ind:Ed,mode:Ad,doc:Td.contents});break;case te$2:break;default:throw new qe$3(Td)}od.length===0&&cd.length>0&&(od.push(...cd.reverse()),cd.length=0)}let _d=ld.indexOf(cr$1);if(_d!==-1){let Ed=ld.indexOf(cr$1,_d+1),Ad=ld.slice(0,_d).join(""),Td=ld.slice(_d+1,Ed).join(""),Id=ld.slice(Ed+1).join("");return{formatted:Ad+Td+Id,cursorNodeStart:Ad.length,cursorNodeText:Td}}return{formatted:ld.join("")}}function mi(Ra,qa,ed){let{node:td}=Ra,rd=[],sd=Ra.map(()=>Ra.map(({index:_d})=>{let Ed=hi$1(ed(),qa).formatted,Ad=sr$1(Ed);return rd[_d]=Math.max(rd[_d]??3,Ad),{text:Ed,width:Ad}},"children"),"children"),od=ud(!1);if(qa.proseWrap!=="never")return[er$1,od];let ld=ud(!0);return[er$1,ze$2(zn$2(ld,od))];function ud(_d){return Tr$1(rr$1,[dd(sd[0],_d),cd(_d),...sd.slice(1).map(Ed=>dd(Ed,_d))].map(Ed=>`| ${Ed.join(" | ")} |`))}function cd(_d){return rd.map((Ed,Ad)=>{let Td=td.align[Ad],Id=Td==="center"||Td==="left"?":":"-",Bd=Td==="center"||Td==="right"?":":"-",Rd=_d?"-":"-".repeat(Ed-2);return`${Id}${Rd}${Bd}`})}function dd(_d,Ed){return _d.map(({text:Ad,width:Td},Id)=>{if(Ed)return Ad;let Bd=rd[Id]-Td,Rd=td.align[Id],Od=0;Rd==="right"?Od=Bd:Rd==="center"&&(Od=Math.floor(Bd/2));let Md=Bd-Od;return`${" ".repeat(Od)}${Ad}${" ".repeat(Md)}`})}}function Fi(Ra,qa,ed){let td=Ra.map(ed,"children");return Nl$2(td)}function Nl$2(Ra){let qa=[""];return function ed(td){for(let rd of td){let sd=Y$2(rd);if(sd===H$2){ed(rd);continue}let od=rd,ld=[];sd===J$3&&([od,...ld]=rd.parts),qa.push([qa.pop(),od],...ld)}}(Ra),Ee$2(qa)}var Rl$2=/^.$/su;function Ul$1(Ra,qa){return Ra=zl$2(Ra,qa),Ra=Yl$1(Ra),Ra=Vl$1(Ra,qa),Ra=jl$1(Ra,qa),Ra=Gl$2(Ra),Ra}function zl$2(Ra,qa){return ye$1(Ra,ed=>ed.type!=="text"||ed.va
`)return L$3;let rd=qa===" "||qa===`
`&&Jl$2(Ra,td);return Xl$2(Ra,qa,ed,td,rd)?rd?Br$2:qr$1:rd?" ":""}var Ql$2=new Set(["listItem","definition"]);function Zl$2(Ra,qa,ed){var td,rd;let{node:sd}=Ra;if(af(Ra)){let od=[""],ld=Pr$1(qa.originalText.slice(sd.position.start.offset,sd.position.end.offset));for(let ud of ld){if(ud.type==="word"){od.push([od.pop(),ud.value]);continue}let cd=Et$2(Ra,ud.value,qa.proseWrap,!0);if(Y$2(cd)===$$1){od.push([od.pop(),cd]);continue}od.push(cd)}return Ee$2(od)}switch(sd.type){case"front-matter":return qa.originalText.slice(sd.position.start.offset,sd.position.end.offset);case"root":return sd.children.length===0?"":[tf(Ra,qa,ed),L$3];case"paragraph":return Fi(Ra,qa,ed);case"sentence":return vi$1(Ra,ed);case"word":{let od=N$3(!1,N$3(!1,sd.value,"*",String.raw`\*`),new RegExp([`(^|${Se$2.source})(_+)`,`(_+)(${Se$2.source}|$)`].join("|"),"gu"),(cd,dd,_d,Ed,Ad)=>N$3(!1,_d?`${dd}${_d}`:`${Ed}${Ad}`,"_",String.raw`\_`)),ld=(cd,dd,_d)=>cd.type==="sentence"&&_d===0,ud=(cd,dd,_d)=>mt$2(cd.children[_d-1]);return od!==sd.value&&(Ra.match(void 0,ld,ud)||Ra.match(void 0,ld,(cd,dd,_d)=>cd.type==="emphasis"&&_d===0,ud))&&(od=od.replace(/^(\\?[*_])+/u,cd=>N$3(!1,cd,"\\",""))),od}case"whitespace":{let{next:od}=Ra,ld=od&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(od.value)?"never":qa.proseWrap;return Et$2(Ra,sd.value,ld)}case"emphasis":{let od;if(mt$2(sd.children[0]))od=qa.originalText[sd.position.start.offset];else{let{previous:ld,next:ud}=Ra;od=(ld==null?void 0:ld.type)==="sentence"&&((td=M$3(!1,ld.children,-1))==null?void 0:td.type)==="word"&&!M$3(!1,ld.children,-1).hasTrailingPunctuation||(ud==null?void 0:ud.type)==="sentence"&&((rd=ud.children[0])==null?void 0:rd.type)==="word"&&!ud.children[0].hasLeadingPunctuation||Ra.hasAncestor(cd=>cd.type==="emphasis")?"*":"_"}return[od,V$3(Ra,qa,ed),od]}case"strong":return["**",V$3(Ra,qa,ed),"**"];case"delete":return["~~",V$3(Ra,qa,ed),"~~"];case"inlineCode":{let od=qa.proseWrap==="preserve"?sd.value:N$3(!1,sd.value,`
`," "),ld=Gn$3(od,"`"),ud="`".repeat(ld||1),cd=od.startsWith("`")||od.endsWith("`")||/^[\n ]/u.test(od)&&/[\n ]$/u.test(od)&&/[^\n ]/u.test(od)?" ":"";return[ud,cd,od,cd,ud]}case"wikiLink":{let od="";return qa.proseWrap==="preserve"?od=sd.value:od=N$3(!1,sd.value,/[\t\n]+/gu," "),["[[",od,"]]"]}case"link":switch(qa.originalText[sd.position.start.offset]){case"<":{let od="mailto:";return["<",sd.url.startsWith(od)&&qa.originalText.slice(sd.position.start.offset+1,sd.position.start.offset+1+od.length)!==od?sd.url.slice(od.length):sd.url,">"]}case"[":return["[",V$3(Ra,qa,ed),"](",Ct$2(sd.url,")"),Nr$1(sd.title,qa),")"];default:return qa.originalText.slice(sd.position.start.offset,sd.position.end.offset)}case"image":return["![",sd.alt||"","](",Ct$2(sd.url,")"),Nr$1(sd.title,qa),")"];case"blockquote":return["> ",ve$2("> ",V$3(Ra,qa,ed))];case"heading":return["#".repeat(sd.depth)+" ",V$3(Ra,qa,ed)];case"code":{if(sd.isIndented){let ud=" ".repeat(4);return ve$2(ud,[ud,Ce$1(sd.value,L$3)])}let od=qa.__inJsTemplate?"~":"`",ld=od.repeat(Math.max(3,_r$1(sd.value,od)+1));return[ld,sd.lang||"",sd.meta?" "+sd.meta:"",L$3,Ce$1(Lr$1(sd,qa.originalText),L$3),L$3,ld]}case"html":{let{parent:od,isLast:ld}=Ra,ud=od.type==="root"&&ld?sd.value.trimEnd():sd.value,cd=/^<!--.*-->$/su.test(ud);return Ce$1(ud,cd?L$3:_e$2(tr$1))}case"list":{let od=Ai$1(sd,Ra.parent),ld=ii$3(sd,qa);return V$3(Ra,qa,ed,{processor(ud){let cd=_d(),dd=ud.node;if(dd.children.length===2&&dd.children[1].type==="html"&&dd.children[0].position.start.column!==dd.children[1].position.start.column)return[cd,yi$2(ud,qa,ed,cd)];return[cd,ve$2(" ".repeat(cd.length),yi$2(ud,qa,ed,cd))];function _d(){let Ed=sd.ordered?(ud.isFirst?sd.start:ld?1:sd.start+ud.index)+(od%2===0?". ":") "):od%2===0?"- ":"* ";return sd.isAligned||sd.hasIndentedCodeblock?ef(Ed,qa):Ed}}})}case"thematicBreak":{let{ancestors:od}=Ra,ld=od.findIndex(ud=>ud.type==="list");return ld===-1?"---":Ai$1(od[ld],od[ld+1])%2===0?"***":"---"}case"linkReference":return["[",V$3(Ra,qa,ed),"]",sd.referenceType==="full"?bt$3(sd):sd.referenceType==="collapsed"?"[]":""];case"imageReference":switch(sd.referenceType){case"full":return["![",sd.alt||"","]",bt$3(sd)];default:return["![",sd.alt,"]",sd.referenceType==="collapsed"?"[]":""]}case"definition":{let od=qa.proseWrap==="always"?Br$2:" ";return ze$2([bt$3(sd),":",Ze$2([od,Ct$2(sd.url),sd.title===null?"":[od,Nr$1(sd.title,qa,!1)]])])}case"footnote":return["[^",V$3(Ra,qa,ed),"]"];case"footnoteReference":return Bi$1(sd);case"footnoteDefinition":{let od=sd.children.length===1&&sd.children[0].type==="paragraph"&&(qa.proseWrap==="never"||qa.proseWrap==="preserve"&&sd.children[0].position.start.line===sd.children[0].position.end.line);return[Bi$1(sd),": ",od?V$3(Ra,qa,ed):ze$2([ve$2(" ".repeat(4),V$3(Ra,qa,ed,{processor:({isFirst:ld})=>ld?ze$2([qr$1,ed()]):ed()}))])]}case"table":return mi(Ra,qa,ed);case"tableCell":return V$3(Ra,qa,ed);case"break":return/\s/u.test(qa.originalText[sd.position.start.offset])?[" ",_e$2(tr$1)]:["\\",L$3];case"liquidNode":return Ce$1(sd.value,L$3);case"import":case"export":case"jsx":return sd.value;case"esComment":return["{/* ",sd.value," */}"];case"math":return["$$",L$3,sd.value?[Ce$1(sd.value,L$3),L$3]:"","$$"];case"inlineMath":return qa.originalText.slice(Oe$2(sd),Pe$2(sd));case"tableRow":case"listItem":case"text":default:throw new $n$3(sd,"Markdown")}}function yi$2(Ra,qa,ed,td){let{node:rd}=Ra,sd=rd.checked===null?"":rd.checked?"[x] ":"[ ] ";return[sd,V$3(Ra,qa,ed,{processor({node:od,isFirst:ld}){if(ld&&od.type!=="list")return ve$2(" ".repeat(sd.length),ed());let ud=" ".repeat(sf(qa.tabWidth-td.length,0,3));return[ud,ve$2(ud,ed())]}})]}function ef(Ra,qa){let ed=td();return Ra+" ".repeat(ed>=4?0:ed);function td(){let rd=Ra.length%qa.tabWidth;return rd===0?0:qa.tabWidth-rd}}function Ai$1(Ra,qa){return rf(Ra,qa,ed=>ed.ordered===Ra.ordered)}function rf(Ra,qa,ed){let td=-1;for(let rd of qa.children)if(rd.type===Ra.type&&ed(rd)?td++:td=-1,rd===Ra)return td}function tf(Ra,qa,ed){let td=[],rd=null,{children:sd}=Ra.node;for(let[od,ld]of sd.entries())switch(yt$1(ld
`)}function uf({node:Ra,previous:qa,parent:ed},td){if(wi$1(qa,td))return!0;let rd=qa.type===Ra.type&&Ql$2.has(Ra.type),sd=ed.type==="listItem"&&!wi$1(ed,td),od=yt$1(qa)==="next",ld=Ra.type==="html"&&qa.type==="html"&&qa.position.end.line+1===Ra.position.start.line,ud=Ra.type==="html"&&ed.type==="listItem"&&qa.type==="paragraph"&&qa.position.end.line+1===Ra.position.start.line;return!(rd||sd||od||ld||ud)}function ki$1({node:Ra,previous:qa}){let ed=qa.type==="list",td=Ra.type==="code"&&Ra.isIndented;return ed&&td}function af(Ra){let qa=Ra.findAncestor(ed=>ed.type==="linkReference"||ed.type==="imageReference");return qa&&(qa.type!=="linkReference"||qa.referenceType!=="full")}var of=(Ra,qa)=>{for(let ed of qa)Ra=N$3(!1,Ra,ed,encodeURIComponent(ed));return Ra};function Ct$2(Ra,qa=[]){let ed=[" ",...Array.isArray(qa)?qa:[qa]];return new RegExp(ed.map(td=>Be$2(td)).join("|"),"u").test(Ra)?`<${of(Ra,"<>")}>`:Ra}function Nr$1(Ra,qa,ed=!0){if(!Ra)return"";if(ed)return" "+Nr$1(Ra,qa,!1);if(Ra=N$3(!1,Ra,/\\(?=["')])/gu,""),Ra.includes('"')&&Ra.includes("'")&&!Ra.includes(")"))return`(${Ra})`;let td=jn$2(Ra,qa.singleQuote);return Ra=N$3(!1,Ra,"\\","\\\\"),Ra=N$3(!1,Ra,td,`\\${td}`),`${td}${Ra}${td}`}function sf(Ra,qa,ed){return Ra<qa?qa:Ra>ed?ed:Ra}function cf(Ra){return Ra.index>0&&yt$1(Ra.previous)==="next"}function bt$3(Ra){return`[${(0,qi.default)(Ra.label)}]`}function Bi$1(Ra){return`[^${Ra.label}]`}var lf={preprocess:gi$1,print:Zl$2,embed:ui$2,massageAstNode:Zn$2,hasPrettierIgnore:cf,insertPragma:Jn$3,getVisitorKeys:si$3},Ti$1=lf,_i$1=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],At$3={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ff={proseWrap:At$3.proseWrap,singleQuote:At$3.singleQuote},Si$1=ff,On$2={};Ln$1(On$2,{markdown:()=>km,mdx:()=>Bm,remark:()=>km});var Wc$1=Ue$2(Pi$1()),Kc=Ue$2(Wi()),Jc=Ue$2(Gs()),Xc=Ue$2(Ic()),vm=/^import\s/u,Em=/^export\s/u,Nc=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Rc=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,Cm=/^\{\s*\/\*(.*)\*\/\s*\}/u,bm$1=`
`,Uc=Ra=>vm.test(Ra),Sn$2=Ra=>Em.test(Ra),zc=(Ra,qa)=>{let ed=qa.indexOf(bm$1),td=qa.slice(0,ed);if(Sn$2(td)||Uc(td))return Ra(td)({type:Sn$2(td)?"export":"import",value:td})},Mc=(Ra,qa)=>{let ed=Cm.exec(qa);if(ed)return Ra(ed[0])({type:"esComment",value:ed[1].trim()})};zc.locator=Ra=>Sn$2(Ra)||Uc(Ra)?-1:1;Mc.locator=(Ra,qa)=>Ra.indexOf("{",qa);var Yc=function(){let{Parser:Ra}=this,{blockTokenizers:qa,blockMethods:ed,inlineTokenizers:td,inlineMethods:rd}=Ra.prototype;qa.esSyntax=zc,td.esComment=Mc,ed.splice(ed.indexOf("paragraph"),0,"esSyntax"),rd.splice(rd.indexOf("text"),0,"esComment")},ym=function(){let Ra=this.Parser.prototype;Ra.blockMethods=["frontMatter",...Ra.blockMethods],Ra.blockTokenizers.frontMatter=qa;function qa(ed,td){let rd=ir$2(td);if(rd.frontMatter)return ed(rd.frontMatter.raw)(rd.frontMatter)}qa.onlyAtStart=!0},Gc=ym;function Am(){return Ra=>ye$1(Ra,(qa,ed,[td])=>qa.type!=="html"||Rc.test(qa.value)||Or$1.has(td.type)?qa:{...qa,type:"jsx"})}var Vc=Am,xm=function(){let Ra=this.Parser.prototype,qa=Ra.inlineMethods;qa.splice(qa.indexOf("text"),0,"liquid"),Ra.inlineTokenizers.liquid=ed;function ed(td,rd){let sd=rd.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(sd)return td(sd[0])({type:"liquidNode",value:sd[0]})}ed.locator=function(td,rd){return td.indexOf("{",rd)}},jc$1=xm,wm=function(){let Ra="wikiLink",qa=/^\[\[(?<linkContents>.+?)\]\]/su,ed=this.Parser.prototype,td=ed.inlineMethods;td.splice(td.indexOf("link"),0,Ra),ed.inlineTokenizers.wikiLink=rd;function rd(sd,od){let ld=qa.exec(od);if(ld){let ud=ld.groups.linkContents.trim();return sd(ld[0])({type:Ra,value:ud})}}rd.locator=function(sd,od){return sd.indexOf("[",od)}},$c=wm;function Qc({isMDX:Ra}){return qa=>{let ed=(0,Xc.default)().use(Jc.default,{commonmark:!0,...Ra&&{blocks:[Nc]}}).use(Wc$1.default).use(Gc).use(Kc.default).use(Ra?Yc:Hc$1).use(jc$1).use(Ra?Vc:Hc$1).use($c);return ed.run(ed.parse(qa))}}function Hc$1(){}var Zc={astFormat:"mdast",hasPragma:Kn$2,locStart:Oe$2,locEnd:Pe$2},km={...Zc,parse:Qc({isMDX:!1})},Bm={...Zc,parse:Qc({isMDX:!0})},qm={mdast:Ti$1},fC=Pn$3;const prettierPluginMarkdown=Object.freeze(Object.defineProperty({__proto__:null,default:fC,languages:_i$1,options:Si$1,parsers:On$2,printers:qm},Symbol.toStringTag,{value:"Module"}));var al=Object.create,Ur$1=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,ll=Object.getOwnPropertyNames,cl=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty,y$3=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Xs=(Ra,qa)=>{for(var ed in qa)Ur$1(Ra,ed,{get:qa[ed],enumerable:!0})},pl=(Ra,qa,ed,td)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let rd of ll(qa))!fl.call(Ra,rd)&&rd!==ed&&Ur$1(Ra,rd,{get:()=>qa[rd],enumerable:!(td=ul(qa,rd))||td.enumerable});return Ra},ye=(Ra,qa,ed)=>(ed=Ra!=null?al(cl(Ra)):{},pl(Ur$1(ed,"default",{value:Ra,enumerable:!0}),Ra)),Ut$1=y$3((Ra,qa)=>{qa.exports.isClean=Symbol("isClean"),qa.exports.my=Symbol("my")}),yi$1=y$3((Ra,qa)=>{var ed=String,td=function(){return{isColorSupported:!1,reset:ed,bold:ed,dim:ed,italic:ed,underline:ed,inverse:ed,hidden:ed,strikethrough:ed,black:ed,red:ed,green:ed,yellow:ed,blue:ed,magenta:ed,cyan:ed,white:ed,gray:ed,bgBlack:ed,bgRed:ed,bgGreen:ed,bgYellow:ed,bgBlue:ed,bgMagenta:ed,bgCyan:ed,bgWhite:ed}};qa.exports=td(),qa.exports.createColors=td}),ss=y$3(()=>{}),Ft$2=y$3((Ra,qa)=>{var ed=yi$1(),td=ss(),rd=class rS extends Error{constructor(od,ld,ud,cd,dd,_d){super(od),this.name="CssSyntaxError",this.reason=od,dd&&(this.file=dd),cd&&(this.source=cd),_d&&(this.plugin=_d),typeof ld<"u"&&typeof ud<"u"&&(typeof ld=="number"?(this.line=ld,this.column=ud):(this.line=ld.line,this.column=ld.column,this.endLine=ud.line,this.endColumn=ud.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,rS)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(od){if(!this.source)return"";let ld=this.source;od==null&&(od=ed.isColorSupported),td&&od&
`+Od+Ed("^")}return" "+Ad(Rd)+Td}).join(`
`)}toString(){let od=this.showSourceCode();return od&&(od=`
`+od+`
`),this.name+": "+this.message+od}};qa.exports=rd,rd.default=rd}),$t$2=y$3((Ra,qa)=>{var ed={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function td(sd){return sd[0].toUpperCase()+sd.slice(1)}var rd=class{constructor(sd){this.builder=sd}atrule(sd,od){let ld="@"+sd.name,ud=sd.params?this.rawValue(sd,"params"):"";if(typeof sd.raws.afterName<"u"?ld+=sd.raws.afterName:ud&&(ld+=" "),sd.nodes)this.block(sd,ld+ud);else{let cd=(sd.raws.between||"")+(od?";":"");this.builder(ld+ud+cd,sd)}}beforeAfter(sd,od){let ld;sd.type==="decl"?ld=this.raw(sd,null,"beforeDecl"):sd.type==="comment"?ld=this.raw(sd,null,"beforeComment"):od==="before"?ld=this.raw(sd,null,"beforeRule"):ld=this.raw(sd,null,"beforeClose");let ud=sd.parent,cd=0;for(;ud&&ud.type!=="root";)cd+=1,ud=ud.parent;if(ld.includes(`
`)){let dd=this.raw(sd,null,"indent");if(dd.length)for(let _d=0;_d<cd;_d++)ld+=dd}return ld}block(sd,od){let ld=this.raw(sd,"between","beforeOpen");this.builder(od+ld+"{",sd,"start");let ud;sd.nodes&&sd.nodes.length?(this.body(sd),ud=this.raw(sd,"after")):ud=this.raw(sd,"after","emptyBody"),ud&&this.builder(ud),this.builder("}",sd,"end")}body(sd){let od=sd.nodes.length-1;for(;od>0&&sd.nodes[od].type==="comment";)od-=1;let ld=this.raw(sd,"semicolon");for(let ud=0;ud<sd.nodes.length;ud++){let cd=sd.nodes[ud],dd=this.raw(cd,"before");dd&&this.builder(dd),this.stringify(cd,od!==ud||ld)}}comment(sd){let od=this.raw(sd,"left","commentLeft"),ld=this.raw(sd,"right","commentRight");this.builder("/*"+od+sd.text+ld+"*/",sd)}decl(sd,od){let ld=this.raw(sd,"between","colon"),ud=sd.prop+ld+this.rawValue(sd,"value");sd.important&&(ud+=sd.raws.important||" !important"),od&&(ud+=";"),this.builder(ud,sd)}document(sd){this.body(sd)}raw(sd,od,ld){let ud;if(ld||(ld=od),od&&(ud=sd.raws[od],typeof ud<"u"))return ud;let cd=sd.parent;if(ld==="before"&&(!cd||cd.type==="root"&&cd.first===sd||cd&&cd.type==="document"))return"";if(!cd)return ed[ld];let dd=sd.root();if(dd.rawCache||(dd.rawCache={}),typeof dd.rawCache[ld]<"u")return dd.rawCache[ld];if(ld==="before"||ld==="after")return this.beforeAfter(sd,ld);{let _d="raw"+td(ld);this[_d]?ud=this[_d](dd,sd):dd.walk(Ed=>{if(ud=Ed.raws[od],typeof ud<"u")return!1})}return typeof ud>"u"&&(ud=ed[ld]),dd.rawCache[ld]=ud,ud}rawBeforeClose(sd){let od;return sd.walk(ld=>{if(ld.nodes&&ld.nodes.length>0&&typeof ld.raws.after<"u")return od=ld.raws.after,od.includes(`
`)&&(od=od.replace(/[^\n]+$/,"")),!1}),od&&(od=od.replace(/\S/g,"")),od}rawBeforeComment(sd,od){let ld;return sd.walkComments(ud=>{if(typeof ud.raws.before<"u")return ld=ud.raws.before,ld.includes(`
`)&&(ld=ld.replace(/[^\n]+$/,"")),!1}),typeof ld>"u"?ld=this.raw(od,null,"beforeDecl"):ld&&(ld=ld.replace(/\S/g,"")),ld}rawBeforeDecl(sd,od){let ld;return sd.walkDecls(ud=>{if(typeof ud.raws.before<"u")return ld=ud.raws.before,ld.includes(`
`)&&(ld=ld.replace(/[^\n]+$/,"")),!1}),typeof ld>"u"?ld=this.raw(od,null,"beforeRule"):ld&&(ld=ld.replace(/\S/g,"")),ld}rawBeforeOpen(sd){let od;return sd.walk(ld=>{if(ld.type!=="decl"&&(od=ld.raws.between,typeof od<"u"))return!1}),od}rawBeforeRule(sd){let od;return sd.walk(ld=>{if(ld.nodes&&(ld.parent!==sd||sd.first!==ld)&&typeof ld.raws.before<"u")return od=ld.raws.before,od.includes(`
`)&&(od=od.replace(/[^\n]+$/,"")),!1}),od&&(od=od.replace(/\S/g,"")),od}rawColon(sd){let od;return sd.walkDecls(ld=>{if(typeof ld.raws.between<"u")return od=ld.raws.between.replace(/[^\s:]/g,""),!1}),od}rawEmptyBody(sd){let od;return sd.walk(ld=>{if(ld.nodes&&ld.nodes.length===0&&(od=ld.raws.after,typeof od<"u"))return!1}),od}rawIndent(sd){if(sd.raws.indent)return sd.raws.indent;let od;return sd.walk(ld=>{let ud=ld.parent;if(ud&&ud!==sd&&ud.parent&&ud.parent===sd&&typeof ld.raws.before<"u"){let cd=ld.raws.before.split(`
`);return od=cd[cd.length-1],od=od.replace(/\S/g,""),!1}}),od}rawSemicolon(sd){let od;return sd.walk(ld=>{if(ld.nodes&&ld.nodes.length&&ld.last.type==="decl"&&(od=ld.raws.semicolon,typeof od<"u"))return!1}),od}rawValue(sd,od){let ld=sd[od],ud=sd.raws[od];return ud&&ud.value===ld?ud.raw:ld}root(sd){this.body(sd),sd.raws.after&&this.builder(sd.raws.after)}rule(sd){this.block(sd,this.rawValue(sd,"selector")),sd.raws.ownSemicolon&&this.builder(sd.raws.ownSemicolon,sd,"end")}stringify(sd,od){if(!this[sd.type])throw new Error("Unknown AST node type "+sd.type+". Maybe you need to change PostCSS stringifier.");this[sd.type](sd,od)}};qa.exports=rd,rd.default=rd}),it$1=y$3((Ra,qa)=>{var ed=$t$2();function td(rd,sd){new ed(sd).stringify(rd)}qa.exports=td,td.default=td}),at$3=y$3((Ra,qa)=>{var{isClean:ed,my:td}=Ut$1(),rd=Ft$2(),sd=$t$2(),od=it$1();function ld(cd,dd){let _d=new cd.constructor;for(let Ed in cd){if(!Object.prototype.hasOwnProperty.call(cd,Ed)||Ed==="proxyCache")continue;let Ad=cd[Ed],Td=typeof Ad;Ed==="parent"&&Td==="object"?dd&&(_d[Ed]=dd):Ed==="source"?_d[Ed]=Ad:Array.isArray(Ad)?_d[Ed]=Ad.map(Id=>ld(Id,_d)):(Td==="object"&&Ad!==null&&(Ad=ld(Ad)),_d[Ed]=Ad)}return _d}var ud=class{constructor(cd={}){this.raws={},this[ed]=!1,this[td]=!0;for(let dd in cd)if(dd==="nodes"){this.nodes=[];for(let _d of cd[dd])typeof _d.clone=="function"?this.append(_d.clone()):this.append(_d)}else this[dd]=cd[dd]}addToError(cd){if(cd.postcssNode=this,cd.stack&&this.source&&/\n\s{4}at /.test(cd.stack)){let dd=this.source;cd.stack=cd.stack.replace(/\n\s{4}at /,`$&${dd.input.from}:${dd.start.line}:${dd.start.column}$&`)}return cd}after(cd){return this.parent.insertAfter(this,cd),this}assign(cd={}){for(let dd in cd)this[dd]=cd[dd];return this}before(cd){return this.parent.insertBefore(this,cd),this}cleanRaws(cd){delete this.raws.before,delete this.raws.after,cd||delete this.raws.between}clone(cd={}){let dd=ld(this);for(let _d in cd)dd[_d]=cd[_d];return dd}cloneAfter(cd={}){let dd=this.clone(cd);return this.parent.insertAfter(this,dd),dd}cloneBefore(cd={}){let dd=this.clone(cd);return this.parent.insertBefore(this,dd),dd}error(cd,dd={}){if(this.source){let{end:_d,start:Ed}=this.rangeBy(dd);return this.source.input.error(cd,{column:Ed.column,line:Ed.line},{column:_d.column,line:_d.line},dd)}return new rd(cd)}getProxyProcessor(){return{get(cd,dd){return dd==="proxyOf"?cd:dd==="root"?()=>cd.root().toProxy():cd[dd]},set(cd,dd,_d){return cd[dd]===_d||(cd[dd]=_d,(dd==="prop"||dd==="value"||dd==="name"||dd==="params"||dd==="important"||dd==="text")&&cd.markDirty()),!0}}}markDirty(){if(this[ed]){this[ed]=!1;let cd=this;for(;cd=cd.parent;)cd[ed]=!1}}next(){if(!this.parent)return;let cd=this.parent.index(this);return this.parent.nodes[cd+1]}positionBy(cd,dd){let _d=this.source.start;if(cd.index)_d=this.positionInside(cd.index,dd);else if(cd.word){dd=this.toString();let Ed=dd.indexOf(cd.word);Ed!==-1&&(_d=this.positionInside(Ed,dd))}return _d}positionInside(cd,dd){let _d=dd||this.toString(),Ed=this.source.start.column,Ad=this.source.start.line;for(let Td=0;Td<cd;Td++)_d[Td]===`
`?(Ed=1,Ad+=1):Ed+=1;return{column:Ed,line:Ad}}prev(){if(!this.parent)return;let cd=this.parent.index(this);return this.parent.nodes[cd-1]}rangeBy(cd){let dd={column:this.source.start.column,line:this.source.start.line},_d=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:dd.column+1,line:dd.line};if(cd.word){let Ed=this.toString(),Ad=Ed.indexOf(cd.word);Ad!==-1&&(dd=this.positionInside(Ad,Ed),_d=this.positionInside(Ad+cd.word.length,Ed))}else cd.start?dd={column:cd.start.column,line:cd.start.line}:cd.index&&(dd=this.positionInside(cd.index)),cd.end?_d={column:cd.end.column,line:cd.end.line}:typeof cd.endIndex=="number"?_d=this.positionInside(cd.endIndex):cd.index&&(_d=this.positionInside(cd.index+1));return(_d.line<dd.line||_d.line===dd.line&&_d.column<=dd.column)&&(_d={column:dd.column+1,line:dd.line}),{end:_d,start:dd}}raw(cd,dd){return new sd().raw(this,cd,dd)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...cd){if(this.parent){let dd=this,_d=!1;for(let Ed of cd)Ed===this?_d=!0:_d?(this.parent.insertAfter(dd,Ed),dd=Ed):this.parent.insertBefore(dd,Ed);_d||this.remove()}return this}root(){let cd=this;for(;cd.parent&&cd.parent.type!=="document";)cd=cd.parent;return cd}toJSON(cd,dd){let _d={},Ed=dd==null;dd=dd||new Map;let Ad=0;for(let Td in this){if(!Object.prototype.hasOwnProperty.call(this,Td)||Td==="parent"||Td==="proxyCache")continue;let Id=this[Td];if(Array.isArray(Id))_d[Td]=Id.map(Bd=>typeof Bd=="object"&&Bd.toJSON?Bd.toJSON(null,dd):Bd);else if(typeof Id=="object"&&Id.toJSON)_d[Td]=Id.toJSON(null,dd);else if(Td==="source"){let Bd=dd.get(Id.input);Bd==null&&(Bd=Ad,dd.set(Id.input,Ad),Ad++),_d[Td]={end:Id.end,inputId:Bd,start:Id.start}}else _d[Td]=Id}return Ed&&(_d.inputs=[...dd.keys()].map(Td=>Td.toJSON())),_d}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(cd=od){cd.stringify&&(cd=cd.stringify);let dd="";return cd(this,_d=>{dd+=_d}),dd}warn(cd,dd,_d){let Ed={node:this};for(let Ad in _d)Ed[Ad]=_d[Ad];return cd.warn(dd,Ed)}get proxyOf(){return this}};qa.exports=ud,ud.default=ud}),lt$1=y$3((Ra,qa)=>{var ed=at$3(),td=class extends ed{constructor(rd){rd&&typeof rd.value<"u"&&typeof rd.value!="string"&&(rd={...rd,value:String(rd.value)}),super(rd),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};qa.exports=td,td.default=td}),Oe$1=y$3((Ra,qa)=>{var ed=at$3(),td=class extends ed{constructor(rd){super(rd),this.type="comment"}};qa.exports=td,td.default=td}),re$1=y$3((Ra,qa)=>{var{isClean:ed,my:td}=Ut$1(),rd=lt$1(),sd=Oe$1(),od=at$3(),ld,ud,cd,dd;function _d(Td){return Td.map(Id=>(Id.nodes&&(Id.nodes=_d(Id.nodes)),delete Id.source,Id))}function Ed(Td){if(Td[ed]=!1,Td.proxyOf.nodes)for(let Id of Td.proxyOf.nodes)Ed(Id)}var Ad=class nS extends od{append(...Id){for(let Bd of Id){let Rd=this.normalize(Bd,this.last);for(let Od of Rd)this.proxyOf.nodes.push(Od)}return this.markDirty(),this}cleanRaws(Id){if(super.cleanRaws(Id),this.nodes)for(let Bd of this.nodes)Bd.cleanRaws(Id)}each(Id){if(!this.proxyOf.nodes)return;let Bd=this.getIterator(),Rd,Od;for(;this.indexes[Bd]<this.proxyOf.nodes.length&&(Rd=this.indexes[Bd],Od=Id(this.proxyOf.nodes[Rd],Rd),Od!==!1);)this.indexes[Bd]+=1;return delete this.indexes[Bd],Od}every(Id){return this.nodes.every(Id)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let Id=this.lastEach;return this.indexes[Id]=0,Id}getProxyProcessor(){return{get(Id,Bd){return Bd==="proxyOf"?Id:Id[Bd]?Bd==="each"||typeof Bd=="string"&&Bd.startsWith("walk")?(...Rd)=>Id[Bd](...Rd.map(Od=>typeof Od=="function"?(Md,Ld)=>Od(Md.toProxy(),Ld):Od)):Bd==="every"||Bd==="some"?Rd=>Id[Bd]((Od,...Md)=>Rd(Od.toProxy(),...Md)):Bd==="root"?()=>Id.root().toProxy():Bd==="nodes"?Id.nodes.map(Rd=>Rd.toProxy()):Bd==="first"||Bd==="last"?Id[Bd].toProxy():Id[Bd]:Id[Bd]},set(Id,Bd,Rd){return Id[Bd]===Rd||(Id[Bd]=Rd,(Bd==="name"||Bd==="params"||Bd==="selector")&&Id.markDirty()),!0}}}index(Id){return typeo
`," "];return ed.split(td,rd)},split(td,rd,sd){let od=[],ld="",ud=!1,cd=0,dd=!1,_d="",Ed=!1;for(let Ad of td)Ed?Ed=!1:Ad==="\\"?Ed=!0:dd?Ad===_d&&(dd=!1):Ad==='"'||Ad==="'"?(dd=!0,_d=Ad):Ad==="("?cd+=1:Ad===")"?cd>0&&(cd-=1):cd===0&&rd.includes(Ad)&&(ud=!0),ud?(ld!==""&&od.push(ld.trim()),ld="",ud=!1):ld+=Ad;return(sd||ld!=="")&&od.push(ld.trim()),od}};qa.exports=ed,ed.default=ed}),jt$1=y$3((Ra,qa)=>{var ed=re$1(),td=us(),rd=class extends ed{constructor(sd){super(sd),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return td.comma(this.selector)}set selectors(sd){let od=this.selector?this.selector.match(/,\s*/):null,ld=od?od[0]:","+this.raw("between","beforeOpen");this.selector=sd.join(ld)}};qa.exports=rd,rd.default=rd,ed.registerRule(rd)}),Ht$2=y$3((Ra,qa)=>{var ed=lt$1(),td=Vt$2(),rd=Oe$1(),sd=Gt$2(),od=Ae$1(),ld=jt$1(),ud={empty:!0,space:!0};function cd(_d){for(let Ed=_d.length-1;Ed>=0;Ed--){let Ad=_d[Ed],Td=Ad[3]||Ad[2];if(Td)return Td}}var dd=class{constructor(_d){this.input=_d,this.root=new od,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:_d,start:{column:1,line:1,offset:0}}}atrule(_d){let Ed=new sd;Ed.name=_d[1].slice(1),Ed.name===""&&this.unnamedAtrule(Ed,_d),this.init(Ed,_d[2]);let Ad,Td,Id,Bd=!1,Rd=!1,Od=[],Md=[];for(;!this.tokenizer.endOfFile();){if(_d=this.tokenizer.nextToken(),Ad=_d[0],Ad==="("||Ad==="["?Md.push(Ad==="("?")":"]"):Ad==="{"&&Md.length>0?Md.push("}"):Ad===Md[Md.length-1]&&Md.pop(),Md.length===0)if(Ad===";"){Ed.source.end=this.getPosition(_d[2]),Ed.source.end.offset++,this.semicolon=!0;break}else if(Ad==="{"){Rd=!0;break}else if(Ad==="}"){if(Od.length>0){for(Id=Od.length-1,Td=Od[Id];Td&&Td[0]==="space";)Td=Od[--Id];Td&&(Ed.source.end=this.getPosition(Td[3]||Td[2]),Ed.source.end.offset++)}this.end(_d);break}else Od.push(_d);else Od.push(_d);if(this.tokenizer.endOfFile()){Bd=!0;break}}Ed.raws.between=this.spacesAndCommentsFromEnd(Od),Od.length?(Ed.raws.afterName=this.spacesAndCommentsFromStart(Od),this.raw(Ed,"params",Od),Bd&&(_d=Od[Od.length-1],Ed.source.end=this.getPosition(_d[3]||_d[2]),Ed.source.end.offset++,this.spaces=Ed.raws.between,Ed.raws.between="")):(Ed.raws.afterName="",Ed.params=""),Rd&&(Ed.nodes=[],this.current=Ed)}checkMissedSemicolon(_d){let Ed=this.colon(_d);if(Ed===!1)return;let Ad=0,Td;for(let Id=Ed-1;Id>=0&&(Td=_d[Id],!(Td[0]!=="space"&&(Ad+=1,Ad===2)));Id--);throw this.input.error("Missed semicolon",Td[0]==="word"?Td[3]+1:Td[2])}colon(_d){let Ed=0,Ad,Td,Id;for(let[Bd,Rd]of _d.entries()){if(Ad=Rd,Td=Ad[0],Td==="("&&(Ed+=1),Td===")"&&(Ed-=1),Ed===0&&Td===":")if(!Id)this.doubleColon(Ad);else{if(Id[0]==="word"&&Id[1]==="progid")continue;return Bd}Id=Ad}return!1}comment(_d){let Ed=new rd;this.init(Ed,_d[2]),Ed.source.end=this.getPosition(_d[3]||_d[2]),Ed.source.end.offset++;let Ad=_d[1].slice(2,-2);if(/^\s*$/.test(Ad))Ed.text="",Ed.raws.left=Ad,Ed.raws.right="";else{let Td=Ad.match(/^(\s*)([^]*\S)(\s*)$/);Ed.text=Td[2],Ed.raws.left=Td[1],Ed.raws.right=Td[3]}}createTokenizer(){this.tokenizer=td(this.input)}decl(_d,Ed){let Ad=new ed;this.init(Ad,_d[0][2]);let Td=_d[_d.length-1];for(Td[0]===";"&&(this.semicolon=!0,_d.pop()),Ad.source.end=this.getPosition(Td[3]||Td[2]||cd(_d)),Ad.source.end.offset++;_d[0][0]!=="word";)_d.length===1&&this.unknownWord(_d),Ad.raws.before+=_d.shift()[1];for(Ad.source.start=this.getPosition(_d[0][2]),Ad.prop="";_d.length;){let Od=_d[0][0];if(Od===":"||Od==="space"||Od==="comment")break;Ad.prop+=_d.shift()[1]}Ad.raws.between="";let Id;for(;_d.length;)if(Id=_d.shift(),Id[0]===":"){Ad.raws.between+=Id[1];break}else Id[0]==="word"&&/\w/.test(Id[1])&&this.unknownWord([Id]),Ad.raws.between+=Id[1];(Ad.prop[0]==="_"||Ad.prop[0]==="*")&&(Ad.raws.before+=Ad.prop[0],Ad.prop=Ad.prop.slice(1));let Bd=[],Rd;for(;_d.length&&(Rd=_d[0][0],!(Rd!=="space"&&Rd!=="comment"));)Bd.push(_d.shift());this.precheckMissedSemicolon(_d);for(let Od=_d.length-1;Od>=0;Od--){if(Id=_d[Od],Id[1].toLowerCase()==="!important"){Ad.important=!0;let Md=this.stringFrom(_d,Od);Md=this.spacesFromEnd(_d)+Md,Md!==" !important"&&(Ad.r
`);Od=new Array(Ld.length);let Fd=0;for(let jd=0,Vd=Ld.length;jd<Vd;jd++)Od[jd]=Fd,Fd+=Ld[jd].length+1;this[Ed]=Od}Rd=Od[Od.length-1];let Md=0;if(Bd>=Rd)Md=Od.length-1;else{let Ld=Od.length-2,Fd;for(;Md<Ld;)if(Fd=Md+(Ld-Md>>1),Bd<Od[Fd])Ld=Fd-1;else if(Bd>=Od[Fd+1])Md=Fd+1;else{Md=Fd;break}}return{col:Bd-Od[Md]+1,line:Md+1}}mapResolve(Bd){return/^\w+:\/\//.test(Bd)?Bd:ld(this.map.consumer().sourceRoot||this.map.root||".",Bd)}origin(Bd,Rd,Od,Md){if(!this.map)return!1;let Ld=this.map.consumer(),Fd=Ld.originalPositionFor({column:Rd,line:Bd});if(!Fd.source)return!1;let jd;typeof Od=="number"&&(jd=Ld.originalPositionFor({column:Md,line:Od}));let Vd;od(Fd.source)?Vd=sd(Fd.source):Vd=new URL(Fd.source,this.map.consumer().sourceRoot||sd(this.map.mapFile));let Qd={column:Fd.column,endColumn:jd&&jd.column,endLine:jd&&jd.line,line:Fd.line,url:Vd.toString()};if(Vd.protocol==="file:")if(rd)Qd.file=rd(Vd);else throw new Error("file: protocol is not available in this PostCSS build");let qd=Ld.sourceContentFor(Fd.source);return qd&&(Qd.source=qd),Qd}toJSON(){let Bd={};for(let Rd of["hasBOM","css","file","id"])this[Rd]!=null&&(Bd[Rd]=this[Rd]);return this.map&&(Bd.map={...this.map},Bd.map.consumerCache&&(Bd.map.consumerCache=void 0)),Bd}get from(){return this.file||this.id}};qa.exports=Id,Id.default=Id,cd&&cd.registerInput&&cd.registerInput(Id)}),pt$1=y$3((Ra,qa)=>{var ed=re$1(),td=Ht$2(),rd=Re$2();function sd(od,ld){let ud=new rd(od,ld),cd=new td(ud);try{cd.parse()}catch(dd){throw dd}return cd.root}qa.exports=sd,sd.default=sd,ed.registerParse(sd)}),no$1=y$3((Ra,qa)=>{var ed=Vt$2(),td=Re$2();qa.exports={isInlineComment(rd){if(rd[0]==="word"&&rd[1].slice(0,2)==="//"){let sd=rd,od=[],ld,ud;for(;rd;){if(/\r?\n/.test(rd[1])){if(/['"].*\r?\n/.test(rd[1])){od.push(rd[1].substring(0,rd[1].indexOf(`
`))),ud=rd[1].substring(rd[1].indexOf(`
`));let dd=this.input.css.valueOf().substring(this.tokenizer.position());ud+=dd,ld=rd[3]+dd.length-ud.length}else this.tokenizer.back(rd);break}od.push(rd[1]),ld=rd[2],rd=this.tokenizer.nextToken({ignoreUnclosed:!0})}let cd=["comment",od.join(""),sd[2],ld];return this.inlineComment(cd),ud&&(this.input=new td(ud),this.tokenizer=ed(this.input)),!0}else if(rd[1]==="/"){let sd=this.tokenizer.nextToken({ignoreUnclosed:!0});if(sd[0]==="comment"&&/^\/\*/.test(sd[1]))return sd[0]="word",sd[1]=sd[1].slice(1),rd[1]="//",this.tokenizer.back(sd),qa.exports.isInlineComment.bind(this)(rd)}return!1}}}),oo$2=y$3((Ra,qa)=>{qa.exports={interpolation(ed){let td=[ed,this.tokenizer.nextToken()],rd=["word","}"];if(td[0][1].length>1||td[1][0]!=="{")return this.tokenizer.back(td[1]),!1;for(ed=this.tokenizer.nextToken();ed&&rd.includes(ed[0]);)td.push(ed),ed=this.tokenizer.nextToken();let sd=td.map(cd=>cd[1]),[od]=td,ld=td.pop(),ud=["word",sd.join(""),od[2],ld[2]];return this.tokenizer.back(ed),this.tokenizer.back(ud),!0}}}),uo$2=y$3((Ra,qa)=>{var ed=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,td=/\.[0-9]/,rd=sd=>{let[,od]=sd,[ld]=od;return(ld==="."||ld==="#")&&ed.test(od)===!1&&td.test(od)===!1};qa.exports={isMixinToken:rd}}),co$1=y$3((Ra,qa)=>{var ed=Vt$2(),td=/^url\((.+)\)/;qa.exports=rd=>{let{name:sd,params:od=""}=rd;if(sd==="import"&&od.length){rd.import=!0;let ld=ed({css:od});for(rd.filename=od.replace(td,"$1");!ld.endOfFile();){let[ud,cd]=ld.nextToken();if(ud==="word"&&cd==="url")return;if(ud==="brackets"){rd.options=cd,rd.filename=od.replace(cd,"").trim();break}}}}}),mo$2=y$3((Ra,qa)=>{var ed=/:$/,td=/^:(\s+)?/;qa.exports=rd=>{let{name:sd,params:od=""}=rd;if(rd.name.slice(-1)===":"){if(ed.test(sd)){let[ld]=sd.match(ed);rd.name=sd.replace(ld,""),rd.raws.afterName=ld+(rd.raws.afterName||""),rd.variable=!0,rd.value=rd.params}if(td.test(od)){let[ld]=od.match(td);rd.value=od.replace(ld,""),rd.raws.afterName=(rd.raws.afterName||"")+ld,rd.variable=!0}}}}),go$2=y$3((Ra,qa)=>{var ed=Oe$1(),td=Ht$2(),{isInlineComment:rd}=no$1(),{interpolation:sd}=oo$2(),{isMixinToken:od}=uo$2(),ld=co$1(),ud=mo$2(),cd=/(!\s*important)$/i;qa.exports=class extends td{constructor(...dd){super(...dd),this.lastNode=null}atrule(dd){sd.bind(this)(dd)||(super.atrule(dd),ld(this.lastNode),ud(this.lastNode))}decl(...dd){super.decl(...dd),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(dd){dd[0][1]=` ${dd[0][1]}`;let _d=dd.findIndex(Id=>Id[0]==="("),Ed=dd.reverse().find(Id=>Id[0]===")"),Ad=dd.reverse().indexOf(Ed),Td=dd.splice(_d,Ad).map(Id=>Id[1]).join("");for(let Id of dd.reverse())this.tokenizer.back(Id);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=Td}init(dd,_d,Ed){super.init(dd,_d,Ed),this.lastNode=dd}inlineComment(dd){let _d=new ed,Ed=dd[1].slice(2);if(this.init(_d,dd[2]),_d.source.end=this.getPosition(dd[3]||dd[2]),_d.inline=!0,_d.raws.begin="//",/^\s*$/.test(Ed))_d.text="",_d.raws.left=Ed,_d.raws.right="";else{let Ad=Ed.match(/^(\s*)([^]*[^\s])(\s*)$/);[,_d.raws.left,_d.text,_d.raws.right]=Ad}}mixin(dd){let[_d]=dd,Ed=_d[1].slice(0,1),Ad=dd.findIndex(Od=>Od[0]==="brackets"),Td=dd.findIndex(Od=>Od[0]==="("),Id="";if((Ad<0||Ad>3)&&Td>0){let Od=dd.reduce((Xd,df,mf)=>df[0]===")"?mf:Xd),Md=dd.slice(Td,Od+Td).map(Xd=>Xd[1]).join(""),[Ld]=dd.slice(Td),Fd=[Ld[2],Ld[3]],[jd]=dd.slice(Od,Od+1),Vd=[jd[2],jd[3]],Qd=["brackets",Md].concat(Fd,Vd),qd=dd.slice(0,Td),Kd=dd.slice(Od+1);dd=qd,dd.push(Qd),dd=dd.concat(Kd)}let Bd=[];for(let Od of dd)if((Od[1]==="!"||Bd.length)&&Bd.push(Od),Od[1]==="important")break;if(Bd.length){let[Od]=Bd,Md=dd.indexOf(Od),Ld=Bd[Bd.length-1],Fd=[Od[2],Od[3]],jd=[Ld[4],Ld[5]],Vd=["word",Bd.map(Qd=>Qd[1]).join("")].concat(Fd,jd);dd.splice(Md,Bd.length,Vd)}let Rd=dd.findIndex(Od=>cd.test(Od[1]));Rd>0&&([,Id]=dd[Rd],dd.splice(Rd,1));for(let Od of dd.reverse())this.tokenizer.back(Od);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=Ed,Id&&(this.lastNode.important=!0,this.lastNode.raws.important=Id)}other(dd){rd.bind(this)(dd)||super.other(dd)}rule(dd){let
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let Xd=jd(...Kd);return Xd.postcssPlugin=Fd,Xd.postcssVersion=new od().version,Xd}let qd;return Object.defineProperty(Qd,"postcss",{get(){return qd||(qd=Qd()),qd}}),Qd.process=function(Kd,Xd,df){return Ld([Qd(df)]).process(Kd,Xd)},Qd},Ld.stringify=ld,Ld.parse=Id,Ld.fromJSON=ud,Ld.list=Bd,Ld.comment=Fd=>new _d(Fd),Ld.atRule=Fd=>new Ed(Fd),Ld.decl=Fd=>new td(Fd),Ld.rule=Fd=>new Rd(Fd),Ld.root=Fd=>new Od(Fd),Ld.document=Fd=>new cd(Fd),Ld.CssSyntaxError=ed,Ld.Declaration=td,Ld.Container=sd,Ld.Processor=od,Ld.Document=cd,Ld.Comment=_d,Ld.Warning=dd,Ld.AtRule=Ed,Ld.Result=Ad,Ld.Input=Td,Ld.Rule=Rd,Ld.Root=Od,Ld.Node=Md,rd.registerPostcss(Ld),qa.exports=Ld,Ld.default=Ld}),Ho$2=y$3((Ra,qa)=>{var{Container:ed}=Zt$1(),td=class extends ed{constructor(rd){super(rd),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};qa.exports=td}),Jo$1=y$3((Ra,qa)=>{var ed=/[\t\n\f\r "#'()/;[\\\]{}]/g,td=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rd=/.[\r\n"'(/\\]/,sd=/[\da-f]/i,od=/[\n\f\r]/g;qa.exports=function(ld,ud={}){let cd=ld.css.valueOf(),dd=ud.ignoreErrors,_d,Ed,Ad,Td,Id,Bd,Rd,Od,Md,Ld=cd.length,Fd=0,jd=[],Vd=[],Qd;function qd(){return Fd}function Kd(pf){throw ld.error("Unclosed "+pf,Fd)}function Xd(){return Vd.length===0&&Fd>=Ld}function df(){let pf=1,_f=!1,Tf=!1;for(;pf>0;)Ed+=1,cd.length<=Ed&&Kd("interpolation"),_d=cd.charCodeAt(Ed),Od=cd.charCodeAt(Ed+1),_f?!Tf&&_d===_f?(_f=!1,Tf=!1):_d===92?Tf=!Tf:Tf&&(Tf=!1):_d===39||_d===34?_f=_d:_d===125?pf-=1:_d===35&&Od===123&&(pf+=1)}function mf(pf){if(Vd.length)return Vd.pop();if(Fd>=Ld)return;let _f=pf?pf.ignoreUnclosed:!1;switch(_d=cd.charCodeAt(Fd),_d){case 10:case 32:case 9:case 13:case 12:{Ed=Fd;do Ed+=1,_d=cd.charCodeAt(Ed);while(_d===32||_d===10||_d===9||_d===13||_d===12);Md=["space",cd.slice(Fd,Ed)],Fd=Ed-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Tf=String.fromCharCode(_d);Md=[Tf,Tf,Fd];break}case 44:{Md=["word",",",Fd,Fd+1];break}case 40:{if(Rd=jd.length?jd.pop()[1]:"",Od=cd.charCodeAt(Fd+1),Rd==="url"&&Od!==39&&Od!==34){for(Qd=1,Bd=!1,Ed=Fd+1;Ed<=cd.length-1;){if(Od=cd.charCodeAt(Ed),Od===92)Bd=!Bd;else if(Od===40)Qd+=1;else if(Od===41&&(Qd-=1,Qd===0))break;Ed+=1}Td=cd.slice(Fd,Ed+1),Md=["brackets",Td,Fd,Ed],Fd=Ed}else Ed=cd.indexOf(")",Fd+1),Td=cd.slice(Fd,Ed+1),Ed===-1||rd.test(Td)?Md=["(","(",Fd]:(Md=["brackets",Td,Fd,Ed],Fd=Ed);break}case 39:case 34:{for(Ad=_d,Ed=Fd,Bd=!1;Ed<Ld&&(Ed++,Ed===Ld&&Kd("string"),_d=cd.charCodeAt(Ed),Od=cd.charCodeAt(Ed+1),!(!Bd&&_d===Ad));)_d===92?Bd=!Bd:Bd?Bd=!1:_d===35&&Od===123&&df();Md=["string",cd.slice(Fd,Ed+1),Fd,Ed],Fd=Ed;break}case 64:{ed.lastIndex=Fd+1,ed.test(cd),ed.lastIndex===0?Ed=cd.length-1:Ed=ed.lastIndex-2,Md=["at-word",cd.slice(Fd,Ed+1),Fd,Ed],Fd=Ed;break}case 92:{for(Ed=Fd,Id=!0;cd.charCodeAt(Ed+1)===92;)Ed+=1,Id=!Id;if(_d=cd.charCodeAt(Ed+1),Id&&_d!==47&&_d!==32&&_d!==10&&_d!==9&&_d!==13&&_d!==12&&(Ed+=1,sd.test(cd.charAt(Ed)))){for(;sd.test(cd.charAt(Ed+1));)Ed+=1;cd.charCodeAt(Ed+1)===32&&(Ed+=1)}Md=["word",cd.slice(Fd,Ed+1),Fd,Ed],Fd=Ed;break}default:Od=cd.charCodeAt(Fd+1),_d===35&&Od===123?(Ed=Fd,df(),Td=cd.slice(Fd,Ed+1),Md=["word",Td,Fd,Ed],Fd=Ed):_d===47&&Od===42?(Ed=cd.indexOf("*/",Fd+2)+1,Ed===0&&(dd||_f?Ed=cd.length:Kd("comment")),Md=["comment",cd.slice(Fd,Ed+1),Fd,Ed],Fd=Ed):_d===47&&Od===47?(od.lastIndex=Fd+1,od.test(cd),od.lastIndex===0?Ed=cd.length-1:Ed=od.lastIndex-2,Td=cd.slice(Fd,Ed+1),Md=["comment",Td,Fd,Ed,"inline"],Fd=Ed):(td.lastIndex=Fd+1,td.test(cd),td.lastIndex===0?Ed=cd.length-1:Ed=td.lastIndex-2,Md=["word",cd.slice(Fd,Ed+1),Fd,Ed],jd.push(Md),Fd=Ed);break}return Fd++,Md}function bf(pf){Vd.push(pf)}return{back:bf,endOfFile:Xd,nextToken:mf,position:qd}}}),Zo$1=y$3((Ra,qa)=>{var{Comment:ed}=Zt$1(),td=Ht$2(),rd=Ho$2(),sd=Jo$1(),od=class extends td{atrule(ld){let ud=ld[1],cd=ld;for(;!this.tokenizer.endOfFile();){let dd=this.tokenizer.nextToken();if(dd[0]==="word"&&dd[2]===cd[3]+1)ud+=dd[1],cd=dd;else{this.tokenizer.back(dd);break}}super.atrule(["at-word",ud,ld[2],cd[3]])}comment(ld){if(ld[4]==="inline"){let u
`))break;_d[0]==="("?cd+=1:_d[0]===")"?cd-=1:cd===0&&_d[0]===":"&&(ud=!0)}if(!ud||dd.trim()===""||/^[#:A-Za-z-]/.test(dd))super.rule(ld);else{ld.pop();let _d=new rd;this.init(_d,ld[0][2]);let Ed;for(let Td=ld.length-1;Td>=0;Td--)if(ld[Td][0]!=="space"){Ed=ld[Td];break}if(Ed[3]){let Td=this.input.fromOffset(Ed[3]);_d.source.end={column:Td.col,line:Td.line,offset:Ed[3]+1}}else{let Td=this.input.fromOffset(Ed[2]);_d.source.end={column:Td.col,line:Td.line,offset:Ed[2]+1}}for(;ld[0][0]!=="word";)_d.raws.before+=ld.shift()[1];if(ld[0][2]){let Td=this.input.fromOffset(ld[0][2]);_d.source.start={column:Td.col,line:Td.line,offset:ld[0][2]}}for(_d.prop="";ld.length;){let Td=ld[0][0];if(Td===":"||Td==="space"||Td==="comment")break;_d.prop+=ld.shift()[1]}_d.raws.between="";let Ad;for(;ld.length;)if(Ad=ld.shift(),Ad[0]===":"){_d.raws.between+=Ad[1];break}else _d.raws.between+=Ad[1];(_d.prop[0]==="_"||_d.prop[0]==="*")&&(_d.raws.before+=_d.prop[0],_d.prop=_d.prop.slice(1)),_d.raws.between+=this.spacesAndCommentsFromStart(ld),this.precheckMissedSemicolon(ld);for(let Td=ld.length-1;Td>0;Td--){if(Ad=ld[Td],Ad[1]==="!important"){_d.important=!0;let Id=this.stringFrom(ld,Td);Id=this.spacesFromEnd(ld)+Id,Id!==" !important"&&(_d.raws.important=Id);break}else if(Ad[1]==="important"){let Id=ld.slice(0),Bd="";for(let Rd=Td;Rd>0;Rd--){let Od=Id[Rd][0];if(Bd.trim().indexOf("!")===0&&Od!=="space")break;Bd=Id.pop()[1]+Bd}Bd.trim().indexOf("!")===0&&(_d.important=!0,_d.raws.important=Bd,ld=Id)}if(Ad[0]!=="space"&&Ad[0]!=="comment")break}this.raw(_d,"value",ld),_d.value.includes(":")&&this.checkMissedSemicolon(ld),this.current=_d}}};qa.exports=od}),ta=y$3((Ra,qa)=>{var{Input:ed}=Zt$1(),td=Zo$1();qa.exports=function(rd,sd){let od=new ed(rd,sd),ld=new td(od);return ld.parse(),ld.root}}),Os=y$3(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(ed){this.after=ed.after,this.before=ed.before,this.type=ed.type,this.value=ed.value,this.sourceIndex=ed.sourceIndex}Ra.default=qa}),As=y$3(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});var qa=Os(),ed=td(qa);function td(sd){return sd&&sd.__esModule?sd:{default:sd}}function rd(sd){var od=this;this.constructor(sd),this.nodes=sd.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(ld){ld.parent=od})}rd.prototype=Object.create(ed.default.prototype),rd.constructor=ed.default,rd.prototype.walk=function(sd,od){for(var ld=typeof sd=="string"||sd instanceof RegExp,ud=ld?od:sd,cd=typeof sd=="string"?new RegExp(sd):sd,dd=0;dd<this.nodes.length;dd++){var _d=this.nodes[dd],Ed=ld?cd.test(_d.type):!0;if(Ed&&ud&&ud(_d,dd,this.nodes)===!1||_d.nodes&&_d.walk(sd,od)===!1)return!1}return!0},rd.prototype.each=function(){for(var sd=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],od=0;od<this.nodes.length;od++){var ld=this.nodes[od];if(sd(ld,od,this.nodes)===!1)return!1}return!0},Ra.default=rd}),aa$1=y$3(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.parseMediaFeature=od,Ra.parseMediaQuery=ld,Ra.parseMediaList=ud;var qa=Os(),ed=sd(qa),td=As(),rd=sd(td);function sd(cd){return cd&&cd.__esModule?cd:{default:cd}}function od(cd){var dd=arguments.length<=1||arguments[1]===void 0?0:arguments[1],_d=[{mode:"normal",character:null}],Ed=[],Ad=0,Td="",Id=null,Bd=null,Rd=dd,Od=cd;cd[0]==="("&&cd[cd.length-1]===")"&&(Od=cd.substring(1,cd.length-1),Rd++);for(var Md=0;Md<Od.length;Md++){var Ld=Od[Md];if((Ld==="'"||Ld==='"')&&(_d[Ad].isCalculationEnabled===!0?(_d.push({mode:"string",isCalculationEnabled:!1,character:Ld}),Ad++):_d[Ad].mode==="string"&&_d[Ad].character===Ld&&Od[Md-1]!=="\\"&&(_d.pop(),Ad--)),Ld==="{"?(_d.push({mode:"interpolation",isCalculationEnabled:!0}),Ad++):Ld==="}"&&(_d.pop(),Ad--),_d[Ad].mode==="normal"&&Ld===":"){var Fd=Od.substring(Md+1);Bd={type:"value",before:/^(\s*)/.exec(Fd)[1],after:/(\s*)$/.exec(Fd)[1],value:Fd.trim()},Bd.sourceIndex=Bd.before.length
`),zf=kf.length-1,zf>0?(Mf=hf+zf,Nf=_f-kf[zf].length):(Mf=hf,Nf=yf),mf.push(["comment",Jf,hf,Rf-yf,Mf,_f-Nf,Rf]),yf=Nf,hf=Mf,Rf=_f):(Kd.lastIndex=Rf+1,Kd.test(bf),Kd.lastIndex===0?_f=bf.length-1:_f=Kd.lastIndex-2,mf.push(["word",bf.slice(Rf,_f+1),hf,Rf-yf,hf,_f-yf,Rf]),Rf=_f);break}Rf++}return mf}qa.exports=Ra.default}),tu$2=y$3((Ra,qa)=>{Ra.__esModule=!0;var ed=function(){function yf(hf,Rf){for(var jf=0;jf<Rf.length;jf++){var Kf=Rf[jf];Kf.enumerable=Kf.enumerable||!1,Kf.configurable=!0,"value"in Kf&&(Kf.writable=!0),Object.defineProperty(hf,Kf.key,Kf)}}return function(hf,Rf,jf){return Rf&&yf(hf.prototype,Rf),jf&&yf(hf,jf),hf}}(),td=qs(),rd=Bf(td),sd=Ls(),od=Bf(sd),ld=Ds$1(),ud=Bf(ld),cd=ga$1(),dd=Bf(cd),_d=xa(),Ed=Bf(_d),Ad=ka(),Td=Bf(Ad),Id=Sa(),Bd=Bf(Id),Rd=Oa$1(),Od=Bf(Rd),Md=Aa(),Ld=Bf(Md),Fd=Pa$1(),jd=Bf(Fd),Vd=Ia(),Qd=Bf(Vd),qd=La(),Kd=Bf(qd),Xd=Ma(),df=Bf(Xd),mf=Ua$1(),bf=Bf(mf),pf=$a$1(),_f=Bf(pf),Tf=Ya$1(),kf=Bf(Tf),zf=Xa$1(),Jf=Bf(zf),Gf=D$1(),Mf=Nf(Gf);function Nf(yf){if(yf&&yf.__esModule)return yf;var hf={};if(yf!=null)for(var Rf in yf)Object.prototype.hasOwnProperty.call(yf,Rf)&&(hf[Rf]=yf[Rf]);return hf.default=yf,hf}function Bf(yf){return yf&&yf.__esModule?yf:{default:yf}}function Qf(yf,hf){if(!(yf instanceof hf))throw new TypeError("Cannot call a class as a function")}var Wf=function(){function yf(hf){Qf(this,yf),this.input=hf,this.lossy=hf.options.lossless===!1,this.position=0,this.root=new dd.default;var Rf=new Ed.default;return this.root.append(Rf),this.current=Rf,this.lossy?this.tokens=(0,Jf.default)({safe:hf.safe,css:hf.css.trim()}):this.tokens=(0,Jf.default)(hf),this.loop()}return yf.prototype.attribute=function(){var hf="",Rf=void 0,jf=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)hf+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~hf.indexOf("]")&&this.error("Expected a closing square bracket.");var Kf=hf.split(/((?:[*~^$|]?=))([^]*)/),Ff=Kf[0].split(/(\|)/g),wf={operator:Kf[1],value:Kf[2],source:{start:{line:jf[2],column:jf[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:jf[4]};if(Ff.length>1?(Ff[0]===""&&(Ff[0]=!0),wf.attribute=this.parseValue(Ff[2]),wf.namespace=this.parseNamespace(Ff[0])):wf.attribute=this.parseValue(Kf[0]),Rf=new Kd.default(wf),Kf[2]){var Yf=Kf[2].split(/(\s+i\s*?)$/),uh=Yf[0].trim();Rf.value=this.lossy?uh:Yf[0],Yf[1]&&(Rf.insensitive=!0,this.lossy||(Rf.raws.insensitive=Yf[1])),Rf.quoted=uh[0]==="'"||uh[0]==='"',Rf.raws.unquoted=Rf.quoted?uh.slice(1,-1):uh}this.newNode(Rf),this.position++},yf.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var hf=new bf.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(hf.spaces.before=this.parseSpace(this.currToken[1]),hf.source.start.line=this.nextToken[2],hf.source.start.column=this.nextToken[3],hf.source.end.column=this.nextToken[3],hf.source.end.line=this.nextToken[2],hf.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?hf.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?hf.value=this.currToken[1]:this.currToken[0]==="space"&&(hf.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(hf)},yf.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var hf=new Ed.default;this.current.parent.append(hf),this.current=hf,this.position++},yf.prototype.comment=function(){var hf=new Bd.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(hf),this.position++},yf.prototype.error=function(hf){throw new this.input.error(hf)},yf.prototype.
`?(sd=1,od+=1):sd+=1;return{line:od,column:sd}}positionBy(td){let rd=this.source.start;if(Object(td).index)rd=this.positionInside(td.index);else if(Object(td).word){let sd=this.toString().indexOf(td.word);sd!==-1&&(rd=this.positionInside(sd))}return rd}}}),U$2=y$3((Ra,qa)=>{var ed=z$2(),td=class extends ed{constructor(rd){super(rd),this.nodes||(this.nodes=[])}push(rd){return rd.parent=this,this.nodes.push(rd),this}each(rd){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let sd=this.lastEach,od,ld;if(this.indexes[sd]=0,!!this.nodes){for(;this.indexes[sd]<this.nodes.length&&(od=this.indexes[sd],ld=rd(this.nodes[od],od),ld!==!1);)this.indexes[sd]+=1;return delete this.indexes[sd],ld}}walk(rd){return this.each((sd,od)=>{let ld=rd(sd,od);return ld!==!1&&sd.walk&&(ld=sd.walk(rd)),ld})}walkType(rd,sd){if(!rd||!sd)throw new Error("Parameters {type} and {callback} are required.");let od=typeof rd=="function";return this.walk((ld,ud)=>{if(od&&ld instanceof rd||!od&&ld.type===rd)return sd.call(this,ld,ud)})}append(rd){return rd.parent=this,this.nodes.push(rd),this}prepend(rd){return rd.parent=this,this.nodes.unshift(rd),this}cleanRaws(rd){if(super.cleanRaws(rd),this.nodes)for(let sd of this.nodes)sd.cleanRaws(rd)}insertAfter(rd,sd){let od=this.index(rd),ld;this.nodes.splice(od+1,0,sd);for(let ud in this.indexes)ld=this.indexes[ud],od<=ld&&(this.indexes[ud]=ld+this.nodes.length);return this}insertBefore(rd,sd){let od=this.index(rd),ld;this.nodes.splice(od,0,sd);for(let ud in this.indexes)ld=this.indexes[ud],od<=ld&&(this.indexes[ud]=ld+this.nodes.length);return this}removeChild(rd){rd=this.index(rd),this.nodes[rd].parent=void 0,this.nodes.splice(rd,1);let sd;for(let od in this.indexes)sd=this.indexes[od],sd>=rd&&(this.indexes[od]=sd-1);return this}removeAll(){for(let rd of this.nodes)rd.parent=void 0;return this.nodes=[],this}every(rd){return this.nodes.every(rd)}some(rd){return this.nodes.some(rd)}index(rd){return typeof rd=="number"?rd:this.nodes.indexOf(rd)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let rd=this.nodes.map(String).join("");return this.value&&(rd=this.value+rd),this.raws.before&&(rd=this.raws.before+rd),this.raws.after&&(rd+=this.raws.after),rd}};td.registerWalker=rd=>{let sd="walk"+rd.name;sd.lastIndexOf("s")!==sd.length-1&&(sd+="s"),!td.prototype[sd]&&(td.prototype[sd]=function(od){return this.walkType(rd,od)})},qa.exports=td}),uu$2=y$3((Ra,qa)=>{var ed=U$2();qa.exports=class extends ed{constructor(td){super(td),this.type="root"}}}),cu$1=y$3((Ra,qa)=>{var ed=U$2();qa.exports=class extends ed{constructor(td){super(td),this.type="value",this.unbalanced=0}}}),hu$2=y$3((Ra,qa)=>{var ed=U$2(),td=class extends ed{constructor(rd){super(rd),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};ed.registerWalker(td),qa.exports=td}),mu$2=y$3((Ra,qa)=>{var ed=U$2(),td=z$2(),rd=class extends td{constructor(sd){super(sd),this.type="colon"}};ed.registerWalker(rd),qa.exports=rd}),wu$1=y$3((Ra,qa)=>{var ed=U$2(),td=z$2(),rd=class extends td{constructor(sd){super(sd),this.type="comma"}};ed.registerWalker(rd),qa.exports=rd}),vu$2=y$3((Ra,qa)=>{var ed=U$2(),td=z$2(),rd=class extends td{constructor(sd){super(sd),this.type="comment",this.inline=Object(sd).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};ed.registerWalker(rd),qa.exports=rd}),_u$1=y$3((Ra,qa)=>{var ed=U$2(),td=class extends ed{constructor(rd){super(rd),this.type="func",this.unbalanced=-1}};ed.registerWalker(td),qa.exports=td}),Eu$1=y$3((Ra,qa)=>{var ed=U$2(),td=z$2(),rd=class extends td{constructor(sd){super(sd),this.type="number",this.unit=Object(sd).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ed.registerWalker(rd),qa.exports=rd}),Tu$1=y$3((Ra,qa)=>{var ed=U$2(),td=z$2(),rd=class extends td{constructor(sd){super(s
`,Id+2);Md=bf!==-1?bf-1:Ed}Vd=_d.slice(Id,Md+1),Fd=Vd.split(`
`),jd=Fd.length-1,jd>0?(Qd=Td+jd,qd=Md-Fd[jd].length):(Qd=Td,qd=Ad),dd.push(["comment",Vd,Td,Id-Ad,Qd,Md-qd,Id]),Ad=qd,Td=Qd,Id=Md}else if(Od===35&&!sd.test(_d.slice(Id+1,Id+2)))Md=Id+1,dd.push(["#",_d.slice(Id,Md),Td,Id-Ad,Td,Md-Ad,Id]),Id=Md-1;else if((Od===117||Od===85)&&_d.charCodeAt(Id+1)===43){Md=Id+2;do Md+=1,Od=_d.charCodeAt(Md);while(Md<Ed&&od.test(_d.slice(Md,Md+1)));dd.push(["unicoderange",_d.slice(Id,Md),Td,Id-Ad,Td,Md-Ad,Id]),Id=Md-1}else if(Od===47)Md=Id+1,dd.push(["operator",_d.slice(Id,Md),Td,Id-Ad,Td,Md-Ad,Id]),Id=Md-1;else{let bf=td;if(Od>=48&&Od<=57&&(bf=rd),bf.lastIndex=Id+1,bf.test(_d),bf.lastIndex===0?Md=_d.length-1:Md=bf.lastIndex-2,bf===rd||Od===46){let pf=_d.charCodeAt(Md),_f=_d.charCodeAt(Md+1),Tf=_d.charCodeAt(Md+2);(pf===101||pf===69)&&(_f===45||_f===43)&&Tf>=48&&Tf<=57&&(rd.lastIndex=Md+2,rd.test(_d),rd.lastIndex===0?Md=_d.length-1:Md=rd.lastIndex-2)}dd.push(["word",_d.slice(Id,Md+1),Td,Id-Ad,Td,Md-Ad,Id]),Id=Md}break}Id++}return dd}}),$u$1=y$3((Ra,qa)=>{var ed=class extends Error{constructor(td){super(td),this.name=this.constructor.name,this.message=td||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(td).stack}};qa.exports=ed}),Vu$1=y$3((Ra,qa)=>{var ed=uu$2(),td=cu$1(),rd=hu$2(),sd=mu$2(),od=wu$1(),ld=vu$2(),ud=_u$1(),cd=Eu$1(),dd=Tu$1(),_d=Cu$1(),Ed=Nu$1(),Ad=Ru$1(),Td=qu$2(),Id=Uu$1(),Bd=qs(),Rd=Ls(),Od=Ds$1(),Md=$u$1();function Ld(Fd){return Fd.sort((jd,Vd)=>jd-Vd)}qa.exports=class{constructor(Fd,jd){let Vd={loose:!1};this.cache=[],this.input=Fd,this.options=Object.assign({},Vd,jd),this.position=0,this.unbalanced=0,this.root=new ed;let Qd=new td;this.root.append(Qd),this.current=Qd,this.tokens=Id(Fd,this.options)}parse(){return this.loop()}colon(){let Fd=this.currToken;this.newNode(new sd({value:Fd[1],source:{start:{line:Fd[2],column:Fd[3]},end:{line:Fd[4],column:Fd[5]}},sourceIndex:Fd[6]})),this.position++}comma(){let Fd=this.currToken;this.newNode(new od({value:Fd[1],source:{start:{line:Fd[2],column:Fd[3]},end:{line:Fd[4],column:Fd[5]}},sourceIndex:Fd[6]})),this.position++}comment(){let Fd=!1,jd=this.currToken[1].replace(/\/\*|\*\//g,""),Vd;this.options.loose&&jd.startsWith("//")&&(jd=jd.substring(2),Fd=!0),Vd=new ld({value:jd,inline:Fd,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(Vd),this.position++}error(Fd,jd){throw new Md(Fd+` at line: ${jd[2]}, column ${jd[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let Fd=this.currToken[1],jd;if(Fd==="+"||Fd==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return jd=new dd({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(jd)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"
Expected it to be 'string' or 'object'.`;if(Ve$1(Ra))throw new Error("doc is valid.");let ed=Object.prototype.toString.call(Ra);if(ed!=="[object Object]")return`Unexpected doc '${ed}'.`;let td=ml([...bt$2].map(rd=>`'${rd}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${td}.`}var Fr$1=class extends Error{constructor(ed){super(yl(ed));Ym(this,"name","InvalidDocError");this.doc=ed}},$r$1=Fr$1,Zs=()=>{},_t$1=Zs;function q$2(Ra){return{type:we$1,contents:Ra}}function en$1(Ra,qa){return{type:ge$1,contents:qa,n:Ra}}function L$2(Ra,qa={}){return _t$1(qa.expandedStates),{type:ve$1,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function tn$1(Ra){return en$1({type:"root"},Ra)}function ue$1(Ra){return en$1(-1,Ra)}function Ge$1(Ra){return{type:xe$2,parts:Ra}}function kt$2(Ra,qa="",ed={}){return{type:oe$1,breakContents:Ra,flatContents:qa,groupId:ed.groupId}}var je$2={type:be$2},wl$1={type:K$1,hard:!0},A$1={type:K$1},M$2={type:K$1,soft:!0},E$1=[wl$1,je$2];function V$2(Ra,qa){let ed=[];for(let td=0;td<qa.length;td++)td!==0&&ed.push(Ra),ed.push(qa[td]);return ed}var gl=(Ra,qa,ed)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[ed<0?qa.length+ed:ed]:qa.at(ed)},G$2=gl;function vl(Ra,qa){if(typeof Ra=="string")return qa(Ra);let ed=new Map;return td(Ra);function td(sd){if(ed.has(sd))return ed.get(sd);let od=rd(sd);return ed.set(sd,od),od}function rd(sd){switch(Ve$1(sd)){case Be$1:return qa(sd.map(td));case xe$2:return qa({...sd,parts:sd.parts.map(td)});case oe$1:return qa({...sd,breakContents:td(sd.breakContents),flatContents:td(sd.flatContents)});case ve$1:{let{expandedStates:od,contents:ld}=sd;return od?(od=od.map(td),ld=od[0]):ld=td(ld),qa({...sd,contents:ld,expandedStates:od})}case ge$1:case we$1:case $e$2:case ze$1:case We$1:return qa({...sd,contents:td(sd.contents)});case Me$2:case Ue$1:case Fe$1:case Ye$1:case K$1:case be$2:return qa(sd);default:throw new $r$1(sd)}}}function xl$1(Ra){return Ra.type===K$1&&!Ra.hard?Ra.soft?"":" ":Ra.type===oe$1?Ra.flatContents:Ra}function rn$1(Ra){return vl(Ra,xl$1)}function bl(Ra){return Array.isArray(Ra)&&Ra.length>0}var ee$1=bl,Et$1="'",sn='"';function _l(Ra,qa){let ed=qa===!0||qa===Et$1?Et$1:sn,td=ed===Et$1?sn:Et$1,rd=0,sd=0;for(let od of Ra)od===ed?rd++:od===td&&sd++;return rd>sd?td:ed}var nn$1=_l;function kl(Ra,qa,ed){let td=qa==='"'?"'":'"',rd=_$3(!1,Ra,/\\(.)|(["'])/gsu,(sd,od,ld)=>od===td?od:ld===qa?"\\"+ld:ld||(ed&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(od)?od:"\\"+od));return qa+rd+qa}var on=kl;function El$1(Ra,qa){let ed=Ra.slice(1,-1),td=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":nn$1(ed,qa.singleQuote);return on(ed,td,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var St$1=El$1,Wr$1=class extends Error{constructor(ed,td,rd="type"){super(`Unexpected ${td} node ${rd}: ${JSON.stringify(ed[rd])}.`);Ym(this,"name","UnexpectedNodeError");this.node=ed}},an$1=Wr$1;function Sl$1(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var _e$1=Sl$1,Tl$1=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function un$1(Ra,qa,ed){if(_e$1(Ra)&&Ra.language==="yaml"&&delete qa.value,Ra.type==="css-comment"&&ed.type==="css-root"&&ed.nodes.length>0&&((ed.nodes[0]===Ra||_e$1(ed.nodes[0])&&ed.nodes[1]===Ra)&&(delete qa.text,/^\*\s*@(?:format|prettier)\s*$/u.test(Ra.text))||ed.type==="css-root"&&G$2(!1,ed.nodes,-1)===Ra))return null;if(Ra.type==="value-root"&&delete qa.text,(Ra.type==="media-query"||Ra.type==="media-query-list"||Ra.type==="media-feature-expression")&&delete qa.value,Ra.type==="css-rule"&&delete qa.params,(Ra.type==="media-feature"||Ra.type==="media-keyword"||Ra.type==="media-type"||Ra.type==="media-unknown"||Ra.type==="media-url"||Ra.type==="media-value"||Ra.type==="selector-attribute"||Ra.type==="selector-string"||Ra.type==="selector-class"||Ra.type==="selector-combinator"||Ra.type==="value-string")&&Ra.value&&(qa.value=Ol$1(Ra.value)),Ra.type==="selector-combinator"&&(qa.value=_$3(!1,qa.value,/\s+/gu," ")),Ra.type==="media-feature"&&(qa.value=_$3(!1,qa.value," ","")),(Ra.type==="value-word"&&(Ra.isColor&&Ra.isHex||["initial","inherit","unset","revert"].includes(Ra.value.toLowerCase()))||Ra.type==="media-feature"||R
`,ed)+1;return ed+Ra.column}var zr$1=Il$1;function Tt$2(Ra){return(qa,ed,td)=>{let rd=!!(td!=null&&td.backwards);if(ed===!1)return!1;let{length:sd}=qa,od=ed;for(;od>=0&&od<sd;){let ld=qa.charAt(od);if(Ra instanceof RegExp){if(!Ra.test(ld))return od}else if(!Ra.includes(ld))return od;rd?od--:od++}return od===-1||od===sd?od:!1}}var Ot$2=Tt$2(" "),yn$1=Tt$2(",; "),Ct$1=Tt$2(/[^\n\r]/u);function wn$2(Ra,qa){var ed,td,rd;if(typeof((td=(ed=Ra.source)==null?void 0:ed.start)==null?void 0:td.offset)=="number")return Ra.source.start.offset;if(typeof Ra.sourceIndex=="number")return Ra.sourceIndex;if((rd=Ra.source)!=null&&rd.start)return zr$1(Ra.source.start,qa);throw Object.assign(new Error("Can not locate node."),{node:Ra})}function Vr$1(Ra,qa){var ed,td;if(Ra.type==="css-comment"&&Ra.inline)return Ct$1(qa,Ra.source.startOffset);if(typeof((td=(ed=Ra.source)==null?void 0:ed.end)==null?void 0:td.offset)=="number")return Ra.source.end.offset;if(Ra.source){if(Ra.source.end)return zr$1(Ra.source.end,qa);if(ee$1(Ra.nodes))return Vr$1(G$2(!1,Ra.nodes,-1),qa)}return null}function Gr$1(Ra,qa){Ra.source&&(Ra.source.startOffset=wn$2(Ra,qa),Ra.source.endOffset=Vr$1(Ra,qa));for(let ed in Ra){let td=Ra[ed];ed==="source"||!td||typeof td!="object"||(td.type==="value-root"||td.type==="value-unknown"?gn$2(td,ql$1(Ra),td.text||td.value):Gr$1(td,qa))}}function gn$2(Ra,qa,ed){Ra.source&&(Ra.source.startOffset=wn$2(Ra,ed)+qa,Ra.source.endOffset=Vr$1(Ra,ed)+qa);for(let td in Ra){let rd=Ra[td];td==="source"||!rd||typeof rd!="object"||gn$2(rd,qa,ed)}}function ql$1(Ra){var qa;let ed=Ra.source.startOffset;return typeof Ra.prop=="string"&&(ed+=Ra.prop.length),Ra.type==="css-atrule"&&typeof Ra.name=="string"&&(ed+=1+Ra.name.length+Ra.raws.afterName.match(/^\s*:?\s*/u)[0].length),Ra.type!=="css-atrule"&&typeof((qa=Ra.raws)==null?void 0:qa.between)=="string"&&(ed+=Ra.raws.between.length),ed}function vn$1(Ra){let qa="initial",ed="initial",td,rd=!1,sd=[];for(let od=0;od<Ra.length;od++){let ld=Ra[od];switch(qa){case"initial":if(ld==="'"){qa="single-quotes";continue}if(ld==='"'){qa="double-quotes";continue}if((ld==="u"||ld==="U")&&Ra.slice(od,od+4).toLowerCase()==="url("){qa="url",od+=3;continue}if(ld==="*"&&Ra[od-1]==="/"){qa="comment-block";continue}if(ld==="/"&&Ra[od-1]==="/"){qa="comment-inline",td=od-1;continue}continue;case"single-quotes":if(ld==="'"&&Ra[od-1]!=="\\"&&(qa=ed,ed="initial"),ld===`
`||ld==="\r")return Ra;continue;case"double-quotes":if(ld==='"'&&Ra[od-1]!=="\\"&&(qa=ed,ed="initial"),ld===`
`||ld==="\r")return Ra;continue;case"url":if(ld===")"&&(qa="initial"),ld===`
`||ld==="\r")return Ra;if(ld==="'"){qa="single-quotes",ed="url";continue}if(ld==='"'){qa="double-quotes",ed="url";continue}continue;case"comment-block":ld==="/"&&Ra[od-1]==="*"&&(qa="initial");continue;case"comment-inline":(ld==='"'||ld==="'"||ld==="*")&&(rd=!0),(ld===`
`||ld==="\r")&&(rd&&sd.push([td,od]),qa="initial",rd=!1);continue}}for(let[od,ld]of sd)Ra=Ra.slice(0,od)+_$3(!1,Ra.slice(od,ld),/["'*]/gu," ")+Ra.slice(ld);return Ra}function N$2(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.startOffset}function P$2(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.endOffset}var Ll$1=/\*\/$/,Dl=/^\/\*\*?/,kn$1=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ml=/(^|\s+)\/\/([^\n\r]*)/g,xn$1=/^(\r?\n)+/,Bl=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,bn$2=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Ul=/(\r?\n|^) *\* ?/g,En$1=[];function Sn$1(Ra){let qa=Ra.match(kn$1);return qa?qa[0].trimStart():""}function Tn$2(Ra){let qa=Ra.match(kn$1),ed=qa==null?void 0:qa[0];return ed==null?Ra:Ra.slice(ed.length)}function On$1(Ra){let qa=`
`;Ra=_$3(!1,Ra.replace(Dl,"").replace(Ll$1,""),Ul,"$1");let ed="";for(;ed!==Ra;)ed=Ra,Ra=_$3(!1,Ra,Bl,`${qa}$1 $2${qa}`);Ra=Ra.replace(xn$1,"").trimEnd();let td=Object.create(null),rd=_$3(!1,Ra,bn$2,"").replace(xn$1,"").trimEnd(),sd;for(;sd=bn$2.exec(Ra);){let od=_$3(!1,sd[2],Ml,"");if(typeof td[sd[1]]=="string"||Array.isArray(td[sd[1]])){let ld=td[sd[1]];td[sd[1]]=[...En$1,...Array.isArray(ld)?ld:[ld],od]}else td[sd[1]]=od}return{comments:rd,pragmas:td}}function Cn$2({comments:Ra="",pragmas:qa={}}){let ed=`
`,td="/**",rd=" *",sd=" */",od=Object.keys(qa),ld=od.flatMap(cd=>_n$2(cd,qa[cd])).map(cd=>`${rd} ${cd}${ed}`).join("");if(!Ra){if(od.length===0)return"";if(od.length===1&&!Array.isArray(qa[od[0]])){let cd=qa[od[0]];return`${td} ${_n$2(od[0],cd)[0]}${sd}`}}let ud=Ra.split(ed).map(cd=>`${rd} ${cd}`).join(ed)+ed;return td+ed+(Ra?ud:"")+(Ra&&od.length>0?rd+ed:"")+ld+sd}function _n$2(Ra,qa){return[...En$1,...Array.isArray(qa)?qa:[qa]].map(ed=>`@${Ra} ${ed}`.trim())}function Fl$1(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var An$1=Fl$1;function Nn$1(Ra){let qa=An$1(Ra);qa&&(Ra=Ra.slice(qa.length+1));let ed=Sn$1(Ra),{pragmas:td,comments:rd}=On$1(ed);return{shebang:qa,text:Ra,pragmas:td,comments:rd}}function Pn$2(Ra){let{pragmas:qa}=Nn$1(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function Rn(Ra){let{shebang:qa,text:ed,pragmas:td,comments:rd}=Nn$1(Ra),sd=Tn$2(ed),od=Cn$2({pragmas:{format:"",...td},comments:rd.trimStart()});return(qa?`${qa}
`:"")+od+(sd.startsWith(`
`)?`
`:`
`)+sd}var Qe$1=3;function $l(Ra){let qa=Ra.slice(0,Qe$1);if(qa!=="---"&&qa!=="+++")return;let ed=Ra.indexOf(`
`,Qe$1);if(ed===-1)return;let td=Ra.slice(Qe$1,ed).trim(),rd=Ra.indexOf(`
${qa}`,ed),sd=td;if(sd||(sd=qa==="+++"?"toml":"yaml"),rd===-1&&qa==="---"&&sd==="yaml"&&(rd=Ra.indexOf(`
...`,ed)),rd===-1)return;let od=rd+1+Qe$1,ld=Ra.charAt(od+1);if(!/\s?/u.test(ld))return;let ud=Ra.slice(0,od);return{type:"front-matter",language:sd,explicitLanguage:td,value:Ra.slice(ed+1,rd),startDelimiter:qa,endDelimiter:ud.slice(-Qe$1),raw:ud}}function Wl(Ra){let qa=$l(Ra);if(!qa)return{content:Ra};let{raw:ed}=qa;return{frontMatter:qa,content:_$3(!1,ed,/[^\n]/gu," ")+Ra.slice(ed.length)}}var Je$2=Wl;function In(Ra){return Pn$2(Je$2(Ra).content)}function qn$2(Ra){let{frontMatter:qa,content:ed}=Je$2(Ra);return(qa?qa.raw+`
`:"")+Rn(ed)}var Yl=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Ln(Ra){var qa,ed;return(ed=(qa=Ra.findAncestor(td=>td.type==="css-decl"))==null?void 0:qa.prop)==null?void 0:ed.toLowerCase()}var zl$1=new Set(["initial","inherit","unset","revert"]);function Dn$2(Ra){return zl$1.has(Ra.toLowerCase())}function Mn(Ra,qa){var ed;let td=Ra.findAncestor(rd=>rd.type==="css-atrule");return((ed=td==null?void 0:td.name)==null?void 0:ed.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(qa.toLowerCase())}function te$1(Ra){return Ra.includes("$")||Ra.includes("@")||Ra.includes("#")||Ra.startsWith("%")||Ra.startsWith("--")||Ra.startsWith(":--")||Ra.includes("(")&&Ra.includes(")")?Ra:Ra.toLowerCase()}function ke$2(Ra,qa){var ed;let td=Ra.findAncestor(rd=>rd.type==="value-func");return((ed=td==null?void 0:td.value)==null?void 0:ed.toLowerCase())===qa}function Bn$2(Ra){var qa;let ed=Ra.findAncestor(rd=>rd.type==="css-rule"),td=(qa=ed==null?void 0:ed.raws)==null?void 0:qa.selector;return td&&(td.startsWith(":import")||td.startsWith(":export"))}function Ee$1(Ra,qa){let ed=Array.isArray(qa)?qa:[qa],td=Ra.findAncestor(rd=>rd.type==="css-atrule");return td&&ed.includes(td.name.toLowerCase())}function Un$1(Ra){var qa;let{node:ed}=Ra;return ed.groups[0].value==="url"&&ed.groups.length===2&&((qa=Ra.findAncestor(td=>td.type==="css-atrule"))==null?void 0:qa.name)==="import"}function Fn$1(Ra){return Ra.type==="value-func"&&Ra.value.toLowerCase()==="url"}function $n$2(Ra){return Ra.type==="value-func"&&Ra.value.toLowerCase()==="var"}function Wn(Ra){let{selector:qa}=Ra;return qa?typeof qa=="string"&&/^@.+:.*$/u.test(qa)||qa.value&&/^@.+:.*$/u.test(qa.value):!1}function Yn$1(Ra){return Ra.type==="value-word"&&["from","through","end"].includes(Ra.value)}function zn$1(Ra){return Ra.type==="value-word"&&["and","or","not"].includes(Ra.value)}function Vn$1(Ra){return Ra.type==="value-word"&&Ra.value==="in"}function At$2(Ra){return Ra.type==="value-operator"&&Ra.value==="*"}function Xe$1(Ra){return Ra.type==="value-operator"&&Ra.value==="/"}function Q$3(Ra){return Ra.type==="value-operator"&&Ra.value==="+"}function le$1(Ra){return Ra.type==="value-operator"&&Ra.value==="-"}function Vl(Ra){return Ra.type==="value-operator"&&Ra.value==="%"}function Nt$1(Ra){return At$2(Ra)||Xe$1(Ra)||Q$3(Ra)||le$1(Ra)||Vl(Ra)}function Gn$2(Ra){return Ra.type==="value-word"&&["==","!="].includes(Ra.value)}function jn$1(Ra){return Ra.type==="value-word"&&["<",">","<=",">="].includes(Ra.value)}function Ze$1(Ra,qa){return qa.parser==="scss"&&Ra.type==="css-atrule"&&["if","else","for","each","while"].includes(Ra.name)}function Hr$1(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.params)&&/^\(\s*\)$/u.test(Ra.raws.params)}function Pt$1(Ra){return Ra.name.startsWith("prettier-placeholder")}function Hn(Ra){return Ra.prop.startsWith("@prettier-placeholder")}function Kn$1(Ra,qa){return Ra.value==="$$"&&Ra.type==="value-func"&&(qa==null?void 0:qa.type)==="value-word"&&!qa.raws.before}function Qn$2(Ra){var qa,ed;return((qa=Ra.value)==null?void 0:qa.type)==="value-root"&&((ed=Ra.value.group)==null?void 0:ed.type)==="value-value"&&Ra.prop.toLowerCase()==="composes"}function Jn$2(Ra){var qa,ed,td;return((td=(ed=(qa=Ra.value)==null?void 0:qa.group)==null?void 0:ed.group)==null?void 0:td.type)==="value-paren_group"&&Ra.value.group.group.open!==null&&Ra.value.group.group.close!==null}function ce$1(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.before)===""}function Rt$2(Ra){var qa,ed;return Ra.type==="value-comma_group"&&((ed=(qa=Ra.groups)==null?void 0:qa[1])==null?void 0:ed.type)==="value-colon"}function jr$1(Ra){var qa;return Ra.type==="value-paren_group"&&((qa=Ra.groups)==null?void 0:qa[0])&&Rt$2(Ra.groups[0])}function Kr$1(Ra,qa){var ed;if(qa.parser!=="scss")return!1;let{node:td}=Ra;if(td.groups.length===0)return!1;let rd=Ra.grandparent;if(!jr$1(td)&&!(rd&&jr$1(rd)))return!1;let sd=Ra.findAncestor(od=>od.type==="css-decl");
`)return qa-2;if(rd===`
`||rd==="\r"||rd==="\u2028"||rd==="\u2029")return qa-1}else{if(rd==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(rd===`
`||rd==="\r"||rd==="\u2028"||rd==="\u2029")return qa+1}return qa}var Dt$2=Xl$1;function Zl$1(Ra,qa,ed={}){let td=Ot$2(Ra,ed.backwards?qa-1:qa,ed),rd=Dt$2(Ra,td,ed);return td!==rd}var Mt$1=Zl$1;function ec(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let ed=qa+2;ed<Ra.length;++ed)if(Ra.charAt(ed)==="*"&&Ra.charAt(ed+1)==="/")return ed+2}return qa}var ui$1=ec;function tc(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?Ct$1(Ra,qa):qa}var li$2=tc;function rc(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=yn$1(Ra,td),td=ui$1(Ra,td),td=Ot$2(Ra,td);return td=li$2(Ra,td),td=Dt$2(Ra,td),td!==!1&&Mt$1(Ra,td)}var Bt$2=rc;function sc({node:Ra,parent:qa},ed){return!!(Ra.source&&ed.originalText.slice(N$2(Ra),N$2(qa.close)).trimEnd().endsWith(","))}function nc$1(Ra,qa){return $n$2(Ra.grandparent)&&sc(Ra,qa)?",":Ra.node.type!=="value-comment"&&!(Ra.node.type==="value-comma_group"&&Ra.node.groups.every(ed=>ed.type==="value-comment"))&&ai$2(qa)&&Ra.callParent(()=>Kr$1(Ra,qa))?kt$2(","):""}function ci$1(Ra,qa,ed){let{node:td,parent:rd}=Ra,sd=Ra.map(({node:Ad})=>typeof Ad=="string"?Ad:ed(),"groups");if(rd&&Fn$1(rd)&&(td.groups.length===1||td.groups.length>0&&td.groups[0].type==="value-comma_group"&&td.groups[0].groups.length>0&&td.groups[0].groups[0].type==="value-word"&&td.groups[0].groups[0].value.startsWith("data:")))return[td.open?ed("open"):"",V$2(",",sd),td.close?ed("close"):""];if(!td.open){let Ad=es(Ra),Td=V$2([",",Ad?E$1:A$1],sd);return q$2(Ad?[E$1,Td]:L$2(Ge$1(Td)))}let od=Ra.map(({node:Ad,isLast:Td,index:Id})=>{var Bd;let Rd=sd[Id];if(Rt$2(Ad)&&Ad.type==="value-comma_group"&&Ad.groups&&Ad.groups[0].type!=="value-paren_group"&&((Bd=Ad.groups[2])==null?void 0:Bd.type)==="value-paren_group"){let{parts:Md}=Rd.contents.contents;Md[1]=L$2(Md[1]),Rd=L$2(ue$1(Rd))}let Od=[Rd,Td?nc$1(Ra,qa):","];if(!Td&&Ad.type==="value-comma_group"&&ee$1(Ad.groups)){let Md=G$2(!1,Ad.groups,-1);!Md.source&&Md.close&&(Md=Md.close),Md.source&&Bt$2(qa.originalText,P$2(Md))&&Od.push(E$1)}return Od},"groups"),ld=Xn$2(td,rd),ud=ti$2(td,rd),cd=Kr$1(Ra,qa),dd=ud||cd&&!ld,_d=ud||ld,Ed=L$2([td.open?ed("open"):"",q$2([M$2,V$2(A$1,od)]),M$2,td.close?ed("close"):""],{shouldBreak:dd});return _d?ue$1(Ed):Ed}function es(Ra){return Ra.match(qa=>qa.type==="value-paren_group"&&!qa.open&&qa.groups.some(ed=>ed.type==="value-comma_group"),(qa,ed)=>ed==="group"&&qa.type==="value-value",(qa,ed)=>ed==="group"&&qa.type==="value-root",(qa,ed)=>ed==="value"&&(qa.type==="css-decl"&&!qa.prop.startsWith("--")||qa.type==="css-atrule"&&qa.variable))}function ic(Ra,qa,ed){let td=[];return Ra.each(()=>{let{node:rd,previous:sd}=Ra;if((sd==null?void 0:sd.type)==="css-comment"&&sd.text.trim()==="prettier-ignore"?td.push(qa.originalText.slice(N$2(rd),P$2(rd))):td.push(ed()),Ra.isLast)return;let{next:od}=Ra;od.type==="css-comment"&&!Mt$1(qa.originalText,N$2(od),{backwards:!0})&&!_e$1(rd)||od.type==="css-atrule"&&od.name==="else"&&rd.type!=="css-comment"?td.push(" "):(td.push(qa.__isHTMLStyleAttribute?A$1:E$1),Bt$2(qa.originalText,P$2(rd))&&!_e$1(rd)&&td.push(E$1))},"nodes"),td}var Te$1=ic;function oc$1(Ra,qa,ed){var td,rd,sd,od,ld,ud;let{node:cd}=Ra;switch(cd.type){case"front-matter":return[cd.raw,E$1];case"css-root":{let dd=Te$1(Ra,qa,ed),_d=cd.raws.after.trim();return _d.startsWith(";")&&(_d=_d.slice(1).trim()),[cd.frontMatter?[ed("frontMatter"),E$1]:"",dd,_d?` ${_d}`:"",cd.nodes.length>0?E$1:""]}case"css-comment":{let dd=cd.inline||cd.raws.inline,_d=qa.originalText.slice(N$2(cd),P$2(cd));return dd?_d.trimEnd():_d}case"css-rule":return[ed("selector"),cd.important?" !important":"",cd.nodes?[((td=cd.selector)==null?void 0:td.type)==="selector-unknown"&&Se$1(cd.selector.value)?A$1:cd.selector?" ":"","{",cd.nodes.length>0?q$2([E$1,Te$1(Ra,qa,ed)]):"",E$1,"}",Wn(cd)?";":""]:";"];case"css-decl":{let dd=Ra.parent,{between:_d}=cd.raws,Ed=_d.trim(),Ad=Ed===":",Td=typeof cd.value=="string"&&/^ *$/u.test(cd.value),Id=typeof cd.value=="string"?cd.value:ed("value");return Id=Qn$2(cd)?rn$1(Id):Id,!Ad&&Se$1(Ed)&&!((sd=(rd=cd.value)==null?void 0:rd.group
`,Fd(Ld.gutter,_f.replace(/\d/g," "))," ",Jf,Fd(Ld.marker,"^").repeat(Gf)].join(""),kf&&Rd.message&&(zf+=" "+Fd(Ld.message,Rd.message))}return[Fd(Ld.marker,">"),Fd(Ld.gutter,_f),mf.length>0?` ${mf}`:"",zf].join("")}else return` ${Fd(Ld.gutter,_f)}${mf.length>0?` ${mf}`:""}`}).join(`
`);return Rd.message&&!Kd&&(df=`${" ".repeat(Xd+1)}${Rd.message}
${df}`),Od?Md.reset(df):df}function Td(Id,Bd,Rd,Od={}){if(!cd){cd=!0;let Md="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let Ld=new Error(Md);Ld.name="DeprecationWarning",console.warn(new Error(Md))}}return Rd=Math.max(Rd,0),Ad(Id,{start:{column:Rd,line:Bd}},Od)}}),ir={};We(ir,{__debug:()=>di,check:()=>fi,doc:()=>nr,format:()=>gu$1,formatWithCursor:()=>Cu,getSupportInfo:()=>pi$3,util:()=>or,version:()=>fu});var Ou=(Ra,qa,ed,td)=>{if(!(Ra&&qa==null))return qa.replaceAll?qa.replaceAll(ed,td):ed.global?qa.replace(ed,td):qa.split(ed).join(td)},ne$1=Ou;function Z$1(){}Z$1.prototype={diff:function(Ra,qa){var ed,td=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},rd=td.callback;typeof td=="function"&&(rd=td,td={}),this.options=td;var sd=this;function od(Md){return rd?(setTimeout(function(){rd(void 0,Md)},0),!0):Md}Ra=this.castInput(Ra),qa=this.castInput(qa),Ra=this.removeEmpty(this.tokenize(Ra)),qa=this.removeEmpty(this.tokenize(qa));var ld=qa.length,ud=Ra.length,cd=1,dd=ld+ud;td.maxEditLength&&(dd=Math.min(dd,td.maxEditLength));var _d=(ed=td.timeout)!==null&&ed!==void 0?ed:1/0,Ed=Date.now()+_d,Ad=[{oldPos:-1,lastComponent:void 0}],Td=this.extractCommon(Ad[0],qa,Ra,0);if(Ad[0].oldPos+1>=ud&&Td+1>=ld)return od([{value:this.join(qa),count:qa.length}]);var Id=-1/0,Bd=1/0;function Rd(){for(var Md=Math.max(Id,-cd);Md<=Math.min(Bd,cd);Md+=2){var Ld=void 0,Fd=Ad[Md-1],jd=Ad[Md+1];Fd&&(Ad[Md-1]=void 0);var Vd=!1;if(jd){var Qd=jd.oldPos-Md;Vd=jd&&0<=Qd&&Qd<ld}var qd=Fd&&Fd.oldPos+1<ud;if(!Vd&&!qd){Ad[Md]=void 0;continue}if(!qd||Vd&&Fd.oldPos+1<jd.oldPos?Ld=sd.addToPath(jd,!0,void 0,0):Ld=sd.addToPath(Fd,void 0,!0,1),Td=sd.extractCommon(Ld,qa,Ra,Md),Ld.oldPos+1>=ud&&Td+1>=ld)return od(Su(sd,Ld.lastComponent,qa,Ra,sd.useLongestToken));Ad[Md]=Ld,Ld.oldPos+1>=ud&&(Bd=Math.min(Bd,Md-1)),Td+1>=ld&&(Id=Math.max(Id,Md+1))}cd++}if(rd)(function Md(){setTimeout(function(){if(cd>dd||Date.now()>Ed)return rd();Rd()||Md()},0)})();else for(;cd<=dd&&Date.now()<=Ed;){var Od=Rd();if(Od)return Od}},addToPath:function(Ra,qa,ed,td){var rd=Ra.lastComponent;return rd&&rd.added===qa&&rd.removed===ed?{oldPos:Ra.oldPos+td,lastComponent:{count:rd.count+1,added:qa,removed:ed,previousComponent:rd.previousComponent}}:{oldPos:Ra.oldPos+td,lastComponent:{count:1,added:qa,removed:ed,previousComponent:rd}}},extractCommon:function(Ra,qa,ed,td){for(var rd=qa.length,sd=ed.length,od=Ra.oldPos,ld=od-td,ud=0;ld+1<rd&&od+1<sd&&this.equals(qa[ld+1],ed[od+1]);)ld++,od++,ud++;return ud&&(Ra.lastComponent={count:ud,previousComponent:Ra.lastComponent}),Ra.oldPos=od,ld},equals:function(Ra,qa){return this.options.comparator?this.options.comparator(Ra,qa):Ra===qa||this.options.ignoreCase&&Ra.toLowerCase()===qa.toLowerCase()},removeEmpty:function(Ra){for(var qa=[],ed=0;ed<Ra.length;ed++)Ra[ed]&&qa.push(Ra[ed]);return qa},castInput:function(Ra){return Ra},tokenize:function(Ra){return Ra.split("")},join:function(Ra){return Ra.join("")}};function Su(Ra,qa,ed,td,rd){for(var sd=[],od;qa;)sd.push(qa),od=qa.previousComponent,delete qa.previousComponent,qa=od;sd.reverse();for(var ld=0,ud=sd.length,cd=0,dd=0;ld<ud;ld++){var _d=sd[ld];if(_d.removed){if(_d.value=Ra.join(td.slice(dd,dd+_d.count)),dd+=_d.count,ld&&sd[ld-1].added){var Ed=sd[ld-1];sd[ld-1]=sd[ld],sd[ld]=Ed}}else{if(!_d.added&&rd){var Ad=ed.slice(cd,cd+_d.count);Ad=Ad.map(function(Id,Bd){var Rd=td[dd+Bd];return Rd.length>Id.length?Rd:Id}),_d.value=Ra.join(Ad)}else _d.value=Ra.join(ed.slice(cd,cd+_d.count));cd+=_d.count,_d.added||(dd+=_d.count)}}var Td=sd[ud-1];return ud>1&&typeof Td.value=="string"&&(Td.added||Td.removed)&&Ra.equals("",Td.value)&&(sd[ud-2].value+=Td.value,sd.pop()),sd}var lr=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,cr=/\S/,fr=new Z$1;fr.equals=function(Ra,qa){return this.options.ignoreCase&&(Ra=Ra.toLowerCase(),qa=qa.toLowerCase()),Ra===qa||this.options.ignoreWhitespace&&!cr.test(Ra)&&!cr.test(qa)};fr.tokenize=function(Ra){for(var qa=Ra.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),ed=0;ed<qa.length-1;ed++)!qa[ed+1]&&qa[ed+2]&&lr.test
`));var qa=[],ed=Ra.split(/(\n|\r\n)/);ed[ed.length-1]||ed.pop();for(var td=0;td<ed.length;td++){var rd=ed[td];td%2&&!this.options.newlineIsToken?qa[qa.length-1]+=rd:(this.options.ignoreWhitespace&&(rd=rd.trim()),qa.push(rd))}return qa};var Nu=new Z$1;Nu.tokenize=function(Ra){return Ra.split(/(\S.+?[.!?])(?=\s+|$)/)};var Tu=new Z$1;Tu.tokenize=function(Ra){return Ra.split(/([{}:;,]|\s+)/)};function $e$1(Ra){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$e$1=function(qa){return typeof qa}:$e$1=function(qa){return qa&&typeof Symbol=="function"&&qa.constructor===Symbol&&qa!==Symbol.prototype?"symbol":typeof qa},$e$1(Ra)}var ku=Object.prototype.toString,Ae=new Z$1;Ae.useLongestToken=!0;Ae.tokenize=pr.tokenize;Ae.castInput=function(Ra){var qa=this.options,ed=qa.undefinedReplacement,td=qa.stringifyReplacer,rd=td===void 0?function(sd,od){return typeof od>"u"?ed:od}:td;return typeof Ra=="string"?Ra:JSON.stringify(Bt$1(Ra,null,null,rd),rd," ")};Ae.equals=function(Ra,qa){return Z$1.prototype.equals.call(Ae,Ra.replace(/,([\r\n])/g,"$1"),qa.replace(/,([\r\n])/g,"$1"))};function Bt$1(Ra,qa,ed,td,rd){qa=qa||[],ed=ed||[],td&&(Ra=td(rd,Ra));var sd;for(sd=0;sd<qa.length;sd+=1)if(qa[sd]===Ra)return ed[sd];var od;if(ku.call(Ra)==="[object Array]"){for(qa.push(Ra),od=new Array(Ra.length),ed.push(od),sd=0;sd<Ra.length;sd+=1)od[sd]=Bt$1(Ra[sd],qa,ed,td,rd);return qa.pop(),ed.pop(),od}if(Ra&&Ra.toJSON&&(Ra=Ra.toJSON()),$e$1(Ra)==="object"&&Ra!==null){qa.push(Ra),od={},ed.push(od);var ld=[],ud;for(ud in Ra)Ra.hasOwnProperty(ud)&&ld.push(ud);for(ld.sort(),sd=0;sd<ld.length;sd+=1)ud=ld[sd],od[ud]=Bt$1(Ra[ud],qa,ed,td,ud);qa.pop(),ed.pop()}else od=Ra;return od}var Ve=new Z$1;Ve.tokenize=function(Ra){return Ra.slice()};Ve.join=Ve.removeEmpty=function(Ra){return Ra};function dr(Ra,qa,ed){return Ve.diff(Ra,qa,ed)}function Fr(Ra){let qa=Ra.indexOf("\r");return qa>=0?Ra.charAt(qa+1)===`
`?"crlf":"cr":"lf"}function Be(Ra){switch(Ra){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function wt(Ra,qa){let ed;switch(qa){case`
`:ed=/\n/gu;break;case"\r":ed=/\r/gu;break;case`\r
`:ed=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(qa)}.`)}let td=Ra.match(ed);return td?td.length:0}function mr(Ra){return ne$1(!1,Ra,/\r\n?/gu,`
`)}var U$1="string",W$1="array",z$1="cursor",L$1="indent",P$1="align",I$1="trim",x$2="group",S$1="fill",_$2="if-break",R$2="indent-if-break",Y$1="line-suffix",j$1="line-suffix-boundary",B$1="line",N$1="label",b$1="break-parent",Ue=new Set([z$1,L$1,P$1,I$1,x$2,S$1,_$2,R$2,Y$1,j$1,B$1,N$1,b$1]);function Lu(Ra){if(typeof Ra=="string")return U$1;if(Array.isArray(Ra))return W$1;if(!Ra)return;let{type:qa}=Ra;if(Ue.has(qa))return qa}var G$1=Lu,Pu=Ra=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Ra);function Iu(Ra){let qa=Ra===null?"null":typeof Ra;if(qa!=="string"&&qa!=="object")return`Unexpected doc '${qa}',
Expected it to be 'string' or 'object'.`;if(G$1(Ra))throw new Error("doc is valid.");let ed=Object.prototype.toString.call(Ra);if(ed!=="[object Object]")return`Unexpected doc '${ed}'.`;let td=Pu([...Ue].map(rd=>`'${rd}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${td}.`}var xt=class extends Error{constructor(qa){super(Iu(qa));Ym(this,"name","InvalidDocError");this.doc=qa}},Q$2=xt,Er={};function Ru(Ra,qa,ed,td){let rd=[Ra];for(;rd.length>0;){let sd=rd.pop();if(sd===Er){ed(rd.pop());continue}ed&&rd.push(sd,Er);let od=G$1(sd);if(!od)throw new Q$2(sd);if((qa==null?void 0:qa(sd))!==!1)switch(od){case W$1:case S$1:{let ld=od===W$1?sd:sd.parts;for(let ud=ld.length,cd=ud-1;cd>=0;--cd)rd.push(ld[cd]);break}case _$2:rd.push(sd.flatContents,sd.breakContents);break;case x$2:if(td&&sd.expandedStates)for(let ld=sd.expandedStates.length,ud=ld-1;ud>=0;--ud)rd.push(sd.expandedStates[ud]);else rd.push(sd.contents);break;case P$1:case L$1:case R$2:case N$1:case Y$1:rd.push(sd.contents);break;case U$1:case z$1:case I$1:case j$1:case B$1:case b$1:break;default:throw new Q$2(sd)}}}var we=Ru,hr$2=()=>{},ze=hr$2;function De(Ra){return{type:L$1,contents:Ra}}function ae(Ra,qa){return{type:P$1,contents:qa,n:Ra}}function _t(Ra,qa={}){return ze(qa.expandedStates),{type:x$2,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function Cr(Ra){return ae(Number.NEGATIVE_INFINITY,Ra)}function gr(Ra){return ae({type:"root"},Ra)}function yr(Ra){return ae(-1,Ra)}function Ar(Ra,qa){return _t(Ra[0],{...qa,expandedStates:Ra})}function Ge(Ra){return{type:S$1,parts:Ra}}function Br(Ra,qa="",ed={}){return{type:_$2,breakContents:Ra,flatContents:qa,groupId:ed.groupId}}function wr(Ra,qa){return{type:R$2,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function xe$1(Ra){return{type:Y$1,contents:Ra}}var xr={type:j$1},de={type:b$1},_r={type:I$1},_e={type:B$1,hard:!0},vt={type:B$1,hard:!0,literal:!0},Ke$1={type:B$1},vr={type:B$1,soft:!0},q$1=[_e,de],qe$1=[vt,de],ve={type:z$1};function be$1(Ra,qa){let ed=[];for(let td=0;td<qa.length;td++)td!==0&&ed.push(Ra),ed.push(qa[td]);return ed}function Je$1(Ra,qa,ed){let td=Ra;if(qa>0){for(let rd=0;rd<Math.floor(qa/ed);++rd)td=De(td);td=ae(qa%ed,td),td=ae(Number.NEGATIVE_INFINITY,td)}return td}function br$2(Ra,qa){return Ra?{type:N$1,label:Ra,contents:qa}:qa}function ee(Ra){var qa;if(!Ra)return"";if(Array.isArray(Ra)){let ed=[];for(let td of Ra)if(Array.isArray(td))ed.push(...ee(td));else{let rd=ee(td);rd!==""&&ed.push(rd)}return ed}return Ra.type===_$2?{...Ra,breakContents:ee(Ra.breakContents),flatContents:ee(Ra.flatContents)}:Ra.type===x$2?{...Ra,contents:ee(Ra.contents),expandedStates:(qa=Ra.expandedStates)==null?void 0:qa.map(ee)}:Ra.type===S$1?{type:"fill",parts:Ra.parts.map(ee)}:Ra.contents?{...Ra,contents:ee(Ra.contents)}:Ra}function Or(Ra){let qa=Object.create(null),ed=new Set;return td(ee(Ra));function td(sd,od,ld){var ud,cd;if(typeof sd=="string")return JSON.stringify(sd);if(Array.isArray(sd)){let dd=sd.map(td).filter(Boolean);return dd.length===1?dd[0]:`[${dd.join(", ")}]`}if(sd.type===B$1){let dd=((ud=ld==null?void 0:ld[od+1])==null?void 0:ud.type)===b$1;return sd.literal?dd?"literalline":"literallineWithoutBreakParent":sd.hard?dd?"hardline":"hardlineWithoutBreakParent":sd.soft?"softline":"line"}if(sd.type===b$1)return((cd=ld==null?void 0:ld[od-1])==null?void 0:cd.type)===B$1&&ld[od-1].hard?void 0:"breakParent";if(sd.type===I$1)return"trim";if(sd.type===L$1)return"indent("+td(sd.contents)+")";if(sd.type===P$1)return sd.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+td(sd.contents)+")":sd.n<0?"dedent("+td(sd.contents)+")":sd.n.type==="root"?"markAsRoot("+td(sd.contents)+")":"align("+JSON.stringify(sd.n)+", "+td(sd.contents)+")";if(sd.type===_$2)return"ifBreak("+td(sd.breakContents)+(sd.flatContents?", "+td(sd.flatContents):"")+(sd.groupId?(sd.flatContents?"":', ""')+`, { groupId: ${rd(sd.groupId)} }`:"")+")";if(sd.type===R$2){let dd=[];sd.negate&&dd.push("negate: true"),sd.groupId&&dd.push(`groupId: ${rd(sd.groupId)}`);let _d=dd.length>0?`, { ${dd.join(", ")} }`:"";return`indentIfBreak(${td(sd.contents)}${_d})`}if(sd.type===x$2){let dd=[];sd.break&&sd.break!=="propagated"&&dd.push("shouldBreak: true"),sd.id&&dd.push(`id: ${rd(sd.id)}`);let _d=dd.length>0?`, { ${dd.join(", ")} }`:"";return sd.expandedStates?`conditionalGroup([${sd.expanded
`)):ed)}function Uu(Ra){if(Ra.type===B$1)return!0}function Hr(Ra){return Xe(Ra,Uu,!1)}function Qe(Ra,qa){return Ra.type===N$1?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}var H$1=Symbol("MODE_BREAK"),J$1=Symbol("MODE_FLAT"),Te=Symbol("cursor");function Wr(){return{value:"",length:0,queue:[]}}function zu(Ra,qa){return bt$1(Ra,{type:"indent"},qa)}function Gu(Ra,qa,ed){return qa===Number.NEGATIVE_INFINITY?Ra.root||Wr():qa<0?bt$1(Ra,{type:"dedent"},ed):qa?qa.type==="root"?{...Ra,root:Ra}:bt$1(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},ed):Ra}function bt$1(Ra,qa,ed){let td=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],rd="",sd=0,od=0,ld=0;for(let Td of td)switch(Td.type){case"indent":dd(),ed.useTabs?ud(1):cd(ed.tabWidth);break;case"stringAlign":dd(),rd+=Td.n,sd+=Td.n.length;break;case"numberAlign":od+=1,ld+=Td.n;break;default:throw new Error(`Unexpected type '${Td.type}'`)}return Ed(),{...Ra,value:rd,length:sd,queue:td};function ud(Td){rd+=" ".repeat(Td),sd+=ed.tabWidth*Td}function cd(Td){rd+=" ".repeat(Td),sd+=Td}function dd(){ed.useTabs?_d():Ed()}function _d(){od>0&&ud(od),Ad()}function Ed(){ld>0&&cd(ld),Ad()}function Ad(){od=0,ld=0}}function Ot$1(Ra){let qa=0,ed=0,td=Ra.length;e:for(;td--;){let rd=Ra[td];if(rd===Te){ed++;continue}for(let sd=rd.length-1;sd>=0;sd--){let od=rd[sd];if(od===" "||od===" ")qa++;else{Ra[td]=rd.slice(0,sd+1);break e}}}if(qa>0||ed>0)for(Ra.length=td+1;ed-- >0;)Ra.push(Te);return qa}function et$2(Ra,qa,ed,td,rd,sd){if(ed===Number.POSITIVE_INFINITY)return!0;let od=qa.length,ld=[Ra],ud=[];for(;ed>=0;){if(ld.length===0){if(od===0)return!0;ld.push(qa[--od]);continue}let{mode:cd,doc:dd}=ld.pop(),_d=G$1(dd);switch(_d){case U$1:ud.push(dd),ed-=Oe(dd);break;case W$1:case S$1:{let Ed=_d===W$1?dd:dd.parts;for(let Ad=Ed.length-1;Ad>=0;Ad--)ld.push({mode:cd,doc:Ed[Ad]});break}case L$1:case P$1:case R$2:case N$1:ld.push({mode:cd,doc:dd.contents});break;case I$1:ed+=Ot$1(ud);break;case x$2:{if(sd&&dd.break)return!1;let Ed=dd.break?H$1:cd,Ad=dd.expandedStates&&Ed===H$1?y$2(!1,dd.expandedStates,-1):dd.contents;ld.push({mode:Ed,doc:Ad});break}case _$2:{let Ed=(dd.groupId?rd[dd.groupId]||J$1:cd)===H$1?dd.breakContents:dd.flatContents;Ed&&ld.push({mode:cd,doc:Ed});break}case B$1:if(cd===H$1||dd.hard)return!0;dd.soft||(ud.push(" "),ed--);break;case Y$1:td=!0;break;case j$1:if(td)return!1;break}}return!1}function Fe(Ra,qa){let ed={},td=qa.printWidth,rd=Be(qa.endOfLine),sd=0,od=[{ind:Wr(),mode:H$1,doc:Ra}],ld=[],ud=!1,cd=[],dd=0;for(Rr(Ra);od.length>0;){let{ind:Ed,mode:Ad,doc:Td}=od.pop();switch(G$1(Td)){case U$1:{let Id=rd!==`
`?ne$1(!1,Td,`
`,rd):Td;ld.push(Id),od.length>0&&(sd+=Oe(Id));break}case W$1:for(let Id=Td.length-1;Id>=0;Id--)od.push({ind:Ed,mode:Ad,doc:Td[Id]});break;case z$1:if(dd>=2)throw new Error("There are too many 'cursor' in doc.");ld.push(Te),dd++;break;case L$1:od.push({ind:zu(Ed,qa),mode:Ad,doc:Td.contents});break;case P$1:od.push({ind:Gu(Ed,Td.n,qa),mode:Ad,doc:Td.contents});break;case I$1:sd-=Ot$1(ld);break;case x$2:switch(Ad){case J$1:if(!ud){od.push({ind:Ed,mode:Td.break?H$1:J$1,doc:Td.contents});break}case H$1:{ud=!1;let Id={ind:Ed,mode:J$1,doc:Td.contents},Bd=td-sd,Rd=cd.length>0;if(!Td.break&&et$2(Id,od,Bd,Rd,ed))od.push(Id);else if(Td.expandedStates){let Od=y$2(!1,Td.expandedStates,-1);if(Td.break){od.push({ind:Ed,mode:H$1,doc:Od});break}else for(let Md=1;Md<Td.expandedStates.length+1;Md++)if(Md>=Td.expandedStates.length){od.push({ind:Ed,mode:H$1,doc:Od});break}else{let Ld=Td.expandedStates[Md],Fd={ind:Ed,mode:J$1,doc:Ld};if(et$2(Fd,od,Bd,Rd,ed)){od.push(Fd);break}}}else od.push({ind:Ed,mode:H$1,doc:Td.contents});break}}Td.id&&(ed[Td.id]=y$2(!1,od,-1).mode);break;case S$1:{let Id=td-sd,{parts:Bd}=Td;if(Bd.length===0)break;let[Rd,Od]=Bd,Md={ind:Ed,mode:J$1,doc:Rd},Ld={ind:Ed,mode:H$1,doc:Rd},Fd=et$2(Md,[],Id,cd.length>0,ed,!0);if(Bd.length===1){Fd?od.push(Md):od.push(Ld);break}let jd={ind:Ed,mode:J$1,doc:Od},Vd={ind:Ed,mode:H$1,doc:Od};if(Bd.length===2){Fd?od.push(jd,Md):od.push(Vd,Ld);break}Bd.splice(0,2);let Qd={ind:Ed,mode:Ad,doc:Ge(Bd)},qd=Bd[0];et$2({ind:Ed,mode:J$1,doc:[Rd,Od,qd]},[],Id,cd.length>0,ed,!0)?od.push(Qd,jd,Md):Fd?od.push(Qd,Vd,Md):od.push(Qd,Vd,Ld);break}case _$2:case R$2:{let Id=Td.groupId?ed[Td.groupId]:Ad;if(Id===H$1){let Bd=Td.type===_$2?Td.breakContents:Td.negate?Td.contents:De(Td.contents);Bd&&od.push({ind:Ed,mode:Ad,doc:Bd})}if(Id===J$1){let Bd=Td.type===_$2?Td.flatContents:Td.negate?De(Td.contents):Td.contents;Bd&&od.push({ind:Ed,mode:Ad,doc:Bd})}break}case Y$1:cd.push({ind:Ed,mode:Ad,doc:Td.contents});break;case j$1:cd.length>0&&od.push({ind:Ed,mode:Ad,doc:_e});break;case B$1:switch(Ad){case J$1:if(Td.hard)ud=!0;else{Td.soft||(ld.push(" "),sd+=1);break}case H$1:if(cd.length>0){od.push({ind:Ed,mode:Ad,doc:Td},...cd.reverse()),cd.length=0;break}Td.literal?Ed.root?(ld.push(rd,Ed.root.value),sd=Ed.root.length):(ld.push(rd),sd=0):(sd-=Ot$1(ld),ld.push(rd+Ed.value),sd=Ed.length);break}break;case N$1:od.push({ind:Ed,mode:Ad,doc:Td.contents});break;case b$1:break;default:throw new Q$2(Td)}od.length===0&&cd.length>0&&(od.push(...cd.reverse()),cd.length=0)}let _d=ld.indexOf(Te);if(_d!==-1){let Ed=ld.indexOf(Te,_d+1),Ad=ld.slice(0,_d).join(""),Td=ld.slice(_d+1,Ed).join(""),Id=ld.slice(Ed+1).join("");return{formatted:Ad+Td+Id,cursorNodeStart:Ad.length,cursorNodeText:Td}}return{formatted:ld.join("")}}function Ku(Ra,qa,ed=0){let td=0;for(let rd=ed;rd<Ra.length;++rd)Ra[rd]===" "?td=td+qa-td%qa:td++;return td}var me=Ku,te,Nt,tt$1,St=class{constructor(Ra){Dr(this,te),this.stack=[Ra]}get key(){let{stack:Ra,siblings:qa}=this;return y$2(!1,Ra,qa===null?-2:-4)??null}get index(){return this.siblings===null?null:y$2(!1,this.stack,-2)}get node(){return y$2(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:Ra}=this,qa=y$2(!1,Ra,-3);return Array.isArray(qa)?qa:null}get next(){let{siblings:Ra}=this;return Ra===null?null:Ra[this.index+1]}get previous(){let{siblings:Ra}=this;return Ra===null?null:Ra[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:Ra,index:qa}=this;return Ra!==null&&qa===Ra.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...pe(this,te,tt$1).call(this)]}getName(){let{stack:Ra}=this,{length:qa}=Ra;return qa>1?y$2(!1,Ra,-2):null}getValue(){return y$2(!1,this.stack,-1)}getNode(Ra=0){let qa=pe(this,te,Nt).call(this,Ra);return qa===-1?null:this.stack[qa]}getParentNode(Ra=0){return this.getNode(Ra+1)}call(Ra,...qa){let{stack:ed}=this,{length:td}=ed,rd=y$2(!1,ed,-1);for(let sd of qa)rd=rd[sd],ed.push(sd,rd);try{return Ra(this)
`)return qa-2;if(rd===`
`||rd==="\r"||rd==="\u2028"||rd==="\u2029")return qa-1}else{if(rd==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(rd===`
`||rd==="\r"||rd==="\u2028"||rd==="\u2029")return qa+1}return qa}var M$1=Ju$1;function Xu$1(Ra,qa,ed={}){let td=T$2(Ra,ed.backwards?qa-1:qa,ed),rd=M$1(Ra,td,ed);return td!==rd}var V$1=Xu$1;function Zu$1(Ra){return Array.isArray(Ra)&&Ra.length>0}var kt$1=Zu$1,Gr=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Qu=Ra=>Object.keys(Ra).filter(qa=>!Gr.has(qa));function eo(Ra){return Ra?qa=>Ra(qa,Gr):Qu}var X$2=eo;function to(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",ed=String(Ra.name||Ra.id&&(typeof Ra.id=="object"?Ra.id.name:Ra.id)||Ra.key&&(typeof Ra.key=="object"?Ra.key.name:Ra.key)||Ra.value&&(typeof Ra.value=="object"?"":String(Ra.value))||Ra.operator||"");return ed.length>20&&(ed=ed.slice(0,19)+"…"),qa+(ed?" "+ed:"")}function Lt(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=to(Ra)}function ue(Ra,qa){qa.leading=!0,qa.trailing=!1,Lt(Ra,qa)}function re(Ra,qa,ed){qa.leading=!1,qa.trailing=!1,ed&&(qa.marker=ed),Lt(Ra,qa)}function oe(Ra,qa){qa.leading=!1,qa.trailing=!0,Lt(Ra,qa)}var Pt=new WeakMap;function ut(Ra,qa){if(Pt.has(Ra))return Pt.get(Ra);let{printer:{getCommentChildNodes:ed,canAttachComment:td,getVisitorKeys:rd},locStart:sd,locEnd:od}=qa;if(!td)return[];let ld=((ed==null?void 0:ed(Ra,qa))??[...Tt$1(Ra,{getVisitorKeys:X$2(rd)})]).flatMap(ud=>td(ud)?[ud]:ut(ud,qa));return ld.sort((ud,cd)=>sd(ud)-sd(cd)||od(ud)-od(cd)),Pt.set(Ra,ld),ld}function qr(Ra,qa,ed,td){let{locStart:rd,locEnd:sd}=ed,od=rd(qa),ld=sd(qa),ud=ut(Ra,ed),cd,dd,_d=0,Ed=ud.length;for(;_d<Ed;){let Ad=_d+Ed>>1,Td=ud[Ad],Id=rd(Td),Bd=sd(Td);if(Id<=od&&ld<=Bd)return qr(Td,qa,ed,Td);if(Bd<=od){cd=Td,_d=Ad+1;continue}if(ld<=Id){dd=Td,Ed=Ad;continue}throw new Error("Comment location overlaps with node location")}if((td==null?void 0:td.type)==="TemplateLiteral"){let{quasis:Ad}=td,Td=Rt$1(Ad,qa,ed);cd&&Rt$1(Ad,cd,ed)!==Td&&(cd=null),dd&&Rt$1(Ad,dd,ed)!==Td&&(dd=null)}return{enclosingNode:td,precedingNode:cd,followingNode:dd}}var It$1=()=>!1;function Jr(Ra,qa){let{comments:ed}=Ra;if(delete Ra.comments,!kt$1(ed)||!qa.printer.canAttachComment)return;let td=[],{locStart:rd,locEnd:sd,printer:{experimentalFeatures:{avoidAstMutation:od=!1}={},handleComments:ld={}},originalText:ud}=qa,{ownLine:cd=It$1,endOfLine:dd=It$1,remaining:_d=It$1}=ld,Ed=ed.map((Ad,Td)=>({...qr(Ra,Ad,qa),comment:Ad,text:ud,options:qa,ast:Ra,isLastComment:ed.length-1===Td}));for(let[Ad,Td]of Ed.entries()){let{comment:Id,precedingNode:Bd,enclosingNode:Rd,followingNode:Od,text:Md,options:Ld,ast:Fd,isLastComment:jd}=Td;if(Ld.parser==="json"||Ld.parser==="json5"||Ld.parser==="jsonc"||Ld.parser==="__js_expression"||Ld.parser==="__ts_expression"||Ld.parser==="__vue_expression"||Ld.parser==="__vue_ts_expression"){if(rd(Id)-rd(Fd)<=0){ue(Fd,Id);continue}if(sd(Id)-sd(Fd)>=0){oe(Fd,Id);continue}}let Vd;if(od?Vd=[Td]:(Id.enclosingNode=Rd,Id.precedingNode=Bd,Id.followingNode=Od,Vd=[Id,Md,Ld,Fd,jd]),ro(Md,Ld,Ed,Ad))Id.placement="ownLine",cd(...Vd)||(Od?ue(Od,Id):Bd?oe(Bd,Id):re(Rd||Fd,Id));else if(no(Md,Ld,Ed,Ad))Id.placement="endOfLine",dd(...Vd)||(Bd?oe(Bd,Id):Od?ue(Od,Id):re(Rd||Fd,Id));else if(Id.placement="remaining",!_d(...Vd))if(Bd&&Od){let Qd=td.length;Qd>0&&td[Qd-1].followingNode!==Od&&Kr(td,Ld),td.push(Td)}else Bd?oe(Bd,Id):Od?ue(Od,Id):re(Rd||Fd,Id)}if(Kr(td,qa),!od)for(let Ad of ed)delete Ad.precedingNode,delete Ad.enclosingNode,delete Ad.followingNode}var Xr=Ra=>!/[\S\n\u2028\u2029]/u.test(Ra);function ro(Ra,qa,ed,td){let{comment:rd,precedingNode:sd}=ed[td],{locStart:od,locEnd:ld}=qa,ud=od(rd);if(sd)for(let cd=td-1;cd>=0;cd--){let{comment:dd,precedingNode:_d}=ed[cd];if(_d!==sd||!Xr(Ra.slice(ld(dd),ud)))break;ud=od(dd)}return V$1(Ra,ud,{backwards:!0})}function no(Ra,qa,ed,td){let{comment:rd,followingNode:sd}=ed[td],{locStart:od,locEnd:ld}=qa,ud=ld(rd);if(sd)for(let cd=td+1;cd<ed.length;cd++){let{comment:dd,followingNode:_d}=ed[cd];if(_d!==sd||!Xr(Ra.slice(ud,od(dd))))break;ud=ld(dd)}return V$1(Ra,ud)}function Kr(Ra,qa){var ed,td;let rd=Ra.length;if(rd===0)return;let{precedingNode:sd,followingNode:od}=Ra[0],ld=qa.locStar
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:Ra=>typeof Ra=="string"||typeof Ra=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:Ra=>typeof Ra=="string"||typeof Ra=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function ot$1({plugins:Ra=[],showDeprecated:qa=!1}={}){let ed=Ra.flatMap(rd=>rd.languages??[]),td=[];for(let rd of lo$1(Object.assign({},...Ra.map(({options:sd})=>sd),rn)))!qa&&rd.deprecated||(Array.isArray(rd.choices)&&(qa||(rd.choices=rd.choices.filter(sd=>!sd.deprecated)),rd.name==="parser"&&(rd.choices=[...rd.choices,...Do(rd.choices,ed,Ra)])),rd.pluginDefaults=Object.fromEntries(Ra.filter(sd=>{var od;return((od=sd.defaultOptions)==null?void 0:od[rd.name])!==void 0}).map(sd=>[sd.name,sd.defaultOptions[rd.name]])),td.push(rd));return{languages:ed,options:td}}function*Do(Ra,qa,ed){let td=new Set(Ra.map(rd=>rd.value));for(let rd of qa)if(rd.parsers){for(let sd of rd.parsers)if(!td.has(sd)){td.add(sd);let od=ed.find(ud=>ud.parsers&&Object.prototype.hasOwnProperty.call(ud.parsers,sd)),ld=rd.name;od!=null&&od.name&&(ld+=` (plugin: ${od.name})`),yield{value:sd,description:ld}}}}function lo$1(Ra){let qa=[];for(let[ed,td]of Object.entries(Ra)){let rd={name:ed,...td};Array.isArray(rd.default)&&(rd.default=y$2(!1,rd.default,-1).value),qa.push(rd)}return qa}var co=Ra=>String(Ra).split(/[/\\]/u).pop();function nn(Ra,qa){if(!qa)return;let ed=co(qa).toLowerCase();return Ra.find(({filenames:td})=>td==null?void 0:td.some(rd=>rd.toLowerCase()===ed))??Ra.find(({extensions:td})=>td==null?void 0:td.some(rd=>ed.endsWith(rd)))}function fo(Ra,qa){if(qa)return Ra.find(({name:ed})=>ed.toLowerCase()===qa)??Ra.find(({aliases:ed})=>ed==null?void 0:ed.includes(qa))??Ra.find(({extensions:ed})=>ed==null?void 0:ed.includes(`.${qa}`))}function po$1(Ra,qa){let ed=Ra.plugins.flatMap(rd=>rd.languages??[]),td=fo(ed,qa.language)??nn(ed,qa.physicalFile)??nn(ed,qa.file)??(qa.physicalFile,void 0);return td==null?void 0:td.parsers[0]}var un=po$1,ie={key:Ra=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(Ra)?Ra:JSON.stringify(Ra),value(Ra){if(Ra===null||typeof Ra!="object")return JSON.stringify(Ra);if(Array.isArray(Ra))return`[${Ra.map(ed=>ie.value(ed)).join(", ")}]`;let qa=Object.keys(Ra);return qa.length===0?"{}":`{ ${qa.map(ed=>`${ie.key(ed)}: ${ie.value(Ra[ed])}`).join(", ")} }`},pair:({key:Ra,value:qa})=>ie.value({[Ra]:qa})},Yt=Me$1(it()),an=(Ra,qa,{descriptor:ed})=>{let td=[`${Yt.default.yellow(typeof Ra=="string"?ed.key(Ra):ed.pair(Ra))} is deprecated`];return qa&&td.push(`we now treat it as ${Yt.default.blue(typeof qa=="string"?ed.key(qa):ed.pair(qa))}`),td.join("; ")+"."},le=Me$1(it()),st$1=Symbol.for("vnopts.VALUE_NOT_EXIST"),he$1=Symbol.for("vnopts.VALUE_UNCHANGED"),Dn$1=" ".repeat(2),cn$1=(Ra,qa,ed)=>{let{text:td,list:rd}=ed.normalizeExpectedResult(ed.schemas[Ra].expected(ed)),sd=[];return td&&sd.push(ln(Ra,qa,td,ed.descriptor)),rd&&sd.push([ln(Ra,qa,rd.title,ed.descriptor)].concat(rd.values.map(od=>fn(od,ed.loggerPrintWidth))).join(`
`)),pn(sd,ed.loggerPrintWidth)};function ln(Ra,qa,ed,td){return[`Invalid ${le.default.red(td.key(Ra))} value.`,`Expected ${le.default.blue(ed)},`,`but received ${qa===st$1?le.default.gray("nothing"):le.default.red(td.value(qa))}.`].join(" ")}function fn({text:Ra,list:qa},ed){let td=[];return Ra&&td.push(`- ${le.default.blue(Ra)}`),qa&&td.push([`- ${le.default.blue(qa.title)}:`].concat(qa.values.map(rd=>fn(rd,ed-Dn$1.length).replace(/^|\n/g,`$&${Dn$1}`))).join(`
`)),pn(td,ed)}function pn(Ra,qa){if(Ra.length===1)return Ra[0];let[ed,td]=Ra,[rd,sd]=Ra.map(od=>od.split(`
`,1)[0].length);return rd>qa&&rd>sd?td:ed}var Wt=Me$1(it()),jt=[],dn=[];function Ht$1(Ra,qa){if(Ra===qa)return 0;let ed=Ra;Ra.length>qa.length&&(Ra=qa,qa=ed);let td=Ra.length,rd=qa.length;for(;td>0&&Ra.charCodeAt(~-td)===qa.charCodeAt(~-rd);)td--,rd--;let sd=0;for(;sd<td&&Ra.charCodeAt(sd)===qa.charCodeAt(sd);)sd++;if(td-=sd,rd-=sd,td===0)return rd;let od,ld,ud,cd,dd=0,_d=0;for(;dd<td;)dn[dd]=Ra.charCodeAt(sd+dd),jt[dd]=++dd;for(;_d<rd;)for(od=qa.charCodeAt(sd+_d),ud=_d++,ld=_d,dd=0;dd<td;dd++)cd=od===dn[dd]?ud:ud+1,ud=jt[dd],ld=jt[dd]=ud>ld?cd>ld?ld+1:cd:cd>ud?ud+1:cd;return ld}var at$2=(Ra,qa,{descriptor:ed,logger:td,schemas:rd})=>{let sd=[`Ignored unknown option ${Wt.default.yellow(ed.pair({key:Ra,value:qa}))}.`],od=Object.keys(rd).sort().find(ld=>Ht$1(Ra,ld)<3);od&&sd.push(`Did you mean ${Wt.default.blue(ed.key(od))}?`),td.warn(sd.join(" "))},Fo=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function mo$1(Ra,qa){let ed=new Ra(qa),td=Object.create(ed);for(let rd of Fo)rd in qa&&(td[rd]=Eo(qa[rd],ed,O$2.prototype[rd].length));return td}var O$2=class{static create(qa){return mo$1(this,qa)}constructor(qa){this.name=qa.name}default(qa){}expected(qa){return"nothing"}validate(qa,ed){return!1}deprecated(qa,ed){return!1}forward(qa,ed){}redirect(qa,ed){}overlap(qa,ed,td){return qa}preprocess(qa,ed){return qa}postprocess(qa,ed){return he$1}};function Eo(Ra,qa,ed){return typeof Ra=="function"?(...td)=>Ra(...td.slice(0,ed-1),qa,...td.slice(ed-1)):()=>Ra}var Dt$1=class extends O$2{constructor(qa){super(qa),this._sourceName=qa.sourceName}expected(qa){return qa.schemas[this._sourceName].expected(qa)}validate(qa,ed){return ed.schemas[this._sourceName].validate(qa,ed)}redirect(qa,ed){return this._sourceName}},lt=class extends O$2{expected(){return"anything"}validate(){return!0}},ct=class extends O$2{constructor({valueSchema:Ra,name:qa=Ra.name,...ed}){super({...ed,name:qa}),this._valueSchema=Ra}expected(Ra){let{text:qa,list:ed}=Ra.normalizeExpectedResult(this._valueSchema.expected(Ra));return{text:qa&&`an array of ${qa}`,list:ed&&{title:"an array of the following values",values:[{list:ed}]}}}validate(Ra,qa){if(!Array.isArray(Ra))return!1;let ed=[];for(let td of Ra){let rd=qa.normalizeValidateResult(this._valueSchema.validate(td,qa),td);rd!==!0&&ed.push(rd.value)}return ed.length===0?!0:{value:ed}}deprecated(Ra,qa){let ed=[];for(let td of Ra){let rd=qa.normalizeDeprecatedResult(this._valueSchema.deprecated(td,qa),td);rd!==!1&&ed.push(...rd.map(({value:sd})=>({value:[sd]})))}return ed}forward(Ra,qa){let ed=[];for(let td of Ra){let rd=qa.normalizeForwardResult(this._valueSchema.forward(td,qa),td);ed.push(...rd.map(Fn))}return ed}redirect(Ra,qa){let ed=[],td=[];for(let rd of Ra){let sd=qa.normalizeRedirectResult(this._valueSchema.redirect(rd,qa),rd);"remain"in sd&&ed.push(sd.remain),td.push(...sd.redirect.map(Fn))}return ed.length===0?{redirect:td}:{redirect:td,remain:ed}}overlap(Ra,qa){return Ra.concat(qa)}};function Fn({from:Ra,to:qa}){return{from:[Ra],to:qa}}var ft=class extends O$2{expected(){return"true or false"}validate(Ra){return typeof Ra=="boolean"}};function En(Ra,qa){let ed=Object.create(null);for(let td of Ra){let rd=td[qa];if(ed[rd])throw new Error(`Duplicate ${qa} ${JSON.stringify(rd)}`);ed[rd]=td}return ed}function hn(Ra,qa){let ed=new Map;for(let td of Ra){let rd=td[qa];if(ed.has(rd))throw new Error(`Duplicate ${qa} ${JSON.stringify(rd)}`);ed.set(rd,td)}return ed}function Cn$1(){let Ra=Object.create(null);return qa=>{let ed=JSON.stringify(qa);return Ra[ed]?!0:(Ra[ed]=!0,!1)}}function gn$1(Ra,qa){let ed=[],td=[];for(let rd of Ra)qa(rd)?ed.push(rd):td.push(rd);return[ed,td]}function yn(Ra){return Ra===Math.floor(Ra)}function An(Ra,qa){if(Ra===qa)return 0;let ed=typeof Ra,td=typeof qa,rd=["undefined","object","boolean","number","string"];return ed!==td?rd.indexOf(ed)-rd.indexOf(td):ed!=="string"?Number(Ra)-Number(qa):Ra.localeCompare(qa)}function Bn$1(Ra){return(...qa)=>{let ed=Ra(...qa);return typeof ed=="string"?new Error(ed):ed}}function Mt(Ra){return Ra===void 0?{
`+td,Ra.codeFrame=td,Ra}throw Ra}var ce=ko;async function Un(Ra,qa,ed,td,rd){let{embeddedLanguageFormatting:sd,printer:{embed:od,hasPrettierIgnore:ld=()=>!1,getVisitorKeys:ud}}=ed;if(!od||sd!=="auto")return;if(od.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let cd=X$2(od.getVisitorKeys??ud),dd=[];Ad();let _d=Ra.stack;for(let{print:Td,node:Id,pathStack:Bd}of dd)try{Ra.stack=Bd;let Rd=await Td(Ed,qa,Ra,ed);Rd&&rd.set(Id,Rd)}catch(Rd){if(globalThis.PRETTIER_DEBUG)throw Rd}Ra.stack=_d;function Ed(Td,Id){return Po(Td,Id,ed,td)}function Ad(){let{node:Td}=Ra;if(Td===null||typeof Td!="object"||ld(Ra))return;for(let Bd of cd(Td))Array.isArray(Td[Bd])?Ra.each(Ad,Bd):Ra.call(Ad,Bd);let Id=od(Ra,ed);if(Id){if(typeof Id=="function"){dd.push({print:Id,node:Td,pathStack:[...Ra.stack]});return}rd.set(Td,Id)}}}async function Po(Ra,qa,ed,td){let rd=await se({...ed,...qa,parentParser:ed.parser,originalText:Ra},{passThrough:!0}),{ast:sd}=await ce(Ra,rd),od=await td(sd,rd);return Ze(od)}function Io(Ra,qa){let{originalText:ed,[Symbol.for("comments")]:td,locStart:rd,locEnd:sd,[Symbol.for("printedComments")]:od}=qa,{node:ld}=Ra,ud=rd(ld),cd=sd(ld);for(let dd of td)rd(dd)>=ud&&sd(dd)<=cd&&od.add(dd);return ed.slice(ud,cd)}var zn=Io;async function Ye(Ra,qa){({ast:Ra}=await Qt(Ra,qa));let ed=new Map,td=new Mr(Ra),rd=new Map;await Un(td,od,qa,Ye,rd);let sd=await Gn$1(td,qa,od,void 0,rd);return en(qa),sd;function od(ud,cd){return ud===void 0||ud===td?ld(cd):Array.isArray(ud)?td.call(()=>ld(cd),...ud):td.call(()=>ld(cd),ud)}function ld(ud){let cd=td.node;if(cd==null)return"";let dd=cd&&typeof cd=="object"&&ud===void 0;if(dd&&ed.has(cd))return ed.get(cd);let _d=Gn$1(td,qa,od,ud,rd);return dd&&ed.set(cd,_d),_d}}function Gn$1(Ra,qa,ed,td,rd){var sd;let{node:od}=Ra,{printer:ld}=qa,ud;return(sd=ld.hasPrettierIgnore)!=null&&sd.call(ld,Ra)?ud=zn(Ra,qa):rd.has(od)?ud=rd.get(od):ud=ld.print(Ra,qa,ed,td),od===qa.cursorNode&&(ud=Qe(ud,cd=>[ve,cd,ve])),ld.printComment&&(!ld.willPrintOwnComments||!ld.willPrintOwnComments(Ra,qa))&&(ud=Qr$1(Ra,ud,qa)),ud}async function Qt(Ra,qa){let ed=Ra.comments??[];qa[Symbol.for("comments")]=ed,qa[Symbol.for("tokens")]=Ra.tokens??[],qa[Symbol.for("printedComments")]=new Set,Jr(Ra,qa);let{printer:{preprocess:td}}=qa;return Ra=td?await td(Ra,qa):Ra,{ast:Ra,comments:ed}}function Ro(Ra,qa){let{cursorOffset:ed,locStart:td,locEnd:rd}=qa,sd=X$2(qa.printer.getVisitorKeys),od=ud=>td(ud)<=ed&&rd(ud)>=ed,ld=Ra;for(let ud of Ur(Ra,{getVisitorKeys:sd,filter:od}))ld=ud;return ld}var Kn=Ro;function Yo(Ra,qa){let{printer:{massageAstNode:ed,getVisitorKeys:td}}=qa;if(!ed)return Ra;let rd=X$2(td),sd=ed.ignoredProperties??new Set;return od(Ra);function od(ld,ud){if(!(ld!==null&&typeof ld=="object"))return ld;if(Array.isArray(ld))return ld.map(Ed=>od(Ed,ud)).filter(Boolean);let cd={},dd=new Set(rd(ld));for(let Ed in ld)!Object.prototype.hasOwnProperty.call(ld,Ed)||sd.has(Ed)||(dd.has(Ed)?cd[Ed]=od(ld[Ed],ld):cd[Ed]=ld[Ed]);let _d=ed(ld,cd,ud);if(_d!==null)return _d??cd}}var qn$1=Yo,jo$1=(Ra,qa,ed)=>{if(!(Ra&&qa==null)){if(qa.findLastIndex)return qa.findLastIndex(ed);for(let td=qa.length-1;td>=0;td--){let rd=qa[td];if(ed(rd,td,qa))return td}return-1}},Jn$1=jo$1,Ho$1=({parser:Ra})=>Ra==="json"||Ra==="json5"||Ra==="jsonc"||Ra==="json-stringify";function Wo$1(Ra,qa){let ed=[Ra.node,...Ra.parentNodes],td=new Set([qa.node,...qa.parentNodes]);return ed.find(rd=>Qn$1.has(rd.type)&&td.has(rd))}function Xn$1(Ra){let qa=Jn$1(!1,Ra,ed=>ed.type!=="Program"&&ed.type!=="File");return qa===-1?Ra:Ra.slice(0,qa+1)}function Mo(Ra,qa,{locStart:ed,locEnd:td}){let rd=Ra.node,sd=qa.node;if(rd===sd)return{startNode:rd,endNode:sd};let od=ed(Ra.node);for(let ud of Xn$1(qa.parentNodes))if(ed(ud)>=od)sd=ud;else break;let ld=td(qa.node);for(let ud of Xn$1(Ra.parentNodes)){if(td(ud)<=ld)rd=ud;else break;if(rd===sd)break}return{startNode:rd,endNode:sd}}function er(Ra,qa,ed,td,rd=[],sd){let{locStart:od,locEnd:ld}=ed,ud=od(Ra),cd=ld(Ra);if(!(
`,rd)+1),ud=td.slice(ld,rd).match(/^\s*/u)[0],cd=me(ud,qa.tabWidth),dd=await ou$1(od,{...qa,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:qa.cursorOffset>rd&&qa.cursorOffset<=sd?qa.cursorOffset-rd:-1,endOfLine:"lf"},cd),_d=dd.formatted.trimEnd(),{cursorOffset:Ed}=qa;Ed>sd?Ed+=_d.length-od.length:dd.cursorOffset>=0&&(Ed=dd.cursorOffset+rd);let Ad=td.slice(0,rd)+_d+td.slice(sd);if(qa.endOfLine!=="lf"){let Td=Be(qa.endOfLine);Ed>=0&&Td===`\r
`&&(Ed+=wt(Ad.slice(0,Ed),`
`)),Ad=ne$1(!1,Ad,`
`,Td)}return{formatted:Ad,cursorOffset:Ed,comments:dd.comments}}function tr(Ra,qa,ed){return typeof qa!="number"||Number.isNaN(qa)||qa<0||qa>Ra.length?ed:qa}function ru$1(Ra,qa){let{cursorOffset:ed,rangeStart:td,rangeEnd:rd}=qa;return ed=tr(Ra,ed,-1),td=tr(Ra,td,0),rd=tr(Ra,rd,Ra.length),{...qa,cursorOffset:ed,rangeStart:td,rangeEnd:rd}}function iu$1(Ra,qa){let{cursorOffset:ed,rangeStart:td,rangeEnd:rd,endOfLine:sd}=ru$1(Ra,qa),od=Ra.charAt(0)===uu$1;if(od&&(Ra=Ra.slice(1),ed--,td--,rd--),sd==="auto"&&(sd=Fr(Ra)),Ra.includes("\r")){let ld=ud=>wt(Ra.slice(0,Math.max(ud,0)),`\r
`);ed-=ld(ed),td-=ld(td),rd-=ld(rd),Ra=mr(Ra)}return{hasBOM:od,text:Ra,options:ru$1(Ra,{...qa,cursorOffset:ed,rangeStart:td,rangeEnd:rd,endOfLine:sd})}}async function nu$1(Ra,qa){let ed=await ht$1(qa);return!ed.hasPragma||ed.hasPragma(Ra)}async function rr(Ra,qa){let{hasBOM:ed,text:td,options:rd}=iu$1(Ra,await se(qa));if(rd.rangeStart>=rd.rangeEnd&&td!==""||rd.requirePragma&&!await nu$1(td,rd))return{formatted:Ra,cursorOffset:qa.cursorOffset,comments:[]};let sd;return rd.rangeStart>0||rd.rangeEnd<td.length?sd=await Uo$1(td,rd):(!rd.requirePragma&&rd.insertPragma&&rd.printer.insertPragma&&!await nu$1(td,rd)&&(td=rd.printer.insertPragma(td)),sd=await ou$1(td,rd)),ed&&(sd.formatted=uu$1+sd.formatted,sd.cursorOffset>=0&&sd.cursorOffset++),sd}async function su$1(Ra,qa,ed){let{text:td,options:rd}=iu$1(Ra,await se(qa)),sd=await ce(td,rd);return ed&&(ed.preprocessForPrint&&(sd.ast=await Qt(sd.ast,rd)),ed.massage&&(sd.ast=qn$1(sd.ast,rd))),sd}async function au$1(Ra,qa){qa=await se(qa);let ed=await Ye(Ra,qa);return Fe(ed,qa)}async function Du(Ra,qa){let ed=Or(Ra),{formatted:td}=await rr(ed,{...qa,parser:"__js_expression"});return td}async function lu$1(Ra,qa){qa=await se(qa);let{ast:ed}=await ce(Ra,qa);return Ye(ed,qa)}async function cu(Ra,qa){return Fe(Ra,await se(qa))}var nr={};We(nr,{builders:()=>Go,printer:()=>Ko$1,utils:()=>qo});var Go={join:be$1,line:Ke$1,softline:vr,hardline:q$1,literalline:qe$1,group:_t,conditionalGroup:Ar,fill:Ge,lineSuffix:xe$1,lineSuffixBoundary:xr,cursor:ve,breakParent:de,ifBreak:Br,trim:_r,indent:De,indentIfBreak:wr,align:ae,addAlignmentToDoc:Je$1,markAsRoot:gr,dedentToRoot:Cr,dedent:yr,hardlineWithoutBreakParent:_e,literallineWithoutBreakParent:vt,label:br$2,concat:Ra=>Ra},Ko$1={printDocToString:Fe},qo={willBreak:Ir,traverseDoc:we,findInDoc:Xe,mapDoc:Ne,removeLines:Yr$1,stripTrailingHardline:Ze,replaceEndOfLine:jr,canBreak:Hr},fu="3.3.3",or={};We(or,{addDanglingComment:()=>re,addLeadingComment:()=>ue,addTrailingComment:()=>oe,getAlignmentSize:()=>me,getIndentSize:()=>pu,getMaxContinuousCount:()=>du$1,getNextNonSpaceNonCommentCharacter:()=>Fu,getNextNonSpaceNonCommentCharacterIndex:()=>si$1,getStringWidth:()=>Oe,hasNewline:()=>V$1,hasNewlineInRange:()=>mu$1,hasSpaces:()=>Eu,isNextLineEmpty:()=>ci,isNextLineEmptyAfterIndex:()=>gt,isPreviousLineEmpty:()=>Di$1,makeString:()=>hu$1,skip:()=>Ee,skipEverythingButNewLine:()=>nt$1,skipInlineComment:()=>Ce,skipNewline:()=>M$1,skipSpaces:()=>T$2,skipToLineEnd:()=>rt,skipTrailingComment:()=>ge,skipWhitespace:()=>zr});function Jo(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let ed=qa+2;ed<Ra.length;++ed)if(Ra.charAt(ed)==="*"&&Ra.charAt(ed+1)==="/")return ed+2}return qa}var Ce=Jo;function Xo(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?nt$1(Ra,qa):qa}var ge=Xo;function Zo(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=T$2(Ra,td),td=Ce(Ra,td),td=ge(Ra,td),td=M$1(Ra,td);return td}var je$1=Zo;function Qo(Ra,qa){let ed=null,td=qa;for(;td!==ed;)ed=td,td=rt(Ra,td),td=Ce(Ra,td),td=T$2(Ra,td);return td=ge(Ra,td),td=M$1(Ra,td),td!==!1&&V$1(Ra,td)}var gt=Qo;function ei(Ra,qa){let ed=Ra.lastIndexOf(`
`);return ed===-1?0:me(Ra.slice(ed+1).match(/^[\t ]*/u)[0],qa)}var pu=ei;function ur(Ra){if(typeof Ra!="string")throw new TypeError("Expected a string");return Ra.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ti$1(Ra,qa){let ed=Ra.match(new RegExp(`(${ur(qa)})+`,"gu"));return ed===null?0:ed.reduce((td,rd)=>Math.max(td,rd.length/qa.length),0)}var du$1=ti$1;function ri$1(Ra,qa){let ed=je$1(Ra,qa);return ed===!1?"":Ra.charAt(ed)}var Fu=ri$1;function ni$1(Ra,qa,ed){for(let td=qa;td<ed;++td)if(Ra.charAt(td)===`
`)return!0;return!1}var mu$1=ni$1;function ui(Ra,qa,ed={}){return T$2(Ra,ed.backwards?qa-1:qa,ed)!==qa}var Eu=ui;function oi(Ra,qa,ed){let td=qa==='"'?"'":'"',rd=ne$1(!1,Ra,/\\(.)|(["'])/gsu,(sd,od,ld)=>od===td?od:ld===qa?"\\"+ld:ld||(ed&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(od)?od:"\\"+od));return qa+rd+qa}var hu$1=oi;function ii$1(Ra,qa,ed){return je$1(Ra,ed(qa))}function si$1(Ra,qa){return arguments.length===2||typeof qa=="number"?je$1(Ra,qa):ii$1(...arguments)}function ai$1(Ra,qa,ed){return Le$1(Ra,ed(qa))}function Di$1(Ra,qa){return arguments.length===2||typeof qa=="number"?Le$1(Ra,qa):ai$1(...arguments)}function li$1(Ra,qa,ed){return gt(Ra,ed(qa))}function ci(Ra,qa){return arguments.length===2||typeof qa=="number"?gt(Ra,qa):li$1(...arguments)}function fe(Ra,qa=1){return async(...ed)=>{let td=ed[qa]??{},rd=td.plugins??[];return ed[qa]={...td,plugins:Array.isArray(rd)?rd:Object.values(rd)},Ra(...ed)}}var Cu=fe(rr);async function gu$1(Ra,qa){let{formatted:ed}=await Cu(Ra,{...qa,cursorOffset:-1});return ed}async function fi(Ra,qa){return await gu$1(Ra,qa)===Ra}var pi$3=fe(ot$1,0),di={parse:fe(su$1),formatAST:fe(au$1),formatDoc:fe(Du),printToDoc:fe(lu$1),printDocToString:fe(cu)};function addPrefix(Ra){return`${prefix}__${Ra}`}function customizeTheme(Ra,qa){const ed=JSON.parse(JSON.stringify(Ra)),{fontSize:td,color:rd}=qa;if(td)for(let sd=1;sd<=4;sd++){const od=ed.block[`h${sd}`]["font-size"];ed.block[`h${sd}`]["font-size"]=`${Number(td)*Number.parseFloat(od)}px`}return rd&&(ed.base["--md-primary-color"]=rd),ed}function customCssWithTemplate(Ra,qa,ed){const td=customizeTheme(ed,{color:qa}),rd=(ld,ud,cd)=>{cd.forEach(dd=>{ud[dd]&&(ld[dd]=Object.assign(ld[dd]||{},ud[dd]))})},sd=["h1","h2","h3","h4","code","code_pre","p","hr","blockquote","blockquote_p","image","ul","ol"],od=["strong","codespan","link","wx_link","listitem"];return rd(td.block,Ra,sd),rd(td.inline,Ra,od),td}function css2json(Ra){Ra=Ra.replace(/\/\*[\s\S]*?\*\//g,"");const qa={},ed=td=>td.reduce((rd,sd)=>{const[od,ld]=sd.split(":").map(ud=>ud.trim());return od&&(rd[od]=ld),rd},{});for(;Ra.includes("{")&&Ra.includes("}");){const td=Ra.indexOf("{"),rd=Ra.indexOf("}"),sd=Ra.substring(td+1,rd).split(";").map(ud=>ud.trim()).filter(Boolean),od=Ra.substring(0,td).split(",").map(ud=>ud.trim()),ld=ed(sd);od.forEach(ud=>{qa[ud]={...qa[ud]||{},...ld}}),Ra=Ra.slice(rd+1).trim()}return qa}async function formatDoc(Ra,qa="markdown"){const ed={markdown:[prettierPluginMarkdown,prettierPluginBabel,prettierPluginEstree],css:[prettierPluginCss]},td=qa in ed?qa:"markdown";return await gu$1(Ra,{parser:td,plugins:ed[td]})}function downloadMD(Ra){const qa=document.createElement("a");qa.download="content.md",qa.style.display="none";const ed=new Blob([Ra]);qa.href=URL.createObjectURL(ed),document.body.appendChild(qa),qa.click(),document.body.removeChild(qa)}function exportHTML(){const Ra=document.querySelector("#output");rd(Ra);const qa=Ra.innerHTML,ed=document.createElement("a");ed.download="content.html",ed.style.display="none";const td=new Blob([`<html><head><meta charset="utf-8" /></head><body><div style="width: 750px; margin: auto;">${qa}</div></body></html>`]);ed.href=URL.createObjectURL(td),document.body.appendChild(ed),ed.click(),document.body.removeChild(ed);function rd(sd){function od(dd,_d=["width","height"]){const Ed=getComputedStyle(dd,null);return Object.entries(Ed).filter(([Ad])=>Ed.getPropertyValue(Ad)&&!_d.includes(Ad)).map(([Ad,Td])=>`${Ad}:${Td};`).join("")}switch(!0){case ld(sd):case ud(sd):case cd(sd):sd.setAttribute("style",od(sd))}sd.children.length&&Array.from(sd.children).forEach(dd=>rd(dd));function ld(dd){return dd.tagName==="PRE"&&Array.from(dd.classList).includes("code__pre")}function ud(dd){return dd==null?!1:dd.tagName==="CODE"}function cd(dd){return dd.tagName==="SPAN"&&(ud(dd.parentElement)||ud(dd.parentElement.parentElement))}}}function createTable({data:Ra,rows:qa,cols:ed}){let td="";for(let rd=0;rd<qa+2;++rd){td+="| ";const sd=[];for(let od=0;od<ed;++od){const ld=rd>1?rd-1:rd;sd.push(rd===1?"---":Ra[`k_${ld}_${od}`]||" ")}td+=sd.join(" |
`}return td}function toBase64$1(Ra){return new Promise((qa,ed)=>{const td=new FileReader;td.readAsDataURL(Ra),td.onload=()=>qa(td.result.split(",").pop()),td.onerror=rd=>ed(rd)})}function checkImage(Ra){if(!/\.(?:gif|jpe?g|png)$/i.test(Ra.name))return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const ed=10;return Ra.size>ed*1024*1024?{ok:!1,msg:`由于公众号限制图片大小不能超过 ${ed}M`}:{ok:!0}}function removeLeft(Ra){const qa=Ra.split(`
`),ed=qa.filter(td=>td.trim()).map(td=>td.match(/(^\s+)?/)[0].length).sort((td,rd)=>td-rd)[0];return qa.map(td=>td.slice(ed)).join(`
`)}function solveWeChatImage(){const qa=document.getElementById("output").getElementsByTagName("img");for(let ed=0;ed<qa.length;ed++){const td=qa[ed],rd=td.getAttribute("width"),sd=td.getAttribute("height");td.removeAttribute("width"),td.removeAttribute("height"),td.style.width=rd,td.style.height=sd}}function mergeCss(Ra){return juice(Ra,{inlinePseudoElements:!0,preserveImportant:!0})}function deepFreeze(Ra){return Ra instanceof Map?Ra.clear=Ra.delete=Ra.set=function(){throw new Error("map is read-only")}:Ra instanceof Set&&(Ra.add=Ra.clear=Ra.delete=function(){throw new Error("set is read-only")}),Object.freeze(Ra),Object.getOwnPropertyNames(Ra).forEach(qa=>{const ed=Ra[qa],td=typeof ed;(td==="object"||td==="function")&&!Object.isFrozen(ed)&&deepFreeze(ed)}),Ra}let Response$1=class{constructor(qa){qa.data===void 0&&(qa.data={}),this.data=qa.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function escapeHTML(Ra){return Ra.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function inherit$1(Ra,...qa){const ed=Object.create(null);for(const td in Ra)ed[td]=Ra[td];return qa.forEach(function(td){for(const rd in td)ed[rd]=td[rd]}),ed}const SPAN_CLOSE="</span>",emitsWrappingTags=Ra=>!!Ra.scope,scopeToCSSClass=(Ra,{prefix:qa})=>{if(Ra.startsWith("language:"))return Ra.replace("language:","language-");if(Ra.includes(".")){const ed=Ra.split(".");return[`${qa}${ed.shift()}`,...ed.map((td,rd)=>`${td}${"_".repeat(rd+1)}`)].join(" ")}return`${qa}${Ra}`};class HTMLRenderer{constructor(qa,ed){this.buffer="",this.classPrefix=ed.classPrefix,qa.walk(this)}addText(qa){this.buffer+=escapeHTML(qa)}openNode(qa){if(!emitsWrappingTags(qa))return;const ed=scopeToCSSClass(qa.scope,{prefix:this.classPrefix});this.span(ed)}closeNode(qa){emitsWrappingTags(qa)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span(qa){this.buffer+=`<span class="${qa}">`}}const newNode=(Ra={})=>{const qa={children:[]};return Object.assign(qa,Ra),qa};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(qa){this.top.children.push(qa)}openNode(qa){const ed=newNode({scope:qa});this.add(ed),this.stack.push(ed)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(qa){return this.constructor._walk(qa,this.rootNode)}static _walk(qa,ed){return typeof ed=="string"?qa.addText(ed):ed.children&&(qa.openNode(ed),ed.children.forEach(td=>this._walk(qa,td)),qa.closeNode(ed)),qa}static _collapse(qa){typeof qa!="string"&&qa.children&&(qa.children.every(ed=>typeof ed=="string")?qa.children=[qa.children.join("")]:qa.children.forEach(ed=>{TokenTree._collapse(ed)}))}}class TokenTreeEmitter extends TokenTree{constructor(qa){super(),this.options=qa}addText(qa){qa!==""&&this.add(qa)}startScope(qa){this.openNode(qa)}endScope(){this.closeNode()}__addSublanguage(qa,ed){const td=qa.root;ed&&(td.scope=`language:${ed}`),this.add(td)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function source(Ra){return Ra?typeof Ra=="string"?Ra:Ra.source:null}function lookahead(Ra){return concat$2("(?=",Ra,")")}function anyNumberOfTimes(Ra){return concat$2("(?:",Ra,")*")}function optional(Ra){return concat$2("(?:",Ra,")?")}function concat$2(...Ra){return Ra.map(ed=>source(ed)).join("")}function stripOptionsFromArgs(Ra){const qa=Ra[Ra.length-1];return typeof qa=="object"&&qa.constructor===Object?(Ra.splice(Ra.length-1,1),qa):{}}function either(...Ra){return"("+(stripOptionsFromArgs(Ra).capture?"":"?:")+Ra.map(td=>source(td)).join("|")+")"}function countMatchGroups(Ra){return new RegExp(Ra.toString()+"|").exec("").length-1}function startsWith$1(Ra,qa){const ed=Ra&&Ra.exec(qa);return ed&&ed.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(Ra,{joinWith:qa}){let ed=0;return Ra.map(td=>{ed+=1;const rd=ed;let sd
https://github.com/highlightjs/highlight.js/issues/2277`),Gf=Tf,Jf=kf),zf===void 0&&(zf=!0);const Mf={code:Jf,language:Gf};pf("before:highlight",Mf);const Nf=Mf.result?Mf.result:_d(Mf.language,Mf.code,zf);return Nf.code=Mf.code,pf("after:highlight",Nf),Nf}function _d(Tf,kf,zf,Jf){const Gf=Object.create(null);function Mf(kh,Wh){return kh.keywords[Wh]}function Nf(){if(!Lf.keywords){hh.addText(rh);return}let kh=0;Lf.keywordPatternRe.lastIndex=0;let Wh=Lf.keywordPatternRe.exec(rh),om="";for(;Wh;){om+=rh.substring(kh,Wh.index);const th=Uf.case_insensitive?Wh[0].toLowerCase():Wh[0],Df=Mf(Lf,th);if(Df){const[Af,Xf]=Df;if(hh.addText(om),om="",Gf[th]=(Gf[th]||0)+1,Gf[th]<=MAX_KEYWORD_HITS&&(Ah+=Xf),Af.startsWith("_"))om+=Wh[0];else{const ah=Uf.classNameAliases[Af]||Af;Wf(Wh[0],ah)}}else om+=Wh[0];kh=Lf.keywordPatternRe.lastIndex,Wh=Lf.keywordPatternRe.exec(rh)}om+=rh.substring(kh),hh.addText(om)}function Bf(){if(rh==="")return;let kh=null;if(typeof Lf.subLanguage=="string"){if(!qa[Lf.subLanguage]){hh.addText(rh);return}kh=_d(Lf.subLanguage,rh,!0,sh[Lf.subLanguage]),sh[Lf.subLanguage]=kh._top}else kh=Ad(rh,Lf.subLanguage.length?Lf.subLanguage:null);Lf.relevance>0&&(Ah+=kh.relevance),hh.__addSublanguage(kh._emitter,kh.language)}function Qf(){Lf.subLanguage!=null?Bf():Nf(),rh=""}function Wf(kh,Wh){kh!==""&&(hh.startScope(Wh),hh.addText(kh),hh.endScope())}function yf(kh,Wh){let om=1;const th=Wh.length-1;for(;om<=th;){if(!kh._emit[om]){om++;continue}const Df=Uf.classNameAliases[kh[om]]||kh[om],Af=Wh[om];Df?Wf(Af,Df):(rh=Af,Nf(),rh=""),om++}}function hf(kh,Wh){return kh.scope&&typeof kh.scope=="string"&&hh.openNode(Uf.classNameAliases[kh.scope]||kh.scope),kh.beginScope&&(kh.beginScope._wrap?(Wf(rh,Uf.classNameAliases[kh.beginScope._wrap]||kh.beginScope._wrap),rh=""):kh.beginScope._multi&&(yf(kh.beginScope,Wh),rh="")),Lf=Object.create(kh,{parent:{value:Lf}}),Lf}function Rf(kh,Wh,om){let th=startsWith$1(kh.endRe,om);if(th){if(kh["on:end"]){const Df=new Response$1(kh);kh["on:end"](Wh,Df),Df.isMatchIgnored&&(th=!1)}if(th){for(;kh.endsParent&&kh.parent;)kh=kh.parent;return kh}}if(kh.endsWithParent)return Rf(kh.parent,Wh,om)}function jf(kh){return Lf.matcher.regexIndex===0?(rh+=kh[0],1):(qh=!0,0)}function Kf(kh){const Wh=kh[0],om=kh.rule,th=new Response$1(om),Df=[om.__beforeBegin,om["on:begin"]];for(const Af of Df)if(Af&&(Af(kh,th),th.isMatchIgnored))return jf(Wh);return om.skip?rh+=Wh:(om.excludeBegin&&(rh+=Wh),Qf(),!om.returnBegin&&!om.excludeBegin&&(rh=Wh)),hf(om,kh),om.returnBegin?0:Wh.length}function Ff(kh){const Wh=kh[0],om=kf.substring(kh.index),th=Rf(Lf,kh,om);if(!th)return NO_MATCH;const Df=Lf;Lf.endScope&&Lf.endScope._wrap?(Qf(),Wf(Wh,Lf.endScope._wrap)):Lf.endScope&&Lf.endScope._multi?(Qf(),yf(Lf.endScope,kh)):Df.skip?rh+=Wh:(Df.returnEnd||Df.excludeEnd||(rh+=Wh),Qf(),Df.excludeEnd&&(rh=Wh));do Lf.scope&&hh.closeNode(),!Lf.skip&&!Lf.subLanguage&&(Ah+=Lf.relevance),Lf=Lf.parent;while(Lf!==th.parent);return th.starts&&hf(th.starts,kh),Df.returnEnd?0:Wh.length}function wf(){const kh=[];for(let Wh=Lf;Wh!==Uf;Wh=Wh.parent)Wh.scope&&kh.unshift(Wh.scope);kh.forEach(Wh=>hh.openNode(Wh))}let Yf={};function uh(kh,Wh){const om=Wh&&Wh[0];if(rh+=kh,om==null)return Qf(),0;if(Yf.type==="begin"&&Wh.type==="end"&&Yf.index===Wh.index&&om===""){if(rh+=kf.slice(Wh.index,Wh.index+1),!rd){const th=new Error(`0 width match regex (${Tf})`);throw th.languageName=Tf,th.badRule=Yf.rule,th}return 1}if(Yf=Wh,Wh.type==="begin")return Kf(Wh);if(Wh.type==="illegal"&&!zf){const th=new Error('Illegal lexeme "'+om+'" for mode "'+(Lf.scope||"<unnamed>")+'"');throw th.mode=Lf,th}else if(Wh.type==="end"){const th=Ff(Wh);if(th!==NO_MATCH)return th}if(Wh.type==="illegal"&&om==="")return 1;if(vh>1e5&&vh>Wh.index*3)throw new Error("potential infinite loop, way more iterations than matches");return rh+=om,om.length}const Uf=qd(Tf);if(!Uf)throw error(sd.replace("{}",Tf)),new Error('Unknown language: "'+Tf+'"');const Cf=compileLanguage(Uf);let If="",Lf=Jf||Cf;const sh={},hh=new ld.__emitter(ld);wf();let rh="",Ah=0,ph=0,vh=0,qh=!1;try{if(Uf.__emitTokens)Uf.__emitTokens(kf,hh
`},Td]}}return kotlin_1=rd,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function Ra(qa){const ed="[a-zA-Z_][\\w.]*",td="<\\?(lasso(script)?|=)",rd="\\]|\\?>",sd={$pattern:ed+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},od=qa.COMMENT("<!--","-->",{relevance:0}),ld={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[od]}},ud={className:"meta",begin:"\\[/noprocess|"+td},cd={className:"symbol",begin:"'"+ed+"'"},dd=[qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE,qa.inherit(qa.C_NUMBER_MODE,{begin:qa.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),qa.inherit(qa.APOS_STRING_MODE,{illegal:null}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+ed},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:ed,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+ed,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[cd]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[qa.inherit(qa.TITLE_MODE,{begin:ed+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:sd,contains:[{className:"meta",begin:rd,relevance:0,starts:{end:"\\[|"+td,returnEnd:!0,relevance:0,contains:[od]}},ld,ud,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:sd,contains:[{className:"meta",begin:rd,relevance:0,starts:{end:"\\[noprocess\\]|"+td,returnEnd:!0,contains:[od]}},ld,ud].concat(dd)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(dd)}}return lasso_1=Ra,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function Ra(qa){const td=qa.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middl
]`,Td={scope:"string",variants:[dd,cd,_d,Ed]},Id={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},Bd=["false","null","true"],Rd=["__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"],Od=["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"],Ld={keyword:Rd,literal:(bf=>{const pf=[];return bf.forEach(_f=>{pf.push(_f),_f.toLowerCase()===_f?pf.push(_f.toUpperCase()):pf.push(_f.toLowerCase())}),pf})(Bd),built_in:Od},Fd=bf=>bf.map(pf=>pf.replace(/\|\d+$/,"")),jd={variants:[{match:[/new/,ed.concat(Ad,"+"),ed.concat("(?!",Fd(Od).join("\\b|"),"\\b)"),sd],scope:{1:"keyword",4:"title.class"}}]},Vd=ed.concat(rd,"\\b(?!\\()"),Qd={variants:[{match:[ed.concat(/::/,ed.lookahead(/(?!class\b)/)),Vd],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[sd,ed.concat(/::/,ed.lookahead(/(?!class\b)/)),Vd],scope:{1:"title.class",3:"variable.constant"}},{match:[sd,ed.concat("::",ed.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[sd,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},qd={scope:"attr",match:ed.concat(rd,ed.lookahead(":"),ed.lookahead(/(?!::)/))},Kd={relevance:0,begin:/\(/,end:/\)/,keywords:Ld,contains:[qd,od,Qd,qa.C_BLOCK_COMMENT_MODE,Td,Id,jd]},Xd={relevance:0,match:[/\b/,ed.concat("(?!fn\\b|function\\b|",Fd(Rd).join("\\b|"),"|",Fd(Od).join("\\b|"),"\\b)"),rd,ed.concat(Ad,"*"),ed.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Kd]};Kd.contains.push(Xd);const df=[qd,Qd,qa.C_BLOCK_COMMENT_MODE,Td,Id,jd],mf={begin:ed.concat(/#\[\s*/,sd),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:Bd,keyword:["new","array"]},contains:[{begi
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return smali_1=Ra,smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1;function Ra(qa){const ed="[a-z][a-zA-Z0-9_]*",td={className:"string",begin:"\\$.{1}"},rd={className:"symbol",begin:"#"+qa.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[qa.COMMENT('"','"'),qa.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:ed+":",relevance:0},qa.C_NUMBER_MODE,rd,td,{begin:"\\|[ ]*"+ed+"([ ]+"+ed+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+ed}]},{begin:"#\\(",end:"\\)",contains:[qa.APOS_STRING_MODE,td,qa.C_NUMBER_MODE,rd]}]}}return smalltalk_1=Ra,smalltalk_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1;function Ra(qa){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},qa.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},qa.inherit(qa.APOS_STRING_MODE,{className:"string",relevance:0}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return sml_1=Ra,sml_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1;function Ra(qa){const ed={className:"variable",begin:/\b_+[a-zA-Z]\w*/},td={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},rd={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},sd=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],od=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],ld=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerSc
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},qa.COMMENT("^[ ]*\\*.*$",!1),qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE]}}return stata_1=Ra,stata_1}var step21_1,hasRequiredStep21;function requireStep21(){if(hasRequiredStep21)return step21_1;hasRequiredStep21=1;function Ra(qa){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE,qa.COMMENT("/\\*\\*!","\\*/"),qa.C_NUMBER_MODE,qa.inherit(qa.APOS_STRING_MODE,{illegal:null}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return step21_1=Ra,step21_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1;const Ra=cd=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:cd.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:[cd.APOS_STRING_MODE,cd.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:cd.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_-]*/}}),qa=["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","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],ed=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],td=[...qa,...ed],rd=["any
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return subunit_1=Ra,subunit_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1;function Ra(Qd){return Qd?typeof Qd=="string"?Qd:Qd.source:null}function qa(Qd){return ed("(?=",Qd,")")}function ed(...Qd){return Qd.map(Kd=>Ra(Kd)).join("")}function td(Qd){const qd=Qd[Qd.length-1];return typeof qd=="object"&&qd.constructor===Object?(Qd.splice(Qd.length-1,1),qd):{}}function rd(...Qd){return"("+(td(Qd).capture?"":"?:")+Qd.map(Xd=>Ra(Xd)).join("|")+")"}const sd=Qd=>ed(/\b/,Qd,/\w$/.test(Qd)?/\b/:/\B/),od=["Protocol","Type"].map(sd),ld=["init","self"].map(sd),ud=["Any","Self"],cd=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","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","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","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"],dd=["false","nil","true"],_d=["assignment","associativity","higherThan","left","lowerThan","none","right"],Ed=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Ad=["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"],Td=rd(/[/=\-+!*%<>&|^~?]/,/[\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]/),Id=rd(Td,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Bd=ed(Td,Id,"*"),Rd=rd(/[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]/),Od=rd(Rd,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Md=ed(Rd,Od,"*"),Ld=ed(/[A-Z]/,Od,"*"),Fd=["attached","autoclosure",ed(/convention\(/,rd("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","N
`).map(rd=>{const sd=rd.match(/^\s+/);if(sd===null)return rd;const[od]=sd;return od.length>=td.length?rd.slice(td.length):rd}).join(`
`)}let _Tokenizer$1=class{constructor(qa){Ym(this,"options");Ym(this,"rules");Ym(this,"lexer");this.options=qa||_defaults$1}space(qa){const ed=this.rules.block.newline.exec(qa);if(ed&&ed[0].length>0)return{type:"space",raw:ed[0]}}code(qa){const ed=this.rules.block.code.exec(qa);if(ed){const td=ed[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:ed[0],codeBlockStyle:"indented",text:this.options.pedantic?td:rtrim$1(td,`
`)}}}fences(qa){const ed=this.rules.block.fences.exec(qa);if(ed){const td=ed[0],rd=indentCodeCompensation$1(td,ed[3]||"");return{type:"code",raw:td,lang:ed[2]?ed[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):ed[2],text:rd}}}heading(qa){const ed=this.rules.block.heading.exec(qa);if(ed){let td=ed[2].trim();if(/#$/.test(td)){const rd=rtrim$1(td,"#");(this.options.pedantic||!rd||/ $/.test(rd))&&(td=rd.trim())}return{type:"heading",raw:ed[0],depth:ed[1].length,text:td,tokens:this.lexer.inline(td)}}}hr(qa){const ed=this.rules.block.hr.exec(qa);if(ed)return{type:"hr",raw:rtrim$1(ed[0],`
`)}}blockquote(qa){const ed=this.rules.block.blockquote.exec(qa);if(ed){let td=rtrim$1(ed[0],`
`).split(`
`),rd="",sd="";const od=[];for(;td.length>0;){let ld=!1;const ud=[];let cd;for(cd=0;cd<td.length;cd++)if(/^ {0,3}>/.test(td[cd]))ud.push(td[cd]),ld=!0;else if(!ld)ud.push(td[cd]);else break;td=td.slice(cd);const dd=ud.join(`
`),_d=dd.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");rd=rd?`${rd}
${dd}`:dd,sd=sd?`${sd}
${_d}`:_d;const Ed=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(_d,od,!0),this.lexer.state.top=Ed,td.length===0)break;const Ad=od[od.length-1];if((Ad==null?void 0:Ad.type)==="code")break;if((Ad==null?void 0:Ad.type)==="blockquote"){const Td=Ad,Id=Td.raw+`
`+td.join(`
`),Bd=this.blockquote(Id);od[od.length-1]=Bd,rd=rd.substring(0,rd.length-Td.raw.length)+Bd.raw,sd=sd.substring(0,sd.length-Td.text.length)+Bd.text;break}else if((Ad==null?void 0:Ad.type)==="list"){const Td=Ad,Id=Td.raw+`
`+td.join(`
`),Bd=this.list(Id);od[od.length-1]=Bd,rd=rd.substring(0,rd.length-Ad.raw.length)+Bd.raw,sd=sd.substring(0,sd.length-Td.raw.length)+Bd.raw,td=Id.substring(od[od.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:rd,tokens:od,text:sd}}}list(qa){let ed=this.rules.block.list.exec(qa);if(ed){let td=ed[1].trim();const rd=td.length>1,sd={type:"list",raw:"",ordered:rd,start:rd?+td.slice(0,-1):"",loose:!1,items:[]};td=rd?`\\d{1,9}\\${td.slice(-1)}`:`\\${td}`,this.options.pedantic&&(td=rd?td:"[*+-]");const od=new RegExp(`^( {0,3}${td})((?:[ ][^\\n]*)?(?:\\n|$))`);let ld=!1;for(;qa;){let ud=!1,cd="",dd="";if(!(ed=od.exec(qa))||this.rules.block.hr.test(qa))break;cd=ed[0],qa=qa.substring(cd.length);let _d=ed[2].split(`
`,1)[0].replace(/^\t+/,Rd=>" ".repeat(3*Rd.length)),Ed=qa.split(`
`,1)[0],Ad=!_d.trim(),Td=0;if(this.options.pedantic?(Td=2,dd=_d.trimStart()):Ad?Td=ed[1].length+1:(Td=ed[2].search(/[^ ]/),Td=Td>4?1:Td,dd=_d.slice(Td),Td+=ed[1].length),Ad&&/^[ \t]*$/.test(Ed)&&(cd+=Ed+`
`,qa=qa.substring(Ed.length+1),ud=!0),!ud){const Rd=new RegExp(`^ {0,${Math.min(3,Td-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Od=new RegExp(`^ {0,${Math.min(3,Td-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Md=new RegExp(`^ {0,${Math.min(3,Td-1)}}(?:\`\`\`|~~~)`),Ld=new RegExp(`^ {0,${Math.min(3,Td-1)}}#`),Fd=new RegExp(`^ {0,${Math.min(3,Td-1)}}<[a-z].*>`,"i");for(;qa;){const jd=qa.split(`
`,1)[0];let Vd;if(Ed=jd,this.options.pedantic?(Ed=Ed.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),Vd=Ed):Vd=Ed.replace(/\t/g," "),Md.test(Ed)||Ld.test(Ed)||Fd.test(Ed)||Rd.test(Ed)||Od.test(Ed))break;if(Vd.search(/[^ ]/)>=Td||!Ed.trim())dd+=`
`+Vd.slice(Td);else{if(Ad||_d.replace(/\t/g," ").search(/[^ ]/)>=4||Md.test(_d)||Ld.test(_d)||Od.test(_d))break;dd+=`
`+Ed}!Ad&&!Ed.trim()&&(Ad=!0),cd+=jd+`
`,qa=qa.substring(jd.length+1),_d=Vd.slice(Td)}}sd.loose||(ld?sd.loose=!0:/\n[ \t]*\n[ \t]*$/.test(cd)&&(ld=!0));let Id=null,Bd;this.options.gfm&&(Id=/^\[[ xX]\] /.exec(dd),Id&&(Bd=Id[0]!=="[ ] ",dd=dd.replace(/^\[[ xX]\] +/,""))),sd.items.push({type:"list_item",raw:cd,task:!!Id,checked:Bd,loose:!1,text:dd,tokens:[]}),sd.raw+=cd}sd.items[sd.items.length-1].raw=sd.items[sd.items.length-1].raw.trimEnd(),sd.items[sd.items.length-1].text=sd.items[sd.items.length-1].text.trimEnd(),sd.raw=sd.raw.trimEnd();for(let ud=0;ud<sd.items.length;ud++)if(this.lexer.state.top=!1,sd.items[ud].tokens=this.lexer.blockTokens(sd.items[ud].text,[]),!sd.loose){const cd=sd.items[ud].tokens.filter(_d=>_d.type==="space"),dd=cd.length>0&&cd.some(_d=>/\n.*\n/.test(_d.raw));sd.loose=dd}if(sd.loose)for(let ud=0;ud<sd.items.length;ud++)sd.items[ud].loose=!0;return sd}}html(qa){const ed=this.rules.block.html.exec(qa);if(ed)return{type:"html",block:!0,raw:ed[0],pre:ed[1]==="pre"||ed[1]==="script"||ed[1]==="style",text:ed[0]}}def(qa){const ed=this.rules.block.def.exec(qa);if(ed){const td=ed[1].toLowerCase().replace(/\s+/g," "),rd=ed[2]?ed[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",sd=ed[3]?ed[3].substring(1,ed[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):ed[3];return{type:"def",tag:td,raw:ed[0],href:rd,title:sd}}}table(qa){const ed=this.rules.block.table.exec(qa);if(!ed||!/[:|]/.test(ed[2]))return;const td=splitCells$1(ed[1]),rd=ed[2].replace(/^\||\| *$/g,"").split("|"),sd=ed[3]&&ed[3].trim()?ed[3].replace(/\n[ \t]*$/,"").split(`
`):[],od={type:"table",raw:ed[0],header:[],align:[],rows:[]};if(td.length===rd.length){for(const ld of rd)/^ *-+: *$/.test(ld)?od.align.push("right"):/^ *:-+: *$/.test(ld)?od.align.push("center"):/^ *:-+ *$/.test(ld)?od.align.push("left"):od.align.push(null);for(let ld=0;ld<td.length;ld++)od.header.push({text:td[ld],tokens:this.lexer.inline(td[ld]),header:!0,align:od.align[ld]});for(const ld of sd)od.rows.push(splitCells$1(ld,od.header.length).map((ud,cd)=>({text:ud,tokens:this.lexer.inline(ud),header:!1,align:od.align[cd]})));return od}}lheading(qa){const ed=this.rules.block.lheading.exec(qa);if(ed)return{type:"heading",raw:ed[0],depth:ed[2].charAt(0)==="="?1:2,text:ed[1],tokens:this.lexer.inline(ed[1])}}paragraph(qa){const ed=this.rules.block.paragraph.exec(qa);if(ed){const td=ed[1].charAt(ed[1].length-1)===`
`?ed[1].slice(0,-1):ed[1];return{type:"paragraph",raw:ed[0],text:td,tokens:this.lexer.inline(td)}}}text(qa){const ed=this.rules.block.text.exec(qa);if(ed)return{type:"text",raw:ed[0],text:ed[0],tokens:this.lexer.inline(ed[0])}}escape(qa){const ed=this.rules.inline.escape.exec(qa);if(ed)return{type:"escape",raw:ed[0],text:escape$1$1(ed[1])}}tag(qa){const ed=this.rules.inline.tag.exec(qa);if(ed)return!this.lexer.state.inLink&&/^<a /i.test(ed[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(ed[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(ed[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ed[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:ed[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:ed[0]}}link(qa){const ed=this.rules.inline.link.exec(qa);if(ed){const td=ed[2].trim();if(!this.options.pedantic&&/^</.test(td)){if(!/>$/.test(td))return;const od=rtrim$1(td.slice(0,-1),"\\");if((td.length-od.length)%2===0)return}else{const od=findClosingBracket$1(ed[2],"()");if(od>-1){const ud=(ed[0].indexOf("!")===0?5:4)+ed[1].length+od;ed[2]=ed[2].substring(0,od),ed[0]=ed[0].substring(0,ud).trim(),ed[3]=""}}let rd=ed[2],sd="";if(this.options.pedantic){const od=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(rd);od&&(rd=od[1],sd=od[3])}else sd=ed[3]?ed[3].slice(1,-1):"";return rd=rd.trim(),/^</.test(rd)&&(this.options.pedantic&&!/>$/.test(td)?rd=rd.slice(1):rd=rd.slice(1,-1)),outputLink$1(ed,{href:rd&&rd.replace(this.rules.inline.anyPunctuation,"$1"),title:sd&&sd.replace(this.rules.inline.anyPunctuation,"$1")},ed[0],this.lexer)}}reflink(qa,ed){let td;if((td=this.rules.inline.reflink.exec(qa))||(td=this.rules.inline.nolink.exec(qa))){const rd=(td[2]||td[1]).replace(/\s+/g," "),sd=ed[rd.toLowerCase()];if(!sd){const od=td[0].charAt(0);return{type:"text",raw:od,text:od}}return outputLink$1(td,sd,td[0],this.lexer)}}emStrong(qa,ed,td=""){let rd=this.rules.inline.emStrongLDelim.exec(qa);if(!rd||rd[3]&&td.match(/[\p{L}\p{N}]/u))return;if(!(rd[1]||rd[2]||"")||!td||this.rules.inline.punctuation.exec(td)){const od=[...rd[0]].length-1;let ld,ud,cd=od,dd=0;const _d=rd[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_d.lastIndex=0,ed=ed.slice(-1*qa.length+od);(rd=_d.exec(ed))!=null;){if(ld=rd[1]||rd[2]||rd[3]||rd[4]||rd[5]||rd[6],!ld)continue;if(ud=[...ld].length,rd[3]||rd[4]){cd+=ud;continue}else if((rd[5]||rd[6])&&od%3&&!((od+ud)%3)){dd+=ud;continue}if(cd-=ud,cd>0)continue;ud=Math.min(ud,ud+cd+dd);const Ed=[...rd[0]][0].length,Ad=qa.slice(0,od+rd.index+Ed+ud);if(Math.min(od,ud)%2){const Id=Ad.slice(1,-1);return{type:"em",raw:Ad,text:Id,tokens:this.lexer.inlineTokens(Id)}}const Td=Ad.slice(2,-2);return{type:"strong",raw:Ad,text:Td,tokens:this.lexer.inlineTokens(Td)}}}}codespan(qa){const ed=this.rules.inline.code.exec(qa);if(ed){let td=ed[2].replace(/\n/g," ");const rd=/[^ ]/.test(td),sd=/^ /.test(td)&&/ $/.test(td);return rd&&sd&&(td=td.substring(1,td.length-1)),td=escape$1$1(td,!0),{type:"codespan",raw:ed[0],text:td}}}br(qa){const ed=this.rules.inline.br.exec(qa);if(ed)return{type:"br",raw:ed[0]}}del(qa){const ed=this.rules.inline.del.exec(qa);if(ed)return{type:"del",raw:ed[0],text:ed[2],tokens:this.lexer.inlineTokens(ed[2])}}autolink(qa){const ed=this.rules.inline.autolink.exec(qa);if(ed){let td,rd;return ed[2]==="@"?(td=escape$1$1(ed[1]),rd="mailto:"+td):(td=escape$1$1(ed[1]),rd=td),{type:"link",raw:ed[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}url(qa){var td;let ed;if(ed=this.rules.inline.url.exec(qa)){let rd,sd;if(ed[2]==="@")rd=escape$1$1(ed[0]),sd="mailto:"+rd;else{let od;do od=ed[0],ed[0]=((td=this.rules.inline._backpedal.exec(ed[0]))==null?void 0:td[0])??"";while(od!==ed[0]);rd=escape$1$1(ed[0]),ed[1]==="www."?sd="http://"+ed[0]:sd=ed[0]}return{type:"link",raw:ed[0],text:rd,href:sd,tokens:[{type:"text",raw:rd,text:rd}]}}}inlineText(qa){const ed=this.rules.inline.text.exec(qa);if(ed){let td;return this.lexer.state.inRawBl
]`).replace("lheading",lheading$1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape$3=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,inlineCode$1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br$1=/^( {2,}|\\)\n(?!\s*$)/,inlineText$1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_punctuation$1="\\p{P}\\p{S}",punctuation$1=edit$1(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,_punctuation$1).getRegex(),blockSkip$1=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,emStrongLDelim$1=edit$1(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,_punctuation$1).getRegex(),emStrongRDelimAst$1=edit$1("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,_punctuation$1).getRegex(),emStrongRDelimUnd$1=edit$1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,_punctuation$1).getRegex(),anyPunctuation$1=edit$1(/\\([punct])/,"gu").replace(/punct/g,_punctuation$1).getRegex(),autolink$1=edit$1(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_inlineComment$1=edit$1(_comment$1).replace("(?:-->|$)","-->").getRegex(),tag$1=edit$1("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_inlineComment$1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_inlineLabel$1=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,link$1=edit$1(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",_inlineLabel$1).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),reflink$1=edit$1(/^!?\[(label)\]\[(ref)\]/).replace("label",_inlineLabel$1).replace("ref",_blockLabel$1).getRegex(),nolink$1=edit$1(/^!?\[(ref)\](?:\[\])?/).replace("ref",_blockLabel$1).getRegex(),reflinkSearch$1=edit$1("reflink|nolink(?!\\()","g").replace("reflink",reflink$1).replace("nolink",nolink$1).getRegex(),inlineNormal$1={_backpedal:noopTest$1,anyPunctuation:anyPunctuation$1,autolink:autolink$1,blockSkip:blockSkip$1,br:br$1,code:inlineCode$1,del:noopTest$1,emStrongLDelim:emStrongLDelim$1,emStrongRDelimAst:emStrongRDelimAst$1,emStrongRDelimUnd:emStrongRDelimUnd$1,escape:escape$3,link:link$1,nolink:nolink$1,punctuation:punctuation$1,reflink:reflink$1,reflinkSearch:reflinkSearch$1,tag:tag$1,text:inlineText$1,url:noopTest$1},inlinePedantic$1={...inlineNormal$1,link:edit$1(/^!?\[(label)\]\((.*?)\)/).replace("label",_inlineLabel$1).getRegex(),reflink:edit$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_inlineLabel$1).getRegex()},inlineGfm$1={...inlineNormal$1,escape:edit$1(escape$3).replace("])","~|])").getRegex(),url:edit$1(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},inlineBreaks$1={...inlineGfm$1,br:edit$1(br$1).replace("{2,}","*").
`),this.blockTokens(qa,this.tokens);for(let ed=0;ed<this.inlineQueue.length;ed++){const td=this.inlineQueue[ed];this.inlineTokens(td.src,td.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,ed=[],td=!1){this.options.pedantic&&(qa=qa.replace(/\t/g," ").replace(/^ +$/gm,""));let rd,sd,od;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(ld=>(rd=ld.call({lexer:this},qa,ed))?(qa=qa.substring(rd.raw.length),ed.push(rd),!0):!1))){if(rd=this.tokenizer.space(qa)){qa=qa.substring(rd.raw.length),rd.raw.length===1&&ed.length>0?ed[ed.length-1].raw+=`
`:ed.push(rd);continue}if(rd=this.tokenizer.code(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&(sd.type==="paragraph"||sd.type==="text")?(sd.raw+=`
`+rd.raw,sd.text+=`
`+rd.text,this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd);continue}if(rd=this.tokenizer.fences(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.heading(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.hr(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.blockquote(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.list(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.html(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.def(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&(sd.type==="paragraph"||sd.type==="text")?(sd.raw+=`
`+rd.raw,sd.text+=`
`+rd.raw,this.inlineQueue[this.inlineQueue.length-1].src=sd.text):this.tokens.links[rd.tag]||(this.tokens.links[rd.tag]={href:rd.href,title:rd.title});continue}if(rd=this.tokenizer.table(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.lheading(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(od=qa,this.options.extensions&&this.options.extensions.startBlock){let ld=1/0;const ud=qa.slice(1);let cd;this.options.extensions.startBlock.forEach(dd=>{cd=dd.call({lexer:this},ud),typeof cd=="number"&&cd>=0&&(ld=Math.min(ld,cd))}),ld<1/0&&ld>=0&&(od=qa.substring(0,ld+1))}if(this.state.top&&(rd=this.tokenizer.paragraph(od))){sd=ed[ed.length-1],td&&(sd==null?void 0:sd.type)==="paragraph"?(sd.raw+=`
`+rd.raw,sd.text+=`
`+rd.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd),td=od.length!==qa.length,qa=qa.substring(rd.raw.length);continue}if(rd=this.tokenizer.text(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&sd.type==="text"?(sd.raw+=`
`+rd.raw,sd.text+=`
`+rd.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd);continue}if(qa){const ld="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ld);break}else throw new Error(ld)}}return this.state.top=!0,ed}inline(qa,ed=[]){return this.inlineQueue.push({src:qa,tokens:ed}),ed}inlineTokens(qa,ed=[]){let td,rd,sd,od=qa,ld,ud,cd;if(this.tokens.links){const dd=Object.keys(this.tokens.links);if(dd.length>0)for(;(ld=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)dd.includes(ld[0].slice(ld[0].lastIndexOf("[")+1,-1))&&(od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ld=this.tokenizer.rules.inline.blockSkip.exec(od))!=null;)od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(ld=this.tokenizer.rules.inline.anyPunctuation.exec(od))!=null;)od=od.slice(0,ld.index)+"++"+od.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(ud||(cd=""),ud=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(dd=>(td=dd.call({lexer:this},qa,ed))?(qa=qa.substring(td.raw.length),ed.push(td),!0):!1))){if(td=this.tokenizer.escape(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.tag(qa)){qa=qa.substring(td.raw.length),rd=ed[ed.length-1],rd&&td.type==="text"&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(td=this.tokenizer.link(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(td.raw.length),rd=ed[ed.length-1],rd&&td.type==="text"&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(td=this.tokenizer.emStrong(qa,od,cd)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.codespan(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.br(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.del(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.autolink(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(!this.state.inLink&&(td=this.tokenizer.url(qa))){qa=qa.substring(td.raw.length),ed.push(td);continue}if(sd=qa,this.options.extensions&&this.options.extensions.startInline){let dd=1/0;const _d=qa.slice(1);let Ed;this.options.extensions.startInline.forEach(Ad=>{Ed=Ad.call({lexer:this},_d),typeof Ed=="number"&&Ed>=0&&(dd=Math.min(dd,Ed))}),dd<1/0&&dd>=0&&(sd=qa.substring(0,dd+1))}if(td=this.tokenizer.inlineText(sd)){qa=qa.substring(td.raw.length),td.raw.slice(-1)!=="_"&&(cd=td.raw.slice(-1)),ud=!0,rd=ed[ed.length-1],rd&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(qa){const dd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(dd);break}else throw new Error(dd)}}return ed}},_Renderer$1=class{constructor(qa){Ym(this,"options");Ym(this,"parser");this.options=qa||_defaults$1}space(qa){return""}code({text:qa,lang:ed,escaped:td}){var od;const rd=(od=(ed||"").match(/^\S*/))==null?void 0:od[0],sd=qa.replace(/\n$/,"")+`
`;return rd?'<pre><code class="language-'+escape$1$1(rd)+'">'+(td?sd:escape$1$1(sd,!0))+`</code></pre>
`:"<pre><code>"+(td?sd:escape$1$1(sd,!0))+`</code></pre>
`}blockquote({tokens:qa}){return`<blockquote>
${this.parser.parse(qa)}</blockquote>
`}html({text:qa}){return qa}heading({tokens:qa,depth:ed}){return`<h${ed}>${this.parser.parseInline(qa)}</h${ed}>
`}hr(qa){return`<hr>
`}list(qa){const ed=qa.ordered,td=qa.start;let rd="";for(let ld=0;ld<qa.items.length;ld++){const ud=qa.items[ld];rd+=this.listitem(ud)}const sd=ed?"ol":"ul",od=ed&&td!==1?' start="'+td+'"':"";return"<"+sd+od+`>
`+rd+"</"+sd+`>
`}listitem(qa){let ed="";if(qa.task){const td=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=td+" "+qa.tokens[0].text,qa.tokens[0].tokens&&qa.tokens[0].tokens.length>0&&qa.tokens[0].tokens[0].type==="text"&&(qa.tokens[0].tokens[0].text=td+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:td+" ",text:td+" "}):ed+=td+" "}return ed+=this.parser.parse(qa.tokens,!!qa.loose),`<li>${ed}</li>
`}checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return`<p>${this.parser.parseInline(qa)}</p>
`}table(qa){let ed="",td="";for(let sd=0;sd<qa.header.length;sd++)td+=this.tablecell(qa.header[sd]);ed+=this.tablerow({text:td});let rd="";for(let sd=0;sd<qa.rows.length;sd++){const od=qa.rows[sd];td="";for(let ld=0;ld<od.length;ld++)td+=this.tablecell(od[ld]);rd+=this.tablerow({text:td})}return rd&&(rd=`<tbody>${rd}</tbody>`),`<table>
<thead>
`+ed+`</thead>
`+rd+`</table>
`}tablerow({text:qa}){return`<tr>
${qa}</tr>
`}tablecell(qa){const ed=this.parser.parseInline(qa.tokens),td=qa.header?"th":"td";return(qa.align?`<${td} align="${qa.align}">`:`<${td}>`)+ed+`</${td}>
`}strong({tokens:qa}){return`<strong>${this.parser.parseInline(qa)}</strong>`}em({tokens:qa}){return`<em>${this.parser.parseInline(qa)}</em>`}codespan({text:qa}){return`<code>${qa}</code>`}br(qa){return"<br>"}del({tokens:qa}){return`<del>${this.parser.parseInline(qa)}</del>`}link({href:qa,title:ed,tokens:td}){const rd=this.parser.parseInline(td),sd=cleanUrl$1(qa);if(sd===null)return rd;qa=sd;let od='<a href="'+qa+'"';return ed&&(od+=' title="'+ed+'"'),od+=">"+rd+"</a>",od}image({href:qa,title:ed,text:td}){const rd=cleanUrl$1(qa);if(rd===null)return td;qa=rd;let sd=`<img src="${qa}" alt="${td}"`;return ed&&(sd+=` title="${ed}"`),sd+=">",sd}text(qa){return"tokens"in qa&&qa.tokens?this.parser.parseInline(qa.tokens):qa.text}},_TextRenderer$1=class{strong({text:qa}){return qa}em({text:qa}){return qa}codespan({text:qa}){return qa}del({text:qa}){return qa}html({text:qa}){return qa}text({text:qa}){return qa}link({text:qa}){return""+qa}image({text:qa}){return""+qa}br(){return""}},_Parser$1=class y2{constructor(qa){Ym(this,"options");Ym(this,"renderer");Ym(this,"textRenderer");this.options=qa||_defaults$1,this.options.renderer=this.options.renderer||new _Renderer$1,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _TextRenderer$1}static parse(qa,ed){return new y2(ed).parse(qa)}static parseInline(qa,ed){return new y2(ed).parseInline(qa)}parse(qa,ed=!0){let td="";for(let rd=0;rd<qa.length;rd++){const sd=qa[rd];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[sd.type]){const ld=sd,ud=this.options.extensions.renderers[ld.type].call({parser:this},ld);if(ud!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ld.type)){td+=ud||"";continue}}const od=sd;switch(od.type){case"space":{td+=this.renderer.space(od);continue}case"hr":{td+=this.renderer.hr(od);continue}case"heading":{td+=this.renderer.heading(od);continue}case"code":{td+=this.renderer.code(od);continue}case"table":{td+=this.renderer.table(od);continue}case"blockquote":{td+=this.renderer.blockquote(od);continue}case"list":{td+=this.renderer.list(od);continue}case"html":{td+=this.renderer.html(od);continue}case"paragraph":{td+=this.renderer.paragraph(od);continue}case"text":{let ld=od,ud=this.renderer.text(ld);for(;rd+1<qa.length&&qa[rd+1].type==="text";)ld=qa[++rd],ud+=`
`+this.renderer.text(ld);ed?td+=this.renderer.paragraph({type:"paragraph",raw:ud,text:ud,tokens:[{type:"text",raw:ud,text:ud}]}):td+=ud;continue}default:{const ld='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(ld),"";throw new Error(ld)}}}return td}parseInline(qa,ed){ed=ed||this.renderer;let td="";for(let rd=0;rd<qa.length;rd++){const sd=qa[rd];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[sd.type]){const ld=this.options.extensions.renderers[sd.type].call({parser:this},sd);if(ld!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(sd.type)){td+=ld||"";continue}}const od=sd;switch(od.type){case"escape":{td+=ed.text(od);break}case"html":{td+=ed.html(od);break}case"link":{td+=ed.link(od);break}case"image":{td+=ed.image(od);break}case"strong":{td+=ed.strong(od);break}case"em":{td+=ed.em(od);break}case"codespan":{td+=ed.codespan(od);break}case"br":{td+=ed.br(od);break}case"del":{td+=ed.del(od);break}case"text":{td+=ed.text(od);break}default:{const ld='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(ld),"";throw new Error(ld)}}}return td}};var b2;let _Hooks$1=(b2=class{constructor(qa){Ym(this,"options");Ym(this,"block");this.options=qa||_defaults$1}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}provideLexer(){return this.block?_Lexer$1.lex:_Lexer$1.lexInline}provideParser(){return this.block?_Parser$1.parse:_Parser$1.parseInline}},Ym(b2,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),b2),Marked$1=class{constructor(...qa){Ym(this,"defaults",_getDefaults$1());Ym(this,"options",this.setOptions);Ym(this,"parse",this.parseMarkdown(!0));Ym(this,"parseInline",this.parseMarkdown(!1));Ym(this,"Parser",_Parser$1);Ym(this,"Renderer",_Renderer$1);Ym(this,"TextRenderer",_TextRenderer$1);Ym(this,"Lexer",_Lexer$1);Ym(this,"Tokenizer",_Tokenizer$1);Ym(this,"Hooks",_Hooks$1);this.use(...qa)}walkTokens(qa,ed){var rd,sd;let td=[];for(const od of qa)switch(td=td.concat(ed.call(this,od)),od.type){case"table":{const ld=od;for(const ud of ld.header)td=td.concat(this.walkTokens(ud.tokens,ed));for(const ud of ld.rows)for(const cd of ud)td=td.concat(this.walkTokens(cd.tokens,ed));break}case"list":{const ld=od;td=td.concat(this.walkTokens(ld.items,ed));break}default:{const ld=od;(sd=(rd=this.defaults.extensions)==null?void 0:rd.childTokens)!=null&&sd[ld.type]?this.defaults.extensions.childTokens[ld.type].forEach(ud=>{const cd=ld[ud].flat(1/0);td=td.concat(this.walkTokens(cd,ed))}):ld.tokens&&(td=td.concat(this.walkTokens(ld.tokens,ed)))}}return td}use(...qa){const ed=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(td=>{const rd={...td};if(rd.async=this.defaults.async||rd.async||!1,td.extensions&&(td.extensions.forEach(sd=>{if(!sd.name)throw new Error("extension name required");if("renderer"in sd){const od=ed.renderers[sd.name];od?ed.renderers[sd.name]=function(...ld){let ud=sd.renderer.apply(this,ld);return ud===!1&&(ud=od.apply(this,ld)),ud}:ed.renderers[sd.name]=sd.renderer}if("tokenizer"in sd){if(!sd.level||sd.level!=="block"&&sd.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const od=ed[sd.level];od?od.unshift(sd.tokenizer):ed[sd.level]=[sd.tokenizer],sd.start&&(sd.level==="block"?ed.startBlock?ed.startBlock.push(sd.start):ed.startBlock=[sd.start]:sd.level==="inline"&&(ed.startInline?ed.startInline.push(sd.start):ed.startInline=[sd.start]))}"childTokens"in sd&&sd.childTokens&&(ed.childTokens[sd.name]=sd.childTokens)}),rd.extensions=ed),td.renderer){const sd=this.defaults.renderer||new _Renderer$1(this.defaults);for(const od in td.renderer){if(!(od in sd))throw new Error(`renderer '${od}' does not exist`);if(["options","parser"].includes(od))continue;const ld=od,ud=td.renderer[ld],cd=sd[ld];sd[ld]=(...dd)=>{let _d=ud.apply(sd,dd);return _d===!1&&(_d=cd.apply(sd,dd)),_d||""}}rd.renderer=sd}if(td.tokenizer){const sd=this.defaults.tokenizer||new _Tokenizer$1(
Please report this to https://github.com/markedjs/marked.`,qa){const rd="<p>An error occurred:</p><pre>"+escape$1$1(td.message+"",!0)+"</pre>";return ed?Promise.resolve(rd):rd}if(ed)return Promise.reject(td);throw td}}};const markedInstance$1=new Marked$1;function marked$1(Ra,qa){return markedInstance$1.parse(Ra,qa)}marked$1.options=marked$1.setOptions=function(Ra){return markedInstance$1.setOptions(Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.getDefaults=_getDefaults$1;marked$1.defaults=_defaults$1;marked$1.use=function(...Ra){return markedInstance$1.use(...Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.walkTokens=function(Ra,qa){return markedInstance$1.walkTokens(Ra,qa)};marked$1.parseInline=markedInstance$1.parseInline;marked$1.Parser=_Parser$1;marked$1.parser=_Parser$1.parse;marked$1.Renderer=_Renderer$1;marked$1.TextRenderer=_TextRenderer$1;marked$1.Lexer=_Lexer$1;marked$1.lexer=_Lexer$1.lex;marked$1.Tokenizer=_Tokenizer$1;marked$1.Hooks=_Hooks$1;marked$1.parse=marked$1;marked$1.options;marked$1.setOptions;marked$1.use;marked$1.walkTokens;marked$1.parseInline;_Parser$1.parse;_Lexer$1.lex;const scriptRel="modulepreload",assetsURL=function(Ra){return"/md/"+Ra},seen={},__vitePreload=function(qa,ed,td){let rd=Promise.resolve();if(ed&&ed.length>0){document.getElementsByTagName("link");const od=document.querySelector("meta[property=csp-nonce]"),ld=(od==null?void 0:od.nonce)||(od==null?void 0:od.getAttribute("nonce"));rd=Promise.allSettled(ed.map(ud=>{if(ud=assetsURL(ud),ud in seen)return;seen[ud]=!0;const cd=ud.endsWith(".css"),dd=cd?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${ud}"]${dd}`))return;const _d=document.createElement("link");if(_d.rel=cd?"stylesheet":scriptRel,cd||(_d.as="script"),_d.crossOrigin="",_d.href=ud,ld&&_d.setAttribute("nonce",ld),document.head.appendChild(_d),cd)return new Promise((Ed,Ad)=>{_d.addEventListener("load",Ed),_d.addEventListener("error",()=>Ad(new Error(`Unable to preload CSS for ${ud}`)))})}))}function sd(od){const ld=new Event("vite:preloadError",{cancelable:!0});if(ld.payload=od,window.dispatchEvent(ld),!ld.defaultPrevented)throw od}return rd.then(od=>{for(const ld of od||[])ld.status==="rejected"&&sd(ld.reason);return qa().catch(sd)})},Channel={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:Ra=>Ra>=255?255:Ra<0?0:Ra,g:Ra=>Ra>=255?255:Ra<0?0:Ra,b:Ra=>Ra>=255?255:Ra<0?0:Ra,h:Ra=>Ra%360,s:Ra=>Ra>=100?100:Ra<0?0:Ra,l:Ra=>Ra>=100?100:Ra<0?0:Ra,a:Ra=>Ra>=1?1:Ra<0?0:Ra},toLinear:Ra=>{const qa=Ra/255;return Ra>.03928?Math.pow((qa+.055)/1.055,2.4):qa/12.92},hue2rgb:(Ra,qa,ed)=>(ed<0&&(ed+=1),ed>1&&(ed-=1),ed<1/6?Ra+(qa-Ra)*6*ed:ed<1/2?qa:ed<2/3?Ra+(qa-Ra)*(2/3-ed)*6:Ra),hsl2rgb:({h:Ra,s:qa,l:ed},td)=>{if(!qa)return ed*2.55;Ra/=360,qa/=100,ed/=100;const rd=ed<.5?ed*(1+qa):ed+qa-ed*qa,sd=2*ed-rd;switch(td){case"r":return Channel.hue2rgb(sd,rd,Ra+1/3)*255;case"g":return Channel.hue2rgb(sd,rd,Ra)*255;case"b":return Channel.hue2rgb(sd,rd,Ra-1/3)*255}},rgb2hsl:({r:Ra,g:qa,b:ed},td)=>{Ra/=255,qa/=255,ed/=255;const rd=Math.max(Ra,qa,ed),sd=Math.min(Ra,qa,ed),od=(rd+sd)/2;if(td==="l")return od*100;if(rd===sd)return 0;const ld=rd-sd,ud=od>.5?ld/(2-rd-sd):ld/(rd+sd);if(td==="s")return ud*100;switch(rd){case Ra:return((qa-ed)/ld+(qa<ed?6:0))*60;case qa:return((ed-Ra)/ld+2)*60;case ed:return((Ra-qa)/ld+4)*60;default:return-1}}},Lang={clamp:(Ra,qa,ed)=>qa>ed?Math.min(qa,Math.max(ed,Ra)):Math.min(ed,Math.max(qa,Ra)),round:Ra=>Math.round(Ra*1e10)/1e10},Unit={dec2hex:Ra=>{const qa=Math.round(Ra).toString(16);return qa.length>1?qa:`0${qa}`}},Utils={channel:Channel,lang:Lang,unit:Unit},DEC2HEX={};for(let Ra=0;Ra<=255;Ra++)DEC2HEX[Ra]=Utils.unit.dec2hex(Ra);const TYPE={ALL:0,RGB:1,HSL:2};class Type{constructor(){this.type=TYPE.ALL}get(){return this.type}set(qa){if(this.type&&this.type!==qa)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=qa}reset(){this.type=TYPE.ALL}is(qa){return this.type===qa}}class Chan
`+y_),Ff&&arrayForEach([df,mf,bf],x_=>{y_=stringReplace(y_,x_," ")}),Ld&&Lf?Ld.createHTML(y_):y_},qa.setConfig=function(){let Ih=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};S_(Ih),uh=!0},qa.clearConfig=function(){Qm=null,uh=!1},qa.isValidAttribute=function(Ih,fh,Xh){Qm||S_({});const cm=Om(Ih),jm=Om(fh);return lh(cm,jm,Xh)},qa.addHook=function(Ih,fh){typeof fh=="function"&&(Xd[Ih]=Xd[Ih]||[],arrayPush(Xd[Ih],fh))},qa.removeHook=function(Ih){if(Xd[Ih])return arrayPop(Xd[Ih])},qa.removeHooks=function(Ih){Xd[Ih]&&(Xd[Ih]=[])},qa.removeAllHooks=function(){Xd={}},qa}var purify=createDOMPurify(),__defProp=Object.defineProperty,__name=(Ra,qa)=>__defProp(Ra,"name",{value:qa,configurable:!0}),__export=(Ra,qa)=>{for(var ed in qa)__defProp(Ra,ed,{get:qa[ed],enumerable:!0})},LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},log$1={trace:__name((...Ra)=>{},"trace"),debug:__name((...Ra)=>{},"debug"),info:__name((...Ra)=>{},"info"),warn:__name((...Ra)=>{},"warn"),error:__name((...Ra)=>{},"error"),fatal:__name((...Ra)=>{},"fatal")},setLogLevel=__name(function(Ra="fatal"){let qa=LEVELS.fatal;typeof Ra=="string"?Ra.toLowerCase()in LEVELS&&(qa=LEVELS[Ra]):typeof Ra=="number"&&(qa=Ra),log$1.trace=()=>{},log$1.debug=()=>{},log$1.info=()=>{},log$1.warn=()=>{},log$1.error=()=>{},log$1.fatal=()=>{},qa<=LEVELS.fatal&&(log$1.fatal=console.error?console.error.bind(console,format$1("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",format$1("FATAL"))),qa<=LEVELS.error&&(log$1.error=console.error?console.error.bind(console,format$1("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",format$1("ERROR"))),qa<=LEVELS.warn&&(log$1.warn=console.warn?console.warn.bind(console,format$1("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",format$1("WARN"))),qa<=LEVELS.info&&(log$1.info=console.info?console.info.bind(console,format$1("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",format$1("INFO"))),qa<=LEVELS.debug&&(log$1.debug=console.debug?console.debug.bind(console,format$1("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("DEBUG"))),qa<=LEVELS.trace&&(log$1.trace=console.debug?console.debug.bind(console,format$1("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("TRACE")))},"setLogLevel"),format$1=__name(Ra=>`%c${dayjs2().format("ss.SSS")} : ${Ra} : `,"format"),frontMatterRegex=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,directiveRegex=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,anyCommentRegex=/\s*%%.*\n/gm,ny,UnknownDiagramError=(ny=class extends Error{constructor(qa){super(qa),this.name="UnknownDiagramError"}},__name(ny,"UnknownDiagramError"),ny),detectors={},detectType=__name(function(Ra,qa){Ra=Ra.replace(frontMatterRegex,"").replace(directiveRegex,"").replace(anyCommentRegex,`
`);for(const[ed,{detector:td}]of Object.entries(detectors))if(td(Ra,qa))return ed;throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${Ra}`)},"detectType"),registerLazyLoadedDiagrams=__name((...Ra)=>{for(const{id:qa,detector:ed,loader:td}of Ra)addDetector(qa,ed,td)},"registerLazyLoadedDiagrams"),addDetector=__name((Ra,qa,ed)=>{detectors[Ra]&&log$1.warn(`Detector with key ${Ra} already exists. Overwriting.`),detectors[Ra]={detector:qa,loader:ed},log$1.debug(`Detector with key ${Ra} added${ed?" with loader":""}`)},"addDetector"),getDiagramLoader=__name(Ra=>detectors[Ra].loader,"getDiagramLoader"),assignWithDepth=__name((Ra,qa,{depth:ed=2,clobber:td=!1}={})=>{const rd={depth:ed,clobber:td};return Array.isArray(qa)&&!Array.isArray(Ra)?(qa.forEach(sd=>assignWithDepth(Ra,sd,rd)),Ra):Array.isArray(qa)&&Array.isArray(Ra)?(qa.forEach(sd=>{Ra.includes(sd)||Ra.push(sd)}),Ra):Ra===void 0||ed<=0?Ra!=null&&typeof Ra=="object"&&typeof qa=="object"?Object.assign(Ra,qa):qa:(qa!==void 0&&typeof Ra=="object"&&typeof qa=="object"&&Object.keys(qa).forEach(sd=>{typeof qa[sd]=="object"&&(Ra[sd]===void 0||typeof Ra[sd]=="object")?(Ra[sd]===void 0&&(Ra[sd]=Array.isArray(qa[sd])?[]:{}),Ra[sd]=assignWithDepth(Ra[sd],qa[sd],{depth:ed-1,clobber:td})):(td||typeof Ra[sd]!="object"&&typeof qa[sd]!="object")&&(Ra[sd]=qa[sd])}),Ra)},"assignWithDepth"),assignWithDepth_default=assignWithDepth,oldAttributeBackgroundColorOdd="#ffffff",oldAttributeBackgroundColorEven="#f2f2f2",mkBorder=__name((Ra,qa)=>qa?adjust(Ra,{s:-40,l:10}):adjust(Ra,{s:-40,l:-10}),"mkBorder"),iy,Theme=(iy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var ed,td,rd,sd,od,ld,ud,cd,dd,_d,Ed;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||adjust(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||adjust(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mkBorder(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mkBorder(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||invert(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||invert(this.tertiaryColor),this.lineColor=this.lineColor||invert(this.background),this.arrowheadColor=this.arrowheadColor||invert(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?darken(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextCo
font-family: ${ed.fontFamily};
font-size: ${ed.fontSize};
fill: ${ed.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${ed.errorBkgColor};
}
& .error-text {
fill: ${ed.errorTextColor};
stroke: ${ed.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 1px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-thickness-invisible {
stroke-width: 0;
fill: none;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${ed.lineColor};
stroke: ${ed.lineColor};
}
& .marker.cross {
stroke: ${ed.lineColor};
}
& svg {
font-family: ${ed.fontFamily};
font-size: ${ed.fontSize};
}
& p {
margin: 0
}
${td}
${qa}
`},"getStyles"),addStylesForDiagram=__name((Ra,qa)=>{qa!==void 0&&(themes[Ra]=qa)},"addStylesForDiagram"),styles_default=getStyles$1,commonDb_exports={};__export(commonDb_exports,{clear:()=>clear$1,getAccDescription:()=>getAccDescription,getAccTitle:()=>getAccTitle,getDiagramTitle:()=>getDiagramTitle,setAccDescription:()=>setAccDescription,setAccTitle:()=>setAccTitle,setDiagramTitle:()=>setDiagramTitle});var accTitle="",diagramTitle="",accDescription="",sanitizeText2=__name(Ra=>sanitizeText(Ra,getConfig$1()),"sanitizeText"),clear$1=__name(()=>{accTitle="",accDescription="",diagramTitle=""},"clear"),setAccTitle=__name(Ra=>{accTitle=sanitizeText2(Ra).replace(/^\s+/g,"")},"setAccTitle"),getAccTitle=__name(()=>accTitle,"getAccTitle"),setAccDescription=__name(Ra=>{accDescription=sanitizeText2(Ra).replace(/\n\s+/g,`
`)},"setAccDescription"),getAccDescription=__name(()=>accDescription,"getAccDescription"),setDiagramTitle=__name(Ra=>{diagramTitle=sanitizeText2(Ra)},"setDiagramTitle"),getDiagramTitle=__name(()=>diagramTitle,"getDiagramTitle"),log2=log$1,setLogLevel2=setLogLevel,getConfig2=getConfig$1,setConfig2=setConfig,defaultConfig2=defaultConfig,sanitizeText3=__name(Ra=>sanitizeText(Ra,getConfig2()),"sanitizeText"),setupGraphViewbox2=setupGraphViewbox,getCommonDb=__name(()=>commonDb_exports,"getCommonDb"),diagrams={},registerDiagram=__name((Ra,qa,ed)=>{var td;diagrams[Ra]&&log2.warn(`Diagram with id ${Ra} already registered. Overwriting.`),diagrams[Ra]=qa,ed&&addDetector(Ra,ed),addStylesForDiagram(Ra,qa.styles),(td=qa.injectUtils)==null||td.call(qa,log2,setLogLevel2,getConfig2,sanitizeText3,setupGraphViewbox2,getCommonDb(),()=>{})},"registerDiagram"),getDiagram=__name(Ra=>{if(Ra in diagrams)return diagrams[Ra];throw new DiagramNotFoundError(Ra)},"getDiagram"),Ty,DiagramNotFoundError=(Ty=class extends Error{constructor(qa){super(`Diagram ${qa} not found.`)}},__name(Ty,"DiagramNotFoundError"),Ty);const defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1}),defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(Ra,qa,ed,td="")=>{const rd=Ra.split(":");if(Ra.slice(0,1)==="@"){if(rd.length<2||rd.length>3)return null;td=rd.shift().slice(1)}if(rd.length>3||!rd.length)return null;if(rd.length>1){const ld=rd.pop(),ud=rd.pop(),cd={provider:rd.length>0?rd[0]:td,prefix:ud,name:ld};return validateIconName(cd)?cd:null}const sd=rd[0],od=sd.split("-");if(od.length>1){const ld={provider:td,prefix:od.shift(),name:od.join("-")};return validateIconName(ld)?ld:null}if(ed&&td===""){const ld={provider:td,prefix:"",name:sd};return validateIconName(ld,ed)?ld:null}return null},validateIconName=(Ra,qa)=>Ra?!!((Ra.provider===""||Ra.provider.match(matchIconName))&&(qa&&Ra.prefix===""||Ra.prefix.match(matchIconName))&&Ra.name.match(matchIconName)):!1;function mergeIconTransformations(Ra,qa){const ed={};!Ra.hFlip!=!qa.hFlip&&(ed.hFlip=!0),!Ra.vFlip!=!qa.vFlip&&(ed.vFlip=!0);const td=((Ra.rotate||0)+(qa.rotate||0))%4;return td&&(ed.rotate=td),ed}function mergeIconData(Ra,qa){const ed=mergeIconTransformations(Ra,qa);for(const td in defaultExtendedIconProps)td in defaultIconTransformations?td in Ra&&!(td in ed)&&(ed[td]=defaultIconTransformations[td]):td in qa?ed[td]=qa[td]:td in Ra&&(ed[td]=Ra[td]);return ed}function getIconsTree(Ra,qa){const ed=Ra.icons,td=Ra.aliases||Object.create(null),rd=Object.create(null);function sd(od){if(ed[od])return rd[od]=[];if(!(od in rd)){rd[od]=null;const ld=td[od]&&td[od].parent,ud=ld&&sd(ld);ud&&(rd[od]=[ld].concat(ud))}return rd[od]}return(qa||Object.keys(ed).concat(Object.keys(td))).forEach(sd),rd}function internalGetIconData(Ra,qa,ed){const td=Ra.icons,rd=Ra.aliases||Object.create(null);let sd={};function od(ld){sd=mergeIconData(td[ld]||rd[ld],sd)}return od(qa),ed.forEach(od),mergeIconData(Ra,sd)}function getIconData(Ra,qa){if(Ra.icons[qa])return internalGetIconData(Ra,qa,[]);const ed=getIconsTree(Ra,[qa])[qa];return ed?internalGetIconData(Ra,qa,ed):null}const unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(Ra,qa,ed){if(qa===1)return Ra;if(ed=ed||100,typeof Ra=="number")return Math.ceil(Ra*qa*ed)/ed;if(typeof Ra!="string")return Ra;const td=Ra.split(unitsSplit);if(td===null||!td.length)return Ra;const rd=[];let sd=td.shift(),od=unitsTest.test(sd);for(;;){if(od){const ld=parseFloat(sd);isNaN(ld)?rd.push(sd):rd.push(Math.ceil(ld*qa*ed)/ed)}else rd.push(sd);if(sd=td.shift(),sd===void 0)return rd.join("");od=!od}}function splitSVGDefs(Ra,qa="defs"){let ed=
`,"ig");Ra=Ra.trim().replace(rd,"").replace(/'/gm,'"'),log$1.debug(`Detecting diagram directive${qa!==null?" type:"+qa:""} based on the text:${Ra}`);let sd;const od=[];for(;(sd=directiveRegex.exec(Ra))!==null;)if(sd.index===directiveRegex.lastIndex&&directiveRegex.lastIndex++,sd&&!qa||qa&&((ed=sd[1])!=null&&ed.match(qa))||qa&&((td=sd[2])!=null&&td.match(qa))){const ld=sd[1]?sd[1]:sd[2],ud=sd[3]?sd[3].trim():sd[4]?JSON.parse(sd[4].trim()):null;od.push({type:ld,args:ud})}return od.length===0?{type:Ra,args:null}:od.length===1?od[0]:od}catch(rd){return log$1.error(`ERROR: ${rd.message} - Unable to parse directive type: '${qa}' based on the text: '${Ra}'`),{type:void 0,args:null}}},"detectDirective"),removeDirectives=__name(function(Ra){return Ra.replace(directiveRegex,"")},"removeDirectives"),isSubstringInArray=__name(function(Ra,qa){for(const[ed,td]of qa.entries())if(td.match(Ra))return ed;return-1},"isSubstringInArray");function interpolateToCurve(Ra,qa){if(!Ra)return qa;const ed=`curve${Ra.charAt(0).toUpperCase()+Ra.slice(1)}`;return d3CurveTypes[ed]??qa}__name(interpolateToCurve,"interpolateToCurve");function formatUrl(Ra,qa){const ed=Ra.trim();if(ed)return qa.securityLevel!=="loose"?sanitizeUrl_1(ed):ed}__name(formatUrl,"formatUrl");var runFunc=__name((Ra,...qa)=>{const ed=Ra.split("."),td=ed.length-1,rd=ed[td];let sd=window;for(let od=0;od<td;od++)if(sd=sd[ed[od]],!sd){log$1.error(`Function name: ${Ra} not found in window`);return}sd[rd](...qa)},"runFunc");function distance(Ra,qa){return!Ra||!qa?0:Math.sqrt(Math.pow(qa.x-Ra.x,2)+Math.pow(qa.y-Ra.y,2))}__name(distance,"distance");function traverseEdge(Ra){let qa,ed=0;Ra.forEach(rd=>{ed+=distance(rd,qa),qa=rd});const td=ed/2;return calculatePoint(Ra,td)}__name(traverseEdge,"traverseEdge");function calcLabelPosition(Ra){return Ra.length===1?Ra[0]:traverseEdge(Ra)}__name(calcLabelPosition,"calcLabelPosition");var roundNumber=__name((Ra,qa=2)=>{const ed=Math.pow(10,qa);return Math.round(Ra*ed)/ed},"roundNumber"),calculatePoint=__name((Ra,qa)=>{let ed,td=qa;for(const rd of Ra){if(ed){const sd=distance(rd,ed);if(sd<td)td-=sd;else{const od=td/sd;if(od<=0)return ed;if(od>=1)return{x:rd.x,y:rd.y};if(od>0&&od<1)return{x:roundNumber((1-od)*ed.x+od*rd.x,5),y:roundNumber((1-od)*ed.y+od*rd.y,5)}}}ed=rd}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),calcCardinalityPosition=__name((Ra,qa,ed)=>{log$1.info(`our points ${JSON.stringify(qa)}`),qa[0]!==ed&&(qa=qa.reverse());const rd=calculatePoint(qa,25),sd=Ra?10:5,od=Math.atan2(qa[0].y-rd.y,qa[0].x-rd.x),ld={x:0,y:0};return ld.x=Math.sin(od)*sd+(qa[0].x+rd.x)/2,ld.y=-Math.cos(od)*sd+(qa[0].y+rd.y)/2,ld},"calcCardinalityPosition");function calcTerminalLabelPosition(Ra,qa,ed){const td=structuredClone(ed);log$1.info("our points",td),qa!=="start_left"&&qa!=="start_right"&&td.reverse();const rd=25+Ra,sd=calculatePoint(td,rd),od=10+Ra*.5,ld=Math.atan2(td[0].y-sd.y,td[0].x-sd.x),ud={x:0,y:0};return qa==="start_left"?(ud.x=Math.sin(ld+Math.PI)*od+(td[0].x+sd.x)/2,ud.y=-Math.cos(ld+Math.PI)*od+(td[0].y+sd.y)/2):qa==="end_right"?(ud.x=Math.sin(ld-Math.PI)*od+(td[0].x+sd.x)/2-5,ud.y=-Math.cos(ld-Math.PI)*od+(td[0].y+sd.y)/2-5):qa==="end_left"?(ud.x=Math.sin(ld)*od+(td[0].x+sd.x)/2-5,ud.y=-Math.cos(ld)*od+(td[0].y+sd.y)/2-5):(ud.x=Math.sin(ld)*od+(td[0].x+sd.x)/2,ud.y=-Math.cos(ld)*od+(td[0].y+sd.y)/2),ud}__name(calcTerminalLabelPosition,"calcTerminalLabelPosition");function getStylesFromArray(Ra){let qa="",ed="";for(const td of Ra)td!==void 0&&(td.startsWith("color:")||td.startsWith("text-align:")?ed=ed+td+";":qa=qa+td+";");return{style:qa,labelStyle:ed}}__name(getStylesFromArray,"getStylesFromArray");var cnt=0,generateId=__name(()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt),"generateId");function makeRandomHex(Ra){let qa="";const ed="0123456789abcdef",td=ed.length;for(let rd=0;rd<Ra;rd++)qa+=ed.charAt(Math.floor(Math.random()*td));return qa}__name(makeRandomHex,"makeRandomHex");var random=__name(Ra=>makeRandomHex(Ra.length),"random"),getTextObj=__name(function(){return{x:0,y:0,fill:vo
`).map(rd=>{const sd=rd.match(/^\s+/);if(sd===null)return rd;const[od]=sd;return od.length>=td.length?rd.slice(td.length):rd}).join(`
`)}class _Tokenizer{constructor(qa){Ym(this,"options");Ym(this,"rules");Ym(this,"lexer");this.options=qa||_defaults}space(qa){const ed=this.rules.block.newline.exec(qa);if(ed&&ed[0].length>0)return{type:"space",raw:ed[0]}}code(qa){const ed=this.rules.block.code.exec(qa);if(ed){const td=ed[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ed[0],codeBlockStyle:"indented",text:this.options.pedantic?td:rtrim(td,`
`)}}}fences(qa){const ed=this.rules.block.fences.exec(qa);if(ed){const td=ed[0],rd=indentCodeCompensation(td,ed[3]||"");return{type:"code",raw:td,lang:ed[2]?ed[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):ed[2],text:rd}}}heading(qa){const ed=this.rules.block.heading.exec(qa);if(ed){let td=ed[2].trim();if(/#$/.test(td)){const rd=rtrim(td,"#");(this.options.pedantic||!rd||/ $/.test(rd))&&(td=rd.trim())}return{type:"heading",raw:ed[0],depth:ed[1].length,text:td,tokens:this.lexer.inline(td)}}}hr(qa){const ed=this.rules.block.hr.exec(qa);if(ed)return{type:"hr",raw:rtrim(ed[0],`
`)}}blockquote(qa){const ed=this.rules.block.blockquote.exec(qa);if(ed){let td=rtrim(ed[0],`
`).split(`
`),rd="",sd="";const od=[];for(;td.length>0;){let ld=!1;const ud=[];let cd;for(cd=0;cd<td.length;cd++)if(/^ {0,3}>/.test(td[cd]))ud.push(td[cd]),ld=!0;else if(!ld)ud.push(td[cd]);else break;td=td.slice(cd);const dd=ud.join(`
`),_d=dd.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");rd=rd?`${rd}
${dd}`:dd,sd=sd?`${sd}
${_d}`:_d;const Ed=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(_d,od,!0),this.lexer.state.top=Ed,td.length===0)break;const Ad=od[od.length-1];if((Ad==null?void 0:Ad.type)==="code")break;if((Ad==null?void 0:Ad.type)==="blockquote"){const Td=Ad,Id=Td.raw+`
`+td.join(`
`),Bd=this.blockquote(Id);od[od.length-1]=Bd,rd=rd.substring(0,rd.length-Td.raw.length)+Bd.raw,sd=sd.substring(0,sd.length-Td.text.length)+Bd.text;break}else if((Ad==null?void 0:Ad.type)==="list"){const Td=Ad,Id=Td.raw+`
`+td.join(`
`),Bd=this.list(Id);od[od.length-1]=Bd,rd=rd.substring(0,rd.length-Ad.raw.length)+Bd.raw,sd=sd.substring(0,sd.length-Td.raw.length)+Bd.raw,td=Id.substring(od[od.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:rd,tokens:od,text:sd}}}list(qa){let ed=this.rules.block.list.exec(qa);if(ed){let td=ed[1].trim();const rd=td.length>1,sd={type:"list",raw:"",ordered:rd,start:rd?+td.slice(0,-1):"",loose:!1,items:[]};td=rd?`\\d{1,9}\\${td.slice(-1)}`:`\\${td}`,this.options.pedantic&&(td=rd?td:"[*+-]");const od=new RegExp(`^( {0,3}${td})((?:[ ][^\\n]*)?(?:\\n|$))`);let ld=!1;for(;qa;){let ud=!1,cd="",dd="";if(!(ed=od.exec(qa))||this.rules.block.hr.test(qa))break;cd=ed[0],qa=qa.substring(cd.length);let _d=ed[2].split(`
`,1)[0].replace(/^\t+/,Rd=>" ".repeat(3*Rd.length)),Ed=qa.split(`
`,1)[0],Ad=!_d.trim(),Td=0;if(this.options.pedantic?(Td=2,dd=_d.trimStart()):Ad?Td=ed[1].length+1:(Td=ed[2].search(/[^ ]/),Td=Td>4?1:Td,dd=_d.slice(Td),Td+=ed[1].length),Ad&&/^ *$/.test(Ed)&&(cd+=Ed+`
`,qa=qa.substring(Ed.length+1),ud=!0),!ud){const Rd=new RegExp(`^ {0,${Math.min(3,Td-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Od=new RegExp(`^ {0,${Math.min(3,Td-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Md=new RegExp(`^ {0,${Math.min(3,Td-1)}}(?:\`\`\`|~~~)`),Ld=new RegExp(`^ {0,${Math.min(3,Td-1)}}#`);for(;qa;){const Fd=qa.split(`
`,1)[0];if(Ed=Fd,this.options.pedantic&&(Ed=Ed.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),Md.test(Ed)||Ld.test(Ed)||Rd.test(Ed)||Od.test(qa))break;if(Ed.search(/[^ ]/)>=Td||!Ed.trim())dd+=`
`+Ed.slice(Td);else{if(Ad||_d.search(/[^ ]/)>=4||Md.test(_d)||Ld.test(_d)||Od.test(_d))break;dd+=`
`+Ed}!Ad&&!Ed.trim()&&(Ad=!0),cd+=Fd+`
`,qa=qa.substring(Fd.length+1),_d=Ed.slice(Td)}}sd.loose||(ld?sd.loose=!0:/\n *\n *$/.test(cd)&&(ld=!0));let Id=null,Bd;this.options.gfm&&(Id=/^\[[ xX]\] /.exec(dd),Id&&(Bd=Id[0]!=="[ ] ",dd=dd.replace(/^\[[ xX]\] +/,""))),sd.items.push({type:"list_item",raw:cd,task:!!Id,checked:Bd,loose:!1,text:dd,tokens:[]}),sd.raw+=cd}sd.items[sd.items.length-1].raw=sd.items[sd.items.length-1].raw.trimEnd(),sd.items[sd.items.length-1].text=sd.items[sd.items.length-1].text.trimEnd(),sd.raw=sd.raw.trimEnd();for(let ud=0;ud<sd.items.length;ud++)if(this.lexer.state.top=!1,sd.items[ud].tokens=this.lexer.blockTokens(sd.items[ud].text,[]),!sd.loose){const cd=sd.items[ud].tokens.filter(_d=>_d.type==="space"),dd=cd.length>0&&cd.some(_d=>/\n.*\n/.test(_d.raw));sd.loose=dd}if(sd.loose)for(let ud=0;ud<sd.items.length;ud++)sd.items[ud].loose=!0;return sd}}html(qa){const ed=this.rules.block.html.exec(qa);if(ed)return{type:"html",block:!0,raw:ed[0],pre:ed[1]==="pre"||ed[1]==="script"||ed[1]==="style",text:ed[0]}}def(qa){const ed=this.rules.block.def.exec(qa);if(ed){const td=ed[1].toLowerCase().replace(/\s+/g," "),rd=ed[2]?ed[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",sd=ed[3]?ed[3].substring(1,ed[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):ed[3];return{type:"def",tag:td,raw:ed[0],href:rd,title:sd}}}table(qa){const ed=this.rules.block.table.exec(qa);if(!ed||!/[:|]/.test(ed[2]))return;const td=splitCells(ed[1]),rd=ed[2].replace(/^\||\| *$/g,"").split("|"),sd=ed[3]&&ed[3].trim()?ed[3].replace(/\n[ \t]*$/,"").split(`
`):[],od={type:"table",raw:ed[0],header:[],align:[],rows:[]};if(td.length===rd.length){for(const ld of rd)/^ *-+: *$/.test(ld)?od.align.push("right"):/^ *:-+: *$/.test(ld)?od.align.push("center"):/^ *:-+ *$/.test(ld)?od.align.push("left"):od.align.push(null);for(let ld=0;ld<td.length;ld++)od.header.push({text:td[ld],tokens:this.lexer.inline(td[ld]),header:!0,align:od.align[ld]});for(const ld of sd)od.rows.push(splitCells(ld,od.header.length).map((ud,cd)=>({text:ud,tokens:this.lexer.inline(ud),header:!1,align:od.align[cd]})));return od}}lheading(qa){const ed=this.rules.block.lheading.exec(qa);if(ed)return{type:"heading",raw:ed[0],depth:ed[2].charAt(0)==="="?1:2,text:ed[1],tokens:this.lexer.inline(ed[1])}}paragraph(qa){const ed=this.rules.block.paragraph.exec(qa);if(ed){const td=ed[1].charAt(ed[1].length-1)===`
`?ed[1].slice(0,-1):ed[1];return{type:"paragraph",raw:ed[0],text:td,tokens:this.lexer.inline(td)}}}text(qa){const ed=this.rules.block.text.exec(qa);if(ed)return{type:"text",raw:ed[0],text:ed[0],tokens:this.lexer.inline(ed[0])}}escape(qa){const ed=this.rules.inline.escape.exec(qa);if(ed)return{type:"escape",raw:ed[0],text:escape$1(ed[1])}}tag(qa){const ed=this.rules.inline.tag.exec(qa);if(ed)return!this.lexer.state.inLink&&/^<a /i.test(ed[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(ed[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(ed[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ed[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:ed[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:ed[0]}}link(qa){const ed=this.rules.inline.link.exec(qa);if(ed){const td=ed[2].trim();if(!this.options.pedantic&&/^</.test(td)){if(!/>$/.test(td))return;const od=rtrim(td.slice(0,-1),"\\");if((td.length-od.length)%2===0)return}else{const od=findClosingBracket(ed[2],"()");if(od>-1){const ud=(ed[0].indexOf("!")===0?5:4)+ed[1].length+od;ed[2]=ed[2].substring(0,od),ed[0]=ed[0].substring(0,ud).trim(),ed[3]=""}}let rd=ed[2],sd="";if(this.options.pedantic){const od=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(rd);od&&(rd=od[1],sd=od[3])}else sd=ed[3]?ed[3].slice(1,-1):"";return rd=rd.trim(),/^</.test(rd)&&(this.options.pedantic&&!/>$/.test(td)?rd=rd.slice(1):rd=rd.slice(1,-1)),outputLink(ed,{href:rd&&rd.replace(this.rules.inline.anyPunctuation,"$1"),title:sd&&sd.replace(this.rules.inline.anyPunctuation,"$1")},ed[0],this.lexer)}}reflink(qa,ed){let td;if((td=this.rules.inline.reflink.exec(qa))||(td=this.rules.inline.nolink.exec(qa))){const rd=(td[2]||td[1]).replace(/\s+/g," "),sd=ed[rd.toLowerCase()];if(!sd){const od=td[0].charAt(0);return{type:"text",raw:od,text:od}}return outputLink(td,sd,td[0],this.lexer)}}emStrong(qa,ed,td=""){let rd=this.rules.inline.emStrongLDelim.exec(qa);if(!rd||rd[3]&&td.match(/[\p{L}\p{N}]/u))return;if(!(rd[1]||rd[2]||"")||!td||this.rules.inline.punctuation.exec(td)){const od=[...rd[0]].length-1;let ld,ud,cd=od,dd=0;const _d=rd[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_d.lastIndex=0,ed=ed.slice(-1*qa.length+od);(rd=_d.exec(ed))!=null;){if(ld=rd[1]||rd[2]||rd[3]||rd[4]||rd[5]||rd[6],!ld)continue;if(ud=[...ld].length,rd[3]||rd[4]){cd+=ud;continue}else if((rd[5]||rd[6])&&od%3&&!((od+ud)%3)){dd+=ud;continue}if(cd-=ud,cd>0)continue;ud=Math.min(ud,ud+cd+dd);const Ed=[...rd[0]][0].length,Ad=qa.slice(0,od+rd.index+Ed+ud);if(Math.min(od,ud)%2){const Id=Ad.slice(1,-1);return{type:"em",raw:Ad,text:Id,tokens:this.lexer.inlineTokens(Id)}}const Td=Ad.slice(2,-2);return{type:"strong",raw:Ad,text:Td,tokens:this.lexer.inlineTokens(Td)}}}}codespan(qa){const ed=this.rules.inline.code.exec(qa);if(ed){let td=ed[2].replace(/\n/g," ");const rd=/[^ ]/.test(td),sd=/^ /.test(td)&&/ $/.test(td);return rd&&sd&&(td=td.substring(1,td.length-1)),td=escape$1(td,!0),{type:"codespan",raw:ed[0],text:td}}}br(qa){const ed=this.rules.inline.br.exec(qa);if(ed)return{type:"br",raw:ed[0]}}del(qa){const ed=this.rules.inline.del.exec(qa);if(ed)return{type:"del",raw:ed[0],text:ed[2],tokens:this.lexer.inlineTokens(ed[2])}}autolink(qa){const ed=this.rules.inline.autolink.exec(qa);if(ed){let td,rd;return ed[2]==="@"?(td=escape$1(ed[1]),rd="mailto:"+td):(td=escape$1(ed[1]),rd=td),{type:"link",raw:ed[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}url(qa){var td;let ed;if(ed=this.rules.inline.url.exec(qa)){let rd,sd;if(ed[2]==="@")rd=escape$1(ed[0]),sd="mailto:"+rd;else{let od;do od=ed[0],ed[0]=((td=this.rules.inline._backpedal.exec(ed[0]))==null?void 0:td[0])??"";while(od!==ed[0]);rd=escape$1(ed[0]),ed[1]==="www."?sd="http://"+ed[0]:sd=ed[0]}return{type:"link",raw:ed[0],text:rd,href:sd,tokens:[{type:"text",raw:rd,text:rd}]}}}inlineText(qa){const ed=this.rules.inline.text.exec(qa);if(ed){let td;return this.lexer.state.inRawBlock?td=ed[0]:td=esca
]`).replace("lheading",lheading).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape$2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,inlineCode=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br=/^( {2,}|\\)\n(?!\s*$)/,inlineText=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_punctuation="\\p{P}\\p{S}",punctuation=edit(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,_punctuation).getRegex(),blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,emStrongLDelim=edit(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,_punctuation).getRegex(),emStrongRDelimAst=edit("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,_punctuation).getRegex(),emStrongRDelimUnd=edit("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,_punctuation).getRegex(),anyPunctuation=edit(/\\([punct])/,"gu").replace(/punct/g,_punctuation).getRegex(),autolink=edit(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_inlineComment=edit(_comment).replace("(?:-->|$)","-->").getRegex(),tag=edit("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_inlineComment).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_inlineLabel=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,link=edit(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",_inlineLabel).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),reflink=edit(/^!?\[(label)\]\[(ref)\]/).replace("label",_inlineLabel).replace("ref",_blockLabel).getRegex(),nolink=edit(/^!?\[(ref)\](?:\[\])?/).replace("ref",_blockLabel).getRegex(),reflinkSearch=edit("reflink|nolink(?!\\()","g").replace("reflink",reflink).replace("nolink",nolink).getRegex(),inlineNormal={_backpedal:noopTest,anyPunctuation,autolink,blockSkip,br,code:inlineCode,del:noopTest,emStrongLDelim,emStrongRDelimAst,emStrongRDelimUnd,escape:escape$2,link,nolink,punctuation,reflink,reflinkSearch,tag,text:inlineText,url:noopTest},inlinePedantic={...inlineNormal,link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",_inlineLabel).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_inlineLabel).getRegex()},inlineGfm={...inlineNormal,escape:edit(escape$2).replace("])","~|])").getRegex(),url:edit(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},inlineBreaks={...inlineGfm,br:edit(br).replace("{2,}","*").getRegex(),text:edit(inlineGfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},block={normal:blockNormal,gfm:blockGfm,pedantic:blockPedantic},inline={normal:inlineNormal,gfm:inlineGfm,breaks:inlineBreaks,pedantic:inlinePedantic};class _Lexer{constructor(qa){Ym(this,"
`),this.blockTokens(qa,this.tokens);for(let ed=0;ed<this.inlineQueue.length;ed++){const td=this.inlineQueue[ed];this.inlineTokens(td.src,td.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,ed=[],td=!1){this.options.pedantic?qa=qa.replace(/\t/g," ").replace(/^ +$/gm,""):qa=qa.replace(/^( *)(\t+)/gm,(ld,ud,cd)=>ud+" ".repeat(cd.length));let rd,sd,od;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(ld=>(rd=ld.call({lexer:this},qa,ed))?(qa=qa.substring(rd.raw.length),ed.push(rd),!0):!1))){if(rd=this.tokenizer.space(qa)){qa=qa.substring(rd.raw.length),rd.raw.length===1&&ed.length>0?ed[ed.length-1].raw+=`
`:ed.push(rd);continue}if(rd=this.tokenizer.code(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&(sd.type==="paragraph"||sd.type==="text")?(sd.raw+=`
`+rd.raw,sd.text+=`
`+rd.text,this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd);continue}if(rd=this.tokenizer.fences(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.heading(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.hr(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.blockquote(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.list(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.html(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.def(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&(sd.type==="paragraph"||sd.type==="text")?(sd.raw+=`
`+rd.raw,sd.text+=`
`+rd.raw,this.inlineQueue[this.inlineQueue.length-1].src=sd.text):this.tokens.links[rd.tag]||(this.tokens.links[rd.tag]={href:rd.href,title:rd.title});continue}if(rd=this.tokenizer.table(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(rd=this.tokenizer.lheading(qa)){qa=qa.substring(rd.raw.length),ed.push(rd);continue}if(od=qa,this.options.extensions&&this.options.extensions.startBlock){let ld=1/0;const ud=qa.slice(1);let cd;this.options.extensions.startBlock.forEach(dd=>{cd=dd.call({lexer:this},ud),typeof cd=="number"&&cd>=0&&(ld=Math.min(ld,cd))}),ld<1/0&&ld>=0&&(od=qa.substring(0,ld+1))}if(this.state.top&&(rd=this.tokenizer.paragraph(od))){sd=ed[ed.length-1],td&&(sd==null?void 0:sd.type)==="paragraph"?(sd.raw+=`
`+rd.raw,sd.text+=`
`+rd.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd),td=od.length!==qa.length,qa=qa.substring(rd.raw.length);continue}if(rd=this.tokenizer.text(qa)){qa=qa.substring(rd.raw.length),sd=ed[ed.length-1],sd&&sd.type==="text"?(sd.raw+=`
`+rd.raw,sd.text+=`
`+rd.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=sd.text):ed.push(rd);continue}if(qa){const ld="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ld);break}else throw new Error(ld)}}return this.state.top=!0,ed}inline(qa,ed=[]){return this.inlineQueue.push({src:qa,tokens:ed}),ed}inlineTokens(qa,ed=[]){let td,rd,sd,od=qa,ld,ud,cd;if(this.tokens.links){const dd=Object.keys(this.tokens.links);if(dd.length>0)for(;(ld=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)dd.includes(ld[0].slice(ld[0].lastIndexOf("[")+1,-1))&&(od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ld=this.tokenizer.rules.inline.blockSkip.exec(od))!=null;)od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(ld=this.tokenizer.rules.inline.anyPunctuation.exec(od))!=null;)od=od.slice(0,ld.index)+"++"+od.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(ud||(cd=""),ud=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(dd=>(td=dd.call({lexer:this},qa,ed))?(qa=qa.substring(td.raw.length),ed.push(td),!0):!1))){if(td=this.tokenizer.escape(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.tag(qa)){qa=qa.substring(td.raw.length),rd=ed[ed.length-1],rd&&td.type==="text"&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(td=this.tokenizer.link(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(td.raw.length),rd=ed[ed.length-1],rd&&td.type==="text"&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(td=this.tokenizer.emStrong(qa,od,cd)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.codespan(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.br(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.del(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(td=this.tokenizer.autolink(qa)){qa=qa.substring(td.raw.length),ed.push(td);continue}if(!this.state.inLink&&(td=this.tokenizer.url(qa))){qa=qa.substring(td.raw.length),ed.push(td);continue}if(sd=qa,this.options.extensions&&this.options.extensions.startInline){let dd=1/0;const _d=qa.slice(1);let Ed;this.options.extensions.startInline.forEach(Ad=>{Ed=Ad.call({lexer:this},_d),typeof Ed=="number"&&Ed>=0&&(dd=Math.min(dd,Ed))}),dd<1/0&&dd>=0&&(sd=qa.substring(0,dd+1))}if(td=this.tokenizer.inlineText(sd)){qa=qa.substring(td.raw.length),td.raw.slice(-1)!=="_"&&(cd=td.raw.slice(-1)),ud=!0,rd=ed[ed.length-1],rd&&rd.type==="text"?(rd.raw+=td.raw,rd.text+=td.text):ed.push(td);continue}if(qa){const dd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(dd);break}else throw new Error(dd)}}return ed}}class _Renderer{constructor(qa){Ym(this,"options");Ym(this,"parser");this.options=qa||_defaults}space(qa){return""}code({text:qa,lang:ed,escaped:td}){var od;const rd=(od=(ed||"").match(/^\S*/))==null?void 0:od[0],sd=qa.replace(/\n$/,"")+`
`;return rd?'<pre><code class="language-'+escape$1(rd)+'">'+(td?sd:escape$1(sd,!0))+`</code></pre>
`:"<pre><code>"+(td?sd:escape$1(sd,!0))+`</code></pre>
`}blockquote({tokens:qa}){return`<blockquote>
${this.parser.parse(qa)}</blockquote>
`}html({text:qa}){return qa}heading({tokens:qa,depth:ed}){return`<h${ed}>${this.parser.parseInline(qa)}</h${ed}>
`}hr(qa){return`<hr>
`}list(qa){const ed=qa.ordered,td=qa.start;let rd="";for(let ld=0;ld<qa.items.length;ld++){const ud=qa.items[ld];rd+=this.listitem(ud)}const sd=ed?"ol":"ul",od=ed&&td!==1?' start="'+td+'"':"";return"<"+sd+od+`>
`+rd+"</"+sd+`>
`}listitem(qa){let ed="";if(qa.task){const td=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=td+" "+qa.tokens[0].text,qa.tokens[0].tokens&&qa.tokens[0].tokens.length>0&&qa.tokens[0].tokens[0].type==="text"&&(qa.tokens[0].tokens[0].text=td+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:td+" ",text:td+" "}):ed+=td+" "}return ed+=this.parser.parse(qa.tokens,!!qa.loose),`<li>${ed}</li>
`}checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return`<p>${this.parser.parseInline(qa)}</p>
`}table(qa){let ed="",td="";for(let sd=0;sd<qa.header.length;sd++)td+=this.tablecell(qa.header[sd]);ed+=this.tablerow({text:td});let rd="";for(let sd=0;sd<qa.rows.length;sd++){const od=qa.rows[sd];td="";for(let ld=0;ld<od.length;ld++)td+=this.tablecell(od[ld]);rd+=this.tablerow({text:td})}return rd&&(rd=`<tbody>${rd}</tbody>`),`<table>
<thead>
`+ed+`</thead>
`+rd+`</table>
`}tablerow({text:qa}){return`<tr>
${qa}</tr>
`}tablecell(qa){const ed=this.parser.parseInline(qa.tokens),td=qa.header?"th":"td";return(qa.align?`<${td} align="${qa.align}">`:`<${td}>`)+ed+`</${td}>
`}strong({tokens:qa}){return`<strong>${this.parser.parseInline(qa)}</strong>`}em({tokens:qa}){return`<em>${this.parser.parseInline(qa)}</em>`}codespan({text:qa}){return`<code>${qa}</code>`}br(qa){return"<br>"}del({tokens:qa}){return`<del>${this.parser.parseInline(qa)}</del>`}link({href:qa,title:ed,tokens:td}){const rd=this.parser.parseInline(td),sd=cleanUrl(qa);if(sd===null)return rd;qa=sd;let od='<a href="'+qa+'"';return ed&&(od+=' title="'+ed+'"'),od+=">"+rd+"</a>",od}image({href:qa,title:ed,text:td}){const rd=cleanUrl(qa);if(rd===null)return td;qa=rd;let sd=`<img src="${qa}" alt="${td}"`;return ed&&(sd+=` title="${ed}"`),sd+=">",sd}text(qa){return"tokens"in qa&&qa.tokens?this.parser.parseInline(qa.tokens):qa.text}}class _TextRenderer{strong({text:qa}){return qa}em({text:qa}){return qa}codespan({text:qa}){return qa}del({text:qa}){return qa}html({text:qa}){return qa}text({text:qa}){return qa}link({text:qa}){return""+qa}image({text:qa}){return""+qa}br(){return""}}class _Parser{constructor(qa){Ym(this,"options");Ym(this,"renderer");Ym(this,"textRenderer");this.options=qa||_defaults,this.options.renderer=this.options.renderer||new _Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _TextRenderer}static parse(qa,ed){return new _Parser(ed).parse(qa)}static parseInline(qa,ed){return new _Parser(ed).parseInline(qa)}parse(qa,ed=!0){let td="";for(let rd=0;rd<qa.length;rd++){const sd=qa[rd];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[sd.type]){const ld=sd,ud=this.options.extensions.renderers[ld.type].call({parser:this},ld);if(ud!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ld.type)){td+=ud||"";continue}}const od=sd;switch(od.type){case"space":{td+=this.renderer.space(od);continue}case"hr":{td+=this.renderer.hr(od);continue}case"heading":{td+=this.renderer.heading(od);continue}case"code":{td+=this.renderer.code(od);continue}case"table":{td+=this.renderer.table(od);continue}case"blockquote":{td+=this.renderer.blockquote(od);continue}case"list":{td+=this.renderer.list(od);continue}case"html":{td+=this.renderer.html(od);continue}case"paragraph":{td+=this.renderer.paragraph(od);continue}case"text":{let ld=od,ud=this.renderer.text(ld);for(;rd+1<qa.length&&qa[rd+1].type==="text";)ld=qa[++rd],ud+=`
`+this.renderer.text(ld);ed?td+=this.renderer.paragraph({type:"paragraph",raw:ud,text:ud,tokens:[{type:"text",raw:ud,text:ud}]}):td+=ud;continue}default:{const ld='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(ld),"";throw new Error(ld)}}}return td}parseInline(qa,ed){ed=ed||this.renderer;let td="";for(let rd=0;rd<qa.length;rd++){const sd=qa[rd];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[sd.type]){const ld=this.options.extensions.renderers[sd.type].call({parser:this},sd);if(ld!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(sd.type)){td+=ld||"";continue}}const od=sd;switch(od.type){case"escape":{td+=ed.text(od);break}case"html":{td+=ed.html(od);break}case"link":{td+=ed.link(od);break}case"image":{td+=ed.image(od);break}case"strong":{td+=ed.strong(od);break}case"em":{td+=ed.em(od);break}case"codespan":{td+=ed.codespan(od);break}case"br":{td+=ed.br(od);break}case"del":{td+=ed.del(od);break}case"text":{td+=ed.text(od);break}default:{const ld='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(ld),"";throw new Error(ld)}}}return td}}class _Hooks{constructor(qa){Ym(this,"options");this.options=qa||_defaults}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}}Ym(_Hooks,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Jb,aS,E2,sS;class Marked{constructor(...qa){eS(this,Jb);Ym(this,"defaults",_getDefaults());Ym(this,"options",this.setOptions);Ym(this,"parse",xE(this,Jb,E2).call(this,_Lexer.lex,_Parser.parse));Ym(this,"parseInline",xE(this,Jb,E2).call(this,_Lexer.lexInline,_Parser.parseInline));Ym(this,"Parser",_Parser);Ym(this,"Renderer",_Renderer);Ym(this,"TextRenderer",_TextRenderer);Ym(this,"Lexer",_Lexer);Ym(this,"Tokenizer",_Tokenizer);Ym(this,"Hooks",_Hooks);this.use(...qa)}walkTokens(qa,ed){var rd,sd;let td=[];for(const od of qa)switch(td=td.concat(ed.call(this,od)),od.type){case"table":{const ld=od;for(const ud of ld.header)td=td.concat(this.walkTokens(ud.tokens,ed));for(const ud of ld.rows)for(const cd of ud)td=td.concat(this.walkTokens(cd.tokens,ed));break}case"list":{const ld=od;td=td.concat(this.walkTokens(ld.items,ed));break}default:{const ld=od;(sd=(rd=this.defaults.extensions)==null?void 0:rd.childTokens)!=null&&sd[ld.type]?this.defaults.extensions.childTokens[ld.type].forEach(ud=>{const cd=ld[ud].flat(1/0);td=td.concat(this.walkTokens(cd,ed))}):ld.tokens&&(td=td.concat(this.walkTokens(ld.tokens,ed)))}}return td}use(...qa){const ed=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(td=>{const rd={...td};if(rd.async=this.defaults.async||rd.async||!1,td.extensions&&(td.extensions.forEach(sd=>{if(!sd.name)throw new Error("extension name required");if("renderer"in sd){const od=ed.renderers[sd.name];od?ed.renderers[sd.name]=function(...ld){let ud=sd.renderer.apply(this,ld);return ud===!1&&(ud=od.apply(this,ld)),ud}:ed.renderers[sd.name]=sd.renderer}if("tokenizer"in sd){if(!sd.level||sd.level!=="block"&&sd.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const od=ed[sd.level];od?od.unshift(sd.tokenizer):ed[sd.level]=[sd.tokenizer],sd.start&&(sd.level==="block"?ed.startBlock?ed.startBlock.push(sd.start):ed.startBlock=[sd.start]:sd.level==="inline"&&(ed.startInline?ed.startInline.push(sd.start):ed.startInline=[sd.start]))}"childTokens"in sd&&sd.childTokens&&(ed.childTokens[sd.name]=sd.childTokens)}),rd.extensions=ed),td.renderer){const sd=this.defaults.renderer||new _Renderer(this.defaults);for(const od in td.renderer){if(!(od in sd))throw new Error(`renderer '${od}' does not exist`);if(["options","parser"].includes(od))continue;const ld=od;let ud=td.renderer[ld];td.useNewRenderer||(ud=xE(this,Jb,aS).call(this,ud,ld,sd));const cd=sd[ld];sd[ld]=(...dd)=>{let _d=ud.apply(sd,dd);return _d===!1&&(_d=cd.apply(sd,dd)),_d||""}}rd.renderer=sd}if(td.tokenizer){const sd=this.defaults.tokenizer||new _Tokenizer(this.defaults);for(const od in
Please report this to https://github.com/markedjs/marked.`,qa){const rd="<p>An error occurred:</p><pre>"+escape$1(td.message+"",!0)+"</pre>";return ed?Promise.resolve(rd):rd}if(ed)return Promise.reject(td);throw td}};const markedInstance=new Marked;function marked(Ra,qa){return markedInstance.parse(Ra,qa)}marked.options=marked.setOptions=function(Ra){return markedInstance.setOptions(Ra),marked.defaults=markedInstance.defaults,changeDefaults(marked.defaults),marked};marked.getDefaults=_getDefaults;marked.defaults=_defaults;marked.use=function(...Ra){return markedInstance.use(...Ra),marked.defaults=markedInstance.defaults,changeDefaults(marked.defaults),marked};marked.walkTokens=function(Ra,qa){return markedInstance.walkTokens(Ra,qa)};marked.parseInline=markedInstance.parseInline;marked.Parser=_Parser;marked.parser=_Parser.parse;marked.Renderer=_Renderer;marked.TextRenderer=_TextRenderer;marked.Lexer=_Lexer;marked.lexer=_Lexer.lex;marked.Tokenizer=_Tokenizer;marked.Hooks=_Hooks;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;_Parser.parse;_Lexer.lex;function dedent(Ra){for(var qa=[],ed=1;ed<arguments.length;ed++)qa[ed-1]=arguments[ed];var td=Array.from(typeof Ra=="string"?[Ra]:Ra);td[td.length-1]=td[td.length-1].replace(/\r?\n([\t ]*)$/,"");var rd=td.reduce(function(ld,ud){var cd=ud.match(/\n([\t ]+|(?!\s).)/g);return cd?ld.concat(cd.map(function(dd){var _d,Ed;return(Ed=(_d=dd.match(/[\t ]/g))===null||_d===void 0?void 0:_d.length)!==null&&Ed!==void 0?Ed:0})):ld},[]);if(rd.length){var sd=new RegExp(`
[ ]{`+Math.min.apply(Math,rd)+"}","g");td=td.map(function(ld){return ld.replace(sd,`
`)})}td[0]=td[0].replace(/^\r?\n/,"");var od=td[0];return qa.forEach(function(ld,ud){var cd=od.match(/(?:^|\n)( *)$/),dd=cd?cd[1]:"",_d=ld;typeof ld=="string"&&ld.includes(`
`)&&(_d=String(ld).split(`
`).map(function(Ed,Ad){return Ad===0?Ed:""+dd+Ed}).join(`
`)),od+=_d+td[ud+1]}),od}function preprocessMarkdown(Ra,{markdownAutoWrap:qa}){const td=Ra.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`),rd=dedent(td);return qa===!1?rd.replace(/ /g,"&nbsp;"):rd}__name(preprocessMarkdown,"preprocessMarkdown");function markdownToLines(Ra,qa={}){const ed=preprocessMarkdown(Ra,qa),td=marked.lexer(ed),rd=[[]];let sd=0;function od(ld,ud="normal"){ld.type==="text"?ld.text.split(`
`).forEach((dd,_d)=>{_d!==0&&(sd++,rd.push([])),dd.split(" ").forEach(Ed=>{Ed&&rd[sd].push({content:Ed,type:ud})})}):ld.type==="strong"||ld.type==="em"?ld.tokens.forEach(cd=>{od(cd,ld.type)}):ld.type==="html"&&rd[sd].push({content:ld.text,type:"normal"})}return __name(od,"processNode"),td.forEach(ld=>{var ud;ld.type==="paragraph"?(ud=ld.tokens)==null||ud.forEach(cd=>{od(cd)}):ld.type==="html"&&rd[sd].push({content:ld.text,type:"normal"})}),rd}__name(markdownToLines,"markdownToLines");function markdownToHTML(Ra,{markdownAutoWrap:qa}={}){const ed=marked.lexer(Ra);function td(rd){var sd,od,ld;return rd.type==="text"?qa===!1?rd.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):rd.text.replace(/\n */g,"<br/>"):rd.type==="strong"?`<strong>${(sd=rd.tokens)==null?void 0:sd.map(td).join("")}</strong>`:rd.type==="em"?`<em>${(od=rd.tokens)==null?void 0:od.map(td).join("")}</em>`:rd.type==="paragraph"?`<p>${(ld=rd.tokens)==null?void 0:ld.map(td).join("")}</p>`:rd.type==="space"?"":rd.type==="html"?`${rd.text}`:`Unsupported markdown: ${rd.type}`}return __name(td,"output"),ed.map(td).join("")}__name(markdownToHTML,"markdownToHTML");function splitTextToChars(Ra){return Intl.Segmenter?[...new Intl.Segmenter().segment(Ra)].map(qa=>qa.segment):[...Ra]}__name(splitTextToChars,"splitTextToChars");function splitWordToFitWidth(Ra,qa){const ed=splitTextToChars(qa.content);return splitWordToFitWidthRecursion(Ra,[],ed,qa.type)}__name(splitWordToFitWidth,"splitWordToFitWidth");function splitWordToFitWidthRecursion(Ra,qa,ed,td){if(ed.length===0)return[{content:qa.join(""),type:td},{content:"",type:td}];const[rd,...sd]=ed,od=[...qa,rd];return Ra([{content:od.join(""),type:td}])?splitWordToFitWidthRecursion(Ra,od,sd,td):(qa.length===0&&rd&&(qa.push(rd),ed.shift()),[{content:qa.join(""),type:td},{content:ed.join(""),type:td}])}__name(splitWordToFitWidthRecursion,"splitWordToFitWidthRecursion");function splitLineToFitWidth(Ra,qa){if(Ra.some(({content:ed})=>ed.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return splitLineToFitWidthRecursion(Ra,qa)}__name(splitLineToFitWidth,"splitLineToFitWidth");function splitLineToFitWidthRecursion(Ra,qa,ed=[],td=[]){if(Ra.length===0)return td.length>0&&ed.push(td),ed.length>0?ed:[];let rd="";Ra[0].content===" "&&(rd=" ",Ra.shift());const sd=Ra.shift()??{content:" ",type:"normal"},od=[...td];if(rd!==""&&od.push({content:rd,type:"normal"}),od.push(sd),qa(od))return splitLineToFitWidthRecursion(Ra,qa,ed,od);if(td.length>0)ed.push(td),Ra.unshift(sd);else if(sd.content){const[ld,ud]=splitWordToFitWidth(qa,sd);ed.push([ld]),ud.content&&Ra.unshift(ud)}return splitLineToFitWidthRecursion(Ra,qa,ed)}__name(splitLineToFitWidthRecursion,"splitLineToFitWidthRecursion");function applyStyle$1(Ra,qa){qa&&Ra.attr("style",qa)}__name(applyStyle$1,"applyStyle");async function addHtmlSpan(Ra,qa,ed,td,rd=!1){const sd=Ra.append("foreignObject");sd.attr("width",`${10*ed}px`),sd.attr("height",`${10*ed}px`);const od=sd.append("xhtml:div");let ld=qa.label;qa.label&&hasKatex(qa.label)&&(ld=await renderKatex(qa.label.replace(common_default.lineBreakRegex,`
`),getConfig2()));const ud=qa.isNode?"nodeLabel":"edgeLabel",cd=od.append("span");cd.html(ld),applyStyle$1(cd,qa.labelStyle),cd.attr("class",`${ud} ${td}`),applyStyle$1(od,qa.labelStyle),od.style("display","table-cell"),od.style("white-space","nowrap"),od.style("line-height","1.5"),od.style("max-width",ed+"px"),od.style("text-align","center"),od.attr("xmlns","http://www.w3.org/1999/xhtml"),rd&&od.attr("class","labelBkg");let dd=od.node().getBoundingClientRect();return dd.width===ed&&(od.style("display","table"),od.style("white-space","break-spaces"),od.style("width",ed+"px"),dd=od.node().getBoundingClientRect()),sd.node()}__name(addHtmlSpan,"addHtmlSpan");function createTspan(Ra,qa,ed){return Ra.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",qa*ed-.1+"em").attr("dy",ed+"em")}__name(createTspan,"createTspan");function computeWidthOfText(Ra,qa,ed){const td=Ra.append("text"),rd=createTspan(td,1,qa);updateTextContentAndStyles(rd,ed);const sd=rd.node().getComputedTextLength();return td.remove(),sd}__name(computeWidthOfText,"computeWidthOfText");function computeDimensionOfText(Ra,qa,ed){var od;const td=Ra.append("text"),rd=createTspan(td,1,qa);updateTextContentAndStyles(rd,[{content:ed,type:"normal"}]);const sd=(od=rd.node())==null?void 0:od.getBoundingClientRect();return sd&&td.remove(),sd}__name(computeDimensionOfText,"computeDimensionOfText");function createFormattedText(Ra,qa,ed,td=!1){const sd=qa.append("g"),od=sd.insert("rect").attr("class","background").attr("style","stroke: none"),ld=sd.append("text").attr("y","-10.1");let ud=0;for(const cd of ed){const dd=__name(Ed=>computeWidthOfText(sd,1.1,Ed)<=Ra,"checkWidth"),_d=dd(cd)?[cd]:splitLineToFitWidth(cd,dd);for(const Ed of _d){const Ad=createTspan(ld,ud,1.1);updateTextContentAndStyles(Ad,Ed),ud++}}if(td){const cd=ld.node().getBBox(),dd=2;return od.attr("x",-dd).attr("y",-dd).attr("width",cd.width+2*dd).attr("height",cd.height+2*dd),sd.node()}else return ld.node()}__name(createFormattedText,"createFormattedText");function updateTextContentAndStyles(Ra,qa){Ra.text(""),qa.forEach((ed,td)=>{const rd=Ra.append("tspan").attr("font-style",ed.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",ed.type==="strong"?"bold":"normal");td===0?rd.text(ed.content):rd.text(" "+ed.content)})}__name(updateTextContentAndStyles,"updateTextContentAndStyles");function replaceIconSubstring(Ra){return Ra.replace(/fa[bklrs]?:fa-[\w-]+/g,qa=>`<i class='${qa.replace(":"," ")}'></i>`)}__name(replaceIconSubstring,"replaceIconSubstring");var createText=__name(async(Ra,qa="",{style:ed="",isTitle:td=!1,classes:rd="",useHtmlLabels:sd=!0,isNode:od=!0,width:ld=200,addSvgBackground:ud=!1}={},cd)=>{if(log$1.debug("XYZ createText",qa,ed,td,rd,sd,od,"addSvgBackground: ",ud),sd){const dd=markdownToHTML(qa,cd),_d=replaceIconSubstring(decodeEntities(dd)),Ed=qa.replace(/\\\\/g,"\\"),Ad={isNode:od,label:hasKatex(qa)?Ed:_d,labelStyle:ed.replace("fill:","color:")};return await addHtmlSpan(Ra,Ad,ld,rd,ud)}else{const dd=qa.replace(/<br\s*\/?>/g,"<br/>"),_d=markdownToLines(dd.replace("<br>","<br/>"),cd),Ed=createFormattedText(ld,Ra,_d,qa?ud:!1);if(od){/stroke:/.exec(ed)&&(ed=ed.replace("stroke:","lineColor:"));const Ad=ed.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");select(Ed).attr("style",Ad)}else{const Ad=ed.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");select(Ed).select("rect").attr("style",Ad.replace(/background:/g,"fill:"));const Td=ed.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");select(Ed).select("text").attr("style",Td)}return Ed}},"createText");function t(Ra,qa,ed){if(Ra&&Ra.length){const[td,rd]=qa,sd=Math.PI/180*ed,od=Math.cos(sd),ld=Math.sin(sd);for(const ud of Ra){const[cd,dd]=ud;ud[0]=(cd-td)*od-(dd-rd)*ld+td,ud[1]=(cd-td)*ld+(dd-rd)*od+rd}}}function e(Ra,qa){return Ra[0]===qa[0]&&Ra[1]===qa[1]}function s(Ra,qa,ed,td=1){const r
`),getConfig2()));const rd=Ra.isNode?"nodeLabel":"edgeLabel";return ed.html('<span class="'+rd+'" '+(Ra.labelStyle?'style="'+Ra.labelStyle+'"':"")+">"+td+"</span>"),applyStyle(ed,Ra.labelStyle),ed.style("display","inline-block"),ed.style("padding-right","1px"),ed.style("white-space","nowrap"),ed.attr("xmlns","http://www.w3.org/1999/xhtml"),qa.node()}__name(addHtmlLabel,"addHtmlLabel");var createLabel=__name(async(Ra,qa,ed,td)=>{let rd=Ra||"";if(typeof rd=="object"&&(rd=rd[0]),evaluate(getConfig2().flowchart.htmlLabels)){rd=rd.replace(/\\n|\n/g,"<br />"),log$1.info("vertexText"+rd);const sd={isNode:td,label:decodeEntities(rd).replace(/fa[blrs]?:fa-[\w-]+/g,ld=>`<i class='${ld.replace(":"," ")}'></i>`),labelStyle:qa&&qa.replace("fill:","color:")};return await addHtmlLabel(sd)}else{const sd=document.createElementNS("http://www.w3.org/2000/svg","text");sd.setAttribute("style",qa.replace("color:","fill:"));let od=[];typeof rd=="string"?od=rd.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(rd)?od=rd:od=[];for(const ld of od){const ud=document.createElementNS("http://www.w3.org/2000/svg","tspan");ud.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ud.setAttribute("dy","1em"),ud.setAttribute("x","0"),ed?ud.setAttribute("class","title-row"):ud.setAttribute("class","row"),ud.textContent=ld.trim(),sd.appendChild(ud)}return sd}},"createLabel"),createLabel_default=createLabel,createRoundedRectPathD=__name((Ra,qa,ed,td,rd)=>["M",Ra+rd,qa,"H",Ra+ed-rd,"A",rd,rd,0,0,1,Ra+ed,qa+rd,"V",qa+td-rd,"A",rd,rd,0,0,1,Ra+ed-rd,qa+td,"H",Ra+rd,"A",rd,rd,0,0,1,Ra,qa+td-rd,"V",qa+rd,"A",rd,rd,0,0,1,Ra+rd,qa,"Z"].join(" "),"createRoundedRectPathD"),solidStateFill=__name(Ra=>{const{handDrawnSeed:qa}=getConfig2();return{fill:Ra,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:Ra,seed:qa}},"solidStateFill"),compileStyles=__name(Ra=>{const qa=styles2Map([...Ra.cssCompiledStyles||[],...Ra.cssStyles||[]]);return{stylesMap:qa,stylesArray:[...qa]}},"compileStyles"),styles2Map=__name(Ra=>{const qa=new Map;return Ra.forEach(ed=>{const[td,rd]=ed.split(":");qa.set(td.trim(),rd==null?void 0:rd.trim())}),qa},"styles2Map"),styles2String=__name(Ra=>{const{stylesArray:qa}=compileStyles(Ra),ed=[],td=[],rd=[],sd=[];return qa.forEach(od=>{const ld=od[0];ld==="color"||ld==="font-size"||ld==="font-family"||ld==="font-weight"||ld==="font-style"||ld==="text-decoration"||ld==="text-align"||ld==="text-transform"||ld==="line-height"||ld==="letter-spacing"||ld==="word-spacing"||ld==="text-shadow"||ld==="text-overflow"||ld==="white-space"||ld==="word-wrap"||ld==="word-break"||ld==="overflow-wrap"||ld==="hyphens"?ed.push(od.join(":")+" !important"):(td.push(od.join(":")+" !important"),ld.includes("stroke")&&rd.push(od.join(":")+" !important"),ld==="fill"&&sd.push(od.join(":")+" !important"))}),{labelStyles:ed.join(";"),nodeStyles:td.join(";"),stylesArray:qa,borderStyles:rd,backgroundStyles:sd}},"styles2String"),userNodeOverrides=__name((Ra,qa)=>{const{themeVariables:ed,handDrawnSeed:td}=getConfig2(),{nodeBorder:rd,mainBkg:sd}=ed,{stylesMap:od}=compileStyles(Ra);return Object.assign({roughness:.7,fill:od.get("fill")||sd,fillStyle:"hachure",fillWeight:4,stroke:od.get("stroke")||rd,seed:td,strokeWidth:1.3},qa)},"userNodeOverrides"),rect=__name(async(Ra,qa)=>{log$1.info("Creating subgraph rect for ",qa.id,qa);const ed=getConfig2(),{themeVariables:td,handDrawnSeed:rd}=ed,{clusterBkg:sd,clusterBorder:od}=td,{labelStyles:ld,nodeStyles:ud,borderStyles:cd,backgroundStyles:dd}=styles2String(qa),_d=Ra.insert("g").attr("class","cluster "+qa.cssClasses).attr("id",qa.id).attr("data-look",qa.look),Ed=evaluate(ed.flowchart.htmlLabels),Ad=_d.insert("g").attr("class","cluster-label "),Td=await createText(Ad,qa.label,{style:qa.labelStyle,useHtmlLabels:Ed,isNode:!0});let Id=Td.getBBox();if(evaluate(ed.flowchart.htmlLabels)){const Vd=Td.children[0],Qd=select(Td);Id=Vd.getBoundingClientRect(),Qd.attr("width",Id.width),Qd.attr("height",Id.height)}const Bd=qa.width<=Id.width+qa.padding?Id.width+qa.padding:qa.width;qa.width<=Id.width+qa.padding?qa.diff=(Bd-qa.width)
outsidePoint: ${JSON.stringify(qa)}
insidePoint : ${JSON.stringify(ed)}
node : x:${Ra.x} y:${Ra.y} w:${Ra.width} h:${Ra.height}`);const td=Ra.x,rd=Ra.y,sd=Math.abs(td-ed.x),od=Ra.width/2;let ld=ed.x<qa.x?od-sd:od+sd;const ud=Ra.height/2,cd=Math.abs(qa.y-ed.y),dd=Math.abs(qa.x-ed.x);if(Math.abs(rd-qa.y)*od>Math.abs(td-qa.x)*ud){let _d=ed.y<qa.y?qa.y-ud-rd:rd-ud-qa.y;ld=dd*_d/cd;const Ed={x:ed.x<qa.x?ed.x+ld:ed.x-dd+ld,y:ed.y<qa.y?ed.y+cd-_d:ed.y-cd+_d};return ld===0&&(Ed.x=qa.x,Ed.y=qa.y),dd===0&&(Ed.x=qa.x),cd===0&&(Ed.y=qa.y),log$1.debug(`abc89 top/bottom calc, Q ${cd}, q ${_d}, R ${dd}, r ${ld}`,Ed),Ed}else{ed.x<qa.x?ld=qa.x-od-td:ld=td-od-qa.x;let _d=cd*ld/dd,Ed=ed.x<qa.x?ed.x+dd-ld:ed.x-dd+ld,Ad=ed.y<qa.y?ed.y+_d:ed.y-_d;return log$1.debug(`sides calc abc89, Q ${cd}, q ${_d}, R ${dd}, r ${ld}`,{_x:Ed,_y:Ad}),ld===0&&(Ed=qa.x,Ad=qa.y),dd===0&&(Ed=qa.x),cd===0&&(Ad=qa.y),{x:Ed,y:Ad}}},"intersection"),cutPathAtIntersect=__name((Ra,qa)=>{log$1.warn("abc88 cutPathAtIntersect",Ra,qa);let ed=[],td=Ra[0],rd=!1;return Ra.forEach(sd=>{if(log$1.info("abc88 checking point",sd,qa),!outsideNode(qa,sd)&&!rd){const od=intersection(qa,td,sd);log$1.debug("abc88 inside",sd,td,od),log$1.debug("abc88 intersection",od,qa);let ld=!1;ed.forEach(ud=>{ld=ld||ud.x===od.x&&ud.y===od.y}),ed.some(ud=>ud.x===od.x&&ud.y===od.y)?log$1.warn("abc88 no intersect",od,ed):ed.push(od),rd=!0}else log$1.warn("abc88 outside",sd,td),td=sd,rd||ed.push(sd)}),log$1.debug("returning points",ed),ed},"cutPathAtIntersect");function extractCornerPoints(Ra){const qa=[],ed=[];for(let td=1;td<Ra.length-1;td++){const rd=Ra[td-1],sd=Ra[td],od=Ra[td+1];(rd.x===sd.x&&sd.y===od.y&&Math.abs(sd.x-od.x)>5&&Math.abs(sd.y-rd.y)>5||rd.y===sd.y&&sd.x===od.x&&Math.abs(sd.x-rd.x)>5&&Math.abs(sd.y-od.y)>5)&&(qa.push(sd),ed.push(td))}return{cornerPoints:qa,cornerPointPositions:ed}}__name(extractCornerPoints,"extractCornerPoints");var findAdjacentPoint=__name(function(Ra,qa,ed){const td=qa.x-Ra.x,rd=qa.y-Ra.y,sd=Math.sqrt(td*td+rd*rd),od=ed/sd;return{x:qa.x-od*td,y:qa.y-od*rd}},"findAdjacentPoint"),fixCorners=__name(function(Ra){const{cornerPointPositions:qa}=extractCornerPoints(Ra),ed=[];for(let td=0;td<Ra.length;td++)if(qa.includes(td)){const rd=Ra[td-1],sd=Ra[td+1],od=Ra[td],ld=findAdjacentPoint(rd,od,5),ud=findAdjacentPoint(sd,od,5),cd=ud.x-ld.x,dd=ud.y-ld.y;ed.push(ld);const _d=Math.sqrt(2)*2;let Ed={x:od.x,y:od.y};if(Math.abs(sd.x-rd.x)>10&&Math.abs(sd.y-rd.y)>=10){log$1.debug("Corner point fixing",Math.abs(sd.x-rd.x),Math.abs(sd.y-rd.y));const Ad=5;od.x===ld.x?Ed={x:cd<0?ld.x-Ad+_d:ld.x+Ad-_d,y:dd<0?ld.y-_d:ld.y+_d}:Ed={x:cd<0?ld.x-_d:ld.x+_d,y:dd<0?ld.y-Ad+_d:ld.y+Ad-_d}}else log$1.debug("Corner point skipping fixing",Math.abs(sd.x-rd.x),Math.abs(sd.y-rd.y));ed.push(Ed,ud)}else ed.push(Ra[td]);return ed},"fixCorners"),insertEdge=__name(function(Ra,qa,ed,td,rd,sd,od){const{handDrawnSeed:ld}=getConfig2();let ud=qa.points,cd=!1;const dd=rd;var _d=sd;_d.intersect&&dd.intersect&&(ud=ud.slice(1,qa.points.length-1),ud.unshift(dd.intersect(ud[0])),log$1.debug("Last point APA12",qa.start,"-->",qa.end,ud[ud.length-1],_d,_d.intersect(ud[ud.length-1])),ud.push(_d.intersect(ud[ud.length-1]))),qa.toCluster&&(log$1.info("to cluster abc88",ed.get(qa.toCluster)),ud=cutPathAtIntersect(qa.points,ed.get(qa.toCluster).node),cd=!0),qa.fromCluster&&(log$1.debug("from cluster abc88",ed.get(qa.fromCluster),JSON.stringify(ud,null,2)),ud=cutPathAtIntersect(ud.reverse(),ed.get(qa.fromCluster).node).reverse(),cd=!0);let Ed=ud.filter(Qd=>!Number.isNaN(Qd.y));Ed=fixCorners(Ed);let Ad=Ed[Ed.length-1];if(Ed.length>1){Ad=Ed[Ed.length-1];const Qd=Ed[Ed.length-2],qd=(Ad.x-Qd.x)/2,Kd=(Ad.y-Qd.y)/2,Xd={x:Qd.x+qd,y:Qd.y+Kd};Ed.splice(-1,0,Xd)}let Td=curveBasis;qa.curve&&(Td=qa.curve);const{x:Id,y:Bd}=getLineFunctionsWithOffset(qa),Rd=line$1().x(Id).y(Bd).curve(Td);let Od;switch(qa.thickness){case"normal":Od="edge-thickness-normal";break;case"thick":Od="edge-thickness-thick";break;case"invisible":Od="edge-thickness-invisible";break;default:Od="edge-thickness-normal"}switch(qa.pattern){case"solid":Od+=" edge-pattern-solid";break;case"dotted":Od+=" edge-pattern-dotted";break;case"
point:`,Ed,`
node:
`,qa,`
res:`,intersect_default.polygon(qa,cd,Ed)),intersect_default.polygon(qa,cd,Ed)},rd},"question"),createHexagonPathD=__name((Ra,qa,ed,td,rd)=>[`M${Ra+rd},${qa}`,`L${Ra+ed-rd},${qa}`,`L${Ra+ed},${qa-td/2}`,`L${Ra+ed-rd},${qa-td}`,`L${Ra+rd},${qa-td}`,`L${Ra},${qa-td/2}`,"Z"].join(" "),"createHexagonPathD"),hexagon=__name(async(Ra,qa)=>{const{labelStyles:ed,nodeStyles:td}=styles2String(qa);qa.labelStyle=ed;const{shapeSvg:rd,bbox:sd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=4,ld=sd.height+qa.padding,ud=ld/od,cd=sd.width+2*ud+qa.padding,dd=[{x:ud,y:0},{x:cd-ud,y:0},{x:cd,y:-ld/2},{x:cd-ud,y:-ld},{x:ud,y:-ld},{x:0,y:-ld/2}];let _d;const{cssStyles:Ed}=qa;if(qa.look==="handDrawn"){const Ad=at$1.svg(rd),Td=userNodeOverrides(qa,{}),Id=createHexagonPathD(0,0,cd,ld,ud),Bd=Ad.path(Id,Td);_d=rd.insert(()=>Bd,":first-child").attr("transform",`translate(${-cd/2}, ${ld/2})`),Ed&&_d.attr("style",Ed)}else _d=insertPolygonShape(rd,cd,ld,dd);return td&&_d.attr("style",td),qa.width=cd,qa.height=ld,updateNodeBounds(qa,_d),qa.intersect=function(Ad){return intersect_default.polygon(qa,dd,Ad)},rd},"hexagon"),createLeanRightPathD=__name((Ra,qa,ed,td)=>[`M${Ra-2*td/6},${qa}`,`L${Ra+ed-td/6},${qa}`,`L${Ra+ed+2*td/6},${qa-td}`,`L${Ra+td/6},${qa-td}`,"Z"].join(" "),"createLeanRightPathD"),lean_right=__name(async(Ra,qa)=>{const{labelStyles:ed,nodeStyles:td}=styles2String(qa);qa.labelStyle=ed;const{shapeSvg:rd,bbox:sd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=sd.width+qa.padding,ld=sd.height+qa.padding,ud=[{x:-2*ld/6,y:0},{x:od-ld/6,y:0},{x:od+2*ld/6,y:-ld},{x:ld/6,y:-ld}];let cd;const{cssStyles:dd}=qa;if(qa.look==="handDrawn"){const _d=at$1.svg(rd),Ed=userNodeOverrides(qa,{}),Ad=createLeanRightPathD(0,0,od,ld),Td=_d.path(Ad,Ed);cd=rd.insert(()=>Td,":first-child").attr("transform",`translate(${-od/2}, ${ld/2})`),dd&&cd.attr("style",dd)}else cd=insertPolygonShape(rd,od,ld,ud);return td&&cd.attr("style",td),qa.width=od,qa.height=ld,updateNodeBounds(qa,cd),qa.intersect=function(_d){return intersect_default.polygon(qa,ud,_d)},rd},"lean_right"),createLeanLeftPathD=__name((Ra,qa,ed,td)=>[`M${Ra+2*td/6},${qa}`,`L${Ra+ed+td/6},${qa}`,`L${Ra+ed-2*td/6},${qa-td}`,`L${Ra-td/6},${qa-td}`,"Z"].join(" "),"createLeanLeftPathD"),lean_left=__name(async(Ra,qa)=>{const{labelStyles:ed,nodeStyles:td}=styles2String(qa);qa.labelStyle=ed;const{shapeSvg:rd,bbox:sd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=sd.width+qa.padding,ld=sd.height+qa.padding,ud=[{x:2*ld/6,y:0},{x:od+ld/6,y:0},{x:od-2*ld/6,y:-ld},{x:-ld/6,y:-ld}];let cd;const{cssStyles:dd}=qa;if(qa.look==="handDrawn"){const _d=at$1.svg(rd),Ed=userNodeOverrides(qa,{}),Ad=createLeanLeftPathD(0,0,od,ld),Td=_d.path(Ad,Ed);cd=rd.insert(()=>Td,":first-child").attr("transform",`translate(${-od/2}, ${ld/2})`),dd&&cd.attr("style",dd)}else cd=insertPolygonShape(rd,od,ld,ud);return td&&cd.attr("style",td),qa.width=od,qa.height=ld,updateNodeBounds(qa,cd),qa.intersect=function(_d){return intersect_default.polygon(qa,ud,_d)},rd},"lean_left"),createTrapezoidPathD=__name((Ra,qa,ed,td)=>[`M${Ra-2*td/6},${qa}`,`L${Ra+ed+2*td/6},${qa}`,`L${Ra+ed-td/6},${qa-td}`,`L${Ra+td/6},${qa-td}`,"Z"].join(" "),"createTrapezoidPathD"),trapezoid=__name(async(Ra,qa)=>{const{labelStyles:ed,nodeStyles:td}=styles2String(qa);qa.labelStyle=ed;const{shapeSvg:rd,bbox:sd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=sd.width+qa.padding,ld=sd.height+qa.padding,ud=[{x:-2*ld/6,y:0},{x:od+2*ld/6,y:0},{x:od-ld/6,y:-ld},{x:ld/6,y:-ld}];let cd;const{cssStyles:dd}=qa;if(qa.look==="handDrawn"){const _d=at$1.svg(rd),Ed=userNodeOverrides(qa,{}),Ad=createTrapezoidPathD(0,0,od,ld),Td=_d.path(Ad,Ed);cd=rd.insert(()=>Td,":first-child").attr("transform",`translate(${-od/2}, ${ld/2})`),dd&&cd.attr("style",dd)}else cd=insertPolygonShape(rd,od,ld,ud);return td&&cd.attr("style",td),qa.width=od,qa.height=ld,updateNodeBounds(qa,cd),qa.intersect=function(_d){return intersect_default.polygon(qa,ud,_d)},rd},"trapezoid"),createInvertedTrapezoidPathD=__name((Ra,qa,ed,td)=>[`M${Ra+td/6},${qa}`,`L${Ra+ed-td/6},${qa}`,`L${Ra+ed+2*td/6},${qa-td}`,`L${Ra-2*td/6},${qa-td}`,"Z
`);const td=selectSvgElement(qa),rd=td.append("g");td.attr("viewBox","0 0 2412 512"),configureSvgSize(td,100,512,!0),rd.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),rd.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),rd.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),rd.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),rd.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),rd.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),rd.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),rd.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${ed}`)},"draw"),renderer={draw},errorRenderer_default=renderer,diagram={db:{},renderer,parser:{parse:__name(()=>{},"parse")}},errorDiagram_default=diagram,id18="flowchart-elk",detector18=__name((Ra,qa={})=>{var ed;return/^\s*flowchart-elk/.test(Ra)||/^\s*flowchart|graph/.test(Ra)&&((ed=qa==null?void 0:qa.flowchart)==null?void 0:ed.defaultRenderer)==="elk"?(qa.layout="elk",!0):!1},"detector"),loader18=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./flowDiagram-JSIZSE4D-31S8DQB0.js");return{diagram:qa}},__vite__mapDeps([8,9,10,11]));return{id:id18,diagram:Ra}},"loader"),plugin16={id:id18,detector:detector18,loader:loader18},detector_default=plugin16,id19="timeline",detector19=__name(Ra=>/^\s*timeline/.test(Ra),"detector"),loader19=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./timeline-definition-KYQAIZUX-BHsMXyod.js");return{diagram:qa}},__vite__mapDeps([36,22]));return{id:id19,diagram:Ra}},"loader"),plugin17={id:id19,detector:detector19,loader:loader19},detector_default2=plugin17,id20="mindmap",detector20=__name(Ra=>/^\s*mindmap/.test(Ra),"detector"),loader20=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./mindmap-definition-FCEC46F3-VnOEc6eV.js");return{diagram:qa}},__vite__mapDeps([37,38]));return{id:id20,diagram:Ra}},"loader"),plugin18={id:id20,detector:detector20,loader:loader20},detector_default3=plugin18,id21="sankey",detector21=__name(Ra=>/^\s*sankey-beta/.test(Ra),"detector"),loader21=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./sankeyDiagram-KMMQDL5K-ChG3AGTx.js");return{diagram:qa}},__vite__mapDeps([39,23,19]));return{id:id21,diagram:Ra}},"loader"),plugin19={id:id21,detector:detector21,loader:loader21},sankeyDetector_default=plugin19,id22="packet",detector22=__name(Ra=>/^\s*packet-beta/.test(Ra),"detec
`;try{getDiagram(rd)}catch{const _d=getDiagramLoader(rd);if(!_d)throw new UnknownDiagramError(`Diagram ${rd} not found.`);const{id:Ed,diagram:Ad}=await _d();registerDiagram(Ed,Ad)}const{db:sd,parser:od,renderer:ld,init:ud}=getDiagram(rd);return od.parser&&(od.parser.yy=sd),(cd=sd.clear)==null||cd.call(sd),ud==null||ud(td),ed.title&&((dd=sd.setDiagramTitle)==null||dd.call(sd,ed.title)),await od.parse(qa),new m1(rd,qa,sd,od,ld)}async render(qa,ed){await this.renderer.draw(this.text,qa,ed,this)}getParser(){return this.parser}getType(){return this.type}},__name(m1,"Diagram"),m1),interactionFunctions=[],attachFunctions=__name(()=>{interactionFunctions.forEach(Ra=>{Ra()}),interactionFunctions=[]},"attachFunctions"),cleanupComments=__name(Ra=>Ra.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function isNothing(Ra){return typeof Ra>"u"||Ra===null}__name(isNothing,"isNothing");function isObject$3(Ra){return typeof Ra=="object"&&Ra!==null}__name(isObject$3,"isObject");function toArray$2(Ra){return Array.isArray(Ra)?Ra:isNothing(Ra)?[]:[Ra]}__name(toArray$2,"toArray");function extend$1(Ra,qa){var ed,td,rd,sd;if(qa)for(sd=Object.keys(qa),ed=0,td=sd.length;ed<td;ed+=1)rd=sd[ed],Ra[rd]=qa[rd];return Ra}__name(extend$1,"extend");function repeat(Ra,qa){var ed="",td;for(td=0;td<qa;td+=1)ed+=Ra;return ed}__name(repeat,"repeat");function isNegativeZero(Ra){return Ra===0&&Number.NEGATIVE_INFINITY===1/Ra}__name(isNegativeZero,"isNegativeZero");var isNothing_1=isNothing,isObject_1=isObject$3,toArray_1=toArray$2,repeat_1=repeat,isNegativeZero_1=isNegativeZero,extend_1=extend$1,common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(Ra,qa){var ed="",td=Ra.reason||"(unknown reason)";return Ra.mark?(Ra.mark.name&&(ed+='in "'+Ra.mark.name+'" '),ed+="("+(Ra.mark.line+1)+":"+(Ra.mark.column+1)+")",!qa&&Ra.mark.snippet&&(ed+=`
`+Ra.mark.snippet),td+" "+ed):td}__name(formatError,"formatError");function YAMLException$1(Ra,qa){Error.call(this),this.name="YAMLException",this.reason=Ra,this.mark=qa,this.message=formatError(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}__name(YAMLException$1,"YAMLException$1");YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=__name(function(qa){return this.name+": "+formatError(this,qa)},"toString");var exception=YAMLException$1;function getLine(Ra,qa,ed,td,rd){var sd="",od="",ld=Math.floor(rd/2)-1;return td-qa>ld&&(sd=" ... ",qa=td-ld+sd.length),ed-td>ld&&(od=" ...",ed=td+ld-od.length),{str:sd+Ra.slice(qa,ed).replace(/\t/g,"→")+od,pos:td-qa+sd.length}}__name(getLine,"getLine");function padStart(Ra,qa){return common.repeat(" ",qa-Ra.length)+Ra}__name(padStart,"padStart");function makeSnippet(Ra,qa){if(qa=Object.create(qa||null),!Ra.buffer)return null;qa.maxLength||(qa.maxLength=79),typeof qa.indent!="number"&&(qa.indent=1),typeof qa.linesBefore!="number"&&(qa.linesBefore=3),typeof qa.linesAfter!="number"&&(qa.linesAfter=2);for(var ed=/\r?\n|\r|\0/g,td=[0],rd=[],sd,od=-1;sd=ed.exec(Ra.buffer);)rd.push(sd.index),td.push(sd.index+sd[0].length),Ra.position<=sd.index&&od<0&&(od=td.length-2);od<0&&(od=td.length-1);var ld="",ud,cd,dd=Math.min(Ra.line+qa.linesAfter,rd.length).toString().length,_d=qa.maxLength-(qa.indent+dd+3);for(ud=1;ud<=qa.linesBefore&&!(od-ud<0);ud++)cd=getLine(Ra.buffer,td[od-ud],rd[od-ud],Ra.position-(td[od]-td[od-ud]),_d),ld=common.repeat(" ",qa.indent)+padStart((Ra.line-ud+1).toString(),dd)+" | "+cd.str+`
`+ld;for(cd=getLine(Ra.buffer,td[od],rd[od],Ra.position,_d),ld+=common.repeat(" ",qa.indent)+padStart((Ra.line+1).toString(),dd)+" | "+cd.str+`
`,ld+=common.repeat("-",qa.indent+dd+3+cd.pos)+`^
`,ud=1;ud<=qa.linesAfter&&!(od+ud>=rd.length);ud++)cd=getLine(Ra.buffer,td[od+ud],rd[od+ud],Ra.position-(td[od]-td[od+ud]),_d),ld+=common.repeat(" ",qa.indent)+padStart((Ra.line+ud+1).toString(),dd)+" | "+cd.str+`
`;return ld.replace(/\n$/,"")}__name(makeSnippet,"makeSnippet");var snippet=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(Ra){var qa={};return Ra!==null&&Object.keys(Ra).forEach(function(ed){Ra[ed].forEach(function(td){qa[String(td)]=ed})}),qa}__name(compileStyleAliases,"compileStyleAliases");function Type$1(Ra,qa){if(qa=qa||{},Object.keys(qa).forEach(function(ed){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(ed)===-1)throw new exception('Unknown option "'+ed+'" is met in definition of "'+Ra+'" YAML type.')}),this.options=qa,this.tag=Ra,this.kind=qa.kind||null,this.resolve=qa.resolve||function(){return!0},this.construct=qa.construct||function(ed){return ed},this.instanceOf=qa.instanceOf||null,this.predicate=qa.predicate||null,this.represent=qa.represent||null,this.representName=qa.representName||null,this.defaultStyle=qa.defaultStyle||null,this.multi=qa.multi||!1,this.styleAliases=compileStyleAliases(qa.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new exception('Unknown kind "'+this.kind+'" is specified for "'+Ra+'" YAML type.')}__name(Type$1,"Type$1");var type$1=Type$1;function compileList(Ra,qa){var ed=[];return Ra[qa].forEach(function(td){var rd=ed.length;ed.forEach(function(sd,od){sd.tag===td.tag&&sd.kind===td.kind&&sd.multi===td.multi&&(rd=od)}),ed[rd]=td}),ed}__name(compileList,"compileList");function compileMap(){var Ra={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},qa,ed;function td(rd){rd.multi?(Ra.multi[rd.kind].push(rd),Ra.multi.fallback.push(rd)):Ra[rd.kind][rd.tag]=Ra.fallback[rd.tag]=rd}for(__name(td,"collectType"),qa=0,ed=arguments.length;qa<ed;qa+=1)arguments[qa].forEach(td);return Ra}__name(compileMap,"compileMap");function Schema$1(Ra){return this.extend(Ra)}__name(Schema$1,"Schema$1");Schema$1.prototype.extend=__name(function(qa){var ed=[],td=[];if(qa instanceof type$1)td.push(qa);else if(Array.isArray(qa))td=td.concat(qa);else if(qa&&(Array.isArray(qa.implicit)||Array.isArray(qa.explicit)))qa.implicit&&(ed=ed.concat(qa.implicit)),qa.explicit&&(td=td.concat(qa.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");ed.forEach(function(sd){if(!(sd instanceof type$1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(sd.loadKind&&sd.loadKind!=="scalar")throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(sd.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),td.forEach(function(sd){if(!(sd instanceof type$1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var rd=Object.create(Schema$1.prototype);return rd.implicit=(this.implicit||[]).concat(ed),rd.explicit=(this.explicit||[]).concat(td),rd.compiledImplicit=compileList(rd,"implicit"),rd.compiledExplicit=compileList(rd,"explicit"),rd.compiledTypeMap=compileMap(rd.compiledImplicit,rd.compiledExplicit),rd},"extend");var schema=Schema$1,str=new type$1("tag:yaml.org,2002:str",{kind:"scalar",construct:__name(function(Ra){return Ra!==null?Ra:""},"construct")}),seq$1=new type$1("tag:yaml.org,2002:seq",{kind:"sequence",construct:__name(function(Ra){return Ra!==null?Ra:[]},"construct")}),map$2=new type$1("tag:yaml.org,2002:map",{kind:"mapping",construct:__name(function(Ra){return Ra!==null?Ra:{}},"construct")}),failsafe=new schema({explicit:[str,seq$1,map$2]});function resolveYamlNull(Ra){if(Ra===null)return!0;var qa=Ra.length;return qa===1&&Ra==="~"||qa===4&&(Ra==="null"||Ra==="Null"||Ra==="NULL")}__name(resolveYamlNull,"resolveYamlNull");function constructYamlNull(){return null}__name(constructYamlNull,"constructYamlNull");function isNull(Ra){
\r`;function resolveYamlBinary(Ra){if(Ra===null)return!1;var qa,ed,td=0,rd=Ra.length,sd=BASE64_MAP;for(ed=0;ed<rd;ed++)if(qa=sd.indexOf(Ra.charAt(ed)),!(qa>64)){if(qa<0)return!1;td+=6}return td%8===0}__name(resolveYamlBinary,"resolveYamlBinary");function constructYamlBinary(Ra){var qa,ed,td=Ra.replace(/[\r\n=]/g,""),rd=td.length,sd=BASE64_MAP,od=0,ld=[];for(qa=0;qa<rd;qa++)qa%4===0&&qa&&(ld.push(od>>16&255),ld.push(od>>8&255),ld.push(od&255)),od=od<<6|sd.indexOf(td.charAt(qa));return ed=rd%4*6,ed===0?(ld.push(od>>16&255),ld.push(od>>8&255),ld.push(od&255)):ed===18?(ld.push(od>>10&255),ld.push(od>>2&255)):ed===12&&ld.push(od>>4&255),new Uint8Array(ld)}__name(constructYamlBinary,"constructYamlBinary");function representYamlBinary(Ra){var qa="",ed=0,td,rd,sd=Ra.length,od=BASE64_MAP;for(td=0;td<sd;td++)td%3===0&&td&&(qa+=od[ed>>18&63],qa+=od[ed>>12&63],qa+=od[ed>>6&63],qa+=od[ed&63]),ed=(ed<<8)+Ra[td];return rd=sd%3,rd===0?(qa+=od[ed>>18&63],qa+=od[ed>>12&63],qa+=od[ed>>6&63],qa+=od[ed&63]):rd===2?(qa+=od[ed>>10&63],qa+=od[ed>>4&63],qa+=od[ed<<2&63],qa+=od[64]):rd===1&&(qa+=od[ed>>2&63],qa+=od[ed<<4&63],qa+=od[64],qa+=od[64]),qa}__name(representYamlBinary,"representYamlBinary");function isBinary(Ra){return Object.prototype.toString.call(Ra)==="[object Uint8Array]"}__name(isBinary,"isBinary");var binary=new type$1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary}),_hasOwnProperty$3=Object.prototype.hasOwnProperty,_toString$2=Object.prototype.toString;function resolveYamlOmap(Ra){if(Ra===null)return!0;var qa=[],ed,td,rd,sd,od,ld=Ra;for(ed=0,td=ld.length;ed<td;ed+=1){if(rd=ld[ed],od=!1,_toString$2.call(rd)!=="[object Object]")return!1;for(sd in rd)if(_hasOwnProperty$3.call(rd,sd))if(!od)od=!0;else return!1;if(!od)return!1;if(qa.indexOf(sd)===-1)qa.push(sd);else return!1}return!0}__name(resolveYamlOmap,"resolveYamlOmap");function constructYamlOmap(Ra){return Ra!==null?Ra:[]}__name(constructYamlOmap,"constructYamlOmap");var omap=new type$1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),_toString$1=Object.prototype.toString;function resolveYamlPairs(Ra){if(Ra===null)return!0;var qa,ed,td,rd,sd,od=Ra;for(sd=new Array(od.length),qa=0,ed=od.length;qa<ed;qa+=1){if(td=od[qa],_toString$1.call(td)!=="[object Object]"||(rd=Object.keys(td),rd.length!==1))return!1;sd[qa]=[rd[0],td[rd[0]]]}return!0}__name(resolveYamlPairs,"resolveYamlPairs");function constructYamlPairs(Ra){if(Ra===null)return[];var qa,ed,td,rd,sd,od=Ra;for(sd=new Array(od.length),qa=0,ed=od.length;qa<ed;qa+=1)td=od[qa],rd=Object.keys(td),sd[qa]=[rd[0],td[rd[0]]];return sd}__name(constructYamlPairs,"constructYamlPairs");var pairs=new type$1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),_hasOwnProperty$2=Object.prototype.hasOwnProperty;function resolveYamlSet(Ra){if(Ra===null)return!0;var qa,ed=Ra;for(qa in ed)if(_hasOwnProperty$2.call(ed,qa)&&ed[qa]!==null)return!1;return!0}__name(resolveYamlSet,"resolveYamlSet");function constructYamlSet(Ra){return Ra!==null?Ra:{}}__name(constructYamlSet,"constructYamlSet");var set=new type$1("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default=core$1.extend({implicit:[timestamp,merge$1],explicit:[binary,omap,pairs,set]}),_hasOwnProperty$1=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(Ra){return Object.prototype.toString.call(Ra)}__name(_class,"_class");function is_EOL(Ra){return Ra===10||Ra=
`:Ra===118?"\v":Ra===102?"\f":Ra===114?"\r":Ra===101?"\x1B":Ra===32?" ":Ra===34?'"':Ra===47?"/":Ra===92?"\\":Ra===78?"…":Ra===95?" ":Ra===76?"\u2028":Ra===80?"\u2029":""}__name(simpleEscapeSequence,"simpleEscapeSequence");function charFromCodepoint(Ra){return Ra<=65535?String.fromCharCode(Ra):String.fromCharCode((Ra-65536>>10)+55296,(Ra-65536&1023)+56320)}__name(charFromCodepoint,"charFromCodepoint");var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256);for(i$1=0;i$1<256;i$1++)simpleEscapeCheck[i$1]=simpleEscapeSequence(i$1)?1:0,simpleEscapeMap[i$1]=simpleEscapeSequence(i$1);var i$1;function State$1(Ra,qa){this.input=Ra,this.filename=qa.filename||null,this.schema=qa.schema||_default,this.onWarning=qa.onWarning||null,this.legacy=qa.legacy||!1,this.json=qa.json||!1,this.listener=qa.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Ra.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}__name(State$1,"State$1");function generateError(Ra,qa){var ed={name:Ra.filename,buffer:Ra.input.slice(0,-1),position:Ra.position,line:Ra.line,column:Ra.position-Ra.lineStart};return ed.snippet=snippet(ed),new exception(qa,ed)}__name(generateError,"generateError");function throwError(Ra,qa){throw generateError(Ra,qa)}__name(throwError,"throwError");function throwWarning(Ra,qa){Ra.onWarning&&Ra.onWarning.call(null,generateError(Ra,qa))}__name(throwWarning,"throwWarning");var directiveHandlers={YAML:__name(function(qa,ed,td){var rd,sd,od;qa.version!==null&&throwError(qa,"duplication of %YAML directive"),td.length!==1&&throwError(qa,"YAML directive accepts exactly one argument"),rd=/^([0-9]+)\.([0-9]+)$/.exec(td[0]),rd===null&&throwError(qa,"ill-formed argument of the YAML directive"),sd=parseInt(rd[1],10),od=parseInt(rd[2],10),sd!==1&&throwError(qa,"unacceptable YAML version of the document"),qa.version=td[0],qa.checkLineBreaks=od<2,od!==1&&od!==2&&throwWarning(qa,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:__name(function(qa,ed,td){var rd,sd;td.length!==2&&throwError(qa,"TAG directive accepts exactly two arguments"),rd=td[0],sd=td[1],PATTERN_TAG_HANDLE.test(rd)||throwError(qa,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(qa.tagMap,rd)&&throwError(qa,'there is a previously declared suffix for "'+rd+'" tag handle'),PATTERN_TAG_URI.test(sd)||throwError(qa,"ill-formed tag prefix (second argument) of the TAG directive");try{sd=decodeURIComponent(sd)}catch{throwError(qa,"tag prefix is malformed: "+sd)}qa.tagMap[rd]=sd},"handleTagDirective")};function captureSegment(Ra,qa,ed,td){var rd,sd,od,ld;if(qa<ed){if(ld=Ra.input.slice(qa,ed),td)for(rd=0,sd=ld.length;rd<sd;rd+=1)od=ld.charCodeAt(rd),od===9||32<=od&&od<=1114111||throwError(Ra,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(ld)&&throwError(Ra,"the stream contains non-printable characters");Ra.result+=ld}}__name(captureSegment,"captureSegment");function mergeMappings(Ra,qa,ed,td){var rd,sd,od,ld;for(common.isObject(ed)||throwError(Ra,"cannot merge mappings; the provided source object is unacceptable"),rd=Object.keys(ed),od=0,ld=rd.length;od<ld;od+=1)sd=rd[od],_hasOwnProperty$1.call(qa,sd)||(qa[sd]=ed[sd],td[sd]=!0)}__name(mergeMappings,"mergeMappings");function storeMappingPair(Ra,qa,ed,td,rd,sd,od,ld,ud){var cd,dd;if(Array.isArray(rd))for(rd=Array.prototype.slice.call(rd),cd=0,dd=rd.length;cd<dd;cd+=1)Array.isArray(rd[cd])&&throwError(Ra,"nested arrays are not supported inside keys"),typeof rd=="object"&&_class(rd[cd])==="[object Object]"&&(rd[cd]="[object Object]");if(typeof rd=="object"&&_class(rd)==="[object Object]"&&(rd="[object Object]"),rd=String(rd),qa===null&&(qa={}),td==="tag:yaml.org,2002:merge")if(Array.isArray(sd))for(cd=0,dd=sd.length;cd<dd;cd+=1)mergeMappings(Ra,qa,sd[cd],ed);else mergeMappings(Ra,qa,sd,ed);else!Ra.json&&!_hasOwnProperty$1.call(ed,rd)&&_hasOwnProperty$1.call(qa,rd)&&(Ra.line=od||Ra.line,Ra.lineStart=ld||Ra.lineStart,Ra.position=ud||Ra.positio
`,qa-1))}__name(writeFoldedLines,"writeFoldedLines");function readPlainScalar(Ra,qa,ed){var td,rd,sd,od,ld,ud,cd,dd,_d=Ra.kind,Ed=Ra.result,Ad;if(Ad=Ra.input.charCodeAt(Ra.position),is_WS_OR_EOL(Ad)||is_FLOW_INDICATOR(Ad)||Ad===35||Ad===38||Ad===42||Ad===33||Ad===124||Ad===62||Ad===39||Ad===34||Ad===37||Ad===64||Ad===96||(Ad===63||Ad===45)&&(rd=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(rd)||ed&&is_FLOW_INDICATOR(rd)))return!1;for(Ra.kind="scalar",Ra.result="",sd=od=Ra.position,ld=!1;Ad!==0;){if(Ad===58){if(rd=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(rd)||ed&&is_FLOW_INDICATOR(rd))break}else if(Ad===35){if(td=Ra.input.charCodeAt(Ra.position-1),is_WS_OR_EOL(td))break}else{if(Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)||ed&&is_FLOW_INDICATOR(Ad))break;if(is_EOL(Ad))if(ud=Ra.line,cd=Ra.lineStart,dd=Ra.lineIndent,skipSeparationSpace(Ra,!1,-1),Ra.lineIndent>=qa){ld=!0,Ad=Ra.input.charCodeAt(Ra.position);continue}else{Ra.position=od,Ra.line=ud,Ra.lineStart=cd,Ra.lineIndent=dd;break}}ld&&(captureSegment(Ra,sd,od,!1),writeFoldedLines(Ra,Ra.line-ud),sd=od=Ra.position,ld=!1),is_WHITE_SPACE(Ad)||(od=Ra.position+1),Ad=Ra.input.charCodeAt(++Ra.position)}return captureSegment(Ra,sd,od,!1),Ra.result?!0:(Ra.kind=_d,Ra.result=Ed,!1)}__name(readPlainScalar,"readPlainScalar");function readSingleQuotedScalar(Ra,qa){var ed,td,rd;if(ed=Ra.input.charCodeAt(Ra.position),ed!==39)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,td=rd=Ra.position;(ed=Ra.input.charCodeAt(Ra.position))!==0;)if(ed===39)if(captureSegment(Ra,td,Ra.position,!0),ed=Ra.input.charCodeAt(++Ra.position),ed===39)td=Ra.position,Ra.position++,rd=Ra.position;else return!0;else is_EOL(ed)?(captureSegment(Ra,td,rd,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),td=rd=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a single quoted scalar"):(Ra.position++,rd=Ra.position);throwError(Ra,"unexpected end of the stream within a single quoted scalar")}__name(readSingleQuotedScalar,"readSingleQuotedScalar");function readDoubleQuotedScalar(Ra,qa){var ed,td,rd,sd,od,ld;if(ld=Ra.input.charCodeAt(Ra.position),ld!==34)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,ed=td=Ra.position;(ld=Ra.input.charCodeAt(Ra.position))!==0;){if(ld===34)return captureSegment(Ra,ed,Ra.position,!0),Ra.position++,!0;if(ld===92){if(captureSegment(Ra,ed,Ra.position,!0),ld=Ra.input.charCodeAt(++Ra.position),is_EOL(ld))skipSeparationSpace(Ra,!1,qa);else if(ld<256&&simpleEscapeCheck[ld])Ra.result+=simpleEscapeMap[ld],Ra.position++;else if((od=escapedHexLen(ld))>0){for(rd=od,sd=0;rd>0;rd--)ld=Ra.input.charCodeAt(++Ra.position),(od=fromHexCode(ld))>=0?sd=(sd<<4)+od:throwError(Ra,"expected hexadecimal character");Ra.result+=charFromCodepoint(sd),Ra.position++}else throwError(Ra,"unknown escape sequence");ed=td=Ra.position}else is_EOL(ld)?(captureSegment(Ra,ed,td,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),ed=td=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a double quoted scalar"):(Ra.position++,td=Ra.position)}throwError(Ra,"unexpected end of the stream within a double quoted scalar")}__name(readDoubleQuotedScalar,"readDoubleQuotedScalar");function readFlowCollection(Ra,qa){var ed=!0,td,rd,sd,od=Ra.tag,ld,ud=Ra.anchor,cd,dd,_d,Ed,Ad,Td=Object.create(null),Id,Bd,Rd,Od;if(Od=Ra.input.charCodeAt(Ra.position),Od===91)dd=93,Ad=!1,ld=[];else if(Od===123)dd=125,Ad=!0,ld={};else return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=ld),Od=Ra.input.charCodeAt(++Ra.position);Od!==0;){if(skipSeparationSpace(Ra,!0,qa),Od=Ra.input.charCodeAt(Ra.position),Od===dd)return Ra.position++,Ra.tag=od,Ra.anchor=ud,Ra.kind=Ad?"mapping":"sequence",Ra.result=ld,!0;ed?Od===44&&throwError(Ra,"expected the node content, but found ','"):throwError(Ra,"missed comma between flow collection entries"),Bd=Id=Rd=null,_d=Ed=!1,Od===63&&(cd=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(cd)&&(_d=Ed=!0,Ra.position++,skipSeparationSpace(Ra,!0,qa))),td=Ra.l
`,sd?1+ud:ud):rd===CHOMPING_CLIP&&sd&&(Ra.result+=`
`);break}for(td?is_WHITE_SPACE(_d)?(cd=!0,Ra.result+=common.repeat(`
`,sd?1+ud:ud)):cd?(cd=!1,Ra.result+=common.repeat(`
`,ud+1)):ud===0?sd&&(Ra.result+=" "):Ra.result+=common.repeat(`
`,ud):Ra.result+=common.repeat(`
`,sd?1+ud:ud),sd=!0,od=!0,ud=0,ed=Ra.position;!is_EOL(_d)&&_d!==0;)_d=Ra.input.charCodeAt(++Ra.position);captureSegment(Ra,ed,Ra.position,!1)}return!0}__name(readBlockScalar,"readBlockScalar");function readBlockSequence(Ra,qa){var ed,td=Ra.tag,rd=Ra.anchor,sd=[],od,ld=!1,ud;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=sd),ud=Ra.input.charCodeAt(Ra.position);ud!==0&&(Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),!(ud!==45||(od=Ra.input.charCodeAt(Ra.position+1),!is_WS_OR_EOL(od))));){if(ld=!0,Ra.position++,skipSeparationSpace(Ra,!0,-1)&&Ra.lineIndent<=qa){sd.push(null),ud=Ra.input.charCodeAt(Ra.position);continue}if(ed=Ra.line,composeNode(Ra,qa,CONTEXT_BLOCK_IN,!1,!0),sd.push(Ra.result),skipSeparationSpace(Ra,!0,-1),ud=Ra.input.charCodeAt(Ra.position),(Ra.line===ed||Ra.lineIndent>qa)&&ud!==0)throwError(Ra,"bad indentation of a sequence entry");else if(Ra.lineIndent<qa)break}return ld?(Ra.tag=td,Ra.anchor=rd,Ra.kind="sequence",Ra.result=sd,!0):!1}__name(readBlockSequence,"readBlockSequence");function readBlockMapping(Ra,qa,ed){var td,rd,sd,od,ld,ud,cd=Ra.tag,dd=Ra.anchor,_d={},Ed=Object.create(null),Ad=null,Td=null,Id=null,Bd=!1,Rd=!1,Od;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=_d),Od=Ra.input.charCodeAt(Ra.position);Od!==0;){if(!Bd&&Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),td=Ra.input.charCodeAt(Ra.position+1),sd=Ra.line,(Od===63||Od===58)&&is_WS_OR_EOL(td))Od===63?(Bd&&(storeMappingPair(Ra,_d,Ed,Ad,Td,null,od,ld,ud),Ad=Td=Id=null),Rd=!0,Bd=!0,rd=!0):Bd?(Bd=!1,rd=!0):throwError(Ra,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),Ra.position+=1,Od=td;else{if(od=Ra.line,ld=Ra.lineStart,ud=Ra.position,!composeNode(Ra,ed,CONTEXT_FLOW_OUT,!1,!0))break;if(Ra.line===sd){for(Od=Ra.input.charCodeAt(Ra.position);is_WHITE_SPACE(Od);)Od=Ra.input.charCodeAt(++Ra.position);if(Od===58)Od=Ra.input.charCodeAt(++Ra.position),is_WS_OR_EOL(Od)||throwError(Ra,"a whitespace character is expected after the key-value separator within a block mapping"),Bd&&(storeMappingPair(Ra,_d,Ed,Ad,Td,null,od,ld,ud),Ad=Td=Id=null),Rd=!0,Bd=!1,rd=!1,Ad=Ra.tag,Td=Ra.result;else if(Rd)throwError(Ra,"can not read an implicit mapping pair; a colon is missed");else return Ra.tag=cd,Ra.anchor=dd,!0}else if(Rd)throwError(Ra,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Ra.tag=cd,Ra.anchor=dd,!0}if((Ra.line===sd||Ra.lineIndent>qa)&&(Bd&&(od=Ra.line,ld=Ra.lineStart,ud=Ra.position),composeNode(Ra,qa,CONTEXT_BLOCK_OUT,!0,rd)&&(Bd?Td=Ra.result:Id=Ra.result),Bd||(storeMappingPair(Ra,_d,Ed,Ad,Td,Id,od,ld,ud),Ad=Td=Id=null),skipSeparationSpace(Ra,!0,-1),Od=Ra.input.charCodeAt(Ra.position)),(Ra.line===sd||Ra.lineIndent>qa)&&Od!==0)throwError(Ra,"bad indentation of a mapping entry");else if(Ra.lineIndent<qa)break}return Bd&&storeMappingPair(Ra,_d,Ed,Ad,Td,null,od,ld,ud),Rd&&(Ra.tag=cd,Ra.anchor=dd,Ra.kind="mapping",Ra.result=_d),Rd}__name(readBlockMapping,"readBlockMapping");function readTagProperty(Ra){var qa,ed=!1,td=!1,rd,sd,od;if(od=Ra.input.charCodeAt(Ra.position),od!==33)return!1;if(Ra.tag!==null&&throwError(Ra,"duplication of a tag property"),od=Ra.input.charCodeAt(++Ra.position),od===60?(ed=!0,od=Ra.input.charCodeAt(++Ra.position)):od===33?(td=!0,rd="!!",od=Ra.input.charCodeAt(++Ra.position)):rd="!",qa=Ra.position,ed){do od=Ra.input.charCodeAt(++Ra.position);while(od!==0&&od!==62);Ra.position<Ra.length?(sd=Ra.input.slice(qa,Ra.position),od=Ra.input.charCodeAt(++Ra.position)):throwError(Ra,"unexpected end of the stream within a verbatim tag")}else{for(;od!==0&&!is_WS_OR_EOL(od);)od===33&&(td?throwError(Ra,"tag suffix cannot contain exclamation marks"):(rd=Ra.input.slice(qa-1,Ra.position+1),PATTERN_TAG_HANDLE.test(rd)||throwError(Ra,"named tag handle cannot contain such characters"),td=!0,qa=Ra.position+1)),od=Ra.input.charCodeAt(++Ra.position);
`),Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)));var ed=new State$1(Ra,qa),td=Ra.indexOf("\0");for(td!==-1&&(ed.position=td,throwError(ed,"null byte is not allowed in input")),ed.input+="\0";ed.input.charCodeAt(ed.position)===32;)ed.lineIndent+=1,ed.position+=1;for(;ed.position<ed.length-1;)readDocument(ed);return ed.documents}__name(loadDocuments,"loadDocuments");function loadAll$1(Ra,qa,ed){qa!==null&&typeof qa=="object"&&typeof ed>"u"&&(ed=qa,qa=null);var td=loadDocuments(Ra,ed);if(typeof qa!="function")return td;for(var rd=0,sd=td.length;rd<sd;rd+=1)qa(td[rd])}__name(loadAll$1,"loadAll$1");function load$1(Ra,qa){var ed=loadDocuments(Ra,qa);if(ed.length!==0){if(ed.length===1)return ed[0];throw new exception("expected a single document in the stream, but found more")}}__name(load$1,"load$1");var loadAll_1=loadAll$1,load_1=load$1,loader25={loadAll:loadAll_1,load:load_1},_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_BOM=65279,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_CARRIAGE_RETURN=13,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]="\\0";ESCAPE_SEQUENCES[7]="\\a";ESCAPE_SEQUENCES[8]="\\b";ESCAPE_SEQUENCES[9]="\\t";ESCAPE_SEQUENCES[10]="\\n";ESCAPE_SEQUENCES[11]="\\v";ESCAPE_SEQUENCES[12]="\\f";ESCAPE_SEQUENCES[13]="\\r";ESCAPE_SEQUENCES[27]="\\e";ESCAPE_SEQUENCES[34]='\\"';ESCAPE_SEQUENCES[92]="\\\\";ESCAPE_SEQUENCES[133]="\\N";ESCAPE_SEQUENCES[160]="\\_";ESCAPE_SEQUENCES[8232]="\\L";ESCAPE_SEQUENCES[8233]="\\P";var DEPRECATED_BOOLEANS_SYNTAX=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],DEPRECATED_BASE60_SYNTAX=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(Ra,qa){var ed,td,rd,sd,od,ld,ud;if(qa===null)return{};for(ed={},td=Object.keys(qa),rd=0,sd=td.length;rd<sd;rd+=1)od=td[rd],ld=String(qa[od]),od.slice(0,2)==="!!"&&(od="tag:yaml.org,2002:"+od.slice(2)),ud=Ra.compiledTypeMap.fallback[od],ud&&_hasOwnProperty.call(ud.styleAliases,ld)&&(ld=ud.styleAliases[ld]),ed[od]=ld;return ed}__name(compileStyleMap,"compileStyleMap");function encodeHex(Ra){var qa,ed,td;if(qa=Ra.toString(16).toUpperCase(),Ra<=255)ed="x",td=2;else if(Ra<=65535)ed="u",td=4;else if(Ra<=4294967295)ed="U",td=8;else throw new exception("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+ed+common.repeat("0",td-qa.length)+qa}__name(encodeHex,"encodeHex");var QUOTING_TYPE_SINGLE=1,QUOTING_TYPE_DOUBLE=2;function State(Ra){this.schema=Ra.schema||_default,this.indent=Math.max(1,Ra.indent||2),this.noArrayIndent=Ra.noArrayIndent||!1,this.skipInvalid=Ra.skipInvalid||!1,this.flowLevel=common.isNothing(Ra.flowLevel)?-1:Ra.flowLevel,this.styleMap=compileStyleMap(this.schema,Ra.styles||null),this.sortKeys=Ra.sortKeys||!1,this.lineWidth=Ra.lineWidth||80,this.noRefs=Ra.noRefs||!1,this.noCompatMode=Ra.noCompatMode||!1,this.condenseFlow=Ra.condenseFlow||!1,this.quotingType=Ra.quotingType==='"'?QUOTING_TYPE_DOUBLE:QUOTING_TYPE_SINGLE,this.forceQuotes=Ra.forceQuotes||!1,this.replacer=typeof Ra.replacer=="function"?Ra.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}__name(State,"State");function indentString(Ra,qa){for(var ed=common.repeat(" ",qa),td=0,rd=-1,sd="",od,ld=Ra.length;td<ld;)rd=Ra.indexOf(`
`,td),rd===-1?(od=Ra.slice(td),td=ld):(od=Ra.slice(td,rd+1),td=rd+1),od.length&&od!==`
`&&(sd+=ed),sd+=od;return sd}__name(indentString,"indentString");function generateNextLine(Ra,qa){return`
`+common.repeat(" ",Ra.indent*qa)}__name(generateNextLine,"generateNextLine");function testImplicitResolving(Ra,qa){var ed,td,rd;for(ed=0,td=Ra.implicitTypes.length;ed<td;ed+=1)if(rd=Ra.implicitTypes[ed],rd.resolve(qa))return!0;return!1}__name(testImplicitResolving,"testImplicitResolving");function isWhitespace(Ra){return Ra===CHAR_SPACE||Ra===CHAR_TAB}__name(isWhitespace,"isWhitespace");function isPrintable(Ra){return 32<=Ra&&Ra<=126||161<=Ra&&Ra<=55295&&Ra!==8232&&Ra!==8233||57344<=Ra&&Ra<=65533&&Ra!==CHAR_BOM||65536<=Ra&&Ra<=1114111}__name(isPrintable,"isPrintable");function isNsCharOrWhitespace(Ra){return isPrintable(Ra)&&Ra!==CHAR_BOM&&Ra!==CHAR_CARRIAGE_RETURN&&Ra!==CHAR_LINE_FEED}__name(isNsCharOrWhitespace,"isNsCharOrWhitespace");function isPlainSafe(Ra,qa,ed){var td=isNsCharOrWhitespace(Ra),rd=td&&!isWhitespace(Ra);return(ed?td:td&&Ra!==CHAR_COMMA&&Ra!==CHAR_LEFT_SQUARE_BRACKET&&Ra!==CHAR_RIGHT_SQUARE_BRACKET&&Ra!==CHAR_LEFT_CURLY_BRACKET&&Ra!==CHAR_RIGHT_CURLY_BRACKET)&&Ra!==CHAR_SHARP&&!(qa===CHAR_COLON&&!rd)||isNsCharOrWhitespace(qa)&&!isWhitespace(qa)&&Ra===CHAR_SHARP||qa===CHAR_COLON&&rd}__name(isPlainSafe,"isPlainSafe");function isPlainSafeFirst(Ra){return isPrintable(Ra)&&Ra!==CHAR_BOM&&!isWhitespace(Ra)&&Ra!==CHAR_MINUS&&Ra!==CHAR_QUESTION&&Ra!==CHAR_COLON&&Ra!==CHAR_COMMA&&Ra!==CHAR_LEFT_SQUARE_BRACKET&&Ra!==CHAR_RIGHT_SQUARE_BRACKET&&Ra!==CHAR_LEFT_CURLY_BRACKET&&Ra!==CHAR_RIGHT_CURLY_BRACKET&&Ra!==CHAR_SHARP&&Ra!==CHAR_AMPERSAND&&Ra!==CHAR_ASTERISK&&Ra!==CHAR_EXCLAMATION&&Ra!==CHAR_VERTICAL_LINE&&Ra!==CHAR_EQUALS&&Ra!==CHAR_GREATER_THAN&&Ra!==CHAR_SINGLE_QUOTE&&Ra!==CHAR_DOUBLE_QUOTE&&Ra!==CHAR_PERCENT&&Ra!==CHAR_COMMERCIAL_AT&&Ra!==CHAR_GRAVE_ACCENT}__name(isPlainSafeFirst,"isPlainSafeFirst");function isPlainSafeLast(Ra){return!isWhitespace(Ra)&&Ra!==CHAR_COLON}__name(isPlainSafeLast,"isPlainSafeLast");function codePointAt(Ra,qa){var ed=Ra.charCodeAt(qa),td;return ed>=55296&&ed<=56319&&qa+1<Ra.length&&(td=Ra.charCodeAt(qa+1),td>=56320&&td<=57343)?(ed-55296)*1024+td-56320+65536:ed}__name(codePointAt,"codePointAt");function needIndentIndicator(Ra){var qa=/^\n* /;return qa.test(Ra)}__name(needIndentIndicator,"needIndentIndicator");var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(Ra,qa,ed,td,rd,sd,od,ld){var ud,cd=0,dd=null,_d=!1,Ed=!1,Ad=td!==-1,Td=-1,Id=isPlainSafeFirst(codePointAt(Ra,0))&&isPlainSafeLast(codePointAt(Ra,Ra.length-1));if(qa||od)for(ud=0;ud<Ra.length;cd>=65536?ud+=2:ud++){if(cd=codePointAt(Ra,ud),!isPrintable(cd))return STYLE_DOUBLE;Id=Id&&isPlainSafe(cd,dd,ld),dd=cd}else{for(ud=0;ud<Ra.length;cd>=65536?ud+=2:ud++){if(cd=codePointAt(Ra,ud),cd===CHAR_LINE_FEED)_d=!0,Ad&&(Ed=Ed||ud-Td-1>td&&Ra[Td+1]!==" ",Td=ud);else if(!isPrintable(cd))return STYLE_DOUBLE;Id=Id&&isPlainSafe(cd,dd,ld),dd=cd}Ed=Ed||Ad&&ud-Td-1>td&&Ra[Td+1]!==" "}return!_d&&!Ed?Id&&!od&&!rd(Ra)?STYLE_PLAIN:sd===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:ed>9&&needIndentIndicator(Ra)?STYLE_DOUBLE:od?sd===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:Ed?STYLE_FOLDED:STYLE_LITERAL}__name(chooseScalarStyle,"chooseScalarStyle");function writeScalar(Ra,qa,ed,td,rd){Ra.dump=function(){if(qa.length===0)return Ra.quotingType===QUOTING_TYPE_DOUBLE?'""':"''";if(!Ra.noCompatMode&&(DEPRECATED_BOOLEANS_SYNTAX.indexOf(qa)!==-1||DEPRECATED_BASE60_SYNTAX.test(qa)))return Ra.quotingType===QUOTING_TYPE_DOUBLE?'"'+qa+'"':"'"+qa+"'";var sd=Ra.indent*Math.max(1,ed),od=Ra.lineWidth===-1?-1:Math.max(Math.min(Ra.lineWidth,40),Ra.lineWidth-sd),ld=td||Ra.flowLevel>-1&&ed>=Ra.flowLevel;function ud(cd){return testImplicitResolving(Ra,cd)}switch(__name(ud,"testAmbiguity"),chooseScalarStyle(qa,ld,Ra.indent,od,ud,Ra.quotingType,Ra.forceQuotes&&!td,rd)){case STYLE_PLAIN:return qa;case STYLE_SINGLE:return"'"+qa.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(qa,sd));case STYLE_FOLDED:return">"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(foldString(qa,od),sd));case STYLE_DOUBLE:return'"'+escapeString(qa)+'"';default:throw new
`,rd=td&&(Ra[Ra.length-2]===`
`||Ra===`
`),sd=rd?"+":td?"":"-";return ed+sd+`
`}__name(blockHeader,"blockHeader");function dropEndingNewline(Ra){return Ra[Ra.length-1]===`
`?Ra.slice(0,-1):Ra}__name(dropEndingNewline,"dropEndingNewline");function foldString(Ra,qa){for(var ed=/(\n+)([^\n]*)/g,td=function(){var cd=Ra.indexOf(`
`);return cd=cd!==-1?cd:Ra.length,ed.lastIndex=cd,foldLine(Ra.slice(0,cd),qa)}(),rd=Ra[0]===`
`||Ra[0]===" ",sd,od;od=ed.exec(Ra);){var ld=od[1],ud=od[2];sd=ud[0]===" ",td+=ld+(!rd&&!sd&&ud!==""?`
`:"")+foldLine(ud,qa),rd=sd}return td}__name(foldString,"foldString");function foldLine(Ra,qa){if(Ra===""||Ra[0]===" ")return Ra;for(var ed=/ [^ ]/g,td,rd=0,sd,od=0,ld=0,ud="";td=ed.exec(Ra);)ld=td.index,ld-rd>qa&&(sd=od>rd?od:ld,ud+=`
`+Ra.slice(rd,sd),rd=sd+1),od=ld;return ud+=`
`,Ra.length-rd>qa&&od>rd?ud+=Ra.slice(rd,od)+`
`+Ra.slice(od+1):ud+=Ra.slice(rd),ud.slice(1)}__name(foldLine,"foldLine");function escapeString(Ra){for(var qa="",ed=0,td,rd=0;rd<Ra.length;ed>=65536?rd+=2:rd++)ed=codePointAt(Ra,rd),td=ESCAPE_SEQUENCES[ed],!td&&isPrintable(ed)?(qa+=Ra[rd],ed>=65536&&(qa+=Ra[rd+1])):qa+=td||encodeHex(ed);return qa}__name(escapeString,"escapeString");function writeFlowSequence(Ra,qa,ed){var td="",rd=Ra.tag,sd,od,ld;for(sd=0,od=ed.length;sd<od;sd+=1)ld=ed[sd],Ra.replacer&&(ld=Ra.replacer.call(ed,String(sd),ld)),(writeNode(Ra,qa,ld,!1,!1)||typeof ld>"u"&&writeNode(Ra,qa,null,!1,!1))&&(td!==""&&(td+=","+(Ra.condenseFlow?"":" ")),td+=Ra.dump);Ra.tag=rd,Ra.dump="["+td+"]"}__name(writeFlowSequence,"writeFlowSequence");function writeBlockSequence(Ra,qa,ed,td){var rd="",sd=Ra.tag,od,ld,ud;for(od=0,ld=ed.length;od<ld;od+=1)ud=ed[od],Ra.replacer&&(ud=Ra.replacer.call(ed,String(od),ud)),(writeNode(Ra,qa+1,ud,!0,!0,!1,!0)||typeof ud>"u"&&writeNode(Ra,qa+1,null,!0,!0,!1,!0))&&((!td||rd!=="")&&(rd+=generateNextLine(Ra,qa)),Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?rd+="-":rd+="- ",rd+=Ra.dump);Ra.tag=sd,Ra.dump=rd||"[]"}__name(writeBlockSequence,"writeBlockSequence");function writeFlowMapping(Ra,qa,ed){var td="",rd=Ra.tag,sd=Object.keys(ed),od,ld,ud,cd,dd;for(od=0,ld=sd.length;od<ld;od+=1)dd="",td!==""&&(dd+=", "),Ra.condenseFlow&&(dd+='"'),ud=sd[od],cd=ed[ud],Ra.replacer&&(cd=Ra.replacer.call(ed,ud,cd)),writeNode(Ra,qa,ud,!1,!1)&&(Ra.dump.length>1024&&(dd+="? "),dd+=Ra.dump+(Ra.condenseFlow?'"':"")+":"+(Ra.condenseFlow?"":" "),writeNode(Ra,qa,cd,!1,!1)&&(dd+=Ra.dump,td+=dd));Ra.tag=rd,Ra.dump="{"+td+"}"}__name(writeFlowMapping,"writeFlowMapping");function writeBlockMapping(Ra,qa,ed,td){var rd="",sd=Ra.tag,od=Object.keys(ed),ld,ud,cd,dd,_d,Ed;if(Ra.sortKeys===!0)od.sort();else if(typeof Ra.sortKeys=="function")od.sort(Ra.sortKeys);else if(Ra.sortKeys)throw new exception("sortKeys must be a boolean or a function");for(ld=0,ud=od.length;ld<ud;ld+=1)Ed="",(!td||rd!=="")&&(Ed+=generateNextLine(Ra,qa)),cd=od[ld],dd=ed[cd],Ra.replacer&&(dd=Ra.replacer.call(ed,cd,dd)),writeNode(Ra,qa+1,cd,!0,!0,!0)&&(_d=Ra.tag!==null&&Ra.tag!=="?"||Ra.dump&&Ra.dump.length>1024,_d&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?Ed+="?":Ed+="? "),Ed+=Ra.dump,_d&&(Ed+=generateNextLine(Ra,qa)),writeNode(Ra,qa+1,dd,!0,_d)&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?Ed+=":":Ed+=": ",Ed+=Ra.dump,rd+=Ed));Ra.tag=sd,Ra.dump=rd||"{}"}__name(writeBlockMapping,"writeBlockMapping");function detectType2(Ra,qa,ed){var td,rd,sd,od,ld,ud;for(rd=ed?Ra.explicitTypes:Ra.implicitTypes,sd=0,od=rd.length;sd<od;sd+=1)if(ld=rd[sd],(ld.instanceOf||ld.predicate)&&(!ld.instanceOf||typeof qa=="object"&&qa instanceof ld.instanceOf)&&(!ld.predicate||ld.predicate(qa))){if(ed?ld.multi&&ld.representName?Ra.tag=ld.representName(qa):Ra.tag=ld.tag:Ra.tag="?",ld.represent){if(ud=Ra.styleMap[ld.tag]||ld.defaultStyle,_toString.call(ld.represent)==="[object Function]")td=ld.represent(qa,ud);else if(_hasOwnProperty.call(ld.represent,ud))td=ld.represent[ud](qa,ud);else throw new exception("!<"+ld.tag+'> tag resolver accepts not "'+ud+'" style');Ra.dump=td}return!0}return!1}__name(detectType2,"detectType");function writeNode(Ra,qa,ed,td,rd,sd,od){Ra.tag=null,Ra.dump=ed,detectType2(Ra,ed,!1)||detectType2(Ra,ed,!0);var ld=_toString.call(Ra.dump),ud=td,cd;td&&(td=Ra.flowLevel<0||Ra.flowLevel>qa);var dd=ld==="[object Object]"||ld==="[object Array]",_d,Ed;if(dd&&(_d=Ra.duplicates.indexOf(ed),Ed=_d!==-1),(Ra.tag!==null&&Ra.tag!=="?"||Ed||Ra.indent!==2&&qa>0)&&(rd=!1),Ed&&Ra.usedDuplicates[_d])Ra.dump="*ref_"+_d;else{if(dd&&Ed&&!Ra.usedDuplicates[_d]&&(Ra.usedDuplicates[_d]=!0),ld==="[object Object]")td&&Object.keys(Ra.dump).length!==0?(writeBlockMapping(Ra,qa,Ra.dump,rd),Ed&&(Ra.dump="&ref_"+_d+Ra.dump)):(writeFlowMapping(Ra,qa,Ra.dump),Ed&&(Ra.dump="&ref_"+_d+" "+Ra.dump));else if(ld==="[object Array]")td&&Ra.dump.length!==0?(Ra.noArrayIndent&&!od&&qa>0?writeBlockSequence(Ra,qa-1,Ra.dump,rd):writeBlockSequence(Ra,qa,Ra.dump,rd),Ed&&(Ra.dump="&ref_"+_d+Ra.dump)):(writeFlowSequence(Ra,qa,Ra.dump),Ed&&(Ra.dump="
`:""}__name(dump$1,"dump$1");function renamed(Ra,qa){return function(){throw new Error("Function yaml."+Ra+" is removed in js-yaml 4. Use yaml."+qa+" instead, which is now safe by default.")}}__name(renamed,"renamed");var JSON_SCHEMA=json,load=loader25.load;function extractFrontMatter(Ra){const qa=Ra.match(frontMatterRegex);if(!qa)return{text:Ra,metadata:{}};let ed=load(qa[1],{schema:JSON_SCHEMA})??{};ed=typeof ed=="object"&&!Array.isArray(ed)?ed:{};const td={};return ed.displayMode&&(td.displayMode=ed.displayMode.toString()),ed.title&&(td.title=ed.title.toString()),ed.config&&(td.config=ed.config),{text:Ra.slice(qa[0].length),metadata:td}}__name(extractFrontMatter,"extractFrontMatter");var cleanupText=__name(Ra=>Ra.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(qa,ed,td)=>"<"+ed+td.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),processFrontmatter=__name(Ra=>{const{text:qa,metadata:ed}=extractFrontMatter(Ra),{displayMode:td,title:rd,config:sd={}}=ed;return td&&(sd.gantt||(sd.gantt={}),sd.gantt.displayMode=td),{title:rd,config:sd,text:qa}},"processFrontmatter"),processDirectives=__name(Ra=>{const qa=utils_default.detectInit(Ra)??{},ed=utils_default.detectDirective(Ra,"wrap");return Array.isArray(ed)?qa.wrap=ed.some(({type:td})=>td==="wrap"):(ed==null?void 0:ed.type)==="wrap"&&(qa.wrap=!0),{text:removeDirectives(Ra),directive:qa}},"processDirectives");function preprocessDiagram(Ra){const qa=cleanupText(Ra),ed=processFrontmatter(qa),td=processDirectives(ed.text),rd=cleanAndMerge(ed.config,td.directive);return Ra=cleanupComments(td.text),{code:Ra,title:ed.title,config:rd}}__name(preprocessDiagram,"preprocessDiagram");function toBase64(Ra){const qa=new TextEncoder().encode(Ra),ed=Array.from(qa,td=>String.fromCodePoint(td)).join("");return btoa(ed)}__name(toBase64,"toBase64");var MAX_TEXTLENGTH=5e4,MAX_TEXTLENGTH_EXCEEDED_MSG="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",SECURITY_LVL_SANDBOX="sandbox",SECURITY_LVL_LOOSE="loose",XMLNS_SVG_STD="http://www.w3.org/2000/svg",XMLNS_XLINK_STD="http://www.w3.org/1999/xlink",XMLNS_XHTML_STD="http://www.w3.org/1999/xhtml",IFRAME_WIDTH="100%",IFRAME_HEIGHT="100%",IFRAME_STYLES="border:0;margin:0;",IFRAME_BODY_STYLE="margin:0",IFRAME_SANDBOX_OPTS="allow-top-navigation-by-user-activation allow-popups",IFRAME_NOT_SUPPORTED_MSG='The "iframe" tag is not supported by your browser.',DOMPURIFY_TAGS=["foreignobject"],DOMPURIFY_ATTR=["dominant-baseline"];function processAndSetConfigs(Ra){const qa=preprocessDiagram(Ra);return reset(),addDirective(qa.config??{}),qa}__name(processAndSetConfigs,"processAndSetConfigs");async function parse(Ra,qa){addDiagrams();try{const{code:ed,config:td}=processAndSetConfigs(Ra);return{diagramType:(await getDiagramFromText(ed)).type,config:td}}catch(ed){if(qa!=null&&qa.suppressErrors)return!1;throw ed}}__name(parse,"parse");var cssImportantStyles=__name((Ra,qa,ed=[])=>`
.${Ra} ${qa} { ${ed.join(" !important; ")} !important; }`,"cssImportantStyles"),createCssStyles=__name((Ra,qa=new Map)=>{var td;let ed="";if(Ra.themeCSS!==void 0&&(ed+=`
${Ra.themeCSS}`),Ra.fontFamily!==void 0&&(ed+=`
:root { --mermaid-font-family: ${Ra.fontFamily}}`),Ra.altFontFamily!==void 0&&(ed+=`
:root { --mermaid-alt-font-family: ${Ra.altFontFamily}}`),qa instanceof Map){const ld=Ra.htmlLabels??((td=Ra.flowchart)==null?void 0:td.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];qa.forEach(ud=>{isEmpty$1(ud.styles)||ld.forEach(cd=>{ed+=cssImportantStyles(ud.id,cd,ud.styles)}),isEmpty$1(ud.textStyles)||(ed+=cssImportantStyles(ud.id,"tspan",((ud==null?void 0:ud.textStyles)||[]).map(cd=>cd.replace("color","fill"))))})}return ed},"createCssStyles"),createUserStyles=__name((Ra,qa,ed,td)=>{const rd=createCssStyles(Ra,ed),sd=styles_default(qa,rd,Ra.themeVariables);return serialize(compile(`${td}{${sd}}`),stringify$1)},"createUserStyles"),cleanUpSvgCode=__name((Ra="",qa,ed)=>{let td=Ra;return!ed&&!qa&&(td=td.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),td=decodeEntities(td),td=td.replace(/<br>/g,"<br/>"),td},"cleanUpSvgCode"),putIntoIFrame=__name((Ra="",qa)=>{var rd,sd;const ed=(sd=(rd=qa==null?void 0:qa.viewBox)==null?void 0:rd.baseVal)!=null&&sd.height?qa.viewBox.baseVal.height+"px":IFRAME_HEIGHT,td=toBase64(`<body style="${IFRAME_BODY_STYLE}">${Ra}</body>`);return`<iframe style="width:${IFRAME_WIDTH};height:${ed};${IFRAME_STYLES}" src="data:text/html;charset=UTF-8;base64,${td}" sandbox="${IFRAME_SANDBOX_OPTS}">
${IFRAME_NOT_SUPPORTED_MSG}
</iframe>`},"putIntoIFrame"),appendDivSvgG=__name((Ra,qa,ed,td,rd)=>{const sd=Ra.append("div");sd.attr("id",ed),td&&sd.attr("style",td);const od=sd.append("svg").attr("id",qa).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return rd&&od.attr("xmlns:xlink",rd),od.append("g"),Ra},"appendDivSvgG");function sandboxedIframe(Ra,qa){return Ra.append("iframe").attr("id",qa).attr("style","width: 100%; height: 100%;").attr("sandbox","")}__name(sandboxedIframe,"sandboxedIframe");var removeExistingElements=__name((Ra,qa,ed,td)=>{var rd,sd,od;(rd=Ra.getElementById(qa))==null||rd.remove(),(sd=Ra.getElementById(ed))==null||sd.remove(),(od=Ra.getElementById(td))==null||od.remove()},"removeExistingElements"),render=__name(async function(Ra,qa,ed){var df,mf,bf,pf,_f,Tf;addDiagrams();const td=processAndSetConfigs(qa);qa=td.code;const rd=getConfig$1();log$1.debug(rd),qa.length>((rd==null?void 0:rd.maxTextSize)??MAX_TEXTLENGTH)&&(qa=MAX_TEXTLENGTH_EXCEEDED_MSG);const sd="#"+Ra,od="i"+Ra,ld="#"+od,ud="d"+Ra,cd="#"+ud,dd=__name(()=>{const zf=select(Ed?ld:cd).node();zf&&"remove"in zf&&zf.remove()},"removeTempElements");let _d=select("body");const Ed=rd.securityLevel===SECURITY_LVL_SANDBOX,Ad=rd.securityLevel===SECURITY_LVL_LOOSE,Td=rd.fontFamily;if(ed!==void 0){if(ed&&(ed.innerHTML=""),Ed){const kf=sandboxedIframe(select(ed),od);_d=select(kf.nodes()[0].contentDocument.body),_d.node().style.margin=0}else _d=select(ed);appendDivSvgG(_d,Ra,ud,`font-family: ${Td}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,Ra,ud,od),Ed){const kf=sandboxedIframe(select("body"),od);_d=select(kf.nodes()[0].contentDocument.body),_d.node().style.margin=0}else _d=select("body");appendDivSvgG(_d,Ra,ud)}let Id,Bd;try{Id=await Diagram.fromText(qa,{title:td.title})}catch(kf){if(rd.suppressErrorRendering)throw dd(),kf;Id=await Diagram.fromText("error"),Bd=kf}const Rd=_d.select(cd).node(),Od=Id.type,Md=Rd.firstChild,Ld=Md.firstChild,Fd=(mf=(df=Id.renderer).getClasses)==null?void 0:mf.call(df,qa,Id),jd=createUserStyles(rd,Od,Fd,sd),Vd=document.createElement("style");Vd.innerHTML=jd,Md.insertBefore(Vd,Ld);try{await Id.renderer.draw(qa,Ra,version,Id)}catch(kf){throw rd.suppressErrorRendering?dd():errorRenderer_default.draw(qa,Ra,version),kf}const Qd=_d.select(`${cd} svg`),qd=(pf=(bf=Id.db).getAccTitle)==null?void 0:pf.call(bf),Kd=(Tf=(_f=Id.db).getAccDescription)==null?void 0:Tf.call(_f);addA11yInfo(Od,Qd,qd,Kd),_d.select(`[id="${Ra}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let Xd=_d.select(cd).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",rd.arrowMarkerAbsolute),Xd=cleanUpSvgCode(Xd,Ed,evaluate(rd.arrowMarkerAbsolute)),Ed){const kf=_d.select(cd+" svg").node();Xd=putIntoIFrame(Xd,kf)}else Ad||(Xd=purify.sanitize(Xd,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(attachFunctions(),Bd)throw Bd;return dd(),{diagramType:Od,svg:Xd,bindFunctions:Id.db.bindFunctions}},"render");function initialize(Ra={}){var td;const qa=assignWithDepth_default({},Ra);qa!=null&&qa.fontFamily&&!((td=qa.themeVariables)!=null&&td.fontFamily)&&(qa.themeVariables||(qa.themeVariables={}),qa.themeVariables.fontFamily=qa.fontFamily),saveConfigFromInitialize(qa),qa!=null&&qa.theme&&qa.theme in themes_default?qa.themeVariables=themes_default[qa.theme].getThemeVariables(qa.themeVariables):qa&&(qa.themeVariables=themes_default.default.getThemeVariables(qa.themeVariables));const ed=typeof qa=="object"?setSiteConfig(qa):getSiteConfig();setLogLevel(ed.logLevel),addDiagrams()}__name(initialize,"initialize");var getDiagramFromText=__name((Ra,qa={})=>{const{code:ed}=preprocessDiagram(Ra);return Diagram.fromText(ed,qa)},"getDiagramFromText");function addA11yInfo(Ra,qa,ed,td){setA11yDiagramInfo(qa,Ra),addSVGa11yTitleDescription(qa,ed,td,qa.attr("id"))}__name(addA11yInfo,"addA11yInfo");var mermaidAPI=Object.freeze({render,parse,getDiagramFromText,initialize,getConfig:getConfig$1,setConfig,getSiteConfig,updateSiteConfig,reset:__name(()=>{reset()},"reset"),globalReset:__name(()=>{reset(defaultConfig)},"globalReset"),defaultConfig});setLogLevel(getConfig$1().logLeve
* Wait for document loaded before starting the execution
*//*! Bundled license information:
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/const inlineRule=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n$]))\1(?=[\s?!.,:]|$)/,inlineRuleNonStandard=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n$]))\1/,blockRule=/^(\${1,2})\n((?:\\[\s\S]|[^\\])+?)\n\1(?:\n|$)/;function createRenderer(Ra){return qa=>{window.MathJax.texReset();const td=window.MathJax.tex2svg(qa.text,{display:Ra}).firstChild,rd=td.style["min-width"]||td.getAttribute("width");return td.removeAttribute("width"),td.style="max-width: 300vw !important;",td.style.width=rd,td.style.display="initial",Ra?`<section style="text-align: center; overflow: auto;">${td.outerHTML}</section>`:`<span style="vertical-align: middle; line-height: 1;">${td.outerHTML}</span>`}}function inlineKatex(Ra,qa){const ed=Ra&&Ra.nonStandard,td=ed?inlineRuleNonStandard:inlineRule;return{name:"inlineKatex",level:"inline",start(rd){let sd,od=rd;for(;od;){if(sd=od.indexOf("$"),sd===-1)return;if((ed?sd>-1:sd===0||od.charAt(sd-1)===" ")&&od.substring(sd).match(td))return sd;od=od.substring(sd+1).replace(/^\$+/,"")}},tokenizer(rd){const sd=rd.match(td);if(sd)return{type:"inlineKatex",raw:sd[0],text:sd[2].trim(),displayMode:sd[1].length===2}},renderer:qa}}function blockKatex(Ra,qa){return{name:"blockKatex",level:"block",tokenizer(ed){const td=ed.match(blockRule);if(td)return{type:"blockKatex",raw:td[0],text:td[2].trim(),displayMode:td[1].length===2}},renderer:qa}}function MDKatex(Ra={}){return{extensions:[inlineKatex(Ra,createRenderer(!1)),blockKatex(Ra,createRenderer(!0))]}}marked$1.use(MDKatex({nonStandard:!0}));function buildTheme({theme:Ra,fonts:qa,size:ed}){const td=toMerged(Ra.base,{"font-family":qa,"font-size":ed}),rd=sd=>Object.fromEntries(Object.entries(sd).map(([od,ld])=>[od,toMerged(td,ld)]));return{...rd(Ra.inline),...rd(Ra.block)}}function buildAddition(){return`
<style>
.preview-wrapper pre::before {
position: absolute;
top: 0;
right: 0;
color: #ccc;
text-align: center;
font-size: 0.8em;
padding: 5px 10px 0;
line-height: 15px;
height: 15px;
font-weight: 600;
}
</style>
`}function getStyles(Ra,qa,ed=""){const td=Ra[qa];return td?`style="${Object.entries(td).map(([sd,od])=>`${sd}:${od}`).join(";")}${ed}"`:""}function buildFootnoteArray(Ra){return Ra.map(([qa,ed,td])=>td===ed?`<code style="font-size: 90%; opacity: 0.6;">[${qa}]</code>: <i style="word-break: break-all">${ed}</i><br/>`:`<code style="font-size: 90%; opacity: 0.6;">[${qa}]</code> ${ed}: <i style="word-break: break-all">${td}</i><br/>`).join(`
`)}function transform$1(Ra,qa,ed){const td=Ra.split("-");for(const rd of td){if(rd==="alt"&&qa)return qa;if(rd==="title"&&ed)return ed}return""}const macCodeSvg=`
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" width="45px" height="13px" viewBox="0 0 450 130">
<ellipse cx="65" cy="65" rx="50" ry="52" stroke="rgb(220,60,54)" stroke-width="2" fill="rgb(237,108,96)" />
<ellipse cx="225" cy="65" rx="50" ry="52" stroke="rgb(218,151,33)" stroke-width="2" fill="rgb(247,193,81)" />
<ellipse cx="385" cy="65" rx="50" ry="52" stroke="rgb(27,161,37)" stroke-width="2" fill="rgb(100,200,86)" />
</svg>
`.trim();function initRenderer(Ra){const qa=[];let ed=0,td=buildTheme(Ra),rd=0,sd=0,od=!1;function ld(Td,Id=""){return getStyles(td,Td,Id)}function ud(Td,Id,Bd){const Rd=Bd??Td;return`<${Rd} ${ld(Td)}>${Id}</${Rd}>`}function cd(Td,Id){return qa.push([++ed,Td,Id]),ed}function dd(Td){qa.length=0,ed=0,_d(Td)}function _d(Td){Ra={...Ra,...Td},td=buildTheme(Ra)}const Ed=()=>qa.length?ud("h4","引用链接")+ud("footnotes",buildFootnoteArray(qa),"p"):"",Ad={heading({tokens:Td,depth:Id}){const Bd=this.parser.parseInline(Td),Rd=`h${Id}`;return ud(Rd,Bd)},paragraph({tokens:Td}){const Id=this.parser.parseInline(Td),Bd=Id.includes("<figure")&&Id.includes("<img"),Rd=Id.trim()==="";return Bd||Rd?Id:ud("p",Id)},blockquote({tokens:Td}){let Id=this.parser.parse(Td);return Id=Id.replace(/<p .*?>/g,`<p ${ld("blockquote_p")}>`),ud("blockquote",Id)},code({text:Td,lang:Id=""}){if(Id.startsWith("mermaid"))return clearTimeout(rd),rd=setTimeout(()=>{mermaid_default.run()},0),`<pre class="mermaid">${Td}</pre>`;const Bd=Id.split(" ")[0],Rd=HighlightJS.getLanguage(Bd)?Bd:"plaintext";let Od=HighlightJS.highlight(Td,{language:Rd}).value;Od=Od.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>").replace(/(>[^<]+)|(^[^<]+)/g,Fd=>Fd.replace(/\s/g,"&nbsp;"));const Md=`<span class="mac-sign" style="padding: 10px 14px 0;" hidden>${macCodeSvg}</span>`,Ld=`<code class="language-${Id}" ${ld("code")}>${Od}</code>`;return`<pre class="hljs code__pre" ${ld("code_pre")}>${Md}${Ld}</pre>`},codespan({text:Td}){return ud("codespan",Td,"code")},listitem(Td){const Id=od?`${sd+1}. `:" ",Bd=Td.tokens.map(Rd=>this[Rd.type](Rd)).join("");return ud("listitem",`${Id}${Bd}`,"li")},list({ordered:Td,items:Id}){const Bd=[];for(let Od=0;Od<Id.length;Od++){od=Td,sd=Od;const Md=Id[Od];Bd.push(this.listitem(Md))}return ud(Td?"ol":"ul",Bd.join(""))},image({href:Td,title:Id,text:Bd}){const Rd=ud("figcaption",transform$1(Ra.legend,Bd,Id)),Od=ld("figure"),Md=ld("image");return`<figure ${Od}><img ${Md} src="${Td}" title="${Id}" alt="${Bd}"/>${Rd}</figure>`},link({href:Td,title:Id,text:Bd}){if(Td.startsWith("https://mp.weixin.qq.com"))return`<a href="${Td}" title="${Id||Bd}" ${ld("wx_link")}>${Bd}</a>`;if(Td===Bd)return Bd;if(Ra.status){const Rd=cd(Id||Bd,Td);return`<span ${ld("link")}>${Bd}<sup>[${Rd}]</sup></span>`}return ud("link",Bd,"span")},strong({tokens:Td}){return ud("strong",this.parser.parseInline(Td))},em({tokens:Td}){return ud("em",this.parser.parseInline(Td),"span")},table({header:Td,rows:Id}){const Bd=Td.map(Od=>this.tablecell(Od)).join(""),Rd=Id.map(Od=>{const Md=Od.map(Ld=>this.tablecell(Ld)).join("");return ud("tr",Md)}).join("");return`
<section style="padding:0 8px; max-width: 100%; overflow: auto">
<table class="preview-table">
<thead ${ld("thead")}>${Bd}</thead>
<tbody>${Rd}</tbody>
</table>
</section>
`},tablecell(Td){const Id=this.parser.parseInline(Td.tokens);return ud("td",Id)},hr(Td){return ud("hr","")}};return marked$1.use({renderer:Ad}),{buildAddition,buildFootnotes:Ed,setOptions:_d,reset:dd}}function tryOnScopeDispose(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function toValue$2(Ra){return typeof Ra=="function"?Ra():unref(Ra)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$2=Object.prototype.toString,isObject$2=Ra=>toString$2.call(Ra)==="[object Object]",noop$3=()=>{};function createFilterWrapper(Ra,qa){function ed(...td){return new Promise((rd,sd)=>{Promise.resolve(Ra(()=>qa.apply(this,td),{fn:qa,thisArg:this,args:td})).then(rd).catch(sd)})}return ed}const bypassFilter=Ra=>Ra();function pausableFilter(Ra=bypassFilter){const qa=ref$1(!0);function ed(){qa.value=!1}function td(){qa.value=!0}const rd=(...sd)=>{qa.value&&Ra(...sd)};return{isActive:readonly(qa),pause:ed,resume:td,eventFilter:rd}}function getLifeCycleTarget(Ra){return getCurrentInstance()}function toRef(...Ra){if(Ra.length!==1)return toRef$1(...Ra);const qa=Ra[0];return typeof qa=="function"?readonly(customRef(()=>({get:qa,set:noop$3}))):ref$1(qa)}function watchWithFilter(Ra,qa,ed={}){const{eventFilter:td=bypassFilter,...rd}=ed;return watch(Ra,createFilterWrapper(td,qa),rd)}function watchPausable(Ra,qa,ed={}){const{eventFilter:td,...rd}=ed,{eventFilter:sd,pause:od,resume:ld,isActive:ud}=pausableFilter(td);return{stop:watchWithFilter(Ra,qa,{...rd,eventFilter:sd}),pause:od,resume:ld,isActive:ud}}function tryOnMounted(Ra,qa=!0,ed){getLifeCycleTarget()?onMounted(Ra,ed):qa?Ra():nextTick$1(Ra)}function useToggle(Ra=!1,qa={}){const{truthyValue:ed=!0,falsyValue:td=!1}=qa,rd=isRef(Ra),sd=ref$1(Ra);function od(ld){if(arguments.length)return sd.value=ld,sd.value;{const ud=toValue$2(ed);return sd.value=sd.value===ud?toValue$2(td):ud,sd.value}}return rd?od:[sd,od]}const defaultWindow=isClient?window:void 0;function unrefElement(Ra){var qa;const ed=toValue$2(Ra);return(qa=ed==null?void 0:ed.$el)!=null?qa:ed}function useEventListener(...Ra){let qa,ed,td,rd;if(typeof Ra[0]=="string"||Array.isArray(Ra[0])?([ed,td,rd]=Ra,qa=defaultWindow):[qa,ed,td,rd]=Ra,!qa)return noop$3;Array.isArray(ed)||(ed=[ed]),Array.isArray(td)||(td=[td]);const sd=[],od=()=>{sd.forEach(dd=>dd()),sd.length=0},ld=(dd,_d,Ed,Ad)=>(dd.addEventListener(_d,Ed,Ad),()=>dd.removeEventListener(_d,Ed,Ad)),ud=watch(()=>[unrefElement(qa),toValue$2(rd)],([dd,_d])=>{if(od(),!dd)return;const Ed=isObject$2(_d)?{..._d}:_d;sd.push(...ed.flatMap(Ad=>td.map(Td=>ld(dd,Ad,Td,Ed))))},{immediate:!0,flush:"post"}),cd=()=>{ud(),od()};return tryOnScopeDispose(cd),cd}function useMounted(){const Ra=ref$1(!1),qa=getCurrentInstance();return qa&&onMounted(()=>{Ra.value=!0},qa),Ra}function useSupported(Ra){const qa=useMounted();return computed(()=>(qa.value,!!Ra()))}function useMediaQuery(Ra,qa={}){const{window:ed=defaultWindow}=qa,td=useSupported(()=>ed&&"matchMedia"in ed&&typeof ed.matchMedia=="function");let rd;const sd=ref$1(!1),od=cd=>{sd.value=cd.matches},ld=()=>{rd&&("removeEventListener"in rd?rd.removeEventListener("change",od):rd.removeListener(od))},ud=watchEffect(()=>{td.value&&(ld(),rd=ed.matchMedia(toValue$2(Ra)),"addEventListener"in rd?rd.addEventListener("change",od):rd.addListener(od),sd.value=rd.matches)});return tryOnScopeDispose(()=>{ud(),ld(),rd=void 0}),sd}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$1<"u"?global$1:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(Ra,qa){return handlers[Ra]||qa}function usePreferredDark(Ra){return useMediaQuery("(prefers-color-scheme: dark)",Ra)}function guessSerializerType(Ra){return Ra==null?"any":Ra instanceof Set?"set":Ra instanceof Map?"map":Ra instanceof Date?"date":typeof Ra=="boolean"?"boolean":typeof Ra=="string"?"string":typeof Ra=="obje
b`.split(/\n/).length!=3?function(Nd){for(var Pd=0,Wd=[],zd=Nd.length;Pd<=zd;){var Jd=Nd.indexOf(`
`,Pd);Jd==-1&&(Jd=Nd.length);var Ef=Nd.slice(Pd,Nd.charAt(Jd-1)=="\r"?Jd-1:Jd),Of=Ef.indexOf("\r");Of!=-1?(Wd.push(Ef.slice(0,Of)),Pd+=Of+1):(Wd.push(Ef),Pd=Jd+1)}return Wd}:function(Nd){return Nd.split(/\r\n?|\n/)},oh=window.getSelection?function(Nd){try{return Nd.selectionStart!=Nd.selectionEnd}catch{return!1}}:function(Nd){var Pd;try{Pd=Nd.ownerDocument.selection.createRange()}catch{}return!Pd||Pd.parentElement()!=Nd?!1:Pd.compareEndPoints("StartToEnd",Pd)!=0},Zf=function(){var Nd=pf("div");return"oncopy"in Nd?!0:(Nd.setAttribute("oncopy","return;"),typeof Nd.oncopy=="function")}(),lh=null;function bh(Nd){if(lh!=null)return lh;var Pd=bf(Nd,pf("span","x")),Wd=Pd.getBoundingClientRect(),zd=Tf(Pd,0,1).getBoundingClientRect();return lh=Math.abs(Wd.left-zd.left)>1}var gh={},Oh={};function Ih(Nd,Pd){arguments.length>2&&(Pd.dependencies=Array.prototype.slice.call(arguments,2)),gh[Nd]=Pd}function fh(Nd,Pd){Oh[Nd]=Pd}function Xh(Nd){if(typeof Nd=="string"&&Oh.hasOwnProperty(Nd))Nd=Oh[Nd];else if(Nd&&typeof Nd.name=="string"&&Oh.hasOwnProperty(Nd.name)){var Pd=Oh[Nd.name];typeof Pd=="string"&&(Pd={name:Pd}),Nd=ph(Pd,Nd),Nd.name=Pd.name}else{if(typeof Nd=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(Nd))return Xh("application/xml");if(typeof Nd=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(Nd))return Xh("application/json")}return typeof Nd=="string"?{name:Nd}:Nd||{name:"null"}}function cm(Nd,Pd){Pd=Xh(Pd);var Wd=gh[Pd.name];if(!Wd)return cm(Nd,"text/plain");var zd=Wd(Nd,Pd);if(jm.hasOwnProperty(Pd.name)){var Jd=jm[Pd.name];for(var Ef in Jd)Jd.hasOwnProperty(Ef)&&(zd.hasOwnProperty(Ef)&&(zd["_"+Ef]=zd[Ef]),zd[Ef]=Jd[Ef])}if(zd.name=Pd.name,Pd.helperType&&(zd.helperType=Pd.helperType),Pd.modeProps)for(var Of in Pd.modeProps)zd[Of]=Pd.modeProps[Of];return zd}var jm={};function gm(Nd,Pd){var Wd=jm.hasOwnProperty(Nd)?jm[Nd]:jm[Nd]={};hf(Pd,Wd)}function Vm(Nd,Pd){if(Pd===!0)return Pd;if(Nd.copyState)return Nd.copyState(Pd);var Wd={};for(var zd in Pd){var Jd=Pd[zd];Jd instanceof Array&&(Jd=Jd.concat([])),Wd[zd]=Jd}return Wd}function y_(Nd,Pd){for(var Wd;Nd.innerMode&&(Wd=Nd.innerMode(Pd),!(!Wd||Wd.mode==Nd));)Pd=Wd.state,Nd=Wd.mode;return Wd||{mode:Nd,state:Pd}}function x_(Nd,Pd,Wd){return Nd.startState?Nd.startState(Pd,Wd):!0}var u_=function(Nd,Pd,Wd){this.pos=this.start=0,this.string=Nd,this.tabSize=Pd||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Wd};u_.prototype.eol=function(){return this.pos>=this.string.length},u_.prototype.sol=function(){return this.pos==this.lineStart},u_.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},u_.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},u_.prototype.eat=function(Nd){var Pd=this.string.charAt(this.pos),Wd;if(typeof Nd=="string"?Wd=Pd==Nd:Wd=Pd&&(Nd.test?Nd.test(Pd):Nd(Pd)),Wd)return++this.pos,Pd},u_.prototype.eatWhile=function(Nd){for(var Pd=this.pos;this.eat(Nd););return this.pos>Pd},u_.prototype.eatSpace=function(){for(var Nd=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>Nd},u_.prototype.skipToEnd=function(){this.pos=this.string.length},u_.prototype.skipTo=function(Nd){var Pd=this.string.indexOf(Nd,this.pos);if(Pd>-1)return this.pos=Pd,!0},u_.prototype.backUp=function(Nd){this.pos-=Nd},u_.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Rf(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Rf(this.string,this.lineStart,this.tabSize):0)},u_.prototype.indentation=function(){return Rf(this.string,null,this.tabSize)-(this.lineStart?Rf(this.string,this.lineStart,this.tabSize):0)},u_.prototype.match=function(Nd,Pd,Wd){if(typeof Nd=="string"){var zd=function(Of){return Wd?Of.toLowerCase():Of},Jd=this.string.substr(this.pos,Nd.length);if(zd(Jd)==zd(Nd))return Pd!==!1&&(this.pos+=Nd.length),!0}else{var Ef=this.string.slice(this.pos).match(Nd);return Ef&&Ef.index>0?null:(Ef&&Pd!==!1&&(this.pos+=Ef[0].length),Ef)}},u_.prototype.current=funct
`?(pm=_h.appendChild(pf("span",$h[0]=="\r"?"␍":"␤","cm-invalidchar")),pm.setAttribute("cm-text",$h[0]),Nd.col+=1):(pm=Nd.cm.options.specialCharPlaceholder($h[0]),pm.setAttribute("cm-text",$h[0]),ud&&cd<9?_h.appendChild(pf("span",[pm])):_h.appendChild(pm),Nd.col+=1);Nd.map.push(Nd.pos,Nd.pos+1,pm),Nd.pos++}}if(Nd.trailingSpace=$f.charCodeAt(Pd.length-1)==32,Wd||zd||Jd||eh||Ef||Of){var Um=Wd||"";zd&&(Um+=zd),Jd&&(Um+=Jd);var Pm=pf("span",[_h],Um,Ef);if(Of)for(var Gm in Of)Of.hasOwnProperty(Gm)&&Gm!="style"&&Gm!="class"&&Pm.setAttribute(Gm,Of[Gm]);return Nd.content.appendChild(Pm)}Nd.content.appendChild(_h)}}function iv(Nd,Pd){if(Nd.length>1&&!/ /.test(Nd))return Nd;for(var Wd=Pd,zd="",Jd=0;Jd<Nd.length;Jd++){var Ef=Nd.charAt(Jd);Ef==" "&&Wd&&(Jd==Nd.length-1||Nd.charCodeAt(Jd+1)==32)&&(Ef=" "),zd+=Ef,Wd=Ef==" "}return zd}function V_(Nd,Pd){return function(Wd,zd,Jd,Ef,Of,$f,Vf){Jd=Jd?Jd+" cm-force-border":"cm-force-border";for(var eh=Wd.pos,_h=eh+zd.length;;){for(var Ch=void 0,$h=0;$h<Pd.length&&(Ch=Pd[$h],!(Ch.to>eh&&Ch.from<=eh));$h++);if(Ch.to>=_h)return Nd(Wd,zd,Jd,Ef,Of,$f,Vf);Nd(Wd,zd.slice(0,Ch.to-eh),Jd,Ef,null,$f,Vf),Ef=null,zd=zd.slice(Ch.to-eh),eh=Ch.to}}}function m0(Nd,Pd,Wd,zd){var Jd=!zd&&Wd.widgetNode;Jd&&Nd.map.push(Nd.pos,Nd.pos+Pd,Jd),!zd&&Nd.cm.display.input.needsContentAttribute&&(Jd||(Jd=Nd.content.appendChild(document.createElement("span"))),Jd.setAttribute("cm-marker",Wd.id)),Jd&&(Nd.cm.display.input.setUneditable(Jd),Nd.content.appendChild(Jd)),Nd.pos+=Pd,Nd.trailingSpace=!1}function jv(Nd,Pd,Wd){var zd=Nd.markedSpans,Jd=Nd.text,Ef=0;if(!zd){for(var Of=1;Of<Wd.length;Of+=2)Pd.addToken(Pd,Jd.slice(Ef,Ef=Wd[Of]),x1(Wd[Of+1],Pd.cm.options));return}for(var $f=Jd.length,Vf=0,eh=1,_h="",Ch,$h,Bh=0,sm,pm,Sm,$m,Um;;){if(Bh==Vf){sm=pm=Sm=$h="",Um=null,$m=null,Bh=1/0;for(var Pm=[],Gm=void 0,e_=0;e_<zd.length;++e_){var Jm=zd[e_],f_=Jm.marker;if(f_.type=="bookmark"&&Jm.from==Vf&&f_.widgetNode)Pm.push(f_);else if(Jm.from<=Vf&&(Jm.to==null||Jm.to>Vf||f_.collapsed&&Jm.to==Vf&&Jm.from==Vf)){if(Jm.to!=null&&Jm.to!=Vf&&Bh>Jm.to&&(Bh=Jm.to,pm=""),f_.className&&(sm+=" "+f_.className),f_.css&&($h=($h?$h+";":"")+f_.css),f_.startStyle&&Jm.from==Vf&&(Sm+=" "+f_.startStyle),f_.endStyle&&Jm.to==Bh&&(Gm||(Gm=[])).push(f_.endStyle,Jm.to),f_.title&&((Um||(Um={})).title=f_.title),f_.attributes)for(var $_ in f_.attributes)(Um||(Um={}))[$_]=f_.attributes[$_];f_.collapsed&&(!$m||Pv($m.marker,f_)<0)&&($m=Jm)}else Jm.from>Vf&&Bh>Jm.from&&(Bh=Jm.from)}if(Gm)for(var ng=0;ng<Gm.length;ng+=2)Gm[ng+1]==Bh&&(pm+=" "+Gm[ng]);if(!$m||$m.from==Vf)for(var W_=0;W_<Pm.length;++W_)m0(Pd,0,Pm[W_]);if($m&&($m.from||0)==Vf){if(m0(Pd,($m.to==null?$f+1:$m.to)-Vf,$m.marker,$m.from==null),$m.to==null)return;$m.to==Vf&&($m=!1)}}if(Vf>=$f)break;for(var Z_=Math.min($f,Bh);;){if(_h){var sg=Vf+_h.length;if(!$m){var og=sg>Z_?_h.slice(0,Z_-Vf):_h;Pd.addToken(Pd,og,Ch?Ch+sm:sm,Sm,Vf+og.length==Bh?pm:"",$h,Um)}if(sg>=Z_){_h=_h.slice(Z_-Vf),Vf=Z_;break}Vf=sg,Sm=""}_h=Jd.slice(Ef,Ef=Wd[eh++]),Ch=x1(Wd[eh++],Pd.cm.options)}}}function C1(Nd,Pd,Wd){this.line=Pd,this.rest=z0(Pd),this.size=this.rest?Lm(sh(this.rest))-Wd+1:1,this.node=this.text=null,this.hidden=tg(Nd,Pd)}function sb(Nd,Pd,Wd){for(var zd=[],Jd,Ef=Pd;Ef<Wd;Ef=Jd){var Of=new C1(Nd.doc,Nm(Nd.doc,Ef),Ef);Jd=Ef+Of.size,zd.push(Of)}return zd}var n0=null;function A1(Nd){n0?n0.ops.push(Nd):Nd.ownsGroup=n0={ops:[Nd],delayedCallbacks:[]}}function Dy(Nd){var Pd=Nd.delayedCallbacks,Wd=0;do{for(;Wd<Pd.length;Wd++)Pd[Wd].call(null);for(var zd=0;zd<Nd.ops.length;zd++){var Jd=Nd.ops[zd];if(Jd.cursorActivityHandlers)for(;Jd.cursorActivityCalled<Jd.cursorActivityHandlers.length;)Jd.cursorActivityHandlers[Jd.cursorActivityCalled++].call(null,Jd.cm)}}while(Wd<Pd.length)}function Hd(Nd,Pd){var Wd=Nd.ownsGroup;if(Wd)try{Dy(Wd)}finally{n0=null,Pd(Wd)}}var kd=null;function Gd(Nd,Pd){var Wd=Fm(Nd,Pd);if(Wd.length){var zd=Array.prototype.slice.call(arguments,2),Jd;n0?Jd=n0.delayedCallbacks:kd?Jd=kd:(Jd=kd=[],setTimeout(Zd,0));for(var Ef=function($f){Jd.push(function(){return Wd[$f].apply(null,zd)})},Of=0;Of<Wd.length;++Of)E
top: `+Gm+"px; width: "+(e_??Vf-Pm)+`px;
height: `+(Jm-Gm)+"px"))}function Ch(Pm,Gm,e_){var Jm=Nm(Jd,Pm),f_=Jm.text.length,$_,ng;function W_(og,kg){return um(Nd,fm(Pm,og),"div",Jm,kg)}function Z_(og,kg,Ag){var pg=j_(Nd,Jm,null,og),lg=kg=="ltr"==(Ag=="after")?"left":"right",eg=Ag=="after"?pg.begin:pg.end-(/\s/.test(Jm.text.charAt(pg.end-1))?2:1);return W_(eg,lg)[lg]}var sg=Yh(Jm,Jd.direction);return Xf(sg,Gm||0,e_??f_,function(og,kg,Ag,pg){var lg=Ag=="ltr",eg=W_(og,lg?"left":"right"),Lg=W_(kg-1,lg?"right":"left"),Ov=Gm==null&&og==0,yb=e_==null&&kg==f_,Ng=pg==0,F0=!sg||pg==sg.length-1;if(Lg.top-eg.top<=3){var Eg=(eh?Ov:yb)&&Ng,yE=(eh?yb:Ov)&&F0,j0=Eg?$f:(lg?eg:Lg).left,Eb=yE?Vf:(lg?Lg:eg).right;_h(j0,eg.top,Eb-j0,eg.bottom)}else{var Tb,Mg,Rv,TE;lg?(Tb=eh&&Ov&&Ng?$f:eg.left,Mg=eh?Vf:Z_(og,Ag,"before"),Rv=eh?$f:Z_(kg,Ag,"after"),TE=eh&&yb&&F0?Vf:Lg.right):(Tb=eh?Z_(og,Ag,"before"):$f,Mg=!eh&&Ov&&Ng?Vf:eg.right,Rv=!eh&&yb&&F0?$f:Lg.left,TE=eh?Z_(kg,Ag,"after"):Vf),_h(Tb,eg.top,Mg-Tb,eg.bottom),eg.bottom<Lg.top&&_h($f,eg.bottom,null,Lg.top),_h(Rv,Lg.top,TE-Rv,Lg.bottom)}(!$_||Mb(eg,$_)<0)&&($_=eg),Mb(Lg,$_)<0&&($_=Lg),(!ng||Mb(eg,ng)<0)&&(ng=eg),Mb(Lg,ng)<0&&(ng=Lg)}),{start:$_,end:ng}}var $h=Pd.from(),Bh=Pd.to();if($h.line==Bh.line)Ch($h.line,$h.ch,Bh.ch);else{var sm=Nm(Jd,$h.line),pm=Nm(Jd,Bh.line),Sm=k_(sm)==k_(pm),$m=Ch($h.line,$h.ch,Sm?sm.text.length+1:null).end,Um=Ch(Bh.line,Sm?0:null,Bh.ch).start;Sm&&($m.top<Um.top-2?(_h($m.right,$m.top,null,$m.bottom),_h($f,Um.top,Um.left,Um.bottom)):_h($m.right,$m.top,Um.left-$m.right,$m.bottom)),$m.bottom<Um.top&&_h($f,$m.bottom,null,Um.top)}Wd.appendChild(Ef)}function Bb(Nd){if(Nd.state.focused){var Pd=Nd.display;clearInterval(Pd.blinker);var Wd=!0;Pd.cursorDiv.style.visibility="",Nd.options.cursorBlinkRate>0?Pd.blinker=setInterval(function(){Nd.hasFocus()||cv(Nd),Pd.cursorDiv.style.visibility=(Wd=!Wd)?"":"hidden"},Nd.options.cursorBlinkRate):Nd.options.cursorBlinkRate<0&&(Pd.cursorDiv.style.visibility="hidden")}}function ub(Nd){Nd.hasFocus()||(Nd.display.input.focus(),Nd.state.focused||Fy(Nd))}function uv(Nd){Nd.state.delayingBlurEvent=!0,setTimeout(function(){Nd.state.delayingBlurEvent&&(Nd.state.delayingBlurEvent=!1,Nd.state.focused&&cv(Nd))},100)}function Fy(Nd,Pd){Nd.state.delayingBlurEvent&&!Nd.state.draggingText&&(Nd.state.delayingBlurEvent=!1),Nd.options.readOnly!="nocursor"&&(Nd.state.focused||(Om(Nd,"focus",Nd,Pd),Nd.state.focused=!0,Jf(Nd.display.wrapper,"CodeMirror-focused"),!Nd.curOp&&Nd.display.selForContextMenu!=Nd.doc.sel&&(Nd.display.input.reset(),dd&&setTimeout(function(){return Nd.display.input.reset(!0)},20)),Nd.display.input.receivedFocus()),Bb(Nd))}function cv(Nd,Pd){Nd.state.delayingBlurEvent||(Nd.state.focused&&(Om(Nd,"blur",Nd,Pd),Nd.state.focused=!1,df(Nd.display.wrapper,"CodeMirror-focused")),clearInterval(Nd.display.blinker),setTimeout(function(){Nd.state.focused||(Nd.display.shift=!1)},150))}function k1(Nd){for(var Pd=Nd.display,Wd=Pd.lineDiv.offsetTop,zd=Math.max(0,Pd.scroller.getBoundingClientRect().top),Jd=Pd.lineDiv.getBoundingClientRect().top,Ef=0,Of=0;Of<Pd.view.length;Of++){var $f=Pd.view[Of],Vf=Nd.options.lineWrapping,eh=void 0,_h=0;if(!$f.hidden){if(Jd+=$f.line.height,ud&&cd<8){var Ch=$f.node.offsetTop+$f.node.offsetHeight;eh=Ch-Wd,Wd=Ch}else{var $h=$f.node.getBoundingClientRect();eh=$h.bottom-$h.top,!Vf&&$f.text.firstChild&&(_h=$f.text.firstChild.getBoundingClientRect().right-$h.left-1)}var Bh=$f.line.height-eh;if((Bh>.005||Bh<-.005)&&(Jd<zd&&(Ef-=Bh),r_($f.line,eh),Gv($f.line),$f.rest))for(var sm=0;sm<$f.rest.length;sm++)Gv($f.rest[sm]);if(_h>Nd.display.sizerWidth){var pm=Math.ceil(_h/Y0(Nd.display));pm>Nd.display.maxLineLength&&(Nd.display.maxLineLength=pm,Nd.display.maxLine=$f.line,Nd.display.maxLineChanged=!0)}}}Math.abs(Ef)>2&&(Pd.scroller.scrollTop+=Ef)}function Gv(Nd){if(Nd.widgets)for(var Pd=0;Pd<Nd.widgets.length;++Pd){var Wd=Nd.widgets[Pd],zd=Wd.node.parentNode;zd&&(Wd.height=zd.offsetHeight)}}function Pb(Nd,Pd,Wd){var zd=Wd&&Wd.top!=null?Math.max(0,Wd.top):Nd.scroller.scrollTop;zd=Math.floor(zd-_g(Nd));var Jd=Wd&&Wd.bottom!=null?Wd.bottom:zd+Nd
top: `+(Pd.top-Wd.viewOffset-_g(Nd.display))+`px;
height: `+(Pd.bottom-Pd.top+R0(Nd)+Wd.barHeight)+`px;
left: `+Pd.left+"px; width: "+Math.max(2,Pd.right-Pd.left)+"px;");Nd.display.lineSpace.appendChild(Of),Of.scrollIntoView(Jd),Nd.display.lineSpace.removeChild(Of)}}}function IT(Nd,Pd,Wd,zd){zd==null&&(zd=0);var Jd;!Nd.options.lineWrapping&&Pd==Wd&&(Wd=Pd.sticky=="before"?fm(Pd.line,Pd.ch+1,"before"):Pd,Pd=Pd.ch?fm(Pd.line,Pd.sticky=="before"?Pd.ch-1:Pd.ch,"after"):Pd);for(var Ef=0;Ef<5;Ef++){var Of=!1,$f=Kh(Nd,Pd),Vf=!Wd||Wd==Pd?$f:Kh(Nd,Wd);Jd={left:Math.min($f.left,Vf.left),top:Math.min($f.top,Vf.top)-zd,right:Math.max($f.left,Vf.left),bottom:Math.max($f.bottom,Vf.bottom)+zd};var eh=zy(Nd,Jd),_h=Nd.doc.scrollTop,Ch=Nd.doc.scrollLeft;if(eh.scrollTop!=null&&(qv(Nd,eh.scrollTop),Math.abs(Nd.doc.scrollTop-_h)>1&&(Of=!0)),eh.scrollLeft!=null&&(y0(Nd,eh.scrollLeft),Math.abs(Nd.doc.scrollLeft-Ch)>1&&(Of=!0)),!Of)break}return Jd}function kE(Nd,Pd){var Wd=zy(Nd,Pd);Wd.scrollTop!=null&&qv(Nd,Wd.scrollTop),Wd.scrollLeft!=null&&y0(Nd,Wd.scrollLeft)}function zy(Nd,Pd){var Wd=Nd.display,zd=g0(Nd.display);Pd.top<0&&(Pd.top=0);var Jd=Nd.curOp&&Nd.curOp.scrollTop!=null?Nd.curOp.scrollTop:Wd.scroller.scrollTop,Ef=Iy(Nd),Of={};Pd.bottom-Pd.top>Ef&&(Pd.bottom=Pd.top+Ef);var $f=Nd.doc.height+Db(Wd),Vf=Pd.top<zd,eh=Pd.bottom>$f-zd;if(Pd.top<Jd)Of.scrollTop=Vf?0:Pd.top;else if(Pd.bottom>Jd+Ef){var _h=Math.min(Pd.top,(eh?$f:Pd.bottom)-Ef);_h!=Jd&&(Of.scrollTop=_h)}var Ch=Nd.options.fixedGutter?0:Wd.gutters.offsetWidth,$h=Nd.curOp&&Nd.curOp.scrollLeft!=null?Nd.curOp.scrollLeft:Wd.scroller.scrollLeft-Ch,Bh=Ib(Nd)-Wd.gutters.offsetWidth,sm=Pd.right-Pd.left>Bh;return sm&&(Pd.right=Pd.left+Bh),Pd.left<10?Of.scrollLeft=0:Pd.left<$h?Of.scrollLeft=Math.max(0,Pd.left+Ch-(sm?0:10)):Pd.right>Bh+$h-3&&(Of.scrollLeft=Pd.right+(sm?0:10)-Bh),Of}function Yy(Nd,Pd){Pd!=null&&(M1(Nd),Nd.curOp.scrollTop=(Nd.curOp.scrollTop==null?Nd.doc.scrollTop:Nd.curOp.scrollTop)+Pd)}function K_(Nd){M1(Nd);var Pd=Nd.getCursor();Nd.curOp.scrollToPos={from:Pd,to:Pd,margin:Nd.options.cursorScrollMargin}}function dg(Nd,Pd,Wd){(Pd!=null||Wd!=null)&&M1(Nd),Pd!=null&&(Nd.curOp.scrollLeft=Pd),Wd!=null&&(Nd.curOp.scrollTop=Wd)}function OT(Nd,Pd){M1(Nd),Nd.curOp.scrollToPos=Pd}function M1(Nd){var Pd=Nd.curOp.scrollToPos;if(Pd){Nd.curOp.scrollToPos=null;var Wd=Km(Nd,Pd.from),zd=Km(Nd,Pd.to);Ky(Nd,Wd,zd,Pd.margin)}}function Ky(Nd,Pd,Wd,zd){var Jd=zy(Nd,{left:Math.min(Pd.left,Wd.left),top:Math.min(Pd.top,Wd.top)-zd,right:Math.max(Pd.right,Wd.right),bottom:Math.max(Pd.bottom,Wd.bottom)+zd});dg(Nd,Jd.scrollLeft,Jd.scrollTop)}function qv(Nd,Pd){Math.abs(Nd.doc.scrollTop-Pd)<2||(rd||E0(Nd,{top:Pd}),B1(Nd,Pd,!0),rd&&E0(Nd),Wv(Nd,100))}function B1(Nd,Pd,Wd){Pd=Math.max(0,Math.min(Nd.display.scroller.scrollHeight-Nd.display.scroller.clientHeight,Pd)),!(Nd.display.scroller.scrollTop==Pd&&!Wd)&&(Nd.doc.scrollTop=Pd,Nd.display.scrollbars.setScrollTop(Pd),Nd.display.scroller.scrollTop!=Pd&&(Nd.display.scroller.scrollTop=Pd))}function y0(Nd,Pd,Wd,zd){Pd=Math.max(0,Math.min(Pd,Nd.display.scroller.scrollWidth-Nd.display.scroller.clientWidth)),!((Wd?Pd==Nd.doc.scrollLeft:Math.abs(Nd.doc.scrollLeft-Pd)<2)&&!zd)&&(Nd.doc.scrollLeft=Pd,$E(Nd),Nd.display.scroller.scrollLeft!=Pd&&(Nd.display.scroller.scrollLeft=Pd),Nd.display.scrollbars.setScrollLeft(Pd))}function $b(Nd){var Pd=Nd.display,Wd=Pd.gutters.offsetWidth,zd=Math.round(Nd.doc.height+Db(Nd.display));return{clientHeight:Pd.scroller.clientHeight,viewHeight:Pd.wrapper.clientHeight,scrollWidth:Pd.scroller.scrollWidth,clientWidth:Pd.scroller.clientWidth,viewWidth:Pd.wrapper.clientWidth,barLeft:Nd.options.fixedGutter?Wd:0,docHeight:zd,scrollHeight:zd+R0(Nd)+Pd.barHeight,nativeBarWidth:Pd.nativeBarWidth,gutterWidth:Wd}}var a0=function(Nd,Pd,Wd){this.cm=Wd;var zd=this.vert=pf("div",[pf("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Jd=this.horiz=pf("div",[pf("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");zd.tabIndex=Jd.tabIndex=-1,Nd(zd),Nd(Jd),im(zd,"scroll",function(){zd.clientHeight&&Pd(zd.scrollTop,"vertical")}),im(Jd,"scroll",function(){Jd.clientWidth&&Pd(Jd.scrollLeft,"horizontal")}),thi
`},setDirection:gg(function(Nd){Nd!="rtl"&&(Nd="ltr"),Nd!=this.direction&&(this.direction=Nd,this.iter(function(Pd){return Pd.order=null}),this.cm&&Q0(this.cm))})}),Rg.prototype.eachLine=Rg.prototype.iter;var G1=0;function VT(Nd){var Pd=this;if(nT(Pd),!(Qm(Pd,Nd)||D_(Pd.display,Nd))){Xm(Nd),ud&&(G1=+new Date);var Wd=k0(Pd,Nd,!0),zd=Nd.dataTransfer.files;if(!(!Wd||Pd.isReadOnly()))if(zd&&zd.length&&window.FileReader&&window.File)for(var Jd=zd.length,Ef=Array(Jd),Of=0,$f=function(){++Of==Jd&&M_(Pd,function(){Wd=i_(Pd.doc,Wd);var Bh={from:Wd,to:Wd,text:Pd.doc.splitLines(Ef.filter(function(sm){return sm!=null}).join(Pd.doc.lineSeparator())),origin:"paste"};vv(Pd.doc,Bh),hb(Pd.doc,db(i_(Pd.doc,Wd),i_(Pd.doc,pb(Bh))))})()},Vf=function(Bh,sm){if(Pd.options.allowDropFileTypes&&Kf(Pd.options.allowDropFileTypes,Bh.type)==-1){$f();return}var pm=new FileReader;pm.onerror=function(){return $f()},pm.onload=function(){var Sm=pm.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Sm)){$f();return}Ef[sm]=Sm,$f()},pm.readAsText(Bh)},eh=0;eh<zd.length;eh++)Vf(zd[eh],eh);else{if(Pd.state.draggingText&&Pd.doc.sel.contains(Wd)>-1){Pd.state.draggingText(Nd),setTimeout(function(){return Pd.display.input.focus()},20);return}try{var _h=Nd.dataTransfer.getData("Text");if(_h){var Ch;if(Pd.state.draggingText&&!Pd.state.draggingText.copy&&(Ch=Pd.listSelections()),Cg(Pd.doc,db(Wd,Wd)),Ch)for(var $h=0;$h<Ch.length;++$h)Gb(Pd.doc,"",Ch[$h].anchor,Ch[$h].head,"drag");Pd.replaceSelection(_h,"around","paste"),Pd.display.input.focus()}}catch{}}}}function cE(Nd,Pd){if(ud&&(!Nd.state.draggingText||+new Date-G1<100)){Y_(Pd);return}if(!(Qm(Nd,Pd)||D_(Nd.display,Pd))&&(Pd.dataTransfer.setData("Text",Nd.getSelection()),Pd.dataTransfer.effectAllowed="copyMove",Pd.dataTransfer.setDragImage&&!Id)){var Wd=pf("img",null,null,"position: fixed; left: 0; top: 0;");Wd.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Td&&(Wd.width=Wd.height=1,Nd.display.wrapper.appendChild(Wd),Wd._top=Wd.offsetTop),Pd.dataTransfer.setDragImage(Wd,0,0),Td&&Wd.parentNode.removeChild(Wd)}}function m_(Nd,Pd){var Wd=k0(Nd,Pd);if(Wd){var zd=document.createDocumentFragment();R1(Nd,Wd,zd),Nd.display.dragCursor||(Nd.display.dragCursor=pf("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),Nd.display.lineSpace.insertBefore(Nd.display.dragCursor,Nd.display.cursorDiv)),bf(Nd.display.dragCursor,zd)}}function nT(Nd){Nd.display.dragCursor&&(Nd.display.lineSpace.removeChild(Nd.display.dragCursor),Nd.display.dragCursor=null)}function iT(Nd){if(document.getElementsByClassName){for(var Pd=document.getElementsByClassName("CodeMirror"),Wd=[],zd=0;zd<Pd.length;zd++){var Jd=Pd[zd].CodeMirror;Jd&&Wd.push(Jd)}Wd.length&&Wd[0].operation(function(){for(var Ef=0;Ef<Wd.length;Ef++)Nd(Wd[Ef])})}}var Sv=!1;function aT(){Sv||(zT(),Sv=!0)}function zT(){var Nd;im(window,"resize",function(){Nd==null&&(Nd=setTimeout(function(){Nd=null,iT(WT)},100))}),im(window,"blur",function(){return iT(cv)})}function WT(Nd){var Pd=Nd.display;Pd.cachedCharWidth=Pd.cachedTextHeight=Pd.cachedPaddingH=null,Pd.scrollbarsClipped=!1,Nd.setSize()}for(var vg={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},e1=0;e1<10;e1++)vg[e1+48]=vg[e1+96]=String(e1);for(var zb=65;zb<=90;zb++)vg[zb]=String.fromCharCode(zb);for(var Wb=1;Wb<=12;Wb++)vg[Wb+111]=vg[Wb+63235]="F"+Wb;var P0={};P0.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"
`,"start")},toggleOverwrite:function(Nd){return Nd.toggleOverwrite()}};function Z0(Nd,Pd){var Wd=Nm(Nd.doc,Pd),zd=k_(Wd);return zd!=Wd&&(Pd=Lm(zd)),i1(!0,Nd,zd,Pd,1)}function oT(Nd,Pd){var Wd=Nm(Nd.doc,Pd),zd=Lv(Wd);return zd!=Wd&&(Pd=Lm(zd)),i1(!0,Nd,Wd,Pd,-1)}function pE(Nd,Pd){var Wd=Z0(Nd,Pd.line),zd=Nm(Nd.doc,Wd.line),Jd=Yh(zd,Nd.doc.direction);if(!Jd||Jd[0].level==0){var Ef=Math.max(Wd.ch,zd.text.search(/\S/)),Of=Pd.line==Wd.line&&Pd.ch<=Ef&&Pd.ch;return fm(Wd.line,Of?0:Ef,Wd.sticky)}return Wd}function xv(Nd,Pd,Wd){if(typeof Pd=="string"&&(Pd=a1[Pd],!Pd))return!1;Nd.display.input.ensurePolled();var zd=Nd.display.shift,Jd=!1;try{Nd.isReadOnly()&&(Nd.state.suppressEdits=!0),Wd&&(Nd.display.shift=!1),Jd=Pd(Nd)!=wf}finally{Nd.display.shift=zd,Nd.state.suppressEdits=!1}return Jd}function YT(Nd,Pd,Wd){for(var zd=0;zd<Nd.state.keyMaps.length;zd++){var Jd=Yg(Pd,Nd.state.keyMaps[zd],Wd,Nd);if(Jd)return Jd}return Nd.options.extraKeys&&Yg(Pd,Nd.options.extraKeys,Wd,Nd)||Yg(Pd,Nd.options.keyMap,Wd,Nd)}var KT=new jf;function s1(Nd,Pd,Wd,zd){var Jd=Nd.state.keySeq;if(Jd){if(q1(Pd))return"handled";if(/\'$/.test(Pd)?Nd.state.keySeq=null:KT.set(50,function(){Nd.state.keySeq==Jd&&(Nd.state.keySeq=null,Nd.display.input.reset())}),fE(Nd,Jd+" "+Pd,Wd,zd))return!0}return fE(Nd,Pd,Wd,zd)}function fE(Nd,Pd,Wd,zd){var Jd=YT(Nd,Pd,zd);return Jd=="multi"&&(Nd.state.keySeq=Pd),Jd=="handled"&&Gd(Nd,"keyHandled",Nd,Pd,Wd),(Jd=="handled"||Jd=="multi")&&(Xm(Wd),Bb(Nd)),!!Jd}function hE(Nd,Pd){var Wd=t1(Pd,!0);return Wd?Pd.shiftKey&&!Nd.state.keySeq?s1(Nd,"Shift-"+Wd,Pd,function(zd){return xv(Nd,zd,!0)})||s1(Nd,Wd,Pd,function(zd){if(typeof zd=="string"?/^go[A-Z]/.test(zd):zd.motion)return xv(Nd,zd)}):s1(Nd,Wd,Pd,function(zd){return xv(Nd,zd)}):!1}function XT(Nd,Pd,Wd){return s1(Nd,"'"+Wd+"'",Pd,function(zd){return xv(Nd,zd,!0)})}var z1=null;function mE(Nd){var Pd=this;if(!(Nd.target&&Nd.target!=Pd.display.input.getField())&&(Pd.curOp.focus=zf(Bf(Pd)),!Qm(Pd,Nd))){ud&&cd<11&&Nd.keyCode==27&&(Nd.returnValue=!1);var Wd=Nd.keyCode;Pd.display.shift=Wd==16||Nd.shiftKey;var zd=hE(Pd,Nd);Td&&(z1=zd?Wd:null,!zd&&Wd==88&&!Zf&&(Fd?Nd.metaKey:Nd.ctrlKey)&&Pd.replaceSelection("",null,"cut")),rd&&!Fd&&!zd&&Wd==46&&Nd.shiftKey&&!Nd.ctrlKey&&document.execCommand&&document.execCommand("cut"),Wd==18&&!/\bCodeMirror-crosshair\b/.test(Pd.display.lineDiv.className)&&Gg(Pd)}}function Gg(Nd){var Pd=Nd.display.lineDiv;Jf(Pd,"CodeMirror-crosshair");function Wd(zd){(zd.keyCode==18||!zd.altKey)&&(df(Pd,"CodeMirror-crosshair"),Dm(document,"keyup",Wd),Dm(document,"mouseover",Wd))}im(document,"keyup",Wd),im(document,"mouseover",Wd)}function A0(Nd){Nd.keyCode==16&&(this.doc.sel.shift=!1),Qm(this,Nd)}function lT(Nd){var Pd=this;if(!(Nd.target&&Nd.target!=Pd.display.input.getField())&&!(D_(Pd.display,Nd)||Qm(Pd,Nd)||Nd.ctrlKey&&!Nd.altKey||Fd&&Nd.metaKey)){var Wd=Nd.keyCode,zd=Nd.charCode;if(Td&&Wd==z1){z1=null,Xm(Nd);return}if(!(Td&&(!Nd.which||Nd.which<10)&&hE(Pd,Nd))){var Jd=String.fromCharCode(zd??Wd);Jd!="\b"&&(XT(Pd,Nd,Jd)||Pd.display.input.onKeyPress(Nd))}}}var QT=400,Cv=function(Nd,Pd,Wd){this.time=Nd,this.pos=Pd,this.button=Wd};Cv.prototype.compare=function(Nd,Pd,Wd){return this.time+QT>Nd&&n_(Pd,this.pos)==0&&Wd==this.button};var $0,Av;function uT(Nd,Pd){var Wd=+new Date;return Av&&Av.compare(Wd,Nd,Pd)?($0=Av=null,"triple"):$0&&$0.compare(Wd,Nd,Pd)?(Av=new Cv(Wd,Nd,Pd),$0=null,"double"):($0=new Cv(Wd,Nd,Pd),Av=null,"single")}function cT(Nd){var Pd=this,Wd=Pd.display;if(!(Qm(Pd,Nd)||Wd.activeTouch&&Wd.input.supportsTouch())){if(Wd.input.ensurePolled(),Wd.shift=Nd.shiftKey,D_(Wd,Nd)){dd||(Wd.scroller.draggable=!1,setTimeout(function(){return Wd.scroller.draggable=!0},100));return}if(!Dv(Pd,Nd)){var zd=k0(Pd,Nd),Jd=F_(Nd),Ef=zd?uT(zd,Jd):"single";Wf(Pd).focus(),Jd==1&&Pd.state.selectingText&&Pd.state.selectingText(Nd),!(zd&&dT(Pd,Jd,zd,Ef,Nd))&&(Jd==1?zd?o1(Pd,zd,Ef,Nd):X_(Nd)==Wd.scroller&&Xm(Nd):Jd==2?(zd&&mv(Pd.doc,zd),setTimeout(function(){return Wd.input.focus()},20)):Jd==3&&(Kd?Pd.display.input.onContextMenu(Nd):uv(Pd)))}}}function dT(Nd,Pd,Wd,zd,Jd){var Ef="Click";
`)==Pd){if(zd.ranges.length%o0.text.length==0){eh=[];for(var _h=0;_h<o0.text.length;_h++)eh.push(Ef.splitLines(o0.text[_h]))}}else Vf.length==zd.ranges.length&&Nd.options.pasteLinesPerSelection&&(eh=hh(Vf,function($m){return[$m]}));for(var Ch=Nd.curOp.updateInput,$h=zd.ranges.length-1;$h>=0;$h--){var Bh=zd.ranges[$h],sm=Bh.from(),pm=Bh.to();Bh.empty()&&(Wd&&Wd>0?sm=fm(sm.line,sm.ch-Wd):Nd.state.overwrite&&!$f?pm=fm(pm.line,Math.min(Nm(Ef,pm.line).text.length,pm.ch+sh(Vf).length)):$f&&o0&&o0.lineWise&&o0.text.join(`
`)==Vf.join(`
`)&&(sm=pm=fm(sm.line,0)));var Sm={from:sm,to:pm,text:eh?eh[$h%eh.length]:Vf,origin:Jd||($f?"paste":Nd.state.cutIncoming>Of?"cut":"+input")};vv(Nd.doc,Sm),Gd(Nd,"inputRead",Nd,Sm)}Pd&&!$f&&J1(Nd,Pd),K_(Nd),Nd.curOp.updateInput<2&&(Nd.curOp.updateInput=Ch),Nd.curOp.typing=!0,Nd.state.pasteIncoming=Nd.state.cutIncoming=-1}function L0(Nd,Pd){var Wd=Nd.clipboardData&&Nd.clipboardData.getData("Text");if(Wd)return Nd.preventDefault(),!Pd.isReadOnly()&&!Pd.options.disableInput&&Pd.hasFocus()&&wg(Pd,function(){return vE(Pd,Wd,0,null,"paste")}),!0}function J1(Nd,Pd){if(!(!Nd.options.electricChars||!Nd.options.smartIndent))for(var Wd=Nd.doc.sel,zd=Wd.ranges.length-1;zd>=0;zd--){var Jd=Wd.ranges[zd];if(!(Jd.head.ch>100||zd&&Wd.ranges[zd-1].head.line==Jd.head.line)){var Ef=Nd.getModeAt(Jd.head),Of=!1;if(Ef.electricChars){for(var $f=0;$f<Ef.electricChars.length;$f++)if(Pd.indexOf(Ef.electricChars.charAt($f))>-1){Of=c1(Nd,Jd.head.line,"smart");break}}else Ef.electricInput&&Ef.electricInput.test(Nm(Nd.doc,Jd.head.line).text.slice(0,Jd.head.ch))&&(Of=c1(Nd,Jd.head.line,"smart"));Of&&Gd(Nd,"electricInput",Nd,Jd.head.line)}}}function Z1(Nd){for(var Pd=[],Wd=[],zd=0;zd<Nd.doc.sel.ranges.length;zd++){var Jd=Nd.doc.sel.ranges[zd].head.line,Ef={anchor:fm(Jd,0),head:fm(Jd+1,0)};Wd.push(Ef),Pd.push(Nd.getRange(Ef.anchor,Ef.head))}return{text:Pd,ranges:Wd}}function d1(Nd,Pd,Wd,zd){Nd.setAttribute("autocorrect",Wd?"on":"off"),Nd.setAttribute("autocapitalize",zd?"on":"off"),Nd.setAttribute("spellcheck",!!Pd)}function p1(){var Nd=pf("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),Pd=pf("div",[Nd],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return dd?Nd.style.width="1000px":Nd.setAttribute("wrap","off"),Od&&(Nd.style.border="1px solid black"),Pd}function Iv(Nd){var Pd=Nd.optionHandlers,Wd=Nd.helpers={};Nd.prototype={constructor:Nd,focus:function(){Wf(this).focus(),this.display.input.focus()},setOption:function(zd,Jd){var Ef=this.options,Of=Ef[zd];Ef[zd]==Jd&&zd!="mode"||(Ef[zd]=Jd,Pd.hasOwnProperty(zd)&&M_(this,Pd[zd])(this,Jd,Of),Om(this,"optionChange",this,zd))},getOption:function(zd){return this.options[zd]},getDoc:function(){return this.doc},addKeyMap:function(zd,Jd){this.state.keyMaps[Jd?"push":"unshift"](r1(zd))},removeKeyMap:function(zd){for(var Jd=this.state.keyMaps,Ef=0;Ef<Jd.length;++Ef)if(Jd[Ef]==zd||Jd[Ef].name==zd)return Jd.splice(Ef,1),!0},addOverlay:s_(function(zd,Jd){var Ef=zd.token?zd:Nd.getMode(this.options,zd);if(Ef.startState)throw new Error("Overlays may not be stateful.");rh(this.state.overlays,{mode:Ef,modeSpec:zd,opaque:Jd&&Jd.opaque,priority:Jd&&Jd.priority||0},function(Of){return Of.priority}),this.state.modeGen++,$g(this)}),removeOverlay:s_(function(zd){for(var Jd=this.state.overlays,Ef=0;Ef<Jd.length;++Ef){var Of=Jd[Ef].modeSpec;if(Of==zd||typeof zd=="string"&&Of.name==zd){Jd.splice(Ef,1),this.state.modeGen++,$g(this);return}}}),indentLine:s_(function(zd,Jd,Ef){typeof Jd!="string"&&typeof Jd!="number"&&(Jd==null?Jd=this.options.smartIndent?"smart":"prev":Jd=Jd?"add":"subtract"),Xg(this.doc,zd)&&c1(this,zd,Jd,Ef)}),indentSelection:s_(function(zd){for(var Jd=this.doc.sel.ranges,Ef=-1,Of=0;Of<Jd.length;Of++){var $f=Jd[Of];if($f.empty())$f.head.line>Ef&&(c1(this,$f.head.line,zd,!0),Ef=$f.head.line,Of==this.doc.sel.primIndex&&K_(this));else{var Vf=$f.from(),eh=$f.to(),_h=Math.max(Ef,Vf.line);Ef=Math.min(this.lastLine(),eh.line-(eh.ch?0:1))+1;for(var Ch=_h;Ch<Ef;++Ch)c1(this,Ch,zd);var $h=this.doc.sel.ranges;Vf.ch==0&&Jd.length==$h.length&&$h[Of].from().ch>0&&s0(this.doc,Of,new I_(Vf,$h[Of].to()),Yf)}}}),getTokenAt:function(zd,Jd){return nb(this,zd,Jd)},getLineTokens:function(zd,Jd){return nb(this,fm(zd),Jd,!0)},getTokenTypeAt:function(zd){zd=i_(this.doc,zd);var Jd=I0(this,Nm(this.doc,zd.line)),Ef=0,Of=(Jd.length-1)/2,$f=zd.ch,Vf;if($f==0)Vf=Jd[2];else for(;;){var eh=Ef+Of>>1;if((eh?Jd[eh*2-1]:0)>=$f)Of=eh;else if(Jd[eh*2+1]<$f)Ef=eh+1;else{Vf=Jd[eh*2+2];break}}var _h=Vf?Vf.indexOf("overlay "):-1;return _h<0?Vf:_h==0?null:V
`,Sm=kh(pm,Bh)?"w":$h&&pm==`
`?"n":!$h||/\s/.test(pm)?null:"p";if($h&&!sm&&!Sm&&(Sm="s"),Ch&&Ch!=Sm){Wd<0&&(Wd=1,_h(),Pd.sticky="after");break}if(Sm&&(Ch=Sm),Wd>0&&!_h(!sm))break}var $m=gv(Nd,Pd,Ef,Of,!0);return Ig(Ef,$m)&&($m.hitSide=!0),$m}function f1(Nd,Pd,Wd,zd){var Jd=Nd.doc,Ef=Pd.left,Of;if(zd=="page"){var $f=Math.min(Nd.display.wrapper.clientHeight,Wf(Nd).innerHeight||Jd(Nd).documentElement.clientHeight),Vf=Math.max($f-.5*g0(Nd.display),3);Of=(Wd>0?Pd.bottom:Pd.top)+Wd*Vf}else zd=="line"&&(Of=Wd>0?Pd.bottom+3:Pd.top-3);for(var eh;eh=C_(Nd,Ef,Of),!!eh.outside;){if(Wd<0?Of<=0:Of>=Jd.height){eh.hitSide=!0;break}Of+=Wd*5}return eh}var O_=function(Nd){this.cm=Nd,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new jf,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};O_.prototype.init=function(Nd){var Pd=this,Wd=this,zd=Wd.cm,Jd=Wd.div=Nd.lineDiv;Jd.contentEditable=!0,d1(Jd,zd.options.spellcheck,zd.options.autocorrect,zd.options.autocapitalize);function Ef($f){for(var Vf=$f.target;Vf;Vf=Vf.parentNode){if(Vf==Jd)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Vf.className))break}return!1}im(Jd,"paste",function($f){!Ef($f)||Qm(zd,$f)||L0($f,zd)||cd<=11&&setTimeout(M_(zd,function(){return Pd.updateFromDOM()}),20)}),im(Jd,"compositionstart",function($f){Pd.composing={data:$f.data,done:!1}}),im(Jd,"compositionupdate",function($f){Pd.composing||(Pd.composing={data:$f.data,done:!1})}),im(Jd,"compositionend",function($f){Pd.composing&&($f.data!=Pd.composing.data&&Pd.readFromDOMSoon(),Pd.composing.done=!0)}),im(Jd,"touchstart",function(){return Wd.forceCompositionEnd()}),im(Jd,"input",function(){Pd.composing||Pd.readFromDOMSoon()});function Of($f){if(!(!Ef($f)||Qm(zd,$f))){if(zd.somethingSelected())Q1({lineWise:!1,text:zd.getSelections()}),$f.type=="cut"&&zd.replaceSelection("",null,"cut");else if(zd.options.lineWiseCopyCut){var Vf=Z1(zd);Q1({lineWise:!0,text:Vf.text}),$f.type=="cut"&&zd.operation(function(){zd.setSelections(Vf.ranges,0,Yf),zd.replaceSelection("",null,"cut")})}else return;if($f.clipboardData){$f.clipboardData.clearData();var eh=o0.text.join(`
`);if($f.clipboardData.setData("Text",eh),$f.clipboardData.getData("Text")==eh){$f.preventDefault();return}}var _h=p1(),Ch=_h.firstChild;d1(Ch),zd.display.lineSpace.insertBefore(_h,zd.display.lineSpace.firstChild),Ch.value=o0.text.join(`
`);var $h=zf(Qf(Jd));Mf(Ch),setTimeout(function(){zd.display.lineSpace.removeChild(_h),$h.focus(),$h==Jd&&Wd.showPrimarySelection()},50)}}im(Jd,"copy",Of),im(Jd,"cut",Of)},O_.prototype.screenReaderLabelChanged=function(Nd){Nd?this.div.setAttribute("aria-label",Nd):this.div.removeAttribute("aria-label")},O_.prototype.prepareSelection=function(){var Nd=$y(this.cm,!1);return Nd.focus=zf(Qf(this.div))==this.div,Nd},O_.prototype.showSelection=function(Nd,Pd){!Nd||!this.cm.display.view.length||((Nd.focus||Pd)&&this.showPrimarySelection(),this.showMultipleSelections(Nd))},O_.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},O_.prototype.showPrimarySelection=function(){var Nd=this.getSelection(),Pd=this.cm,Wd=Pd.doc.sel.primary(),zd=Wd.from(),Jd=Wd.to();if(Pd.display.viewTo==Pd.display.viewFrom||zd.line>=Pd.display.viewTo||Jd.line<Pd.display.viewFrom){Nd.removeAllRanges();return}var Ef=yg(Pd,Nd.anchorNode,Nd.anchorOffset),Of=yg(Pd,Nd.focusNode,Nd.focusOffset);if(!(Ef&&!Ef.bad&&Of&&!Of.bad&&n_(jg(Ef,Of),zd)==0&&n_(p0(Ef,Of),Jd)==0)){var $f=Pd.display.view,Vf=zd.line>=Pd.display.viewFrom&&bb(Pd,zd)||{node:$f[0].measure.map[2],offset:0},eh=Jd.line<Pd.display.viewTo&&bb(Pd,Jd);if(!eh){var _h=$f[$f.length-1].measure,Ch=_h.maps?_h.maps[_h.maps.length-1]:_h.map;eh={node:Ch[Ch.length-1],offset:Ch[Ch.length-2]-Ch[Ch.length-3]}}if(!Vf||!eh){Nd.removeAllRanges();return}var $h=Nd.rangeCount&&Nd.getRangeAt(0),Bh;try{Bh=Tf(Vf.node,Vf.offset,eh.offset,eh.node)}catch{}Bh&&(!rd&&Pd.state.focused?(Nd.collapse(Vf.node,Vf.offset),Bh.collapsed||(Nd.removeAllRanges(),Nd.addRange(Bh))):(Nd.removeAllRanges(),Nd.addRange(Bh)),$h&&Nd.anchorNode==null?Nd.addRange($h):rd&&this.startGracePeriod()),this.rememberSelection()}},O_.prototype.startGracePeriod=function(){var Nd=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){Nd.gracePeriod=!1,Nd.selectionChanged()&&Nd.cm.operation(function(){return Nd.cm.curOp.selectionChanged=!0})},20)},O_.prototype.showMultipleSelections=function(Nd){bf(this.cm.display.cursorDiv,Nd.cursors),bf(this.cm.display.selectionDiv,Nd.selection)},O_.prototype.rememberSelection=function(){var Nd=this.getSelection();this.lastAnchorNode=Nd.anchorNode,this.lastAnchorOffset=Nd.anchorOffset,this.lastFocusNode=Nd.focusNode,this.lastFocusOffset=Nd.focusOffset},O_.prototype.selectionInEditor=function(){var Nd=this.getSelection();if(!Nd.rangeCount)return!1;var Pd=Nd.getRangeAt(0).commonAncestorContainer;return kf(this.div,Pd)},O_.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||zf(Qf(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},O_.prototype.blur=function(){this.div.blur()},O_.prototype.getField=function(){return this.div},O_.prototype.supportsTouch=function(){return!0},O_.prototype.receivedFocus=function(){var Nd=this,Pd=this;this.selectionInEditor()?setTimeout(function(){return Nd.pollSelection()},20):wg(this.cm,function(){return Pd.cm.curOp.selectionChanged=!0});function Wd(){Pd.cm.state.focused&&(Pd.pollSelection(),Pd.polling.set(Pd.cm.options.pollInterval,Wd))}this.polling.set(this.cm.options.pollInterval,Wd)},O_.prototype.selectionChanged=function(){var Nd=this.getSelection();return Nd.anchorNode!=this.lastAnchorNode||Nd.anchorOffset!=this.lastAnchorOffset||Nd.focusNode!=this.lastFocusNode||Nd.focusOffset!=this.lastFocusOffset},O_.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var Nd=this.getSelection(),Pd=this.cm;if(Md&&Ed&&this.cm.display.gutterSpecs.length&&e2(Nd.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Wd=yg(Pd,Nd.anchorNode,Nd.anchorOffset),zd=yg(Pd,Nd.focusNode,Nd.focusOffset);Wd&&zd&&wg(Pd,function(){xg(Pd.doc,db(Wd,zd),Yf),(Wd.bad||zd.bad)&&(Pd.curOp.selectionChanged=!0)})}}},O_.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMT
`),Mf(Jd))}else return;Of.type=="cut"&&(zd.state.cutIncoming=+new Date)}}im(Jd,"cut",Ef),im(Jd,"copy",Ef),im(Nd.scroller,"paste",function(Of){if(!(D_(Nd,Of)||Qm(zd,Of))){if(!Jd.dispatchEvent){zd.state.pasteIncoming=+new Date,Wd.focus();return}var $f=new Event("paste");$f.clipboardData=Of.clipboardData,Jd.dispatchEvent($f)}}),im(Nd.lineSpace,"selectstart",function(Of){D_(Nd,Of)||Xm(Of)}),im(Jd,"compositionstart",function(){var Of=zd.getCursor("from");Wd.composing&&Wd.composing.range.clear(),Wd.composing={start:Of,range:zd.markText(Of,zd.getCursor("to"),{className:"CodeMirror-composing"})}}),im(Jd,"compositionend",function(){Wd.composing&&(Wd.poll(),Wd.composing.range.clear(),Wd.composing=null)})},rg.prototype.createField=function(Nd){this.wrapper=p1(),this.textarea=this.wrapper.firstChild;var Pd=this.cm.options;d1(this.textarea,Pd.spellcheck,Pd.autocorrect,Pd.autocapitalize)},rg.prototype.screenReaderLabelChanged=function(Nd){Nd?this.textarea.setAttribute("aria-label",Nd):this.textarea.removeAttribute("aria-label")},rg.prototype.prepareSelection=function(){var Nd=this.cm,Pd=Nd.display,Wd=Nd.doc,zd=$y(Nd);if(Nd.options.moveInputWithCursor){var Jd=Kh(Nd,Wd.sel.primary().head,"div"),Ef=Pd.wrapper.getBoundingClientRect(),Of=Pd.lineDiv.getBoundingClientRect();zd.teTop=Math.max(0,Math.min(Pd.wrapper.clientHeight-10,Jd.top+Of.top-Ef.top)),zd.teLeft=Math.max(0,Math.min(Pd.wrapper.clientWidth-10,Jd.left+Of.left-Ef.left))}return zd},rg.prototype.showSelection=function(Nd){var Pd=this.cm,Wd=Pd.display;bf(Wd.cursorDiv,Nd.cursors),bf(Wd.selectionDiv,Nd.selection),Nd.teTop!=null&&(this.wrapper.style.top=Nd.teTop+"px",this.wrapper.style.left=Nd.teLeft+"px")},rg.prototype.reset=function(Nd){if(!(this.contextMenuPending||this.composing&&Nd)){var Pd=this.cm;if(this.resetting=!0,Pd.somethingSelected()){this.prevInput="";var Wd=Pd.getSelection();this.textarea.value=Wd,Pd.state.focused&&Mf(this.textarea),ud&&cd>=9&&(this.hasSelection=Wd)}else Nd||(this.prevInput=this.textarea.value="",ud&&cd>=9&&(this.hasSelection=null));this.resetting=!1}},rg.prototype.getField=function(){return this.textarea},rg.prototype.supportsTouch=function(){return!1},rg.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ld||zf(Qf(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},rg.prototype.blur=function(){this.textarea.blur()},rg.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},rg.prototype.receivedFocus=function(){this.slowPoll()},rg.prototype.slowPoll=function(){var Nd=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){Nd.poll(),Nd.cm.state.focused&&Nd.slowPoll()})},rg.prototype.fastPoll=function(){var Nd=!1,Pd=this;Pd.pollingFast=!0;function Wd(){var zd=Pd.poll();!zd&&!Nd?(Nd=!0,Pd.polling.set(60,Wd)):(Pd.pollingFast=!1,Pd.slowPoll())}Pd.polling.set(20,Wd)},rg.prototype.poll=function(){var Nd=this,Pd=this.cm,Wd=this.textarea,zd=this.prevInput;if(this.contextMenuPending||this.resetting||!Pd.state.focused||oh(Wd)&&!zd&&!this.composing||Pd.isReadOnly()||Pd.options.disableInput||Pd.state.keySeq)return!1;var Jd=Wd.value;if(Jd==zd&&!Pd.somethingSelected())return!1;if(ud&&cd>=9&&this.hasSelection===Jd||Fd&&/[\uf700-\uf7ff]/.test(Jd))return Pd.display.input.reset(),!1;if(Pd.doc.sel==Pd.display.selForContextMenu){var Ef=Jd.charCodeAt(0);if(Ef==8203&&!zd&&(zd=""),Ef==8666)return this.reset(),this.cm.execCommand("undo")}for(var Of=0,$f=Math.min(zd.length,Jd.length);Of<$f&&zd.charCodeAt(Of)==Jd.charCodeAt(Of);)++Of;return wg(Pd,function(){vE(Pd,Jd.slice(Of),zd.length-Of,null,Nd.composing?"*compose":null),Jd.length>1e3||Jd.indexOf(`
`)>-1?Wd.value=Nd.prevInput="":Nd.prevInput=Jd,Nd.composing&&(Nd.composing.range.clear(),Nd.composing.range=Pd.markText(Nd.composing.start,Pd.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},rg.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},rg.prototype.onKeyPress=function(){ud&&cd>=9&&(this.hasSelection=null),this.fastPoll()},rg.prototype.onContextMenu=function(Nd){var Pd=this,Wd=Pd.cm,zd=Wd.display,Jd=Pd.textarea;Pd.contextMenuPending&&Pd.contextMenuPending();var Ef=k0(Wd,Nd),Of=zd.scroller.scrollTop;if(!Ef||Td)return;var $f=Wd.options.resetSelectionOnContextMenu;$f&&Wd.doc.sel.contains(Ef)==-1&&M_(Wd,xg)(Wd.doc,db(Ef),Yf);var Vf=Jd.style.cssText,eh=Pd.wrapper.style.cssText,_h=Pd.wrapper.offsetParent.getBoundingClientRect();Pd.wrapper.style.cssText="position: static",Jd.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(Nd.clientY-_h.top-5)+"px; left: "+(Nd.clientX-_h.left-5)+`px;
z-index: 1000; background: `+(ud?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ch;dd&&(Ch=Jd.ownerDocument.defaultView.scrollY),zd.input.focus(),dd&&Jd.ownerDocument.defaultView.scrollTo(null,Ch),zd.input.reset(),Wd.somethingSelected()||(Jd.value=Pd.prevInput=" "),Pd.contextMenuPending=Bh,zd.selForContextMenu=Wd.doc.sel,clearTimeout(zd.detectingSelectAll);function $h(){if(Jd.selectionStart!=null){var pm=Wd.somethingSelected(),Sm=""+(pm?Jd.value:"");Jd.value="⇚",Jd.value=Sm,Pd.prevInput=pm?"":"",Jd.selectionStart=1,Jd.selectionEnd=Sm.length,zd.selForContextMenu=Wd.doc.sel}}function Bh(){if(Pd.contextMenuPending==Bh&&(Pd.contextMenuPending=!1,Pd.wrapper.style.cssText=eh,Jd.style.cssText=Vf,ud&&cd<9&&zd.scrollbars.setScrollTop(zd.scroller.scrollTop=Of),Jd.selectionStart!=null)){(!ud||ud&&cd<9)&&$h();var pm=0,Sm=function(){zd.selForContextMenu==Wd.doc.sel&&Jd.selectionStart==0&&Jd.selectionEnd>0&&Pd.prevInput==""?M_(Wd,bv)(Wd):pm++<10?zd.detectingSelectAll=setTimeout(Sm,500):(zd.selForContextMenu=null,zd.input.reset())};zd.detectingSelectAll=setTimeout(Sm,200)}}if(ud&&cd>=9&&$h(),Kd){Y_(Nd);var sm=function(){Dm(window,"mouseup",sm),setTimeout(Bh,20)};im(window,"mouseup",sm)}else setTimeout(Bh,50)},rg.prototype.readOnlyChanged=function(Nd){Nd||this.reset(),this.textarea.disabled=Nd=="nocursor",this.textarea.readOnly=!!Nd},rg.prototype.setUneditable=function(){},rg.prototype.needsContentAttribute=!1;function gT(Nd,Pd){if(Pd=Pd?hf(Pd):{},Pd.value=Nd.value,!Pd.tabindex&&Nd.tabIndex&&(Pd.tabindex=Nd.tabIndex),!Pd.placeholder&&Nd.placeholder&&(Pd.placeholder=Nd.placeholder),Pd.autofocus==null){var Wd=zf(Qf(Nd));Pd.autofocus=Wd==Nd||Nd.getAttribute("autofocus")!=null&&Wd==document.body}function zd(){Nd.value=$f.getValue()}var Jd;if(Nd.form&&(im(Nd.form,"submit",zd),!Pd.leaveSubmitMethodAlone)){var Ef=Nd.form;Jd=Ef.submit;try{var Of=Ef.submit=function(){zd(),Ef.submit=Jd,Ef.submit(),Ef.submit=Of}}catch{}}Pd.finishInit=function(Vf){Vf.save=zd,Vf.getTextArea=function(){return Nd},Vf.toTextArea=function(){Vf.toTextArea=isNaN,zd(),Nd.parentNode.removeChild(Vf.getWrapperElement()),Nd.style.display="",Nd.form&&(Dm(Nd.form,"submit",zd),!Pd.leaveSubmitMethodAlone&&typeof Nd.form.submit=="function"&&(Nd.form.submit=Jd))}},Nd.style.display="none";var $f=A_(function(Vf){return Nd.parentNode.insertBefore(Vf,Nd.nextSibling)},Pd);return $f}function r2(Nd){Nd.off=Dm,Nd.on=im,Nd.wheelEventPixels=jT,Nd.Doc=Rg,Nd.splitLines=Sf,Nd.countColumn=Rf,Nd.findColumn=Cf,Nd.isWordChar=qh,Nd.Pass=wf,Nd.signal=Om,Nd.Line=h0,Nd.changeEnd=pb,Nd.scrollbarModel=Lb,Nd.Pos=fm,Nd.cmpPos=n_,Nd.modes=gh,Nd.mimeModes=Oh,Nd.resolveMode=Xh,Nd.getMode=cm,Nd.modeExtensions=jm,Nd.extendMode=gm,Nd.copyState=Vm,Nd.startState=x_,Nd.innerMode=y_,Nd.commands=a1,Nd.keyMap=P0,Nd.keyName=t1,Nd.isModifierKey=q1,Nd.lookupKey=Yg,Nd.normalizeKeyMap=Wg,Nd.StringStream=u_,Nd.SharedTextMarker=Tv,Nd.TextMarker=C0,Nd.LineWidget=Vb,Nd.e_preventDefault=Xm,Nd.e_stopPropagation=B_,Nd.e_stop=Y_,Nd.addClass=Jf,Nd.contains=kf,Nd.rmClass=df,Nd.keyNames=vg}bE(A_),Iv(A_);var bT="iter insert remove copy getEditor constructor".split(" ");for(var ey in Rg.prototype)Rg.prototype.hasOwnProperty(ey)&&Kf(bT,ey)<0&&(A_.prototype[ey]=function(Nd){return function(){return Nd.apply(this.doc,arguments)}}(Rg.prototype[ey]));return S_(Rg),A_.inputStyles={textarea:rg,contenteditable:O_},A_.defineMode=function(Nd){!A_.defaults.mode&&Nd!="null"&&(A_.defaults.mode=Nd),Ih.apply(this,arguments)},A_.defineMIME=fh,A_.defineMode("null",function(){return{token:function(Nd){return Nd.skipToEnd()}}}),A_.defineMIME("text/plain","null"),A_.defineExtension=function(Nd,Pd){A_.prototype[Nd]=Pd},A_.defineDocExtension=function(Nd,Pd){Rg.prototype[Nd]=Pd},A_.fromTextArea=gT,r2(A_),A_.version="5.65.17",A_})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports),useStore=defineStore("store",()=>{const Ra=useDark(),qa=useToggle(Ra),ed=useStorage("isMacCodeBlock",!0),td=useToggle(ed),rd=useStorage("isEditOnLeft",!
<style>
.hljs.code__pre > .mac-sign {
display: inline-block;
}
.hljs.code__pre {
padding: 0!important;
}
.hljs.code__pre code {
display: -webkit-box;
padding: 0.5em 1em 1em;
overflow-x: auto;
text-indent: 0;
}
</style>
`),ud.value=Kf},pf=()=>{const Kf=css2json(Ld.value.getValue()),Ff=customCssWithTemplate(Kf,Ed.value,customizeTheme(themeMap[cd.value],{fontSize:Id.value,color:Ed.value}));mf.setOptions({theme:Ff}),bf()};onMounted(()=>{const Kf=document.querySelector("#cssEditor");Kf.value=Qd().content;const Ff=Ra.value?"darcula":"xq-light";Ld.value=markRaw(CodeMirror.fromTextArea(Kf,{mode:"css",theme:Ff,lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Yf){formatDoc(Yf.getValue(),"css").then(uh=>{Qd().content=uh,Yf.setValue(uh)})}}})),Ld.value.on("keyup",(wf,Yf)=>{(Yf.keyCode>=65&&Yf.keyCode<=90||Yf.keyCode===189)&&wf.showHint(Yf)}),Ld.value.on("update",()=>{pf(),Qd().content=Ld.value.getValue()})}),watch(Ra,()=>{var Ff,wf;const Kf=Ra.value?"darcula":"xq-light";(wf=(Ff=toRaw(Ld.value))==null?void 0:Ff.setOption)==null||wf.call(Ff,"theme",Kf)});const _f=()=>{od.value=!1,ed.value=!0,cd.value=themeOptions[0].value,dd.value=fontFamilyOptions[0].value,dd.value=fontFamilyOptions[0].value,_d.value=fontSizeOptions[2].value,Ed.value=colorOptions[0].value,Ad.value=codeBlockThemeOptions[2].value,Td.value=legendOptions[3].value,Vd.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:jd.value||DEFAULT_CSS_CONTENT}]},Ld.value.setValue(DEFAULT_CSS_CONTENT),pf(),bf()},Tf=Kf=>(...Ff)=>{Kf(...Ff),bf()},kf=(Kf,Ff)=>{const wf=themeMap[cd.value],Yf=Kf.replace("px","");return customCssWithTemplate(css2json(Qd().content),Ff,customizeTheme(wf,{fontSize:Yf,color:Ff}))},zf=Tf(Kf=>{mf.setOptions({theme:customCssWithTemplate(css2json(Qd().content),Ed.value,customizeTheme(themeMap[Kf],{fontSize:Id.value}))}),cd.value=Kf}),Jf=Tf(Kf=>{mf.setOptions({fonts:Kf}),dd.value=Kf}),Gf=Tf(Kf=>{const Ff=kf(Kf,Ed.value);mf.setOptions({size:Kf,theme:Ff}),_d.value=Kf}),Mf=Tf(Kf=>{const Ff=kf(_d.value,Kf);mf.setOptions({theme:Ff}),Ed.value=Kf}),Nf=Tf(Kf=>{Ad.value=Kf}),Bf=Tf(Kf=>{Td.value=Kf}),Qf=Tf(()=>{td()}),Wf=Tf(()=>{ld()});return{isDark:Ra,toggleDark:qa,isEditOnLeft:rd,toggleEditOnLeft:sd,isMacCodeBlock:ed,isCiteStatus:od,citeStatusChanged:Wf,output:ud,editor:Bd,cssEditor:Ld,theme:cd,fontFamily:dd,fontSize:_d,primaryColor:Ed,codeBlockTheme:Ad,legend:Td,editorRefresh:bf,themeChanged:zf,fontChanged:Jf,sizeChanged:Gf,colorChanged:Mf,codeBlockThemeChanged:Nf,legendChanged:Bf,macCodeBlockChanged:Qf,formatContent:Od,exportEditorContent2HTML:()=>{exportHTML(),document.querySelector("#output").innerHTML=ud.value},exportEditorContent2MD:()=>{downloadMD(Bd.value.getValue())},importMarkdownContent:()=>{const Kf=document.body,Ff=document.createElement("input");Ff.type="file",Ff.name="filename",Ff.accept=".md",Ff.onchange=()=>{const wf=Ff.files[0];if(!wf)return;const Yf=new FileReader;Yf.readAsText(wf),Yf.onload=uh=>{Bd.value.setValue(uh.target.result),ElMessage.success("文档导入成功")}},Kf.appendChild(Ff),Ff.click(),Kf.removeChild(Ff)},resetStyleConfirm:()=>{ElMessageBox.confirm("此操作将丢失本地自定义样式,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{_f(),ElMessage({type:"success",message:"样式重置成功~"})}).catch(()=>{Bd.value.focus()})},editorContent:Rd,cssContentConfig:Vd,addCssContentTab:Xd,validatorTabName:df,setCssEditorValue:Fd,tabChanged:qd,renameTab:Kd}}),useDisplayStore=defineStore("display",()=>{const Ra=ref$1(!1),qa=useToggle(Ra),ed=ref$1(!1),td=useToggle(ed),rd=ref$1(!1),sd=useToggle(rd);return{isShowCssEditor:Ra,toggleShowCssEditor:qa,isShowInsertFormDialog:ed,toggleShowInsertFormDialog:td,isShowUploadImgDialog:rd,toggleShowUploadImgDialog:sd}}),_sfc_main$N=defineComponent({__name:"CssEditor",setup(Ra){const qa=useStore(),ed=useDisplayStore();function td(){ElMessageBox.prompt("请输入新的方案名称","编辑方案名称",{confirmButtonText:"确认",cancelButtonText:"取消",inputValue:qa.cssContentConfig.active,inputErrorMessage:"不能与现有方案重名",inputValidator:qa.validatorTabName}).then(({value:sd})=>{if(!`${sd}`.trim()){ElMessage.error("修改失败,方
`)].join(`
`))}return()=>sd.value||rd.value||ld.value?h$1(qa.default({present:ld})[0],{ref:dd=>{const _d=$e(dd);return typeof(_d==null?void 0:_d.hasAttribute)>"u"||(_d!=null&&_d.hasAttribute("data-radix-popper-content-wrapper")?od.value=_d.firstElementChild:od.value=_d),_d}}):null}}),[et,Ui]=Q("DialogRoot"),Gi=defineComponent({__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const ed=Ra,td=ne(ed,"open",qa,{defaultValue:ed.defaultOpen,passive:ed.open===void 0}),rd=ref$1(),sd=ref$1(),{modal:od}=toRefs(ed);return Ui({open:td,modal:od,openModal:()=>{td.value=!0},onOpenChange:ld=>{td.value=ld},onOpenToggle:()=>{td.value=!td.value},contentId:"",titleId:"",descriptionId:"",triggerElement:rd,contentElement:sd}),(ld,ud)=>renderSlot(ld.$slots,"default",{open:unref(td)})}}),ht=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=ja();return(ed,td)=>unref(qa)||ed.forceMount?(openBlock(),createBlock(Teleport$1,{key:0,to:ed.to,disabled:ed.disabled},[renderSlot(ed.$slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),wv=defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(ed,td)=>(openBlock(),createBlock(unref(ht),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(ed.$slots,"default")]),_:3},16))}}),Yi="dismissableLayer.pointerDownOutside",Xi="dismissableLayer.focusOutside";function Fl(Ra,qa){const ed=qa.closest("[data-dismissable-layer]"),td=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),rd=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(ed&&td===ed||rd.indexOf(td)<rd.indexOf(ed))}function Nl(Ra,qa){var ed;const td=((ed=qa==null?void 0:qa.value)==null?void 0:ed.ownerDocument)??(globalThis==null?void 0:globalThis.document),rd=ref$1(!1),sd=ref$1(()=>{});return watchEffect(od=>{if(!qe)return;const ld=async cd=>{const dd=cd.target;if(qa!=null&&qa.value){if(Fl(qa.value,dd)){rd.value=!1;return}if(cd.target&&!rd.value){let _d=function(){Kt(Yi,Ra,Ed)};const Ed={originalEvent:cd};cd.pointerType==="touch"?(td.removeEventListener("click",sd.value),sd.value=_d,td.addEventListener("click",sd.value,{once:!0})):_d()}else td.removeEventListener("click",sd.value);rd.value=!1}},ud=window.setTimeout(()=>{td.addEventListener("pointerdown",ld)},0);od(()=>{window.clearTimeout(ud),td.removeEventListener("pointerdown",ld),td.removeEventListener("click",sd.value)})}),{onPointerDownCapture:()=>rd.value=!0}}function Ll(Ra,qa){var ed;const td=((ed=qa==null?void 0:qa.value)==null?void 0:ed.ownerDocument)??(globalThis==null?void 0:globalThis.document),rd=ref$1(!1);return watchEffect(sd=>{if(!qe)return;const od=async ld=>{qa!=null&&qa.value&&(await nextTick$1(),!(!qa.value||Fl(qa.value,ld.target))&&ld.target&&!rd.value&&Kt(Xi,Ra,{originalEvent:ld}))};td.addEventListener("focusin",od),sd(()=>td.removeEventListener("focusin",od))}),{onFocusCapture:()=>rd.value=!0,onBlurCapture:()=>rd.value=!1}}const je=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yt=defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(Ra,{emit:qa}){const ed=Ra,td=qa,{forwardRef:rd,currentElement:sd}=T(),od=computed(()=>{var Td;return((Td=sd.value)==null?void 0:Td.ownerDocument)??globalThis.document}),ld=computed(()=>je.layersRoot),ud=computed(()=>sd.value?Array.from(ld.value).indexOf(sd.value):-1),cd=computed(()=>je.layersWithOutsidePointerEventsDisabled.size>0),dd=computed(()=>{const Td=Array.from(ld.value),[Id]=[...je.layersWithOutsidePointerEventsDisabled].slice(-1),Bd=Td.indexOf(Id);return ud.value>=Bd}),_d=Nl(async Td=>{const Id=[...je.branches].some(Bd=>Bd.contains(Td.target));!dd.value||Id||(td("poin
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const toKebabCase=Ra=>Ra.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Icon=({size:Ra,strokeWidth:qa=2,absoluteStrokeWidth:ed,color:td,iconNode:rd,name:sd,class:od,...ld},{slots:ud})=>h$1("svg",{...defaultAttributes,width:Ra||defaultAttributes.width,height:Ra||defaultAttributes.height,stroke:td||defaultAttributes.stroke,"stroke-width":ed?Number(qa)*24/Number(Ra):qa,class:["lucide",`lucide-${toKebabCase(sd??"icon")}`],...ld},[...rd.map(cd=>h$1(...cd)),...ud.default?[ud.default()]:[]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const createLucideIcon=(Ra,qa)=>(ed,{slots:td})=>h$1(Icon,{...ed,iconNode:qa,name:Ra},td);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Check=createLucideIcon("CheckIcon",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ChevronDown=createLucideIcon("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ChevronRight=createLucideIcon("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ChevronUp=createLucideIcon("ChevronUpIcon",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const CloudUpload=createLucideIcon("CloudUploadIcon",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Moon=createLucideIcon("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Paintbrush=createLucideIcon("PaintbrushIcon",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sun=createLucideIcon("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Table=createLucideIcon("TableIcon",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/**
* @license lucide-vue-next v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X=createLucideIcon("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_sfc_main$K=defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:8},align:{default:"start"},alignOffset:{default:-4},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,ed=computed(()=>{const{class:rd,...sd}=qa;return sd}),td=It(ed);return(rd,sd)=>(openBlock(),createBlock(unref(Lh),null,{default:withCtx(()=>[createVNode(unref(zh),mergeProps(unref(td),{class:unref(cn)("z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",qa.class)}),{default:withCtx(()=>[renderSlot(rd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$J=defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},emits:["select"],setup(Ra,{emit:qa}){const ed=Ra,td=qa,rd=computed(()=>{const{class:od,...ld}=ed;return ld}),sd=xe(rd,td);return(od,ld)=>(openBlock(),createBlock(unref(Hh),mergeProps(unref(sd),{class:unref(cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",od.inset&&"pl-8",ed.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$I=defineComponent({__name:"MenubarMenu",props:{value:{}},setup(Ra){const qa=Ra;return(ed,td)=>(openBlock(),createBlock(unref(Fh),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(ed.$slots,"default")]),_:3},16))}}),_sfc_main$H=defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,ed=computed(()=>{const{class:rd,...sd}=qa;return sd}),td=It(ed);return(rd,sd)=>(openBlock(),createBlock(unref(jh),mergeProps({class:unref(cn)("-mx-1 my-1 h-px bg-muted",qa.class)},unref(td)),null,16,["class"]))}}),_sfc_main$G=defineComponent({__name:"MenubarShortcut",props:{class:{}},setup(Ra){const qa=Ra;return(ed,td)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn)("ml-auto text-xs tracking-widest text-muted-foreground",qa.class))},[renderSlot(ed.$slots,"default")],2))}}),_sfc_main$F=defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const rd=xe(Ra,qa);return(sd,od)=>(openBlock(),createBlock(unref(Zh),normalizeProps(guardReactiveProps(unref(rd))),{default:withCtx(()=>[renderSlot(sd.$slots,"default")]),_:3},16))}}),_sfc_main$E=defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const ed=Ra,td=qa,rd=computed(()=>{const{class:od,...ld}=ed;return ld}),sd=xe(rd,td);return(od,ld)=>(openBlock(),createBlock(unref(Lh),null,{default:withCtx(()=>[createVNode(unref(Jh),mergeProps(unref(sd),{class:unref(cn)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=cl
${dd}
`,"end"),ld(),td()}function cd(dd){dd||td(!1)}return(dd,_d)=>{const Ed=ElInputNumber,Ad=ElCol,Td=ElRow,Id=ElInput,Bd=_sfc_main$M;return openBlock(),createBlock(unref(_sfc_main$p),{open:unref(ed).isShowInsertFormDialog,"onUpdate:open":cd},{default:withCtx(()=>[createVNode(unref(_sfc_main$o),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$m),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$l),null,{default:withCtx(()=>_d[3]||(_d[3]=[createTextVNode("插入表格")])),_:1})]),_:1}),createVNode(Td,{class:"tb-options",type:"flex",align:"middle",gutter:10},{default:withCtx(()=>[createVNode(Ad,{span:12},{default:withCtx(()=>[_d[4]||(_d[4]=createTextVNode(" 行数: ")),createVNode(Ed,{modelValue:rd.value,"onUpdate:modelValue":_d[0]||(_d[0]=Rd=>rd.value=Rd),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1}),createVNode(Ad,{span:12},{default:withCtx(()=>[_d[5]||(_d[5]=createTextVNode(" 列数: ")),createVNode(Ed,{modelValue:sd.value,"onUpdate:modelValue":_d[1]||(_d[1]=Rd=>sd.value=Rd),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),createBaseVNode("table",_hoisted_1$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rd.value+1,Rd=>(openBlock(),createElementBlock("tr",{key:Rd,class:normalizeClass({"head-style":Rd===1})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(sd.value,Od=>(openBlock(),createElementBlock("td",{key:Od},[createVNode(Id,{modelValue:od.value[`k_${Rd-1}_${Od-1}`],"onUpdate:modelValue":Md=>od.value[`k_${Rd-1}_${Od-1}`]=Md,align:"center",placeholder:Rd===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]))),128))],2))),128))]),createVNode(unref(_sfc_main$n),null,{default:withCtx(()=>[createVNode(Bd,{variant:"outline",onClick:_d[2]||(_d[2]=Rd=>unref(td)(!1))},{default:withCtx(()=>_d[6]||(_d[6]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(Bd,{onClick:ud},{default:withCtx(()=>_d[7]||(_d[7]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),InsertFormDialog=_export_sfc(_sfc_main$a,[["__scopeId","data-v-054300b0"]]),_sfc_main$9=defineComponent({__name:"UploadImgDialog",emits:["uploadImage"],setup(Ra,{emit:qa}){const ed=qa,td=useDisplayStore(),rd=ref$1({repo:"",branch:"",accessToken:""}),sd=ref$1({accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:"",useSSL:!0}),od=ref$1({secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""}),ld=ref$1({accessKey:"",secretKey:"",bucket:"",domain:"",region:"",path:""}),ud=ref$1({endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""}),cd=ref$1({code:localStorage.getItem("formCustomConfig")||removeLeft(`
const {file, util, okCb, errCb} = CUSTOM_ARG
const param = new FormData()
param.append('file', file)
util.axios.post('${window.location.origin}/upload', param, {
headers: { 'Content-Type': 'multipart/form-data' }
}).then(res => {
okCb(res.url)
}).catch(err => {
errCb(err)
})
`).trim(),editor:null}),dd=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"formCustom",label:"自定义代码"}],_d=ref$1("default"),Ed=ref$1(null),Ad=ref$1("upload");watch(Ad,async Vd=>{Vd==="formCustom"&&nextTick$1(()=>{var qd;const Qd=Ed.value.$el.querySelector("textarea");(qd=cd.value).editor||(qd.editor=CodeMirror.fromTextArea(Qd,{mode:"javascript"}))})},{immediate:!0}),onBeforeMount(()=>{localStorage.getItem("githubConfig")&&(rd.value=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(sd.value=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(od.value=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("qiniuConfig")&&(ld.value=JSON.parse(localStorage.getItem("qiniuConfig"))),localStorage.getItem("minioConfig")&&(ud.value=JSON.parse(localStorage.getItem("minioConfig"))),localStorage.getItem("imgHost")&&(_d.value=localStorage.getItem("imgHost"))});function Td(){localStorage.setItem("imgHost",_d.value),ElMessage.success("已成功切换图床")}function Id(){if(!(rd.value.repo&&rd.value.accessToken)){const Vd=rd.value.repo?"token":"GitHub 仓库";ElMessage.error(`参数${Vd}不能为空`);return}localStorage.setItem("githubConfig",JSON.stringify(rd.value)),ElMessage.success("保存成功")}function Bd(){if(!(sd.value.accessKeyId&&sd.value.accessKeySecret&&sd.value.bucket&&sd.value.region)){ElMessage.error("阿里云 OSS 参数配置不全");return}localStorage.setItem("aliOSSConfig",JSON.stringify(sd.value)),ElMessage.success("保存成功")}function Rd(){if(!(ud.value.endpoint&&ud.value.bucket&&ud.value.accessKey&&ud.value.secretKey)){ElMessage.error("MinIO 参数配置不全");return}localStorage.setItem("minioConfig",JSON.stringify(ud.value)),ElMessage.success("保存成功")}function Od(){if(!(od.value.secretId&&od.value.secretKey&&od.value.bucket&&od.value.region)){ElMessage.error("腾讯云 COS 参数配置不全");return}localStorage.setItem("txCOSConfig",JSON.stringify(od.value)),ElMessage.success("保存成功")}function Md(){if(!(ld.value.accessKey&&ld.value.secretKey&&ld.value.bucket&&ld.value.domain)){ElMessage.error("七牛云 Kodo 参数配置不全");return}localStorage.setItem("qiniuConfig",JSON.stringify(ld.value)),ElMessage.success("保存成功")}function Ld(){const Vd=cd.value.editor.getValue();localStorage.setItem("formCustomConfig",Vd),ElMessage.success("保存成功")}function Fd(Vd){const Qd=checkImage(Vd);if(!Qd.ok)return ElMessage.error(Qd.msg),!1;let qd=localStorage.getItem("imgHost");qd=qd||"default",localStorage.setItem("imgHost",qd);const Kd=localStorage.getItem(`${qd}Config`);return qd==="default"||Kd?!0:(ElMessage.error(`请先配置 ${qd} 图床参数`),!1)}function jd(Vd){ed("uploadImage",Vd.file)}return(Vd,Qd)=>{const qd=ElOption,Kd=ElSelect,Xd=ElIcon,df=ElUpload,mf=ElTabPane,bf=ElInput,pf=ElFormItem,_f=ElLink,Tf=ElButton,kf=ElForm,zf=ElSwitch,Jf=ElTabs;return openBlock(),createBlock(unref(_sfc_main$p),{open:unref(td).isShowUploadImgDialog,"onUpdate:open":Qd[31]||(Qd[31]=Gf=>unref(td).isShowUploadImgDialog=Gf)},{default:withCtx(()=>[createVNode(unref(_sfc_main$o),{class:"max-w-max"},{default:withCtx(()=>[createVNode(unref(_sfc_main$m),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$l),null,{default:withCtx(()=>Qd[32]||(Qd[32]=[createTextVNode("本地上传")])),_:1})]),_:1}),createVNode(Jf,{modelValue:Ad.value,"onUpdate:modelValue":Qd[30]||(Qd[30]=Gf=>Ad.value=Gf)},{default:withCtx(()=>[createVNode(mf,{class:"upload-panel",label:"选择上传",name:"upload"},{default:withCtx(()=>[createVNode(Kd,{modelValue:_d.value,"onUpdate:modelValue":Qd[0]||(Qd[0]=Gf=>_d.value=Gf),placeholder:"请选择",size:"small",onChange:Td},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(dd,Gf=>createVNode(qd,{key:Gf.value,label:Gf.label,value:Gf.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),creat
`).forEach(function(Rd){if(Rd){var Od=Rd.indexOf(":"),Md=Rd.substr(0,Od).trim().toLowerCase(),Ld=Rd.substr(Od+1).trim();Id[Md]=Ld}}),{error:Ed,statusCode:Ad.status,statusMessage:Ad.statusText,headers:Id,body:Td}},cd=function(Ed,Ad){return!Ad&&Ad==="text"?Ed.responseText:Ed.response},dd=function(Ed,Ad){var Td=(Ed.method||"GET").toUpperCase(),Id=Ed.url;if(Ed.qs){var Bd=ld(Ed.qs);Bd&&(Id+=(Id.indexOf("?")===-1?"?":"&")+Bd)}var Rd=new XMLHttpRequest;if(Rd.open(Td,Id,!0),Rd.responseType=Ed.dataType||"text",Ed.xhrFields)for(var Od in Ed.xhrFields)Rd[Od]=Ed.xhrFields[Od];var Md=Ed.headers;if(Md)for(var Ld in Md)Md.hasOwnProperty(Ld)&&Ld.toLowerCase()!=="content-length"&&Ld.toLowerCase()!=="user-agent"&&Ld.toLowerCase()!=="origin"&&Ld.toLowerCase()!=="host"&&Rd.setRequestHeader(Ld,Md[Ld]);return Ed.onProgress&&Rd.upload&&(Rd.upload.onprogress=Ed.onProgress),Ed.onDownloadProgress&&(Rd.onprogress=Ed.onDownloadProgress),Ed.timeout&&(Rd.timeout=Ed.timeout),Rd.ontimeout=function(Fd){var jd=new Error("timeout");Ad(ud(jd,Rd))},Rd.onload=function(){Ad(ud(null,Rd,cd(Rd,Ed.dataType)))},Rd.onerror=function(Fd){var jd=cd(Rd,Ed.dataType);if(jd)Ad(ud(null,Rd,jd));else{var Vd=Rd.statusText;!Vd&&Rd.status===0&&(Vd=new Error("CORS blocked or network error")),Ad(ud(Vd,Rd,jd))}},Rd.send(Ed.body||""),Rd};ed.exports=dd},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(ed,td){function rd(sd,od){if(!(sd instanceof od))throw new TypeError("Cannot call a class as a function")}ed.exports=rd,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(ed,td,rd){var sd=rd("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function od(ud,cd){for(var dd=0;dd<cd.length;dd++){var _d=cd[dd];_d.enumerable=_d.enumerable||!1,_d.configurable=!0,"value"in _d&&(_d.writable=!0),Object.defineProperty(ud,sd(_d.key),_d)}}function ld(ud,cd,dd){return cd&&od(ud.prototype,cd),dd&&od(ud,dd),Object.defineProperty(ud,"prototype",{writable:!1}),ud}ed.exports=ld,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(ed,td,rd){var sd=rd("./node_modules/@babel/runtime/helpers/typeof.js").default;function od(ld,ud){if(sd(ld)!=="object"||ld===null)return ld;var cd=ld[Symbol.toPrimitive];if(cd!==void 0){var dd=cd.call(ld,ud||"default");if(sd(dd)!=="object")return dd;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ud==="string"?String:Number)(ld)}ed.exports=od,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(ed,td,rd){var sd=rd("./node_modules/@babel/runtime/helpers/typeof.js").default,od=rd("./node_modules/@babel/runtime/helpers/toPrimitive.js");function ld(ud){var cd=od(ud,"string");return sd(cd)==="symbol"?cd:String(cd)}ed.exports=ld,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(ed,td){function rd(sd){"@babel/helpers - typeof";return ed.exports=rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(od){return typeof od}:function(od){return od&&typeof Symbol=="function"&&od.constructor===Symbol&&od!==Symbol.prototype?"symbol":typeof od},ed.exports.__esModule=!0,ed.exports.default=ed.exports,rd(sd)}ed.exports=rd,ed.exports.__esModule=!0,ed.exports.default=ed.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(ed,td,rd){const sd=rd("./node_modules/fast-xml-parser/src/validator.js"),od=rd("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),ld=rd("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");ed.exports={XMLParser:od,XMLValidator:sd,XMLBuilder:ld}},"./node_modules/fast-xml-parser/src/util.js":function(ed,td,rd){const sd=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",od=sd+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ld="["+sd+"]["+od+"]*",ud=new RegExp("^"+ld+"$"),cd=function(_d,Ed){const Ad=[];l
`&&jd[Xd]!=="\r";Xd++)bf+=jd[Xd];if(bf=bf.trim(),bf[bf.length-1]==="/"&&(bf=bf.substring(0,bf.length-1),Xd--),!Md(bf)){let Tf;return bf.trim().length===0?Tf="Invalid space after '<'.":Tf="Tag '"+bf+"' is an invalid name.",Rd("InvalidTag",Tf,Ld(jd,Xd))}const pf=Ed(jd,Xd);if(pf===!1)return Rd("InvalidAttr","Attributes for '"+bf+"' have open quote.",Ld(jd,Xd));let _f=pf.value;if(Xd=pf.index,_f[_f.length-1]==="/"){const Tf=Xd-_f.length;_f=_f.substring(0,_f.length-1);const kf=Td(_f,Vd);if(kf===!0)qd=!0;else return Rd(kf.err.code,kf.err.msg,Ld(jd,Tf+kf.err.line))}else if(mf)if(pf.tagClosed){if(_f.trim().length>0)return Rd("InvalidTag","Closing tag '"+bf+"' can't have attributes or invalid starting.",Ld(jd,df));if(Qd.length===0)return Rd("InvalidTag","Closing tag '"+bf+"' has not been opened.",Ld(jd,df));{const Tf=Qd.pop();if(bf!==Tf.tagName){let kf=Ld(jd,Tf.tagStartPos);return Rd("InvalidTag","Expected closing tag '"+Tf.tagName+"' (opened in line "+kf.line+", col "+kf.col+") instead of closing tag '"+bf+"'.",Ld(jd,df))}Qd.length==0&&(Kd=!0)}}else return Rd("InvalidTag","Closing tag '"+bf+"' doesn't have proper closing.",Ld(jd,Xd));else{const Tf=Td(_f,Vd);if(Tf!==!0)return Rd(Tf.err.code,Tf.err.msg,Ld(jd,Xd-_f.length+Tf.err.line));if(Kd===!0)return Rd("InvalidXml","Multiple possible root nodes found.",Ld(jd,Xd));Vd.unpairedTags.indexOf(bf)!==-1||Qd.push({tagName:bf,tagStartPos:df}),qd=!0}for(Xd++;Xd<jd.length;Xd++)if(jd[Xd]==="<")if(jd[Xd+1]==="!"){Xd++,Xd=cd(jd,Xd);continue}else if(jd[Xd+1]==="?"){if(Xd=ud(jd,++Xd),Xd.err)return Xd}else break;else if(jd[Xd]==="&"){const Tf=Bd(jd,Xd);if(Tf==-1)return Rd("InvalidChar","char '&' is not expected.",Ld(jd,Xd));Xd=Tf}else if(Kd===!0&&!ld(jd[Xd]))return Rd("InvalidXml","Extra text at the end",Ld(jd,Xd));jd[Xd]==="<"&&Xd--}}else{if(ld(jd[Xd]))continue;return Rd("InvalidChar","char '"+jd[Xd]+"' is not expected.",Ld(jd,Xd))}if(qd){if(Qd.length==1)return Rd("InvalidTag","Unclosed tag '"+Qd[0].tagName+"'.",Ld(jd,Qd[0].tagStartPos));if(Qd.length>0)return Rd("InvalidXml","Invalid '"+JSON.stringify(Qd.map(Xd=>Xd.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Rd("InvalidXml","Start tag expected.",1);return!0};function ld(jd){return jd===" "||jd===" "||jd===`
`||jd==="\r"}function ud(jd,Vd){const Qd=Vd;for(;Vd<jd.length;Vd++)if(jd[Vd]=="?"||jd[Vd]==" "){const qd=jd.substr(Qd,Vd-Qd);if(Vd>5&&qd==="xml")return Rd("InvalidXml","XML declaration allowed only at the start of the document.",Ld(jd,Vd));if(jd[Vd]=="?"&&jd[Vd+1]==">"){Vd++;break}else continue}return Vd}function cd(jd,Vd){if(jd.length>Vd+5&&jd[Vd+1]==="-"&&jd[Vd+2]==="-"){for(Vd+=3;Vd<jd.length;Vd++)if(jd[Vd]==="-"&&jd[Vd+1]==="-"&&jd[Vd+2]===">"){Vd+=2;break}}else if(jd.length>Vd+8&&jd[Vd+1]==="D"&&jd[Vd+2]==="O"&&jd[Vd+3]==="C"&&jd[Vd+4]==="T"&&jd[Vd+5]==="Y"&&jd[Vd+6]==="P"&&jd[Vd+7]==="E"){let Qd=1;for(Vd+=8;Vd<jd.length;Vd++)if(jd[Vd]==="<")Qd++;else if(jd[Vd]===">"&&(Qd--,Qd===0))break}else if(jd.length>Vd+9&&jd[Vd+1]==="["&&jd[Vd+2]==="C"&&jd[Vd+3]==="D"&&jd[Vd+4]==="A"&&jd[Vd+5]==="T"&&jd[Vd+6]==="A"&&jd[Vd+7]==="["){for(Vd+=8;Vd<jd.length;Vd++)if(jd[Vd]==="]"&&jd[Vd+1]==="]"&&jd[Vd+2]===">"){Vd+=2;break}}return Vd}const dd='"',_d="'";function Ed(jd,Vd){let Qd="",qd="",Kd=!1;for(;Vd<jd.length;Vd++){if(jd[Vd]===dd||jd[Vd]===_d)qd===""?qd=jd[Vd]:qd!==jd[Vd]||(qd="");else if(jd[Vd]===">"&&qd===""){Kd=!0;break}Qd+=jd[Vd]}return qd!==""?!1:{value:Qd,index:Vd,tagClosed:Kd}}const Ad=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Td(jd,Vd){const Qd=sd.getAllMatches(jd,Ad),qd={};for(let Kd=0;Kd<Qd.length;Kd++){if(Qd[Kd][1].length===0)return Rd("InvalidAttr","Attribute '"+Qd[Kd][2]+"' has no space in starting.",Fd(Qd[Kd]));if(Qd[Kd][3]!==void 0&&Qd[Kd][4]===void 0)return Rd("InvalidAttr","Attribute '"+Qd[Kd][2]+"' is without value.",Fd(Qd[Kd]));if(Qd[Kd][3]===void 0&&!Vd.allowBooleanAttributes)return Rd("InvalidAttr","boolean attribute '"+Qd[Kd][2]+"' is not allowed.",Fd(Qd[Kd]));const Xd=Qd[Kd][2];if(!Od(Xd))return Rd("InvalidAttr","Attribute '"+Xd+"' is an invalid name.",Fd(Qd[Kd]));if(!qd.hasOwnProperty(Xd))qd[Xd]=1;else return Rd("InvalidAttr","Attribute '"+Xd+"' is repeated.",Fd(Qd[Kd]))}return!0}function Id(jd,Vd){let Qd=/\d/;for(jd[Vd]==="x"&&(Vd++,Qd=/[\da-fA-F]/);Vd<jd.length;Vd++){if(jd[Vd]===";")return Vd;if(!jd[Vd].match(Qd))break}return-1}function Bd(jd,Vd){if(Vd++,jd[Vd]===";")return-1;if(jd[Vd]==="#")return Vd++,Id(jd,Vd);let Qd=0;for(;Vd<jd.length;Vd++,Qd++)if(!(jd[Vd].match(/\w/)&&Qd<20)){if(jd[Vd]===";")break;return-1}return Vd}function Rd(jd,Vd,Qd){return{err:{code:jd,msg:Vd,line:Qd.line||Qd,col:Qd.col}}}function Od(jd){return sd.isName(jd)}function Md(jd){return sd.isName(jd)}function Ld(jd,Vd){const Qd=jd.substring(0,Vd).split(/\r?\n/);return{line:Qd.length,col:Qd[Qd.length-1].length+1}}function Fd(jd){return jd.startIndex+jd[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(ed,td,rd){const sd=rd("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),od={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(_d,Ed){return Ed},attributeValueProcessor:function(_d,Ed){return Ed},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function ld(_d){this.options=Object.assign({},od,_d),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=dd),this.processTextOrObjNode=ud,this.options.format?(this.indentate=cd,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ld.prototype.build=function(_d){return this.options.preserveOrder?sd(_d,this.options):(Array.isArray(_d)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(_d={[this.options.arrayNodeName]:_d}),this.j2x(_d,0).val)},ld.prototype.j2x=function(_d,Ed){let Ad="",Td="";for(let Id in _d)if(Object.prototype.hasOwnProperty.call(_d,Id))if(typeof _d[Id]>"u")this.isAttribute(Id)&&(Td+="");else if(_d[Id]===null)this.isAttribute(Id)?Td+="":Id[0]==="?"?Td+=this.indentate(Ed)+"<"+Id+"?"+this.tagEndChar:Td+=this.indentate(Ed)+"<"+Id+"/"+this.tagEndChar;else if(_d[Id]instanceof Date)Td+=this.buildTextValNode(_d[Id],Id,"",Ed);else if(typeof _d[Id]!="object"){const Bd=this.isAttribute(Id);if(Bd)Ad+=this.buildAttrPairStr(Bd,""+_d[Id]);else if(Id===this.options.textNodeName){let Rd=this.options.tagValueProcessor(Id,""+_d[Id]);Td+=this.replaceEntitiesValue(Rd)}else Td+=this.buildTextValNode(_d[Id],Id,"",Ed)}else if(Array.isArray(_d[Id])){const Bd=_d[Id].length;let Rd="";for(let Od=0;Od<Bd;Od++){const Md=_d[Id][Od];typeof Md>"u"||(Md===null?Id[0]==="?"?Td+=this.indentate(Ed)+"<"+Id+"?"+this.tagEndChar:Td+=this.indentate(Ed)+"<"+Id+"/"+this.tagEndChar:typeof Md=="object"?this.options.oneListGroup?Rd+=this.j2x(Md,Ed+1).val:Rd+=this.processTextOrObjNode(Md,Id,Ed):Rd+=this.buildTextValNode(Md,Id,"",Ed))}this.options.oneListGroup&&(Rd=this.buildObjectNode(Rd,Id,"",Ed)),Td+=Rd}else if(this.options.attributesGroupName&&Id===this.options.attributesGroupName){const Bd=Object.keys(_d[Id]),Rd=Bd.length;for(let Od=0;Od<Rd;Od++)Ad+=this.buildAttrPairStr(Bd[Od],""+_d[Id][Bd[Od]])}else Td+=this.processTextOrObjNode(_d[Id],Id,Ed);return{attrStr:Ad,val:Td}},ld.prototype.buildAttrPairStr=function(_d,Ed){return Ed=this.options.attributeValueProcessor(_d,""+Ed),Ed=this.replaceEntitiesValue(Ed),this.options.suppressBooleanAttributes&&Ed==="true"?" "+_d:" "+_d+'="'+Ed+'"'};function ud(_d,Ed,Ad){const Td=this.j2x(_d,Ad+1);return _d[this.options.textNodeName]!==void 0&&Object.keys(_d).length===1?this.buildTextValNode(_d[this.options.textNodeName],Ed,Td.attrStr,Ad):this.buildObjectNode(Td.val,Ed,Td.attrStr,Ad)}ld.prototype.buildObjectNode=function(_d,Ed,Ad,Td){if(_d==="")return Ed[0]==="?"?this.indentate(Td)+"<"+Ed+Ad+"?"+this.tagEndChar:this.indentate(Td)+"<"+Ed+Ad+this.closeTag(Ed)+this.tagEndChar;{let Id="</"+Ed+this.tagEndChar,Bd="";return Ed[0]==="?"&&(Bd="?",Id=""),(Ad||Ad==="")&&_d.indexOf("<")===-1?this.indentate(Td)+"<"+Ed+Ad+Bd+">"+_d+Id:this.options.commentPropName!==!1&&Ed===this.options.commentPropName&&Bd.length===0?this.indentate(Td)+`<!--${_d}-->`+this.newLine:this.indentate(Td)+"<"+Ed+Ad+Bd+this.tagEndChar+_d+this.indentate(Td)+Id}},ld.prototype.closeTag=function(_d){let Ed="";return this.options.unpairedTags.indexOf(_d)!==-1?this.options.suppressUnpairedNode||(Ed="/"):this.options.suppressEmptyNode?Ed="/":Ed=`></${_d}`,Ed},ld.prototype.buildTextValNode=function(_d,Ed,Ad,Td){if(this.options.cdataPropName!==!1&&Ed===this.options.cdataPropName)return this.indentate(Td)+`<![CDATA[${_d}]]>`+this.newLine;if(this.options.commentPropName!==!1&&Ed===this.options.commentPropName)return this.indentate(Td)+`<!--${_d}-->`+this.newLine;if(Ed[0]==="?")return this.indentate(Td)+"<"+Ed+Ad+"?"+this.tagEndChar;{let Id=this.options.tagValueProcessor(Ed,_d);return Id=this.replaceEntitiesValue(Id),Id===""?this.indentate(Td)+"<"+Ed+Ad+this.closeTag(Ed)+this.tagEndChar:this.indentate(Td)+"<"+Ed+Ad+">"+Id+"</"+Ed+this.tagEndChar}},ld.prototype.replaceEntitiesValue=function(_d){if(_d&&_d.length>0&&this.options.processEntities)for(let Ed=0;Ed<this.options.entities.length;Ed++){const Ad=this.options.entities[Ed];_d=_d.replace(Ad.regex,Ad.val)}return _d};function cd(_d){return this.options.indentBy.repeat(_d)}function dd(_d){return _d.startsWith(this.options.attributeNamePrefix)&&_d!==this.options.textNodeName?_d.substr(this.attrPrefixLen):!1}ed.exports=ld},"./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js":function(ed,td){const rd=`
`;function sd(_d,Ed){let Ad="";return Ed.format&&Ed.indentBy.length>0&&(Ad=rd),od(_d,Ed,"",Ad)}function od(_d,Ed,Ad,Td){let Id="",Bd=!1;for(let Rd=0;Rd<_d.length;Rd++){const Od=_d[Rd],Md=ld(Od);if(Md===void 0)continue;let Ld="";if(Ad.length===0?Ld=Md:Ld=`${Ad}.${Md}`,Md===Ed.textNodeName){let qd=Od[Md];cd(Ld,Ed)||(qd=Ed.tagValueProcessor(Md,qd),qd=dd(qd,Ed)),Bd&&(Id+=Td),Id+=qd,Bd=!1;continue}else if(Md===Ed.cdataPropName){Bd&&(Id+=Td),Id+=`<![CDATA[${Od[Md][0][Ed.textNodeName]}]]>`,Bd=!1;continue}else if(Md===Ed.commentPropName){Id+=Td+`<!--${Od[Md][0][Ed.textNodeName]}-->`,Bd=!0;continue}else if(Md[0]==="?"){const qd=ud(Od[":@"],Ed),Kd=Md==="?xml"?"":Td;let Xd=Od[Md][0][Ed.textNodeName];Xd=Xd.length!==0?" "+Xd:"",Id+=Kd+`<${Md}${Xd}${qd}?>`,Bd=!0;continue}let Fd=Td;Fd!==""&&(Fd+=Ed.indentBy);const jd=ud(Od[":@"],Ed),Vd=Td+`<${Md}${jd}`,Qd=od(Od[Md],Ed,Ld,Fd);Ed.unpairedTags.indexOf(Md)!==-1?Ed.suppressUnpairedNode?Id+=Vd+">":Id+=Vd+"/>":(!Qd||Qd.length===0)&&Ed.suppressEmptyNode?Id+=Vd+"/>":Qd&&Qd.endsWith(">")?Id+=Vd+`>${Qd}${Td}</${Md}>`:(Id+=Vd+">",Qd&&Td!==""&&(Qd.includes("/>")||Qd.includes("</"))?Id+=Td+Ed.indentBy+Qd+Td:Id+=Qd,Id+=`</${Md}>`),Bd=!0}return Id}function ld(_d){const Ed=Object.keys(_d);for(let Ad=0;Ad<Ed.length;Ad++){const Td=Ed[Ad];if(_d.hasOwnProperty(Td)&&Td!==":@")return Td}}function ud(_d,Ed){let Ad="";if(_d&&!Ed.ignoreAttributes)for(let Td in _d){if(!_d.hasOwnProperty(Td))continue;let Id=Ed.attributeValueProcessor(Td,_d[Td]);Id=dd(Id,Ed),Id===!0&&Ed.suppressBooleanAttributes?Ad+=` ${Td.substr(Ed.attributeNamePrefix.length)}`:Ad+=` ${Td.substr(Ed.attributeNamePrefix.length)}="${Id}"`}return Ad}function cd(_d,Ed){_d=_d.substr(0,_d.length-Ed.textNodeName.length-1);let Ad=_d.substr(_d.lastIndexOf(".")+1);for(let Td in Ed.stopNodes)if(Ed.stopNodes[Td]===_d||Ed.stopNodes[Td]==="*."+Ad)return!0;return!1}function dd(_d,Ed){if(_d&&_d.length>0&&Ed.processEntities)for(let Ad=0;Ad<Ed.entities.length;Ad++){const Td=Ed.entities[Ad];_d=_d.replace(Td.regex,Td.val)}return _d}ed.exports=sd},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(ed,td,rd){const sd=rd("./node_modules/fast-xml-parser/src/util.js");function od(Td,Id){const Bd={};if(Td[Id+3]==="O"&&Td[Id+4]==="C"&&Td[Id+5]==="T"&&Td[Id+6]==="Y"&&Td[Id+7]==="P"&&Td[Id+8]==="E"){Id=Id+9;let Rd=1,Od=!1,Md=!1,Ld="";for(;Id<Td.length;Id++)if(Td[Id]==="<"&&!Md){if(Od&&cd(Td,Id))Id+=7,[entityName,val,Id]=ld(Td,Id+1),val.indexOf("&")===-1&&(Bd[Ad(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(Od&&dd(Td,Id))Id+=8;else if(Od&&_d(Td,Id))Id+=8;else if(Od&&Ed(Td,Id))Id+=9;else if(ud)Md=!0;else throw new Error("Invalid DOCTYPE");Rd++,Ld=""}else if(Td[Id]===">"){if(Md?Td[Id-1]==="-"&&Td[Id-2]==="-"&&(Md=!1,Rd--):Rd--,Rd===0)break}else Td[Id]==="["?Od=!0:Ld+=Td[Id];if(Rd!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Bd,i:Id}}function ld(Td,Id){let Bd="";for(;Id<Td.length&&Td[Id]!=="'"&&Td[Id]!=='"';Id++)Bd+=Td[Id];if(Bd=Bd.trim(),Bd.indexOf(" ")!==-1)throw new Error("External entites are not supported");const Rd=Td[Id++];let Od="";for(;Id<Td.length&&Td[Id]!==Rd;Id++)Od+=Td[Id];return[Bd,Od,Id]}function ud(Td,Id){return Td[Id+1]==="!"&&Td[Id+2]==="-"&&Td[Id+3]==="-"}function cd(Td,Id){return Td[Id+1]==="!"&&Td[Id+2]==="E"&&Td[Id+3]==="N"&&Td[Id+4]==="T"&&Td[Id+5]==="I"&&Td[Id+6]==="T"&&Td[Id+7]==="Y"}function dd(Td,Id){return Td[Id+1]==="!"&&Td[Id+2]==="E"&&Td[Id+3]==="L"&&Td[Id+4]==="E"&&Td[Id+5]==="M"&&Td[Id+6]==="E"&&Td[Id+7]==="N"&&Td[Id+8]==="T"}function _d(Td,Id){return Td[Id+1]==="!"&&Td[Id+2]==="A"&&Td[Id+3]==="T"&&Td[Id+4]==="T"&&Td[Id+5]==="L"&&Td[Id+6]==="I"&&Td[Id+7]==="S"&&Td[Id+8]==="T"}function Ed(Td,Id){return Td[Id+1]==="!"&&Td[Id+2]==="N"&&Td[Id+3]==="O"&&Td[Id+4]==="T"&&Td[Id+5]==="A"&&Td[Id+6]==="T"&&Td[Id+7]==="I"&&Td[Id+8]==="O"&&Td[Id+9]==="N"}function Ad(Td){if(sd.isName(Td))return Td;throw new Error(`Invalid entity name ${Td}`)}ed.exports=od},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(ed,td){const rd={preserveOrd
`);const Kd=new od("!xml");let Xd=Kd,df="",mf="";for(let bf=0;bf<qd.length;bf++)if(qd[bf]==="<")if(qd[bf+1]==="/"){const _f=Fd(qd,">",bf,"Closing Tag is not closed.");let Tf=qd.substring(bf+2,_f).trim();if(this.options.removeNSPrefix){const Jf=Tf.indexOf(":");Jf!==-1&&(Tf=Tf.substr(Jf+1))}this.options.transformTagName&&(Tf=this.options.transformTagName(Tf)),Xd&&(df=this.saveTextToParentTag(df,Xd,mf));const kf=mf.substring(mf.lastIndexOf(".")+1);if(Tf&&this.options.unpairedTags.indexOf(Tf)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${Tf}>`);let zf=0;kf&&this.options.unpairedTags.indexOf(kf)!==-1?(zf=mf.lastIndexOf(".",mf.lastIndexOf(".")-1),this.tagsNodeStack.pop()):zf=mf.lastIndexOf("."),mf=mf.substring(0,zf),Xd=this.tagsNodeStack.pop(),df="",bf=_f}else if(qd[bf+1]==="?"){let _f=jd(qd,bf,!1,"?>");if(!_f)throw new Error("Pi Tag is not closed.");if(df=this.saveTextToParentTag(df,Xd,mf),!(this.options.ignoreDeclaration&&_f.tagName==="?xml"||this.options.ignorePiTags)){const Tf=new od(_f.tagName);Tf.add(this.options.textNodeName,""),_f.tagName!==_f.tagExp&&_f.attrExpPresent&&(Tf[":@"]=this.buildAttributesMap(_f.tagExp,mf,_f.tagName)),this.addChild(Xd,Tf,mf)}bf=_f.closeIndex+1}else if(qd.substr(bf+1,3)==="!--"){const _f=Fd(qd,"-->",bf+4,"Comment is not closed.");if(this.options.commentPropName){const Tf=qd.substring(bf+4,_f-2);df=this.saveTextToParentTag(df,Xd,mf),Xd.add(this.options.commentPropName,[{[this.options.textNodeName]:Tf}])}bf=_f}else if(qd.substr(bf+1,2)==="!D"){const _f=ld(qd,bf);this.docTypeEntities=_f.entities,bf=_f.i}else if(qd.substr(bf+1,2)==="!["){const _f=Fd(qd,"]]>",bf,"CDATA is not closed.")-2,Tf=qd.substring(bf+9,_f);df=this.saveTextToParentTag(df,Xd,mf);let kf=this.parseTextData(Tf,Xd.tagname,mf,!0,!1,!0,!0);kf==null&&(kf=""),this.options.cdataPropName?Xd.add(this.options.cdataPropName,[{[this.options.textNodeName]:Tf}]):Xd.add(this.options.textNodeName,kf),bf=_f+2}else{let _f=jd(qd,bf,this.options.removeNSPrefix),Tf=_f.tagName;const kf=_f.rawTagName;let zf=_f.tagExp,Jf=_f.attrExpPresent,Gf=_f.closeIndex;this.options.transformTagName&&(Tf=this.options.transformTagName(Tf)),Xd&&df&&Xd.tagname!=="!xml"&&(df=this.saveTextToParentTag(df,Xd,mf,!1));const Mf=Xd;if(Mf&&this.options.unpairedTags.indexOf(Mf.tagname)!==-1&&(Xd=this.tagsNodeStack.pop(),mf=mf.substring(0,mf.lastIndexOf("."))),Tf!==Kd.tagname&&(mf+=mf?"."+Tf:Tf),this.isItStopNode(this.options.stopNodes,mf,Tf)){let Nf="";if(zf.length>0&&zf.lastIndexOf("/")===zf.length-1)Tf[Tf.length-1]==="/"?(Tf=Tf.substr(0,Tf.length-1),mf=mf.substr(0,mf.length-1),zf=Tf):zf=zf.substr(0,zf.length-1),bf=_f.closeIndex;else if(this.options.unpairedTags.indexOf(Tf)!==-1)bf=_f.closeIndex;else{const Qf=this.readStopNodeData(qd,kf,Gf+1);if(!Qf)throw new Error(`Unexpected end of ${kf}`);bf=Qf.i,Nf=Qf.tagContent}const Bf=new od(Tf);Tf!==zf&&Jf&&(Bf[":@"]=this.buildAttributesMap(zf,mf,Tf)),Nf&&(Nf=this.parseTextData(Nf,Tf,mf,!0,Jf,!0,!0)),mf=mf.substr(0,mf.lastIndexOf(".")),Bf.add(this.options.textNodeName,Nf),this.addChild(Xd,Bf,mf)}else{if(zf.length>0&&zf.lastIndexOf("/")===zf.length-1){Tf[Tf.length-1]==="/"?(Tf=Tf.substr(0,Tf.length-1),mf=mf.substr(0,mf.length-1),zf=Tf):zf=zf.substr(0,zf.length-1),this.options.transformTagName&&(Tf=this.options.transformTagName(Tf));const Nf=new od(Tf);Tf!==zf&&Jf&&(Nf[":@"]=this.buildAttributesMap(zf,mf,Tf)),this.addChild(Xd,Nf,mf),mf=mf.substr(0,mf.lastIndexOf("."))}else{const Nf=new od(Tf);this.tagsNodeStack.push(Xd),Tf!==zf&&Jf&&(Nf[":@"]=this.buildAttributesMap(zf,mf,Tf)),this.addChild(Xd,Nf,mf),Xd=Nf}df="",bf=Gf}}else df+=qd[bf];return Kd.child};function Bd(qd,Kd,Xd){const df=this.options.updateTag(Kd.tagname,Xd,Kd[":@"]);df===!1||(typeof df=="string"&&(Kd.tagname=df),qd.addChild(Kd))}const Rd=function(qd){if(this.options.processEntities){for(let Kd in this.docTypeEntities){const Xd=this.docTypeEntities[Kd];qd=qd.replace(Xd.regx,Xd.val)}for(let Kd in this.lastEntities){const Xd=this.lastEntities[Kd];qd=qd.replace(Xd.regex,Xd.val)}if(this.options.htmlEntities)for(let Kd in this.htmlEntities){const Xd=this.htm
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Dh=!0,Yh=!1,hm;return{s:function(){Xf=Xf.call(Df)},n:function(){var Fm=Xf.next();return Dh=Fm.done,Fm},e:function(Fm){Yh=!0,hm=Fm},f:function(){try{!Dh&&Xf.return!=null&&Xf.return()}finally{if(Yh)throw hm}}}}function ud(Df,Af){if(Df){if(typeof Df=="string")return cd(Df,Af);var Xf=Object.prototype.toString.call(Df).slice(8,-1);if(Xf==="Object"&&Df.constructor&&(Xf=Df.constructor.name),Xf==="Map"||Xf==="Set")return Array.from(Df);if(Xf==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xf))return cd(Df,Af)}}function cd(Df,Af){(Af==null||Af>Df.length)&&(Af=Df.length);for(var Xf=0,ah=new Array(Af);Xf<Af;Xf++)ah[Xf]=Df[Xf];return ah}var dd=rd("./lib/md5.js"),_d=rd("./lib/crypto.js"),Ed=rd("./node_modules/fast-xml-parser/src/fxp.js"),Ad=Ed.XMLParser,Td=Ed.XMLBuilder,Id=new Ad({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),Bd=new Td,Rd=rd("./lib/base64.js"),Od=rd("./src/tracker.js"),Md=function(Af){var Xf=Id.parse(Af);return Xf},Ld=function(Af){var Xf=Bd.build(Af);return Xf};function Fd(Df){return encodeURIComponent(Df).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function jd(Df,Af){var Xf=[];for(var ah in Df)Df.hasOwnProperty(ah)&&Xf.push(Af?Fd(ah).toLowerCase():ah);return Xf.sort(function(yh,Dh){return yh=yh.toLowerCase(),Dh=Dh.toLowerCase(),yh===Dh?0:yh>Dh?1:-1})}var Vd=function(Af,Xf){var ah,yh,Dh,Yh=[],hm=jd(Af);for(ah=0;ah<hm.length;ah++)yh=hm[ah],Dh=Af[yh]===void 0||Af[yh]===null?"":""+Af[yh],yh=Xf?Fd(yh).toLowerCase():Fd(yh),Dh=Fd(Dh)||"",Yh.push(yh+"="+Dh);return Yh.join("&")},Qd=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],qd=function(Af){var Xf={};for(var ah in Af){var yh=ah.toLowerCase();(yh.indexOf("x-cos-")>-1||Qd.indexOf(yh)>-1)&&(Xf[ah]=Af[ah])}return Xf},Kd=function(Af){Af=Af||{};var Xf=Af.SecretId,ah=Af.SecretKey,yh=Af.KeyTime,Dh=(Af.method||Af.Method||"get").toLowerCase(),Yh=Nf(Af.Query||Af.params||{}),hm=qd(Nf(Af.Headers||Af.headers||{})),im=Af.Key||"",Fm;Af.UseRawKey?Fm=Af.Pathname||Af.pathname||"/"+im:(Fm=Af.Pathname||Af.pathname||im,Fm.indexOf("/")!==0&&(Fm="/"+Fm));var Dm=Af.ForceSignHost!==!1;if(!hm.Host&&!hm.host&&Af.Bucket&&Af.Region&&Dm&&(hm.Host=Af.Bucket+".cos."+Af.Region+".myqcloud.com"),!Xf)throw new Error("missing param SecretId");if(!ah)throw new Error("missing param SecretKey");var Om=Math.round(Lf(Af.SystemClockOffset)/1e3)-1,Qm=Om,L_=Af.Expires||Af.expires;L_===void 0?Qm+=900:Qm+=L_*1||0;var T_="sha1",S_=Xf,Xm=yh||Om+";"+Qm,B_=yh||Om+";"+Qm,H_=jd(hm,!0).join(";").toLowerCase(),Y_=jd(Yh,!0).join(";").toLowerCase(),X_=_d.HmacSHA1(B_,ah).toString(),F_=[Dh,Fm,th.obj2str(Yh,!0),th.obj2str(hm,!0),""].join(`
`),N_=["sha1",Xm,_d.SHA1(F_).toString(),""].join(`
`),Rm=_d.HmacSHA1(N_,X_).toString(),Dg=["q-sign-algorithm="+T_,"q-ak="+S_,"q-sign-time="+Xm,"q-key-time="+B_,"q-header-list="+H_,"q-url-param-list="+Y_,"q-signature="+Rm].join("&");return Dg},Xd=function(Af,Xf,ah){var yh=Xf/8,Dh=Af.slice(ah,ah+yh);return new Uint8Array(Dh).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[Xf](Dh)[0]},df=function(Af,Xf,ah,yh){var Dh=Af.slice(Xf,ah),Yh="";return new Uint8Array(Dh).forEach(function(hm){Yh+=String.fromCharCode(hm)}),yh&&(Yh=decodeURIComponent(escape(Yh))),Yh},mf=function(Af){for(var Xf={},ah=df(Af),yh={records:[]};Af.byteLength;){var Dh=Xd(Af,32,0),Yh=Xd(Af,32,4),hm=Dh-Yh-16,im=0,Fm;for(Af=Af.slice(12);im<Yh;){var Dm=Xd(Af,8,im),Om=df(Af,im+1,im+1+Dm),Qm=Xd(Af,16,im+Dm+2),L_=df(Af,im+Dm+4,im+Dm+4+Qm);Xf[Om]=L_,im+=Dm+4+Qm}if(Xf[":event-type"]==="Records")Fm=df(Af,im,im+hm,!0),yh.records.push(Fm);else if(Xf[":event-type"]==="Stats")Fm=df(Af,im,im+hm,!0),yh.stats=th.xml2json(Fm).Stats;else if(Xf[":event-type"]==="error"){var T_=Xf[":error-code"],S_=Xf[":error-message"],Xm=new Error(S_);Xm.message=S_,Xm.name=Xm.code=T_,yh.error=Xm}Af=Af.slice(im+hm+4)}return{payload:yh.records.join(""),body:ah}},bf=function(Af){var Xf=this.options.CopySourceParser;if(Xf)return Xf(Af);var ah=Af.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return ah?{Bucket:ah[1],Region:ah[3],Key:ah[7]}:null},pf=function(){},_f=function(Af){var Xf={};for(var ah in Af)Af.hasOwnProperty(ah)&&Af[ah]!==void 0&&Af[ah]!==null&&(Xf[ah]=Af[ah]);return Xf},Tf=function(Af,Xf){var ah,yh=new FileReader;FileReader.prototype.readAsBinaryString?(ah=FileReader.prototype.readAsBinaryString,yh.onload=function(){Xf(this.result)}):FileReader.prototype.readAsArrayBuffer?ah=function(Yh){var hm="",im=new FileReader;im.onload=function(Fm){for(var Dm=new Uint8Array(im.result),Om=Dm.byteLength,Qm=0;Qm<Om;Qm++)hm+=String.fromCharCode(Dm[Qm]);Xf(hm)},im.readAsArrayBuffer(Yh)}:console.error("FileReader not support readAsBinaryString"),ah.call(yh,Af)},kf=function(){var Df=function(ah,yh){ah=ah.split("."),yh=yh.split(".");for(var Dh=0;Dh<yh.length;Dh++)if(ah[Dh]!==yh[Dh])return parseInt(ah[Dh])>parseInt(yh[Dh])?1:-1;return 0},Af=function(ah){if(!ah)return!1;var yh=(ah.match(/Chrome\/([.\d]+)/)||[])[1],Dh=(ah.match(/QBCore\/([.\d]+)/)||[])[1],Yh=(ah.match(/QQBrowser\/([.\d]+)/)||[])[1],hm=yh&&Df(yh,"53.0.2785.116")<0&&Dh&&Df(Dh,"3.53.991.400")<0&&Yh&&Df(Yh,"9.0.2524.400")<=0||!1;return hm};return Af(typeof navigator<"u"&&navigator.userAgent)}(),zf=function(Af,Xf,ah,yh,Dh){var Yh;if(Af.slice?Yh=Af.slice(Xf,ah):Af.mozSlice?Yh=Af.mozSlice(Xf,ah):Af.webkitSlice&&(Yh=Af.webkitSlice(Xf,ah)),yh&&kf){var hm=new FileReader;hm.onload=function(im){Yh=null,Dh(new Blob([hm.result]))},hm.readAsArrayBuffer(Yh)}else Dh(Yh)},Jf=function(Af,Xf,ah,yh){ah=ah||pf,Af?typeof Xf=="string"?ah(th.md5(Xf,!0)):Blob&&Xf instanceof Blob?th.getFileMd5(Xf,function(Dh,Yh){ah(Yh)},yh):ah():ah()},Gf=1024*1024,Mf=function(Af,Xf,ah){var yh=Af.size,Dh=0,Yh=dd.getCtx(),hm=function im(Fm){if(Fm>=yh){var Dm=Yh.digest("hex");Xf(null,Dm);return}var Om=Math.min(yh,Fm+Gf);th.fileSlice(Af,Fm,Om,!1,function(Qm){Tf(Qm,function(L_){Qm=null,Yh=Yh.update(L_,!0),Dh+=L_.length,L_=null,ah&&ah({loaded:Dh,total:yh,percent:Math.round(Dh/yh*1e4)/1e4}),im(Fm+Gf)})})};hm(0)};function Nf(Df){return jf(Df,function(Af){return od(Af)==="object"&&Af!==null?Nf(Af):Af})}function Bf(Df,Af,Xf){return Df&&Af in Df?Df[Af]:Xf}function Qf(Df,Af){return Rf(Af,function(Xf,ah){Df[ah]=Af[ah]}),Df}function Wf(Df){return Df instanceof Array}function yf(Df,Af){for(var Xf=!1,ah=0;ah<Df.length;ah++)if(Af===Df[ah]){Xf=!0;break}return Xf}function hf(Df){return Wf(Df)?Df:[Df]}function Rf(Df,Af){for(var Xf in Df)Df.hasOwnProperty(Xf)&&Af(Df[Xf],Xf)}function jf(Df,Af){var Xf=Wf(Df)?[]:{};for(var ah in Df)Df.hasOwnProperty(ah)&&(Xf[ah]=Af(Df[ah],ah));return Xf}function Kf(Df,Af){var Xf=Wf(Df),ah=Xf?[]:{};for(var yh in Df)Df.hasOwnProperty(yh)&&Af(Df[yh],yh)&&(Xf?ah.push(Df[yh]):ah[yh]=Df[yh]);return ah}var Ff=function(Af){var Xf,ah,yh,Dh="";for(Xf=0,ah=Af.length/2
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(td){var rd=ed,sd=rd.lib,od=sd.WordArray,ld=sd.Hasher,ud=rd.algo,cd=od.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),dd=od.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),_d=od.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),Ed=od.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),Ad=od.create([0,1518500249,1859775393,2400959708,2840853838]),Td=od.create([1352829926,1548603684,1836072691,2053994217,0]),Id=ud.RIPEMD160=ld.extend({_doReset:function(){this._hash=od.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(jd,Vd){for(var Qd=0;Qd<16;Qd++){var qd=Vd+Qd,Kd=jd[qd];jd[qd]=(Kd<<8|Kd>>>24)&16711935|(Kd<<24|Kd>>>8)&4278255360}var Xd=this._hash.words,df=Ad.words,mf=Td.words,bf=cd.words,pf=dd.words,_f=_d.words,Tf=Ed.words,kf,zf,Jf,Gf,Mf,Nf,Bf,Qf,Wf,yf;Nf=kf=Xd[0],Bf=zf=Xd[1],Qf=Jf=Xd[2],Wf=Gf=Xd[3],yf=Mf=Xd[4];for(var hf,Qd=0;Qd<80;Qd+=1)hf=kf+jd[Vd+bf[Qd]]|0,Qd<16?hf+=Bd(zf,Jf,Gf)+df[0]:Qd<32?hf+=Rd(zf,Jf,Gf)+df[1]:Qd<48?hf+=Od(zf,Jf,Gf)+df[2]:Qd<64?hf+=Md(zf,Jf,Gf)+df[3]:hf+=Ld(zf,Jf,Gf)+df[4],hf=hf|0,hf=Fd(hf,_f[Qd]),hf=hf+Mf|0,kf=Mf,Mf=Gf,Gf=Fd(Jf,10),Jf=zf,zf=hf,hf=Nf+jd[Vd+pf[Qd]]|0,Qd<16?hf+=Ld(Bf,Qf,Wf)+mf[0]:Qd<32?hf+=Md(Bf,Qf,Wf)+mf[1]:Qd<48?hf+=Od(Bf,Qf,Wf)+mf[2]:Qd<64?hf+=Rd(Bf,Qf,Wf)+mf[3]:hf+=Bd(Bf,Qf,Wf)+mf[4],hf=hf|0,hf=Fd(hf,Tf[Qd]),hf=hf+yf|0,Nf=yf,yf=Wf,Wf=Fd(Qf,10),Qf=Bf,Bf=hf;hf=Xd[1]+Jf+Wf|0,Xd[1]=Xd[2]+Gf+yf|0,Xd[2]=Xd[3]+Mf+Nf|0,Xd[3]=Xd[4]+kf+Bf|0,Xd[4]=Xd[0]+zf+Qf|0,Xd[0]=hf},_doFinalize:function(){var jd=this._data,Vd=jd.words,Qd=this._nDataBytes*8,qd=jd.sigBytes*8;Vd[qd>>>5]|=128<<24-qd%32,Vd[(qd+64>>>9<<4)+14]=(Qd<<8|Qd>>>24)&16711935|(Qd<<24|Qd>>>8)&4278255360,jd.sigBytes=(Vd.length+1)*4,this._process();for(var Kd=this._hash,Xd=Kd.words,df=0;df<5;df++){var mf=Xd[df];Xd[df]=(mf<<8|mf>>>24)&16711935|(mf<<24|mf>>>8)&4278255360}return Kd},clone:function(){var jd=ld.clone.call(this);return jd._hash=this._hash.clone(),jd}});function Bd(jd,Vd,Qd){return jd^Vd^Qd}function Rd(jd,Vd,Qd){return jd&Vd|~jd&Qd}function Od(jd,Vd,Qd){return(jd|~Vd)^Qd}function Md(jd,Vd,Qd){return jd&Qd|Vd&~Qd}function Ld(jd,Vd,Qd){return jd^(Vd|~Qd)}function Fd(jd,Vd){return jd<<Vd|jd>>>32-Vd}rd.RIPEMD160=ld._createHelper(Id),rd.HmacRIPEMD160=ld._createHmacHelper(Id)}(),ed.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(Ra,qa){(function(ed,td){Ra.exports=td(requireCore())})(commonjsGlobal,function(ed){(function(){var td=ed,rd=td.lib,sd=rd.Base,od=td.enc,ld=od.Utf8,ud=td.algo;ud.HMAC=sd.extend({init:function(cd,dd){cd=this._hasher=new cd.init,typeof dd=="string"&&(dd=ld.parse(dd));var _d=cd.blockSize,Ed=_d*4;dd.sigBytes>Ed&&(dd=cd.finalize(dd)),dd.clamp();for(var Ad=this._oKey=dd.clone(),Td=this._iKey=dd.clone(),Id=Ad.words,Bd=Td.words,Rd=0;Rd<_d;Rd++)Id[Rd]^=1549556828,Bd[Rd]^=909522486;Ad.sigBytes=Td.sigBytes=Ed,this.reset()},reset:function(){var cd=this._hasher;cd.reset(),cd.update(this._iKey)},update:function(cd){return this._hasher.update(cd),this},finalize:function(cd){var dd=this._hasher,_d=dd.finalize(cd);dd.reset();var Ed=dd.finalize(this._oKey.clone().concat(_d));return Ed}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(Ra,qa){(function(ed,td,rd){Ra.exports=td(requireCore(),requireSha256(),requireHmac())})(commonjsGlobal,function(ed){retu
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return ed.mode.CTRGladman=function(){var td=ed.lib.BlockCipherMode.extend();function rd(ld){if((ld>>24&255)===255){var ud=ld>>16&255,cd=ld>>8&255,dd=ld&255;ud===255?(ud=0,cd===255?(cd=0,dd===255?dd=0:++dd):++cd):++ud,ld=0,ld+=ud<<16,ld+=cd<<8,ld+=dd}else ld+=1<<24;return ld}function sd(ld){return(ld[0]=rd(ld[0]))===0&&(ld[1]=rd(ld[1])),ld}var od=td.Encryptor=td.extend({processBlock:function(ld,ud){var cd=this._cipher,dd=cd.blockSize,_d=this._iv,Ed=this._counter;_d&&(Ed=this._counter=_d.slice(0),this._iv=void 0),sd(Ed);var Ad=Ed.slice(0);cd.encryptBlock(Ad,0);for(var Td=0;Td<dd;Td++)ld[ud+Td]^=Ad[Td]}});return td.Decryptor=od,td}(),ed.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(Ra,qa){(function(ed,td,rd){Ra.exports=td(requireCore(),requireCipherCore())})(commonjsGlobal,function(ed){return ed.mode.OFB=function(){var td=ed.lib.BlockCipherMode.extend(),rd=td.Encryptor=td.extend({processBlock:function(sd,od){var ld=this._cipher,ud=ld.blockSize,cd=this._iv,dd=this._keystream;cd&&(dd=this._keystream=cd.slice(0),this._iv=void 0),ld.encryptBlock(dd,0);for(var _d=0;_d<ud;_d++)sd[od+_d]^=dd[_d]}});return td.Decryptor=rd,td}(),ed.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(Ra,qa){(function(ed,td,rd){Ra.exports=td(requireCore(),requireCipherCore())})(commonjsGlobal,function(ed){return ed.mode.ECB=function(){var td=ed.lib.BlockCipherMode.extend();return td.Encryptor=td.extend({processBlock:function(rd,sd){this._cipher.encryptBlock(rd,sd)}}),td.Decryptor=td.extend({processBlock:function(rd,sd){this._cipher.decryptBlock(rd,sd)}}),td}(),ed.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(Ra,qa){(function(ed,td,rd){Ra.exports=td(requireCore(),requireCipherCore())})(commonjsGlobal,function(ed){return ed.pad.AnsiX923={pad:function(td,rd){var sd=td.sigBytes,od=rd*4,ld=od-sd%od,ud=sd+ld-1;td.clamp(),td.words[ud>>>2]|=ld<<24-ud%4*8,td.sigBytes+=ld},unpad:function(td){var rd=td.words[td.sigBytes-1>>>2]&255;td.sigBytes-=rd}},ed.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(Ra,qa){(function(ed,td,rd){Ra.exports=td(requireCore(),requireCipherCore())})(commonjsGlobal,function(ed){return ed.pad.Iso10126={pad:function(td,rd){var sd=rd*4,od=sd-td.sigBytes%sd;td.concat(ed.lib.WordArray.random(od-1)).concat(ed.lib.WordArray.create([od<<24],1))},unpad:function(td){var rd=td.words[td.sigBytes-1>>>2]&255;td.sigBytes-=rd}},ed.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(Ra,qa){(function(ed,td,rd){Ra.exports=td(requireCore(),requireCipherCore())})(commonjsGlobal,function(ed){return ed.pad.Iso97971={pad:function(td,rd){td.concat(ed.lib.WordArray.create([2147483648],1)),ed.pad.ZeroPadding.pad(td,rd)},unpad:function(td){ed.pad.ZeroPadding.unpad(td),td.sigBytes--}},ed.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(Ra,qa){(function(ed,td,rd){Ra.exports=td(requireCore(),requireCipherCore())})(commonjsGlobal,function(ed){return ed.pad.ZeroPadding={pad:function(td,rd){var sd=rd*4;td.clamp(),td.sigBytes+=sd-(td.sigBytes%sd||sd)},unpad:function(td){for(var rd=td.words,sd=td.sigBytes-1,sd=td.sigBytes-1;sd>=0;sd--)if(rd[sd>>>2]>>>24-sd%4*8&255){td.sigBytes=sd+1;break}}},ed.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopaddi
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(Ra){var qa=requireBase64Js(),ed=ieee754,td=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=ld,Ra.SlowBuffer=Od,Ra.INSPECT_MAX_BYTES=50;var rd=2147483647;Ra.kMaxLength=rd,ld.TYPED_ARRAY_SUPPORT=sd(),!ld.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function sd(){try{var Uf=new Uint8Array(1),Cf={foo:function(){return 42}};return Object.setPrototypeOf(Cf,Uint8Array.prototype),Object.setPrototypeOf(Uf,Cf),Uf.foo()===42}catch{return!1}}Object.defineProperty(ld.prototype,"parent",{enumerable:!0,get:function(){if(ld.isBuffer(this))return this.buffer}}),Object.defineProperty(ld.prototype,"offset",{enumerable:!0,get:function(){if(ld.isBuffer(this))return this.byteOffset}});function od(Uf){if(Uf>rd)throw new RangeError('The value "'+Uf+'" is invalid for option "size"');var Cf=new Uint8Array(Uf);return Object.setPrototypeOf(Cf,ld.prototype),Cf}function ld(Uf,Cf,If){if(typeof Uf=="number"){if(typeof Cf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _d(Uf)}return ud(Uf,Cf,If)}ld.poolSize=8192;function ud(Uf,Cf,If){if(typeof Uf=="string")return Ed(Uf,Cf);if(ArrayBuffer.isView(Uf))return Td(Uf);if(Uf==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Uf);if(wf(Uf,ArrayBuffer)||Uf&&wf(Uf.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(wf(Uf,SharedArrayBuffer)||Uf&&wf(Uf.buffer,SharedArrayBuffer)))return Id(Uf,Cf,If);if(typeof Uf=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Lf=Uf.valueOf&&Uf.valueOf();if(Lf!=null&&Lf!==Uf)return ld.from(Lf,Cf,If);var sh=Bd(Uf);if(sh)return sh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Uf[Symbol.toPrimitive]=="function")return ld.from(Uf[Symbol.toPrimitive]("string"),Cf,If);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Uf)}ld.from=function(Uf,Cf,If){return ud(Uf,Cf,If)},Object.setPrototypeOf(ld.prototype,Uint8Array.prototype),Object.setPrototypeOf(ld,Uint8Array);function cd(Uf){if(typeof Uf!="number")throw new TypeError('"size" argument must be of type number');if(Uf<0)throw new RangeError('The value "'+Uf+'" is invalid for option "size"')}function dd(Uf,Cf,If){return cd(Uf),Uf<=0?od(Uf):Cf!==void 0?typeof If=="string"?od(Uf).fill(Cf,If):od(Uf).fill(Cf):od(Uf)}ld.alloc=function(Uf,Cf,If){return dd(Uf,Cf,If)};function _d(Uf){return cd(Uf),od(Uf<0?0:Rd(Uf)|0)}ld.allocUnsafe=function(Uf){return _d(Uf)},ld.allocUnsafeSlow=function(Uf){return _d(Uf)};function Ed(Uf,Cf){if((typeof Cf!="string"||Cf==="")&&(Cf="utf8"),!ld.isEncoding(Cf))throw new TypeError("Unknown encoding: "+Cf);var If=Md(Uf,Cf)|0,Lf=od(If),sh=Lf.write(Uf,Cf);return sh!==If&&(Lf=Lf.slice(0,sh)),Lf}function Ad(Uf){for(var Cf=Uf.length<0?0:Rd(Uf.length)|0,If=od(Cf),Lf=0;Lf<Cf;Lf+=1)If[Lf]=Uf[Lf]&255;return If}function Td(Uf){if(wf(Uf,Uint8Array)){var Cf=new Uint8Array(Uf);return Id(Cf.buffer,Cf.byteOffset,Cf.byteLength)}return Ad(Uf)}function Id(Uf,Cf,If){if(Cf<0||Uf.byteLength<Cf)throw new RangeError('"offset" is outside of buffer bounds');if(Uf.byteLength<Cf+(If||0))throw new RangeError('"length" is outside of buffer bounds');var Lf;return Cf===void 0&&If===void 0?Lf=new Uint8Array(Uf):If===void 0?Lf=new Uint8Array(Uf,Cf):Lf=new Uint8Array(Uf,Cf,If),Object.setPrototypeOf(Lf,ld.prototype),Lf}function Bd(Uf){if(ld.isBuffer(Uf)){var Cf=Rd(Uf.length)|0,If=od(Cf);return If.length===0||Uf.copy(If,0,0,Cf),If}if(Uf.length!==void 0)return typeof Uf.length!="number"||Yf(Uf.length)?od(0):Ad(Uf);if(Uf.type==="Buffer"&&Array.isArray(Uf.data))return Ad(Uf.data)}function Rd(Uf){if(Uf>=rd)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rd.toStri
`)>-1&&(Rf?Kf=Kf.split(`
`).map(function(wf){return" "+wf}).join(`
`).slice(2):Kf=`
`+Kf.split(`
`).map(function(wf){return" "+wf}).join(`
`))):Kf=Bf.stylize("[Circular]","special")),qd(jf)){if(Rf&&hf.match(/^\d+$/))return Kf;jf=JSON.stringify(""+hf),jf.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(jf=jf.slice(1,-1),jf=Bf.stylize(jf,"name")):(jf=jf.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),jf=Bf.stylize(jf,"string"))}return jf+": "+Kf}function Rd(Bf,Qf,Wf){var yf=Bf.reduce(function(hf,Rf){return Rf.indexOf(`
`)>=0,hf+Rf.replace(/\u001b\[\d\d?m/g,"").length+1},0);return yf>60?Wf[0]+(Qf===""?"":Qf+`
`)+" "+Bf.join(`,
`)+" "+Wf[1]:Wf[0]+Qf+" "+Bf.join(", ")+" "+Wf[1]}Ra.types=types;function Od(Bf){return Array.isArray(Bf)}Ra.isArray=Od;function Md(Bf){return typeof Bf=="boolean"}Ra.isBoolean=Md;function Ld(Bf){return Bf===null}Ra.isNull=Ld;function Fd(Bf){return Bf==null}Ra.isNullOrUndefined=Fd;function jd(Bf){return typeof Bf=="number"}Ra.isNumber=jd;function Vd(Bf){return typeof Bf=="string"}Ra.isString=Vd;function Qd(Bf){return typeof Bf=="symbol"}Ra.isSymbol=Qd;function qd(Bf){return Bf===void 0}Ra.isUndefined=qd;function Kd(Bf){return Xd(Bf)&&_f(Bf)==="[object RegExp]"}Ra.isRegExp=Kd,Ra.types.isRegExp=Kd;function Xd(Bf){return typeof Bf=="object"&&Bf!==null}Ra.isObject=Xd;function df(Bf){return Xd(Bf)&&_f(Bf)==="[object Date]"}Ra.isDate=df,Ra.types.isDate=df;function mf(Bf){return Xd(Bf)&&(_f(Bf)==="[object Error]"||Bf instanceof Error)}Ra.isError=mf,Ra.types.isNativeError=mf;function bf(Bf){return typeof Bf=="function"}Ra.isFunction=bf;function pf(Bf){return Bf===null||typeof Bf=="boolean"||typeof Bf=="number"||typeof Bf=="string"||typeof Bf=="symbol"||typeof Bf>"u"}Ra.isPrimitive=pf,Ra.isBuffer=isBufferBrowser;function _f(Bf){return Object.prototype.toString.call(Bf)}function Tf(Bf){return Bf<10?"0"+Bf.toString(10):Bf.toString(10)}var kf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zf(){var Bf=new Date,Qf=[Tf(Bf.getHours()),Tf(Bf.getMinutes()),Tf(Bf.getSeconds())].join(":");return[Bf.getDate(),kf[Bf.getMonth()],Qf].join(" ")}Ra.log=function(){console.log("%s - %s",zf(),Ra.format.apply(Ra,arguments))},Ra.inherits=inherits_browserExports,Ra._extend=function(Bf,Qf){if(!Qf||!Xd(Qf))return Bf;for(var Wf=Object.keys(Qf),yf=Wf.length;yf--;)Bf[Wf[yf]]=Qf[Wf[yf]];return Bf};function Jf(Bf,Qf){return Object.prototype.hasOwnProperty.call(Bf,Qf)}var Gf=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ra.promisify=function(Qf){if(typeof Qf!="function")throw new TypeError('The "original" argument must be of type Function');if(Gf&&Qf[Gf]){var Wf=Qf[Gf];if(typeof Wf!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Wf,Gf,{value:Wf,enumerable:!1,writable:!1,configurable:!0}),Wf}function Wf(){for(var yf,hf,Rf=new Promise(function(Ff,wf){yf=Ff,hf=wf}),jf=[],Kf=0;Kf<arguments.length;Kf++)jf.push(arguments[Kf]);jf.push(function(Ff,wf){Ff?hf(Ff):yf(wf)});try{Qf.apply(this,jf)}catch(Ff){hf(Ff)}return Rf}return Object.setPrototypeOf(Wf,Object.getPrototypeOf(Qf)),Gf&&Object.defineProperty(Wf,Gf,{value:Wf,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Wf,td(Qf))},Ra.promisify.custom=Gf;function Mf(Bf,Qf){if(!Bf){var Wf=new Error("Promise was rejected with a falsy value");Wf.reason=Bf,Bf=Wf}return Qf(Bf)}function Nf(Bf){if(typeof Bf!="function")throw new TypeError('The "original" argument must be of type Function');function Qf(){for(var Wf=[],yf=0;yf<arguments.length;yf++)Wf.push(arguments[yf]);var hf=Wf.pop();if(typeof hf!="function")throw new TypeError("The last argument must be of type Function");var Rf=this,jf=function(){return hf.apply(Rf,arguments)};Bf.apply(this,Wf).then(function(Kf){qa.nextTick(jf.bind(null,null,Kf))},function(Kf){qa.nextTick(Mf.bind(null,Kf,jf))})}return Object.setPrototypeOf(Qf,Object.getPrototypeOf(Bf)),Object.defineProperties(Qf,td(Bf)),Qf}Ra.callbackify=Nf})(util$5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function Ra(Td,Id){var Bd=Object.keys(Td);if(Object.getOwnPropertySymbols){var Rd=Object.getOwnPropertySymbols(Td);Id&&(Rd=Rd.filter(function(Od){return Object.getOwnPropertyDescriptor(Td,Od).enumerable})),Bd.push.apply(Bd,Rd)}return Bd}function qa(Td){for(var Id=1;Id<arguments.length;Id++){var Bd=arguments[Id]!=null?arguments[Id]:{};Id%2?Ra(Object(Bd),!0).forEach(function(Rd){ed(Td,Rd,Bd[Rd])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Td,Object.getOwnPropertyDescriptors(Bd)):Ra(Object(Bd)).forEach(function(Rd){Object.defineProperty(Td,Rd,Object.getOwnPropertyDescript
`,ed);ed=rd===-1?Ra.length:rd}else if(td!==-1&&Ra[ed]==="/"&&Ra[ed+1]==="*"){let rd=Ra.indexOf("*/",ed);rd!==-1?(ed=rd+2,td=Ra.indexOf("*/",ed)):(qa+=Ra[ed],ed++)}else qa+=Ra[ed],ed++;return qa}function parseParams(Ra){const qa=stripComments(Ra.toString());let ed=qa.match(FN_ARGS);if(ed||(ed=qa.match(ARROW_FN_ARGS)),!ed)throw new Error(`could not parse args in autoInject
Source:
`+qa);let[,td]=ed;return td.replace(/\s/g,"").split(FN_ARG_SPLIT).map(rd=>rd.replace(FN_ARG,"").trim())}function autoInject(Ra,qa){var ed={};return Object.keys(Ra).forEach(td=>{var rd=Ra[td],sd,od=isAsync(rd),ld=!od&&rd.length===1||od&&rd.length===0;if(Array.isArray(rd))sd=[...rd],rd=sd.pop(),ed[td]=sd.concat(sd.length>0?ud:rd);else if(ld)ed[td]=rd;else{if(sd=parseParams(rd),rd.length===0&&!od&&sd.length===0)throw new Error("autoInject task functions require explicit parameters.");od||sd.pop(),ed[td]=sd.concat(ud)}function ud(cd,dd){var _d=sd.map(Ed=>cd[Ed]);_d.push(dd),wrapAsync(rd)(..._d)}}),auto(ed,qa)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(qa){return qa.prev?qa.prev.next=qa.next:this.head=qa.next,qa.next?qa.next.prev=qa.prev:this.tail=qa.prev,qa.prev=qa.next=null,this.length-=1,qa}empty(){for(;this.head;)this.shift();return this}insertAfter(qa,ed){ed.prev=qa,ed.next=qa.next,qa.next?qa.next.prev=ed:this.tail=ed,qa.next=ed,this.length+=1}insertBefore(qa,ed){ed.prev=qa.prev,ed.next=qa,qa.prev?qa.prev.next=ed:this.head=ed,qa.prev=ed,this.length+=1}unshift(qa){this.head?this.insertBefore(this.head,qa):setInitial(this,qa)}push(qa){this.tail?this.insertAfter(this.tail,qa):setInitial(this,qa)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var qa=this.head;qa;)yield qa.data,qa=qa.next}remove(qa){for(var ed=this.head;ed;){var{next:td}=ed;qa(ed)&&this.removeLink(ed),ed=td}return this}}function setInitial(Ra,qa){Ra.length=1,Ra.head=Ra.tail=qa}function queue$1(Ra,qa,ed){if(qa==null)qa=1;else if(qa===0)throw new RangeError("Concurrency must not be zero");var td=wrapAsync(Ra),rd=0,sd=[];const od={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function ld(Od,Md){od[Od].push(Md)}function ud(Od,Md){const Ld=(...Fd)=>{cd(Od,Ld),Md(...Fd)};od[Od].push(Ld)}function cd(Od,Md){if(!Od)return Object.keys(od).forEach(Ld=>od[Ld]=[]);if(!Md)return od[Od]=[];od[Od]=od[Od].filter(Ld=>Ld!==Md)}function dd(Od,...Md){od[Od].forEach(Ld=>Ld(...Md))}var _d=!1;function Ed(Od,Md,Ld,Fd){if(Fd!=null&&typeof Fd!="function")throw new Error("task callback must be a function");Rd.started=!0;var jd,Vd;function Qd(Kd,...Xd){if(Kd)return Ld?Vd(Kd):jd();if(Xd.length<=1)return jd(Xd[0]);jd(Xd)}var qd=Rd._createTaskItem(Od,Ld?Qd:Fd||Qd);if(Md?Rd._tasks.unshift(qd):Rd._tasks.push(qd),_d||(_d=!0,setImmediate$1$1(()=>{_d=!1,Rd.process()})),Ld||!Fd)return new Promise((Kd,Xd)=>{jd=Kd,Vd=Xd})}function Ad(Od){return function(Md,...Ld){rd-=1;for(var Fd=0,jd=Od.length;Fd<jd;Fd++){var Vd=Od[Fd],Qd=sd.indexOf(Vd);Qd===0?sd.shift():Qd>0&&sd.splice(Qd,1),Vd.callback(Md,...Ld),Md!=null&&dd("error",Md,Vd.data)}rd<=Rd.concurrency-Rd.buffer&&dd("unsaturated"),Rd.idle()&&dd("drain"),Rd.process()}}function Td(Od){return Od.length===0&&Rd.idle()?(setImmediate$1$1(()=>dd("drain")),!0):!1}const Id=Od=>Md=>{if(!Md)return new Promise((Ld,Fd)=>{ud(Od,(jd,Vd)=>{if(jd)return Fd(jd);Ld(Vd)})});cd(Od),ld(Od,Md)};var Bd=!1,Rd={_tasks:new DLL,_createTaskItem(Od,Md){return{data:Od,callback:Md}},*[Symbol.iterator](){yield*Rd._tasks[Symbol.iterator]()},concurrency:qa,payload:ed,buffer:qa/4,started:!1,paused:!1,push(Od,Md){return Array.isArray(Od)?Td(Od)?void 0:Od.map(Ld=>Ed(Ld,!1,!1,Md)):Ed(Od,!1,!1,Md)},pushAsync(Od,Md){return Array.isArray(Od)?Td(Od)?void 0:Od.map(Ld=>Ed(Ld,!1,!0,Md)):Ed(Od,!1,!0,Md)},kill(){cd(),Rd._tasks.empty()},unshift(Od,Md){return Array.isArray(Od)?Td(Od)?void 0:Od.map(Ld=>Ed(Ld,!0,!1,Md)):Ed(Od,!0,!1,Md)},unshiftAsync(Od,Md){return Array.isArray(Od)?Td(Od)?void 0:Od.map(Ld=>Ed(Ld,!0,!0,Md)):Ed(Od,!0,!0,Md)},remove(Od){Rd._tasks.remove(Od)},process(){if(!Bd){for(Bd=!0;!Rd.paused&&rd<Rd.concurrency&&Rd._tasks.length;){var Od=[],Md=[],Ld=Rd._tasks.length;Rd.payload&&(Ld=Math.min(Ld,Rd.payload));for(var Fd=0;Fd<Ld;Fd++){var jd=Rd._tasks.shift();Od.push(jd),sd.push(jd),Md.push(jd.data)}rd+=1,Rd._tasks.length===0&&dd("empty"),rd===Rd.concurrency&&dd("saturated");var Vd=onlyOnce(Ad(Od));td(Md,Vd)}Bd=!1}},length(){return Rd._tasks.
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/lodash.exports;(function(Ra,qa){(function(){var ed,td="4.17.21",rd=200,sd="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",od="Expected a function",ld="Invalid `variable` option passed into `_.template`",ud="__lodash_hash_undefined__",cd=500,dd="__lodash_placeholder__",_d=1,Ed=2,Ad=4,Td=1,Id=2,Bd=1,Rd=2,Od=4,Md=8,Ld=16,Fd=32,jd=64,Vd=128,Qd=256,qd=512,Kd=30,Xd="...",df=800,mf=16,bf=1,pf=2,_f=3,Tf=1/0,kf=9007199254740991,zf=17976931348623157e292,Jf=NaN,Gf=4294967295,Mf=Gf-1,Nf=Gf>>>1,Bf=[["ary",Vd],["bind",Bd],["bindKey",Rd],["curry",Md],["curryRight",Ld],["flip",qd],["partial",Fd],["partialRight",jd],["rearg",Qd]],Qf="[object Arguments]",Wf="[object Array]",yf="[object AsyncFunction]",hf="[object Boolean]",Rf="[object Date]",jf="[object DOMException]",Kf="[object Error]",Ff="[object Function]",wf="[object GeneratorFunction]",Yf="[object Map]",uh="[object Number]",Uf="[object Null]",Cf="[object Object]",If="[object Promise]",Lf="[object Proxy]",sh="[object RegExp]",hh="[object Set]",rh="[object String]",Ah="[object Symbol]",ph="[object Undefined]",vh="[object WeakMap]",qh="[object WeakSet]",kh="[object ArrayBuffer]",Wh="[object DataView]",om="[object Float32Array]",th="[object Float64Array]",Df="[object Int8Array]",Af="[object Int16Array]",Xf="[object Int32Array]",ah="[object Uint8Array]",yh="[object Uint8ClampedArray]",Dh="[object Uint16Array]",Yh="[object Uint32Array]",hm=/\b__p \+= '';/g,im=/\b(__p \+=) '' \+/g,Fm=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dm=/&(?:amp|lt|gt|quot|#39);/g,Om=/[&<>"']/g,Qm=RegExp(Dm.source),L_=RegExp(Om.source),T_=/<%-([\s\S]+?)%>/g,S_=/<%([\s\S]+?)%>/g,Xm=/<%=([\s\S]+?)%>/g,B_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H_=/^\w*$/,Y_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X_=/[\\^$.*+?()[\]{}|]/g,F_=RegExp(X_.source),N_=/^\s+/,Rm=/\s/,Dg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fg=/\{\n\/\* \[wrapped with (.+)\] \*/,am=/,? & /,Sf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oh=/[()=,{}\[\]\/\s]/,Zf=/\\(\\)?/g,lh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bh=/\w*$/,gh=/^[-+]0x[0-9a-f]+$/i,Oh=/^0b[01]+$/i,Ih=/^\[object .+?Constructor\]$/,fh=/^0o[0-7]+$/i,Xh=/^(?:0|[1-9]\d*)$/,cm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jm=/($^)/,gm=/['\n\r\u2028\u2029\\]/g,Vm="\\ud800-\\udfff",y_="\\u0300-\\u036f",x_="\\ufe20-\\ufe2f",u_="\\u20d0-\\u20ff",Nm=y_+x_+u_,G_="\\u2700-\\u27bf",p_="a-z\\xdf-\\xf6\\xf8-\\xff",r_="\\xac\\xb1\\xd7\\xf7",Lm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g_="\\u2000-\\u206f",Xg=" \\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",Qg="A-Z\\xc0-\\xd6\\xd8-\\xde",fm="\\ufe0e\\ufe0f",n_=r_+Lm+g_+Xg,Ig="[']",d0="["+Vm+"]",p0="["+n_+"]",jg="["+Nm+"]",Jg="\\d+",i_="["+G_+"]",Og="["+p_+"]",q_="[^"+Vm+n_+Jg+G_+p_+Qg+"]",hg="\\ud83c[\\udffb-\\udfff]",ig="(?:"+jg+"|"+hg+")",Zg="[^"+Vm+"]",I0="(?:\\ud83c[\\udde6-\\uddff]){2}",mg="[\\ud800-\\udbff][\\udc00-\\udfff]",e0="["+Qg+"]",Sb="\\u200d",rb="(?:"+Og+"|"+q_+")",Zm="(?:"+e0+"|"+q_+")",nb="(?:"+Ig+"(?:d|ll|m|re|s|t|ve))?",G0="(?:"+Ig+"(?:D|LL|M|RE|S|T|VE))?",xb=ig+"?",Zb="["+fm+"]?",ev="(?:"+Sb+"(?:"+[Zg,I0,mg].join("|")+")"+Zb+xb+")*",q0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ag="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ug=Zb+xb+ev,f0="(?:"+[i_,I0,mg].join("|")+")"+Ug,V0="(?:"+[Zg+jg+"?",jg,I0,mg,d0].join("|")+")",ib=RegExp(Ig,"g"),_1=RegExp(jg,"g"),Mv=RegExp(hg+"(?="+hg+")|"+V0+Ug,"g"),g1=RegExp([e0+"?"+Og+"+"+nb+"(?="+[p0,e0,"$"].join("|")+")",Zm+"+"+G0+"(?="+[p0,e0+rb,"$"].join("|")+")",e0+"?"+rb+"+"+nb,e0+"+"+G0,ag,q0,Jg,f0].join("|"),"g"),Cy=RegExp("["+Sb+Vm+Nm+fm+"]"),Bv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,b1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTim
/* [wrapped with `+Yd+`] */
`)}function Pd(Ud){return h_(Ud)||h1(Ud)||!!(RE&&Ud&&Ud[RE])}function Wd(Ud,Yd){var gf=typeof Ud;return Yd=Yd??kf,!!Yd&&(gf=="number"||gf!="symbol"&&Xh.test(Ud))&&Ud>-1&&Ud%1==0&&Ud<Yd}function zd(Ud,Yd,gf){if(!ug(gf))return!1;var Pf=typeof Yd;return(Pf=="number"?l0(gf)&&Wd(Yd,gf.length):Pf=="string"&&Yd in gf)?eb(gf[Yd],Ud):!1}function Jd(Ud,Yd){if(h_(Ud))return!1;var gf=typeof Ud;return gf=="number"||gf=="symbol"||gf=="boolean"||Ud==null||w0(Ud)?!0:H_.test(Ud)||!B_.test(Ud)||Yd!=null&&Ud in j_(Yd)}function Ef(Ud){var Yd=typeof Ud;return Yd=="string"||Yd=="number"||Yd=="symbol"||Yd=="boolean"?Ud!=="__proto__":Ud===null}function Of(Ud){var Yd=p1(Ud),gf=ch[Yd];if(typeof gf!="function"||!(Yd in s_.prototype))return!1;if(Ud===gf)return!0;var Pf=d1(gf);return!!Pf&&Ud===Pf[0]}function $f(Ud){return!!I1&&I1 in Ud}var Vf=Y0?Kb:g2;function eh(Ud){var Yd=Ud&&Ud.constructor,gf=typeof Yd=="function"&&Yd.prototype||g0;return Ud===gf}function _h(Ud){return Ud===Ud&&!ug(Ud)}function Ch(Ud,Yd){return function(gf){return gf==null?!1:gf[Ud]===Yd&&(Yd!==ed||Ud in j_(gf))}}function $h(Ud){var Yd=TT(Ud,function(Pf){return gf.size===cd&&gf.clear(),Pf}),gf=Yd.cache;return Yd}function Bh(Ud,Yd){var gf=Ud[1],Pf=Yd[1],nh=gf|Pf,dh=nh<(Bd|Rd|Vd),Rh=Pf==Vd&&gf==Md||Pf==Vd&&gf==Qd&&Ud[7].length<=Yd[8]||Pf==(Vd|Qd)&&Yd[7].length<=Yd[8]&&gf==Md;if(!(dh||Rh))return Ud;Pf&Bd&&(Ud[2]=Yd[2],nh|=gf&Bd?0:Od);var Mh=Yd[3];if(Mh){var Gh=Ud[3];Ud[3]=Gh?z1(Gh,Mh,Yd[4]):Mh,Ud[4]=Gh?qg(Ud[3],dd):Yd[4]}return Mh=Yd[5],Mh&&(Gh=Ud[5],Ud[5]=Gh?mE(Gh,Mh,Yd[6]):Mh,Ud[6]=Gh?qg(Ud[5],dd):Yd[6]),Mh=Yd[7],Mh&&(Ud[7]=Mh),Pf&Vd&&(Ud[8]=Ud[8]==null?Yd[8]:dg(Ud[8],Yd[8])),Ud[9]==null&&(Ud[9]=Yd[9]),Ud[0]=Yd[0],Ud[1]=nh,Ud}function sm(Ud){var Yd=[];if(Ud!=null)for(var gf in j_(Ud))Yd.push(gf);return Yd}function pm(Ud){return k0.call(Ud)}function Sm(Ud,Yd,gf){return Yd=K_(Yd===ed?Ud.length-1:Yd,0),function(){for(var Pf=arguments,nh=-1,dh=K_(Pf.length-Yd,0),Rh=Kh(dh);++nh<dh;)Rh[nh]=Pf[Yd+nh];nh=-1;for(var Mh=Kh(Yd+1);++nh<Yd;)Mh[nh]=Pf[nh];return Mh[Yd]=gf(Rh),Pg(Ud,this,Mh)}}function $m(Ud,Yd){return Yd.length<2?Ud:hb(Ud,vg(Yd,0,-1))}function Um(Ud,Yd){for(var gf=Ud.length,Pf=dg(Yd.length,gf),nh=Gg(Ud);Pf--;){var dh=Yd[Pf];Ud[Pf]=Wd(dh,gf)?nh[dh]:ed}return Ud}function Pm(Ud,Yd){if(!(Yd==="constructor"&&typeof Ud[Yd]=="function")&&Yd!="__proto__")return Ud[Yd]}var Gm=$_(aT),e_=k1||function(Ud,Yd){return k_.setTimeout(Ud,Yd)},Jm=$_(zT);function f_(Ud,Yd,gf){var Pf=Yd+"";return Jm(Ud,Nd(Pf,og(rg(Pf),gf)))}function $_(Ud){var Yd=0,gf=0;return function(){var Pf=OT(),nh=mf-(Pf-gf);if(gf=Pf,nh>0){if(++Yd>=df)return arguments[0]}else Yd=0;return Ud.apply(ed,arguments)}}function ng(Ud,Yd){var gf=-1,Pf=Ud.length,nh=Pf-1;for(Yd=Yd===ed?Pf:Yd;++gf<Yd;){var dh=G1(gf,nh),Rh=Ud[dh];Ud[dh]=Ud[gf],Ud[gf]=Rh}return Ud.length=Yd,Ud}var W_=$h(function(Ud){var Yd=[];return Ud.charCodeAt(0)===46&&Yd.push(""),Ud.replace(Y_,function(gf,Pf,nh,dh){Yd.push(nh?dh.replace(Zf,"$1"):Pf||gf)}),Yd});function Z_(Ud){if(typeof Ud=="string"||w0(Ud))return Ud;var Yd=Ud+"";return Yd=="0"&&1/Ud==-Tf?"-0":Yd}function sg(Ud){if(Ud!=null){try{return lv.call(Ud)}catch{}try{return Ud+""}catch{}}return""}function og(Ud,Yd){return Hg(Bf,function(gf){var Pf="_."+gf[0];Yd&gf[1]&&!nv(Ud,Pf)&&Ud.push(Pf)}),Ud.sort()}function kg(Ud){if(Ud instanceof s_)return Ud.clone();var Yd=new M_(Ud.__wrapped__,Ud.__chain__);return Yd.__actions__=Gg(Ud.__actions__),Yd.__index__=Ud.__index__,Yd.__values__=Ud.__values__,Yd}function Ag(Ud,Yd,gf){(gf?zd(Ud,Yd,gf):Yd===ed)?Yd=1:Yd=K_(__(Yd),0);var Pf=Ud==null?0:Ud.length;if(!Pf||Yd<1)return[];for(var nh=0,dh=0,Rh=Kh(Gv(Pf/Yd));nh<Pf;)Rh[dh++]=vg(Ud,nh,nh+=Yd);return Rh}function pg(Ud){for(var Yd=-1,gf=Ud==null?0:Ud.length,Pf=0,nh=[];++Yd<gf;){var dh=Ud[Yd];dh&&(nh[Pf++]=dh)}return nh}function lg(){var Ud=arguments.length;if(!Ud)return[];for(var Yd=Kh(Ud-1),gf=arguments[0],Pf=Ud;Pf--;)Yd[Pf-1]=arguments[Pf];return m0(h_(gf)?Gg(gf):[gf],bg(Yd,1))}var eg=m_(function(Ud,Yd){return Tg(Ud)?Kv(Ud,bg(Yd,1,Tg,!0)):[]}),Lg=m_(function(Ud,Yd){var gf=U0(Yd);return Tg(gf)&&(gf=ed),Tg(Ud)?Kv(Ud,bg(Yd,1,Tg,!0
`;Ud.replace(zm,function(l_,E_,w_,N0,Kg,D0){return w_||(w_=N0),Tm+=Ud.slice(mm,D0).replace(gm,Ib),E_&&(Mh=!0,Tm+=`' +
__e(`+E_+`) +
'`),Kg&&(Gh=!0,Tm+=`';
`+Kg+`;
__p += '`),w_&&(Tm+=`' +
((__t = (`+w_+`)) == null ? '' : __t) +
'`),mm=D0+l_.length,l_}),Tm+=`';
`;var o_=R_.call(Yd,"variable")&&Yd.variable;if(!o_)Tm=`with (obj) {
`+Tm+`
}
`;else if(oh.test(o_))throw new d_(ld);Tm=(Gh?Tm.replace(hm,""):Tm).replace(im,"$1").replace(Fm,"$1;"),Tm="function("+(o_||"obj")+`) {
`+(o_?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Mh?", __e = _.escape":"")+(Gh?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Tm+`return __p
}`;var b_=X2(function(){return C_(dh,t_+"return "+Tm).apply(ed,Rh)});if(b_.source=Tm,o2(b_))throw b_;return b_}function mA(Ud){return U_(Ud).toLowerCase()}function _A(Ud){return U_(Ud).toUpperCase()}function gA(Ud,Yd,gf){if(Ud=U_(Ud),Ud&&(gf||Yd===ed))return Wm(Ud);if(!Ud||!(Yd=Wg(Yd)))return Ud;var Pf=_0(Ud),nh=_0(Yd),dh=D_(Pf,nh),Rh=_g(Pf,nh)+1;return Z0(Pf,dh,Rh).join("")}function bA(Ud,Yd,gf){if(Ud=U_(Ud),Ud&&(gf||Yd===ed))return Ud.slice(0,Ry(Ud)+1);if(!Ud||!(Yd=Wg(Yd)))return Ud;var Pf=_0(Ud),nh=_g(Pf,_0(Yd))+1;return Z0(Pf,0,nh).join("")}function vA(Ud,Yd,gf){if(Ud=U_(Ud),Ud&&(gf||Yd===ed))return Ud.replace(N_,"");if(!Ud||!(Yd=Wg(Yd)))return Ud;var Pf=_0(Ud),nh=D_(Pf,_0(Yd));return Z0(Pf,nh).join("")}function yA(Ud,Yd){var gf=Kd,Pf=Xd;if(ug(Yd)){var nh="separator"in Yd?Yd.separator:nh;gf="length"in Yd?__(Yd.length):gf,Pf="omission"in Yd?Wg(Yd.omission):Pf}Ud=U_(Ud);var dh=Ud.length;if(sv(Ud)){var Rh=_0(Ud);dh=Rh.length}if(gf>=dh)return Ud;var Mh=gf-ov(Pf);if(Mh<1)return Pf;var Gh=Rh?Z0(Rh,0,Mh).join(""):Ud.slice(0,Mh);if(nh===ed)return Gh+Pf;if(Rh&&(Mh+=Gh.length-Mh),l2(nh)){if(Ud.slice(Mh).search(nh)){var mm,_m=Gh;for(nh.global||(nh=Hv(nh.source,U_(bh.exec(nh))+"g")),nh.lastIndex=0;mm=nh.exec(_m);)var Tm=mm.index;Gh=Gh.slice(0,Tm===ed?Mh:Tm)}}else if(Ud.indexOf(Wg(nh),Mh)!=Mh){var zm=Gh.lastIndexOf(nh);zm>-1&&(Gh=Gh.slice(0,zm))}return Gh+Pf}function EA(Ud){return Ud=U_(Ud),Ud&&Qm.test(Ud)?Ud.replace(Dm,NE):Ud}var TA=Nv(function(Ud,Yd,gf){return Ud+(gf?" ":"")+Yd.toUpperCase()}),d2=dT("toUpperCase");function K2(Ud,Yd,gf){return Ud=U_(Ud),Yd=gf?ed:Yd,Yd===ed?CE(Ud)?IE(Ud):Dy(Ud):Ud.match(Yd)||[]}var X2=m_(function(Ud,Yd){try{return Pg(Ud,ed,Yd)}catch(gf){return o2(gf)?gf:new d_(gf)}}),SA=L0(function(Ud,Yd){return Hg(Yd,function(gf){gf=Z_(gf),Q0(Ud,gf,a2(Ud[gf],Ud))}),Ud});function xA(Ud){var Yd=Ud==null?0:Ud.length,gf=a_();return Ud=Yd?V_(Ud,function(Pf){if(typeof Pf[1]!="function")throw new i0(od);return[gf(Pf[0]),Pf[1]]}):[],m_(function(Pf){for(var nh=-1;++nh<Yd;){var dh=Ud[nh];if(Pg(dh[0],this,Pf))return Pg(dh[1],this,Pf)}})}function CA(Ud){return HT(zg(Ud,_d))}function p2(Ud){return function(){return Ud}}function AA(Ud,Yd){return Ud==null||Ud!==Ud?Yd:Ud}var wA=pT(),NA=pT(!0);function c0(Ud){return Ud}function f2(Ud){return yv(typeof Ud=="function"?Ud:zg(Ud,_d))}function DA(Ud){return ZE(zg(Ud,_d))}function IA(Ud,Yd){return lE(Ud,zg(Yd,_d))}var OA=m_(function(Ud,Yd){return function(gf){return bv(gf,Ud,Yd)}}),RA=m_(function(Ud,Yd){return function(gf){return bv(Ud,gf,Yd)}});function h2(Ud,Yd,gf){var Pf=Bg(Yd),nh=U1(Yd,Pf);gf==null&&!(ug(Yd)&&(nh.length||!Pf.length))&&(gf=Yd,Yd=Ud,Ud=this,nh=U1(Yd,Bg(Yd)));var dh=!(ug(gf)&&"chain"in gf)||!!gf.chain,Rh=Kb(Ud);return Hg(nh,function(Mh){var Gh=Yd[Mh];Ud[Mh]=Gh,Rh&&(Ud.prototype[Mh]=function(){var mm=this.__chain__;if(dh||mm){var _m=Ud(this.__wrapped__),Tm=_m.__actions__=Gg(this.__actions__);return Tm.push({func:Gh,args:arguments,thisArg:Ud}),_m.__chain__=mm,_m}return Gh.apply(Ud,m0([this.value()],arguments))})}),Ud}function kA(){return k_._===this&&(k_._=$g),this}function m2(){}function MA(Ud){return Ud=__(Ud),m_(function(Yd){return Tv(Yd,Ud)})}var BA=Y1(V_),PA=Y1(Nb),$A=Y1(sb);function Q2(Ud){return Jd(Ud)?ih(Z_(Ud)):qT(Ud)}function LA(Ud){return function(Yd){return Ud==null?ed:hb(Ud,Yd)}}var FA=Yb(),jA=Yb(!0);function _2(){return[]}function g2(){return!1}function UA(){return{}}function HA(){return""}function GA(){return!0}function qA(Ud,Yd){if(Ud=__(Ud),Ud<1||Ud>kf)return[];var gf=Gf,Pf=dg(Ud,Gf);Yd=a_(Yd),Ud-=Gf;for(var nh=Mm(Pf,Yd);++gf<Ud;)Yd(gf);return nh}function VA(Ud){return h_(Ud)?V_(Ud,Z_):w0(Ud)?[Ud]:Gg(W_(U_(Ud)))}function zA(Ud){var Yd=++OE;return U_(Ud)+Yd}var WA=Dv(function(Ud,Yd){return Ud+Yd},0),YA=bE("ceil"),KA=Dv(function(Ud,Yd){return Ud/Yd},1),XA=bE("floor");function QA(Ud){return Ud&&Ud.length?F1(Ud,c0,H1):ed}function JA(Ud,Yd){return Ud&&Ud.length?F1(Ud,a_(Yd,2),H1):ed}function ZA(Ud){return qf(Ud,c0)}function ew(Ud,Yd){return qf(Ud,a_(Yd,2))}function tw(Ud){return Ud&&Ud.length?F1(Ud,c0,Vb):ed}function rw(Ud,Yd){return Ud&&Ud.length?F1(Ud,a_
`:"")),ed&&ed()}function sd(od){return od.interrupt?(od.interrupt.append=Ra,od.interrupt.end=rd,od.interrupt=!1,Ra(!0),!0):!1}if(Ra(!1,qa.indents+(qa.name?"<"+qa.name:"")+(qa.attributes.length?" "+qa.attributes.join(" "):"")+(td?qa.name?">":"":qa.name?"/>":"")+(qa.indent&&td>1?`
`:"")),!td)return Ra(!1,qa.indent?`
`:"");sd(qa)||rd()}function attribute(Ra,qa){return Ra+'="'+escapeForXML(qa)+'"'}xml$2.exports=xml$1;xml$2.exports.element=xml$2.exports.Element=element;var xmlExports=xml$2.exports;const Xml=getDefaultExportFromCjs(xmlExports);var xml2js={},defaults$1={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults$1.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal)),defaults$1}var builder={},lib$2={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var Ra,qa,ed,td,rd,sd,od,ld=[].slice,ud={}.hasOwnProperty;Ra=function(){var cd,dd,_d,Ed,Ad,Td;if(Td=arguments[0],Ad=2<=arguments.length?ld.call(arguments,1):[],rd(Object.assign))Object.assign.apply(null,arguments);else for(cd=0,_d=Ad.length;cd<_d;cd++)if(Ed=Ad[cd],Ed!=null)for(dd in Ed)ud.call(Ed,dd)&&(Td[dd]=Ed[dd]);return Td},rd=function(cd){return!!cd&&Object.prototype.toString.call(cd)==="[object Function]"},sd=function(cd){var dd;return!!cd&&((dd=typeof cd)=="function"||dd==="object")},ed=function(cd){return rd(Array.isArray)?Array.isArray(cd):Object.prototype.toString.call(cd)==="[object Array]"},td=function(cd){var dd;if(ed(cd))return!cd.length;for(dd in cd)if(ud.call(cd,dd))return!1;return!0},od=function(cd){var dd,_d;return sd(cd)&&(_d=Object.getPrototypeOf(cd))&&(dd=_d.constructor)&&typeof dd=="function"&&dd instanceof dd&&Function.prototype.toString.call(dd)===Function.prototype.toString.call(Object)},qa=function(cd){return rd(cd.valueOf)?cd.valueOf():cd},Utility.assign=Ra,Utility.isFunction=rd,Utility.isObject=sd,Utility.isArray=ed,Utility.isEmpty=td,Utility.isPlainObject=od,Utility.getValue=qa}).call(commonjsGlobal)),Utility}var XMLDOMImplementation={exports:{}},hasRequiredXMLDOMImplementation;function requireXMLDOMImplementation(){return hasRequiredXMLDOMImplementation||(hasRequiredXMLDOMImplementation=1,(function(){XMLDOMImplementation.exports=function(){function Ra(){}return Ra.prototype.hasFeature=function(qa,ed){return!0},Ra.prototype.createDocumentType=function(qa,ed,td){throw new Error("This DOM method is not implemented.")},Ra.prototype.createDocument=function(qa,ed,td){throw new Error("This DOM method is not implemented.")},Ra.prototype.createHTMLDocument=function(qa){throw new Error("This DOM method is not implemented.")},Ra.prototype.getFeature=function(qa,ed){throw new Error("This DOM method is not implemented.")},Ra}()}).call(commonjsGlobal)),XMLDOMImplementation.exports}var XMLDocument={exports:{}},XMLDOMConfiguration={exports:{}},XMLDOMErrorHandler={exports:{}},hasRequiredXMLDOMErrorHandler;function requireXMLDOMErrorHandler(){return hasRequiredXMLDOMErrorHandler||(hasRequiredXMLDOMErrorHandler=1,(function(){XMLDOMErrorHandler.exports=function(){function Ra(){}return Ra.prototype.handleError=function(qa){throw new Error(qa)},Ra}()}).call(commonjsGlobal)),XMLDOMErrorHandler.exports}var XMLDOMStringList={exports:{}},hasRequiredXMLDOMStringList;function requireXMLDOMStringList(){return hasRequiredXMLDOMStringList||(hasRequiredXMLDOMStringList=1,(function(){XMLDOMStringList.exports=function(){function Ra(qa){this.arr=qa||[]}return Object.defineProperty(Ra.prototype,"length",{get:function(){return this.arr.length}}),Ra.prototype.item=function(qa){return this.arr[qa]||null},Ra.prototype.contains=function(qa){return this.arr.indexOf(qa)!==-1},Ra}()}).call(commonjsGlobal)),XMLDOMStringList.exports}var hasRequiredXMLDOMConfiguration;function requireXMLDOMConfiguration(){return hasRequiredXMLDOMConfiguration||(hasRequiredXMLDOMConfiguration=1,(function(){var Ra,qa;Ra=requireXMLDOMErrorHandler(),qa=requireXMLDOMStringList(),XMLDOMConfiguration.exports=function(){function ed(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Ra,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(ed.prototype,"parameterNames",{get:function(){return new qa(Object.keys(this.defaultParams))}}),ed.prototype.getParameter=function(td){return this.params.hasOwnProperty(td)?this.params[td]:null},ed.prototype.canSetParameter=function(td,rd){return!0},ed.prototype.setParameter=fu
`,od.offset=(cd=sd.offset)!=null?cd:0,od.dontPrettyTextNodes=(dd=(_d=sd.dontPrettyTextNodes)!=null?_d:sd.dontprettytextnodes)!=null?dd:0,od.spaceBeforeSlash=(Ed=(Ad=sd.spaceBeforeSlash)!=null?Ad:sd.spacebeforeslash)!=null?Ed:"",od.spaceBeforeSlash===!0&&(od.spaceBeforeSlash=" "),od.suppressPrettyCount=0,od.user={},od.state=qa.None,od},rd.prototype.indent=function(sd,od,ld){var ud;return!od.pretty||od.suppressPrettyCount?"":od.pretty&&(ud=(ld||0)+od.offset+1,ud>0)?new Array(ud).join(od.indent):""},rd.prototype.endline=function(sd,od,ld){return!od.pretty||od.suppressPrettyCount?"":od.newline},rd.prototype.attribute=function(sd,od,ld){var ud;return this.openAttribute(sd,od,ld),ud=" "+sd.name+'="'+sd.value+'"',this.closeAttribute(sd,od,ld),ud},rd.prototype.cdata=function(sd,od,ld){var ud;return this.openNode(sd,od,ld),od.state=qa.OpenTag,ud=this.indent(sd,od,ld)+"<![CDATA[",od.state=qa.InsideTag,ud+=sd.value,od.state=qa.CloseTag,ud+="]]>"+this.endline(sd,od,ld),od.state=qa.None,this.closeNode(sd,od,ld),ud},rd.prototype.comment=function(sd,od,ld){var ud;return this.openNode(sd,od,ld),od.state=qa.OpenTag,ud=this.indent(sd,od,ld)+"<!-- ",od.state=qa.InsideTag,ud+=sd.value,od.state=qa.CloseTag,ud+=" -->"+this.endline(sd,od,ld),od.state=qa.None,this.closeNode(sd,od,ld),ud},rd.prototype.declaration=function(sd,od,ld){var ud;return this.openNode(sd,od,ld),od.state=qa.OpenTag,ud=this.indent(sd,od,ld)+"<?xml",od.state=qa.InsideTag,ud+=' version="'+sd.version+'"',sd.encoding!=null&&(ud+=' encoding="'+sd.encoding+'"'),sd.standalone!=null&&(ud+=' standalone="'+sd.standalone+'"'),od.state=qa.CloseTag,ud+=od.spaceBeforeSlash+"?>",ud+=this.endline(sd,od,ld),od.state=qa.None,this.closeNode(sd,od,ld),ud},rd.prototype.docType=function(sd,od,ld){var ud,cd,dd,_d,Ed;if(ld||(ld=0),this.openNode(sd,od,ld),od.state=qa.OpenTag,_d=this.indent(sd,od,ld),_d+="<!DOCTYPE "+sd.root().name,sd.pubID&&sd.sysID?_d+=' PUBLIC "'+sd.pubID+'" "'+sd.sysID+'"':sd.sysID&&(_d+=' SYSTEM "'+sd.sysID+'"'),sd.children.length>0){for(_d+=" [",_d+=this.endline(sd,od,ld),od.state=qa.InsideTag,Ed=sd.children,cd=0,dd=Ed.length;cd<dd;cd++)ud=Ed[cd],_d+=this.writeChildNode(ud,od,ld+1);od.state=qa.CloseTag,_d+="]"}return od.state=qa.CloseTag,_d+=od.spaceBeforeSlash+">",_d+=this.endline(sd,od,ld),od.state=qa.None,this.closeNode(sd,od,ld),_d},rd.prototype.element=function(sd,od,ld){var ud,cd,dd,_d,Ed,Ad,Td,Id,Bd,Rd,Od,Md,Ld,Fd;ld||(ld=0),Rd=!1,Od="",this.openNode(sd,od,ld),od.state=qa.OpenTag,Od+=this.indent(sd,od,ld)+"<"+sd.name,Md=sd.attribs;for(Bd in Md)td.call(Md,Bd)&&(ud=Md[Bd],Od+=this.attribute(ud,od,ld));if(dd=sd.children.length,_d=dd===0?null:sd.children[0],dd===0||sd.children.every(function(jd){return(jd.type===Ra.Text||jd.type===Ra.Raw)&&jd.value===""}))od.allowEmpty?(Od+=">",od.state=qa.CloseTag,Od+="</"+sd.name+">"+this.endline(sd,od,ld)):(od.state=qa.CloseTag,Od+=od.spaceBeforeSlash+"/>"+this.endline(sd,od,ld));else if(od.pretty&&dd===1&&(_d.type===Ra.Text||_d.type===Ra.Raw)&&_d.value!=null)Od+=">",od.state=qa.InsideTag,od.suppressPrettyCount++,Rd=!0,Od+=this.writeChildNode(_d,od,ld+1),od.suppressPrettyCount--,Rd=!1,od.state=qa.CloseTag,Od+="</"+sd.name+">"+this.endline(sd,od,ld);else{if(od.dontPrettyTextNodes){for(Ld=sd.children,Ed=0,Td=Ld.length;Ed<Td;Ed++)if(cd=Ld[Ed],(cd.type===Ra.Text||cd.type===Ra.Raw)&&cd.value!=null){od.suppressPrettyCount++,Rd=!0;break}}for(Od+=">"+this.endline(sd,od,ld),od.state=qa.InsideTag,Fd=sd.children,Ad=0,Id=Fd.length;Ad<Id;Ad++)cd=Fd[Ad],Od+=this.writeChildNode(cd,od,ld+1);od.state=qa.CloseTag,Od+=this.indent(sd,od,ld)+"</"+sd.name+">",Rd&&od.suppressPrettyCount--,Od+=this.endline(sd,od,ld),od.state=qa.None}return this.closeNode(sd,od,ld),Od},rd.prototype.writeChildNode=function(sd,od,ld){switch(sd.type){case Ra.CData:return this.cdata(sd,od,ld);case Ra.Comment:return this.comment(sd,od,ld);case Ra.Element:return this.element(sd,od,ld);case Ra.Raw:return this.raw(sd,od,ld);case Ra.Text:return this.text(sd,od,ld);case Ra.ProcessingInstruction:return this.processingInstruction(sd,od,ld);case Ra.Dummy:return"";case Ra.Declaration:return
`||yf==="\r"||yf===" "}function Fd(yf){return yf==='"'||yf==="'"}function jd(yf){return yf===">"||Ld(yf)}function Vd(yf,hf){return yf.test(hf)}function Qd(yf,hf){return!Vd(yf,hf)}var qd=0;qa.STATE={BEGIN:qd++,BEGIN_WHITESPACE:qd++,TEXT:qd++,TEXT_ENTITY:qd++,OPEN_WAKA:qd++,SGML_DECL:qd++,SGML_DECL_QUOTED:qd++,DOCTYPE:qd++,DOCTYPE_QUOTED:qd++,DOCTYPE_DTD:qd++,DOCTYPE_DTD_QUOTED:qd++,COMMENT_STARTING:qd++,COMMENT:qd++,COMMENT_ENDING:qd++,COMMENT_ENDED:qd++,CDATA:qd++,CDATA_ENDING:qd++,CDATA_ENDING_2:qd++,PROC_INST:qd++,PROC_INST_BODY:qd++,PROC_INST_ENDING:qd++,OPEN_TAG:qd++,OPEN_TAG_SLASH:qd++,ATTRIB:qd++,ATTRIB_NAME:qd++,ATTRIB_NAME_SAW_WHITE:qd++,ATTRIB_VALUE:qd++,ATTRIB_VALUE_QUOTED:qd++,ATTRIB_VALUE_CLOSED:qd++,ATTRIB_VALUE_UNQUOTED:qd++,ATTRIB_VALUE_ENTITY_Q:qd++,ATTRIB_VALUE_ENTITY_U:qd++,CLOSE_TAG:qd++,CLOSE_TAG_SAW_WHITE:qd++,SCRIPT:qd++,SCRIPT_ENDING:qd++},qa.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},qa.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(qa.ENTITIES).forEach(function(yf){var hf=qa.ENTITIES[yf],Rf=typeof hf=="number"?String.fromCharCode(hf):hf;qa.ENTITIES[yf]=Rf});for(var Kd in qa.STATE)qa.STATE[qa.STATE[Kd]]=Kd;qd=qa.STATE;function Xd(yf,hf,Rf){yf[hf]&&yf[hf](Rf)}function df(yf,hf,Rf){yf.textNode&&mf(yf),Xd(yf,hf,Rf)}function mf(yf){yf.textNode=bf(yf.opt,yf.textNode),yf.textNode&&Xd(yf,"ontext",yf.textNode),yf.textNode=""}function bf(yf,hf){return yf.trim&&(hf=hf.trim()),yf.normalize&&(hf=hf.replace(/\s+/g," ")),hf}function pf(yf,hf){return mf(yf),yf.trackPosition&&(hf+=`
Line: `+yf.line+`
Column: `+yf.column+`
Char: `+yf.c),hf=new Error(hf),yf.error=hf,Xd(yf,"onerror",hf),yf}function _f(yf){return yf.sawRoot&&!yf.closedRoot&&Tf(yf,"Unclosed root tag"),yf.state!==qd.BEGIN&&yf.state!==qd.BEGIN_WHITESPACE&&yf.state!==qd.TEXT&&pf(yf,"Unexpected end"),mf(yf),yf.c="",yf.closed=!0,Xd(yf,"onend"),td.call(yf,yf.strict,yf.opt),yf}function Tf(yf,hf){if(typeof yf!="object"||!(yf instanceof td))throw new Error("bad call to strictFail");yf.strict&&pf(yf,hf)}function kf(yf){yf.strict||(yf.tagName=yf.tagName[yf.looseCase]());var hf=yf.tags[yf.tags.length-1]||yf,Rf=yf.tag={name:yf.tagName,attributes:{}};yf.opt.xmlns&&(Rf.ns=hf.ns),yf.attribList.length=0,df(yf,"onopentagstart",Rf)}function zf(yf,hf){var Rf=yf.indexOf(":"),jf=Rf<0?["",yf]:yf.split(":"),Kf=jf[0],Ff=jf[1];return hf&&yf==="xmlns"&&(Kf="xmlns",Ff=""),{prefix:Kf,local:Ff}}function Jf(yf){if(yf.strict||(yf.attribName=yf.attribName[yf.looseCase]()),yf.attribList.indexOf(yf.attribName)!==-1||yf.tag.attributes.hasOwnProperty(yf.attribName)){yf.attribName=yf.attribValue="";return}if(yf.opt.xmlns){var hf=zf(yf.attribName,!0),Rf=hf.prefix,jf=hf.local;if(Rf==="xmlns")if(jf==="xml"&&yf.attribValue!==Ad)Tf(yf,"xml: prefix must be bound to "+Ad+`
Actual: `+yf.attribValue);else if(jf==="xmlns"&&yf.attribValue!==Td)Tf(yf,"xmlns: prefix must be bound to "+Td+`
Actual: `+yf.attribValue);else{var Kf=yf.tag,Ff=yf.tags[yf.tags.length-1]||yf;Kf.ns===Ff.ns&&(Kf.ns=Object.create(Ff.ns)),Kf.ns[jf]=yf.attribValue}yf.attribList.push([yf.attribName,yf.attribValue])}else yf.tag.attributes[yf.attribName]=yf.attribValue,df(yf,"onattribute",{name:yf.attribName,value:yf.attribValue});yf.attribName=yf.attribValue=""}function Gf(yf,hf){if(yf.opt.xmlns){var Rf=yf.tag,jf=zf(yf.tagName);Rf.prefix=jf.prefix,Rf.local=jf.local,Rf.uri=Rf.ns[jf.prefix]||"",Rf.prefix&&!Rf.uri&&(Tf(yf,"Unbound namespace prefix: "+JSON.stringify(yf.tagName)),Rf.uri=jf.prefix);var Kf=yf.tags[yf.tags.length-1]||yf;Rf.ns&&Kf.ns!==Rf.ns&&Object.keys(Rf.ns).forEach(function(rh){df(yf,"onopennamespace",{prefix:rh,uri:Rf.ns[rh]})});for(var Ff=0,wf=yf.attribList.length;Ff<wf;Ff++){var Yf=yf.attribList[Ff],uh=Yf[0],Uf=Yf[1],Cf=zf(uh,!0),If=Cf.prefix,Lf=Cf.local,sh=If===""?"":Rf.ns[If]||"",hh={name:uh,value:Uf,prefix:If,local:Lf,uri:sh};If&&If!=="xmlns"&&!sh&&(Tf(yf,"Unbound namespace prefix: "+JSON.stringify(If)),hh.uri=If),yf.tag.attributes[uh]=hh,df(yf,"onattribute",hh)}yf.attribList.length=0}yf.tag.isSelfClosing=!!hf,yf.sawRoot=!0,yf.tags.push(yf.tag),df(yf,"onopentag",yf.tag),hf||(!yf.noscript&&yf.tagName.toLowerCase()==="script"?yf.state=qd.SCRIPT:yf.state=qd.TEXT,yf.tag=null,yf.tagName=""),yf.attribName=yf.attribValue="",yf.attribList.length=0}function Mf(yf){if(!yf.tagName){Tf(yf,"Weird empty close tag."),yf.textNode+="</>",yf.state=qd.TEXT;return}if(yf.script){if(yf.tagName!=="script"){yf.script+="</"+yf.tagName+">",yf.tagName="",yf.state=qd.SCRIPT;return}df(yf,"onscript",yf.script),yf.script=""}var hf=yf.tags.length,Rf=yf.tagName;yf.strict||(Rf=Rf[yf.looseCase]());for(var jf=Rf;hf--;){var Kf=yf.tags[hf];if(Kf.name!==jf)Tf(yf,"Unexpected close tag");else break}if(hf<0){Tf(yf,"Unmatched closing tag: "+yf.tagName),yf.textNode+="</"+yf.tagName+">",yf.state=qd.TEXT;return}yf.tagName=Rf;for(var Ff=yf.tags.length;Ff-- >hf;){var wf=yf.tag=yf.tags.pop();yf.tagName=yf.tag.name,df(yf,"onclosetag",yf.tagName);var Yf={};for(var uh in wf.ns)Yf[uh]=wf.ns[uh];var Uf=yf.tags[yf.tags.length-1]||yf;yf.opt.xmlns&&wf.ns!==Uf.ns&&Object.keys(wf.ns).forEach(function(Cf){var If=wf.ns[Cf];df(yf,"onclosenamespace",{prefix:Cf,uri:If})})}hf===0&&(yf.closedRoot=!0),yf.tagName=yf.attribValue=yf.attribName="",yf.attribList.length=0,yf.state=qd.TEXT}function Nf(yf){var hf=yf.entity,Rf=hf.toLowerCase(),jf,Kf="";return yf.ENTITIES[hf]?yf.ENTITIES[hf]:yf.ENTITIES[Rf]?yf.ENTITIES[Rf]:(hf=Rf,hf.charAt(0)==="#"&&(hf.charAt(1)==="x"?(hf=hf.slice(2),jf=parseInt(hf,16),Kf=jf.toString(16)):(hf=hf.slice(1),jf=parseInt(hf,10),Kf=jf.toString(10))),hf=hf.replace(/^0+/,""),isNaN(jf)||Kf.toLowerCase()!==hf?(Tf(yf,"Invalid character entity"),"&"+yf.entity+";"):String.fromCodePoint(jf))}function Bf(yf,hf){hf==="<"?(yf.state=qd.OPEN_WAKA,yf.startTagPosition=yf.position):Ld(hf)||(Tf(yf,"Non-whitespace before first tag."),yf.textNode=hf,yf.state=qd.TEXT)}function Qf(yf,hf){var Rf="";return hf<yf.length&&(Rf=yf.charAt(hf)),Rf}function Wf(yf){var hf=this;if(this.error)throw this.error;if(hf.closed)return pf(hf,"Cannot write after close. Assign an onready handler.");if(yf===null)return _f(hf);typeof yf=="object"&&(yf=yf.toString());for(var Rf=0,jf="";jf=Qf(yf,Rf++),hf.c=jf,!!jf;)switch(hf.trackPosition&&(hf.position++,jf===`
`?(hf.line++,hf.column=0):hf.column++),hf.state){case qd.BEGIN:if(hf.state=qd.BEGIN_WHITESPACE,jf==="\uFEFF")continue;Bf(hf,jf);continue;case qd.BEGIN_WHITESPACE:Bf(hf,jf);continue;case qd.TEXT:if(hf.sawRoot&&!hf.closedRoot){for(var Kf=Rf-1;jf&&jf!=="<"&&jf!=="&";)jf=Qf(yf,Rf++),jf&&hf.trackPosition&&(hf.position++,jf===`
`?(hf.line++,hf.column=0):hf.column++);hf.textNode+=yf.substring(Kf,Rf-1)}jf==="<"&&!(hf.sawRoot&&hf.closedRoot&&!hf.strict)?(hf.state=qd.OPEN_WAKA,hf.startTagPosition=hf.position):(!Ld(jf)&&(!hf.sawRoot||hf.closedRoot)&&Tf(hf,"Text data outside of root node."),jf==="&"?hf.state=qd.TEXT_ENTITY:hf.textNode+=jf);continue;case qd.SCRIPT:jf==="<"?hf.state=qd.SCRIPT_ENDING:hf.script+=jf;continue;case qd.SCRIPT_ENDING:jf==="/"?hf.state=qd.CLOSE_TAG:(hf.script+="<"+jf,hf.state=qd.SCRIPT);continue;case qd.OPEN_WAKA:if(jf==="!")hf.state=qd.SGML_DECL,hf.sgmlDecl="";else if(!Ld(jf))if(Vd(Bd,jf))hf.state=qd.OPEN_TAG,hf.tagName=jf;else if(jf==="/")hf.state=qd.CLOSE_TAG,hf.tagName="";else if(jf==="?")hf.state=qd.PROC_INST,hf.procInstName=hf.procInstBody="";else{if(Tf(hf,"Unencoded <"),hf.startTagPosition+1<hf.position){var Ff=hf.position-hf.startTagPosition;jf=new Array(Ff).join(" ")+jf}hf.textNode+="<"+jf,hf.state=qd.TEXT}continue;case qd.SGML_DECL:if(hf.sgmlDecl+jf==="--"){hf.state=qd.COMMENT,hf.comment="",hf.sgmlDecl="";continue}hf.doctype&&hf.doctype!==!0&&hf.sgmlDecl?(hf.state=qd.DOCTYPE_DTD,hf.doctype+="<!"+hf.sgmlDecl+jf,hf.sgmlDecl=""):(hf.sgmlDecl+jf).toUpperCase()===_d?(df(hf,"onopencdata"),hf.state=qd.CDATA,hf.sgmlDecl="",hf.cdata=""):(hf.sgmlDecl+jf).toUpperCase()===Ed?(hf.state=qd.DOCTYPE,(hf.doctype||hf.sawRoot)&&Tf(hf,"Inappropriately located doctype declaration"),hf.doctype="",hf.sgmlDecl=""):jf===">"?(df(hf,"onsgmldeclaration",hf.sgmlDecl),hf.sgmlDecl="",hf.state=qd.TEXT):(Fd(jf)&&(hf.state=qd.SGML_DECL_QUOTED),hf.sgmlDecl+=jf);continue;case qd.SGML_DECL_QUOTED:jf===hf.q&&(hf.state=qd.SGML_DECL,hf.q=""),hf.sgmlDecl+=jf;continue;case qd.DOCTYPE:jf===">"?(hf.state=qd.TEXT,df(hf,"ondoctype",hf.doctype),hf.doctype=!0):(hf.doctype+=jf,jf==="["?hf.state=qd.DOCTYPE_DTD:Fd(jf)&&(hf.state=qd.DOCTYPE_QUOTED,hf.q=jf));continue;case qd.DOCTYPE_QUOTED:hf.doctype+=jf,jf===hf.q&&(hf.q="",hf.state=qd.DOCTYPE);continue;case qd.DOCTYPE_DTD:jf==="]"?(hf.doctype+=jf,hf.state=qd.DOCTYPE):jf==="<"?(hf.state=qd.OPEN_WAKA,hf.startTagPosition=hf.position):Fd(jf)?(hf.doctype+=jf,hf.state=qd.DOCTYPE_DTD_QUOTED,hf.q=jf):hf.doctype+=jf;continue;case qd.DOCTYPE_DTD_QUOTED:hf.doctype+=jf,jf===hf.q&&(hf.state=qd.DOCTYPE_DTD,hf.q="");continue;case qd.COMMENT:jf==="-"?hf.state=qd.COMMENT_ENDING:hf.comment+=jf;continue;case qd.COMMENT_ENDING:jf==="-"?(hf.state=qd.COMMENT_ENDED,hf.comment=bf(hf.opt,hf.comment),hf.comment&&df(hf,"oncomment",hf.comment),hf.comment=""):(hf.comment+="-"+jf,hf.state=qd.COMMENT);continue;case qd.COMMENT_ENDED:jf!==">"?(Tf(hf,"Malformed comment"),hf.comment+="--"+jf,hf.state=qd.COMMENT):hf.doctype&&hf.doctype!==!0?hf.state=qd.DOCTYPE_DTD:hf.state=qd.TEXT;continue;case qd.CDATA:jf==="]"?hf.state=qd.CDATA_ENDING:hf.cdata+=jf;continue;case qd.CDATA_ENDING:jf==="]"?hf.state=qd.CDATA_ENDING_2:(hf.cdata+="]"+jf,hf.state=qd.CDATA);continue;case qd.CDATA_ENDING_2:jf===">"?(hf.cdata&&df(hf,"oncdata",hf.cdata),df(hf,"onclosecdata"),hf.cdata="",hf.state=qd.TEXT):jf==="]"?hf.cdata+="]":(hf.cdata+="]]"+jf,hf.state=qd.CDATA);continue;case qd.PROC_INST:jf==="?"?hf.state=qd.PROC_INST_ENDING:Ld(jf)?hf.state=qd.PROC_INST_BODY:hf.procInstName+=jf;continue;case qd.PROC_INST_BODY:if(!hf.procInstBody&&Ld(jf))continue;jf==="?"?hf.state=qd.PROC_INST_ENDING:hf.procInstBody+=jf;continue;case qd.PROC_INST_ENDING:jf===">"?(df(hf,"onprocessinginstruction",{name:hf.procInstName,body:hf.procInstBody}),hf.procInstName=hf.procInstBody="",hf.state=qd.TEXT):(hf.procInstBody+="?"+jf,hf.state=qd.PROC_INST_BODY);continue;case qd.OPEN_TAG:Vd(Rd,jf)?hf.tagName+=jf:(kf(hf),jf===">"?Gf(hf):jf==="/"?hf.state=qd.OPEN_TAG_SLASH:(Ld(jf)||Tf(hf,"Invalid character in tag name"),hf.state=qd.ATTRIB));continue;case qd.OPEN_TAG_SLASH:jf===">"?(Gf(hf,!0),Mf(hf)):(Tf(hf,"Forward-slash in opening tag not followed by >"),hf.state=qd.ATTRIB);continue;case qd.ATTRIB:if(Ld(jf))continue;jf===">"?Gf(hf):jf==="/"?hf.state=qd.OPEN_TAG_SLASH:Vd(Bd,jf)?(hf.attribName=jf,hf.attribValue="",hf.state=qd.ATTRIB_NAME):Tf(hf,"Invalid attribute name");continue;case qd.ATTRIB_NAME:jf==="="?hf.state
`&&Ra[sd]!=="\r";sd++)ud+=Ra[sd];if(ud=ud.trim(),ud[ud.length-1]==="/"&&(ud=ud.substring(0,ud.length-1),sd--),!validateTagName(ud)){let _d;return ud.trim().length===0?_d="Invalid space after '<'.":_d="Tag '"+ud+"' is an invalid name.",getErrorObject("InvalidTag",_d,getLineNumberForPosition(Ra,sd))}const cd=readAttributeStr(Ra,sd);if(cd===!1)return getErrorObject("InvalidAttr","Attributes for '"+ud+"' have open quote.",getLineNumberForPosition(Ra,sd));let dd=cd.value;if(sd=cd.index,dd[dd.length-1]==="/"){const _d=sd-dd.length;dd=dd.substring(0,dd.length-1);const Ed=validateAttributeString(dd,qa);if(Ed===!0)td=!0;else return getErrorObject(Ed.err.code,Ed.err.msg,getLineNumberForPosition(Ra,_d+Ed.err.line))}else if(ld)if(cd.tagClosed){if(dd.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+ud+"' can't have attributes or invalid starting.",getLineNumberForPosition(Ra,od));if(ed.length===0)return getErrorObject("InvalidTag","Closing tag '"+ud+"' has not been opened.",getLineNumberForPosition(Ra,od));{const _d=ed.pop();if(ud!==_d.tagName){let Ed=getLineNumberForPosition(Ra,_d.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+_d.tagName+"' (opened in line "+Ed.line+", col "+Ed.col+") instead of closing tag '"+ud+"'.",getLineNumberForPosition(Ra,od))}ed.length==0&&(rd=!0)}}else return getErrorObject("InvalidTag","Closing tag '"+ud+"' doesn't have proper closing.",getLineNumberForPosition(Ra,sd));else{const _d=validateAttributeString(dd,qa);if(_d!==!0)return getErrorObject(_d.err.code,_d.err.msg,getLineNumberForPosition(Ra,sd-dd.length+_d.err.line));if(rd===!0)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(Ra,sd));qa.unpairedTags.indexOf(ud)!==-1||ed.push({tagName:ud,tagStartPos:od}),td=!0}for(sd++;sd<Ra.length;sd++)if(Ra[sd]==="<")if(Ra[sd+1]==="!"){sd++,sd=readCommentAndCDATA(Ra,sd);continue}else if(Ra[sd+1]==="?"){if(sd=readPI(Ra,++sd),sd.err)return sd}else break;else if(Ra[sd]==="&"){const _d=validateAmpersand(Ra,sd);if(_d==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(Ra,sd));sd=_d}else if(rd===!0&&!isWhiteSpace(Ra[sd]))return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(Ra,sd));Ra[sd]==="<"&&sd--}}else{if(isWhiteSpace(Ra[sd]))continue;return getErrorObject("InvalidChar","char '"+Ra[sd]+"' is not expected.",getLineNumberForPosition(Ra,sd))}if(td){if(ed.length==1)return getErrorObject("InvalidTag","Unclosed tag '"+ed[0].tagName+"'.",getLineNumberForPosition(Ra,ed[0].tagStartPos));if(ed.length>0)return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(ed.map(sd=>sd.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return getErrorObject("InvalidXml","Start tag expected.",1);return!0};function isWhiteSpace(Ra){return Ra===" "||Ra===" "||Ra===`
`||Ra==="\r"}function readPI(Ra,qa){const ed=qa;for(;qa<Ra.length;qa++)if(Ra[qa]=="?"||Ra[qa]==" "){const td=Ra.substr(ed,qa-ed);if(qa>5&&td==="xml")return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(Ra,qa));if(Ra[qa]=="?"&&Ra[qa+1]==">"){qa++;break}else continue}return qa}function readCommentAndCDATA(Ra,qa){if(Ra.length>qa+5&&Ra[qa+1]==="-"&&Ra[qa+2]==="-"){for(qa+=3;qa<Ra.length;qa++)if(Ra[qa]==="-"&&Ra[qa+1]==="-"&&Ra[qa+2]===">"){qa+=2;break}}else if(Ra.length>qa+8&&Ra[qa+1]==="D"&&Ra[qa+2]==="O"&&Ra[qa+3]==="C"&&Ra[qa+4]==="T"&&Ra[qa+5]==="Y"&&Ra[qa+6]==="P"&&Ra[qa+7]==="E"){let ed=1;for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="<")ed++;else if(Ra[qa]===">"&&(ed--,ed===0))break}else if(Ra.length>qa+9&&Ra[qa+1]==="["&&Ra[qa+2]==="C"&&Ra[qa+3]==="D"&&Ra[qa+4]==="A"&&Ra[qa+5]==="T"&&Ra[qa+6]==="A"&&Ra[qa+7]==="["){for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="]"&&Ra[qa+1]==="]"&&Ra[qa+2]===">"){qa+=2;break}}return qa}const doubleQuote='"',singleQuote="'";function readAttributeStr(Ra,qa){let ed="",td="",rd=!1;for(;qa<Ra.length;qa++){if(Ra[qa]===doubleQuote||Ra[qa]===singleQuote)td===""?td=Ra[qa]:td!==Ra[qa]||(td="");else if(Ra[qa]===">"&&td===""){rd=!0;break}ed+=Ra[qa]}return td!==""?!1:{value:ed,index:qa,tagClosed:rd}}const validAttrStrRegxp=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString(Ra,qa){const ed=util$3.getAllMatches(Ra,validAttrStrRegxp),td={};for(let rd=0;rd<ed.length;rd++){if(ed[rd][1].length===0)return getErrorObject("InvalidAttr","Attribute '"+ed[rd][2]+"' has no space in starting.",getPositionFromMatch(ed[rd]));if(ed[rd][3]!==void 0&&ed[rd][4]===void 0)return getErrorObject("InvalidAttr","Attribute '"+ed[rd][2]+"' is without value.",getPositionFromMatch(ed[rd]));if(ed[rd][3]===void 0&&!qa.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute '"+ed[rd][2]+"' is not allowed.",getPositionFromMatch(ed[rd]));const sd=ed[rd][2];if(!validateAttrName(sd))return getErrorObject("InvalidAttr","Attribute '"+sd+"' is an invalid name.",getPositionFromMatch(ed[rd]));if(!td.hasOwnProperty(sd))td[sd]=1;else return getErrorObject("InvalidAttr","Attribute '"+sd+"' is repeated.",getPositionFromMatch(ed[rd]))}return!0}function validateNumberAmpersand(Ra,qa){let ed=/\d/;for(Ra[qa]==="x"&&(qa++,ed=/[\da-fA-F]/);qa<Ra.length;qa++){if(Ra[qa]===";")return qa;if(!Ra[qa].match(ed))break}return-1}function validateAmpersand(Ra,qa){if(qa++,Ra[qa]===";")return-1;if(Ra[qa]==="#")return qa++,validateNumberAmpersand(Ra,qa);let ed=0;for(;qa<Ra.length;qa++,ed++)if(!(Ra[qa].match(/\w/)&&ed<20)){if(Ra[qa]===";")break;return-1}return qa}function getErrorObject(Ra,qa,ed){return{err:{code:Ra,msg:qa,line:ed.line||ed,col:ed.col}}}function validateAttrName(Ra){return util$3.isName(Ra)}function validateTagName(Ra){return util$3.isName(Ra)}function getLineNumberForPosition(Ra,qa){const ed=Ra.substring(0,qa).split(/\r?\n/);return{line:ed.length,col:ed[ed.length-1].length+1}}function getPositionFromMatch(Ra){return Ra.startIndex+Ra[1].length}var OptionsBuilder={};const defaultOptions$1={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Ra,qa){return qa},attributeValueProcessor:function(Ra,qa){return qa},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Ra,qa,ed){return Ra}},buildOptions$1=function(Ra){return Object.assign({},defaultOptions$1,Ra)};OptionsBuilder.buildOptions=buildOptions$1;OptionsBuilder.defaultOptions=defaultOptions$1;class XmlNode{constructor(qa){this.tagname=qa,this.child=[],this[":@"]={}}add(qa,ed){qa==="__proto__"&&(qa="#__proto__"),this.child.push({[qa]:ed})}addChild(qa)
`);const qa=new xmlNode("!xml");let ed=qa,td="",rd="";for(let sd=0;sd<Ra.length;sd++)if(Ra[sd]==="<")if(Ra[sd+1]==="/"){const ld=findClosingIndex(Ra,">",sd,"Closing Tag is not closed.");let ud=Ra.substring(sd+2,ld).trim();if(this.options.removeNSPrefix){const _d=ud.indexOf(":");_d!==-1&&(ud=ud.substr(_d+1))}this.options.transformTagName&&(ud=this.options.transformTagName(ud)),ed&&(td=this.saveTextToParentTag(td,ed,rd));const cd=rd.substring(rd.lastIndexOf(".")+1);if(ud&&this.options.unpairedTags.indexOf(ud)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${ud}>`);let dd=0;cd&&this.options.unpairedTags.indexOf(cd)!==-1?(dd=rd.lastIndexOf(".",rd.lastIndexOf(".")-1),this.tagsNodeStack.pop()):dd=rd.lastIndexOf("."),rd=rd.substring(0,dd),ed=this.tagsNodeStack.pop(),td="",sd=ld}else if(Ra[sd+1]==="?"){let ld=readTagExp(Ra,sd,!1,"?>");if(!ld)throw new Error("Pi Tag is not closed.");if(td=this.saveTextToParentTag(td,ed,rd),!(this.options.ignoreDeclaration&&ld.tagName==="?xml"||this.options.ignorePiTags)){const ud=new xmlNode(ld.tagName);ud.add(this.options.textNodeName,""),ld.tagName!==ld.tagExp&&ld.attrExpPresent&&(ud[":@"]=this.buildAttributesMap(ld.tagExp,rd,ld.tagName)),this.addChild(ed,ud,rd)}sd=ld.closeIndex+1}else if(Ra.substr(sd+1,3)==="!--"){const ld=findClosingIndex(Ra,"-->",sd+4,"Comment is not closed.");if(this.options.commentPropName){const ud=Ra.substring(sd+4,ld-2);td=this.saveTextToParentTag(td,ed,rd),ed.add(this.options.commentPropName,[{[this.options.textNodeName]:ud}])}sd=ld}else if(Ra.substr(sd+1,2)==="!D"){const ld=readDocType(Ra,sd);this.docTypeEntities=ld.entities,sd=ld.i}else if(Ra.substr(sd+1,2)==="!["){const ld=findClosingIndex(Ra,"]]>",sd,"CDATA is not closed.")-2,ud=Ra.substring(sd+9,ld);td=this.saveTextToParentTag(td,ed,rd);let cd=this.parseTextData(ud,ed.tagname,rd,!0,!1,!0,!0);cd==null&&(cd=""),this.options.cdataPropName?ed.add(this.options.cdataPropName,[{[this.options.textNodeName]:ud}]):ed.add(this.options.textNodeName,cd),sd=ld+2}else{let ld=readTagExp(Ra,sd,this.options.removeNSPrefix),ud=ld.tagName;const cd=ld.rawTagName;let dd=ld.tagExp,_d=ld.attrExpPresent,Ed=ld.closeIndex;this.options.transformTagName&&(ud=this.options.transformTagName(ud)),ed&&td&&ed.tagname!=="!xml"&&(td=this.saveTextToParentTag(td,ed,rd,!1));const Ad=ed;if(Ad&&this.options.unpairedTags.indexOf(Ad.tagname)!==-1&&(ed=this.tagsNodeStack.pop(),rd=rd.substring(0,rd.lastIndexOf("."))),ud!==qa.tagname&&(rd+=rd?"."+ud:ud),this.isItStopNode(this.options.stopNodes,rd,ud)){let Td="";if(dd.length>0&&dd.lastIndexOf("/")===dd.length-1)ud[ud.length-1]==="/"?(ud=ud.substr(0,ud.length-1),rd=rd.substr(0,rd.length-1),dd=ud):dd=dd.substr(0,dd.length-1),sd=ld.closeIndex;else if(this.options.unpairedTags.indexOf(ud)!==-1)sd=ld.closeIndex;else{const Bd=this.readStopNodeData(Ra,cd,Ed+1);if(!Bd)throw new Error(`Unexpected end of ${cd}`);sd=Bd.i,Td=Bd.tagContent}const Id=new xmlNode(ud);ud!==dd&&_d&&(Id[":@"]=this.buildAttributesMap(dd,rd,ud)),Td&&(Td=this.parseTextData(Td,ud,rd,!0,_d,!0,!0)),rd=rd.substr(0,rd.lastIndexOf(".")),Id.add(this.options.textNodeName,Td),this.addChild(ed,Id,rd)}else{if(dd.length>0&&dd.lastIndexOf("/")===dd.length-1){ud[ud.length-1]==="/"?(ud=ud.substr(0,ud.length-1),rd=rd.substr(0,rd.length-1),dd=ud):dd=dd.substr(0,dd.length-1),this.options.transformTagName&&(ud=this.options.transformTagName(ud));const Td=new xmlNode(ud);ud!==dd&&_d&&(Td[":@"]=this.buildAttributesMap(dd,rd,ud)),this.addChild(ed,Td,rd),rd=rd.substr(0,rd.lastIndexOf("."))}else{const Td=new xmlNode(ud);this.tagsNodeStack.push(ed),ud!==dd&&_d&&(Td[":@"]=this.buildAttributesMap(dd,rd,ud)),this.addChild(ed,Td,rd),ed=Td}td="",sd=Ed}}else td+=Ra[sd];return qa.child};function addChild(Ra,qa,ed){const td=this.options.updateTag(qa.tagname,ed,qa[":@"]);td===!1||(typeof td=="string"&&(qa.tagname=td),Ra.addChild(qa))}const replaceEntitiesValue$1=function(Ra){if(this.options.processEntities){for(let qa in this.docTypeEntities){const ed=this.docTypeEntities[qa];Ra=Ra.replace(ed.regx,ed.val)}for(let qa in this.lastEntities){const ed=this.lastEntit
`;function toXml(Ra,qa){let ed="";return qa.format&&qa.indentBy.length>0&&(ed=EOL),arrToStr(Ra,qa,"",ed)}function arrToStr(Ra,qa,ed,td){let rd="",sd=!1;for(let od=0;od<Ra.length;od++){const ld=Ra[od],ud=propName(ld);if(ud===void 0)continue;let cd="";if(ed.length===0?cd=ud:cd=`${ed}.${ud}`,ud===qa.textNodeName){let Td=ld[ud];isStopNode(cd,qa)||(Td=qa.tagValueProcessor(ud,Td),Td=replaceEntitiesValue(Td,qa)),sd&&(rd+=td),rd+=Td,sd=!1;continue}else if(ud===qa.cdataPropName){sd&&(rd+=td),rd+=`<![CDATA[${ld[ud][0][qa.textNodeName]}]]>`,sd=!1;continue}else if(ud===qa.commentPropName){rd+=td+`<!--${ld[ud][0][qa.textNodeName]}-->`,sd=!0;continue}else if(ud[0]==="?"){const Td=attr_to_str(ld[":@"],qa),Id=ud==="?xml"?"":td;let Bd=ld[ud][0][qa.textNodeName];Bd=Bd.length!==0?" "+Bd:"",rd+=Id+`<${ud}${Bd}${Td}?>`,sd=!0;continue}let dd=td;dd!==""&&(dd+=qa.indentBy);const _d=attr_to_str(ld[":@"],qa),Ed=td+`<${ud}${_d}`,Ad=arrToStr(ld[ud],qa,cd,dd);qa.unpairedTags.indexOf(ud)!==-1?qa.suppressUnpairedNode?rd+=Ed+">":rd+=Ed+"/>":(!Ad||Ad.length===0)&&qa.suppressEmptyNode?rd+=Ed+"/>":Ad&&Ad.endsWith(">")?rd+=Ed+`>${Ad}${td}</${ud}>`:(rd+=Ed+">",Ad&&td!==""&&(Ad.includes("/>")||Ad.includes("</"))?rd+=td+qa.indentBy+Ad+td:rd+=Ad,rd+=`</${ud}>`),sd=!0}return rd}function propName(Ra){const qa=Object.keys(Ra);for(let ed=0;ed<qa.length;ed++){const td=qa[ed];if(Ra.hasOwnProperty(td)&&td!==":@")return td}}function attr_to_str(Ra,qa){let ed="";if(Ra&&!qa.ignoreAttributes)for(let td in Ra){if(!Ra.hasOwnProperty(td))continue;let rd=qa.attributeValueProcessor(td,Ra[td]);rd=replaceEntitiesValue(rd,qa),rd===!0&&qa.suppressBooleanAttributes?ed+=` ${td.substr(qa.attributeNamePrefix.length)}`:ed+=` ${td.substr(qa.attributeNamePrefix.length)}="${rd}"`}return ed}function isStopNode(Ra,qa){Ra=Ra.substr(0,Ra.length-qa.textNodeName.length-1);let ed=Ra.substr(Ra.lastIndexOf(".")+1);for(let td in qa.stopNodes)if(qa.stopNodes[td]===Ra||qa.stopNodes[td]==="*."+ed)return!0;return!1}function replaceEntitiesValue(Ra,qa){if(Ra&&Ra.length>0&&qa.processEntities)for(let ed=0;ed<qa.entities.length;ed++){const td=qa.entities[ed];Ra=Ra.replace(td.regex,td.val)}return Ra}var orderedJs2Xml=toXml;const buildFromOrderedJs=orderedJs2Xml,getIgnoreAttributesFn=ignoreAttributes,defaultOptions={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Ra,qa){return qa},attributeValueProcessor:function(Ra,qa){return qa},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Builder(Ra){this.options=Object.assign({},defaultOptions,Ra),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=getIgnoreAttributesFn(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute),this.processTextOrObjNode=processTextOrObjNode,this.options.format?(this.indentate=indentate,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Builder.prototype.build=function(Ra){return this.options.preserveOrder?buildFromOrderedJs(Ra,this.options):(Array.isArray(Ra)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ra={[this.options.arrayNodeName]:Ra}),this.j2x(Ra,0,[]).val)};Builder.prototype.j2x=function(Ra,qa,ed){let td="",rd="";const sd=ed.join(".");for(let od in Ra)if(Object.prototype.hasOwnProperty.call(Ra,od))if(typeof Ra[od]>"u")this.isAttribute(od)&&(rd+="");else if(Ra[od]===null)this.isAttribute(od)?rd+="":od[0]==="?"?rd+=this.indentate(qa)+"<"+od+"?"+this.tagEndChar:rd+=this.indentate(qa)+"<"+od+"/"+this.tagEndChar;else if(Ra[od]instanceof Date)rd+=this.buildTextValNode(Ra[od],od,"",qa);else if(typeof Ra[od]!="object"){const ld=this.isAttribute(od);if(ld&&!this.ignoreAttributesFn(ld,sd))td+=this.buildAttrPairStr(ld,""+Ra[od]);else if(!ld)if(od===this.options.textNodeName){let ud=this.options.tagValueProcessor(od,""+Ra[od]);rd+=this.replaceEntitiesValue(ud)}else rd+=this.buildTextValNode(Ra[od],od,"",qa)}else if(Array.isArray(Ra[od])){const ld=Ra[od].length;let ud="",cd="";for(let dd=0;dd<ld;dd++){const _d=Ra[od][dd];if(!(typeof _d>"u"))if(_d===null)od[0]==="?"?rd+=this.indentate(qa)+"<"+od+"?"+this.tagEndChar:rd+=this.indentate(qa)+"<"+od+"/"+this.tagEndChar;else if(typeof _d=="object")if(this.options.oneListGroup){const Ed=this.j2x(_d,qa+1,ed.concat(od));ud+=Ed.val,this.options.attributesGroupName&&_d.hasOwnProperty(this.options.attributesGroupName)&&(cd+=Ed.attrStr)}else ud+=this.processTextOrObjNode(_d,od,qa,ed);else if(this.options.oneListGroup){let Ed=this.options.tagValueProcessor(od,_d);Ed=this.replaceEntitiesValue(Ed),ud+=Ed}else ud+=this.buildTextValNode(_d,od,"",qa)}this.options.oneListGroup&&(ud=this.buildObjectNode(ud,od,cd,qa)),rd+=ud}else if(this.options.attributesGroupName&&od===this.options.attributesGroupName){const ld=Object.keys(Ra[od]),ud=ld.length;for(let cd=0;cd<ud;cd++)td+=this.buildAttrPairStr(ld[cd],""+Ra[od][ld[cd]])}else rd+=this.processTextOrObjNode(Ra[od],od,qa,ed);return{attrStr:td,val:rd}};Builder.prototype.buildAttrPairStr=function(Ra,qa){return qa=this.options.attributeValueProcessor(Ra,""+qa),qa=this.replaceEntitiesValue(qa),this.options.suppressBooleanAttributes&&qa==="true"?" "+Ra:" "+Ra+'="'+qa+'"'};function processTextOrObjNode(Ra,qa,ed,td){const rd=this.j2x(Ra,ed+1,td.concat(qa));return Ra[this.options.textNodeName]!==void 0&&Object.keys(Ra).length===1?this.buildTextValNode(Ra[this.options.textNodeName],qa,rd.attrStr,ed):this.buildObjectNode(rd.val,qa,rd.attrStr,ed)}Builder.prototype.buildObjectNode=function(Ra,qa,ed,td){if(Ra==="")return qa[0]==="?"?this.indentate(td)+"<"+qa+ed+"?"+this.tagEndChar:this.indentate(td)+"<"+qa+ed+this.closeTag(qa)+this.tagEndChar;{let rd="</"+qa+this.tagEndChar,sd="";return qa[0]==="?"&&(sd="?",rd=""),(ed||ed==="")&&Ra.indexOf("<")===-1?this.indentate(td)+"<"+qa+ed+sd+">"+Ra+rd:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&sd.length===0?this.indentate(td)+`<!--${Ra}-->`+this.newLine:this.indentate(td)+"<"+qa+ed+sd+this.tagEndChar+Ra+this.indentate(td)+rd}};Builder.prototype.closeTag=function(Ra){let qa="";return this.options.unpairedTags.indexOf(Ra)!==-1?this.options.suppressUnpairedNode||(qa="/"):this.options.suppressEmptyNode?qa="/":qa=`></${Ra}`,qa};Builder.prototype.buildTextValNode=function(Ra,qa,ed,td){if(this.options.cdataPropName!==!1&&qa===this.options.cdataPropName)return this.indentate(td)+`<![CDATA[${Ra}]]>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(td)+`<!--${Ra}-->`+this.newLine;if(qa[0]==="?")return this.indentate(td)+"<"+qa+ed+"?"+this.tagEndChar;{let rd=this.options.tagValueProcessor(qa,Ra);return rd=this.replaceEntitiesValue(rd),rd===""?this.indentate(td)+"<"+qa+ed+this.closeTag(qa)+this.tagEndChar:this.indentate(td)+"<"+qa+ed+">"+rd+"</"+qa+this.tagEndChar}};Builder.prototype.replaceEntitiesValue=function(Ra){if(Ra&&Ra.length>0&&this.options.processEntities)for(let qa=0;qa<this.op
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/var mimeDb=require$$0;/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/(function(Ra){var qa=mimeDb,ed=pathBrowserify.extname,td=/^\s*([^;\s]*)(?:;|\s|$)/,rd=/^text\//i;Ra.charset=sd,Ra.charsets={lookup:sd},Ra.contentType=od,Ra.extension=ld,Ra.extensions=Object.create(null),Ra.lookup=ud,Ra.types=Object.create(null),cd(Ra.extensions,Ra.types);function sd(dd){if(!dd||typeof dd!="string")return!1;var _d=td.exec(dd),Ed=_d&&qa[_d[1].toLowerCase()];return Ed&&Ed.charset?Ed.charset:_d&&rd.test(_d[1])?"UTF-8":!1}function od(dd){if(!dd||typeof dd!="string")return!1;var _d=dd.indexOf("/")===-1?Ra.lookup(dd):dd;if(!_d)return!1;if(_d.indexOf("charset")===-1){var Ed=Ra.charset(_d);Ed&&(_d+="; charset="+Ed.toLowerCase())}return _d}function ld(dd){if(!dd||typeof dd!="string")return!1;var _d=td.exec(dd),Ed=_d&&Ra.extensions[_d[1].toLowerCase()];return!Ed||!Ed.length?!1:Ed[0]}function ud(dd){if(!dd||typeof dd!="string")return!1;var _d=ed("x."+dd).toLowerCase().substr(1);return _d&&Ra.types[_d]||!1}function cd(dd,_d){var Ed=["nginx","apache",void 0,"iana"];Object.keys(qa).forEach(function(Td){var Id=qa[Td],Bd=Id.extensions;if(!(!Bd||!Bd.length)){dd[Td]=Bd;for(var Rd=0;Rd<Bd.length;Rd++){var Od=Bd[Rd];if(_d[Od]){var Md=Ed.indexOf(qa[_d[Od]].source),Ld=Ed.indexOf(Id.source);if(_d[Od]!=="application/octet-stream"&&(Md>Ld||Md===Ld&&_d[Od].substr(0,12)==="application/"))continue}_d[Od]=Td}}})}})(mimeTypes$1);let ENCRYPTION_TYPES=function(Ra){return Ra.SSEC="SSE-C",Ra.KMS="KMS",Ra}({}),RETENTION_MODES=function(Ra){return Ra.GOVERNANCE="GOVERNANCE",Ra.COMPLIANCE="COMPLIANCE",Ra}({}),RETENTION_VALIDITY_UNITS=function(Ra){return Ra.DAYS="Days",Ra.YEARS="Years",Ra}({}),LEGAL_HOLD_STATUS=function(Ra){return Ra.ENABLED="ON",Ra.DISABLED="OFF",Ra}({});const MetaDataHeaderPrefix="x-amz-meta-";function uriEscape(Ra){return Ra.split("").reduce((qa,ed)=>{const td=Buffer$2.from(ed);if(td.length===1&&("A"<=ed&&ed<="Z"||"a"<=ed&&ed<="z"||"0"<=ed&&ed<="9"||ed==="_"||ed==="."||ed==="~"||ed==="-"))return qa=qa+ed,qa;for(const rd of td)qa=qa+"%"+rd.toString(16).toUpperCase();return qa},"")}function uriResourceEscape(Ra){return uriEscape(Ra).replace(/%2F/g,"/")}function getScope(Ra,qa,ed="s3"){return`${makeDateShort(qa)}/${Ra}/${ed}/aws4_request`}function isAmazonEndpoint(Ra){return Ra==="s3.amazonaws.com"||Ra==="s3.cn-north-1.amazonaws.com.cn"}function isVirtualHostStyle(Ra,qa,ed,td){return qa==="https:"&&ed.includes(".")?!1:isAmazonEndpoint(Ra)||!td}function isValidIP(Ra){return ipaddr.isValid(Ra)}function isValidEndpoint(Ra){return isValidDomain(Ra)||isValidIP(Ra)}function isValidDomain(Ra){if(!isString$1(Ra)||Ra.length===0||Ra.length>255||Ra[0]==="-"||Ra.slice(-1)==="-"||Ra[0]==="_"||Ra.slice(-1)==="_"||Ra[0]===".")return!1;const qa="`~!@#$%^&*()+={}[]|\\\"';:><?/";for(const ed of qa)if(Ra.includes(ed))return!1;return!0}function probeContentType(Ra){let qa=mimeTypes$1.lookup(Ra);return qa||(qa="application/octet-stream"),qa}function isValidPort(Ra){return isNumber$1(Ra)?0<=Ra&&Ra<=65535:!1}function isValidBucketName(Ra){return!isString$1(Ra)||Ra.length<3||Ra.length>63||Ra.includes("..")||/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/.test(Ra)?!1:!!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(Ra)}function isValidObjectName(Ra){return isValidPrefix(Ra)?Ra.length!==0:!1}function isValidPrefix(Ra){return!(!isString$1(Ra)||Ra.length>1024)}function isNumber$1(Ra){return typeof Ra=="number"}function isFunction$1(Ra){return typeof Ra=="function"}function isString$1(Ra){return typeof Ra=="string"}function isObject$1(Ra){return typeof Ra=="object"&&Ra!==null}function isReadableStream$1(Ra){return isObject$1(Ra)&&isFunction$1(Ra._read)}function isBoolean$1(Ra){return typeof Ra=="boolean"}function isEmpty(Ra){return _.isEmpty(Ra)}function isEmptyObject(Ra){return Object.values(Ra).filter(qa=>qa!==void 0).length!==0}function isDefined(Ra){return Ra!=null}function isValidDate(Ra){return Ra instanceof Date&&!isNaN(Ra)}function makeDateLong(Ra){Ra=Ra||new Date;const qa=Ra.toISOString();return qa.slice(0,4)+qa.slice(5,7)+qa.slice(8,13)+qa.slice(14,16)+qa.slice(17,19)+"Z"}function makeDateShort(Ra){Ra=Ra||new Date;const qa=Ra.toISOString();return qa.slice(0,4)+qa.sl
`)+`
`,td.join(";").toLowerCase(),rd].join(`
`)}function getCredential(Ra,qa,ed,td="s3"){if(!isString$1(Ra))throw new TypeError('accessKey should be of type "string"');if(!isString$1(qa))throw new TypeError('region should be of type "string"');if(!isObject$1(ed))throw new TypeError('requestDate should be of type "object"');return`${Ra}/${getScope(qa,ed,td)}`}function getSignedHeaders(Ra){if(!isObject$1(Ra))throw new TypeError('request should be of type "object"');const qa=["authorization","content-length","content-type","user-agent"];return Object.keys(Ra).filter(ed=>!qa.includes(ed)).sort()}function getSigningKey(Ra,qa,ed,td="s3"){if(!isObject$1(Ra))throw new TypeError('date should be of type "object"');if(!isString$1(qa))throw new TypeError('region should be of type "string"');if(!isString$1(ed))throw new TypeError('secretKey should be of type "string"');const rd=makeDateShort(Ra);return(void 0)("sha256",(void 0)("sha256",(void 0)("sha256",(void 0)("sha256","AWS4"+ed).update(rd).digest()).update(qa).digest()).update(td).digest()).update("aws4_request").digest()}function getStringToSign(Ra,qa,ed,td="s3"){if(!isString$1(Ra))throw new TypeError('canonicalRequest should be of type "string"');if(!isObject$1(qa))throw new TypeError('requestDate should be of type "object"');if(!isString$1(ed))throw new TypeError('region should be of type "string"');const rd=(void 0)("sha256").update(Ra).digest("hex"),sd=getScope(ed,qa,td);return[signV4Algorithm,makeDateLong(qa),sd,rd].join(`
`)}function postPresignSignatureV4(Ra,qa,ed,td){if(!isString$1(Ra))throw new TypeError('region should be of type "string"');if(!isObject$1(qa))throw new TypeError('date should be of type "object"');if(!isString$1(ed))throw new TypeError('secretKey should be of type "string"');if(!isString$1(td))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(qa,Ra,ed)).update(td).digest("hex").toLowerCase()}function signV4(Ra,qa,ed,td,rd,sd,od="s3"){if(!isObject$1(Ra))throw new TypeError('request should be of type "object"');if(!isString$1(qa))throw new TypeError('accessKey should be of type "string"');if(!isString$1(ed))throw new TypeError('secretKey should be of type "string"');if(!isString$1(td))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for signing");if(!ed)throw new SecretKeyRequiredError("secretKey is required for signing");const ld=getSignedHeaders(Ra.headers),ud=getCanonicalRequest(Ra.method,Ra.path,Ra.headers,ld,sd),cd=od||"s3",dd=getStringToSign(ud,rd,td,cd),_d=getSigningKey(rd,td,ed,cd),Ed=getCredential(qa,td,rd,cd),Ad=(void 0)("sha256",_d).update(dd).digest("hex").toLowerCase();return`${signV4Algorithm} Credential=${Ed}, SignedHeaders=${ld.join(";").toLowerCase()}, Signature=${Ad}`}function presignSignatureV4(Ra,qa,ed,td,rd,sd,od){if(!isObject$1(Ra))throw new TypeError('request should be of type "object"');if(!isString$1(qa))throw new TypeError('accessKey should be of type "string"');if(!isString$1(ed))throw new TypeError('secretKey should be of type "string"');if(!isString$1(rd))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!ed)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber$1(od))throw new TypeError('expires should be of type "number"');if(od<1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if(od>604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const ld=makeDateLong(sd),ud=getSignedHeaders(Ra.headers),cd=getCredential(qa,rd,sd),dd="UNSIGNED-PAYLOAD",_d=[];_d.push(`X-Amz-Algorithm=${signV4Algorithm}`),_d.push(`X-Amz-Credential=${uriEscape(cd)}`),_d.push(`X-Amz-Date=${ld}`),_d.push(`X-Amz-Expires=${od}`),_d.push(`X-Amz-SignedHeaders=${uriEscape(ud.join(";").toLowerCase())}`),td&&_d.push(`X-Amz-Security-Token=${uriEscape(td)}`);const Ed=Ra.path.split("?")[0];let Ad=Ra.path.split("?")[1];Ad?Ad=Ad+"&"+_d.join("&"):Ad=_d.join("&");const Td=Ed+"?"+Ad,Id=getCanonicalRequest(Ra.method,Td,Ra.headers,ud,dd),Bd=getStringToSign(Id,sd,rd),Od=(void 0)("sha256",getSigningKey(sd,rd,ed)).update(Bd).digest("hex").toLowerCase();return Ra.protocol+"//"+Ra.headers.host+Td+`&X-Amz-Signature=${Od}`}async function readAsBuffer(Ra){return new Promise((qa,ed)=>{const td=[];Ra.on("data",rd=>td.push(rd)).on("error",rd=>ed(rd)).on("end",()=>qa(Buffer$2.concat(td)))})}async function readAsString(Ra){return(await readAsBuffer(Ra)).toString()}async function drainResponse(Ra){return new Promise((qa,ed)=>{Ra.on("data",()=>{}).on("error",td=>ed(td)).on("end",()=>qa())})}function parseBucketRegion(Ra){return parseXml(Ra).LocationConstraint}const fxp=new fxp$2.XMLParser;function parseError(Ra,qa){let ed={};const td=fxp.parse(Ra);td.Error&&(ed=td.Error);const rd=new S3Error;return Object.entries(ed).forEach(([sd,od])=>{rd[sd.toLowerCase()]=od}),Object.entries(qa).forEach(([sd,od])=>{rd[sd]=od}),rd}async function parseResponseError(Ra){const qa=Ra.statusCode;let ed,td;qa===301?(ed="MovedPermanently",td="Moved Permanently"):qa===307?(ed="TemporaryRedirect",td="Are you using the correct endpoint URL?"):qa===403?(ed="AccessDenied",td="Valid and authorized credentials required"):qa===404?(ed="NotFound",td="Not Found"):qa===405||qa===501?(ed="MethodNotAllowed",td="Method Not Allowed"):(ed="UnknownError",td=`${qa}`);const rd={};rd.amzRequestid=Ra.headers["x-amz-request-id"],rd.amzId2=Ra.headers["x-amz-id-2"],rd.amzBucketRegion=Ra.headers["x-amz-bucket
`)}),rd.write(`
`)};if(rd.write(`REQUEST: ${qa.method} ${qa.path}
`),sd(qa.headers),ed&&(this.logStream.write(`RESPONSE: ${ed.statusCode}
`),sd(ed.headers)),td){rd.write(`ERROR BODY:
`);const od=JSON.stringify(td,null," ");rd.write(`${od}
`)}}traceOn(qa){qa||(qa=define_process_default$3.stdout),this.logStream=qa}traceOff(){this.logStream=void 0}async makeRequestAsync(qa,ed="",td=[200],rd=""){if(!isObject$1(qa))throw new TypeError('options should be of type "object"');if(!isString$1(ed)&&!isObject$1(ed))throw new TypeError('payload should be of type "string" or "Buffer"');if(td.forEach(od=>{if(!isNumber$1(od))throw new TypeError('statusCode should be of type "number"')}),!isString$1(rd))throw new TypeError('region should be of type "string"');qa.headers||(qa.headers={}),(qa.method==="POST"||qa.method==="PUT"||qa.method==="DELETE")&&(qa.headers["content-length"]=ed.length.toString());const sd=this.enableSHA256?toSha256(ed):"";return this.makeRequestStreamAsync(qa,ed,sd,td,rd)}async makeRequestAsyncOmit(qa,ed="",td=[200],rd=""){const sd=await this.makeRequestAsync(qa,ed,td,rd);return await drainResponse(sd),sd}async makeRequestStreamAsync(qa,ed,td,rd,sd){if(!isObject$1(qa))throw new TypeError('options should be of type "object"');if(!(Buffer$2.isBuffer(ed)||typeof ed=="string"||isReadableStream$1(ed)))throw new InvalidArgumentError(`stream should be a Buffer, string or readable Stream, got ${typeof ed} instead`);if(!isString$1(td))throw new TypeError('sha256sum should be of type "string"');if(rd.forEach(ud=>{if(!isNumber$1(ud))throw new TypeError('statusCode should be of type "number"')}),!isString$1(sd))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&td.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&td.length!==64)throw new InvalidArgumentError(`Invalid sha256sum : ${td}`);await this.checkAndRefreshCreds(),sd=sd||await this.getBucketRegionAsync(qa.bucketName);const od=this.getRequestOptions({...qa,region:sd});if(!this.anonymous){this.enableSHA256||(td="UNSIGNED-PAYLOAD");const ud=new Date;od.headers["x-amz-date"]=makeDateLong(ud),od.headers["x-amz-content-sha256"]=td,this.sessionToken&&(od.headers["x-amz-security-token"]=this.sessionToken),od.headers.authorization=signV4(od,this.accessKey,this.secretKey,sd,ud,td)}const ld=await request$1(this.transport,od,ed);if(!ld.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!rd.includes(ld.statusCode)){delete this.regionMap[qa.bucketName];const ud=await parseResponseError(ld);throw this.logHTTP(od,ld,ud),ud}return this.logHTTP(od,ld),ld}async getBucketRegionAsync(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name : ${qa}`);if(this.region)return this.region;const ed=this.regionMap[qa];if(ed)return ed;const td=async cd=>{const dd=await readAsString(cd),_d=parseBucketRegion(dd)||DEFAULT_REGION;return this.regionMap[qa]=_d,_d},rd="GET",sd="location",od=this.pathStyle&&!isBrowser_1;let ld;try{const cd=await this.makeRequestAsync({method:rd,bucketName:qa,query:sd,pathStyle:od},"",[200],DEFAULT_REGION);return td(cd)}catch(cd){if(cd.name!=="AuthorizationHeaderMalformed"||(ld=cd.Region,!ld))throw cd}const ud=await this.makeRequestAsync({method:rd,bucketName:qa,query:sd,pathStyle:od},"",[200],ld);return await td(ud)}makeRequest(qa,ed="",td=[200],rd="",sd,od){let ld;sd?ld=this.makeRequestAsync(qa,ed,td,rd):ld=this.makeRequestAsyncOmit(qa,ed,td,rd),ld.then(ud=>od(null,ud),ud=>{od(ud)})}makeRequestStream(qa,ed,td,rd,sd,od,ld){(async()=>{const cd=await this.makeRequestStreamAsync(qa,ed,td,rd,sd);return od||await drainResponse(cd),cd})().then(cd=>ld(null,cd),cd=>ld(cd))}getBucketRegion(qa,ed){return this.getBucketRegionAsync(qa).then(td=>ed(null,td),td=>ed(td))}async removeBucket(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:qa},"",[204]),delete this.regionMap[qa]}async statObject(qa,ed,td={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(ed))throw new InvalidObjectNameError(`Invalid object name: ${ed}`);if(!isObject$1(td))throw new InvalidArgumentError('statOpts should be of type "object"');const
object-assign
(c) Sindre Sorhus
@license MIT
*/var objectAssign,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var Ra=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,ed=Object.prototype.propertyIsEnumerable;function td(sd){if(sd==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(sd)}function rd(){try{if(!Object.assign)return!1;var sd=new String("abc");if(sd[5]="de",Object.getOwnPropertyNames(sd)[0]==="5")return!1;for(var od={},ld=0;ld<10;ld++)od["_"+String.fromCharCode(ld)]=ld;var ud=Object.getOwnPropertyNames(od).map(function(dd){return od[dd]});if(ud.join("")!=="0123456789")return!1;var cd={};return"abcdefghijklmnopqrst".split("").forEach(function(dd){cd[dd]=dd}),Object.keys(Object.assign({},cd)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=rd()?Object.assign:function(sd,od){for(var ld,ud=td(sd),cd,dd=1;dd<arguments.length;dd++){ld=Object(arguments[dd]);for(var _d in ld)qa.call(ld,_d)&&(ud[_d]=ld[_d]);if(Ra){cd=Ra(ld);for(var Ed=0;Ed<cd.length;Ed++)ed.call(ld,cd[Ed])&&(ud[cd[Ed]]=ld[cd[Ed]])}}return ud},objectAssign}var ajax={},hasRequiredAjax;function requireAjax(){return hasRequiredAjax||(hasRequiredAjax=1,function(Ra){Ra.__esModule=!0,Ra.default=qa;function qa(ed,td){return td===void 0&&(td={}),new Promise(function(rd,sd){var od=td,ld=od.async,ud=ld===void 0?!0:ld,cd=od.data,dd=cd===void 0?null:cd,_d=od.headers,Ed=_d===void 0?{}:_d,Ad=od.method,Td=Ad===void 0?"get":Ad,Id=od.timeout,Bd=Id===void 0?0:Id,Rd=od.onprogress,Od=new XMLHttpRequest,Md;Bd&&(Md=setTimeout(function(){sd(new Error("the request timeout "+Bd+"ms"))},Bd)),Od.onerror=function(){sd(new Error("unknown error"))},Od.upload&&(Od.upload.onprogress=Rd),Od.onreadystatechange=function(){if(Od.readyState===4)if(Bd&&clearTimeout(Md),Od.status>=200&&Od.status<300)rd(Od.response,Od);else{var Ld=new Error("the request is error");sd(Ld)}},Od.open(Td,ed,ud),Object.keys(Ed).forEach(function(Ld){Od.setRequestHeader(Ld,Ed[Ld])});try{Od.send(dd)}catch(Ld){sd(Ld)}})}}(ajax)),ajax}var utils$2={},md5={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,function(){var Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qa={rotl:function(ed,td){return ed<<td|ed>>>32-td},rotr:function(ed,td){return ed<<32-td|ed>>>td},endian:function(ed){if(ed.constructor==Number)return qa.rotl(ed,8)&16711935|qa.rotl(ed,24)&4278255360;for(var td=0;td<ed.length;td++)ed[td]=qa.endian(ed[td]);return ed},randomBytes:function(ed){for(var td=[];ed>0;ed--)td.push(Math.floor(Math.random()*256));return td},bytesToWords:function(ed){for(var td=[],rd=0,sd=0;rd<ed.length;rd++,sd+=8)td[sd>>>5]|=ed[rd]<<24-sd%32;return td},wordsToBytes:function(ed){for(var td=[],rd=0;rd<ed.length*32;rd+=8)td.push(ed[rd>>>5]>>>24-rd%32&255);return td},bytesToHex:function(ed){for(var td=[],rd=0;rd<ed.length;rd++)td.push((ed[rd]>>>4).toString(16)),td.push((ed[rd]&15).toString(16));return td.join("")},hexToBytes:function(ed){for(var td=[],rd=0;rd<ed.length;rd+=2)td.push(parseInt(ed.substr(rd,2),16));return td},bytesToBase64:function(ed){for(var td=[],rd=0;rd<ed.length;rd+=3)for(var sd=ed[rd]<<16|ed[rd+1]<<8|ed[rd+2],od=0;od<4;od++)rd*8+od*6<=ed.length*8?td.push(Ra.charAt(sd>>>6*(3-od)&63)):td.push("=");return td.join("")},base64ToBytes:function(ed){ed=ed.replace(/[^A-Z0-9+\/]/ig,"");for(var td=[],rd=0,sd=0;rd<ed.length;sd=++rd%4)sd!=0&&td.push((Ra.indexOf(ed.charAt(rd-1))&Math.pow(2,-2*sd+8)-1)<<sd*2|Ra.indexOf(ed.charAt(rd))>>>6-sd*2);return td}};crypt.exports=qa}()),crypt.exports}var charenc_1,hasRequiredCharenc;function requireCharenc(){if(hasRequiredCharenc)return charenc_1;hasRequiredCharenc=1;var Ra={utf8:{stringToBytes:function(qa){return Ra.bin.stringToBytes(unescape(encodeURIComponent(qa)))},bytesToString:function(qa){return decodeURIComponent(escape(Ra.bin.bytesToString(qa)))}},bin:{stringToBytes:function(qa){for(var ed=[],td=0;td<qa.length;td++)ed.push(qa.charCodeAt(td)&255);return ed},bytesToString:function(qa){
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var isBuffer_1,hasRequiredIsBuffer;function requireIsBuffer(){if(hasRequiredIsBuffer)return isBuffer_1;hasRequiredIsBuffer=1,isBuffer_1=function(ed){return ed!=null&&(Ra(ed)||qa(ed)||!!ed._isBuffer)};function Ra(ed){return!!ed.constructor&&typeof ed.constructor.isBuffer=="function"&&ed.constructor.isBuffer(ed)}function qa(ed){return typeof ed.readFloatLE=="function"&&typeof ed.slice=="function"&&Ra(ed.slice(0,0))}return isBuffer_1}var hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(){var Ra=requireCrypt(),qa=requireCharenc().utf8,ed=requireIsBuffer(),td=requireCharenc().bin,rd=function(sd,od){sd.constructor==String?od&&od.encoding==="binary"?sd=td.stringToBytes(sd):sd=qa.stringToBytes(sd):ed(sd)?sd=Array.prototype.slice.call(sd,0):!Array.isArray(sd)&&sd.constructor!==Uint8Array&&(sd=sd.toString());for(var ld=Ra.bytesToWords(sd),ud=sd.length*8,cd=1732584193,dd=-271733879,_d=-1732584194,Ed=271733878,Ad=0;Ad<ld.length;Ad++)ld[Ad]=(ld[Ad]<<8|ld[Ad]>>>24)&16711935|(ld[Ad]<<24|ld[Ad]>>>8)&4278255360;ld[ud>>>5]|=128<<ud%32,ld[(ud+64>>>9<<4)+14]=ud;for(var Td=rd._ff,Id=rd._gg,Bd=rd._hh,Rd=rd._ii,Ad=0;Ad<ld.length;Ad+=16){var Od=cd,Md=dd,Ld=_d,Fd=Ed;cd=Td(cd,dd,_d,Ed,ld[Ad+0],7,-680876936),Ed=Td(Ed,cd,dd,_d,ld[Ad+1],12,-389564586),_d=Td(_d,Ed,cd,dd,ld[Ad+2],17,606105819),dd=Td(dd,_d,Ed,cd,ld[Ad+3],22,-1044525330),cd=Td(cd,dd,_d,Ed,ld[Ad+4],7,-176418897),Ed=Td(Ed,cd,dd,_d,ld[Ad+5],12,1200080426),_d=Td(_d,Ed,cd,dd,ld[Ad+6],17,-1473231341),dd=Td(dd,_d,Ed,cd,ld[Ad+7],22,-45705983),cd=Td(cd,dd,_d,Ed,ld[Ad+8],7,1770035416),Ed=Td(Ed,cd,dd,_d,ld[Ad+9],12,-1958414417),_d=Td(_d,Ed,cd,dd,ld[Ad+10],17,-42063),dd=Td(dd,_d,Ed,cd,ld[Ad+11],22,-1990404162),cd=Td(cd,dd,_d,Ed,ld[Ad+12],7,1804603682),Ed=Td(Ed,cd,dd,_d,ld[Ad+13],12,-40341101),_d=Td(_d,Ed,cd,dd,ld[Ad+14],17,-1502002290),dd=Td(dd,_d,Ed,cd,ld[Ad+15],22,1236535329),cd=Id(cd,dd,_d,Ed,ld[Ad+1],5,-165796510),Ed=Id(Ed,cd,dd,_d,ld[Ad+6],9,-1069501632),_d=Id(_d,Ed,cd,dd,ld[Ad+11],14,643717713),dd=Id(dd,_d,Ed,cd,ld[Ad+0],20,-373897302),cd=Id(cd,dd,_d,Ed,ld[Ad+5],5,-701558691),Ed=Id(Ed,cd,dd,_d,ld[Ad+10],9,38016083),_d=Id(_d,Ed,cd,dd,ld[Ad+15],14,-660478335),dd=Id(dd,_d,Ed,cd,ld[Ad+4],20,-405537848),cd=Id(cd,dd,_d,Ed,ld[Ad+9],5,568446438),Ed=Id(Ed,cd,dd,_d,ld[Ad+14],9,-1019803690),_d=Id(_d,Ed,cd,dd,ld[Ad+3],14,-187363961),dd=Id(dd,_d,Ed,cd,ld[Ad+8],20,1163531501),cd=Id(cd,dd,_d,Ed,ld[Ad+13],5,-1444681467),Ed=Id(Ed,cd,dd,_d,ld[Ad+2],9,-51403784),_d=Id(_d,Ed,cd,dd,ld[Ad+7],14,1735328473),dd=Id(dd,_d,Ed,cd,ld[Ad+12],20,-1926607734),cd=Bd(cd,dd,_d,Ed,ld[Ad+5],4,-378558),Ed=Bd(Ed,cd,dd,_d,ld[Ad+8],11,-2022574463),_d=Bd(_d,Ed,cd,dd,ld[Ad+11],16,1839030562),dd=Bd(dd,_d,Ed,cd,ld[Ad+14],23,-35309556),cd=Bd(cd,dd,_d,Ed,ld[Ad+1],4,-1530992060),Ed=Bd(Ed,cd,dd,_d,ld[Ad+4],11,1272893353),_d=Bd(_d,Ed,cd,dd,ld[Ad+7],16,-155497632),dd=Bd(dd,_d,Ed,cd,ld[Ad+10],23,-1094730640),cd=Bd(cd,dd,_d,Ed,ld[Ad+13],4,681279174),Ed=Bd(Ed,cd,dd,_d,ld[Ad+0],11,-358537222),_d=Bd(_d,Ed,cd,dd,ld[Ad+3],16,-722521979),dd=Bd(dd,_d,Ed,cd,ld[Ad+6],23,76029189),cd=Bd(cd,dd,_d,Ed,ld[Ad+9],4,-640364487),Ed=Bd(Ed,cd,dd,_d,ld[Ad+12],11,-421815835),_d=Bd(_d,Ed,cd,dd,ld[Ad+15],16,530742520),dd=Bd(dd,_d,Ed,cd,ld[Ad+2],23,-995338651),cd=Rd(cd,dd,_d,Ed,ld[Ad+0],6,-198630844),Ed=Rd(Ed,cd,dd,_d,ld[Ad+7],10,1126891415),_d=Rd(_d,Ed,cd,dd,ld[Ad+14],15,-1416354905),dd=Rd(dd,_d,Ed,cd,ld[Ad+5],21,-57434055),cd=Rd(cd,dd,_d,Ed,ld[Ad+12],6,1700485571),Ed=Rd(Ed,cd,dd,_d,ld[Ad+3],10,-1894986606),_d=Rd(_d,Ed,cd,dd,ld[Ad+10],15,-1051523),dd=Rd(dd,_d,Ed,cd,ld[Ad+1],21,-2054922799),cd=Rd(cd,dd,_d,Ed,ld[Ad+8],6,1873313359),Ed=Rd(Ed,cd,dd,_d,ld[Ad+15],10,-30611744),_d=Rd(_d,Ed,cd,dd,ld[Ad+6],15,-1560198380),dd=Rd(dd,_d,Ed,cd,ld[Ad+13],21,1309151649),cd=Rd(cd,dd,_d,Ed,ld[Ad+4],6,-145523070),Ed=Rd(Ed,cd,dd,_d,ld[Ad+11],10,-1120210379),_d=Rd(_d,Ed,cd,dd,ld[Ad+2],15,718787259),dd=Rd(dd,_d,Ed,cd,ld[Ad+9],21,-343485551),cd=cd+Od>>>0,dd=dd+Md>>>0,_d=_d+Ld>>>0,Ed=Ed+Fd>>>0}return Ra.endian([cd,dd,_d,Ed])};rd._ff=function(sd,od,ld,ud,cd,dd,_d){var Ed=sd+(od&ld|~od&ud)+(cd>>>0)+_d;return(Ed<<dd|Ed>>>32-dd)+od},rd._gg=function(sd,o
*!
*! Copyright 2011-2012, 2014 Jean-Christophe Sirot <sirot@chelonix.com>
*!
*! This file is part of digest.js
*!
*! digest.js is free software: you can redistribute it and/or modify it under
*! the terms of the GNU General Public License as published by the Free Software
*! Foundation, either version 3 of the License, or (at your option) any later
*! version.
*!
*! digest.js is distributed in the hope that it will be useful, but
*! WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
*! or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
*! more details.
*!
*! You should have received a copy of the GNU General Public License along with
*! digest.js. If not, see http://www.gnu.org/licenses/.
*!
*! ***** END LICENSE BLOCK ***** */var hasRequiredDigest;function requireDigest(){return hasRequiredDigest||(hasRequiredDigest=1,function(Ra,qa){(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(ed,td){var rd,sd=new Uint8Array(this);td===void 0&&(td=sd.length);var od=new ArrayBuffer(td-ed),ld=new Uint8Array(od);for(rd=0;rd<ld.length;rd++)ld[rd]=sd[rd+ed];return od})})(),function(ed){function td(){}td.prototype.processBlock=function(dd){var _d=this.current[0],Ed=this.current[1],Ad=this.current[2],Td=this.current[3],Id=this.current[4],Bd=[dd[0]<<24|dd[1]<<16|dd[2]<<8|dd[3],dd[4]<<24|dd[5]<<16|dd[6]<<8|dd[7],dd[8]<<24|dd[9]<<16|dd[10]<<8|dd[11],dd[12]<<24|dd[13]<<16|dd[14]<<8|dd[15],dd[16]<<24|dd[17]<<16|dd[18]<<8|dd[19],dd[20]<<24|dd[21]<<16|dd[22]<<8|dd[23],dd[24]<<24|dd[25]<<16|dd[26]<<8|dd[27],dd[28]<<24|dd[29]<<16|dd[30]<<8|dd[31],dd[32]<<24|dd[33]<<16|dd[34]<<8|dd[35],dd[36]<<24|dd[37]<<16|dd[38]<<8|dd[39],dd[40]<<24|dd[41]<<16|dd[42]<<8|dd[43],dd[44]<<24|dd[45]<<16|dd[46]<<8|dd[47],dd[48]<<24|dd[49]<<16|dd[50]<<8|dd[51],dd[52]<<24|dd[53]<<16|dd[54]<<8|dd[55],dd[56]<<24|dd[57]<<16|dd[58]<<8|dd[59],dd[60]<<24|dd[61]<<16|dd[62]<<8|dd[63]],Rd,Od;for(Od=16;Od<80;Od++)Bd.push((Bd[Od-3]^Bd[Od-8]^Bd[Od-14]^Bd[Od-16])<<1|(Bd[Od-3]^Bd[Od-8]^Bd[Od-14]^Bd[Od-16])>>>31);for(Od=0;Od<80;Od++)Rd=(_d<<5|_d>>>27)+Id+Bd[Od],Od<20?Rd+=(Ed&Ad|~Ed&Td)+1518500249|0:Od<40?Rd+=(Ed^Ad^Td)+1859775393|0:Od<60?Rd+=(Ed&Ad|Ed&Td|Ad&Td)+2400959708|0:Rd+=(Ed^Ad^Td)+3395469782|0,Id=Td,Td=Ad,Ad=Ed<<30|Ed>>>2,Ed=_d,_d=Rd;this.current[0]+=_d,this.current[1]+=Ed,this.current[2]+=Ad,this.current[3]+=Td,this.current[4]+=Id,this.currentLen+=64},td.prototype.doPadding=function(){var dd=(this.inLen+this.currentLen)*8,_d=0,Ed=dd&4294967295,Ad=this.inLen<=55?55-this.inLen:119-this.inLen,Td=new Uint8Array(new ArrayBuffer(Ad+1+8));return Td[0]=128,Td[Td.length-1]=Ed&255,Td[Td.length-2]=Ed>>>8&255,Td[Td.length-3]=Ed>>>16&255,Td[Td.length-4]=Ed>>>24&255,Td[Td.length-5]=_d&255,Td[Td.length-6]=_d>>>8&255,Td[Td.length-7]=_d>>>16&255,Td[Td.length-8]=_d>>>24&255,Td},td.prototype.getDigest=function(){var dd=new Uint8Array(new ArrayBuffer(20));return dd[3]=this.current[0]&255,dd[2]=this.current[0]>>>8&255,dd[1]=this.current[0]>>>16&255,dd[0]=this.current[0]>>>24&255,dd[7]=this.current[1]&255,dd[6]=this.current[1]>>>8&255,dd[5]=this.current[1]>>>16&255,dd[4]=this.current[1]>>>24&255,dd[11]=this.current[2]&255,dd[10]=this.current[2]>>>8&255,dd[9]=this.current[2]>>>16&255,dd[8]=this.current[2]>>>24&255,dd[15]=this.current[3]&255,dd[14]=this.current[3]>>>8&255,dd[13]=this.current[3]>>>16&255,dd[12]=this.current[3]>>>24&255,dd[19]=this.current[4]&255,dd[18]=this.current[4]>>>8&255,dd[17]=this.current[4]>>>16&255,dd[16]=this.current[4]>>>24&255,dd.buffer},td.prototype.reset=function(){this.currentLen=0,this.inLen=0,this.current=new Uint32Array(new ArrayBuffer(20)),this.current[0]=1732584193,this.current[1]=4023233417,this.current[2]=2562383102,this.current[3]=271733878,this.current[4]=3285377520},td.prototype.blockLen=64,td.prototype.digestLen=20;var rd=function(dd){var _d=new ArrayBuffer(dd.length),Ed=new Uint8Array(_d),Ad;for(Ad=0;Ad<dd.length;Ad++)Ed[Ad]=dd.charCodeAt(Ad);return Ed},sd=function(dd){var _d=new ArrayBuffer(1),Ed=new Uint8Array(_d);return Ed[0]=dd,Ed},od=function(dd){if(dd.constructor===Uint8Array)return dd;if(dd.constructor===ArrayBuffer)return new Uint8Array(dd);if(dd.constructor===String)return rd(dd);if(dd.constructor===Number){if(dd>255)throw"For more than one byte, use an array buffer";if(dd<0)throw"Input value must be positive";return sd(dd)}else throw"Unsupported type"},ld=function(dd){var _d=function(Td){for(var Id=Td.length,Bd=0;Id>0;){var Rd=this.blockLen-this.inLen;Rd>Id&&(Rd=Id);var Od=Td.subarray(Bd,Bd+Rd);this.inbuf.set(Od,this.inLen),Bd+=Rd,Id-=Rd,this.inLen+=Rd,this.inLen===this.blockLen&&(this.processBlock(this.inbuf),this.inLen=0)}},Ed=function(){var Td=this.doPadding();this.update(Td);var Id=this.getDigest();return this.reset(),Id},Ad=function(){if(!dd)throw"Unsupported algorithm: "+dd.toString();dd.prototype.
`)}),Td}function _d(Ad,Td,Id){Ad===void 0&&(Ad=""),Td===void 0&&(Td="");var Bd="";Ad&&(Bd+="/"+Ad),Td&&(Td.charAt(0)!=="/"&&(Bd+="/"),Bd+=Td);var Rd=""+Bd,Od="?";if(Id){var Md=function(jd,Vd){return jd[0]>Vd[0]?1:jd[0]<Vd[0]?-1:0},Ld=function(jd){Rd+=Od+jd,Id[jd]&&(Rd+="="+Id[jd]),Od="&"};Object.keys(Id).sort(Md).forEach(Ld)}return Rd}function Ed(Ad){Ad===void 0&&(Ad={});var Td=Ad,Id=Td.type,Bd=Id===void 0?"header":Id,Rd=Td.verb,Od=Rd===void 0?"":Rd,Md=Td.contentMd5,Ld=Md===void 0?"":Md,Fd=Td.expires,jd=Fd===void 0?sd()+3600:Fd,Vd=Td.bucket,Qd=Td.objectName,qd=Td.accessKeySecret,Kd=Td.headers,Xd=Kd===void 0?{}:Kd,df=Td.subResource,mf=Xd["x-oss-date"]||"",bf=Xd["Content-Type"]||"",pf=[Od,Ld,bf];Bd==="header"?pf.push(mf):pf.push(jd);var _f=dd(Xd),Tf=_d(Vd,Qd,df);pf.push(""+_f+Tf);var kf=pf.join(`
`),zf=new td.default.HMAC_SHA1;zf.setKey(qd),zf.update(kf);var Jf=new Uint8Array(zf.finalize()),Gf=ed.default.fromByteArray(Jf);return Gf}return utils$2}(function(Ra){var qa=interopRequireDefaultExports;Ra.__esModule=!0,Ra.default=void 0;var ed=qa(requireObjectAssign()),td=qa(requireAjax()),rd=requireUtils(),sd=function(){function od(ud){ud===void 0&&(ud={}),(0,rd.assertOptions)(ud),this.opts=(0,ed.default)({region:"oss-cn-hangzhou",internal:!1,cname:!1,secure:!1,timeout:6e4},ud);var cd=this.opts,dd=cd.bucket,_d=cd.region,Ed=cd.endpoint,Ad=cd.internal;if(this.host="",Ed)this.host=Ed;else{var Td=dd;Ad&&(Td+="-internal"),Td+="."+_d+".aliyuncs.com",this.host=Td}}var ld=od.prototype;return ld.put=function(cd,dd,_d){var Ed=this;return _d===void 0&&(_d={}),new Promise(function(Ad,Td){(0,rd.blobToBuffer)(dd).then(function(Id){var Bd=Ed.opts,Rd=Bd.accessKeyId,Od=Bd.accessKeySecret,Md=Bd.stsToken,Ld=Bd.bucket,Fd="PUT",jd=(0,rd.getContentMd5)(Id),Vd=dd.type,Qd={"Content-Md5":jd,"Content-Type":Vd,"x-oss-date":new Date().toGMTString()};Md&&(Qd["x-oss-security-token"]=Md);var qd=(0,rd.getSignature)({verb:Fd,contentMd5:jd,headers:Qd,bucket:Ld,objectName:cd,accessKeyId:Rd,accessKeySecret:Od});Qd.Authorization="OSS "+Rd+":"+qd;var Kd=Ed.opts.secure?"https":"http",Xd=Kd+"://"+Ed.host+"/"+cd;return(0,td.default)(Xd,{method:Fd,headers:Qd,data:dd,timeout:Ed.opts.timeout,onprogress:_d.onprogress})}).then(Ad).catch(Td)})},ld.putSymlink=function(cd,dd){var _d=this.opts,Ed=_d.accessKeyId,Ad=_d.accessKeySecret,Td=_d.stsToken,Id=_d.bucket,Bd="PUT",Rd={"x-oss-date":new Date().toGMTString(),"x-oss-symlink-target":encodeURI(dd)};Td&&(Rd["x-oss-security-token"]=Td);var Od=(0,rd.getSignature)({verb:Bd,headers:Rd,bucket:Id,objectName:cd,accessKeyId:Ed,accessKeySecret:Ad,subResource:{symlink:""}});Rd.Authorization="OSS "+Ed+":"+Od;var Md=this.opts.secure?"https":"http",Ld=Md+"://"+this.host+"/"+cd+"?symlink";return(0,td.default)(Ld,{method:Bd,headers:Rd,timeout:this.opts.timeout})},ld.signatureUrl=function(cd,dd){dd===void 0&&(dd={});var _d=dd,Ed=_d.expires,Ad=Ed===void 0?1800:Ed,Td=_d.method,Id=_d.process,Bd=_d.response,Rd=this.opts,Od=Rd.accessKeyId,Md=Rd.accessKeySecret,Ld=Rd.stsToken,Fd=Rd.bucket,jd={},Vd={};if(Id){var Qd="x-oss-process";Vd[Qd]=Id}Bd&&Object.keys(Bd).forEach(function(bf){var pf="response-"+bf.toLowerCase();Vd[pf]=Bd[bf]}),Object.keys(dd).forEach(function(bf){var pf=bf.toLowerCase(),_f=dd[bf];pf.indexOf("x-oss-")===0?jd[pf]=_f:pf.indexOf("content-md5")===0||pf.indexOf("content-type")===0?jd[bf]=_f:pf!=="expires"&&pf!=="response"&&pf!=="process"&&pf!=="method"&&(Vd[pf]=_f)});var qd=dd["security-token"]||Ld;qd&&(Vd["security-token"]=qd);var Kd=(0,rd.unix)()+Ad,Xd=(0,rd.getSignature)({type:"url",verb:Td||"GET",accessKeyId:Od,accessKeySecret:Md,bucket:Fd,objectName:cd,headers:jd,subResource:Vd,expires:Kd}),df=this.opts.secure?"https":"http",mf=df+"://"+this.host+"/"+cd;return mf+="?OSSAccessKeyId="+Od,mf+="&Expires="+Kd,mf+="&Signature="+encodeURIComponent(Xd),Object.keys(Vd).forEach(function(bf){mf+="&"+bf+"="+encodeURIComponent(Vd[bf])}),mf},od}();Ra.default=sd})(TinyOSS);var lib=TinyOSS.default;const OSS=getDefaultExportFromCjs(lib);var byteToHex=[];for(var i=0;i<256;++i)byteToHex.push((i+256).toString(16).slice(1));function unsafeStringify(Ra,qa=0){return(byteToHex[Ra[qa+0]]+byteToHex[Ra[qa+1]]+byteToHex[Ra[qa+2]]+byteToHex[Ra[qa+3]]+"-"+byteToHex[Ra[qa+4]]+byteToHex[Ra[qa+5]]+"-"+byteToHex[Ra[qa+6]]+byteToHex[Ra[qa+7]]+"-"+byteToHex[Ra[qa+8]]+byteToHex[Ra[qa+9]]+"-"+byteToHex[Ra[qa+10]]+byteToHex[Ra[qa+11]]+byteToHex[Ra[qa+12]]+byteToHex[Ra[qa+13]]+byteToHex[Ra[qa+14]]+byteToHex[Ra[qa+15]]).toLowerCase()}var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);co
`).forEach(function(od){rd=od.indexOf(":"),ed=od.substring(0,rd).trim().toLowerCase(),td=od.substring(rd+1).trim(),!(!ed||qa[ed]&&ignoreDuplicateOf[ed])&&(ed==="set-cookie"?qa[ed]?qa[ed].push(td):qa[ed]=[td]:qa[ed]=qa[ed]?qa[ed]+", "+td:td)}),qa},$internals=Symbol("internals");function normalizeHeader(Ra){return Ra&&String(Ra).trim().toLowerCase()}function normalizeValue(Ra){return Ra===!1||Ra==null?Ra:utils$1.isArray(Ra)?Ra.map(normalizeValue):String(Ra)}function parseTokens(Ra){const qa=Object.create(null),ed=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let td;for(;td=ed.exec(Ra);)qa[td[1]]=td[2];return qa}const isValidHeaderName=Ra=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Ra.trim());function matchHeaderValue(Ra,qa,ed,td,rd){if(utils$1.isFunction(td))return td.call(this,qa,ed);if(rd&&(qa=ed),!!utils$1.isString(qa)){if(utils$1.isString(td))return qa.indexOf(td)!==-1;if(utils$1.isRegExp(td))return td.test(qa)}}function formatHeader(Ra){return Ra.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(qa,ed,td)=>ed.toUpperCase()+td)}function buildAccessors(Ra,qa){const ed=utils$1.toCamelCase(" "+qa);["get","set","has"].forEach(td=>{Object.defineProperty(Ra,td+ed,{value:function(rd,sd,od){return this[td].call(this,qa,rd,sd,od)},configurable:!0})})}class AxiosHeaders{constructor(qa){qa&&this.set(qa)}set(qa,ed,td){const rd=this;function sd(ld,ud,cd){const dd=normalizeHeader(ud);if(!dd)throw new Error("header name must be a non-empty string");const _d=utils$1.findKey(rd,dd);(!_d||rd[_d]===void 0||cd===!0||cd===void 0&&rd[_d]!==!1)&&(rd[_d||ud]=normalizeValue(ld))}const od=(ld,ud)=>utils$1.forEach(ld,(cd,dd)=>sd(cd,dd,ud));if(utils$1.isPlainObject(qa)||qa instanceof this.constructor)od(qa,ed);else if(utils$1.isString(qa)&&(qa=qa.trim())&&!isValidHeaderName(qa))od(parseHeaders(qa),ed);else if(utils$1.isHeaders(qa))for(const[ld,ud]of qa.entries())sd(ud,ld,td);else qa!=null&&sd(ed,qa,td);return this}get(qa,ed){if(qa=normalizeHeader(qa),qa){const td=utils$1.findKey(this,qa);if(td){const rd=this[td];if(!ed)return rd;if(ed===!0)return parseTokens(rd);if(utils$1.isFunction(ed))return ed.call(this,rd,td);if(utils$1.isRegExp(ed))return ed.exec(rd);throw new TypeError("parser must be boolean|regexp|function")}}}has(qa,ed){if(qa=normalizeHeader(qa),qa){const td=utils$1.findKey(this,qa);return!!(td&&this[td]!==void 0&&(!ed||matchHeaderValue(this,this[td],td,ed)))}return!1}delete(qa,ed){const td=this;let rd=!1;function sd(od){if(od=normalizeHeader(od),od){const ld=utils$1.findKey(td,od);ld&&(!ed||matchHeaderValue(td,td[ld],ld,ed))&&(delete td[ld],rd=!0)}}return utils$1.isArray(qa)?qa.forEach(sd):sd(qa),rd}clear(qa){const ed=Object.keys(this);let td=ed.length,rd=!1;for(;td--;){const sd=ed[td];(!qa||matchHeaderValue(this,this[sd],sd,qa,!0))&&(delete this[sd],rd=!0)}return rd}normalize(qa){const ed=this,td={};return utils$1.forEach(this,(rd,sd)=>{const od=utils$1.findKey(td,sd);if(od){ed[od]=normalizeValue(rd),delete ed[sd];return}const ld=qa?formatHeader(sd):String(sd).trim();ld!==sd&&delete ed[sd],ed[ld]=normalizeValue(rd),td[ld]=!0}),this}concat(...qa){return this.constructor.concat(this,...qa)}toJSON(qa){const ed=Object.create(null);return utils$1.forEach(this,(td,rd)=>{td!=null&&td!==!1&&(ed[rd]=qa&&utils$1.isArray(td)?td.join(", "):td)}),ed}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([qa,ed])=>qa+": "+ed).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(qa){return qa instanceof this?qa:new this(qa)}static concat(qa,...ed){const td=new this(qa);return ed.forEach(rd=>td.set(rd)),td}static accessor(qa){const td=(this[$internals]=this[$internals]={accessors:{}}).accessors,rd=this.prototype;function sd(od){const ld=normalizeHeader(od);td[ld]||(buildAccessors(rd,od),td[ld]=!0)}return utils$1.isArray(qa)?qa.forEach(sd):sd(qa),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:Ra},qa)=>{let ed=qa[0].toUpperCase()+qa.slice(1);return{get:()=>Ra,set(td){this[ed]=td}}});utils$1.freezeMethods(AxiosHeaders);function transformData(Ra,qa){const ed=this||defaults,td=qa||ed,rd=AxiosHeaders.from(td.headers);let sd=td.data;return utils$1.forEach(Ra,function(ld){sd=ld.call(ed,sd,rd.normalize(),qa?qa.status:void 0)}),rd.normalize(),sd}function isCancel(Ra){return!!(Ra&&Ra.__CANCEL__)}function CanceledError(Ra,qa,ed){AxiosError.call(this,Ra??"canceled",AxiosError.ERR_CANCELED,qa,ed),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ra,qa,ed){const td=ed.config.validateStatus;!ed.status||!td||td(ed.status)?Ra(ed):qa(new AxiosError("Request failed with status code "+ed.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(ed.status/100)-4],ed.config,ed.request,ed))}function parseProtocol(Ra){const qa=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Ra);return qa&&qa[1]||""}function speedometer(Ra,qa){Ra=Ra||10;const ed=new Array(Ra),td=new Array(Ra);let rd=0,sd=0,od;return qa=qa!==void 0?qa:1e3,function(ud){const cd=Date.now(),dd=td[sd];od||(od=cd),ed[rd]=ud,td[rd]=cd;let _d=sd,Ed=0;for(;_d!==rd;)Ed+=ed[_d++],_d=_d%Ra;if(rd=(rd+1)%Ra,rd===sd&&(sd=(sd+1)%Ra),cd-od<qa)return;const Ad=dd&&cd-dd;return Ad?Math.round(Ed*1e3/Ad):void 0}}function throttle(Ra,qa){let ed=0,td=1e3/qa,rd,sd;const od=(cd,dd=Date.now())=>{ed=dd,rd=null,sd&&(clearTimeout(sd),sd=null),Ra.apply(null,cd)};return[(...cd)=>{const dd=Date.now(),_d=dd-ed;_d>=td?od(cd,dd):(rd=cd,sd||(sd=setTimeout(()=>{sd=null,od(rd)},td-_d)))},()=>rd&&od(rd)]}const progressEventReducer=(Ra,qa,ed=3)=>{let td=0;const rd=speedometer(50,250);return throttle(sd=>{const od=sd.loaded,ld=sd.lengthComputable?sd.total:void 0,ud=od-td,cd=rd(ud),dd=od<=ld;td=od;const _d={loaded:od,total:ld,progress:ld?od/ld:void 0,bytes:ud,rate:cd||void 0,estimated:cd&&ld&&dd?(ld-od)/cd:void 0,event:sd,lengthComputable:ld!=null,[qa?"download":"upload"]:!0};Ra(_d)},ed)},progressEventDecorator=(Ra,qa)=>{const ed=Ra!=null;return[td=>qa[0]({lengthComputable:ed,total:Ra,loaded:td}),qa[1]]},asyncDecorator=Ra=>(...qa)=>utils$1.asap(()=>Ra(...qa)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const qa=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent),ed=document.createElement("a");let td;function rd(sd){let od=sd;return qa&&(ed.setAttribute("href",od),od=ed.href),ed.setAttribute("href",od),{href:ed.href,protocol:ed.protocol?ed.protocol.replace(/:$/,""):"",host:ed.host,search:ed.search?ed.search.replace(/^\?/,""):"",hash:ed.hash?ed.hash.replace(/^#/,""):"",hostname:ed.hostname,port:ed.port,pathname:ed.pathname.charAt(0)==="/"?ed.pathname:"/"+ed.pathname}}return td=rd(window.location.href),function(od){const ld=utils$1.isString(od)?rd(od):od;return ld.protocol===td.protocol&&ld.host===td.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(Ra,qa,ed,td,rd,sd){const od=[Ra+"="+encodeURIComponent(qa)];utils$1.isNumber(ed)&&od.push("expires="+new Date(ed).toGMTString()),utils$1.isString(td)&&od.push("path="+td),utils$1.isString(rd)&&od.push("domain="+rd),sd===!0&&od.push("secure"),document.cookie=od.join("; ")},read(Ra){const qa=document.cookie.match(new RegExp("(^|;\\s*)("+Ra+")=([^;]*)"));return qa?decodeURIComponent(qa[3]):null},remove(Ra){this.write(Ra,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(Ra){return/^([a-z][a-z\d+\-.]*
`+sd.map(renderReason).join(`
`):" "+renderReason(sd[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+od,"ERR_NOT_SUPPORT")}return td},adapters:knownAdapters};function throwIfCancellationRequested(Ra){if(Ra.cancelToken&&Ra.cancelToken.throwIfRequested(),Ra.signal&&Ra.signal.aborted)throw new CanceledError(null,Ra)}function dispatchRequest(Ra){return throwIfCancellationRequested(Ra),Ra.headers=AxiosHeaders.from(Ra.headers),Ra.data=transformData.call(Ra,Ra.transformRequest),["post","put","patch"].indexOf(Ra.method)!==-1&&Ra.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(Ra.adapter||defaults.adapter)(Ra).then(function(td){return throwIfCancellationRequested(Ra),td.data=transformData.call(Ra,Ra.transformResponse,td),td.headers=AxiosHeaders.from(td.headers),td},function(td){return isCancel(td)||(throwIfCancellationRequested(Ra),td&&td.response&&(td.response.data=transformData.call(Ra,Ra.transformResponse,td.response),td.response.headers=AxiosHeaders.from(td.response.headers))),Promise.reject(td)})}const VERSION="1.7.7",validators$1={};["object","boolean","number","function","string","symbol"].forEach((Ra,qa)=>{validators$1[Ra]=function(td){return typeof td===Ra||"a"+(qa<1?"n ":" ")+Ra}});const deprecatedWarnings={};validators$1.transitional=function(qa,ed,td){function rd(sd,od){return"[Axios v"+VERSION+"] Transitional option '"+sd+"'"+od+(td?". "+td:"")}return(sd,od,ld)=>{if(qa===!1)throw new AxiosError(rd(od," has been removed"+(ed?" in "+ed:"")),AxiosError.ERR_DEPRECATED);return ed&&!deprecatedWarnings[od]&&(deprecatedWarnings[od]=!0,console.warn(rd(od," has been deprecated since v"+ed+" and will be removed in the near future"))),qa?qa(sd,od,ld):!0}};function assertOptions(Ra,qa,ed){if(typeof Ra!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const td=Object.keys(Ra);let rd=td.length;for(;rd-- >0;){const sd=td[rd],od=qa[sd];if(od){const ld=Ra[sd],ud=ld===void 0||od(ld,sd,Ra);if(ud!==!0)throw new AxiosError("option "+sd+" must be "+ud,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(ed!==!0)throw new AxiosError("Unknown option "+sd,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(qa){this.defaults=qa,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(qa,ed){try{return await this._request(qa,ed)}catch(td){if(td instanceof Error){let rd;Error.captureStackTrace?Error.captureStackTrace(rd={}):rd=new Error;const sd=rd.stack?rd.stack.replace(/^.+\n/,""):"";try{td.stack?sd&&!String(td.stack).endsWith(sd.replace(/^.+\n.+\n/,""))&&(td.stack+=`
`+sd):td.stack=sd}catch{}}throw td}}_request(qa,ed){typeof qa=="string"?(ed=ed||{},ed.url=qa):ed=qa||{},ed=mergeConfig(this.defaults,ed);const{transitional:td,paramsSerializer:rd,headers:sd}=ed;td!==void 0&&validator.assertOptions(td,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),rd!=null&&(utils$1.isFunction(rd)?ed.paramsSerializer={serialize:rd}:validator.assertOptions(rd,{encode:validators.function,serialize:validators.function},!0)),ed.method=(ed.method||this.defaults.method||"get").toLowerCase();let od=sd&&utils$1.merge(sd.common,sd[ed.method]);sd&&utils$1.forEach(["delete","get","head","post","put","patch","common"],Td=>{delete sd[Td]}),ed.headers=AxiosHeaders.concat(od,sd);const ld=[];let ud=!0;this.interceptors.request.forEach(function(Id){typeof Id.runWhen=="function"&&Id.runWhen(ed)===!1||(ud=ud&&Id.synchronous,ld.unshift(Id.fulfilled,Id.rejected))});const cd=[];this.interceptors.response.forEach(function(Id){cd.push(Id.fulfilled,Id.rejected)});let dd,_d=0,Ed;if(!ud){const Td=[dispatchRequest.bind(this),void 0];for(Td.unshift.apply(Td,ld),Td.push.apply(Td,cd),Ed=Td.length,dd=Promise.resolve(ed);_d<Ed;)dd=dd.then(Td[_d++],Td[_d++]);return dd}Ed=ld.length;let Ad=ed;for(_d=0;_d<Ed;){const Td=ld[_d++],Id=ld[_d++];try{Ad=Td(Ad)}catch(Bd){Id.call(this,Bd);break}}try{dd=dispatchRequest.call(this,Ad)}catch(Td){return Promise.reject(Td)}for(_d=0,Ed=cd.length;_d<Ed;)dd=dd.then(cd[_d++],cd[_d++]);return dd}getUri(qa){qa=mergeConfig(this.defaults,qa);const ed=buildFullPath(qa.baseURL,qa.url);return buildURL(ed,qa.params,qa.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(qa){Axios.prototype[qa]=function(ed,td){return this.request(mergeConfig(td||{},{method:qa,url:ed,data:(td||{}).data}))}});utils$1.forEach(["post","put","patch"],function(qa){function ed(td){return function(sd,od,ld){return this.request(mergeConfig(ld||{},{method:qa,headers:td?{"Content-Type":"multipart/form-data"}:{},url:sd,data:od}))}}Axios.prototype[qa]=ed(),Axios.prototype[qa+"Form"]=ed(!0)});class CancelToken{constructor(qa){if(typeof qa!="function")throw new TypeError("executor must be a function.");let ed;this.promise=new Promise(function(sd){ed=sd});const td=this;this.promise.then(rd=>{if(!td._listeners)return;let sd=td._listeners.length;for(;sd-- >0;)td._listeners[sd](rd);td._listeners=null}),this.promise.then=rd=>{let sd;const od=new Promise(ld=>{td.subscribe(ld),sd=ld}).then(rd);return od.cancel=function(){td.unsubscribe(sd)},od},qa(function(sd,od,ld){td.reason||(td.reason=new CanceledError(sd,od,ld),ed(td.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(qa){if(this.reason){qa(this.reason);return}this._listeners?this._listeners.push(qa):this._listeners=[qa]}unsubscribe(qa){if(!this._listeners)return;const ed=this._listeners.indexOf(qa);ed!==-1&&this._listeners.splice(ed,1)}toAbortSignal(){const qa=new AbortController,ed=td=>{qa.abort(td)};return this.subscribe(ed),qa.signal.unsubscribe=()=>this.unsubscribe(ed),qa.signal}static source(){let qa;return{token:new CancelToken(function(rd){qa=rd}),cancel:qa}}}function spread(Ra){return function(ed){return Ra.apply(null,ed)}}function isAxiosError(Ra){return utils$1.isObject(Ra)&&Ra.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,Expect
async (CUSTOM_ARG) => {
${localStorage.getItem("formCustomConfig")}
}
`;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer:Buffer$1,uuidv4:v4,qiniu,tokenTools,getDir,getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(Ra=>{console.error(Ra),reject(Ra)})})}function fileUpload(Ra,qa){const ed=localStorage.getItem("imgHost");switch(ed||localStorage.setItem("imgHost","default"),ed){case"aliOSS":return aliOSSFileUpload(qa);case"minio":return minioFileUpload(Ra,qa.name);case"txCOS":return txCOSFileUpload(qa);case"qiniu":return qiniuUpload(qa);case"gitee":return giteeUpload(Ra,qa.name);case"github":return ghFileUpload(Ra,qa.name);case"formCustom":return formCustomUpload(Ra,qa);default:return ghFileUpload(Ra,qa.name)}}const fileApi={fileUpload},_hoisted_1={class:"container-main flex-1"},_hoisted_2={class:"preview border shadow-xl"},_hoisted_3=["innerHTML"],_hoisted_4={key:0,class:"loading-mask"},_sfc_main$1=defineComponent({__name:"CodemirrorEditor",setup(Ra){const qa=useStore(),ed=useDisplayStore(),{isDark:td,output:rd,editor:sd,editorContent:od}=storeToRefs(qa),{isShowCssEditor:ld}=storeToRefs(ed),{editorRefresh:ud,exportEditorContent2HTML:cd,exportEditorContent2MD:dd,formatContent:_d,importMarkdownContent:Ed,resetStyleConfirm:Ad}=qa,{toggleShowInsertFormDialog:Td,toggleShowUploadImgDialog:Id}=ed,Bd=ref$1(!1),Rd=ref$1(),Od=ref$1(null);function Md(){const kf=Gf=>{let Mf,Nf;clearTimeout(Rd.value),Gf==="preview"?(Mf=Od.value.$el,Nf=document.querySelector(".CodeMirror-scroll"),sd.value.off("scroll",zf),Rd.value=setTimeout(()=>{sd.value.on("scroll",zf)},300)):(Mf=document.querySelector(".CodeMirror-scroll"),Nf=Od.value.$el,Nf.removeEventListener("scroll",Jf,!1),Rd.value=setTimeout(()=>{Nf.addEventListener("scroll",Jf,!1)},300));const Qf=Mf.scrollTop/(Mf.scrollHeight-Mf.offsetHeight)*(Nf.scrollHeight-Nf.offsetHeight);Nf.scrollTo(0,Qf)};function zf(){kf("editor")}function Jf(){kf("preview")}Od.value.$el.addEventListener("scroll",Jf,!1),sd.value.on("scroll",zf)}onMounted(()=>{setTimeout(()=>{Md()},300)});function Ld(){ud()}const Fd=ref$1(!1),jd=ref$1(!1);function Vd(){jd.value=!0,Fd.value=!0}function Qd(){Fd.value=!1,setTimeout(()=>{jd.value=!1},800)}function qd(kf){const zf=checkImage(kf);if(!zf.ok)return ElMessage.error(zf.msg),!1;const Jf=localStorage.getItem("imgHost")||"default";localStorage.setItem("imgHost",Jf);const Gf=localStorage.getItem(`${Jf}Config`);return Jf==="default"||Gf?!0:(ElMessage.error(`请先配置 ${Jf} 图床参数`),!1)}function Kd(kf){if(!kf){ElMessage.error("上传图片未知异常");return}Id(!1);const zf=sd.value.getCursor(),Jf=`![](${kf})`;toRaw(qa.editor).replaceSelection(`
${Jf}
`,zf),ElMessage.success("图片上传成功")}function Xd(kf,zf){Bd.value=!0,toBase64$1(kf).then(Jf=>fileApi.fileUpload(Jf,kf)).then(Jf=>{zf?zf(Jf):Kd(Jf)}).catch(Jf=>{ElMessage.error(Jf.message)}).finally(()=>{Bd.value=!1})}const df=ref$1();watch(td,()=>{var zf,Jf;const kf=td.value?"darcula":"xq-light";(Jf=(zf=toRaw(sd.value))==null?void 0:zf.setOption)==null||Jf.call(zf,"theme",kf)});function mf(){const kf=document.querySelector("#editor");kf.value||(kf.value=od.value),sd.value=CodeMirror.fromTextArea(kf,{mode:"text/x-markdown",theme:td.value?"darcula":"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Jf){formatDoc(Jf.getValue()).then(Gf=>{Jf.setValue(Gf)})},[`${ctrlKey}-B`]:function(Jf){const Gf=Jf.getSelection();Jf.replaceSelection(`**${Gf}**`)},[`${ctrlKey}-I`]:function(Jf){const Gf=Jf.getSelection();Jf.replaceSelection(`*${Gf}*`)},[`${ctrlKey}-D`]:function(Jf){const Gf=Jf.getSelection();Jf.replaceSelection(`~~${Gf}~~`)},[`${ctrlKey}-K`]:function(Jf){const Gf=Jf.getSelection();Jf.replaceSelection(`[${Gf}]()`)},[`${ctrlKey}-E`]:function(Jf){const Gf=Jf.getSelection();Jf.replaceSelection(`\`${Gf}\``)},[`${ctrlKey}-L`]:function(Jf){const Gf=Jf.getSelection();Jf.replaceSelection(`\`${Gf}\``)}}}),sd.value.on("change",zf=>{clearTimeout(df.value),df.value=setTimeout(()=>{Ld(),od.value=zf.getValue()},300)}),sd.value.on("paste",(zf,Jf)=>{if(!(!(Jf.clipboardData&&Jf.clipboardData.items)||Bd.value))for(let Gf=0,Mf=Jf.clipboardData.items.length;Gf<Mf;++Gf){const Nf=Jf.clipboardData.items[Gf];if(Nf.kind==="file"){const Bf=Nf.getAsFile();if(!qd(Bf))continue;Xd(Bf)}}})}const bf=ref$1(null);function pf(kf){sd.value.options.extraKeys[kf](sd.value)}const _f=ref$1(null);function Tf(){const kf=_f.value.$el,zf=async({md:Mf,list:Nf})=>{const Bf=[...Mf.str.matchAll(/!\[(.*?)\]\((.*?)\)/g)||[]].filter(yf=>yf),Qf=Mf.path.match(/.+?\//)[0];(await Promise.all(Bf.map(yf=>new Promise(hf=>{let[,,Rf]=yf;Rf=Rf.replace(/^.\//,"");const{file:jf}=Nf.find(Kf=>Kf.path===`${Qf}${Rf}`)||{};Xd(jf,Kf=>{hf({matchStr:Rf,url:Kf})})})))).forEach(yf=>{Mf.str=Mf.str.replace(`](./${yf.matchStr})`,`](${yf.url})`).replace(`](${yf.matchStr})`,`](${yf.url})`)}),sd.value.setValue(Mf.str)};kf.ondragover=Mf=>Mf.preventDefault(),kf.ondrop=async Mf=>{Mf.preventDefault();for(const Nf of Mf.dataTransfer.items)Nf.getAsFileSystemHandle().then(async Bf=>{if(Bf.kind==="directory"){const Qf=await Gf(Bf),Wf=await Jf({list:Qf});zf({md:Wf,list:Qf})}else{const Qf=await Bf.getFile();console.log("file",Qf)}})};async function Jf({list:Mf}){return new Promise(Nf=>{const{path:Bf,file:Qf}=Mf.find(yf=>yf.path.match(/\.md$/)),Wf=new FileReader;Wf.readAsText(Qf,"UTF-8"),Wf.onload=yf=>{Nf({str:yf.target.result,file:Qf,path:Bf})}})}async function Gf(Mf){const Nf=[];let Bf="";try{const Qf=[Mf];for(const Wf of Qf){Bf+=`${Wf.name}/`;for await(const[,yf]of Wf)yf.kind==="file"?Nf.push({path:Bf+yf.name,file:await yf.getFile()}):(Nf.push({path:`${Bf+yf.name}/`}),Qf.push(yf))}}catch(Qf){console.error(Qf)}return Nf}}return onMounted(()=>{mf(),Ld(),Tf()}),(kf,zf)=>{const Jf=ElRow;return openBlock(),createElementBlock("div",{ref_key:"container",ref:bf,class:"container flex flex-col"},[createVNode(EditorHeader,{onAddFormat:pf,onFormatContent:unref(_d),onStartCopy:Vd,onEndCopy:Qd},null,8,["onFormatContent"]),createBaseVNode("main",_hoisted_1,[createVNode(Jf,{class:"container-main-section h-full border-1"},{default:withCtx(()=>[createVNode(unref(ElCol),{ref_key:"codeMirrorWrapper",ref:_f,span:unref(ld)?8:12,class:normalizeClass(["codeMirror-wrapper border-r-1",{"order-1":!unref(qa).isEditOnLeft}])},{default:withCtx(()=>[createVNode(unref(_sfc_main$7),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$2),null,{default:withCtx(()=>zf[7]||(zf[7]=[createBaseVNode("textarea",{id:"editor",type:"textarea",placeholder:"Your markdown text here."},null,-1)])),_:1}),createVNode(unref(_sfc_main$6),{class:"w-64"},{default:withCtx(()=>[createVNode(unref(_sfc_main$5),{inset:"",onClick:zf[0]||(zf[0]=Gf=>unref(Id)())},{default:withCtx(()=>z
`;Rd.replaceSelection(Vd+Vd,null),Ed(Rd,-1),Ld=Rd.listSelections();for(var Qd=0;Qd<Ld.length;Qd++){var qd=Ld[Qd].head.line;Rd.indentLine(qd,null,!0),Rd.indentLine(qd+1,null,!0)}})}function Ed(Rd,Od){for(var Md=[],Ld=Rd.listSelections(),Fd=0,jd=0;jd<Ld.length;jd++){var Vd=Ld[jd];Vd.head==Rd.getCursor()&&(Fd=jd);var Qd=Vd.head.ch||Od>0?{line:Vd.head.line,ch:Vd.head.ch+Od}:{line:Vd.head.line-1};Md.push({anchor:Qd,head:Qd})}Rd.setSelections(Md,Fd)}function Ad(Rd){var Od=ed.cmpPos(Rd.anchor,Rd.head)>0;return{anchor:new rd(Rd.anchor.line,Rd.anchor.ch+(Od?-1:1)),head:new rd(Rd.head.line,Rd.head.ch+(Od?1:-1))}}function Td(Rd,Od){var Md=cd(Rd);if(!Md||Rd.getOption("disableInput"))return ed.Pass;var Ld=sd(Md,"pairs"),Fd=Ld.indexOf(Od);if(Fd==-1)return ed.Pass;for(var jd=sd(Md,"closeBefore"),Vd=sd(Md,"triples"),Qd=Ld.charAt(Fd+1)==Od,qd=Rd.listSelections(),Kd=Fd%2==0,Xd,df=0;df<qd.length;df++){var mf=qd[df],bf=mf.head,pf,_f=Rd.getRange(bf,rd(bf.line,bf.ch+1));if(Kd&&!mf.empty())pf="surround";else if((Qd||!Kd)&&_f==Od)Qd&&Bd(Rd,bf)?pf="both":Vd.indexOf(Od)>=0&&Rd.getRange(bf,rd(bf.line,bf.ch+3))==Od+Od+Od?pf="skipThree":pf="skip";else if(Qd&&bf.ch>1&&Vd.indexOf(Od)>=0&&Rd.getRange(rd(bf.line,bf.ch-2),bf)==Od+Od){if(bf.ch>2&&/\bstring/.test(Rd.getTokenTypeAt(rd(bf.line,bf.ch-2))))return ed.Pass;pf="addFour"}else if(Qd){var Tf=bf.ch==0?" ":Rd.getRange(rd(bf.line,bf.ch-1),bf);if(!ed.isWordChar(_f)&&Tf!=Od&&!ed.isWordChar(Tf))pf="both";else return ed.Pass}else if(Kd&&(_f.length===0||/\s/.test(_f)||jd.indexOf(_f)>-1))pf="both";else return ed.Pass;if(!Xd)Xd=pf;else if(Xd!=pf)return ed.Pass}var kf=Fd%2?Ld.charAt(Fd-1):Od,zf=Fd%2?Od:Ld.charAt(Fd+1);Rd.operation(function(){if(Xd=="skip")Ed(Rd,1);else if(Xd=="skipThree")Ed(Rd,3);else if(Xd=="surround"){for(var Jf=Rd.getSelections(),Gf=0;Gf<Jf.length;Gf++)Jf[Gf]=kf+Jf[Gf]+zf;Rd.replaceSelections(Jf,"around"),Jf=Rd.listSelections().slice();for(var Gf=0;Gf<Jf.length;Gf++)Jf[Gf]=Ad(Jf[Gf]);Rd.setSelections(Jf)}else Xd=="both"?(Rd.replaceSelection(kf+zf,null),Rd.triggerElectric(kf+zf),Ed(Rd,-1)):Xd=="addFour"&&(Rd.replaceSelection(kf+kf+kf+kf,"before"),Ed(Rd,1))})}function Id(Rd,Od){var Md=Rd.getRange(rd(Od.line,Od.ch-1),rd(Od.line,Od.ch+1));return Md.length==2?Md:null}function Bd(Rd,Od){var Md=Rd.getTokenAt(rd(Od.line,Od.ch+1));return/\bstring/.test(Md.type)&&Md.start==Od.ch&&(Od.ch==0||!/\bstring/.test(Rd.getTokenTypeAt(Od)))}})})();(function(Ra,qa){(function(ed){ed(requireCodemirror())})(function(ed){var td=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),rd=ed.Pos,sd={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function od(Ed){return Ed&&Ed.bracketRegex||/[(){}[\]]/}function ld(Ed,Ad,Td){var Id=Ed.getLineHandle(Ad.line),Bd=Ad.ch-1,Rd=Td&&Td.afterCursor;Rd==null&&(Rd=/(^| )cm-fat-cursor($| )/.test(Ed.getWrapperElement().className));var Od=od(Td),Md=!Rd&&Bd>=0&&Od.test(Id.text.charAt(Bd))&&sd[Id.text.charAt(Bd)]||Od.test(Id.text.charAt(Bd+1))&&sd[Id.text.charAt(++Bd)];if(!Md)return null;var Ld=Md.charAt(1)==">"?1:-1;if(Td&&Td.strict&&Ld>0!=(Bd==Ad.ch))return null;var Fd=Ed.getTokenTypeAt(rd(Ad.line,Bd+1)),jd=ud(Ed,rd(Ad.line,Bd+(Ld>0?1:0)),Ld,Fd,Td);return jd==null?null:{from:rd(Ad.line,Bd),to:jd&&jd.pos,match:jd&&jd.ch==Md.charAt(0),forward:Ld>0}}function ud(Ed,Ad,Td,Id,Bd){for(var Rd=Bd&&Bd.maxScanLineLength||1e4,Od=Bd&&Bd.maxScanLines||1e3,Md=[],Ld=od(Bd),Fd=Td>0?Math.min(Ad.line+Od,Ed.lastLine()+1):Math.max(Ed.firstLine()-1,Ad.line-Od),jd=Ad.line;jd!=Fd;jd+=Td){var Vd=Ed.getLine(jd);if(Vd){var Qd=Td>0?0:Vd.length-1,qd=Td>0?Vd.length:-1;if(!(Vd.length>Rd))for(jd==Ad.line&&(Qd=Ad.ch-(Td<0?1:0));Qd!=qd;Qd+=Td){var Kd=Vd.charAt(Qd);if(Ld.test(Kd)&&(Id===void 0||(Ed.getTokenTypeAt(rd(jd,Qd+1))||"")==(Id||""))){var Xd=sd[Kd];if(Xd&&Xd.charAt(1)==">"==Td>0)Md.push(Kd);else if(Md.length)Md.pop();else return{pos:rd(jd,Qd),ch:Kd}}}}}return jd-Td==(Td>0?Ed.lastLine():Ed.firstLine())?!1:null}function cd(Ed,Ad,Td){for(var Id=Ed.state.matchBrackets.maxHighlightLineLength||1e3,Bd=Td&&Td.highlightNonMatching,Rd=[],Od=Ed.listSelections(