md/assets/index-C24Kw4td.js

1175 lines
5.0 MiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-4EVJKHTY-SGviKxqF.js","assets/graph--F-C7KCz.js","assets/_baseUniq-wQlGTMO_.js","assets/layout-AErRfvZD.js","assets/_basePickBy-B2q-3HyP.js","assets/clone-DhRcn2hz.js","assets/c4Diagram-6F5ED5ID-BGWcIU_2.js","assets/chunk-ASOPGD6M-BkOFeI8Y.js","assets/flowDiagram-7ASYPVHJ-4NWSyp-f.js","assets/chunk-5HRBRIJM-D9kZXkPI.js","assets/channel-DtWb-0ya.js","assets/erDiagram-6RL3IURR-QXOUNCYx.js","assets/gitGraphDiagram-NRZ2UAAF-gVzZl1Xl.js","assets/chunk-TMUBEWPD-DjnbcH_J.js","assets/chunk-KFBOBJHC-DcWvma6x.js","assets/gitGraph-YCYPL57B-wqIe3XVW.js","assets/ganttDiagram-NTVNEXSI-C4xVJVAD.js","assets/linear-Ds4-6z2i.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-A4XQUW5V-2-UUh4i-.js","assets/pieDiagram-YF2LJOPJ-naivc_jG.js","assets/arc-HNRU4BLC.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-OS5C2QUG-oAApckce.js","assets/xychartDiagram-6QU3TZC5-BvkK3xu9.js","assets/requirementDiagram-MIRIMTAZ-Cg3vo6oW.js","assets/sequenceDiagram-G6AWOVSC-BuXGO6ec.js","assets/classDiagram-LNE6IOMH-DEwbJmbk.js","assets/chunk-T2TOU4HS-i12KWRpR.js","assets/classDiagram-v2-MQ7JQ4JX-DEwbJmbk.js","assets/stateDiagram-MAYHULR4-CDo2Dbj4.js","assets/chunk-7U56Z5CX-Cp4C6vy4.js","assets/stateDiagram-v2-4JROLMXI-Cq6_V06N.js","assets/journeyDiagram-G5WM74LC-D5Kb6RAO.js","assets/timeline-definition-U7ZMHBDA-qYd4vsmp.js","assets/mindmap-definition-GWI6TPTV-Ce5ZckIZ.js","assets/cytoscape.esm-dHjzNLg0.js","assets/sankeyDiagram-Y46BX6SQ-CLlrVctM.js","assets/diagram-QW4FP2JN-C_ubMbNt.js","assets/blockDiagram-ZHA2E4KO-Cual3KiS.js","assets/architectureDiagram-UYN6MBPD-Dxdr-Tu8.js"])))=>i.map(i=>d[i]);
var LN=Object.defineProperty;var Ix=Ra=>{throw TypeError(Ra)};var BN=(Ra,qa,nd)=>qa in Ra?LN(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:nd}):Ra[qa]=nd;var p_=(Ra,qa,nd)=>BN(Ra,typeof qa!="symbol"?qa+"":qa,nd),FN=(Ra,qa,nd)=>qa.has(Ra)||Ix("Cannot "+nd);var Ox=(Ra,qa,nd)=>qa.has(Ra)?Ix("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,nd);var ZT=(Ra,qa,nd)=>(FN(Ra,qa,"access private method"),nd);(function(){const qa=document.createElement("link").relList;if(qa&&qa.supports&&qa.supports("modulepreload"))return;for(const ld of document.querySelectorAll('link[rel="modulepreload"]'))od(ld);new MutationObserver(ld=>{for(const ud of ld)if(ud.type==="childList")for(const cd of ud.addedNodes)cd.tagName==="LINK"&&cd.rel==="modulepreload"&&od(cd)}).observe(document,{childList:!0,subtree:!0});function nd(ld){const ud={};return ld.integrity&&(ud.integrity=ld.integrity),ld.referrerPolicy&&(ud.referrerPolicy=ld.referrerPolicy),ld.crossOrigin==="use-credentials"?ud.credentials="include":ld.crossOrigin==="anonymous"?ud.credentials="omit":ud.credentials="same-origin",ud}function od(ld){if(ld.ep)return;ld.ep=!0;const ud=nd(ld);fetch(ld.href,ud)}})();const global$1=globalThis||void 0||self;/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function makeMap(Ra){const qa=Object.create(null);for(const nd of Ra.split(","))qa[nd]=1;return nd=>nd 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 nd=Ra.indexOf(qa);nd>-1&&Ra.splice(nd,1)},hasOwnProperty$f=Object.prototype.hasOwnProperty,hasOwn$3=(Ra,qa)=>hasOwnProperty$f.call(Ra,qa),isArray$2=Array.isArray,isMap=Ra=>toTypeString(Ra)==="[object Map]",isSet=Ra=>toTypeString(Ra)==="[object Set]",isDate$1=Ra=>toTypeString(Ra)==="[object Date]",isFunction$3=Ra=>typeof Ra=="function",isString$2=Ra=>typeof Ra=="string",isSymbol=Ra=>typeof Ra=="symbol",isObject$5=Ra=>Ra!==null&&typeof Ra=="object",isPromise=Ra=>(isObject$5(Ra)||isFunction$3(Ra))&&isFunction$3(Ra.then)&&isFunction$3(Ra.catch),objectToString$1=Object.prototype.toString,toTypeString=Ra=>objectToString$1.call(Ra),toRawType=Ra=>toTypeString(Ra).slice(8,-1),isPlainObject$4=Ra=>toTypeString(Ra)==="[object Object]",isIntegerKey=Ra=>isString$2(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 nd=>qa[nd]||(qa[nd]=Ra(nd))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(Ra=>Ra.replace(camelizeRE,(qa,nd)=>nd?nd.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(Ra=>Ra.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(Ra=>Ra.charAt(0).toUpperCase()+Ra.slice(1)),toHandlerKey=cacheStringFunction(Ra=>Ra?`on${capitalize(Ra)}`:""),hasChanged=(Ra,qa)=>!Object.is(Ra,qa),invokeArrayFns=(Ra,...qa)=>{for(let nd=0;nd<Ra.length;nd++)Ra[nd](...qa)},def$2=(Ra,qa,nd,od=!1)=>{Object.defineProperty(Ra,qa,{configurable:!0,enumerable:!1,writable:od,value:nd})},looseToNumber=Ra=>{const qa=parseFloat(Ra);return isNaN(qa)?Ra:qa},toNumber$2=Ra=>{const qa=isString$2(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 nd=0;nd<Ra.length;nd++){const od=Ra[nd],ld=isString$2(od)?parseStringStyle(od):normalizeStyle(od);if(ld)for(const ud in ld)qa[ud]=ld[ud]}return qa}else if(isString$2(Ra)||isObject$5(Ra))return Ra}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(Ra){const qa={};return Ra.replace(styleCommentRE,"").split(listDelimiterRE).forEach(nd=>{if(nd){const od=nd.split(propertyDelimiterRE);od.length>1&&(qa[od[0].trim()]=od[1].trim())}}),qa}function normalizeClass(Ra){let qa="";if(isString$2(Ra))qa=Ra;else if(isArray$2(Ra))for(let nd=0;nd<Ra.length;nd++){const od=normalizeClass(Ra[nd]);od&&(qa+=od+" ")}else if(isObject$5(Ra))for(const nd in Ra)Ra[nd]&&(qa+=nd+" ");return qa.trim()}function normalizeProps(Ra){if(!Ra)return null;let{class:qa,style:nd}=Ra;return qa&&!isString$2(qa)&&(Ra.class=normalizeClass(qa)),nd&&(Ra.style=normalizeStyle(nd)),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 nd=!0;for(let od=0;nd&&od<Ra.length;od++)nd=looseEqual(Ra[od],qa[od]);return nd}function looseEqual(Ra,qa){if(Ra===qa)return!0;let nd=isDate$1(Ra),od=isDate$1(qa);if(nd||od)return nd&&od?Ra.getTime()===qa.getTime():!1;if(nd=isSymbol(Ra),od=isSymbol(qa),nd||od)return Ra===qa;if(nd=isArray$2(Ra),od=isArray$2(qa),nd||od)return nd&&od?looseCompareArrays(Ra,qa):!1;if(nd=isObject$5(Ra),od=isObject$5(qa),nd||od){if(!nd||!od)return!1;const ld=Object.keys(Ra).length,ud=Object.keys(qa
* @vue/reactivity v3.5.13
* (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,nd;if(this.scopes)for(qa=0,nd=this.scopes.length;qa<nd;qa++)this.scopes[qa].pause();for(qa=0,nd=this.effects.length;qa<nd;qa++)this.effects[qa].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let qa,nd;if(this.scopes)for(qa=0,nd=this.scopes.length;qa<nd;qa++)this.scopes[qa].resume();for(qa=0,nd=this.effects.length;qa<nd;qa++)this.effects[qa].resume()}}run(qa){if(this._active){const nd=activeEffectScope;try{return activeEffectScope=this,qa()}finally{activeEffectScope=nd}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(qa){if(this._active){this._active=!1;let nd,od;for(nd=0,od=this.effects.length;nd<od;nd++)this.effects[nd].stop();for(this.effects.length=0,nd=0,od=this.cleanups.length;nd<od;nd++)this.cleanups[nd]();if(this.cleanups.length=0,this.scopes){for(nd=0,od=this.scopes.length;nd<od;nd++)this.scopes[nd].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!qa){const ld=this.parent.scopes.pop();ld&&ld!==this&&(this.parent.scopes[this.index]=ld,ld.index=this.index)}this.parent=void 0}}}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,nd=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=qa,shouldTrack=nd,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,batchedComputed;function batch(Ra,qa=!1){if(Ra.flags|=8,qa){Ra.next=batchedComputed,batchedComputed=Ra;return}Ra.next=batchedSub,batchedSub=Ra}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let qa=batchedComputed;for(batchedComputed=void 0;qa;){const nd=qa.next;qa.next=void 0,qa.flags&=-9,qa=nd}}let Ra;for(;batchedSub;){let qa=batchedSub;for(batchedSub=void 0;qa;){const nd=qa.next;if(qa.next=void 0,qa.flags&=-9,qa.flags&1)try{qa.trigger()}catch(od){Ra||(Ra=od)}qa=nd}}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,nd=Ra.depsTail,od=nd;for(;od;){const ld=od.prevDep;od.version===-1?(od===nd&&(nd=ld),removeSub(od),removeDep(od)):qa=od,od.dep.activeLink=od.prevActiveLink,od.prevActiveLink=void 0,od=ld}Ra.deps=qa,Ra.depsTail=nd}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;r
* @vue/runtime-core v3.5.13
* (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 nd=stack.length?stack[stack.length-1].component:null,od=nd&&nd.appContext.config.warnHandler,ld=getComponentTrace();if(od)callWithErrorHandling(od,nd,11,[Ra+qa.map(ud=>{var cd,dd;return(dd=(cd=ud.toString)==null?void 0:cd.call(ud))!=null?dd:JSON.stringify(ud)}).join(""),nd&&nd.proxy,ld.map(({vnode:ud})=>`at <${formatComponentName(nd,ud.type)}>`).join(`
`),ld]);else{const ud=[`[Vue warn]: ${Ra}`,...qa];ld.length&&ud.push(`
`,...formatTrace(ld)),console.warn(...ud)}resetTracking(),isWarning=!1}function getComponentTrace(){let Ra=stack[stack.length-1];if(!Ra)return[];const qa=[];for(;Ra;){const nd=qa[0];nd&&nd.vnode===Ra?nd.recurseCount++:qa.push({vnode:Ra,recurseCount:0});const od=Ra.component&&Ra.component.parent;Ra=od&&od.vnode}return qa}function formatTrace(Ra){const qa=[];return Ra.forEach((nd,od)=>{qa.push(...od===0?[]:[`
`],...formatTraceEntry(nd))}),qa}function formatTraceEntry({vnode:Ra,recurseCount:qa}){const nd=qa>0?`... (${qa} recursive calls)`:"",od=Ra.component?Ra.component.parent==null:!1,ld=` at <${formatComponentName(Ra.component,Ra.type,od)}`,ud=">"+nd;return Ra.props?[ld,...formatProps(Ra.props),ud]:[ld+ud]}function formatProps(Ra){const qa=[],nd=Object.keys(Ra);return nd.slice(0,3).forEach(od=>{qa.push(...formatProp(od,Ra[od]))}),nd.length>3&&qa.push(" ..."),qa}function formatProp(Ra,qa,nd){return isString$2(qa)?(qa=JSON.stringify(qa),nd?qa:[`${Ra}=${qa}`]):typeof qa=="number"||typeof qa=="boolean"||qa==null?nd?qa:[`${Ra}=${qa}`]:isRef(qa)?(qa=formatProp(Ra,toRaw(qa.value),!0),nd?qa:[`${Ra}=Ref<`,qa,">"]):isFunction$3(qa)?[`${Ra}=fn${qa.name?`<${qa.name}>`:""}`]:(qa=toRaw(qa),nd?qa:[`${Ra}=`,qa])}function callWithErrorHandling(Ra,qa,nd,od){try{return od?Ra(...od):Ra()}catch(ld){handleError$1(ld,qa,nd)}}function callWithAsyncErrorHandling(Ra,qa,nd,od){if(isFunction$3(Ra)){const ld=callWithErrorHandling(Ra,qa,nd,od);return ld&&isPromise(ld)&&ld.catch(ud=>{handleError$1(ud,qa,nd)}),ld}if(isArray$2(Ra)){const ld=[];for(let ud=0;ud<Ra.length;ud++)ld.push(callWithAsyncErrorHandling(Ra[ud],qa,nd,od));return ld}}function handleError$1(Ra,qa,nd,od=!0){const ld=qa?qa.vnode:null,{errorHandler:ud,throwUnhandledErrorInProduction:cd}=qa&&qa.appContext.config||EMPTY_OBJ;if(qa){let dd=qa.parent;const pd=qa.proxy,fd=`https://vuejs.org/error-reference/#runtime-${nd}`;for(;dd;){const md=dd.ec;if(md){for(let vd=0;vd<md.length;vd++)if(md[vd](Ra,pd,fd)===!1)return}dd=dd.parent}if(ud){pauseTracking(),callWithErrorHandling(ud,null,10,[Ra,pd,fd]),resetTracking();return}}logError(Ra,nd,ld,od,cd)}function logError(Ra,qa,nd,od=!0,ld=!1){if(ld)throw Ra;console.error(Ra)}const queue$2=[];let flushIndex=-1;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=flushIndex+1,nd=queue$2.length;for(;qa<nd;){const od=qa+nd>>>1,ld=queue$2[od],ud=getId(ld);ud<Ra||ud===Ra&&ld.flags&2?qa=od+1:nd=od}return qa}function queueJob(Ra){if(!(Ra.flags&1)){const qa=getId(Ra),nd=queue$2[queue$2.length-1];!nd||!(Ra.flags&2)&&qa>=getId(nd)?queue$2.push(Ra):queue$2.splice(findInsertionIndex(qa),0,Ra),Ra.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(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,nd=flushIndex+1){for(;nd<queue$2.length;nd++){const od=queue$2[nd];if(od&&od.flags&2){if(Ra&&od.id!==Ra.uid)continue;queue$2.splice(nd,1),nd--,od.flags&4&&(od.flags&=-2),od(),od.flags&4||(od.flags&=-2)}}}function flushPostFlushCbs(Ra){if(pendingPostFlushCbs.length){const qa=[...new Set(pendingPostFlushCbs)].sort((nd,od)=>getId(nd)-getId(od));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...qa);return}for(activePostFlushCbs=qa,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const nd=activePostFlushCbs[postFlushIndex];nd.flags&4&&(nd.flags&=-2),nd.flags&8||nd(),nd.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId=Ra=>Ra.id==null?Ra.flags&2?-1:1/0:Ra.id;function flushJobs(Ra){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&4||(qa.flags&=-2))}}finally{for(;flushIndex<queue$2.length;flushIndex++){const qa=queue$2[flushIndex];qa&&(qa.flags&=-2)}flushIndex=-1,queue$2.length=0,flushPostFlushCbs(),currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&flushJobs()}}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(Ra)
* @vue/runtime-dom v3.5.13
* (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,nd)=>{qa.insertBefore(Ra,nd||null)},remove:Ra=>{const qa=Ra.parentNode;qa&&qa.removeChild(Ra)},createElement:(Ra,qa,nd,od)=>{const ld=qa==="svg"?doc.createElementNS(svgNS,Ra):qa==="mathml"?doc.createElementNS(mathmlNS,Ra):nd?doc.createElement(Ra,{is:nd}):doc.createElement(Ra);return Ra==="select"&&od&&od.multiple!=null&&ld.setAttribute("multiple",od.multiple),ld},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,nd,od,ld,ud){const cd=nd?nd.previousSibling:qa.lastChild;if(ld&&(ld===ud||ld.nextSibling))for(;qa.insertBefore(ld.cloneNode(!0),nd),!(ld===ud||!(ld=ld.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(od==="svg"?`<svg>${Ra}</svg>`:od==="mathml"?`<math>${Ra}</math>`:Ra);const dd=templateContainer.content;if(od==="svg"||od==="mathml"){const pd=dd.firstChild;for(;pd.firstChild;)dd.appendChild(pd.firstChild);dd.removeChild(pd)}qa.insertBefore(dd,nd)}return[cd?cd.nextSibling:qa.firstChild,nd?nd.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(nd=>nd(...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 bf in Ra)bf in DOMTransitionPropsValidators||(qa[bf]=Ra[bf]);if(Ra.css===!1)return qa;const{name:nd="v",type:od,duration:ld,enterFromClass:ud=`${nd}-enter-from`,enterActiveClass:cd=`${nd}-enter-active`,enterToClass:dd=`${nd}-enter-to`,appearFromClass:pd=ud,appearActiveClass:fd=cd,appearToClass:md=dd,leaveFromClass:vd=`${nd}-leave-from`,leaveActiveClass:Ad=`${nd}-leave-active`,leaveToClass:Nd=`${nd}-leave-to`}=Ra,Id=normalizeDuration(ld),kd=Id&&Id[0],jd=Id&&Id[1],{onBeforeEnter:Fd,onEnter:Md,onEnterCancelled:Ld,onLeave:Hd,onLeaveCancelled:Gd,onBeforeAppear:Vd=Fd,onAppear:Qd=Md,onAppearCancelled:mf=Ld}=qa,Yd=(bf,gf,Ef,yf)=>{bf._enterCancelled=yf,removeTransitionClass(bf,gf?md:dd),removeTransitionClass(bf,gf?fd:cd),Ef&&Ef()},Zd=(bf,gf)=>{bf._isLeaving=!1,removeTransitionClass(bf,vd),removeTransitionClass(bf,Nd),removeTransitionClass(bf,Ad),gf&&gf()},Kd=bf=>(gf,Ef)=>{const yf=bf?Qd:Md,xf=()=>Yd(gf,bf,Ef);callHook(yf,[gf,xf]),nextFrame(()=>{removeTransitionClass(gf,bf?pd:ud),addTransitionClass(gf,bf?md:dd),hasExplicitCallback(yf)||whenTransitionEnds(gf,od,kd,xf)})};return extend$3(qa,{onBeforeEnter(bf){callHook(Fd,[bf]),addTransitionClass(bf,ud),addTransitionClass(bf,cd)},onBeforeAppear(bf){callHook(Vd,[bf]),addTransitionClass(bf,pd),addTransitionClass(bf,fd)},onEnter:Kd(!1),onAppear:Kd(!0),onLeave(bf,gf){bf._isLeaving=!0;const Ef=()=>Zd(bf,gf);addTransitionClass(bf,vd),bf._enterCancelled?(addTransitionClass(bf,Ad),forceReflow()):(forceReflow(),addTransitionClass(bf,Ad)),nextFrame(()=>{bf._isLeaving&&(removeTransitionClass(bf,vd),addTransitionClass(bf,Nd),hasExplici
`)].join(`
`))}return()=>ud.value||ld.value||dd.value?h$1(qa.default({present:dd})[0],{ref:md=>{const vd=$e$4(md);return typeof(vd==null?void 0:vd.hasAttribute)>"u"||(vd!=null&&vd.hasAttribute("data-radix-popper-content-wrapper")?cd.value=vd.firstElementChild:cd.value=vd),vd}}):null}}),[et$5,Xi$1]=Q$6("DialogRoot"),Zi$2=defineComponent({inheritAttrs:!1,__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 nd=Ra,od=ne$6(nd,"open",qa,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),ld=ref$1(),ud=ref$1(),{modal:cd}=toRefs(nd);return Xi$1({open:od,modal:cd,openModal:()=>{od.value=!0},onOpenChange:dd=>{od.value=dd},onOpenToggle:()=>{od.value=!od.value},contentId:"",titleId:"",descriptionId:"",triggerElement:ld,contentElement:ud}),(dd,pd)=>renderSlot(dd.$slots,"default",{open:unref(od)})}}),Ji$3=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=et$5(),{forwardRef:od,currentElement:ld}=R$6();return nd.contentId||(nd.contentId=he$4(void 0,"radix-vue-dialog-content")),onMounted(()=>{nd.triggerElement.value=ld.value}),(ud,cd)=>(openBlock(),createBlock(unref(O$3),mergeProps(qa,{ref:unref(od),type:ud.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":unref(nd).open.value||!1,"aria-controls":unref(nd).open.value?unref(nd).contentId:void 0,"data-state":unref(nd).open.value?"open":"closed",onClick:unref(nd).onOpenToggle}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),nt$4=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=ja$1();return(nd,od)=>unref(qa)||nd.forceMount?(openBlock(),createBlock(Teleport,{key:0,to:nd.to,disabled:nd.disabled},[renderSlot(nd.$slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),xv=defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Qi$1="dismissableLayer.pointerDownOutside",eu$2="dismissableLayer.focusOutside";function zl$3(Ra,qa){const nd=qa.closest("[data-dismissable-layer]"),od=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),ld=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(nd&&od===nd||ld.indexOf(od)<ld.indexOf(nd))}function Kl$3(Ra,qa){var nd;const od=((nd=qa==null?void 0:qa.value)==null?void 0:nd.ownerDocument)??(globalThis==null?void 0:globalThis.document),ld=ref$1(!1),ud=ref$1(()=>{});return watchEffect(cd=>{if(!qe$3)return;const dd=async fd=>{const md=fd.target;if(qa!=null&&qa.value){if(zl$3(qa.value,md)){ld.value=!1;return}if(fd.target&&!ld.value){let vd=function(){Ht$4(Qi$1,Ra,Ad)};const Ad={originalEvent:fd};fd.pointerType==="touch"?(od.removeEventListener("click",ud.value),ud.value=vd,od.addEventListener("click",ud.value,{once:!0})):vd()}else od.removeEventListener("click",ud.value);ld.value=!1}},pd=window.setTimeout(()=>{od.addEventListener("pointerdown",dd)},0);cd(()=>{window.clearTimeout(pd),od.removeEventListener("pointerdown",dd),od.removeEventListener("click",ud.value)})}),{onPointerDownCapture:()=>ld.value=!0}}function Hl$3(Ra,qa){var nd;const od=((nd=qa==null?void 0:qa.value)==null?void 0:nd.ownerDocument)??(globalThis==null?void 0:globalThis.document),ld=ref$1(!1);return watchEffect(ud=>{if(!qe$3)return;const cd=async dd=>{qa!=null&&qa.value&&(await nextTick$1(),!(!qa.value||zl$3(qa.value,dd.target))&&dd.target&&!ld.value&&Ht$4(eu$2,Ra,{originalEvent:dd}))};od.addEventListener("focusin",cd),ud(()=>od.removeEventListener("focusin",cd))}),{onFocusCapture:()=>ld.value=!0,onBlurCapture:()=>ld.value=!1}}const je$7=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}
* @license lucide-vue-next v0.462.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.462.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.462.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:nd,color:od,iconNode:ld,name:ud,class:cd,...dd},{slots:pd})=>h$1("svg",{...defaultAttributes,width:Ra||defaultAttributes.width,height:Ra||defaultAttributes.height,stroke:od||defaultAttributes.stroke,"stroke-width":nd?Number(qa)*24/Number(Ra):qa,class:["lucide",`lucide-${toKebabCase(ud??"icon")}`],...dd},[...ld.map(fd=>h$1(...fd)),...pd.default?[pd.default()]:[]]);/**
* @license lucide-vue-next v0.462.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)=>(nd,{slots:od})=>h$1(Icon,{...nd,iconNode:qa,name:Ra},od);/**
* @license lucide-vue-next v0.462.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.462.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.462.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.462.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.462.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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Download=createLucideIcon("DownloadIcon",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ellipsis=createLucideIcon("EllipsisIcon",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const FileCode=createLucideIcon("FileCodeIcon",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Info=createLucideIcon("InfoIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Minus=createLucideIcon("MinusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
* @license lucide-vue-next v0.462.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.462.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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PanelLeftClose=createLucideIcon("PanelLeftCloseIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PanelLeftOpen=createLucideIcon("PanelLeftOpenIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PenLine=createLucideIcon("PenLineIcon",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Plus=createLucideIcon("PlusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-vue-next v0.462.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.462.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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Trash=createLucideIcon("TrashIcon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Upload=createLucideIcon("UploadIcon",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
* @license lucide-vue-next v0.462.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$6=createLucideIcon("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_sfc_main$1a=defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:cd,...dd}=nd;return dd}),ud=xe$5(ld,od);return(cd,dd)=>(openBlock(),createBlock(unref(xv),null,{default:withCtx(()=>[createVNode(unref(_u$3),{class:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"}),createVNode(unref(Cu$3),mergeProps(unref(ud),{class:unref(cn$4)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",nd.class)}),{default:withCtx(()=>[renderSlot(cd.$slots,"default"),createVNode(unref(Ul$3),{class:"data-[state=open]:bg-accent ring-offset-background data-[state=open]:text-muted-foreground focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity disabled:pointer-events-none hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2"},{default:withCtx(()=>[createVNode(unref(X$6),{class:"h-4 w-4"}),dd[0]||(dd[0]=createBaseVNode("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),_sfc_main$19=defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Su$2),mergeProps(unref(od),{class:unref(cn$4)("text-sm text-muted-foreground",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$18=defineComponent({__name:"DialogFooter",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$17=defineComponent({__name:"DialogHeader",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)("flex flex-col gap-y-1.5 text-center sm:text-left",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$16=defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(xu$2),mergeProps(unref(od),{class:unref(cn$4)("text-lg font-semibold leading-none tracking-tight",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$15=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Ji$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}});function tryOnScopeDispose(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function createEventHook(){const Ra=new Set,qa=ld=>{Ra.delete(ld)};return{on:ld=>{Ra.add(ld);const ud=()=>qa(ld);return tryOnScopeDispose(ud),{off:ud}},off:qa,trigger:(...ld)=>Promise.all(Array.from(Ra).map(ud=>ud(...ld)))}}function toValue(Ra){return typeof Ra=="function"?Ra():unref(Ra)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef=Ra=>typeof R
欢迎来到 Markdown 的奇妙世界无论你是写作爱好者开发者博主还是想要简单记录点什么的人Markdown 都能成为你新的好伙伴它不仅让写作变得简单明了还能轻松地将内容转化为漂亮的网页格式今天我们将全面探讨 Markdown 的基础和进阶语法让你在这个过程中充分享受写作的乐趣
Markdown 是一种轻量级标记语言用于格式化纯文本它以简单直观的语法而著称可以快速地生成 HTMLMarkdown 是写作与代码的完美结合既简单又强大
## Markdown 基础语法
### 1. 标题让你的内容层次分明
\`#\` 号来创建标题。标题从 \`#\` 开始,\`#\` 的数量表示标题的级别。
\`\`\`markdown
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
\`\`\`
以上代码将渲染出一组层次分明的标题使你的文章井井有条
### 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 LR
A[GraphCommand] --> B[update]
A --> C[goto]
A --> D[send]
B --> B1[更新状态]
C --> C1[流程控制]
D --> D1[消息传递]
\`\`\`
\`\`\`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/discussions/426
*/
/* 一级标题样式 */
h1 {
}
/* 二级标题样式 */
h2 {
}
/* 三级标题样式 */
h3 {
}
/* 四级标题样式 */
h4 {
}
/* 五级标题样式 */
h5 {
}
/* 六级标题样式 */
h6 {
}
/* 图片样式 */
image {
}
/* 引用样式 */
blockquote {
}
/* 引用段落样式 */
blockquote_p {
}
/* GFM note 样式 */
blockquote_note {
}
/* GFM tip 样式 */
blockquote_tip {
}
/* GFM important 样式 */
blockquote_important {
}
/* GFM warning 样式 */
blockquote_warning {
}
/* GFM caution 样式 */
blockquote_caution {
}
/* GFM 通用标题 */
blockquote_title {
}
/* GFM note 标题 */
blockquote_title_note {
}
/* GFM tip 标题 */
blockquote_title_tip {
}
/* GFM important 标题 */
blockquote_title_important {
}
/* GFM warning 标题 */
blockquote_title_warning {
}
/* GFM caution 标题 */
blockquote_title_caution {
}
/* GFM note 段落样式 */
blockquote_p_note {
}
/* GFM tip 段落样式 */
blockquote_p_tip {
}
/* GFM important 段落样式 */
blockquote_p_important {
}
/* GFM warning 段落样式 */
blockquote_p_warning {
}
/* GFM caution 段落样式 */
blockquote_p_caution {
}
/* 段落样式 */
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,nd=ieee754$1,od=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=md,Ra.SlowBuffer=Gd,Ra.INSPECT_MAX_BYTES=50;const ld=2147483647;Ra.kMaxLength=ld;const{Uint8Array:ud,ArrayBuffer:cd,SharedArrayBuffer:dd}=globalThis;md.TYPED_ARRAY_SUPPORT=pd(),!md.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 pd(){try{const ph=new ud(1),Rf={foo:function(){return 42}};return Object.setPrototypeOf(Rf,ud.prototype),Object.setPrototypeOf(ph,Rf),ph.foo()===42}catch{return!1}}Object.defineProperty(md.prototype,"parent",{enumerable:!0,get:function(){if(md.isBuffer(this))return this.buffer}}),Object.defineProperty(md.prototype,"offset",{enumerable:!0,get:function(){if(md.isBuffer(this))return this.byteOffset}});function fd(ph){if(ph>ld)throw new RangeError('The value "'+ph+'" is invalid for option "size"');const Rf=new ud(ph);return Object.setPrototypeOf(Rf,md.prototype),Rf}function md(ph,Rf,wf){if(typeof ph=="number"){if(typeof Rf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Id(ph)}return vd(ph,Rf,wf)}md.poolSize=8192;function vd(ph,Rf,wf){if(typeof ph=="string")return kd(ph,Rf);if(cd.isView(ph))return Fd(ph);if(ph==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ph);if(fm(ph,cd)||ph&&fm(ph.buffer,cd)||typeof dd<"u"&&(fm(ph,dd)||ph&&fm(ph.buffer,dd)))return Md(ph,Rf,wf);if(typeof ph=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ch=ph.valueOf&&ph.valueOf();if(ch!=null&&ch!==ph)return md.from(ch,Rf,wf);const yh=Ld(ph);if(yh)return yh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ph[Symbol.toPrimitive]=="function")return md.from(ph[Symbol.toPrimitive]("string"),Rf,wf);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ph)}md.from=function(ph,Rf,wf){return vd(ph,Rf,wf)},Object.setPrototypeOf(md.prototype,ud.prototype),Object.setPrototypeOf(md,ud);function Ad(ph){if(typeof ph!="number")throw new TypeError('"size" argument must be of type number');if(ph<0)throw new RangeError('The value "'+ph+'" is invalid for option "size"')}function Nd(ph,Rf,wf){return Ad(ph),ph<=0?fd(ph):Rf!==void 0?typeof wf=="string"?fd(ph).fill(Rf,wf):fd(ph).fill(Rf):fd(ph)}md.alloc=function(ph,Rf,wf){return Nd(ph,Rf,wf)};function Id(ph){return Ad(ph),fd(ph<0?0:Hd(ph)|0)}md.allocUnsafe=function(ph){return Id(ph)},md.allocUnsafeSlow=function(ph){return Id(ph)};function kd(ph,Rf){if((typeof Rf!="string"||Rf==="")&&(Rf="utf8"),!md.isEncoding(Rf))throw new TypeError("Unknown encoding: "+Rf);const wf=Vd(ph,Rf)|0;let ch=fd(wf);const yh=ch.write(ph,Rf);return yh!==wf&&(ch=ch.slice(0,yh)),ch}function jd(ph){const Rf=ph.length<0?0:Hd(ph.length)|0,wf=fd(Rf);for(let ch=0;ch<Rf;ch+=1)wf[ch]=ph[ch]&255;return wf}function Fd(ph){if(fm(ph,ud)){const Rf=new ud(ph);return Md(Rf.buffer,Rf.byteOffset,Rf.byteLength)}return jd(ph)}function Md(ph,Rf,wf){if(Rf<0||ph.byteLength<Rf)throw new RangeError('"offset" is outside of buffer bounds');if(ph.byteLength<Rf+(wf||0))throw new RangeError('"length" is outside of buffer bounds');let ch;return Rf===void 0&&wf===void 0?ch=new ud(ph):wf===void 0?ch=new ud(ph,Rf):ch=new ud(ph,Rf,wf),Object.setPrototypeOf(ch,md.prototype),ch}function Ld(ph){if(md.isBuffer(ph)){const Rf=Hd(ph.length)|0,wf=fd(Rf);return wf.length===0||ph.copy(wf,0,0,Rf),wf}if(ph.length!==void 0)return typeof ph.length!="number"||Nm(ph.length)?fd(0):jd(ph);if(ph.type==="Buffer"&&Array.isArray(ph.data))return jd(ph.data)}function Hd(ph){if(ph>=ld)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ld.toString(16)+" bytes");return ph|0}function Gd(ph){return+ph!
`: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 nd=[Ra];let{prev:od,next:ld}=Ra;for(;od!=null;)nd.unshift(od),{prev:od}=od;for(;ld!=null;)nd.push(ld),{next:ld}=ld;return nd}function getAttributeValue(Ra,qa){var nd;return(nd=Ra.attribs)===null||nd===void 0?void 0:nd[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,nd=qa.lastIndexOf(Ra);nd>=0&&qa.splice(nd,1)}Ra.next=null,Ra.prev=null,Ra.parent=null}function replaceElement(Ra,qa){const nd=qa.prev=Ra.prev;nd&&(nd.next=qa);const od=qa.next=Ra.next;od&&(od.prev=qa);const ld=qa.parent=Ra.parent;if(ld){const ud=ld.children;ud[ud.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 nd=Ra.children[Ra.children.length-2];nd.next=qa,qa.prev=nd}else qa.prev=null}function append$3(Ra,qa){removeElement(qa);const{parent:nd}=Ra,od=Ra.next;if(qa.next=od,qa.prev=Ra,Ra.next=qa,qa.parent=nd,od){if(od.prev=qa,nd){const ld=nd.children;ld.splice(ld.lastIndexOf(od),0,qa)}}else nd&&nd.children.push(qa)}function prependChild(Ra,qa){if(removeElement(qa),qa.parent=Ra,qa.prev=null,Ra.children.unshift(qa)!==1){const nd=Ra.children[1];nd.prev=qa,qa.next=nd}else qa.next=null}function prepend$1(Ra,qa){removeElement(qa);const{parent:nd}=Ra;if(nd){const od=nd.children;od.splice(od.indexOf(Ra),0,qa)}Ra.prev&&(Ra.prev.next=qa),qa.parent=nd,qa.prev=Ra.prev,qa.next=Ra,Ra.prev=qa}function filter$5(Ra,qa,nd=!0,od=1/0){return find$3(Ra,Array.isArray(qa)?qa:[qa],nd,od)}function find$3(Ra,qa,nd,od){const ld=[],ud=[qa],cd=[0];for(;;){if(cd[0]>=ud[0].length){if(cd.length===1)return ld;ud.shift(),cd.shift();continue}const dd=ud[0][cd[0]++];if(Ra(dd)&&(ld.push(dd),--od<=0))return ld;nd&&hasChildren(dd)&&dd.children.length>0&&(cd.unshift(0),ud.unshift(dd.children))}}function findOneChild(Ra,qa){return qa.find(Ra)}function findOne(Ra,qa,nd=!0){let od=null;for(let ld=0;ld<qa.length&&!od;ld++){const ud=qa[ld];if(isTag(ud))Ra(ud)?od=ud:nd&&ud.children.length>0&&(od=findOne(Ra,ud.children,!0));else continue}return od}function existsOne(Ra,qa){return qa.some(nd=>isTag(nd)&&(Ra(nd)||existsOne(Ra,nd.children)))}function findAll(Ra,qa){const nd=[],od=[qa],ld=[0];for(;;){if(ld[0]>=od[0].length){if(od.length===1)return nd;od.shift(),ld.shift();continue}const ud=od[0][ld[0]++];isTag(ud)&&(Ra(ud)&&nd.push(ud),ud.children.length>0&&(ld.unshift(0),od.unshift(ud.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"?nd=>isTag(nd)&&qa(nd.attribs[Ra]):nd=>isTag(nd)&&nd.attribs[Ra]===qa}function combineFuncs(Ra,qa){return nd=>Ra(nd)||qa(nd)}function compileTest(Ra){const qa=Object.keys(Ra).map(nd=>{const od=Ra[nd];return Object.prototype.hasOwnProperty.call(Checks,nd)?Checks[nd](od):getAttribCheck(nd,od)});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:nd=>qa.isTag(nd)&&Ra(nd)}function getNextSiblings(Ra,qa){const nd=qa.getSiblings(Ra);if(nd.length<=1)return[];const od=nd.indexOf(Ra);return od<0||od===nd.length-1?[]:nd.slice(od+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,nd,od,ld)=>{const ud=ld(qa,copyOptions(nd),od);return ud===boolbase$1.trueFunc?Ra:ud===boolbase$1.falseFunc?boolbase$1.falseFunc:cd=>ud(cd)&&Ra(cd)},subselects={is:is$3,matches:is$3,where:is$3,not(Ra,qa,nd,od,ld){const ud=ld(qa,copyOptions(nd),od);return ud===boolbase$1.falseFunc?Ra:ud===boolbase$1.trueFunc?boolbase$1.falseFunc:cd=>!ud(cd)&&Ra(cd)},has(Ra,qa,nd,od,ld){const{adapter:ud}=nd,cd=copyOptions(nd);cd.relativeSelector=!0;const dd=qa.some(md=>md.some(isTraversal))?[PLACEHOLDER_ELEMENT]:void 0,pd=ld(qa,cd,dd);if(pd===boolbase$1.falseFunc)return boolbase$1.falseFunc;const fd=ensureIsTag(pd,ud);if(dd&&pd!==boolbase$1.trueFunc){const{shouldTestNextSiblings:md=!1}=pd;return vd=>{if(!Ra(vd))return!1;dd[0]=vd;const Ad=ud.getChildren(vd),Nd=md?[...Ad,...getNextSiblings(vd,ud)]:Ad;return ud.existsOne(fd,Nd)}}return md=>Ra(md)&&ud.existsOne(fd,ud.getChildren(md))}};function compilePseudoSelector(Ra,qa,nd,od,ld){var ud;const{name:cd,data:dd}=qa;if(Array.isArray(dd)){if(!(cd in subselects))throw new Error(`Unknown pseudo-class :${cd}(${dd})`);return subselects[cd](Ra,dd,nd,od,ld)}const pd=(ud=nd.pseudos)===null||ud===void 0?void 0:ud[cd],fd=typeof pd=="string"?pd:aliases[cd];if(typeof fd=="string"){if(dd!=null)throw new Error(`Pseudo ${cd} doesn't have any arguments`);const md=parse$7(fd);return subselects.is(Ra,md,nd,od,ld)}if(typeof pd=="function")return verifyPseudoArgs(pd,cd,dd,1),md=>pd(md,dd)&&Ra(md);if(cd in filters)return filters[cd](Ra,dd,nd,od);if(cd in pseudos){const md=pseudos[cd];return verifyPseudoArgs(md,cd,dd,2),vd=>md(vd,nd,dd)&&Ra(vd)}throw new Error(`Unknown pseudo-class :${cd}`)}function getElementParent(Ra,qa){const nd=qa.getParent(Ra);return nd&&qa.isTag(nd)?nd:null}function compileGeneralSelector(Ra,qa,nd,od,ld){const{adapter:ud,equals:cd}=nd;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(!nd.xmlMode||nd.lowerCaseAttributeNames)&&(qa.name=qa.name.toLowerCase()),attributeRules[qa.action](Ra,qa,nd)}case SelectorType.Pseudo:return compilePseudoSelector(Ra,qa,nd,od,ld);case SelectorType.Tag:{if(qa.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:dd}=qa;return(!nd.xmlMode||nd.lowerCaseTags)&&(dd=dd.toLowerCase()),function(fd){return ud.getName(fd)===dd&&Ra(fd)}}case SelectorType.Descendant:{if(nd.cacheResults===!1||typeof WeakSet>"u")return function(fd){let md=fd;for(;md=getElementParent(md,ud);)if(Ra(md))return!0;return!1};const dd=new WeakSet;return function(fd){let md=fd;for(;md=getElementParent(md,ud);)if(!dd.has(
`)})):{name:ld,value:ud.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 nd in Ra){const od=Ra[nd],ld=Array.isArray(od),{selector:ud,value:cd}=getExtractDescr(ld?od[0]:od),dd=typeof cd=="function"?cd:typeof cd=="string"?pd=>this._make(pd).prop(cd):pd=>this._make(pd).extract(cd);if(ld)qa[nd]=this._findBySelector(ud,Number.POSITIVE_INFINITY).map((pd,fd)=>dd(fd,nd,qa)).get();else{const pd=this._findBySelector(ud,1);qa[nd]=pd.length>0?dd(pd[0],nd,qa):void 0}}return qa}const Extract=Object.freeze(Object.defineProperty({__proto__:null,extract},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(qa,nd,od){if(this.length=0,this.options=od,this._root=nd,qa){for(let ld=0;ld<qa.length;ld++)this[ld]=qa[ld];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 nd(od,ld,ud=!0){if(od==null)throw new Error("cheerio.load() expects a string");const cd=flattenOptions(ld),dd=Ra(od,cd,ud,null);class pd extends Cheerio{_make(vd,Ad){const Nd=fd(vd,Ad);return Nd.prevObject=this,Nd}_parse(vd,Ad,Nd,Id){return Ra(vd,Ad,Nd,Id)}_render(vd){return qa(vd,this.options)}}function fd(md,vd,Ad=dd,Nd){if(md&&isCheerio(md))return md;const Id=flattenOptions(Nd,cd),kd=typeof Ad=="string"?[Ra(Ad,Id,!1,null)]:"length"in Ad?Ad:[Ad],jd=isCheerio(kd)?kd:new pd(kd,null,Id);if(jd._root=jd,!md)return new pd(void 0,jd,Id);const Fd=typeof md=="string"&&isHtml(md)?Ra(md,Id,!1,null).children:isNode$1(md)?[md]:Array.isArray(md)?md:void 0,Md=new pd(Fd,jd,Id);if(Fd)return Md;if(typeof md!="string")throw new TypeError("Unexpected type of selector");let Ld=md;const Hd=vd?typeof vd=="string"?isHtml(vd)?new pd([Ra(vd,Id,!1,null)],jd,Id):(Ld=`${vd} ${Ld}`,jd):isCheerio(vd)?vd:new pd(Array.isArray(vd)?vd:[vd],jd,Id):jd;return Hd?Hd.find(Ld):Md}return Object.assign(fd,staticMethods,{load:nd,_root:dd,_options:cd,fn:pd.prototype,prototype:pd.prototype}),fd}}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.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_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_Z=122]="LATIN_SMALL_Z"})(CODE_POINTS||(CODE_POINTS={}));const SEQUENCES={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function isSurrogate(Ra){return Ra>=55296&&Ra<=57343}function isSurrogatePair(Ra){return Ra>=56320&&Ra<=57343}function getSurrogatePairCodePoint(Ra,qa){return(Ra-55296)*
`)}})(debug);var debugExports=debug.exports;(function(Ra,qa){debugExports("lex"),Ra.exports=nd;function nd(od){var ld="",ud,cd=0,dd=-1,pd=0,fd=1,md="before-selector",vd=[md],Ad={},Nd=[],Id=["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 kd(){return mf(),od[dd]}function jd(Af){return Af?vd[vd.length-1-Af]:md}function Fd(Af){var Lf=dd+1;return Af===od.slice(Lf,Lf+Af.length)}function Md(Af){var Lf=od.slice(dd).indexOf(Af);return Lf>0?Lf:!1}function Ld(Af){return Af===Hd(1)}function Hd(Af){return od[dd+(Af||1)]}function Gd(){var Af=vd.pop();return md=vd[vd.length-1],Af}function Vd(Af){return md=Af,vd.push(md),vd.length}function Qd(Af){var Lf=md;return vd[vd.length-1]=md=Af,Lf}function mf(Af){if((Af||1)==1)od[dd]==`
`?(fd++,cd=1):cd++,dd++;else{var Lf=od.slice(dd,dd+Af).split(`
`);Lf.length>1&&(fd+=Lf.length-1,cd=1),cd+=Lf[Lf.length-1].length,dd=dd+Af}}function Yd(){Ad.end={line:fd,col:cd},Nd.push(Ad),ld="",Ad={}}function Zd(Af){Ad={type:Af,start:{line:fd,col:cd}}}for(;ud=kd();)switch(ud){case" ":switch(jd()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":ld+=ud;break}break;case`
`:case" ":case"\r":case"\f":switch(jd()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":ld+=ud;break;case"at-value":ud===`
`&&(Ad.value=ld.trim(),Yd(),Gd());break}break;case":":switch(jd()){case"name":Ad.name=ld.trim(),ld="",Qd("before-value");break;case"before-selector":ld+=ud,Zd("selector"),Vd("selector");break;case"before-value":Qd("value"),ld+=ud;break;default:ld+=ud;break}break;case";":switch(jd()){case"name":case"before-value":case"value":ld.trim().length>0&&(Ad.value=ld.trim(),Yd()),Qd("before-name");break;case"value-paren":ld+=ud;break;case"at-value":Ad.value=ld.trim(),Yd(),Gd();break;case"before-name":break;default:ld+=ud;break}break;case"{":switch(jd()){case"selector":if(Hd(-1)==="\\"){ld+=ud;break}Ad.text=ld.trim(),Yd(),Qd("before-name"),pd=pd+1;break;case"at-group":switch(Ad.name=ld.trim(),Ad.type){case"font-face":case"viewport":case"page":Vd("before-name");break;default:Vd("before-selector")}Yd(),pd=pd+1;break;case"name":case"at-rule":Ad.name=ld.trim(),Yd(),Vd("before-name"),pd=pd+1;break;case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":Qd("value"),ld+=ud;break}break;case"}":switch(jd()){case"before-name":case"name":case"before-value":case"value":ld&&(Ad.value=ld.trim()),Ad.name&&Ad.value&&Yd(),Zd("end"),Yd(),Gd(),jd()==="at-group"&&(Zd("at-group-end"),Yd(),Gd()),pd>0&&(pd=pd-1);break;case"at-group":case"before-selector":case"selector":if(Hd(-1)==="\\"){ld+=ud;break}pd>0&&jd(1)==="at-group"&&(Zd("at-group-end"),Yd()),pd>1&&Gd(),pd>0&&(pd=pd-1);break;case"double-string":case"single-string":case"comment":ld+=ud;break}break;case'"':case"'":switch(jd()){case"double-string":ud==='"'&&Hd(-1)!=="\\"&&Gd();break;case"single-string":ud==="'"&&Hd(-1)!=="\\"&&Gd();break;case"before-at-value":Qd("at-value"),Vd(ud==='"'?"double-string":"single-string");break;case"before-value":Qd("value"),Vd(ud==='"'?"double-string":"single-string");break;case"comment":break;default:Hd(-1)!=="\\"&&Vd(ud==='"'?"double-string":"single-string")}ld+=ud;break;case"/":switch(jd()){case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":case"selector":case"name":case"value":if(Ld("*")){var Kd=Md("*/");Kd&&mf(Kd+1)}else jd()=="before-value"&&Qd("value"),ld+=ud;break;default:Ld("*")?(Zd("comment"),Vd("comment"),mf()):ld+=ud;break}break;case"*":switch(jd()){case"comment":Ld("/")?(Ad.text=ld,mf(),Yd(),Gd()):ld+=ud;break;case"before-selector":ld+=ud,Zd("selector"),Vd("selector");break;case"before-value":Qd("value"),ld+=ud;break;default:ld+=ud}break;case"@":switch(jd()){case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":Qd("value"),ld+=ud;break;default:for(var bf=!1,gf,Ef,yf=0,xf=Id.length;!bf&&yf<xf;++yf)Ef=Id[yf],gf=Ef.name||Ef,Fd(gf)&&(bf=!0,Zd(gf),Vd(Ef.state||"at-group"),mf(gf.length),Ef.prefix&&(Ad.prefix=Ef.prefix),Ef.type&&(Ad.type=Ef.type));bf||(ld+=ud);break}break;case"(":switch(jd()){case"value":Vd("value-paren");break;case"before-value":Qd("value");break}ld+=ud;break;case")":switch(jd()){case"value-paren":Gd();break;case"before-value":Qd("value");break}ld+=ud;break;default:switch(jd()){case"before-selector":Zd("selector"),Vd("selector");break;case"before-name":Zd("property"),Qd("name");break;case"before-value":Qd("value");break;case"before-at-value":Qd("at-value");break}ld+=ud;break}return Nd}})(lexer);var lexerExports=lexer.exports,parser$2={exports:{}};(function(Ra,qa){debugExports("parse");var nd=lexerExports;Ra.exports=dd;var od,ld,ud,cd;function dd(Gd,Vd){Vd||(Vd={}),od=!!Vd.comments,ud=!!Vd.position,ld=0,cd=Array.isArray(Gd)?Gd.slice():nd(Gd);for(var Qd,mf=[],Yd;Yd=fd();)Qd=Fd(Yd),Qd&&mf.push(Qd);return{type:"stylesheet",stylesheet:{rules:mf}}}function pd(Gd,Vd){Vd||(Vd={});for(var Qd,mf=["type","name","value"],Yd={},Zd=0;Zd<mf.length;++Zd)Qd=mf[Zd],Gd[Qd]&&(Yd[Qd]=Vd[Qd]||Gd[Qd]);for(mf=Object.keys(Vd),Zd=0;Zd<mf.length;++Zd)Qd=mf[Zd],Yd[Qd]||(Yd[Qd]=Vd[Qd]);return ud&&(Yd.position={start:Gd.start,end:Gd.end}),Yd}function fd(){var Gd=cd.shift();return Gd}function md(Gd){ld=ld+1;var Vd={};switch(Gd.type){case"font-face":case"viewport":Vd.declarations=Ld();break;case"page":Vd.prefix=Gd.prefix,Vd.declarations=Ld();break;default:Vd.prefix=Gd.prefix,Vd.rul
`,dd=" ");var Vd=Id(Hd.stylesheet.rules,Md).join(`
`).trim();return Vd}function fd(Hd){if(Hd){ud+=Hd;return}return od?"":Array(ud).join(ld||"")}function md(Hd){return"@"+Hd.type+" "+Hd.value+";"+cd}function vd(Hd){var Gd="",Vd=Hd.prefix||"";Hd.name&&(Gd=" "+Hd.name);var Qd=Hd.type!=="page";return"@"+Vd+Hd.type+Gd+dd+kd(Hd,Qd)+cd}function Ad(Hd){return nd?"/*"+(Hd.text||"")+"*/"+cd:""}function Nd(Hd){var Gd;return Hd.selectors?Gd=Hd.selectors.join(","+cd):(Gd="@"+Hd.type,Gd+=Hd.name?" "+Hd.name:""),fd()+Gd+dd+kd(Hd)+cd}function Id(Hd,Gd){return Hd.reduce(function(Vd,Qd){var mf=Qd.type==="comment"?Ad(Qd):Gd(Qd);return mf&&Vd.push(mf),Vd},[])}function kd(Hd,Gd){var Vd=Hd.declarations,Qd=Fd;return Hd.rules&&(Vd=Hd.rules,Qd=Nd),Vd=jd(Vd,Qd),Vd&&(Vd=cd+Vd+(Gd?"":cd)),"{"+Vd+fd()+"}"}function jd(Hd,Gd){if(!Hd)return"";fd(1);var Vd=Id(Hd,Gd);return fd(-1),Vd.length?Vd.join(cd):""}function Fd(Hd){if(Hd.type==="property")return Ld(Hd)}function Md(Hd){switch(Hd.type){case"rule":return Nd(Hd);case"media":case"keyframes":return vd(Hd);case"comment":return Ad(Hd);case"import":case"charset":case"namespace":return md(Hd);case"font-face":case"supports":case"viewport":case"document":case"page":return vd(Hd)}}function Ld(Hd){var Gd=Hd.name?Hd.name+":"+dd:"";return fd()+Gd+Hd.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,nd;if(Ra+=this.tag||"*",this.id&&(Ra+="#"+this.id),this.classes&&(Ra+="."+this.classList.join(".")),this.attributes)for(qa=0;nd=this.attributes[qa++];)Ra+="["+nd.name+(nd.operator?nd.operator+'"'+nd.value+'"':"")+"]";if(this.pseudos)for(qa=0;nd=this.pseudos[qa++];)Ra+=":"+nd.name,nd.value&&(Ra+="("+nd.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,nd;nd=this[qa++];)qa!==1&&(Ra+=" "),nd.combinator!==" "&&(Ra+=nd.combinator+" "),Ra+=nd;this.raw=Ra}return this.raw};var replacer=function(Ra,qa,nd,od,ld,ud,cd,dd,pd,fd,md,vd,Ad,Nd,Id,kd){var jd,Fd;if((qa||!this.length)&&(jd=this[this.length++]=new Expression,qa))return"";if(jd||(jd=this[this.length-1]),(nd||od||!jd.length)&&(Fd=jd[jd.length++]=new Part(nd)),Fd||(Fd=jd[jd.length-1]),ld)Fd.tag=unescape$2(ld);else if(ud)Fd.id=unescape$2(ud);else if(cd){var Md=unescape$2(cd),Ld=Fd.classes||(Fd.classes={});if(!Ld[Md]){Ld[Md]=escape$5(cd);var Hd=Fd.classList||(Fd.classList=[]);Hd.push(Md),Hd.sort()}}else Ad?(kd=kd||Id,(Fd.pseudos||(Fd.pseudos=[])).push({type:vd.length==1?"class":"element",name:unescape$2(Ad),escapedName:escape$5(Ad),value:kd?unescape$2(kd):null,escapedValue:kd?escape$5(kd):null})):dd&&(md=md?escape$5(md):null,(Fd.attributes||(Fd.attributes=[])).push({operator:pd,name:unescape$2(dd),escapedName:escape$5(dd),value:md?unescape$2(md):null,escapedValue:md?escape$5(md):null}));return""},Expressions=function(qa){this.length=0;for(var nd=this,od=qa,ld;qa;){if(ld=qa.replace(slickRe,function(){return replacer.apply(nd,arguments)}),ld===qa)throw new Error(od+" is an invalid expression");qa=ld}};Expressions.prototype.toString=function(){if(!this.raw){for(var Ra=[],qa=0,nd;nd=this[qa++];)Ra.push(nd);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(ud){for(var cd=0,dd=[],pd="",fd=0,md=ud.length;fd<md;fd++){var vd=ud.charAt(fd);cd?((vd==="]"||vd===")")&&cd--,pd+=vd):vd===","?(dd.push(pd),pd=""):((vd==="["||vd==="(")&&cd++,(pd.length||vd!==","&&vd!==`
`&&vd!==" ")&&(pd+=vd))}return pd.length&&dd.push(pd),dd},Ra.parseCSS=function(ld){for(var ud=qa.parse(ld,{position:!0,comments:!0}),cd=typeof ud.stylesheet<"u"&&ud.stylesheet.rules?ud.stylesheet.rules:[],dd=[],pd=0,fd=cd.length;pd<fd;pd++)if(cd[pd].type=="rule")for(var md=cd[pd],vd=md.selectors,Ad=0,Nd=vd.length;Ad<Nd;Ad++)dd.push([vd[Ad],md.declarations]);return dd},Ra.getPreservedText=function(ld,ud,cd){for(var dd=qa.parse(ld,{position:!0,comments:!0}),pd=typeof dd.stylesheet<"u"&&dd.stylesheet.rules?dd.stylesheet.rules:[],fd=[],md=pd.length-1;md>=0;md--)(ud.fontFaces&&pd[md].type==="font-face"||ud.mediaQueries&&pd[md].type==="media"||ud.keyFrames&&pd[md].type==="keyframes"||ud.pseudos&&pd[md].selectors&&this.matchesPseudo(pd[md].selectors[0],cd))&&fd.unshift(qa.stringify({stylesheet:{rules:[pd[md]]}},{comments:!1,indentation:" "})),pd[md].position.start;return fd.length===0?!1:`
`+fd.join(`
`)+`
`},Ra.normalizeLineEndings=function(ld){return ld.replace(/\r\n/g,`
`).replace(/\n/g,`\r
`)},Ra.matchesPseudo=function(ld,ud){return ud.find(function(cd){return ld.indexOf(cd)>-1})},Ra.compareFunc=function(ld,ud){for(var cd=Math.min(ld.length,ud.length),dd=0;dd<cd;dd++)if(ld[dd]!==ud[dd])return ld[dd]>ud[dd]?1:-1;return ld.length-ud.length},Ra.compare=function(ld,ud){return Ra.compareFunc(ld,ud)==1?ld:ud},Ra.getDefaultOptions=function(ld){var ud=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:""},ld);return ud.webResources=ud.webResources||{},ud}}(utils$4)),utils$4}(function(Ra){var qa=require$$0$2;requireUtils$1();var nd=function(ld,ud,cd){const{xmlMode:dd,...pd}=ud;return ud=Object.assign({xml:{decodeEntities:!1,xmlMode:dd}},pd),ld=cd(ld),qa.load(ld,ud)},od=function(){var ld=[],ud=function(dd){var pd=Ra.exports.codeBlocks;return Object.keys(pd).forEach(function(fd){var md=new RegExp(pd[fd].start+"([\\S\\s]*?)"+pd[fd].end,"g");dd=dd.replace(md,function(vd,Ad){return ld.push(vd),"JUICE_CODE_BLOCK_"+(ld.length-1)+"_"})}),dd},cd=function(dd){for(var pd=0;pd<ld.length;pd++){var fd=new RegExp("JUICE_CODE_BLOCK_"+pd+'_(="")?',"gi");dd=dd.replace(fd,function(){return ld[pd]})}return dd};return{encodeEntities:ud,decodeEntities:cd}};Ra.exports=function(ld,ud,cd,dd){var pd=od(),fd=nd(ld,ud,pd.encodeEntities),md=[fd];md.push.apply(md,dd);var vd=cd.apply(void 0,md)||fd;return ud&&ud.xmlMode?pd.decodeEntities(vd.xml()):pd.decodeEntities(vd.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(""),nd=["","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"],od="",ld=3;ld--;)od=(nd[+qa.pop()+ld*10]||"")+od;return Array(+qa.join("")+1).join("M")+od};numbers$1.alphanumeric=function(Ra){for(var qa="",nd;Ra>0;)nd=(Ra-1)%26,qa=String.fromCharCode(65+nd)+qa,Ra=(Ra-nd)/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 nd=/([a-z\-]+)\s*\(\s*([^\(\)]*?)\s*(?:,\s*([^\(\)]*?)\s*)?\s*\)/i,od=[],ld,ud=uniqueString(qa);for(;(ld=nd.exec(qa))!==null;){let dd=`${od.length}`;if(ld[1].toLowerCase()=="var"){const fd=findVariableValue(Ra,ld[2]);if(fd){qa=qa.replace(ld[0],fd);continue}if(ld[3]){qa=qa.replace(ld[0],ld[3]);continue}}let pd=`${ud}${dd.padStart(5,"-")}`;qa=qa.replace(ld[0],pd),od.push({placeholder:pd,replace:ld[0]})}for(var cd=od.length-1;cd>=0;cd--){const dd=od[cd];qa=qa.replace(dd.placeholder,dd.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=fd,qa.inlineDocument=nd;function nd(Ad,Nd,Id){Id=Id||{};var kd=utils$3.parseCSS(Nd),jd=[],Fd="style",Md={};if(Id.styleAttributeName&&(Fd=Id.styleAttributeName),kd.forEach(Gd),jd.forEach(Vd),Id.inlinePseudoElements&&jd.forEach(Qd),Id.applyWidthAttributes&&jd.forEach(function(Kd){mf(Kd,"width")}),Id.applyHeightAttributes&&jd.forEach(function(Kd){mf(Kd,"height")}),Id.applyAttributesTableElements&&jd.forEach(Zd),Id.insert
`+Nd.extraCss,nd(Ad,Id,Nd),Ad}function md(Ad,Nd){var Id=[],kd=Ad("style"),jd,Fd,Md;return kd.each(function(){if(Md=this,jd=Md.childNodes,jd.length!==1){Nd.removeStyleTags&&Ad(Md).remove();return}if(Fd=jd[0].data,Nd.applyStyleTags&&Ad(Md).attr("data-embed")===void 0&&Id.push(Fd),Nd.removeStyleTags&&Ad(Md).attr("data-embed")===void 0){var Ld=Md.childNodes[0].nodeValue,Hd=utils$3.getPreservedText(Ld,{mediaQueries:Nd.preserveMediaQueries,fontFaces:Nd.preserveFontFaces,keyFrames:Nd.preserveKeyFrames,pseudos:Nd.preservePseudos},qa.ignoredPseudos);Hd?Md.childNodes[0].nodeValue=Hd:Ad(Md).remove()}Ad(Md).removeAttr("data-embed")}),Id}function vd(Ad,Nd){var Id=md(Ad,Nd),kd=Id.join(`
`);return kd}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,nd){return cheerio(Ra,{xmlMode:nd&&nd.xmlMode},juiceClient.inlineDocument,[qa,nd])};juiceClient.codeBlocks=cheerio.codeBlocks;var client=juiceClient;const juice=getDefaultExportFromCjs(client);var $s$1=Object.create,je$6=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 nd in qa)je$6(Ra,nd,{get:qa[nd],enumerable:!0})},Js$1=(Ra,qa,nd,od)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let ld of qs$2(qa))!Ks$2.call(Ra,ld)&&ld!==nd&&je$6(Ra,ld,{get:()=>qa[ld],enumerable:!(od=Vs$1(qa,ld))||od.enumerable});return Ra},vt$5=(Ra,qa,nd)=>(nd=Ra!=null?$s$1(zs$1(Ra)):{},Js$1(je$6(nd,"default",{value:Ra,enumerable:!0}),Ra)),At$4=Hs$2(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(zd,Bd){if(zd==null)return{};var Wd={},_f=Object.keys(zd),Df,eh;for(eh=0;eh<_f.length;eh++)Df=_f[eh],!(Bd.indexOf(Df)>=0)&&(Wd[Df]=zd[Df]);return Wd}var nd=class{constructor(zd,Bd,Wd){this.line=void 0,this.column=void 0,this.index=void 0,this.line=zd,this.column=Bd,this.index=Wd}},od=class{constructor(zd,Bd){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=zd,this.end=Bd}};function ld(zd,Bd){let{line:Wd,column:_f,index:Df}=zd;return new nd(Wd,_f+Bd,Df+Bd)}var ud="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",cd={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:ud},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:ud}},dd={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"},pd=zd=>zd.type==="UpdateExpression"?dd.UpdateExpression[`${zd.prefix}`]:dd[zd.type],fd={AccessorIsGenerator:({kind:zd})=>`A ${zd}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 { '${zd}' as '${Bd}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:zd})=>`'${zd==="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:zd})=>`Unsyntactic ${zd==="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:zd})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${zd}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:zd})=>`\`import()\` requires exactly ${zd===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:zd})=>`Expected number in radix ${zd}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:zd})=>`Escape sequence in keyword ${zd}.`,InvalidIdentifier:({identifierName:zd})=>`Invalid identifier ${zd}.`,InvalidLhs:({ancestor:zd})=>`Invalid left-hand side in ${pd(zd)}.`,InvalidLhsBinding:({ancestor:zd})=>`Binding invalid left-hand side in ${pd(zd)}.`,InvalidLhsOptionalChaining:({ancestor:zd})=>`Invalid optional chaining in the left-hand side of ${pd(zd)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:zd})=>`Unexpected character '${zd}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:zd})=>`Private name #${zd} 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:zd})=>`Label '${zd}' 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:zd})=>`This experimental syntax requires enabling the parser plugin: ${zd.map(Bd=>JSON.stringify(Bd)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:zd})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${zd.map(Bd=>JSON.stringify(Bd)).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:zd})=>`Duplicate key "${zd}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:zd})=>`An export name cannot include a lone surrogate, found '\\u${zd.toString(16)}'.`,ModuleExportUndefined:({localName:zd})=>`Export '${zd}' 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
`,++Wd,d_===13&&Bd.charCodeAt(Wd)===10&&++Wd,++Df,Zm=_f=Wd):eh.unterminated(bh,kh,sm):++Wd}return{pos:Wd,str:Xh,firstInvalidLoc:Fm,lineStart:_f,curLine:Df,containsInvalid:!!Fm}}function j_(zd,Bd,Wd,_f){return zd==="template"?Bd===96||Bd===36&&Wd.charCodeAt(_f+1)===123:Bd===(zd==="double"?34:39)}function B_(zd,Bd,Wd,_f,Df,eh){let bh=!Df;Bd++;let kh=Xh=>({pos:Bd,ch:Xh,lineStart:Wd,curLine:_f}),sm=zd.charCodeAt(Bd++);switch(sm){case 110:return kh(`
`);case 114:return kh("\r");case 120:{let Xh;return{code:Xh,pos:Bd}=C_(zd,Bd,Wd,_f,2,!1,bh,eh),kh(Xh===null?null:String.fromCharCode(Xh))}case 117:{let Xh;return{code:Xh,pos:Bd}=ig(zd,Bd,Wd,_f,bh,eh),kh(Xh===null?null:String.fromCodePoint(Xh))}case 116:return kh(" ");case 98:return kh("\b");case 118:return kh("\v");case 102:return kh("\f");case 13:zd.charCodeAt(Bd)===10&&++Bd;case 10:Wd=Bd,++_f;case 8232:case 8233:return kh("");case 56:case 57:if(Df)return kh(null);eh.strictNumericEscape(Bd-1,Wd,_f);default:if(sm>=48&&sm<=55){let Xh=Bd-1,Fm=/^[0-7]+/.exec(zd.slice(Xh,Bd+2))[0],Zm=parseInt(Fm,8);Zm>255&&(Fm=Fm.slice(0,-1),Zm=parseInt(Fm,8)),Bd+=Fm.length-1;let l_=zd.charCodeAt(Bd);if(Fm!=="0"||l_===56||l_===57){if(Df)return kh(null);eh.strictNumericEscape(Xh,Wd,_f)}return kh(String.fromCharCode(Zm))}return kh(String.fromCharCode(sm))}}function C_(zd,Bd,Wd,_f,Df,eh,bh,kh){let sm=Bd,Xh;return{n:Xh,pos:Bd}=Km(zd,Bd,Wd,_f,16,Df,eh,!1,kh,!bh),Xh===null&&(bh?kh.invalidEscapeSequence(sm,Wd,_f):Bd=sm-1),{code:Xh,pos:Bd}}function Km(zd,Bd,Wd,_f,Df,eh,bh,kh,sm,Xh){let Fm=Bd,Zm=Df===16?i_.hex:i_.decBinOct,l_=Df===16?Hm.hex:Df===10?Hm.dec:Df===8?Hm.oct:Hm.bin,d_=!1,w_=0;for(let Eg=0,U_=eh??1/0;Eg<U_;++Eg){let K_=zd.charCodeAt(Bd),Hg;if(K_===95&&kh!=="bail"){let Q0=zd.charCodeAt(Bd-1),tv=zd.charCodeAt(Bd+1);if(kh){if(Number.isNaN(tv)||!l_(tv)||Zm.has(Q0)||Zm.has(tv)){if(Xh)return{n:null,pos:Bd};sm.unexpectedNumericSeparator(Bd,Wd,_f)}}else{if(Xh)return{n:null,pos:Bd};sm.numericSeparatorInEscapeSequence(Bd,Wd,_f)}++Bd;continue}if(K_>=97?Hg=K_-97+10:K_>=65?Hg=K_-65+10:Pm(K_)?Hg=K_-48:Hg=1/0,Hg>=Df){if(Hg<=9&&Xh)return{n:null,pos:Bd};if(Hg<=9&&sm.invalidDigit(Bd,Wd,_f,Df))Hg=0;else if(bh)Hg=0,d_=!0;else break}++Bd,w_=w_*Df+Hg}return Bd===Fm||eh!=null&&Bd-Fm!==eh||d_?{n:null,pos:Bd}:{n:w_,pos:Bd}}function ig(zd,Bd,Wd,_f,Df,eh){let bh=zd.charCodeAt(Bd),kh;if(bh===123){if(++Bd,{code:kh,pos:Bd}=C_(zd,Bd,Wd,_f,zd.indexOf("}",Bd)-Bd,!0,Df,eh),++Bd,kh!==null&&kh>1114111)if(Df)eh.invalidCodePoint(Bd,Wd,_f);else return{code:null,pos:Bd}}else({code:kh,pos:Bd}=C_(zd,Bd,Wd,_f,4,!1,Df,eh));return{code:kh,pos:Bd}}function N_(zd,Bd,Wd){return new nd(Wd,zd-Bd,zd)}var y_=new Set([103,109,115,105,121,117,100,118]),fh=class{constructor(zd){this.type=zd.type,this.value=zd.value,this.start=zd.start,this.end=zd.end,this.loc=new od(zd.startLoc,zd.endLoc)}},Bh=class extends Ch{constructor(zd,Bd){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Wd,_f,Df,eh)=>this.options.errorRecovery?(this.raise(Md.InvalidDigit,N_(Wd,_f,Df),{radix:eh}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Md.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Md.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Md.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Md.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(Wd,_f,Df)=>{this.recordStrictModeErrors(Md.StrictNumericEscape,N_(Wd,_f,Df))},unterminated:(Wd,_f,Df)=>{throw this.raise(Md.UnterminatedString,N_(Wd-1,_f,Df))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Md.StrictNumericEscape),unterminated:(Wd,_f,Df)=>{throw this.raise(Md.UnterminatedTemplate,N_(Wd,_f,Df))}}),this.state=new Im,this.state.init(zd),this.input=Bd,this.length=Bd.length,this.comments=[],this.isLookahead=!1}pushToken(zd){this.tokens.length=this.state.tokensLength,this.tokens.push(zd),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new fh(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(zd){return this.match(zd)?(this.next(),!0):!1}match(zd){return this.state.type===zd}createLookaheadState(zd){return{pos:zd.pos,value:null,type:zd.type,start:zd.start,end:zd.end,context:[this.curContext
`:`\r
`):_f=String.fromCharCode(Wd),++this.state.curLine,this.state.lineStart=this.state.pos,_f}jsxReadString(Bd){let Wd="",_f=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Md.UnterminatedString,this.state.startLoc);let Df=this.input.charCodeAt(this.state.pos);if(Df===Bd)break;Df===38?(Wd+=this.input.slice(_f,this.state.pos),Wd+=this.jsxReadEntity(),_f=this.state.pos):Wh(Df)?(Wd+=this.input.slice(_f,this.state.pos),Wd+=this.jsxReadNewLine(!1),_f=this.state.pos):++this.state.pos}Wd+=this.input.slice(_f,this.state.pos++),this.finishToken(133,Wd)}jsxReadEntity(){let Bd=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Wd=10;this.codePointAtPos(this.state.pos)===120&&(Wd=16,++this.state.pos);let _f=this.readInt(Wd,void 0,!1,"bail");if(_f!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(_f)}else{let Wd=0,_f=!1;for(;Wd++<10&&this.state.pos<this.length&&!(_f=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(_f){this.input.slice(Bd,this.state.pos);let Df;++this.state.pos}}return this.state.pos=Bd,"&"}jsxReadWord(){let Bd,Wd=this.state.pos;do Bd=this.input.charCodeAt(++this.state.pos);while(_m(Bd)||Bd===45);this.finishToken(140,this.input.slice(Wd,this.state.pos))}jsxParseIdentifier(){let Bd=this.startNode();return this.match(140)?Bd.name=this.state.value:$f(this.state.type)?Bd.name=wh(this.state.type):this.unexpected(),this.next(),this.finishNode(Bd,"JSXIdentifier")}jsxParseNamespacedName(){let Bd=this.state.startLoc,Wd=this.jsxParseIdentifier();if(!this.eat(14))return Wd;let _f=this.startNodeAt(Bd);return _f.namespace=Wd,_f.name=this.jsxParseIdentifier(),this.finishNode(_f,"JSXNamespacedName")}jsxParseElementName(){let Bd=this.state.startLoc,Wd=this.jsxParseNamespacedName();if(Wd.type==="JSXNamespacedName")return Wd;for(;this.eat(16);){let _f=this.startNodeAt(Bd);_f.object=Wd,_f.property=this.jsxParseIdentifier(),Wd=this.finishNode(_f,"JSXMemberExpression")}return Wd}jsxParseAttributeValue(){let Bd;switch(this.state.type){case 5:return Bd=this.startNode(),this.setContext(mf.brace),this.next(),Bd=this.jsxParseExpressionContainer(Bd,mf.j_oTag),Bd.expression.type==="JSXEmptyExpression"&&this.raise(Ig.AttributeIsEmpty,Bd),Bd;case 142:case 133:return this.parseExprAtom();default:throw this.raise(Ig.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let Bd=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(Bd,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(Bd){return this.next(),Bd.expression=this.parseExpression(),this.setContext(mf.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Bd,"JSXSpreadChild")}jsxParseExpressionContainer(Bd,Wd){if(this.match(8))Bd.expression=this.jsxParseEmptyExpression();else{let _f=this.parseExpression();Bd.expression=_f}return this.setContext(Wd),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Bd,"JSXExpressionContainer")}jsxParseAttribute(){let Bd=this.startNode();return this.match(5)?(this.setContext(mf.brace),this.next(),this.expect(21),Bd.argument=this.parseMaybeAssignAllowIn(),this.setContext(mf.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Bd,"JSXSpreadAttribute")):(Bd.name=this.jsxParseNamespacedName(),Bd.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(Bd,"JSXAttribute"))}jsxParseOpeningElementAt(Bd){let Wd=this.startNodeAt(Bd);return this.eat(143)?this.finishNode(Wd,"JSXOpeningFragment"):(Wd.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Wd))}jsxParseOpeningElementAfterName(Bd){let Wd=[];for(;!this.match(56)&&!this.match(143);)Wd.push(this.jsxParseAttribute());return Bd.attributes=Wd,Bd.selfClosing=this.eat(56),this.expect(143),this.finishNode(Bd,"JSXOpeningElement")}jsxParseClosingElementAt(Bd){let Wd=this.startNodeAt(Bd);return this.eat(143)?this.finishNode(Wd,"JSXClosingFragment"):(Wd.name=this.jsxParseElementName(),this.expect(143),this.finishNode(Wd,"JSXClosingElement"))}jsxParseElementAt(Bd){let Wd=this.startNodeAt(Bd),_f=[],Df
`),cooked:Df===null?null:Df.slice(1,sm)},bh.tail=kh,this.next();let Fm=this.finishNode(bh,"TemplateElement");return this.resetEndLocation(Fm,ld(this.state.lastTokEndLoc,sm)),Fm}parseTemplate(zd){let Bd=this.startNode(),Wd=this.parseTemplateElement(zd),_f=[Wd],Df=[];for(;!Wd.tail;)Df.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),_f.push(Wd=this.parseTemplateElement(zd));return Bd.expressions=Df,Bd.quasis=_f,this.finishNode(Bd,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(zd,Bd,Wd,_f){Wd&&this.expectPlugin("recordAndTuple");let Df=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let eh=Object.create(null),bh=!0,kh=this.startNode();for(kh.properties=[],this.next();!this.match(zd);){if(bh)bh=!1;else if(this.expect(12),this.match(zd)){this.addTrailingCommaExtraToNode(kh);break}let Xh;Bd?Xh=this.parseBindingProperty():(Xh=this.parsePropertyDefinition(_f),this.checkProto(Xh,Wd,eh,_f)),Wd&&!this.isObjectProperty(Xh)&&Xh.type!=="SpreadElement"&&this.raise(Md.InvalidRecordProperty,Xh),Xh.shorthand&&this.addExtra(Xh,"shorthand",!0),kh.properties.push(Xh)}this.next(),this.state.inFSharpPipelineDirectBody=Df;let sm="ObjectExpression";return Bd?sm="ObjectPattern":Wd&&(sm="RecordExpression"),this.finishNode(kh,sm)}addTrailingCommaExtraToNode(zd){this.addExtra(zd,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(zd,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(zd){return!zd.computed&&zd.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(zd){let Bd=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Md.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)Bd.push(this.parseDecorator());let Wd=this.startNode(),_f=!1,Df=!1,eh;if(this.match(21))return Bd.length&&this.unexpected(),this.parseSpread();Bd.length&&(Wd.decorators=Bd,Bd=[]),Wd.method=!1,zd&&(eh=this.state.startLoc);let bh=this.eat(55);this.parsePropertyNamePrefixOperator(Wd);let kh=this.state.containsEsc;if(this.parsePropertyName(Wd,zd),!bh&&!kh&&this.maybeAsyncOrAccessorProp(Wd)){let{key:sm}=Wd,Xh=sm.name;Xh==="async"&&!this.hasPrecedingLineBreak()&&(_f=!0,this.resetPreviousNodeTrailingComments(sm),bh=this.eat(55),this.parsePropertyName(Wd)),(Xh==="get"||Xh==="set")&&(Df=!0,this.resetPreviousNodeTrailingComments(sm),Wd.kind=Xh,this.match(55)&&(bh=!0,this.raise(Md.AccessorIsGenerator,this.state.curPosition(),{kind:Xh}),this.next()),this.parsePropertyName(Wd))}return this.parseObjPropValue(Wd,eh,bh,_f,!1,Df,zd)}getGetterSetterExpectedParamCount(zd){return zd.kind==="get"?0:1}getObjectOrClassMethodParams(zd){return zd.params}checkGetterSetterParams(zd){var Bd;let Wd=this.getGetterSetterExpectedParamCount(zd),_f=this.getObjectOrClassMethodParams(zd);_f.length!==Wd&&this.raise(zd.kind==="get"?Md.BadGetterArity:Md.BadSetterArity,zd),zd.kind==="set"&&((Bd=_f[_f.length-1])==null?void 0:Bd.type)==="RestElement"&&this.raise(Md.BadSetterRestParameter,zd)}parseObjectMethod(zd,Bd,Wd,_f,Df){if(Df){let eh=this.parseMethod(zd,Bd,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(eh),eh}if(Wd||Bd||this.match(10))return _f&&this.unexpected(),zd.kind="method",zd.method=!0,this.parseMethod(zd,Bd,Wd,!1,!1,"ObjectMethod")}parseObjectProperty(zd,Bd,Wd,_f){if(zd.shorthand=!1,this.eat(14))return zd.value=Wd?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(_f),this.finishNode(zd,"ObjectProperty");if(!zd.computed&&zd.key.type==="Identifier"){if(this.checkReservedWord(zd.key.name,zd.key.loc.start,!0,!1),Wd)zd.value=this.parseMaybeDefault(Bd,Ug(zd.key));else if(this.match(29)){let Df=this.state.startLoc;_f!=null?_f.shorthandAssignLoc===null&&(_f.shorthandAssignLoc=Df):this.raise(Md.InvalidCoverInitializedName,Df),zd.value=this.parseMaybeDefault(Bd,Ug(zd.key))}else zd.value=Ug(zd.key);return zd.shorthand=!0,this.finishNode(zd,"ObjectProperty")}}parseObjPropValue(zd,Bd,Wd,_f,Df,eh,bh){let kh=this.parseObjectMethod(zd,Wd,_f,Df,eh)||this.parseObjectPr
`)return qa-2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa-1}else{if(ld==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\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$2=yr$2;function xr$3(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=ls$1(Ra,od),od=ps$1(Ra,od),od=fs$2(Ra,od),od=us$2(Ra,od);return od}var ds$1=xr$3;function Pr$3(Ra){let qa=[];for(let nd of Ra)try{return nd()}catch(od){qa.push(od)}throw Object.assign(new Error("All combinations failed"),{errors:qa})}var ms$2=Pr$3;function gr$2(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var Oe$6=gr$2,Tr$3=(Ra,qa,nd)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[nd<0?qa.length+nd:nd]:qa.at(nd)},St$4=Tr$3;function br$4(Ra){return Array.isArray(Ra)&&Ra.length>0}var Pe$6=br$4;function D$3(Ra){var qa,nd,od;let ld=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,ud=(od=((nd=Ra.declaration)==null?void 0:nd.decorators)??Ra.decorators)==null?void 0:od[0];return ud?Math.min(D$3(ud),ld):ld}function B$4(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function Ar$2(Ra){let qa=new Set(Ra);return nd=>qa.has(nd==null?void 0:nd.type)}var ys$2=Ar$2,Sr$3=ys$2(["Block","CommentBlock","MultiLine"]),ge$7=Sr$3;function wr$3(Ra){let qa=`*${Ra.value}*`.split(`
`);return qa.length>1&&qa.every(nd=>nd.trimStart()[0]==="*")}var wt$3=wr$3;function Cr$1(Ra){return ge$7(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(Ra.value)}var xs$2=Cr$1,Te$5=null;function be$7(Ra){if(Te$5!==null&&typeof Te$5.property){let qa=Te$5;return Te$5=be$7.prototype=null,qa}return Te$5=be$7.prototype=Ra??Object.create(null),new be$7}var Er$2=10;for(let Ra=0;Ra<=Er$2;Ra++)be$7();function Ct$4(Ra){return be$7(Ra)}function Ir$3(Ra,qa="type"){Ct$4(Ra);function nd(od){let ld=od[qa],ud=Ra[ld];if(!Array.isArray(ud))throw Object.assign(new Error(`Missing visitor keys for '${ld}'.`),{node:od});return ud}return nd}var Ps$1=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$5(!1,Ra.replace(Or$3,"").replace(Mr$3,""),Ur$3,"$1");let nd="";for(;nd!==Ra;)nd=Ra,Ra=ie$5(!1,Ra,Rr$2,`${qa}$1 $2${qa}`);Ra=Ra.replace(Ss$1,"").trimEnd();let od=Object.create(null),ld=ie$5(!1,Ra,ws$2,"").replace(Ss$1,"").trimEnd(),ud;for(;ud=ws$2.exec(Ra);){let cd=ie$5(!1,ud[2],Br$4,"");if(typeof od[ud[1]]=="string"||Array.isArray(od[ud[1]])){let dd=od[ud[1]];od[ud[1]]=[..._r$3,...Array.isArray(dd)?dd:[dd],cd]}else od[ud[1]]=cd}return{comments:ld,pragmas:od}}function jr$3(Ra){let qa=Oe$6(Ra);qa&&(Ra=Ra.slice(qa.length+1));let nd=Cs$1(Ra),{pragmas:od,comments:ld}=Es$1(nd);return{shebang:qa,text:Ra,pragmas:od,comments:ld}}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$3,locEnd:B$4,...Ra}}var G$6=$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:nd="JsExpressionRoot",rootMarker:od,text:ld}=qa,{tokens:ud,comments:cd}=Ra;return delete Ra.tokens,delete Ra.comments,{tokens:ud,comments:cd,type:nd,node:Ra,range:[0,ld.length],rootMarker:od}}var Ue$4=qr$3,re$6=Ra=>G$6(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$1=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],V$6=(Ra,qa=zr$3)=>({...qa,plugins:[...qa.plugins,...Ra]}),Kr$4=/@(?:no)?flow\b/u;function Hr$4(Ra,qa){var nd;if((nd=qa.filepath)!=null&&nd.endsWith(".js.flow"))return!0;let od=Oe$6(Ra);od&&(Ra=Ra.slice(od.length));let ld=ds$1(Ra,0);return ld!==!1&&(Ra=Ra.slice(0,ld)),Kr$4.test(Ra)}function Wr$3(Ra,qa,nd){let od=Ra(qa,nd),ld=od.errors.find(ud=>!Xr$3.has(ud.reasonCode));if(ld)throw ld;return od}function Jr$3({isExpression:Ra=!1,optionsCombinations:qa}){return(nd,od={})=>{if((od.parser==="babel"||od.parser==="__babel_estree")&&Hr$4(nd,od))return od.parser="babel-flow",Bs$2.parse(nd,od);let ld=qa;(od.__babelSourceType??Ns$1(od))==="script"&&(ld=ld.map(pd=>({...pd,sourceType:"script"})));let ud=/%[A-Z]/u.test(nd);nd.includes("|>")?ld=(ud?[...vs$1,ks$1]:vs$1).flatMap(pd=>ld.map(fd=>V$6([pd],fd))):ud&&(ld=ld.map(pd=>V$6([ks$1],pd)));let cd=Ra?_e$5.parseExpression:_e$5.parse,dd;try{dd=ms$2(ld.map(pd=>()=>Wr$3(cd,nd,pd)))}catch({errors:[pd]}){throw Re$7(pd)}return Ra&&(dd=Ue$4(dd,{text:nd,rootMarker:od.rootMarker})),As$2(dd,{parser:"babel",text:nd})}}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(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa-1}else{if(ld==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa+1}return qa}var Ue$3=$a$1;function Ka$1(Ra,qa,nd={}){let od=Ge$3(Ra,nd.backwards?qa-1:qa,nd),ld=Ue$3(Ra,od,nd);return od!==ld}var te$5=Ka$1;function za(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let nd=qa+2;nd<Ra.length;++nd)if(Ra.charAt(nd)==="*"&&Ra.charAt(nd+1)==="/")return nd+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$2=Qa;function Za(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=Ks$1(Ra,od),od=Lt$2(Ra,od),od=Ge$3(Ra,od);return od=wt$2(Ra,od),od=Ue$3(Ra,od),od!==!1&&te$5(Ra,od)}var Ot$3=Za;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 nd=qa===!0||qa===dr$1?dr$1:Qs$1,od=nd===dr$1?Qs$1:dr$1,ld=0,ud=0;for(let cd of Ra)cd===nd?ld++:cd===od&&ud++;return ld>ud?od:nd}var xr$2=to$1;function ro$1(Ra,qa,nd){let od=qa==='"'?"'":'"',ld=N$5(!1,Ra,/\\(.)|(["'])/gsu,(ud,cd,dd)=>cd===od?cd:dd===qa?"\\"+dd:dd||(nd&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(cd)?cd:"\\"+cd));return qa+ld+qa}var Zs$1=ro$1;function no$2(Ra,qa){let nd=Ra.slice(1,-1),od=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":xr$2(nd,qa.singleQuote);return Zs$1(nd,od,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var tt$4=no$2;function R$5(Ra){var qa,nd,od;let ld=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,ud=(od=((nd=Ra.declaration)==null?void 0:nd.decorators)??Ra.decorators)==null?void 0:od[0];return ud?Math.min(R$5(ud),ld):ld}function k$1(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function ht$3(Ra,qa){let nd=R$5(Ra);return Number.isInteger(nd)&&nd===R$5(qa)}function so$1(Ra,qa){let nd=k$1(Ra);return Number.isInteger(nd)&&nd===k$1(qa)}function eu$1(Ra,qa){return ht$3(Ra,qa)&&so$1(Ra,qa)}var Qt$3=null;function Zt$3(Ra){if(Qt$3!==null&&typeof Qt$3.property){let qa=Qt$3;return Qt$3=Zt$3.prototype=null,qa}return Qt$3=Zt$3.prototype=Ra??Object.create(null),new Zt$3}var uo$2=10;for(let Ra=0;Ra<=uo$2;Ra++)Zt$3();function In$1(Ra){return Zt$3(Ra)}function io$2(Ra,qa="type"){In$1(Ra);function nd(od){let ld=od[qa],ud=Ra[ld];if(!Array.isArray(ud))throw Object.assign(new Error(`Missing visitor keys for '${ld}'.`),{node:od});return ud}return nd}var hr$3=io$2,tu$2={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"],U
`):Ra.type==="UnaryExpression"?rr$2(Ra.argument,{printWidth:nd}):Ra.type==="CallExpression"&&Ra.arguments.length===0&&Ra.callee.type==="Identifier"?Ra.callee.name.length<=od-2:kr$2(Ra)}function Oe$5(Ra,qa){return X$5(qa)?Bt$4(qa):d$1(qa,g$3.Leading,nd=>te$5(Ra,k$1(nd)))}function nu$3(Ra){return Ra.quasis.some(qa=>qa.value.raw.includes(`
`))}function Lr$2(Ra,qa){return(Ra.type==="TemplateLiteral"&&nu$3(Ra)||Ra.type==="TaggedTemplateExpression"&&nu$3(Ra.quasi))&&!te$5(qa,R$5(Ra),{backwards:!0})}function wr$2(Ra){if(!d$1(Ra))return!1;let qa=O$2(!1,ct$2(Ra,g$3.Dangling),-1);return qa&&!re$5(qa)}function lu$2(Ra){if(Ra.length<=1)return!1;let qa=0;for(let nd of Ra)if(_t$3(nd)){if(qa+=1,qa>1)return!0}else if(L$5(nd)){for(let od of oe$5(nd))if(_t$3(od))return!0}return!1}function Or$2(Ra){let{node:qa,parent:nd,key:od}=Ra;return od==="callee"&&L$5(qa)&&L$5(nd)&&nd.arguments.length>0&&qa.arguments.length>nd.arguments.length}var xo$3=new Set(["!","-","+","~"]);function be$6(Ra,qa=2){if(qa<=0)return!1;if(Ra.type==="ChainExpression"||Ra.type==="TSNonNullExpression")return be$6(Ra.expression,qa);let nd=od=>be$6(od,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(od=>!od.value.raw.includes(`
`))&&Ra.expressions.every(nd);if(se$5(Ra))return Ra.properties.every(od=>!od.computed&&(od.shorthand||od.value&&nd(od.value)));if(U$5(Ra))return Ra.elements.every(od=>od===null||nd(od));if(lt$3(Ra)){if(Ra.type==="ImportExpression"||be$6(Ra.callee,qa)){let od=oe$5(Ra);return od.length<=qa&&od.every(nd)}return!1}return q$5(Ra)?be$6(Ra.object,qa)&&be$6(Ra.property,qa):Ra.type==="UnaryExpression"&&xo$3.has(Ra.operator)||Ra.type==="UpdateExpression"?be$6(Ra.argument,qa):!1}function fe$6(Ra){var qa;return((qa=Ra.extra)==null?void 0:qa.raw)??Ra.raw}function mu$2(Ra){return Ra}function ae$3(Ra,qa="es5"){return Ra.trailingComma==="es5"&&qa==="es5"||Ra.trailingComma==="all"&&(qa==="all"||qa==="es5")}function ie$4(Ra,qa){switch(Ra.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie$4(Ra.left,qa);case"MemberExpression":case"OptionalMemberExpression":return ie$4(Ra.object,qa);case"TaggedTemplateExpression":return Ra.tag.type==="FunctionExpression"?!1:ie$4(Ra.tag,qa);case"CallExpression":case"OptionalCallExpression":return Ra.callee.type==="FunctionExpression"?!1:ie$4(Ra.callee,qa);case"ConditionalExpression":return ie$4(Ra.test,qa);case"UpdateExpression":return!Ra.prefix&&ie$4(Ra.argument,qa);case"BindExpression":return Ra.object&&ie$4(Ra.object,qa);case"SequenceExpression":return ie$4(Ra.expressions[0],qa);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie$4(Ra.expression,qa);default:return qa(Ra)}}var su$2={"==":!0,"!=":!0,"===":!0,"!==":!0},br$3={"*":!0,"/":!0,"%":!0},_n$2={">>":!0,">>>":!0,"<<":!0};function nr$2(Ra,qa){return!(er$2(qa)!==er$2(Ra)||Ra==="**"||su$2[Ra]&&su$2[qa]||qa==="%"&&br$3[Ra]||Ra==="%"&&br$3[qa]||qa!==Ra&&br$3[qa]&&br$3[Ra]||_n$2[Ra]&&_n$2[qa])}var ho$1=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((Ra,qa)=>Ra.map(nd=>[nd,qa])));function er$2(Ra){return ho$1.get(Ra)}function yu$1(Ra){return!!_n$2[Ra]||Ra==="|"||Ra==="^"||Ra==="&"}function Du$2(Ra){var qa;if(Ra.rest)return!0;let nd=K$5(Ra);return((qa=O$2(!1,nd,-1))==null?void 0:qa.type)==="RestElement"}var wn$2=new WeakMap;function K$5(Ra){if(wn$2.has(Ra))return wn$2.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$2.set(Ra,qa),qa}function fu$1(Ra,qa){let{node:nd}=Ra,od=0,ld=ud=>qa(ud,od++);nd.this&&Ra.call(ld,"this"),Array.isArray(nd.parameters)?Ra.each(ld,"parameters"):Array.isArray(nd.params)&&Ra.each(ld,"params"),nd.rest&&Ra.call(ld,"rest")}var On$3=new WeakMap;function oe$5(Ra){if(On$3.has(Ra))return On$3.get(Ra);if(Ra.type==="ChainExpression")return oe$5(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:nd}=Ra;if(nd.type==="ChainExpression")return Ra.call(()=>Rt$4(Ra,qa),"expression");nd.type==="ImportExpression"?(Ra.call(od=>qa(od,0),"source"),nd.attributes&&Ra.call(od=>qa(od,1),"attributes"),nd.options&&Ra.call(od=>qa(od,1),"options")):Ra.each(qa,"arguments")}function Rn$2(Ra,qa){let nd=[];if(Ra.type==="ChainExpression"&&(Ra=Ra.expression,nd.push("expression")),Ra.type==="ImportExpression"){if(qa===0||qa===(Ra.attributes||Ra.options?-2:-1))return[...nd,"source"];if(Ra.attributes&&(qa===1||qa===-1))return[...nd,"attributes"];if(Ra.options&&(qa===1||qa===-1))return[...nd,"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[...nd,"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$3(Ra))throw new Error("doc is valid.");let nd=Object.prototype.toString.call(Ra);if(nd!=="[object Object]")return`Unexpected doc '${nd}'.`;let od=Bo$2([...jr$2].map(ld=>`'${ld}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${od}.`}var Jn$3=class extends Error{constructor(nd){super(bo$1(nd));p_(this,"name","InvalidDocError");this.doc=nd}},Ct$3=Jn$3,Au$1={};function Po$1(Ra,qa,nd,od){let ld=[Ra];for(;ld.length>0;){let ud=ld.pop();if(ud===Au$1){nd(ld.pop());continue}nd&&ld.push(ud,Au$1);let cd=ut$3(ud);if(!cd)throw new Ct$3(ud);if((qa==null?void 0:qa(ud))!==!1)switch(cd){case _e$4:case Pe$5:{let dd=cd===_e$4?ud:ud.parts;for(let pd=dd.length,fd=pd-1;fd>=0;--fd)ld.push(dd[fd]);break}case xe$4:ld.push(ud.flatContents,ud.breakContents);break;case le$5:if(od&&ud.expandedStates)for(let dd=ud.expandedStates.length,pd=dd-1;pd>=0;--pd)ld.push(ud.expandedStates[pd]);else ld.push(ud.contents);break;case Ye$4:case Xe$3:case He$4:case je$5:case Ve$4:ld.push(ud.contents);break;case rt$3:case nt$3:case st$3:case $e$3:case me$4:case ve$6:break;default:throw new Ct$3(ud)}}}var qn$2=Po$1,Tu$2=()=>{},vr$1=Tu$2;function f$1(Ra){return{type:Xe$3,contents:Ra}}function he$3(Ra,qa){return{type:Ye$4,contents:qa,n:Ra}}function l$1(Ra,qa={}){return vr$1(qa.expandedStates),{type:le$5,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function du$2(Ra){return he$3(Number.NEGATIVE_INFINITY,Ra)}function Mr$2(Ra){return he$3(-1,Ra)}function ze$5(Ra,qa){return l$1(Ra[0],{...qa,expandedStates:Ra})}function qt$4(Ra){return{type:Pe$5,parts:Ra}}function b$2(Ra,qa="",nd={}){return{type:xe$4,breakContents:Ra,flatContents:qa,groupId:nd.groupId}}function At$3(Ra,qa){return{type:He$4,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function Wn$2(Ra){return{type:Ve$4,contents:Ra}}var ke$5={type:$e$3},Ee$6={type:ve$6},Gn$3={type:me$4,hard:!0},ko$1={type:me$4,hard:!0,literal:!0},x$4={type:me$4},E$4={type:me$4,soft:!0},F$2=[Gn$3,Ee$6],Rr$1=[ko$1,Ee$6],Un$3={type:nt$3};function P$5(Ra,qa){let nd=[];for(let od=0;od<qa.length;od++)od!==0&&nd.push(Ra),nd.push(qa[od]);return nd}function xu$1(Ra,qa,nd){let od=Ra;if(qa>0){for(let ld=0;ld<Math.floor(qa/nd);++ld)od=f$1(od);od=he$3(qa%nd,od),od=he$3(Number.NEGATIVE_INFINITY,od)}return od}function it$3(Ra,qa){return Ra?{type:je$5,label:Ra,contents:qa}:qa}function mt$3(Ra,qa){if(typeof Ra=="string")return qa(Ra);let nd=new Map;return od(Ra);function od(ud){if(nd.has(ud))return nd.get(ud);let cd=ld(ud);return nd.set(ud,cd),cd}function ld(ud){switch(ut$3(ud)){case _e$4:return qa(ud.map(od));case Pe$5:return qa({...ud,parts:ud.parts.map(od)});case xe$4:return qa({...ud,breakContents:od(ud.breakContents),flatContents:od(ud.flatContents)});case le$5:{let{expandedStates:cd,contents:dd}=ud;return cd?(cd=cd.map(od),dd=cd[0]):dd=od(dd),qa({...ud,contents:dd,expandedStates:cd})}case Ye$4:case Xe$3:case He$4:case je$5:case Ve$4:return qa({...ud,contents:od(ud.contents)});case rt$3:case nt$3:case st$3:case $e$3:case me$4:case ve$6:return qa(ud);default:throw new Ct$3(ud)}}}function gu$1(Ra,qa,nd){let od=nd,ld=!1;function ud(cd){if(ld)return!1;let dd=qa(cd);dd!==void 0&&(ld=!0,od=dd)}return qn$2(Ra,ud),od}function Io$1(Ra){if(Ra.type===le$5&&Ra.break||Ra.type===me$4&&Ra.hard||Ra.type===ve$6)return!0}function ne$5(Ra){return gu$1(Ra,Io$1,!1)}function hu$2(Ra){if(Ra.length>0){let qa=O$2(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Su$1(Ra){let qa=new Set,nd=[];function od(ud){if(ud.type===ve$6&&hu$2(nd),ud.type===le$5){if(nd.push(ud),qa.has(ud))return!1;qa.add(ud)}}function ld(ud){ud.type===le$5&&nd.pop().break&&hu$2(nd)}qn$2(Ra,od,ld,!0)}function Lo$2(Ra){return Ra.type===me$4&&!Ra.hard?Ra.soft?"":" ":Ra.type===xe$4?Ra.flatContents:Ra}function ur$2(Ra){return mt$3(Ra,Lo$2)}function wo$1(Ra){switch(ut$3(Ra)){case Pe$5:if(Ra.parts.every(qa=>qa===""))return"";break;case le$5:if(!Ra.contents&&!Ra.id&&!Ra.break&&!Ra.expandedStates)return"";if(Ra.contents.type===le$5&&Ra.contents.id===Ra.id&&Ra.contents.break===Ra.break&&Ra.contents.expandedStates===Ra.expandedStates)return Ra.contents;break;case Ye$4:case Xe$3:case He$4:case Ve$4:if(!Ra.contents)return"";break;case xe$4:if(!Ra.flatContents&&!Ra.breakContents)return"";break;case _e$4:{let qa=[];for(let nd of Ra){if(!nd)continue;let[o
`)):nd)}function Oo$1(Ra){if(Ra.type===me$4)return!0}function Bu$1(Ra){return gu$1(Ra,Oo$1,!1)}function ir$3(Ra,qa){return Ra.type===je$5?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}function _o$1(Ra){let qa=`*${Ra.value}*`.split(`
`);return qa.length>1&&qa.every(nd=>nd.trimStart()[0]==="*")}var bu$1=_o$1;function Pu$1(Ra,qa){let nd=Ra.node;if(vt$4(nd))return qa.originalText.slice(R$5(nd),k$1(nd)).trimEnd();if(re$5(nd))return bu$1(nd)?jo$1(nd):["/*",Ie$4(nd.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(nd))}function jo$1(Ra){let qa=Ra.value.split(`
`);return["/*",P$5(F$2,qa.map((nd,od)=>od===0?nd.trimEnd():" "+(od<qa.length-1?nd.trim():nd.trimStart()))),"*/"]}var Kn$3={};Ar$1(Kn$3,{endOfLine:()=>Go$1,ownLine:()=>Wo$1,remaining:()=>Uo$2});function vo(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",nd=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 nd.length>20&&(nd=nd.slice(0,19)+"…"),qa+(nd?" "+nd:"")}function Nn$3(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=vo(Ra)}function ce$6(Ra,qa){qa.leading=!0,qa.trailing=!1,Nn$3(Ra,qa)}function Le$5(Ra,qa,nd){qa.leading=!1,qa.trailing=!1,nd&&(qa.marker=nd),Nn$3(Ra,qa)}function z$4(Ra,qa){qa.leading=!1,qa.trailing=!0,Nn$3(Ra,qa)}function Mo$3(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=Ge$3(Ra,od),od=Lt$2(Ra,od),od=wt$2(Ra,od),od=Ue$3(Ra,od);return od}var yt$2=Mo$3;function Ro$1(Ra,qa){let nd=yt$2(Ra,qa);return nd===!1?"":Ra.charAt(nd)}var ge$6=Ro$1;function Jo$2(Ra,qa,nd){for(let od=qa;od<nd;++od)if(Ra.charAt(od)===`
`)return!0;return!1}var de$4=Jo$2;function qo$1(Ra){return re$5(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(Ra.value)}var ku$1=qo$1;function Wo$1(Ra){return[Mu$2,Lu$1,_u$2,ep,Xo$1,Yn$2,Hn$2,Iu$2,wu$2,sp,rp,$n$3,vu$2,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$2,Yn$2,Hn$2,Iu$2,wu$2,ju$2,tp,np,$n$3,op$1,Vn$3,lp,mp].some(qa=>qa(Ra))}function Uo$2(Ra){return[Mu$2,Yn$2,Hn$2,Ho$2,Zo$2,Ou$2,$n$3,Qo$2,zo,cp,Vn$3,pp].some(qa=>qa(Ra))}function bt$4(Ra,qa){let nd=(Ra.body||Ra.properties).find(({type:od})=>od!=="EmptyStatement");nd?ce$6(nd,qa):Le$5(Ra,qa)}function Xn$3(Ra,qa){Ra.type==="BlockStatement"?bt$4(Ra,qa):ce$6(Ra,qa)}function No$1({comment:Ra,followingNode:qa}){return qa&&ku$1(Ra)?(ce$6(qa,Ra),!0):!1}function Yn$2({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od,text:ld}){if((nd==null?void 0:nd.type)!=="IfStatement"||!od)return!1;if(ge$6(ld,k$1(Ra))===")")return z$4(qa,Ra),!0;if(qa===nd.consequent&&od===nd.alternate){if(qa.type==="BlockStatement")z$4(qa,Ra);else{let ud=vt$4(Ra)||Ra.loc.start.line===Ra.loc.end.line,cd=Ra.loc.start.line===qa.loc.start.line;ud&&cd?z$4(qa,Ra):Le$5(nd,Ra)}return!0}return od.type==="BlockStatement"?(bt$4(od,Ra),!0):od.type==="IfStatement"?(Xn$3(od.consequent,Ra),!0):nd.consequent===od?(ce$6(od,Ra),!0):!1}function Hn$2({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od,text:ld}){return(nd==null?void 0:nd.type)!=="WhileStatement"||!od?!1:ge$6(ld,k$1(Ra))===")"?(z$4(qa,Ra),!0):od.type==="BlockStatement"?(bt$4(od,Ra),!0):nd.body===od?(ce$6(od,Ra),!0):!1}function Iu$2({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od}){return(nd==null?void 0:nd.type)!=="TryStatement"&&(nd==null?void 0:nd.type)!=="CatchClause"||!od?!1:nd.type==="CatchClause"&&qa?(z$4(qa,Ra),!0):od.type==="BlockStatement"?(bt$4(od,Ra),!0):od.type==="TryStatement"?(Xn$3(od.finalizer,Ra),!0):od.type==="CatchClause"?(Xn$3(od.body,Ra),!0):!1}function Xo$1({comment:Ra,enclosingNode:qa,followingNode:nd}){return q$5(qa)&&(nd==null?void 0:nd.type)==="Identifier"?(ce$6(qa,Ra),!0):!1}function Yo$1({comment:Ra,enclosingNode:qa,followingNode:nd,options:od}){return!od.experimentalTernaries||!((qa==null?void 0:qa.type)==="ConditionalExpression"||(qa==null?void 0:qa.type)==="ConditionalTypeAnnotation"||(qa==null?void 0:qa.type)==="TSConditionalType")?!1:(nd==null?void 0:nd.type)==="ConditionalExpression"||(nd==null?void 0:nd.type)==="ConditionalTypeAnnotation"||(nd==null?void 0:nd.type)==="TSConditionalType"?(Le$5(qa,Ra),!0):!1}function Lu$1({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od,text:ld,options:ud}){let cd=qa&&!de$4(ld,k$1(qa),R$5(Ra));return(!qa||!cd)&&((nd==null?void 0:nd.type)==="ConditionalExpression"||(nd==null?void 0:nd.type)==="ConditionalTypeAnnotation"||(nd==null?void 0:nd.type)==="TSConditionalType")&&od?ud.experimentalTernaries&&nd.alternate===od&&!(re$5(Ra)&&!de$4(ud.originalText,R$5(Ra),k$1(Ra)))?(Le$5(nd,Ra),!0):(ce$6(od,Ra),!0):!1}function Ho$2({comment:Ra,precedingNode:qa,enclosingNode:nd}){return Ae$5(nd)&&nd.shorthand&&nd.key===qa&&nd.value.type==="AssignmentPattern"?(z$4(nd.value.left,Ra),!0):!1}var Vo$2=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu$2({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od}){if(Vo$2.has(nd==null?void 0:nd.type)){if(w$1(nd.decorators)&&(od==null?void 0:od.type)!=="Decorator")return z$4(O$2(!1,nd.decorators,-1),Ra),!0;if(nd.body&&od===nd.body)return bt$4(nd.body,Ra),!0;if(od){if(nd.superClass&&od===nd.superClass&&qa&&(qa===nd.id||qa===nd.typeParameters))return z$4(qa,Ra),!0;for(let ld of["implements","extends","mixins"])if(nd[ld]&&od===nd[ld][0])return qa&&(qa===nd.id||qa===nd.typeParameters||qa===nd.superClass)?z$4(qa,Ra):Le$5(nd,Ra,ld),!0}}return!1}var $o$1=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]
`;default:return`
`}}var Se$6=Symbol("MODE_BREAK"),at$5=Symbol("MODE_FLAT"),ar$2=Symbol("cursor");function qu$2(){return{value:"",length:0,queue:[]}}function Cp(Ra,qa){return Qn$3(Ra,{type:"indent"},qa)}function Ap(Ra,qa,nd){return qa===Number.NEGATIVE_INFINITY?Ra.root||qu$2():qa<0?Qn$3(Ra,{type:"dedent"},nd):qa?qa.type==="root"?{...Ra,root:Ra}:Qn$3(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},nd):Ra}function Qn$3(Ra,qa,nd){let od=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],ld="",ud=0,cd=0,dd=0;for(let Id of od)switch(Id.type){case"indent":md(),nd.useTabs?pd(1):fd(nd.tabWidth);break;case"stringAlign":md(),ld+=Id.n,ud+=Id.n.length;break;case"numberAlign":cd+=1,dd+=Id.n;break;default:throw new Error(`Unexpected type '${Id.type}'`)}return Ad(),{...Ra,value:ld,length:ud,queue:od};function pd(Id){ld+=" ".repeat(Id),ud+=nd.tabWidth*Id}function fd(Id){ld+=" ".repeat(Id),ud+=Id}function md(){nd.useTabs?vd():Ad()}function vd(){cd>0&&pd(cd),Nd()}function Ad(){dd>0&&fd(dd),Nd()}function Nd(){cd=0,dd=0}}function Zn$3(Ra){let qa=0,nd=0,od=Ra.length;e:for(;od--;){let ld=Ra[od];if(ld===ar$2){nd++;continue}for(let ud=ld.length-1;ud>=0;ud--){let cd=ld[ud];if(cd===" "||cd===" ")qa++;else{Ra[od]=ld.slice(0,ud+1);break e}}}if(qa>0||nd>0)for(Ra.length=od+1;nd-- >0;)Ra.push(ar$2);return qa}function Jr$2(Ra,qa,nd,od,ld,ud){if(nd===Number.POSITIVE_INFINITY)return!0;let cd=qa.length,dd=[Ra],pd=[];for(;nd>=0;){if(dd.length===0){if(cd===0)return!0;dd.push(qa[--cd]);continue}let{mode:fd,doc:md}=dd.pop(),vd=ut$3(md);switch(vd){case rt$3:pd.push(md),nd-=et$4(md);break;case _e$4:case Pe$5:{let Ad=vd===_e$4?md:md.parts;for(let Nd=Ad.length-1;Nd>=0;Nd--)dd.push({mode:fd,doc:Ad[Nd]});break}case Xe$3:case Ye$4:case He$4:case je$5:dd.push({mode:fd,doc:md.contents});break;case st$3:nd+=Zn$3(pd);break;case le$5:{if(ud&&md.break)return!1;let Ad=md.break?Se$6:fd,Nd=md.expandedStates&&Ad===Se$6?O$2(!1,md.expandedStates,-1):md.contents;dd.push({mode:Ad,doc:Nd});break}case xe$4:{let Ad=(md.groupId?ld[md.groupId]||at$5:fd)===Se$6?md.breakContents:md.flatContents;Ad&&dd.push({mode:fd,doc:Ad});break}case me$4:if(fd===Se$6||md.hard)return!0;md.soft||(pd.push(" "),nd--);break;case Ve$4:od=!0;break;case $e$3:if(od)return!1;break}}return!1}function es$1(Ra,qa){let nd={},od=qa.printWidth,ld=Ju$2(qa.endOfLine),ud=0,cd=[{ind:qu$2(),mode:Se$6,doc:Ra}],dd=[],pd=!1,fd=[],md=0;for(Su$1(Ra);cd.length>0;){let{ind:Ad,mode:Nd,doc:Id}=cd.pop();switch(ut$3(Id)){case rt$3:{let kd=ld!==`
`?N$5(!1,Id,`
`,ld):Id;dd.push(kd),cd.length>0&&(ud+=et$4(kd));break}case _e$4:for(let kd=Id.length-1;kd>=0;kd--)cd.push({ind:Ad,mode:Nd,doc:Id[kd]});break;case nt$3:if(md>=2)throw new Error("There are too many 'cursor' in doc.");dd.push(ar$2),md++;break;case Xe$3:cd.push({ind:Cp(Ad,qa),mode:Nd,doc:Id.contents});break;case Ye$4:cd.push({ind:Ap(Ad,Id.n,qa),mode:Nd,doc:Id.contents});break;case st$3:ud-=Zn$3(dd);break;case le$5:switch(Nd){case at$5:if(!pd){cd.push({ind:Ad,mode:Id.break?Se$6:at$5,doc:Id.contents});break}case Se$6:{pd=!1;let kd={ind:Ad,mode:at$5,doc:Id.contents},jd=od-ud,Fd=fd.length>0;if(!Id.break&&Jr$2(kd,cd,jd,Fd,nd))cd.push(kd);else if(Id.expandedStates){let Md=O$2(!1,Id.expandedStates,-1);if(Id.break){cd.push({ind:Ad,mode:Se$6,doc:Md});break}else for(let Ld=1;Ld<Id.expandedStates.length+1;Ld++)if(Ld>=Id.expandedStates.length){cd.push({ind:Ad,mode:Se$6,doc:Md});break}else{let Hd=Id.expandedStates[Ld],Gd={ind:Ad,mode:at$5,doc:Hd};if(Jr$2(Gd,cd,jd,Fd,nd)){cd.push(Gd);break}}}else cd.push({ind:Ad,mode:Se$6,doc:Id.contents});break}}Id.id&&(nd[Id.id]=O$2(!1,cd,-1).mode);break;case Pe$5:{let kd=od-ud,{parts:jd}=Id;if(jd.length===0)break;let[Fd,Md]=jd,Ld={ind:Ad,mode:at$5,doc:Fd},Hd={ind:Ad,mode:Se$6,doc:Fd},Gd=Jr$2(Ld,[],kd,fd.length>0,nd,!0);if(jd.length===1){Gd?cd.push(Ld):cd.push(Hd);break}let Vd={ind:Ad,mode:at$5,doc:Md},Qd={ind:Ad,mode:Se$6,doc:Md};if(jd.length===2){Gd?cd.push(Vd,Ld):cd.push(Qd,Hd);break}jd.splice(0,2);let mf={ind:Ad,mode:Nd,doc:qt$4(jd)},Yd=jd[0];Jr$2({ind:Ad,mode:at$5,doc:[Fd,Md,Yd]},[],kd,fd.length>0,nd,!0)?cd.push(mf,Vd,Ld):Gd?cd.push(mf,Qd,Ld):cd.push(mf,Qd,Hd);break}case xe$4:case He$4:{let kd=Id.groupId?nd[Id.groupId]:Nd;if(kd===Se$6){let jd=Id.type===xe$4?Id.breakContents:Id.negate?Id.contents:f$1(Id.contents);jd&&cd.push({ind:Ad,mode:Nd,doc:jd})}if(kd===at$5){let jd=Id.type===xe$4?Id.flatContents:Id.negate?f$1(Id.contents):Id.contents;jd&&cd.push({ind:Ad,mode:Nd,doc:jd})}break}case Ve$4:fd.push({ind:Ad,mode:Nd,doc:Id.contents});break;case $e$3:fd.length>0&&cd.push({ind:Ad,mode:Nd,doc:Gn$3});break;case me$4:switch(Nd){case at$5:if(Id.hard)pd=!0;else{Id.soft||(dd.push(" "),ud+=1);break}case Se$6:if(fd.length>0){cd.push({ind:Ad,mode:Nd,doc:Id},...fd.reverse()),fd.length=0;break}Id.literal?Ad.root?(dd.push(ld,Ad.root.value),ud=Ad.root.length):(dd.push(ld),ud=0):(ud-=Zn$3(dd),dd.push(ld+Ad.value),ud=Ad.length);break}break;case je$5:cd.push({ind:Ad,mode:Nd,doc:Id.contents});break;case ve$6:break;default:throw new Ct$3(Id)}cd.length===0&&fd.length>0&&(cd.push(...fd.reverse()),fd.length=0)}let vd=dd.indexOf(ar$2);if(vd!==-1){let Ad=dd.indexOf(ar$2,vd+1),Nd=dd.slice(0,vd).join(""),Id=dd.slice(vd+1,Ad).join(""),kd=dd.slice(Ad+1).join("");return{formatted:Nd+Id+kd,cursorNodeStart:Nd.length,cursorNodeText:Id}}return{formatted:dd.join("")}}function Tp(Ra,qa,nd=0){let od=0;for(let ld=nd;ld<Ra.length;++ld)Ra[ld]===" "?od=od+qa-od%qa:od++;return od}var Wu$1=Tp;function dp(Ra,qa){let nd=Ra.lastIndexOf(`
`);return nd===-1?0:Wu$1(Ra.slice(nd+1).match(/^[\t ]*/u)[0],qa)}var Gu$2=dp;function qr$2(Ra,qa,nd){let{node:od}=Ra;if(od.type==="TemplateLiteral"&&gp(Ra)){let pd=xp(Ra,nd,qa);if(pd)return pd}let ld="expressions";od.type==="TSTemplateLiteralType"&&(ld="types");let ud=[],cd=Ra.map(qa,ld);ud.push(ke$5,"`");let dd=0;return Ra.each(({index:pd,node:fd})=>{if(ud.push(qa()),fd.tail)return;let{tabWidth:md}=nd,vd=fd.value.raw,Ad=vd.includes(`
`)?Gu$2(vd,md):dd;dd=Ad;let Nd=cd[pd],Id=od[ld][pd],kd=de$4(nd.originalText,k$1(fd),R$5(od.quasis[pd+1]));if(!kd){let Fd=es$1(Nd,{...nd,printWidth:Number.POSITIVE_INFINITY}).formatted;Fd.includes(`
`)?kd=!0:Nd=Fd}kd&&(d$1(Id)||Id.type==="Identifier"||q$5(Id)||Id.type==="ConditionalExpression"||Id.type==="SequenceExpression"||Te$4(Id)||De$4(Id))&&(Nd=[f$1([E$4,Nd]),E$4]);let jd=Ad===0&&vd.endsWith(`
`)?he$3(Number.NEGATIVE_INFINITY,Nd):xu$1(Nd,Ad,md);ud.push(l$1(["${",jd,ke$5,"}"]))},"quasis"),ud.push("`"),ud}function Uu$3(Ra,qa){let nd=qa("quasi");return it$3(nd.label&&{tagged:!0,...nd.label},[qa("tag"),qa(Ra.node.typeArguments?"typeArguments":"typeParameters"),ke$5,nd])}function xp(Ra,qa,nd){let{node:od}=Ra,ld=od.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(ld.length>1||ld.some(ud=>ud.length>0)){qa.__inJestEach=!0;let ud=Ra.map(nd,"expressions");qa.__inJestEach=!1;let cd=[],dd=ud.map(Ad=>"${"+es$1(Ad,{...qa,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),pd=[{hasLineBreak:!1,cells:[]}];for(let Ad=1;Ad<od.quasis.length;Ad++){let Nd=O$2(!1,pd,-1),Id=dd[Ad-1];Nd.cells.push(Id),Id.includes(`
`)&&(Nd.hasLineBreak=!0),od.quasis[Ad].value.raw.includes(`
`)&&pd.push({hasLineBreak:!1,cells:[]})}let fd=Math.max(ld.length,...pd.map(Ad=>Ad.cells.length)),md=Array.from({length:fd}).fill(0),vd=[{cells:ld},...pd.filter(Ad=>Ad.cells.length>0)];for(let{cells:Ad}of vd.filter(Nd=>!Nd.hasLineBreak))for(let[Nd,Id]of Ad.entries())md[Nd]=Math.max(md[Nd],et$4(Id));return cd.push(ke$5,"`",f$1([F$2,P$5(F$2,vd.map(Ad=>P$5(" | ",Ad.cells.map((Nd,Id)=>Ad.hasLineBreak?Nd:Nd+" ".repeat(md[Id]-et$4(Nd))))))]),F$2,"`"),cd}}function hp(Ra,qa){let{node:nd}=Ra,od=qa();return d$1(nd)&&(od=l$1([f$1([E$4,od]),E$4])),["${",od,ke$5,"}"]}function Gt$3(Ra,qa){return Ra.map(nd=>hp(nd,qa),"expressions")}function Wr$2(Ra,qa){return mt$3(Ra,nd=>typeof nd=="string"?qa?N$5(!1,nd,/(\\*)`/gu,"$1$1\\`"):ts(nd):nd)}function ts(Ra){return N$5(!1,Ra,/([\\`]|\$\{)/gu,String.raw`\$1`)}function gp({node:Ra,parent:qa}){let nd=/^[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"&&nd.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"&&nd.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=od=>od.type==="TemplateLiteral",nd=(od,ld)=>Ae$5(od)&&!od.computed&&od.key.type==="Identifier"&&od.key.name==="styles"&&ld==="value";return Ra.match(qa,(od,ld)=>U$5(od)&&ld==="elements",nd,...ns$1)||Ra.match(qa,nd,...ns$1)}function Xu$2(Ra){return Ra.match(qa=>qa.type==="TemplateLiteral",(qa,nd)=>Ae$5(qa)&&!qa.computed&&qa.key.type==="Identifier"&&qa.key.name==="template"&&nd==="value",...ns$1)}function rs$1(Ra,qa){return d$1(Ra,g$3.Block|g$3.Leading,({value:nd})=>nd===` ${qa} `)}function Gr$2({node:Ra,parent:qa},nd){return rs$1(Ra,nd)||Sp(qa)&&rs$1(qa,nd)||qa.type==="ExpressionStatement"&&rs$1(qa,nd)}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(Ra,qa,nd){let{node:od}=nd,ld=od.quasis.map(md=>md.value.raw),ud=0,cd=ld.reduce((md,vd,Ad)=>Ad===0?vd:md+"@prettier-placeholder-"+ud+++"-id"+vd,""),dd=await Ra(cd,{parser:"scss"}),pd=Gt$3(nd,qa),fd=bp(dd,pd);if(!fd)throw new Error("Couldn't insert all the expressions");return["`",f$1([F$2,fd]),E$4,"`"]}function bp(Ra,qa){if(!w$1(qa))return Ra;let nd=0,od=mt$3(Wt$3(Ra),ld=>typeof ld!="string"||!ld.includes("@prettier-placeholder")?ld:ld.split(/@prettier-placeholder-(\d+)-id/u).map((ud,cd)=>cd%2===0?Ie$4(ud):(nd++,qa[ud])));return qa.length===nd?od:null}function Pp({node:Ra,parent:qa,grandparent:nd}){return nd&&Ra.quasis&&qa.type==="JSXExpressionContainer"&&nd.type==="JSXElement"&&nd.openingElement.name.name==="style"&&nd.openingElement.attributes.some(od=>od.type==="JSXAttribute"&&od.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$1(Ra){return/^[A-Z]/u.test(Ra.object.name)&&Ra.property.name==="extend"}function kp({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$1(qa);case"CallExpression":return Ur$2(qa.callee)||qa.callee.type==="MemberExpression"&&(qa.callee.object.type==="MemberExpression"&&(Ur$2(qa.callee.object.object)||Yu$1(qa.callee.obje
`),Nd=Ad.length,Id=ud[dd],kd=Nd>2&&Ad[0].trim()===""&&Ad[1].trim()==="",jd=Nd>2&&Ad[Nd-1].trim()===""&&Ad[Nd-2].trim()==="",Fd=Ad.every(Ld=>/^\s*(?:#[^\n\r]*)?$/u.test(Ld));if(!md&&/#[^\n\r]*$/u.test(Ad[Nd-1]))return null;let Md=null;Fd?Md=Op(Ad):Md=await Ra(vd,{parser:"graphql"}),Md?(Md=Wr$2(Md,!1),!fd&&kd&&cd.push(""),cd.push(Md),!md&&jd&&cd.push("")):!fd&&!md&&kd&&cd.push(""),Id&&cd.push(Id)}return["`",f$1([F$2,P$5(F$2,cd)]),F$2,"`"]}function Op(Ra){let qa=[],nd=!1,od=Ra.map(ld=>ld.trim());for(let[ld,ud]of od.entries())ud!==""&&(od[ld-1]===""&&nd?qa.push([F$2,ud]):qa.push(ud),nd=!0);return qa.length===0?null:P$5(F$2,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,nd,od,ld){let{node:ud}=od,cd=ss$1;ss$1=ss$1+1>>>0;let dd=Fd=>`PRETTIER_HTML_PLACEHOLDER_${Fd}_${cd}_IN_JS`,pd=ud.quasis.map((Fd,Md,Ld)=>Md===Ld.length-1?Fd.value.cooked:Fd.value.cooked+dd(Md)).join(""),fd=Gt$3(od,nd),md=new RegExp(dd(String.raw`(\d+)`),"gu"),vd=0,Ad=await qa(pd,{parser:Ra,__onHtmlRoot(Fd){vd=Fd.children.length}}),Nd=mt$3(Ad,Fd=>{if(typeof Fd!="string")return Fd;let Md=[],Ld=Fd.split(md);for(let Hd=0;Hd<Ld.length;Hd++){let Gd=Ld[Hd];if(Hd%2===0){Gd&&(Gd=ts(Gd),ld.__embeddedInHtml&&(Gd=N$5(!1,Gd,/<\/(?=script\b)/giu,String.raw`<\/`)),Md.push(Gd));continue}let Vd=Number(Gd);Md.push(fd[Vd])}return Md}),Id=/^\s/u.test(pd)?" ":"",kd=/\s$/u.test(pd)?" ":"",jd=ld.htmlWhitespaceSensitivity==="ignore"?F$2:Id&&kd?x$4:null;return jd?l$1(["`",f$1([jd,l$1(Nd)]),jd,"`"]):it$3({hug:!1},l$1(["`",Id,vd>1?f$1(l$1(Nd)):l$1(Nd),kd,"`"]))}function vp(Ra){return Gr$2(Ra,"HTML")||Ra.match(qa=>qa.type==="TemplateLiteral",(qa,nd)=>qa.type==="TaggedTemplateExpression"&&qa.tag.type==="Identifier"&&qa.tag.name==="html"&&nd==="quasi")}var Mp=$u$2.bind(void 0,"html"),Rp=$u$2.bind(void 0,"angular");function Jp(Ra){if(vp(Ra))return Mp;if(Xu$2(Ra))return Rp}var Ku$3=Jp;async function qp(Ra,qa,nd){let{node:od}=nd,ld=N$5(!1,od.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(pd,fd)=>"\\".repeat(fd.length/2)+"`"),ud=Wp(ld),cd=ud!=="";cd&&(ld=N$5(!1,ld,new RegExp(`^${ud}`,"gmu"),""));let dd=Wr$2(await Ra(ld,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",cd?f$1([E$4,dd]):[Rr$1,du$2(dd)],E$4,"`"]}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(Ra){let{node:qa}=Ra;if(qa.type!=="TemplateLiteral"||Xp(qa))return;let nd;for(let od of[Hu$3,Vu$3,Ku$3,zu$1])if(nd=od(Ra),!!nd)return qa.quasis.length===1&&qa.quasis[0].value.raw.trim()===""?"``":async(...ld)=>{let ud=await nd(...ld);return ud&&it$3({embed:!0,...ud.label},ud)}}function Xp({quasis:Ra}){return Ra.some(({value:{cooked:qa}})=>qa===null)}var Qu$2=Np,Yp=/\*\/$/,Hp=/^\/\*\*?/,ri$3=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Vp=/(^|\s+)\/\/([^\n\r]*)/g,Zu$3=/^(\r?\n)+/,$p=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei$3=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Kp=/(\r?\n|^) *\* ?/g,ni$3=[];function si$3(Ra){let qa=Ra.match(ri$3);return qa?qa[0].trimStart():""}function ui$3(Ra){let qa=Ra.match(ri$3),nd=qa==null?void 0:qa[0];return nd==null?Ra:Ra.slice(nd.length)}function ii$3(Ra){let qa=`
`;Ra=N$5(!1,Ra.replace(Hp,"").replace(Yp,""),Kp,"$1");let nd="";for(;nd!==Ra;)nd=Ra,Ra=N$5(!1,Ra,$p,`${qa}$1 $2${qa}`);Ra=Ra.replace(Zu$3,"").trimEnd();let od=Object.create(null),ld=N$5(!1,Ra,ei$3,"").replace(Zu$3,"").trimEnd(),ud;for(;ud=ei$3.exec(Ra);){let cd=N$5(!1,ud[2],Vp,"");if(typeof od[ud[1]]=="string"||Array.isArray(od[ud[1]])){let dd=od[ud[1]];od[ud[1]]=[...ni$3,...Array.isArray(dd)?dd:[dd],cd]}else od[ud[1]]=cd}return{comments:ld,pragmas:od}}function ai$3({comments:Ra="",pragmas:qa={}}){let nd=`
`,od="/**",ld=" *",ud=" */",cd=Object.keys(qa),dd=cd.flatMap(fd=>ti$3(fd,qa[fd])).map(fd=>`${ld} ${fd}${nd}`).join("");if(!Ra){if(cd.length===0)return"";if(cd.length===1&&!Array.isArray(qa[cd[0]])){let fd=qa[cd[0]];return`${od} ${ti$3(cd[0],fd)[0]}${ud}`}}let pd=Ra.split(nd).map(fd=>`${ld} ${fd}`).join(nd)+nd;return od+nd+(Ra?pd:"")+(Ra&&cd.length>0?ld+nd:"")+dd+ud}function ti$3(Ra,qa){return[...ni$3,...Array.isArray(qa)?qa:[qa]].map(nd=>`@${Ra} ${nd}`.trim())}function zp(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var oi$3=zp;function Qp(Ra){let qa=oi$3(Ra);qa&&(Ra=Ra.slice(qa.length+1));let nd=si$3(Ra),{pragmas:od,comments:ld}=ii$3(nd);return{shebang:qa,text:Ra,pragmas:od,comments:ld}}function pi$5(Ra){let{shebang:qa,text:nd,pragmas:od,comments:ld}=Qp(Ra),ud=ui$3(nd),cd=ai$3({pragmas:{format:"",...od},comments:ld.trimStart()});return(qa?`${qa}
`:"")+cd+(ud.startsWith(`
`)?`
`:`
`)+ud}function Zp(Ra,qa){let{originalText:nd,[Symbol.for("comments")]:od,locStart:ld,locEnd:ud,[Symbol.for("printedComments")]:cd}=qa,{node:dd}=Ra,pd=ld(dd),fd=ud(dd);for(let md of od)ld(md)>=pd&&ud(md)<=fd&&cd.add(md);return nd.slice(pd,fd)}var ci$3=Zp;function us$1(Ra,qa){var nd,od,ld,ud,cd,dd,pd,fd,md;if(Ra.isRoot)return!1;let{node:vd,key:Ad,parent:Nd}=Ra;if(qa.__isInHtmlInterpolation&&!qa.bracketSpacing&&nc$2(vd)&&or$2(Ra))return!0;if(ec$1(vd))return!1;if(vd.type==="Identifier"){if((nd=vd.extra)!=null&&nd.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(vd.name)||Ad==="left"&&(vd.name==="async"&&!Nd.await||vd.name==="let")&&Nd.type==="ForOfStatement")return!0;if(vd.name==="let"){let Id=(od=Ra.findAncestor(kd=>kd.type==="ForOfStatement"))==null?void 0:od.left;if(Id&&ie$4(Id,kd=>kd===vd))return!0}if(Ad==="object"&&vd.name==="let"&&Nd.type==="MemberExpression"&&Nd.computed&&!Nd.optional){let Id=Ra.findAncestor(jd=>jd.type==="ExpressionStatement"||jd.type==="ForStatement"||jd.type==="ForInStatement"),kd=Id?Id.type==="ExpressionStatement"?Id.expression:Id.type==="ForStatement"?Id.init:Id.left:void 0;if(kd&&ie$4(kd,jd=>jd===vd))return!0}if(Ad==="expression")switch(vd.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let Id=Ra.findAncestor(kd=>!Te$4(kd));if(Id!==Nd&&Id.type==="ExpressionStatement")return!0}}return!1}if(vd.type==="ObjectExpression"||vd.type==="FunctionExpression"||vd.type==="ClassExpression"||vd.type==="DoExpression"){let Id=(ld=Ra.findAncestor(kd=>kd.type==="ExpressionStatement"))==null?void 0:ld.expression;if(Id&&ie$4(Id,kd=>kd===vd))return!0}if(vd.type==="ObjectExpression"){let Id=(ud=Ra.findAncestor(kd=>kd.type==="ArrowFunctionExpression"))==null?void 0:ud.body;if(Id&&Id.type!=="SequenceExpression"&&Id.type!=="AssignmentExpression"&&ie$4(Id,kd=>kd===vd))return!0}switch(Nd.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(Ad==="superClass"&&(vd.type==="ArrowFunctionExpression"||vd.type==="AssignmentExpression"||vd.type==="AwaitExpression"||vd.type==="BinaryExpression"||vd.type==="ConditionalExpression"||vd.type==="LogicalExpression"||vd.type==="NewExpression"||vd.type==="ObjectExpression"||vd.type==="SequenceExpression"||vd.type==="TaggedTemplateExpression"||vd.type==="UnaryExpression"||vd.type==="UpdateExpression"||vd.type==="YieldExpression"||vd.type==="TSNonNullExpression"||vd.type==="ClassExpression"&&w$1(vd.decorators)))return!0;break;case"ExportDefaultDeclaration":return li$3(Ra,qa)||vd.type==="SequenceExpression";case"Decorator":if(Ad==="expression"&&!uc$2(vd))return!0;break;case"TypeAnnotation":if(Ra.match(void 0,void 0,(Id,kd)=>kd==="returnType"&&Id.type==="ArrowFunctionExpression")&&rc$2(vd))return!0;break;case"BinaryExpression":if(Ad==="left"&&(Nd.operator==="in"||Nd.operator==="instanceof")&&vd.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(Ad==="init"&&Ra.match(void 0,void 0,(Id,kd)=>kd==="declarations"&&Id.type==="VariableDeclaration",(Id,kd)=>kd==="left"&&Id.type==="ForInStatement"))return!0;break}switch(vd.type){case"UpdateExpression":if(Nd.type==="UnaryExpression")return vd.prefix&&(vd.operator==="++"&&Nd.operator==="+"||vd.operator==="--"&&Nd.operator==="-");case"UnaryExpression":switch(Nd.type){case"UnaryExpression":return vd.operator===Nd.operator&&(vd.operator==="+"||vd.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return Ad==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return Ad==="callee";case"BinaryExpression":return Ad==="left"&&Nd.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(Nd.type==="UpdateExpression"||vd.operator==="in"&&tc$1(Ra))return!0;if(vd.operator==="|>"&&(cd=vd.extra)!=null&&cd.parenthesized){let Id=Ra.grandparent;if(Id.type==="BinaryExpression"&&Id.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":cas
\r `),ms$1=Ra=>Ra===""||Ra===x$4||Ra===F$2||Ra===E$4;function cc(Ra,qa,nd){var od,ld,ud;let{node:cd}=Ra;if(cd.type==="JSXElement"&&gc$1(cd))return[nd("openingElement"),nd("closingElement")];let dd=cd.type==="JSXElement"?nd("openingElement"):nd("openingFragment"),pd=cd.type==="JSXElement"?nd("closingElement"):nd("closingFragment");if(cd.children.length===1&&cd.children[0].type==="JSXExpressionContainer"&&(cd.children[0].expression.type==="TemplateLiteral"||cd.children[0].expression.type==="TaggedTemplateExpression"))return[dd,...Ra.map(nd,"children"),pd];cd.children=cd.children.map(Vd=>Sc(Vd)?{type:"JSXText",value:" ",raw:" "}:Vd);let fd=cd.children.some(X$5),md=cd.children.filter(Vd=>Vd.type==="JSXExpressionContainer").length>1,vd=cd.type==="JSXElement"&&cd.openingElement.attributes.length>1,Ad=ne$5(dd)||fd||vd||md,Nd=Ra.parent.rootMarker==="mdx",Id=qa.singleQuote?"{' '}":'{" "}',kd=Nd?" ":b$2([Id,E$4]," "),jd=((ld=(od=cd.openingElement)==null?void 0:od.name)==null?void 0:ld.name)==="fbt",Fd=lc$1(Ra,qa,nd,kd,jd),Md=cd.children.some(Vd=>pr$2(Vd));for(let Vd=Fd.length-2;Vd>=0;Vd--){let Qd=Fd[Vd]===""&&Fd[Vd+1]==="",mf=Fd[Vd]===F$2&&Fd[Vd+1]===""&&Fd[Vd+2]===F$2,Yd=(Fd[Vd]===E$4||Fd[Vd]===F$2)&&Fd[Vd+1]===""&&Fd[Vd+2]===kd,Zd=Fd[Vd]===kd&&Fd[Vd+1]===""&&(Fd[Vd+2]===E$4||Fd[Vd+2]===F$2),Kd=Fd[Vd]===kd&&Fd[Vd+1]===""&&Fd[Vd+2]===kd,bf=Fd[Vd]===E$4&&Fd[Vd+1]===""&&Fd[Vd+2]===F$2||Fd[Vd]===F$2&&Fd[Vd+1]===""&&Fd[Vd+2]===E$4;mf&&Md||Qd||Yd||Kd||bf?Fd.splice(Vd,2):Zd&&Fd.splice(Vd+1,2)}for(;Fd.length>0&&ms$1(O$2(!1,Fd,-1));)Fd.pop();for(;Fd.length>1&&ms$1(Fd[0])&&ms$1(Fd[1]);)Fd.shift(),Fd.shift();let Ld=[];for(let[Vd,Qd]of Fd.entries()){if(Qd===kd){if(Vd===1&&Fd[Vd-1]===""){if(Fd.length===2){Ld.push(Id);continue}Ld.push([Id,F$2]);continue}else if(Vd===Fd.length-1){Ld.push(Id);continue}else if(Fd[Vd-1]===""&&Fd[Vd-2]===F$2){Ld.push(Id);continue}}Ld.push(Qd),ne$5(Qd)&&(Ad=!0)}let Hd=Md?qt$4(Ld):l$1(Ld,{shouldBreak:!0});if(((ud=qa.cursorNode)==null?void 0:ud.type)==="JSXText"&&cd.children.includes(qa.cursorNode)&&(Hd=[Un$3,Hd,Un$3]),Nd)return Hd;let Gd=l$1([dd,f$1([F$2,Hd]),F$2,pd]);return Ad?Gd:ze$5([l$1([dd,...Fd,pd]),Gd])}function lc$1(Ra,qa,nd,od,ld){let ud=[];return Ra.each(({node:cd,next:dd})=>{if(cd.type==="JSXText"){let pd=fe$6(cd);if(pr$2(cd)){let fd=Nr$2.split(pd,!0);fd[0]===""&&(ud.push(""),fd.shift(),/\n/u.test(fd[0])?ud.push(fi$3(ld,fd[1],cd,dd)):ud.push(od),fd.shift());let md;if(O$2(!1,fd,-1)===""&&(fd.pop(),md=fd.pop()),fd.length===0)return;for(let[vd,Ad]of fd.entries())vd%2===1?ud.push(x$4):ud.push(Ad);md!==void 0?/\n/u.test(md)?ud.push(fi$3(ld,O$2(!1,ud,-1),cd,dd)):ud.push(od):ud.push(Di$2(ld,O$2(!1,ud,-1),cd,dd))}else/\n/u.test(pd)?pd.match(/\n/gu).length>1&&ud.push("",F$2):ud.push("",od)}else{let pd=nd();if(ud.push(pd),dd&&pr$2(dd)){let fd=Nr$2.trim(fe$6(dd)),[md]=Nr$2.split(fd);ud.push(Di$2(ld,md,cd,dd))}else ud.push(F$2)}},"children"),ud}function Di$2(Ra,qa,nd,od){return Ra?"":nd.type==="JSXElement"&&!nd.closingElement||(od==null?void 0:od.type)==="JSXElement"&&!od.closingElement?qa.length===1?E$4:F$2:E$4}function fi$3(Ra,qa,nd,od){return Ra?F$2:qa.length===1?nd.type==="JSXElement"&&!nd.closingElement||(od==null?void 0:od.type)==="JSXElement"&&!od.closingElement?F$2:E$4:F$2}var mc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function yc$1(Ra,qa,nd){let{parent:od}=Ra;if(mc.has(od.type))return qa;let ld=Ra.match(void 0,cd=>cd.type==="ArrowFunctionExpression",L$5,cd=>cd.type==="JSXExpressionContainer"),ud=Be$6(Ra,nd);return l$1([ud?"":b$2("("),f$1([E$4,qa]),E$4,ud?"":b$2(")")],{shouldBreak:ld})}function Dc(Ra,qa,nd){let{node:od}=Ra,ld=[];if(ld.push(nd("name")),od.value){let ud;if(Q$5(od.value)){let cd=fe$6(od.value),dd=N$5(!1,N$5(!1,cd.slice(1,-1),"&apos;","'"),"&quot;",'"'),pd=xr$2(dd,qa.jsxSingleQuote);dd=pd==='"'?N$5(!1,dd,'"',"&quot;"):N$5(!1,dd,"'","&apos;"),ud=Ra.call(()=>ye$5(Ra,Ie$4(pd+dd+pd),qa),"value")}else ud=nd("value");ld.push
`)&&!cd&&!d$1(ud.attributes[0]))return l$1(["<",nd("name"),ud.typeArguments?nd("typeArguments"):nd("typeParameters")," ",...Ra.map(nd,"attributes"),ud.selfClosing?" />":">"]);let dd=(ld=ud.attributes)==null?void 0:ld.some(fd=>Q$5(fd.value)&&fd.value.value.includes(`
`)),pd=qa.singleAttributePerLine&&ud.attributes.length>1?F$2:x$4;return l$1(["<",nd("name"),ud.typeArguments?nd("typeArguments"):nd("typeParameters"),f$1(Ra.map(()=>[pd,nd()],"attributes")),...Fc$1(ud,qa,cd)],{shouldBreak:dd})}function Fc$1(Ra,qa,nd){return Ra.selfClosing?[x$4,"/>"]:Cc(Ra,qa,nd)?[">"]:[E$4,">"]}function Cc(Ra,qa,nd){let od=Ra.attributes.length>0&&d$1(O$2(!1,Ra.attributes,-1),g$3.Trailing);return Ra.attributes.length===0&&!nd||(qa.bracketSameLine||qa.jsxBracketSameLine)&&(!nd||Ra.attributes.length>0)&&!od}function Ac(Ra,qa,nd){let{node:od}=Ra,ld=[];ld.push("</");let ud=nd("name");return d$1(od.name,g$3.Leading|g$3.Line)?ld.push(f$1([F$2,ud]),F$2):d$1(od.name,g$3.Leading|g$3.Block)?ld.push(" ",ud):ld.push(ud),ld.push(">"),ld}function Tc(Ra,qa){let{node:nd}=Ra,od=d$1(nd),ld=d$1(nd,g$3.Line),ud=nd.type==="JSXOpeningFragment";return[ud?"<":"</",f$1([ld?F$2:od&&!ud?" ":"",M$5(Ra,qa)]),ld?F$2:"",">"]}function dc$1(Ra,qa,nd){let od=ye$5(Ra,cc(Ra,qa,nd),qa);return yc$1(Ra,od,qa)}function xc$1(Ra,qa){let{node:nd}=Ra,od=d$1(nd,g$3.Line);return[M$5(Ra,qa,{indent:od}),od?F$2:""]}function hc(Ra,qa,nd){let{node:od}=Ra;return["{",Ra.call(({node:ld})=>{let ud=["...",nd()];return!d$1(ld)||!zn$3(Ra)?ud:[f$1([E$4,ye$5(Ra,ud,qa)]),E$4]},od.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ei$1(Ra,qa,nd){let{node:od}=Ra;if(od.type.startsWith("JSX"))switch(od.type){case"JSXAttribute":return Dc(Ra,qa,nd);case"JSXIdentifier":return od.name;case"JSXNamespacedName":return P$5(":",[nd("namespace"),nd("name")]);case"JSXMemberExpression":return P$5(".",[nd("object"),nd("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hc(Ra,qa,nd);case"JSXExpressionContainer":return fc(Ra,qa,nd);case"JSXFragment":case"JSXElement":return dc$1(Ra,qa,nd);case"JSXOpeningElement":return Ec$1(Ra,qa,nd);case"JSXClosingElement":return Ac(Ra,qa,nd);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$5(od,"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$6(Ra))||!/\n/u.test(fe$6(Ra)))}function Sc(Ra){return Ra.type==="JSXExpressionContainer"&&Q$5(Ra.expression)&&Ra.expression.value===" "&&!d$1(Ra.expression)}function Fi$1(Ra){let{node:qa,parent:nd}=Ra;if(!X$5(qa)||!X$5(nd))return!1;let{index:od,siblings:ld}=Ra,ud;for(let cd=od;cd>0;cd--){let dd=ld[cd-1];if(!(dd.type==="JSXText"&&!pr$2(dd))){ud=dd;break}}return(ud==null?void 0:ud.type)==="JSXExpressionContainer"&&ud.expression.type==="JSXEmptyExpression"&&Bt$4(ud.expression)}function Bc(Ra){return Bt$4(Ra.node)||Fi$1(Ra)}var Xr$2=Bc,bc=0;function Yr$2(Ra,qa,nd){var od;let{node:ld,parent:ud,grandparent:cd,key:dd}=Ra,pd=dd!=="body"&&(ud.type==="IfStatement"||ud.type==="WhileStatement"||ud.type==="SwitchStatement"||ud.type==="DoWhileStatement"),fd=ld.operator==="|>"&&((od=Ra.root.extra)==null?void 0:od.__isUsingHackPipeline),md=ys$1(Ra,nd,qa,!1,pd);if(pd)return md;if(fd)return l$1(md);if(L$5(ud)&&ud.callee===ld||ud.type==="UnaryExpression"||q$5(ud)&&!ud.computed)return l$1([f$1([E$4,...md]),E$4]);let vd=ud.type==="ReturnStatement"||ud.type==="ThrowStatement"||ud.type==="JSXExpressionContainer"&&cd.type==="JSXAttribute"||ld.operator!=="|"&&ud.type==="JsExpressionRoot"||ld.type!=="NGPipeExpression"&&(ud.type==="NGRoot"&&qa.parser==="__ng_binding"||ud.type==="NGMicrosyntaxExpression"&&cd.type==="NGMicrosyntax"&&cd.body.length===1)||ld===ud.body&&ud.type==="ArrowFunctionExpression"||ld!==ud.body&&ud.type==="ForStatement"||ud.type==="ConditionalExpression"&&cd.type!=="ReturnStatement"&&cd.type!=="ThrowStatement"&&!L$5(cd)||ud.type==="TemplateLiteral",Ad=ud.type==="AssignmentExpression"||ud.type==="VariableDeclarator"||ud.type==="ClassProperty"||ud.type==="PropertyDefinition"||ud.type==="TSAbstractPropertyDefinition"||ud.type==="ClassPrivateProperty"||Ae
`).split(`
`),gf=0,Ef=bf.length,yf;++gf<Ef;)yf=bf[gf],yf!==""&&(bf[gf]=Qd+yf);return"[^"+(Kd.label||Kd.identifier)+"]: "+bf.join(`
`)}}function Ld(Gd,Vd,Qd){Gd.splice(Gd.indexOf(Vd),0,Qd)}function Hd(Gd,Vd,Qd,mf){for(var Yd=Gd.length,Zd=-1;++Zd<Yd;)if(Vd[Gd[Zd][0]].apply(Qd,mf))return!0;return!1}}),Bt$3=C$2(Ra=>{Ra.isRemarkParser=qa,Ra.isRemarkCompiler=nd;function qa(od){return!!(od&&od.prototype&&od.prototype.blockTokenizers)}function nd(od){return!!(od&&od.prototype&&od.prototype.visitors)}}),Mi=C$2((Ra,qa)=>{var nd=Bt$3();qa.exports=vd;var od=9,ld=32,ud=36,cd=48,dd=57,pd=92,fd=["math","math-inline"],md="math-display";function vd(Id){let kd=this.Parser,jd=this.Compiler;nd.isRemarkParser(kd)&&Ad(kd,Id),nd.isRemarkCompiler(jd)&&Nd(jd)}function Ad(Id,kd){let jd=Id.prototype,Fd=jd.inlineMethods;Ld.locator=Md,jd.inlineTokenizers.math=Ld,Fd.splice(Fd.indexOf("text"),0,"math");function Md(Hd,Gd){return Hd.indexOf("$",Gd)}function Ld(Hd,Gd,Vd){let Qd=Gd.length,mf=!1,Yd=!1,Zd=0,Kd,bf,gf,Ef,yf,xf,Af;if(Gd.charCodeAt(Zd)===pd&&(Yd=!0,Zd++),Gd.charCodeAt(Zd)===ud){if(Zd++,Yd)return Vd?!0:Hd(Gd.slice(0,Zd))({type:"text",value:"$"});if(Gd.charCodeAt(Zd)===ud&&(mf=!0,Zd++),gf=Gd.charCodeAt(Zd),!(gf===ld||gf===od)){for(Ef=Zd;Zd<Qd;){if(bf=gf,gf=Gd.charCodeAt(Zd+1),bf===ud){if(Kd=Gd.charCodeAt(Zd-1),Kd!==ld&&Kd!==od&&(gf!==gf||gf<cd||gf>dd)&&(!mf||gf===ud)){yf=Zd-1,Zd++,mf&&Zd++,xf=Zd;break}}else bf===pd&&(Zd++,gf=Gd.charCodeAt(Zd+1));Zd++}if(xf!==void 0)return Vd?!0:(Af=Gd.slice(Ef,yf+1),Hd(Gd.slice(0,xf))({type:"inlineMath",value:Af,data:{hName:"span",hProperties:{className:fd.concat(mf&&kd.inlineMathDouble?[md]:[])},hChildren:[{type:"text",value:Af}]}}))}}}}function Nd(Id){let kd=Id.prototype;kd.visitors.inlineMath=jd;function jd(Fd){let Md="$";return(Fd.data&&Fd.data.hProperties&&Fd.data.hProperties.className||[]).includes(md)&&(Md="$$"),Md+Fd.value+Md}}}),$i=C$2((Ra,qa)=>{var nd=Bt$3();qa.exports=md;var od=10,ld=32,ud=36,cd=`
`,dd="$",pd=2,fd=["math","math-display"];function md(){let Nd=this.Parser,Id=this.Compiler;nd.isRemarkParser(Nd)&&vd(Nd),nd.isRemarkCompiler(Id)&&Ad(Id)}function vd(Nd){let Id=Nd.prototype,kd=Id.blockMethods,jd=Id.interruptParagraph,Fd=Id.interruptList,Md=Id.interruptBlockquote;Id.blockTokenizers.math=Ld,kd.splice(kd.indexOf("fencedCode")+1,0,"math"),jd.splice(jd.indexOf("fencedCode")+1,0,["math"]),Fd.splice(Fd.indexOf("fencedCode")+1,0,["math"]),Md.splice(Md.indexOf("fencedCode")+1,0,["math"]);function Ld(Hd,Gd,Vd){var Qd=Gd.length,mf=0;let Yd,Zd,Kd,bf,gf,Ef,yf,xf,Af,Lf,Xf;for(;mf<Qd&&Gd.charCodeAt(mf)===ld;)mf++;for(gf=mf;mf<Qd&&Gd.charCodeAt(mf)===ud;)mf++;if(Ef=mf-gf,!(Ef<pd)){for(;mf<Qd&&Gd.charCodeAt(mf)===ld;)mf++;for(yf=mf;mf<Qd;){if(Yd=Gd.charCodeAt(mf),Yd===ud)return;if(Yd===od)break;mf++}if(Gd.charCodeAt(mf)===od){if(Vd)return!0;for(Zd=[],yf!==mf&&Zd.push(Gd.slice(yf,mf)),mf++,Kd=Gd.indexOf(cd,mf+1),Kd=Kd===-1?Qd:Kd;mf<Qd;){for(xf=!1,Lf=mf,Xf=Kd,bf=Kd,Af=0;bf>Lf&&Gd.charCodeAt(bf-1)===ld;)bf--;for(;bf>Lf&&Gd.charCodeAt(bf-1)===ud;)Af++,bf--;for(Ef<=Af&&Gd.indexOf(dd,Lf)===bf&&(xf=!0,Xf=bf);Lf<=Xf&&Lf-mf<gf&&Gd.charCodeAt(Lf)===ld;)Lf++;if(xf)for(;Xf>Lf&&Gd.charCodeAt(Xf-1)===ld;)Xf--;if((!xf||Lf!==Xf)&&Zd.push(Gd.slice(Lf,Xf)),xf)break;mf=Kd+1,Kd=Gd.indexOf(cd,mf+1),Kd=Kd===-1?Qd:Kd}return Zd=Zd.join(`
`),Hd(Gd.slice(0,Kd))({type:"math",value:Zd,data:{hName:"div",hProperties:{className:fd.concat()},hChildren:[{type:"text",value:Zd}]}})}}}}function Ad(Nd){let Id=Nd.prototype;Id.visitors.math=kd;function kd(jd){return`$$
`+jd.value+`
$$`}}}),Wi=C$2((Ra,qa)=>{var nd=Mi(),od=$i();qa.exports=ld;function ld(ud){var cd=ud||{};od.call(this,cd),nd.call(this,cd)}}),Ie$3=C$2((Ra,qa)=>{qa.exports=od;var nd=Object.prototype.hasOwnProperty;function od(){for(var ld={},ud=0;ud<arguments.length;ud++){var cd=arguments[ud];for(var dd in cd)nd.call(cd,dd)&&(ld[dd]=cd[dd])}return ld}}),Ji$1=C$2((Ra,qa)=>{typeof Object.create=="function"?qa.exports=function(nd,od){od&&(nd.super_=od,nd.prototype=Object.create(od.prototype,{constructor:{value:nd,enumerable:!1,writable:!0,configurable:!0}}))}:qa.exports=function(nd,od){if(od){nd.super_=od;var ld=function(){};ld.prototype=od.prototype,nd.prototype=new ld,nd.prototype.constructor=nd}}}),Zi=C$2((Ra,qa)=>{var nd=Ie$3(),od=Ji$1();qa.exports=ld;function ld(ud){var cd,dd,pd;od(md,ud),od(fd,md),cd=md.prototype;for(dd in cd)pd=cd[dd],pd&&typeof pd=="object"&&(cd[dd]="concat"in pd?pd.concat():nd(pd));return md;function fd(vd){return ud.apply(this,vd)}function md(){return this instanceof md?ud.apply(this,arguments):new fd(arguments)}}}),ru$1=C$2((Ra,qa)=>{qa.exports=nd;function nd(od,ld,ud){return cd;function cd(){var dd=ud||this,pd=dd[od];return dd[od]=!ld,fd;function fd(){dd[od]=pd}}}}),nu$2=C$2((Ra,qa)=>{qa.exports=nd;function nd(od){for(var ld=String(od),ud=[],cd=/\r?\n|\r/g;cd.exec(ld);)ud.push(cd.lastIndex);return ud.push(ld.length+1),{toPoint:dd,toPosition:dd,toOffset:pd};function dd(fd){var md=-1;if(fd>-1&&fd<ud[ud.length-1]){for(;++md<ud.length;)if(ud[md]>fd)return{line:md+1,column:fd-(ud[md-1]||0)+1,offset:fd}}return{}}function pd(fd){var md=fd&&fd.line,vd=fd&&fd.column,Ad;return!isNaN(md)&&!isNaN(vd)&&md-1 in ud&&(Ad=(ud[md-2]||0)+vd-1||0),Ad>-1&&Ad<ud[ud.length-1]?Ad:-1}}}),uu$2=C$2((Ra,qa)=>{qa.exports=od;var nd="\\";function od(ld,ud){return cd;function cd(dd){for(var pd=0,fd=dd.indexOf(nd),md=ld[ud],vd=[],Ad;fd!==-1;)vd.push(dd.slice(pd,fd)),pd=fd+1,Ad=dd.charAt(pd),(!Ad||md.indexOf(Ad)===-1)&&vd.push(nd),fd=dd.indexOf(nd,pd+1);return vd.push(dd.slice(pd)),vd.join("")}}}),au$1=C$2((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$1=C$2((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$3=C$2((Ra,qa)=>{qa.exports=nd;function nd(od){var ld=typeof od=="string"?od.charCodeAt(0):od;return ld>=48&&ld<=57}}),lu$1=C$2((Ra,qa)=>{qa.exports=nd;function nd(od){var ld=typeof od=="string"?od.charCodeAt(0):od;return ld>=97&&ld<=102||ld>=65&&ld<=70||ld>=48&&ld<=57}}),Ve$3=C$2((Ra,qa)=>{qa.exports=nd;function nd(od){var ld=typeof od=="string"?od.charCodeAt(0):od;return ld>=97&&ld<=122||ld>=65&&ld<=90}}),pu$1=C$2((Ra,qa)=>{var nd=Ve$3(),od=Ne$3();qa.exports=ld;function ld(ud){return nd(ud)||od(ud)}}),du$1=C$2((Ra,qa)=>{qa.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"<22>
`,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:"
`);Af!==-1;)kd++,xf=Af,Af=yf.indexOf(`
`,Af+1);xf===-1?jd+=yf.length:jd=yf.length-xf,kd in vd&&(xf!==-1?jd+=vd[kd]:jd<=vd[kd]&&(jd=vd[kd]+1))}function mf(){var yf=[],xf=kd+1;return function(){for(var Af=kd+1;xf<Af;)yf.push((vd[xf]||0)+1),xf++;return yf}}function Yd(){var yf={line:kd,column:jd};return yf.offset=md.toOffset(yf),yf}function Zd(yf){this.start=yf,this.end=Yd()}function Kd(yf){pd.slice(0,yf.length)!==yf&&md.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),Yd())}function bf(){var yf=Yd();return xf;function xf(Af,Lf){var Xf=Af.position,ih=Xf?Xf.start:yf,Zf=[],jf=Xf&&Xf.end.line,If=yf.line;if(Af.position=new Zd(ih),Xf&&Lf&&Xf.indent){if(Zf=Xf.indent,jf<If){for(;++jf<If;)Zf.push((vd[jf]||0)+1);Zf.push(yf.column)}Lf=Zf.concat(Lf)}return Af.position.indent=Lf||[],Af}}function gf(yf,xf){var Af=xf?xf.children:Ad,Lf=Af[Af.length-1],Xf;return Lf&&yf.type===Lf.type&&(yf.type==="text"||yf.type==="blockquote")&&od(Lf)&&od(yf)&&(Xf=yf.type==="text"?ld:ud,yf=Xf.call(md,Lf,yf)),yf!==Lf&&Af.push(yf),md.atStart&&Ad.length!==0&&md.exitStart(),yf}function Ef(yf){var xf=mf(),Af=bf(),Lf=Yd();return Kd(yf),Xf.reset=ih,ih.test=Zf,Xf.test=Zf,pd=pd.slice(yf.length),Qd(yf),xf=xf(),Xf;function Xf(jf,If){return Af(gf(Af(jf),If),xf)}function ih(){var jf=Xf.apply(null,arguments);return kd=Lf.line,jd=Lf.column,pd=yf+pd,jf}function Zf(){var jf=Af({});return kd=Lf.line,jd=Lf.column,pd=yf+pd,jf.position}}}}function od(cd){var dd,pd;return cd.type!=="text"||!cd.position?!0:(dd=cd.position.start,pd=cd.position.end,dd.line!==pd.line||pd.column-dd.column===cd.value.length)}function ld(cd,dd){return cd.value+=dd.value,cd}function ud(cd,dd){return this.options.commonmark||this.options.gfm?dd:(cd.children=cd.children.concat(dd.children),cd)}}),Uu$2=C$2((Ra,qa)=>{qa.exports=ud;var nd=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],od=nd.concat(["~","|"]),ld=od.concat([`
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);ud.default=nd,ud.gfm=od,ud.commonmark=ld;function ud(cd){var dd=cd||{};return dd.commonmark?ld:dd.gfm?od:nd}}),Mu$1=C$2((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$2((Ra,qa)=>{qa.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Mu$1()}}),Vu$2=C$2((Ra,qa)=>{var nd=Ie$3(),od=Uu$2(),ld=Rt$3();qa.exports=ud;function ud(cd){var dd=this,pd=dd.options,fd,md;if(cd==null)cd={};else if(typeof cd=="object")cd=nd(cd);else throw new Error("Invalid value `"+cd+"` for setting `options`");for(fd in ld){if(md=cd[fd],md==null&&(md=pd[fd]),fd!=="blocks"&&typeof md!="boolean"||fd==="blocks"&&typeof md!="object")throw new Error("Invalid value `"+md+"` for setting `options."+fd+"`");cd[fd]=md}return dd.options=cd,dd.escape=od(cd),dd}}),Hu$2=C$2((Ra,qa)=>{qa.exports=nd;function nd(dd){if(dd==null)return cd;if(typeof dd=="string")return ud(dd);if(typeof dd=="object")return"length"in dd?ld(dd):od(dd);if(typeof dd=="function")return dd;throw new Error("Expected function, string, or object as test")}function od(dd){return pd;function pd(fd){var md;for(md in dd)if(fd[md]!==dd[md])return!1;return!0}}function ld(dd){for(var pd=[],fd=-1;++fd<dd.length;)pd[fd]=nd(dd[fd]);return md;function md(){for(var vd=-1;++vd<pd.length;)if(pd[vd].apply(this,arguments))return!0;return!1}}function ud(dd){return pd;function pd(fd){return!!(fd&&fd.type===dd)}}function cd(){return!0}}),Ku$2=C$2((Ra,qa)=>{qa.exports=nd;function nd(od){return od}}),Zu$2=C$2((Ra,qa)=>{qa.exports=dd;var nd=Hu$2(),od=Ku$2(),ld=!0,ud="skip",cd=!1;dd.CONTINUE=ld,dd.SKIP=ud,dd.EXIT=cd;function dd(fd,md,vd,Ad){var Nd,Id;typeof md=="function"&&typeof vd!="function"&&(Ad=vd,vd=md,md=null),Id=nd(md),Nd=Ad?-1:1,kd(fd,null,[])();function kd(jd,Fd,Md){var Ld=typeof jd=="object"&&jd!==null?jd:{},Hd;return typeof Ld.type=="string"&&(Hd=typeof Ld.tagName=="string"?Ld.tagName:typeof Ld.name=="string"?Ld.name:void 0,Gd.displayName="node ("+od(Ld.type+(Hd?"<"+Hd+">":""))+")"),Gd;function Gd(){var Vd=Md.concat(jd),Qd=[],mf,Yd;if((!md||Id(jd,Fd,Md[Md.length-1]||null))&&(Qd=pd(vd(jd,Md)),Qd[0]===cd))return Qd;if(jd.children&&Qd[0]!==ud)for(Yd=(Ad?jd.children.length:-1)+Nd;Yd>-1&&Yd<jd.children.length;){if(mf=kd(jd.children[Yd],Yd,Vd)(),mf[0]===cd)return mf;Yd=typeof mf[1]=="number"?mf[1]:Yd+Nd}return Qd}}}function pd(fd){return fd!==null&&typeof fd=="object"&&"length"in fd?fd:typeof fd=="number"?[ld,fd]:[fd]}}),ra$1=C$2((Ra,qa)=>{qa.exports=cd;var nd=Zu$2(),od=nd.CONTINUE,ld=nd.SKIP,ud=nd.EXIT;cd.CONTINUE=od,cd.SKIP=ld,cd.EXIT=ud;function cd(dd,pd,fd,md){typeof pd=="function"&&typeof fd!="function"&&(md=fd,fd=pd,pd=null),nd(dd,pd,vd,md);function vd(Ad,Nd){var Id=Nd[Nd.length-1],kd=Id?Id.children.indexOf(Ad):null;return fd(Ad,kd,Id)}}}),na=C$2((Ra,qa)=>{var nd=ra$1();qa.exports=od;function od(cd,dd){return nd(cd,dd?ld:ud),cd}function ld(cd){delete cd.position}function ud(cd){cd.position=void 0}}),aa$1=C$2((Ra,qa)=>{var nd=Ie$3(),od=na();qa.exports=cd;var ld=`
`,ud=/\r\n|\r/g;function cd(){var dd=this,pd=String(dd.file),fd={line:1,column:1,offset:0},md=nd(fd),vd;return pd=pd.replace(ud,ld),pd.charCodeAt(0)===65279&&(pd=pd.slice(1),md.column++,md.offset++),vd={type:"root",children:dd.tokenizeBlock(pd,md),position:{start:fd,end:dd.eof||nd(fd)}},dd.options.position||od(vd,!0),vd}}),sa=C$2((Ra,qa)=>{var nd=/^[ \t]*(\n|$)/;qa.exports=od;function od(ld,ud,cd){for(var dd,pd="",fd=0,md=ud.length;fd<md&&(dd=nd.exec(ud.slice(fd)),dd!=null);)fd+=dd[0].length,pd+=dd[0];if(pd!==""){if(cd)return!0;ld(pd)}}}),Hr$2=C$2((Ra,qa)=>{var nd="",od;qa.exports=ld;function ld(ud,cd){if(typeof ud!="string")throw new TypeError("expected a string");if(cd===1)return ud;if(cd===2)return ud+ud;var dd=ud.length*cd;if(od!==ud||typeof od>"u")od=ud,nd="";else if(nd.length>=dd)return nd.substr(0,dd);for(;dd>nd.length&&cd>1;)cd&1&&(nd+=ud),cd>>=1,ud+=ud;return nd+=ud,nd=nd.substr(0,dd),nd}}),Mt$3=C$2((Ra,qa)=>{qa.exports=nd;function nd(od){return String(od).replace(/\n+$/,"")}}),pa=C$2((Ra,qa)=>{var nd=Hr$2(),od=Mt$3();qa.exports=fd;var ld=`
`,ud=" ",cd=" ",dd=4,pd=nd(cd,dd);function fd(md,vd,Ad){for(var Nd=-1,Id=vd.length,kd="",jd="",Fd="",Md="",Ld,Hd,Gd;++Nd<Id;)if(Ld=vd.charAt(Nd),Gd)if(Gd=!1,kd+=Fd,jd+=Md,Fd="",Md="",Ld===ld)Fd=Ld,Md=Ld;else for(kd+=Ld,jd+=Ld;++Nd<Id;){if(Ld=vd.charAt(Nd),!Ld||Ld===ld){Md=Ld,Fd=Ld;break}kd+=Ld,jd+=Ld}else if(Ld===cd&&vd.charAt(Nd+1)===Ld&&vd.charAt(Nd+2)===Ld&&vd.charAt(Nd+3)===Ld)Fd+=pd,Nd+=3,Gd=!0;else if(Ld===ud)Fd+=Ld,Gd=!0;else{for(Hd="";Ld===ud||Ld===cd;)Hd+=Ld,Ld=vd.charAt(++Nd);if(Ld!==ld)break;Fd+=Hd+Ld,Md+=Ld}if(jd)return Ad?!0:md(kd)({type:"code",lang:null,meta:null,value:od(jd)})}}),ma=C$2((Ra,qa)=>{qa.exports=fd;var nd=`
`,od=" ",ld=" ",ud="~",cd="`",dd=3,pd=4;function fd(md,vd,Ad){var Nd=this,Id=Nd.options.gfm,kd=vd.length+1,jd=0,Fd="",Md,Ld,Hd,Gd,Vd,Qd,mf,Yd,Zd,Kd,bf,gf,Ef;if(Id){for(;jd<kd&&(Hd=vd.charAt(jd),!(Hd!==ld&&Hd!==od));)Fd+=Hd,jd++;if(gf=jd,Hd=vd.charAt(jd),!(Hd!==ud&&Hd!==cd)){for(jd++,Ld=Hd,Md=1,Fd+=Hd;jd<kd&&(Hd=vd.charAt(jd),Hd===Ld);)Fd+=Hd,Md++,jd++;if(!(Md<dd)){for(;jd<kd&&(Hd=vd.charAt(jd),!(Hd!==ld&&Hd!==od));)Fd+=Hd,jd++;for(Gd="",mf="";jd<kd&&(Hd=vd.charAt(jd),!(Hd===nd||Ld===cd&&Hd===Ld));)Hd===ld||Hd===od?mf+=Hd:(Gd+=mf+Hd,mf=""),jd++;if(Hd=vd.charAt(jd),!(Hd&&Hd!==nd)){if(Ad)return!0;Ef=md.now(),Ef.column+=Fd.length,Ef.offset+=Fd.length,Fd+=Gd,Gd=Nd.decode.raw(Nd.unescape(Gd),Ef),mf&&(Fd+=mf),mf="",Kd="",bf="",Yd="",Zd="";for(var yf=!0;jd<kd;){if(Hd=vd.charAt(jd),Yd+=Kd,Zd+=bf,Kd="",bf="",Hd!==nd){Yd+=Hd,bf+=Hd,jd++;continue}for(yf?(Fd+=Hd,yf=!1):(Kd+=Hd,bf+=Hd),mf="",jd++;jd<kd&&(Hd=vd.charAt(jd),Hd===ld);)mf+=Hd,jd++;if(Kd+=mf,bf+=mf.slice(gf),!(mf.length>=pd)){for(mf="";jd<kd&&(Hd=vd.charAt(jd),Hd===Ld);)mf+=Hd,jd++;if(Kd+=mf,bf+=mf,!(mf.length<Md)){for(mf="";jd<kd&&(Hd=vd.charAt(jd),!(Hd!==ld&&Hd!==od));)Kd+=Hd,bf+=Hd,jd++;if(!Hd||Hd===nd)break}}}for(Fd+=Yd+Kd,jd=-1,kd=Gd.length;++jd<kd;)if(Hd=Gd.charAt(jd),Hd===ld||Hd===od)Vd||(Vd=Gd.slice(0,jd));else if(Vd){Qd=Gd.slice(jd);break}return md(Fd)({type:"code",lang:Vd||Gd||null,meta:Qd||null,value:Zd})}}}}}}),Re$5=C$2((Ra,qa)=>{Ra=qa.exports=nd;function nd(od){return od.trim?od.trim():Ra.right(Ra.left(od))}Ra.left=function(od){return od.trimLeft?od.trimLeft():od.replace(/^\s\s*/,"")},Ra.right=function(od){if(od.trimRight)return od.trimRight();for(var ld=/\s/,ud=od.length;ld.test(od.charAt(--ud)););return od.slice(0,ud+1)}}),Kr$2=C$2((Ra,qa)=>{qa.exports=nd;function nd(od,ld,ud,cd){for(var dd=od.length,pd=-1,fd,md;++pd<dd;)if(fd=od[pd],md=fd[1]||{},!(md.pedantic!==void 0&&md.pedantic!==ud.options.pedantic)&&!(md.commonmark!==void 0&&md.commonmark!==ud.options.commonmark)&&ld[fd[0]].apply(ud,cd))return!0;return!1}}),ba=C$2((Ra,qa)=>{var nd=Re$5(),od=Kr$2();qa.exports=pd;var ld=`
`,ud=" ",cd=" ",dd=">";function pd(fd,md,vd){for(var Ad=this,Nd=Ad.offset,Id=Ad.blockTokenizers,kd=Ad.interruptBlockquote,jd=fd.now(),Fd=jd.line,Md=md.length,Ld=[],Hd=[],Gd=[],Vd,Qd=0,mf,Yd,Zd,Kd,bf,gf,Ef,yf;Qd<Md&&(mf=md.charAt(Qd),!(mf!==cd&&mf!==ud));)Qd++;if(md.charAt(Qd)===dd){if(vd)return!0;for(Qd=0;Qd<Md;){for(Zd=md.indexOf(ld,Qd),gf=Qd,Ef=!1,Zd===-1&&(Zd=Md);Qd<Md&&(mf=md.charAt(Qd),!(mf!==cd&&mf!==ud));)Qd++;if(md.charAt(Qd)===dd?(Qd++,Ef=!0,md.charAt(Qd)===cd&&Qd++):Qd=gf,Kd=md.slice(Qd,Zd),!Ef&&!nd(Kd)){Qd=gf;break}if(!Ef&&(Yd=md.slice(Qd),od(kd,Id,Ad,[fd,Yd,!0])))break;bf=gf===Qd?Kd:md.slice(gf,Zd),Gd.push(Qd-gf),Ld.push(bf),Hd.push(Kd),Qd=Zd+1}for(Qd=-1,Md=Gd.length,Vd=fd(Ld.join(ld));++Qd<Md;)Nd[Fd]=(Nd[Fd]||0)+Gd[Qd],Fd++;return yf=Ad.enterBlock(),Hd=Ad.tokenizeBlock(Hd.join(ld),jd),yf(),Vd({type:"blockquote",children:Hd})}}}),xa$1=C$2((Ra,qa)=>{qa.exports=dd;var nd=`
`,od=" ",ld=" ",ud="#",cd=6;function dd(pd,fd,md){for(var vd=this,Ad=vd.options.pedantic,Nd=fd.length+1,Id=-1,kd=pd.now(),jd="",Fd="",Md,Ld,Hd;++Id<Nd;){if(Md=fd.charAt(Id),Md!==ld&&Md!==od){Id--;break}jd+=Md}for(Hd=0;++Id<=Nd;){if(Md=fd.charAt(Id),Md!==ud){Id--;break}jd+=Md,Hd++}if(!(Hd>cd)&&!(!Hd||!Ad&&fd.charAt(Id+1)===ud)){for(Nd=fd.length+1,Ld="";++Id<Nd;){if(Md=fd.charAt(Id),Md!==ld&&Md!==od){Id--;break}Ld+=Md}if(!(!Ad&&Ld.length===0&&Md&&Md!==nd)){if(md)return!0;for(jd+=Ld,Ld="",Fd="";++Id<Nd&&(Md=fd.charAt(Id),!(!Md||Md===nd));){if(Md!==ld&&Md!==od&&Md!==ud){Fd+=Ld+Md,Ld="";continue}for(;Md===ld||Md===od;)Ld+=Md,Md=fd.charAt(++Id);if(!Ad&&Fd&&!Ld&&Md===ud){Fd+=Md;continue}for(;Md===ud;)Ld+=Md,Md=fd.charAt(++Id);for(;Md===ld||Md===od;)Ld+=Md,Md=fd.charAt(++Id);Id--}return kd.column+=jd.length,kd.offset+=jd.length,jd+=Fd+Ld,pd(jd)({type:"heading",depth:Hd,children:vd.tokenizeInline(Fd,kd)})}}}}),Ba=C$2((Ra,qa)=>{qa.exports=fd;var nd=" ",od=`
`,ld=" ",ud="*",cd="-",dd="_",pd=3;function fd(md,vd,Ad){for(var Nd=-1,Id=vd.length+1,kd="",jd,Fd,Md,Ld;++Nd<Id&&(jd=vd.charAt(Nd),!(jd!==nd&&jd!==ld));)kd+=jd;if(!(jd!==ud&&jd!==cd&&jd!==dd))for(Fd=jd,kd+=jd,Md=1,Ld="";++Nd<Id;)if(jd=vd.charAt(Nd),jd===Fd)Md++,kd+=Ld+Fd,Ld="";else if(jd===ld)Ld+=jd;else return Md>=pd&&(!jd||jd===od)?(kd+=Ld,Ad?!0:md(kd)({type:"thematicBreak"})):void 0}}),$t$3=C$2((Ra,qa)=>{qa.exports=cd;var nd=" ",od=" ",ld=1,ud=4;function cd(dd){for(var pd=0,fd=0,md=dd.charAt(pd),vd={},Ad,Nd=0;md===nd||md===od;){for(Ad=md===nd?ud:ld,fd+=Ad,Ad>1&&(fd=Math.floor(fd/Ad)*Ad);Nd<fd;)vd[++Nd]=pd;md=dd.charAt(++pd)}return{indent:fd,stops:vd}}}),Oa$1=C$2((Ra,qa)=>{var nd=Re$5(),od=Hr$2(),ld=$t$3();qa.exports=pd;var ud=`
`,cd=" ",dd="!";function pd(fd,md){var vd=fd.split(ud),Ad=vd.length+1,Nd=1/0,Id=[],kd,jd,Fd;for(vd.unshift(od(cd,md)+dd);Ad--;)if(jd=ld(vd[Ad]),Id[Ad]=jd.stops,nd(vd[Ad]).length!==0)if(jd.indent)jd.indent>0&&jd.indent<Nd&&(Nd=jd.indent);else{Nd=1/0;break}if(Nd!==1/0)for(Ad=vd.length;Ad--;){for(Fd=Id[Ad],kd=Nd;kd&&!(kd in Fd);)kd--;vd[Ad]=vd[Ad].slice(Fd[kd]+1)}return vd.shift(),vd.join(ud)}}),Ua$1=C$2((Ra,qa)=>{var nd=Re$5(),od=Hr$2(),ld=Ne$3(),ud=$t$3(),cd=Oa$1(),dd=Kr$2();qa.exports=mf;var pd="*",fd="_",md="+",vd="-",Ad=".",Nd=" ",Id=`
`,kd=" ",jd=")",Fd="x",Md=4,Ld=/\n\n(?!\s*$)/,Hd=/^\[([ X\tx])][ \t]/,Gd=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Vd=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Qd=/^( {1,4}|\t)?/gm;function mf(bf,gf,Ef){for(var yf=this,xf=yf.options.commonmark,Af=yf.options.pedantic,Lf=yf.blockTokenizers,Xf=yf.interruptList,ih=0,Zf=gf.length,jf=null,If,Uf,qf,Kf,Tf,vf,Gf,Jf,gh,th,Pf,uh,xh,Qf,Nf,$f,Wf,vh,Th,dh=!1,Vh,wh,fm,Nm;ih<Zf&&(Kf=gf.charAt(ih),!(Kf!==kd&&Kf!==Nd));)ih++;if(Kf=gf.charAt(ih),Kf===pd||Kf===md||Kf===vd)Tf=Kf,qf=!1;else{for(qf=!0,Uf="";ih<Zf&&(Kf=gf.charAt(ih),!!ld(Kf));)Uf+=Kf,ih++;if(Kf=gf.charAt(ih),!Uf||!(Kf===Ad||xf&&Kf===jd)||Ef&&Uf!=="1")return;jf=parseInt(Uf,10),Tf=Kf}if(Kf=gf.charAt(++ih),!(Kf!==Nd&&Kf!==kd&&(Af||Kf!==Id&&Kf!==""))){if(Ef)return!0;for(ih=0,Qf=[],Nf=[],$f=[];ih<Zf;){for(vf=gf.indexOf(Id,ih),Gf=ih,Jf=!1,Nm=!1,vf===-1&&(vf=Zf),If=0;ih<Zf;){if(Kf=gf.charAt(ih),Kf===kd)If+=Md-If%Md;else if(Kf===Nd)If++;else break;ih++}if(Wf&&If>=Wf.indent&&(Nm=!0),Kf=gf.charAt(ih),gh=null,!Nm){if(Kf===pd||Kf===md||Kf===vd)gh=Kf,ih++,If++;else{for(Uf="";ih<Zf&&(Kf=gf.charAt(ih),!!ld(Kf));)Uf+=Kf,ih++;Kf=gf.charAt(ih),ih++,Uf&&(Kf===Ad||xf&&Kf===jd)&&(gh=Kf,If+=Uf.length+1)}if(gh)if(Kf=gf.charAt(ih),Kf===kd)If+=Md-If%Md,ih++;else if(Kf===Nd){for(fm=ih+Md;ih<fm&&gf.charAt(ih)===Nd;)ih++,If++;ih===fm&&gf.charAt(ih)===Nd&&(ih-=Md-1,If-=Md-1)}else Kf!==Id&&Kf!==""&&(gh=null)}if(gh){if(!Af&&Tf!==gh)break;Jf=!0}else!xf&&!Nm&&gf.charAt(Gf)===Nd?Nm=!0:xf&&Wf&&(Nm=If>=Wf.indent||If>Md),Jf=!1,ih=Gf;if(Pf=gf.slice(Gf,vf),th=Gf===ih?Pf:gf.slice(ih,vf),(gh===pd||gh===fd||gh===vd)&&Lf.thematicBreak.call(yf,bf,Pf,!0))break;if(uh=xh,xh=!Jf&&!nd(th).length,Nm&&Wf)Wf.value=Wf.value.concat($f,Pf),Nf=Nf.concat($f,Pf),$f=[];else if(Jf)$f.length!==0&&(dh=!0,Wf.value.push(""),Wf.trail=$f.concat()),Wf={value:[Pf],indent:If,trail:[]},Qf.push(Wf),Nf=Nf.concat($f,Pf),$f=[];else if(xh){if(uh&&!xf)break;$f.push(Pf)}else{if(uh||dd(Xf,Lf,yf,[bf,Pf,!0]))break;Wf.value=Wf.value.concat($f,Pf),Nf=Nf.concat($f,Pf),$f=[]}ih=vf+1}for(Vh=bf(Nf.join(Id)).reset({type:"list",ordered:qf,start:jf,spread:dh,children:[]}),vh=yf.enterList(),Th=yf.enterBlock(),ih=-1,Zf=Qf.length;++ih<Zf;)Wf=Qf[ih].value.join(Id),wh=bf.now(),bf(Wf)(Yd(yf,Wf,wh),Vh),Wf=Qf[ih].trail.join(Id),ih!==Zf-1&&(Wf+=Id),bf(Wf);return vh(),Th(),Vh}}function Yd(bf,gf,Ef){var yf=bf.offset,xf=bf.options.pedantic?Zd:Kd,Af=null,Lf,Xf;return gf=xf.apply(null,arguments),bf.options.gfm&&(Lf=gf.match(Hd),Lf&&(Xf=Lf[0].length,Af=Lf[1].toLowerCase()===Fd,yf[Ef.line]+=Xf,gf=gf.slice(Xf))),{type:"listItem",spread:Ld.test(gf),checked:Af,children:bf.tokenizeBlock(gf,Ef)}}function Zd(bf,gf,Ef){var yf=bf.offset,xf=Ef.line;return gf=gf.replace(Vd,Af),xf=Ef.line,gf.replace(Qd,Af);function Af(Lf){return yf[xf]=(yf[xf]||0)+Lf.length,xf++,""}}function Kd(bf,gf,Ef){var yf=bf.offset,xf=Ef.line,Af,Lf,Xf,ih,Zf,jf,If;for(gf=gf.replace(Gd,Uf),ih=gf.split(Id),Zf=cd(gf,ud(Af).indent).split(Id),Zf[0]=Xf,yf[xf]=(yf[xf]||0)+Lf.length,xf++,jf=0,If=ih.length;++jf<If;)yf[xf]=(yf[xf]||0)+ih[jf].length-Zf[jf].length,xf++;return Zf.join(Id);function Uf(qf,Kf,Tf,vf,Gf){return Lf=Kf+Tf+vf,Xf=Gf,Number(Tf)<10&&Lf.length%2===1&&(Tf=Nd+Tf),Af=Kf+od(Nd,Tf.length)+vf,Af+Xf}}}),Ga=C$2((Ra,qa)=>{qa.exports=md;var nd=`
`,od=" ",ld=" ",ud="=",cd="-",dd=3,pd=1,fd=2;function md(vd,Ad,Nd){for(var Id=this,kd=vd.now(),jd=Ad.length,Fd=-1,Md="",Ld,Hd,Gd,Vd,Qd;++Fd<jd;){if(Gd=Ad.charAt(Fd),Gd!==ld||Fd>=dd){Fd--;break}Md+=Gd}for(Ld="",Hd="";++Fd<jd;){if(Gd=Ad.charAt(Fd),Gd===nd){Fd--;break}Gd===ld||Gd===od?Hd+=Gd:(Ld+=Hd+Gd,Hd="")}if(kd.column+=Md.length,kd.offset+=Md.length,Md+=Ld+Hd,Gd=Ad.charAt(++Fd),Vd=Ad.charAt(++Fd),!(Gd!==nd||Vd!==ud&&Vd!==cd)){for(Md+=Gd,Hd=Vd,Qd=Vd===ud?pd:fd;++Fd<jd;){if(Gd=Ad.charAt(Fd),Gd!==Vd){if(Gd!==nd)return;Fd--;break}Hd+=Gd}return Nd?!0:vd(Md+Hd)({type:"heading",depth:Qd,children:Id.tokenizeInline(Ld,kd)})}}}),Xt$2=C$2(Ra=>{var qa="[a-zA-Z_:][a-zA-Z0-9:._-]*",nd="[^\"'=<>`\\u0000-\\u0020]+",od="'[^']*'",ld='"[^"]*"',ud="(?:"+nd+"|"+od+"|"+ld+")",cd="(?:\\s+"+qa+"(?:\\s*=\\s*"+ud+")?)",dd="<[A-Za-z][A-Za-z0-9\\-]*"+cd+"*\\s*\\/?>",pd="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",fd="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",md="<[?].*?[?]>",vd="<![A-Za-z]+\\s+[^>]*>",Ad="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";Ra.openCloseTag=new RegExp("^(?:"+dd+"|"+pd+")"),Ra.tag=new RegExp("^(?:"+dd+"|"+pd+"|"+fd+"|"+md+"|"+vd+"|"+Ad+")")}),Ka=C$2((Ra,qa)=>{var nd=Xt$2().openCloseTag;qa.exports=Ld;var od=" ",ld=" ",ud=`
`,cd="<",dd=/^<(script|pre|style)(?=(\s|>|$))/i,pd=/<\/(script|pre|style)>/i,fd=/^<!--/,md=/-->/,vd=/^<\?/,Ad=/\?>/,Nd=/^<![A-Za-z]/,Id=/>/,kd=/^<!\[CDATA\[/,jd=/]]>/,Fd=/^$/,Md=new RegExp(nd.source+"\\s*$");function Ld(Hd,Gd,Vd){for(var Qd=this,mf=Qd.options.blocks.join("|"),Yd=new RegExp("^</?("+mf+")(?=(\\s|/?>|$))","i"),Zd=Gd.length,Kd=0,bf,gf,Ef,yf,xf,Af,Lf,Xf=[[dd,pd,!0],[fd,md,!0],[vd,Ad,!0],[Nd,Id,!0],[kd,jd,!0],[Yd,Fd,!0],[Md,Fd,!1]];Kd<Zd&&(yf=Gd.charAt(Kd),!(yf!==od&&yf!==ld));)Kd++;if(Gd.charAt(Kd)===cd){for(bf=Gd.indexOf(ud,Kd+1),bf=bf===-1?Zd:bf,gf=Gd.slice(Kd,bf),Ef=-1,xf=Xf.length;++Ef<xf;)if(Xf[Ef][0].test(gf)){Af=Xf[Ef];break}if(Af){if(Vd)return Af[2];if(Kd=bf,!Af[1].test(gf))for(;Kd<Zd;){if(bf=Gd.indexOf(ud,Kd+1),bf=bf===-1?Zd:bf,gf=Gd.slice(Kd+1,bf),Af[1].test(gf)){gf&&(Kd=bf);break}Kd=bf}return Lf=Gd.slice(0,Kd),Hd(Lf)({type:"html",value:Lf})}}}}),ue$4=C$2((Ra,qa)=>{qa.exports=ld;var nd=String.fromCharCode,od=/\s/;function ld(ud){return od.test(typeof ud=="number"?nd(ud):ud.charAt(0))}}),Qt$2=C$2((Ra,qa)=>{var nd=xr$1();qa.exports=od;function od(ld){return nd(ld).toLowerCase()}}),io$1=C$2((Ra,qa)=>{var nd=ue$4(),od=Qt$2();qa.exports=Fd;var ld='"',ud="'",cd="\\",dd=`
`,pd=" ",fd=" ",md="[",vd="]",Ad="(",Nd=")",Id=":",kd="<",jd=">";function Fd(Hd,Gd,Vd){for(var Qd=this,mf=Qd.options.commonmark,Yd=0,Zd=Gd.length,Kd="",bf,gf,Ef,yf,xf,Af,Lf,Xf;Yd<Zd&&(yf=Gd.charAt(Yd),!(yf!==fd&&yf!==pd));)Kd+=yf,Yd++;if(yf=Gd.charAt(Yd),yf===md){for(Yd++,Kd+=yf,Ef="";Yd<Zd&&(yf=Gd.charAt(Yd),yf!==vd);)yf===cd&&(Ef+=yf,Yd++,yf=Gd.charAt(Yd)),Ef+=yf,Yd++;if(!(!Ef||Gd.charAt(Yd)!==vd||Gd.charAt(Yd+1)!==Id)){for(Af=Ef,Kd+=Ef+vd+Id,Yd=Kd.length,Ef="";Yd<Zd&&(yf=Gd.charAt(Yd),!(yf!==pd&&yf!==fd&&yf!==dd));)Kd+=yf,Yd++;if(yf=Gd.charAt(Yd),Ef="",bf=Kd,yf===kd){for(Yd++;Yd<Zd&&(yf=Gd.charAt(Yd),!!Md(yf));)Ef+=yf,Yd++;if(yf=Gd.charAt(Yd),yf===Md.delimiter)Kd+=kd+Ef+yf,Yd++;else{if(mf)return;Yd-=Ef.length+1,Ef=""}}if(!Ef){for(;Yd<Zd&&(yf=Gd.charAt(Yd),!!Ld(yf));)Ef+=yf,Yd++;Kd+=Ef}if(Ef){for(Lf=Ef,Ef="";Yd<Zd&&(yf=Gd.charAt(Yd),!(yf!==pd&&yf!==fd&&yf!==dd));)Ef+=yf,Yd++;if(yf=Gd.charAt(Yd),xf=null,yf===ld?xf=ld:yf===ud?xf=ud:yf===Ad&&(xf=Nd),!xf)Ef="",Yd=Kd.length;else if(Ef){for(Kd+=Ef+yf,Yd=Kd.length,Ef="";Yd<Zd&&(yf=Gd.charAt(Yd),yf!==xf);){if(yf===dd){if(Yd++,yf=Gd.charAt(Yd),yf===dd||yf===xf)return;Ef+=dd}Ef+=yf,Yd++}if(yf=Gd.charAt(Yd),yf!==xf)return;gf=Kd,Kd+=Ef+yf,Yd++,Xf=Ef,Ef=""}else return;for(;Yd<Zd&&(yf=Gd.charAt(Yd),!(yf!==pd&&yf!==fd));)Kd+=yf,Yd++;if(yf=Gd.charAt(Yd),!yf||yf===dd)return Vd?!0:(bf=Hd(bf).test().end,Lf=Qd.decode.raw(Qd.unescape(Lf),bf,{nonTerminated:!1}),Xf&&(gf=Hd(gf).test().end,Xf=Qd.decode.raw(Qd.unescape(Xf),gf)),Hd(Kd)({type:"definition",identifier:od(Af),label:Af,title:Xf||null,url:Lf}))}}}}function Md(Hd){return Hd!==jd&&Hd!==md&&Hd!==vd}Md.delimiter=jd;function Ld(Hd){return Hd!==md&&Hd!==vd&&!nd(Hd)}}),oo$2=C$2((Ra,qa)=>{var nd=ue$4();qa.exports=kd;var od=" ",ld=`
`,ud=" ",cd="-",dd=":",pd="\\",fd="|",md=1,vd=2,Ad="left",Nd="center",Id="right";function kd(jd,Fd,Md){var Ld=this,Hd,Gd,Vd,Qd,mf,Yd,Zd,Kd,bf,gf,Ef,yf,xf,Af,Lf,Xf,ih,Zf,jf,If,Uf,qf;if(Ld.options.gfm){for(Hd=0,Xf=0,Yd=Fd.length+1,Zd=[];Hd<Yd;){if(If=Fd.indexOf(ld,Hd),Uf=Fd.indexOf(fd,Hd+1),If===-1&&(If=Fd.length),Uf===-1||Uf>If){if(Xf<vd)return;break}Zd.push(Fd.slice(Hd,If)),Xf++,Hd=If+1}for(Qd=Zd.join(ld),Gd=Zd.splice(1,1)[0]||[],Hd=0,Yd=Gd.length,Xf--,Vd=!1,Ef=[];Hd<Yd;){if(bf=Gd.charAt(Hd),bf===fd){if(gf=null,Vd===!1){if(qf===!1)return}else Ef.push(Vd),Vd=!1;qf=!1}else if(bf===cd)gf=!0,Vd=Vd||null;else if(bf===dd)Vd===Ad?Vd=Nd:gf&&Vd===null?Vd=Id:Vd=Ad;else if(!nd(bf))return;Hd++}if(Vd!==!1&&Ef.push(Vd),!(Ef.length<md)){if(Md)return!0;for(Lf=-1,Zf=[],jf=jd(Qd).reset({type:"table",align:Ef,children:Zf});++Lf<Xf;){for(ih=Zd[Lf],mf={type:"tableRow",children:[]},Lf&&jd(ld),jd(ih).reset(mf,jf),Yd=ih.length+1,Hd=0,Kd="",yf="",xf=!0;Hd<Yd;){if(bf=ih.charAt(Hd),bf===od||bf===ud){yf?Kd+=bf:jd(bf),Hd++;continue}bf===""||bf===fd?xf?jd(bf):((yf||bf)&&!xf&&(Qd=yf,Kd.length>1&&(bf?(Qd+=Kd.slice(0,-1),Kd=Kd.charAt(Kd.length-1)):(Qd+=Kd,Kd="")),Af=jd.now(),jd(Qd)({type:"tableCell",children:Ld.tokenizeInline(yf,Af)},mf)),jd(Kd+bf),Kd="",yf=""):(Kd&&(yf+=Kd,Kd=""),yf+=bf,bf===pd&&Hd!==Yd-2&&(yf+=ih.charAt(Hd+1),Hd++)),xf=!1,Hd++}Lf||jd(ld+Gd)}return jf}}}}),lo$1=C$2((Ra,qa)=>{var nd=Re$5(),od=Mt$3(),ld=Kr$2();qa.exports=fd;var ud=" ",cd=`
`,dd=" ",pd=4;function fd(md,vd,Ad){for(var Nd=this,Id=Nd.options,kd=Id.commonmark,jd=Nd.blockTokenizers,Fd=Nd.interruptParagraph,Md=vd.indexOf(cd),Ld=vd.length,Hd,Gd,Vd,Qd,mf;Md<Ld;){if(Md===-1){Md=Ld;break}if(vd.charAt(Md+1)===cd)break;if(kd){for(Qd=0,Hd=Md+1;Hd<Ld;){if(Vd=vd.charAt(Hd),Vd===ud){Qd=pd;break}else if(Vd===dd)Qd++;else break;Hd++}if(Qd>=pd&&Vd!==cd){Md=vd.indexOf(cd,Md+1);continue}}if(Gd=vd.slice(Md+1),ld(Fd,jd,Nd,[md,Gd,!0]))break;if(Hd=Md,Md=vd.indexOf(cd,Md+1),Md!==-1&&nd(vd.slice(Hd,Md))===""){Md=Hd;break}}return Gd=vd.slice(0,Md),Ad?!0:(mf=md.now(),Gd=od(Gd),md(Gd)({type:"paragraph",children:Nd.tokenizeInline(Gd,mf)}))}}),Do$1=C$2((Ra,qa)=>{qa.exports=nd;function nd(od,ld){return od.indexOf("\\",ld)}}),Fo$1=C$2((Ra,qa)=>{var nd=Do$1();qa.exports=ud,ud.locator=nd;var od=`
`,ld="\\";function ud(cd,dd,pd){var fd=this,md,vd;if(dd.charAt(0)===ld&&(md=dd.charAt(1),fd.escape.indexOf(md)!==-1))return pd?!0:(md===od?vd={type:"break"}:vd={type:"text",value:md},cd(ld+md)(vd))}}),tn$2=C$2((Ra,qa)=>{qa.exports=nd;function nd(od,ld){return od.indexOf("<",ld)}}),yo$1=C$2((Ra,qa)=>{var nd=ue$4(),od=pr$1(),ld=tn$2();qa.exports=vd,vd.locator=ld,vd.notInLink=!0;var ud="<",cd=">",dd="@",pd="/",fd="mailto:",md=fd.length;function vd(Ad,Nd,Id){var kd=this,jd="",Fd=Nd.length,Md=0,Ld="",Hd=!1,Gd="",Vd,Qd,mf,Yd,Zd;if(Nd.charAt(0)===ud){for(Md++,jd=ud;Md<Fd&&(Vd=Nd.charAt(Md),!(nd(Vd)||Vd===cd||Vd===dd||Vd===":"&&Nd.charAt(Md+1)===pd));)Ld+=Vd,Md++;if(Ld){if(Gd+=Ld,Ld="",Vd=Nd.charAt(Md),Gd+=Vd,Md++,Vd===dd)Hd=!0;else{if(Vd!==":"||Nd.charAt(Md+1)!==pd)return;Gd+=pd,Md++}for(;Md<Fd&&(Vd=Nd.charAt(Md),!(nd(Vd)||Vd===cd));)Ld+=Vd,Md++;if(Vd=Nd.charAt(Md),!(!Ld||Vd!==cd))return Id?!0:(Gd+=Ld,mf=Gd,jd+=Gd+Vd,Qd=Ad.now(),Qd.column++,Qd.offset++,Hd&&(Gd.slice(0,md).toLowerCase()===fd?(mf=mf.slice(md),Qd.column+=md,Qd.offset+=md):Gd=fd+Gd),Yd=kd.inlineTokenizers,kd.inlineTokenizers={text:Yd.text},Zd=kd.enterLink(),mf=kd.tokenizeInline(mf,Qd),kd.inlineTokenizers=Yd,Zd(),Ad(jd)({type:"link",title:null,url:od(Gd,{nonTerminated:!1}),children:mf}))}}}}),xo$2=C$2((Ra,qa)=>{qa.exports=nd;function nd(od,ld){var ud=String(od),cd=0,dd;if(typeof ld!="string")throw new Error("Expected character");for(dd=ud.indexOf(ld);dd!==-1;)cd++,dd=ud.indexOf(ld,dd+ld.length);return cd}}),Bo$1=C$2((Ra,qa)=>{qa.exports=od;var nd=["www.","http://","https://"];function od(ld,ud){var cd=-1,dd,pd,fd;if(!this.options.gfm)return cd;for(pd=nd.length,dd=-1;++dd<pd;)fd=ld.indexOf(nd[dd],ud),fd!==-1&&(cd===-1||fd<cd)&&(cd=fd);return cd}}),Oo=C$2((Ra,qa)=>{var nd=xo$2(),od=pr$1(),ld=Ne$3(),ud=Ve$3(),cd=ue$4(),dd=Bo$1();qa.exports=Qd,Qd.locator=dd,Qd.notInLink=!0;var pd=33,fd=38,md=41,vd=42,Ad=44,Nd=45,Id=46,kd=58,jd=59,Fd=63,Md=60,Ld=95,Hd=126,Gd="(",Vd=")";function Qd(mf,Yd,Zd){var Kd=this,bf=Kd.options.gfm,gf=Kd.inlineTokenizers,Ef=Yd.length,yf=-1,xf=!1,Af,Lf,Xf,ih,Zf,jf,If,Uf,qf,Kf,Tf,vf,Gf,Jf;if(bf){if(Yd.slice(0,4)==="www.")xf=!0,ih=4;else if(Yd.slice(0,7).toLowerCase()==="http://")ih=7;else if(Yd.slice(0,8).toLowerCase()==="https://")ih=8;else return;for(yf=ih-1,Xf=ih,Af=[];ih<Ef;){if(If=Yd.charCodeAt(ih),If===Id){if(yf===ih-1)break;Af.push(ih),yf=ih,ih++;continue}if(ld(If)||ud(If)||If===Nd||If===Ld){ih++;continue}break}if(If===Id&&(Af.pop(),ih--),Af[0]!==void 0&&(Lf=Af.length<2?Xf:Af[Af.length-2]+1,Yd.slice(Lf,ih).indexOf("_")===-1)){if(Zd)return!0;for(Uf=ih,Zf=ih;ih<Ef&&(If=Yd.charCodeAt(ih),!(cd(If)||If===Md));)ih++,If===pd||If===vd||If===Ad||If===Id||If===kd||If===Fd||If===Ld||If===Hd||(Uf=ih);if(ih=Uf,Yd.charCodeAt(ih-1)===md)for(jf=Yd.slice(Zf,ih),qf=nd(jf,Gd),Kf=nd(jf,Vd);Kf>qf;)ih=Zf+jf.lastIndexOf(Vd),jf=Yd.slice(Zf,ih),Kf--;if(Yd.charCodeAt(ih-1)===jd&&(ih--,ud(Yd.charCodeAt(ih-1)))){for(Uf=ih-2;ud(Yd.charCodeAt(Uf));)Uf--;Yd.charCodeAt(Uf)===fd&&(ih=Uf)}return Tf=Yd.slice(0,ih),Gf=od(Tf,{nonTerminated:!1}),xf&&(Gf="http://"+Gf),Jf=Kd.enterLink(),Kd.inlineTokenizers={text:gf.text},vf=Kd.tokenizeInline(Tf,mf.now()),Kd.inlineTokenizers=gf,Jf(),mf(Tf)({type:"link",title:null,url:Gf,children:vf})}}}}),No=C$2((Ra,qa)=>{var nd=Ne$3(),od=Ve$3(),ld=43,ud=45,cd=46,dd=95;qa.exports=pd;function pd(md,vd){var Ad=this,Nd,Id;if(!this.options.gfm||(Nd=md.indexOf("@",vd),Nd===-1))return-1;if(Id=Nd,Id===vd||!fd(md.charCodeAt(Id-1)))return pd.call(Ad,md,Nd+1);for(;Id>vd&&fd(md.charCodeAt(Id-1));)Id--;return Id}function fd(md){return nd(md)||od(md)||md===ld||md===ud||md===cd||md===dd}}),Mo$2=C$2((Ra,qa)=>{var nd=pr$1(),od=Ne$3(),ld=Ve$3(),ud=No();qa.exports=vd,vd.locator=ud,vd.notInLink=!0;var cd=43,dd=45,pd=46,fd=64,md=95;function vd(Ad,Nd,Id){var kd=this,jd=kd.options.gfm,Fd=kd.inlineTokenizers,Md=0,Ld=Nd.length,Hd=-1,Gd,Vd,Qd,mf;if(jd){for(Gd=Nd.charCodeAt(Md);od(Gd)||ld(Gd)||Gd===cd||Gd===dd||Gd===pd||Gd===md;)Gd=Nd.charCodeAt(++Md);if(Md!==0&&Gd===fd){for(Md++;Md<Ld;){if(Gd=Nd.charCodeAt(Md),od(Gd)||ld(Gd)||Gd===dd||Gd===pd||Gd===md){Md++,Hd===-1&&Gd===pd&
`,ud="!",cd='"',dd="'",pd="(",fd=")",md="<",vd=">",Ad="[",Nd="\\",Id="]",kd="`";function jd(Fd,Md,Ld){var Hd=this,Gd="",Vd=0,Qd=Md.charAt(0),mf=Hd.options.pedantic,Yd=Hd.options.commonmark,Zd=Hd.options.gfm,Kd,bf,gf,Ef,yf,xf,Af,Lf,Xf,ih,Zf,jf,If,Uf,qf,Kf,Tf,vf;if(Qd===ud&&(Lf=!0,Gd=Qd,Qd=Md.charAt(++Vd)),Qd===Ad&&!(!Lf&&Hd.inLink)){for(Gd+=Qd,Uf="",Vd++,Zf=Md.length,Kf=Fd.now(),If=0,Kf.column+=Vd,Kf.offset+=Vd;Vd<Zf;){if(Qd=Md.charAt(Vd),xf=Qd,Qd===kd){for(bf=1;Md.charAt(Vd+1)===kd;)xf+=Qd,Vd++,bf++;gf?bf>=gf&&(gf=0):gf=bf}else if(Qd===Nd)Vd++,xf+=Md.charAt(Vd);else if((!gf||Zd)&&Qd===Ad)If++;else if((!gf||Zd)&&Qd===Id)if(If)If--;else{if(Md.charAt(Vd+1)!==pd)return;xf+=pd,Kd=!0,Vd++;break}Uf+=xf,xf="",Vd++}if(Kd){for(Xf=Uf,Gd+=Uf+xf,Vd++;Vd<Zf&&(Qd=Md.charAt(Vd),!!nd(Qd));)Gd+=Qd,Vd++;if(Qd=Md.charAt(Vd),Uf="",Ef=Gd,Qd===md){for(Vd++,Ef+=md;Vd<Zf&&(Qd=Md.charAt(Vd),Qd!==vd);){if(Yd&&Qd===ld)return;Uf+=Qd,Vd++}if(Md.charAt(Vd)!==vd)return;Gd+=md+Uf+vd,qf=Uf,Vd++}else{for(Qd=null,xf="";Vd<Zf&&(Qd=Md.charAt(Vd),!(xf&&(Qd===cd||Qd===dd||Yd&&Qd===pd)));){if(nd(Qd)){if(!mf)break;xf+=Qd}else{if(Qd===pd)If++;else if(Qd===fd){if(If===0)break;If--}Uf+=xf,xf="",Qd===Nd&&(Uf+=Nd,Qd=Md.charAt(++Vd)),Uf+=Qd}Vd++}Gd+=Uf,qf=Uf,Vd=Gd.length}for(Uf="";Vd<Zf&&(Qd=Md.charAt(Vd),!!nd(Qd));)Uf+=Qd,Vd++;if(Qd=Md.charAt(Vd),Gd+=Uf,Uf&&(Qd===cd||Qd===dd||Yd&&Qd===pd))if(Vd++,Gd+=Qd,Uf="",ih=Qd===pd?fd:Qd,yf=Gd,Yd){for(;Vd<Zf&&(Qd=Md.charAt(Vd),Qd!==ih);)Qd===Nd&&(Uf+=Nd,Qd=Md.charAt(++Vd)),Vd++,Uf+=Qd;if(Qd=Md.charAt(Vd),Qd!==ih)return;for(jf=Uf,Gd+=Uf+Qd,Vd++;Vd<Zf&&(Qd=Md.charAt(Vd),!!nd(Qd));)Gd+=Qd,Vd++}else for(xf="";Vd<Zf;){if(Qd=Md.charAt(Vd),Qd===ih)Af&&(Uf+=ih+xf,xf=""),Af=!0;else if(!Af)Uf+=Qd;else if(Qd===fd){Gd+=Uf+ih+xf,jf=Uf;break}else nd(Qd)?xf+=Qd:(Uf+=ih+xf+Qd,xf="",Af=!1);Vd++}if(Md.charAt(Vd)===fd)return Ld?!0:(Gd+=fd,qf=Hd.decode.raw(Hd.unescape(qf),Fd(Ef).test().end,{nonTerminated:!1}),jf&&(yf=Fd(yf).test().end,jf=Hd.decode.raw(Hd.unescape(jf),yf)),vf={type:Lf?"image":"link",title:jf||null,url:qf},Lf?vf.alt=Hd.decode.raw(Hd.unescape(Xf),Kf)||null:(Tf=Hd.enterLink(),vf.children=Hd.tokenizeInline(Xf,Kf),Tf()),Fd(Gd)(vf))}}}}),rs=C$2((Ra,qa)=>{var nd=ue$4(),od=dn$3(),ld=Qt$2();qa.exports=Id,Id.locator=od;var ud="link",cd="image",dd="shortcut",pd="collapsed",fd="full",md="!",vd="[",Ad="\\",Nd="]";function Id(kd,jd,Fd){var Md=this,Ld=Md.options.commonmark,Hd=jd.charAt(0),Gd=0,Vd=jd.length,Qd="",mf="",Yd=ud,Zd=dd,Kd,bf,gf,Ef,yf,xf,Af,Lf;if(Hd===md&&(Yd=cd,mf=Hd,Hd=jd.charAt(++Gd)),Hd===vd){for(Gd++,mf+=Hd,xf="",Lf=0;Gd<Vd;){if(Hd=jd.charAt(Gd),Hd===vd)Af=!0,Lf++;else if(Hd===Nd){if(!Lf)break;Lf--}Hd===Ad&&(xf+=Ad,Hd=jd.charAt(++Gd)),xf+=Hd,Gd++}if(Qd=xf,Kd=xf,Hd=jd.charAt(Gd),Hd===Nd){if(Gd++,Qd+=Hd,xf="",!Ld)for(;Gd<Vd&&(Hd=jd.charAt(Gd),!!nd(Hd));)xf+=Hd,Gd++;if(Hd=jd.charAt(Gd),Hd===vd){for(bf="",xf+=Hd,Gd++;Gd<Vd&&(Hd=jd.charAt(Gd),!(Hd===vd||Hd===Nd));)Hd===Ad&&(bf+=Ad,Hd=jd.charAt(++Gd)),bf+=Hd,Gd++;Hd=jd.charAt(Gd),Hd===Nd?(Zd=bf?fd:pd,xf+=bf+Hd,Gd++):bf="",Qd+=xf,xf=""}else{if(!Kd)return;bf=Kd}if(!(Zd!==fd&&Af))return Qd=mf+Qd,Yd===ud&&Md.inLink?null:Fd?!0:(gf=kd.now(),gf.column+=mf.length,gf.offset+=mf.length,bf=Zd===fd?bf:Kd,Ef={type:Yd+"Reference",identifier:ld(bf),label:bf,referenceType:Zd},Yd===ud?(yf=Md.enterLink(),Ef.children=Md.tokenizeInline(Kd,gf),yf()):Ef.alt=Md.decode.raw(Md.unescape(Kd),gf)||null,kd(Qd)(Ef))}}}}),ns=C$2((Ra,qa)=>{qa.exports=nd;function nd(od,ld){var ud=od.indexOf("**",ld),cd=od.indexOf("__",ld);return cd===-1?ud:ud===-1||cd<ud?cd:ud}}),os=C$2((Ra,qa)=>{var nd=Re$5(),od=ue$4(),ld=ns();qa.exports=pd,pd.locator=ld;var ud="\\",cd="*",dd="_";function pd(fd,md,vd){var Ad=this,Nd=0,Id=md.charAt(Nd),kd,jd,Fd,Md,Ld,Hd,Gd;if(!(Id!==cd&&Id!==dd||md.charAt(++Nd)!==Id)&&(jd=Ad.options.pedantic,Fd=Id,Ld=Fd+Fd,Hd=md.length,Nd++,Md="",Id="",!(jd&&od(md.charAt(Nd)))))for(;Nd<Hd;){if(Gd=Id,Id=md.charAt(Nd),Id===Fd&&md.charAt(Nd+1)===Fd&&(!jd||!od(Gd))&&(Id=md.charAt(Nd+2),Id!==Fd))return nd(Md)?vd?!0:(kd=fd.now(),kd.column+=2,kd.offset+=2,fd(Ld+Md+Ld)({type:"strong",children:Ad.tokenizeInline(Md,kd)})):void 0;
`,ld);ud>ld&&od.charAt(ud-1)===" ";)ud--;return ud}}),Os$1=C$2((Ra,qa)=>{var nd=Ts();qa.exports=cd,cd.locator=nd;var od=" ",ld=`
`,ud=2;function cd(dd,pd,fd){for(var md=pd.length,vd=-1,Ad="",Nd;++vd<md;){if(Nd=pd.charAt(vd),Nd===ld)return vd<ud?void 0:fd?!0:(Ad+=Nd,dd(Ad)({type:"break"}));if(Nd!==od)return;Ad+=Nd}}}),Ls$1=C$2((Ra,qa)=>{qa.exports=nd;function nd(od,ld,ud){var cd=this,dd,pd,fd,md,vd,Ad,Nd,Id,kd,jd;if(ud)return!0;for(dd=cd.inlineMethods,md=dd.length,pd=cd.inlineTokenizers,fd=-1,kd=ld.length;++fd<md;)Id=dd[fd],!(Id==="text"||!pd[Id])&&(Nd=pd[Id].locator,Nd||od.file.fail("Missing locator: `"+Id+"`"),Ad=Nd.call(cd,ld,1),Ad!==-1&&Ad<kd&&(kd=Ad));vd=ld.slice(0,kd),jd=od.now(),cd.decode(vd,jd,Fd);function Fd(Md,Ld,Hd){od(Hd||Md)({type:"text",value:Md})}}}),Us=C$2((Ra,qa)=>{var nd=Ie$3(),od=ru$1(),ld=nu$2(),ud=uu$2(),cd=Ou$1(),dd=Iu$1();qa.exports=pd;function pd(vd,Ad){this.file=Ad,this.offset={},this.options=nd(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=ld(Ad).toOffset,this.unescape=ud(this,"escape"),this.decode=cd(this)}var fd=pd.prototype;fd.setOptions=Vu$2(),fd.parse=aa$1(),fd.options=Rt$3(),fd.exitStart=od("atStart",!0),fd.enterList=od("inList",!1),fd.enterLink=od("inLink",!1),fd.enterBlock=od("inBlock",!1),fd.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],fd.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],fd.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}]],fd.blockTokenizers={blankLine:sa(),indentedCode:pa(),fencedCode:ma(),blockquote:ba(),atxHeading:xa$1(),thematicBreak:Ba(),list:Ua$1(),setextHeading:Ga(),html:Ka(),definition:io$1(),table:oo$2(),paragraph:lo$1()},fd.inlineTokenizers={escape:Fo$1(),autoLink:yo$1(),url:Oo(),email:Mo$2(),html:Vo$1(),link:Qo$1(),reference:rs(),strong:os(),emphasis:ms(),deletion:ys(),code:Bs(),break:Os$1(),text:Ls$1()},fd.blockMethods=md(fd.blockTokenizers),fd.inlineMethods=md(fd.inlineTokenizers),fd.tokenizeBlock=dd("block"),fd.tokenizeInline=dd("inline"),fd.tokenizeFactory=dd;function md(vd){var Ad=[],Nd;for(Nd in vd)Ad.push(Nd);return Ad}}),Gs=C$2((Ra,qa)=>{var nd=Zi(),od=Ie$3(),ld=Us();qa.exports=ud,ud.Parser=ld;function ud(cd){var dd=this.data("settings"),pd=nd(ld);pd.prototype.options=od(pd.prototype.options,dd,cd),this.Parser=pd}}),js$1=C$2((Ra,qa)=>{qa.exports=nd;function nd(od){if(od)throw od}}),yn$3=C$2((Ra,qa)=>{qa.exports=function(nd){return nd!=null&&nd.constructor!=null&&typeof nd.constructor.isBuffer=="function"&&nd.constructor.isBuffer(nd)}}),rc$1=C$2((Ra,qa)=>{var nd=Object.prototype.hasOwnProperty,od=Object.prototype.toString,ld=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,cd=function(md){return typeof Array.isArray=="function"?Array.isArray(md):od.call(md)==="[object Array]"},dd=function(md){if(!md||od.call(md)!=="[object Object]")return!1;var vd=nd.call(md,"constructor"),Ad=md.constructor&&md.constructor.prototype&&nd.call(md.constructor.prototype,"isPrototypeOf");if(md.constructor&&!vd&&!Ad)return!1;var Nd;for(Nd in md);return typeof Nd>"u"||nd.call(md,Nd)},pd=function(md,vd){ld&&vd.name==="__proto__"?ld(md,vd.name,{enumerable:!0,configurable:!0,value:vd.newValue,writable:!0}):md[vd.name]=vd.newValue},fd=function(md,vd){if(vd==="__proto__")if(nd.call(md,vd)){if(ud)return ud(md,vd).value}else return;return md[vd]};qa.exports=function md(){var vd,Ad,Nd,Id,kd,jd,Fd=arguments[0],Md=1,Ld=arguments.length,Hd=!1;for(typeof Fd=="boolean"&&(Hd=Fd,Fd=arguments[1]||{},Md=2),(Fd==null||typeof Fd!="object"&&typeof Fd!="function")&&(Fd={});Md<Ld;++Md)if(vd=arguments[Md],vd!=null)for(Ad in vd)Nd=fd(Fd,Ad),Id=fd(vd,Ad),Fd!==Id&&(Hd&&Id&&(dd(Id)||(kd=cd(Id)))?(kd?(kd=!1,jd=Nd&&cd(Nd)?Nd:[]):jd=Nd&&dd(Nd)?Nd:{},pd(Fd,{name:Ad,newValue:md(Hd,jd,Id)})):typeof Id<"u"&&pd(Fd,{name:Ad,newValue:Id}));return Fd}}
Expected it to be 'string' or 'object'.`;if(Y$3(Ra))throw new Error("doc is valid.");let nd=Object.prototype.toString.call(Ra);if(nd!=="[object Object]")return`Unexpected doc '${nd}'.`;let od=ll$1([...wr$1].map(ld=>`'${ld}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${od}.`}var Dt$2=class extends Error{constructor(nd){super(fl$1(nd));p_(this,"name","InvalidDocError");this.doc=nd}},qe$2=Dt$2,Nn$2={};function Dl$1(Ra,qa,nd,od){let ld=[Ra];for(;ld.length>0;){let ud=ld.pop();if(ud===Nn$2){nd(ld.pop());continue}nd&&ld.push(ud,Nn$2);let cd=Y$3(ud);if(!cd)throw new qe$2(ud);if((qa==null?void 0:qa(ud))!==!1)switch(cd){case H$4:case J$5:{let dd=cd===H$4?ud:ud.parts;for(let pd=dd.length,fd=pd-1;fd>=0;--fd)ld.push(dd[fd]);break}case X$4:ld.push(ud.flatContents,ud.breakContents);break;case K$4:if(od&&ud.expandedStates)for(let dd=ud.expandedStates.length,pd=dd-1;pd>=0;--pd)ld.push(ud.expandedStates[pd]);else ld.push(ud.contents);break;case re$4:case ee$4:case se$4:case fe$5:case ce$5:ld.push(ud.contents);break;case $$2:case ge$5:case oe$4:case le$4:case W$5:case te$4:break;default:throw new qe$2(ud)}}}var Rn$1=Dl$1,Un$2=()=>{},kr$1=Un$2;function Ze$3(Ra){return{type:ee$4,contents:Ra}}function ve$5(Ra,qa){return{type:re$4,contents:qa,n:Ra}}function ze$4(Ra,qa={}){return kr$1(qa.expandedStates),{type:K$4,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function _e$3(Ra){return ve$5({type:"root"},Ra)}function Ee$5(Ra){return{type:J$5,parts:Ra}}function zn$2(Ra,qa="",nd={}){return{type:X$4,breakContents:Ra,flatContents:qa,groupId:nd.groupId}}var er$1={type:te$4},rr$1={type:W$5,hard:!0},pl$1={type:W$5,hard:!0,literal:!0},Br$2={type:W$5},qr$1={type:W$5,soft:!0},L$4=[rr$1,er$1],tr$1=[pl$1,er$1];function Tr$1(Ra,qa){let nd=[];for(let od=0;od<qa.length;od++)od!==0&&nd.push(Ra),nd.push(qa[od]);return nd}function dl$1(Ra,qa){if(typeof Ra=="string")return qa(Ra);let nd=new Map;return od(Ra);function od(ud){if(nd.has(ud))return nd.get(ud);let cd=ld(ud);return nd.set(ud,cd),cd}function ld(ud){switch(Y$3(ud)){case H$4:return qa(ud.map(od));case J$5:return qa({...ud,parts:ud.parts.map(od)});case X$4:return qa({...ud,breakContents:od(ud.breakContents),flatContents:od(ud.flatContents)});case K$4:{let{expandedStates:cd,contents:dd}=ud;return cd?(cd=cd.map(od),dd=cd[0]):dd=od(dd),qa({...ud,contents:dd,expandedStates:cd})}case re$4:case ee$4:case se$4:case fe$5:case ce$5:return qa({...ud,contents:od(ud.contents)});case $$2:case ge$5:case oe$4:case le$4:case W$5:case te$4:return qa(ud);default:throw new qe$2(ud)}}}function Mn$1(Ra){if(Ra.length>0){let qa=M$4(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Yn$1(Ra){let qa=new Set,nd=[];function od(ud){if(ud.type===te$4&&Mn$1(nd),ud.type===K$4){if(nd.push(ud),qa.has(ud))return!1;qa.add(ud)}}function ld(ud){ud.type===K$4&&nd.pop().break&&Mn$1(nd)}Rn$1(Ra,od,ld,!0)}function Ce$3(Ra,qa=tr$1){return dl$1(Ra,nd=>typeof nd=="string"?Tr$1(qa,nd.split(`
`)):nd)}function hl$1(Ra,qa){let nd=Ra.match(new RegExp(`(${Be$5(qa)})+`,"gu"));return nd===null?0:nd.reduce((od,ld)=>Math.max(od,ld.length/qa.length),0)}var _r$1=hl$1;function ml$1(Ra,qa){let nd=Ra.match(new RegExp(`(${Be$5(qa)})+`,"gu"));if(nd===null)return 0;let od=new Map,ld=0;for(let ud of nd){let cd=ud.length/qa.length;od.set(cd,!0),cd>ld&&(ld=cd)}for(let ud=1;ud<ld;ud++)if(!od.get(ud))return ud;return ld+1}var Gn$2=ml$1,Sr$1="'",Vn$2='"';function Fl$1(Ra,qa){let nd=qa===!0||qa===Sr$1?Sr$1:Vn$2,od=nd===Sr$1?Vn$2:Sr$1,ld=0,ud=0;for(let cd of Ra)cd===nd?ld++:cd===od&&ud++;return ld>ud?od:nd}var jn$1=Fl$1,pt$3=class extends Error{constructor(nd,od,ld="type"){super(`Unexpected ${od} node ${ld}: ${JSON.stringify(nd[ld])}.`);p_(this,"name","UnexpectedNodeError");this.node=nd}},$n$2=pt$3,Xn$2=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 nd=Ra.indexOf(`
`,nr$1);if(nd===-1)return;let od=Ra.slice(nr$1,nd).trim(),ld=Ra.indexOf(`
${qa}`,nd),ud=od;if(ud||(ud=qa==="+++"?"toml":"yaml"),ld===-1&&qa==="---"&&ud==="yaml"&&(ld=Ra.indexOf(`
...`,nd)),ld===-1)return;let cd=ld+1+nr$1,dd=Ra.charAt(cd+1);if(!/\s?/u.test(dd))return;let pd=Ra.slice(0,cd);return{type:"front-matter",language:ud,explicitLanguage:od,value:Ra.slice(nd+1,ld),startDelimiter:qa,endDelimiter:pd.slice(-nr$1),raw:pd}}function El$1(Ra){let qa=vl$1(Ra);if(!qa)return{content:Ra};let{raw:nd}=qa;return{frontMatter:qa,content:N$4(!1,nd,/[^\n]/gu," ")+Ra.slice(nd.length)}}var ir$2=El$1,Wn$1=["format","prettier"];function dt$2(Ra){let qa=`@(${Wn$1.join("|")})`,nd=new RegExp([`<!--\\s*${qa}\\s*-->`,`\\{\\s*\\/\\*\\s*${qa}\\s*\\*\\/\\s*\\}`,`<!--.*\r?
[\\s\\S]*(^|
)[^\\S
]*${qa}[^\\S
]*($|
)[\\s\\S]*
.*-->`].join("|"),"mu"),od=Ra.match(nd);return(od==null?void 0:od.index)===0}var Kn$2=Ra=>dt$2(ir$2(Ra).content.trimStart()),Jn$2=Ra=>{let qa=ir$2(Ra),nd=`<!-- @${Wn$1[0]} -->`;return qa.frontMatter?`${qa.frontMatter.raw}
${nd}
${qa.content}`:`${nd}
${qa.content}`},Cl$1=new Set(["position","raw"]);function Qn$2(Ra,qa,nd){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$4(!1,Ra.value,`
`," ")),Ra.type==="wikiLink"&&(qa.value=N$4(!1,Ra.value.trim(),/[\t\n]+/gu," ")),(Ra.type==="definition"||Ra.type==="linkReference"||Ra.type==="imageReference")&&(qa.label=(0,Xn$2.default)(Ra.label)),(Ra.type==="link"||Ra.type==="image")&&Ra.url&&Ra.url.includes("("))for(let od of"<>")qa.url=N$4(!1,Ra.url,od,encodeURIComponent(od));if((Ra.type==="definition"||Ra.type==="link"||Ra.type==="image")&&Ra.title&&(qa.title=N$4(!1,Ra.title,/\\(?=["')])/gu,"")),(nd==null?void 0:nd.type)==="root"&&nd.children.length>0&&(nd.children[0]===Ra||Hn$1(nd.children[0])&&nd.children[1]===Ra)&&Ra.type==="html"&&dt$2(Ra.value))return null}Qn$2.ignoredProperties=Cl$1;var Zn$2=Qn$2,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$5=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 nd=Ra.value.trim(),od=nd?await qa(nd,{parser:"yaml"}):"";return _e$3([Ra.startDelimiter,Ra.explicitLanguage,L$4,od,od?L$4:"",Ra.endDelimiter])}}var ri$2=bl$1,yl$1=Ra=>String(Ra).split(/[/\\]/u).pop();function ti$2(Ra,qa){if(!qa)return;let nd=yl$1(qa).toLowerCase();return Ra.find(({filenames:od})=>od==null?void 0:od.some(ld=>ld.toLowerCase()===nd))??Ra.find(({extensions:od})=>od==null?void 0:od.some(ld=>nd.endsWith(ld)))}function Al$1(Ra,qa){if(qa)return Ra.find(({name:nd})=>nd.toLowerCase()===qa)??Ra.find(({aliases:nd})=>nd==null?void 0:nd.includes(qa))??Ra.find(({extensions:nd})=>nd==null?void 0:nd.includes(`.${qa}`))}function xl$1(Ra,qa){let nd=Ra.plugins.flatMap(ld=>ld.languages??[]),od=Al$1(nd,qa.language)??ti$2(nd,qa.physicalFile)??ti$2(nd,qa.file)??(qa.physicalFile,void 0);return od==null?void 0:od.parsers[0]}var ni$2=xl$1,wl$1=new Proxy(()=>{},{get:()=>wl$1});function Oe$4(Ra){return Ra.position.start.offset}function Pe$4(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$4="non-cjk",De$3="cj-letter",be$5="k-letter",ur$1="cjk-punctuation",kl$1=new RegExp("\\p{Script_Extensions=Hangul}","u");function Pr$1(Ra){let qa=[],nd=Ra.split(/([\t\n ]+)/u);for(let[ld,ud]of nd.entries()){if(ld%2===1){qa.push({type:"whitespace",value:/\n/u.test(ud)?`
`:" "});continue}if((ld===0||ld===nd.length-1)&&ud==="")continue;let cd=ud.split(new RegExp(`(${ei$2.source})`,"u"));for(let[dd,pd]of cd.entries())if(!((dd===0||dd===cd.length-1)&&pd==="")){if(dd%2===0){pd!==""&&od({type:"word",value:pd,kind:Le$4,hasLeadingPunctuation:Se$5.test(pd[0]),hasTrailingPunctuation:Se$5.test(M$4(!1,pd,-1))});continue}od(Se$5.test(pd)?{type:"word",value:pd,kind:ur$1,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:pd,kind:kl$1.test(pd)?be$5:De$3,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return qa;function od(ld){let ud=M$4(!1,qa,-1);(ud==null?void 0:ud.type)==="word"&&!cd(Le$4,ur$1)&&![ud.value,ld.value].some(dd=>/\u3000/u.test(dd))&&qa.push({type:"whitespace",value:""}),qa.push(ld);function cd(dd,pd){return ud.kind===dd&&ld.kind===pd||ud.kind===pd&&ld.kind===dd}}}function Me$4(Ra,qa){let nd=qa.originalText.slice(Ra.position.start.offset,Ra.position.end.offset),{numberText:od,leadingSpaces:ld}=nd.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(od),leadingSpaces:ld}}function ii$2(Ra,qa){return!Ra.ordered||Ra.children.length<2||Me$4(Ra.children[1],qa).number!==1?!1:Me$4(Ra.children[0],qa).number!==0?!0:Ra.children.length>2&&Me$4(Ra.children[2],qa).number===1}function Lr$1(Ra,qa){let{value:nd}=Ra;return Ra.position.end.offset===qa.length&&nd.endsWith(`
`)&&qa.endsWith(`
`)?nd.slice(0,-1):nd}function ye$4(Ra,qa){return function nd(od,ld,ud){let cd={...qa(od,ld,ud)};return cd.children&&(cd.children=cd.children.map((dd,pd)=>nd(dd,pd,[cd,...ud]))),cd}(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$4(Ra)===Oe$4(qa)&&Pe$4(Ra)===Pe$4(qa)}function Bl$1(Ra,qa){let{node:nd}=Ra;if(nd.type==="code"&&nd.lang!==null){let od=ni$2(qa,{language:nd.lang});if(od)return async ld=>{let ud=qa.__inJsTemplate?"~":"`",cd=ud.repeat(Math.max(3,_r$1(nd.value,ud)+1)),dd={parser:od};nd.lang==="ts"||nd.lang==="typescript"?dd.filepath="dummy.ts":nd.lang==="tsx"&&(dd.filepath="dummy.tsx");let pd=await ld(Lr$1(nd,qa.originalText),dd);return _e$3([cd,nd.lang,nd.meta?" "+nd.meta:"",L$4,Ce$3(pd),L$4,cd])}}switch(nd.type){case"front-matter":return od=>ri$2(nd,od);case"import":case"export":return od=>od(nd.value,{parser:"babel"});case"jsx":return od=>od(`<$>${nd.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$1=10;for(let Ra=0;Ra<=ql$1;Ra++)or$1();function Ft$3(Ra){return or$1(Ra)}function Tl$1(Ra,qa="type"){Ft$3(Ra);function nd(od){let ld=od[qa],ud=Ra[ld];if(!Array.isArray(ud))throw Object.assign(new Error(`Missing visitor keys for '${ld}'.`),{node:od});return ud}return nd}var ai$2=Tl$1,_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$1=ai$2(oi$2),si$2=Sl$1;function ci$2(Ra){switch(Ra){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}var li$2=()=>/[#*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$4(!1,Id,`
`,ld):Id;dd.push(kd),cd.length>0&&(ud+=sr$1(kd));break}case H$4:for(let kd=Id.length-1;kd>=0;kd--)cd.push({ind:Ad,mode:Nd,doc:Id[kd]});break;case ge$5:if(md>=2)throw new Error("There are too many 'cursor' in doc.");dd.push(cr$1),md++;break;case ee$4:cd.push({ind:Ll$1(Ad,qa),mode:Nd,doc:Id.contents});break;case re$4:cd.push({ind:Il$1(Ad,Id.n,qa),mode:Nd,doc:Id.contents});break;case oe$4:ud-=vt$3(dd);break;case K$4:switch(Nd){case ne$4:if(!pd){cd.push({ind:Ad,mode:Id.break?G$5:ne$4,doc:Id.contents});break}case G$5:{pd=!1;let kd={ind:Ad,mode:ne$4,doc:Id.contents},jd=od-ud,Fd=fd.length>0;if(!Id.break&&Ir$1(kd,cd,jd,Fd,nd))cd.push(kd);else if(Id.expandedStates){let Md=M$4(!1,Id.expandedStates,-1);if(Id.break){cd.push({ind:Ad,mode:G$5,doc:Md});break}else for(let Ld=1;Ld<Id.expandedStates.length+1;Ld++)if(Ld>=Id.expandedStates.length){cd.push({ind:Ad,mode:G$5,doc:Md});break}else{let Hd=Id.expandedStates[Ld],Gd={ind:Ad,mode:ne$4,doc:Hd};if(Ir$1(Gd,cd,jd,Fd,nd)){cd.push(Gd);break}}}else cd.push({ind:Ad,mode:G$5,doc:Id.contents});break}}Id.id&&(nd[Id.id]=M$4(!1,cd,-1).mode);break;case J$5:{let kd=od-ud,{parts:jd}=Id;if(jd.length===0)break;let[Fd,Md]=jd,Ld={ind:Ad,mode:ne$4,doc:Fd},Hd={ind:Ad,mode:G$5,doc:Fd},Gd=Ir$1(Ld,[],kd,fd.length>0,nd,!0);if(jd.length===1){Gd?cd.push(Ld):cd.push(Hd);break}let Vd={ind:Ad,mode:ne$4,doc:Md},Qd={ind:Ad,mode:G$5,doc:Md};if(jd.length===2){Gd?cd.push(Vd,Ld):cd.push(Qd,Hd);break}jd.splice(0,2);let mf={ind:Ad,mode:Nd,doc:Ee$5(jd)},Yd=jd[0];Ir$1({ind:Ad,mode:ne$4,doc:[Fd,Md,Yd]},[],kd,fd.length>0,nd,!0)?cd.push(mf,Vd,Ld):Gd?cd.push(mf,Qd,Ld):cd.push(mf,Qd,Hd);break}case X$4:case se$4:{let kd=Id.groupId?nd[Id.groupId]:Nd;if(kd===G$5){let jd=Id.type===X$4?Id.breakContents:Id.negate?Id.contents:Ze$3(Id.contents);jd&&cd.push({ind:Ad,mode:Nd,doc:jd})}if(kd===ne$4){let jd=Id.type===X$4?Id.flatContents:Id.negate?Ze$3(Id.contents):Id.contents;jd&&cd.push({ind:Ad,mode:Nd,doc:jd})}break}case ce$5:fd.push({ind:Ad,mode:Nd,doc:Id.contents});break;case le$4:fd.length>0&&cd.push({ind:Ad,mode:Nd,doc:rr$1});break;case W$5:switch(Nd){case ne$4:if(Id.hard)pd=!0;else{Id.soft||(dd.push(" "),ud+=1);break}case G$5:if(fd.length>0){cd.push({ind:Ad,mode:Nd,doc:Id},...fd.reverse()),fd.length=0;break}Id.literal?Ad.root?(dd.push(ld,Ad.root.value),ud=Ad.root.length):(dd.push(ld),ud=0):(ud-=vt$3(dd),dd.push(ld+Ad.value),ud=Ad.length);break}break;case fe$5:cd.push({ind:Ad,mode:Nd,doc:Id.contents});break;case te$4:break;default:throw new qe$2(Id)}cd.length===0&&fd.length>0&&(cd.push(...fd.reverse()),fd.length=0)}let vd=dd.indexOf(cr$1);if(vd!==-1){let Ad=dd.indexOf(cr$1,vd+1),Nd=dd.slice(0,vd).join(""),Id=dd.slice(vd+1,Ad).join(""),kd=dd.slice(Ad+1).join("");return{formatted:Nd+Id+kd,cursorNodeStart:Nd.length,cursorNodeText:Id}}return{formatted:dd.join("")}}function mi(Ra,qa,nd){let{node:od}=Ra,ld=[],ud=Ra.map(()=>Ra.map(({index:vd})=>{let Ad=hi$1(nd(),qa).formatted,Nd=sr$1(Ad);return ld[vd]=Math.max(ld[vd]??3,Nd),{text:Ad,width:Nd}},"children"),"children"),cd=pd(!1);if(qa.proseWrap!=="never")return[er$1,cd];let dd=pd(!0);return[er$1,ze$4(zn$2(dd,cd))];function pd(vd){return Tr$1(rr$1,[md(ud[0],vd),fd(vd),...ud.slice(1).map(Ad=>md(Ad,vd))].map(Ad=>`| ${Ad.join(" | ")} |`))}function fd(vd){return ld.map((Ad,Nd)=>{let Id=od.align[Nd],kd=Id==="center"||Id==="left"?":":"-",jd=Id==="center"||Id==="right"?":":"-",Fd=vd?"-":"-".repeat(Ad-2);return`${kd}${Fd}${jd}`})}function md(vd,Ad){return vd.map(({text:Nd,width:Id},kd)=>{if(Ad)return Nd;let jd=ld[kd]-Id,Fd=od.align[kd],Md=0;Fd==="right"?Md=jd:Fd==="center"&&(Md=Math.floor(jd/2));let Ld=jd-Md;return`${" ".repeat(Md)}${Nd}${" ".repeat(Ld)}`})}}function Fi(Ra,qa,nd){let od=Ra.map(nd,"children");return Nl$1(od)}function Nl$1(Ra){let qa=[""];return function nd(od){for(let ld of od){let ud=Y$3(ld);if(ud===H$4){nd(ld);continue}let cd=ld,dd=[];ud===J$5&&([cd,...dd]=ld.parts),qa.push([qa.pop(),cd],...dd)}}(Ra),Ee$5(qa)}var Rl$1=/^.$/su;function Ul$1(Ra,qa){return Ra=zl$1(Ra,qa),Ra=Yl$1(Ra),Ra=Vl$1(Ra,qa),Ra=jl$1(Ra,qa),Ra=Gl$1(Ra),Ra}function zl$1(Ra,qa){return ye$4(Ra,nd=>nd.type!=="text"||nd.va
`)return L$4;let ld=qa===" "||qa===`
`&&Jl$1(Ra,od);return Xl$1(Ra,qa,nd,od,ld)?ld?Br$2:qr$1:ld?" ":""}var Ql$1=new Set(["listItem","definition"]);function Zl$1(Ra,qa,nd){var od,ld;let{node:ud}=Ra;if(af(Ra)){let cd=[""],dd=Pr$1(qa.originalText.slice(ud.position.start.offset,ud.position.end.offset));for(let pd of dd){if(pd.type==="word"){cd.push([cd.pop(),pd.value]);continue}let fd=Et$2(Ra,pd.value,qa.proseWrap,!0);if(Y$3(fd)===$$2){cd.push([cd.pop(),fd]);continue}cd.push(fd)}return Ee$5(cd)}switch(ud.type){case"front-matter":return qa.originalText.slice(ud.position.start.offset,ud.position.end.offset);case"root":return ud.children.length===0?"":[tf(Ra,qa,nd),L$4];case"paragraph":return Fi(Ra,qa,nd);case"sentence":return vi(Ra,nd);case"word":{let cd=N$4(!1,N$4(!1,ud.value,"*",String.raw`\*`),new RegExp([`(^|${Se$5.source})(_+)`,`(_+)(${Se$5.source}|$)`].join("|"),"gu"),(fd,md,vd,Ad,Nd)=>N$4(!1,vd?`${md}${vd}`:`${Ad}${Nd}`,"_",String.raw`\_`)),dd=(fd,md,vd)=>fd.type==="sentence"&&vd===0,pd=(fd,md,vd)=>mt$2(fd.children[vd-1]);return cd!==ud.value&&(Ra.match(void 0,dd,pd)||Ra.match(void 0,dd,(fd,md,vd)=>fd.type==="emphasis"&&vd===0,pd))&&(cd=cd.replace(/^(\\?[*_])+/u,fd=>N$4(!1,fd,"\\",""))),cd}case"whitespace":{let{next:cd}=Ra,dd=cd&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(cd.value)?"never":qa.proseWrap;return Et$2(Ra,ud.value,dd)}case"emphasis":{let cd;if(mt$2(ud.children[0]))cd=qa.originalText[ud.position.start.offset];else{let{previous:dd,next:pd}=Ra;cd=(dd==null?void 0:dd.type)==="sentence"&&((od=M$4(!1,dd.children,-1))==null?void 0:od.type)==="word"&&!M$4(!1,dd.children,-1).hasTrailingPunctuation||(pd==null?void 0:pd.type)==="sentence"&&((ld=pd.children[0])==null?void 0:ld.type)==="word"&&!pd.children[0].hasLeadingPunctuation||Ra.hasAncestor(fd=>fd.type==="emphasis")?"*":"_"}return[cd,V$4(Ra,qa,nd),cd]}case"strong":return["**",V$4(Ra,qa,nd),"**"];case"delete":return["~~",V$4(Ra,qa,nd),"~~"];case"inlineCode":{let cd=qa.proseWrap==="preserve"?ud.value:N$4(!1,ud.value,`
`," "),dd=Gn$2(cd,"`"),pd="`".repeat(dd||1),fd=cd.startsWith("`")||cd.endsWith("`")||/^[\n ]/u.test(cd)&&/[\n ]$/u.test(cd)&&/[^\n ]/u.test(cd)?" ":"";return[pd,fd,cd,fd,pd]}case"wikiLink":{let cd="";return qa.proseWrap==="preserve"?cd=ud.value:cd=N$4(!1,ud.value,/[\t\n]+/gu," "),["[[",cd,"]]"]}case"link":switch(qa.originalText[ud.position.start.offset]){case"<":{let cd="mailto:";return["<",ud.url.startsWith(cd)&&qa.originalText.slice(ud.position.start.offset+1,ud.position.start.offset+1+cd.length)!==cd?ud.url.slice(cd.length):ud.url,">"]}case"[":return["[",V$4(Ra,qa,nd),"](",Ct$2(ud.url,")"),Nr$1(ud.title,qa),")"];default:return qa.originalText.slice(ud.position.start.offset,ud.position.end.offset)}case"image":return["![",ud.alt||"","](",Ct$2(ud.url,")"),Nr$1(ud.title,qa),")"];case"blockquote":return["> ",ve$5("> ",V$4(Ra,qa,nd))];case"heading":return["#".repeat(ud.depth)+" ",V$4(Ra,qa,nd)];case"code":{if(ud.isIndented){let pd=" ".repeat(4);return ve$5(pd,[pd,Ce$3(ud.value,L$4)])}let cd=qa.__inJsTemplate?"~":"`",dd=cd.repeat(Math.max(3,_r$1(ud.value,cd)+1));return[dd,ud.lang||"",ud.meta?" "+ud.meta:"",L$4,Ce$3(Lr$1(ud,qa.originalText),L$4),L$4,dd]}case"html":{let{parent:cd,isLast:dd}=Ra,pd=cd.type==="root"&&dd?ud.value.trimEnd():ud.value,fd=/^<!--.*-->$/su.test(pd);return Ce$3(pd,fd?L$4:_e$3(tr$1))}case"list":{let cd=Ai(ud,Ra.parent),dd=ii$2(ud,qa);return V$4(Ra,qa,nd,{processor(pd){let fd=vd(),md=pd.node;if(md.children.length===2&&md.children[1].type==="html"&&md.children[0].position.start.column!==md.children[1].position.start.column)return[fd,yi$1(pd,qa,nd,fd)];return[fd,ve$5(" ".repeat(fd.length),yi$1(pd,qa,nd,fd))];function vd(){let Ad=ud.ordered?(pd.isFirst?ud.start:dd?1:ud.start+pd.index)+(cd%2===0?". ":") "):cd%2===0?"- ":"* ";return ud.isAligned||ud.hasIndentedCodeblock?ef(Ad,qa):Ad}}})}case"thematicBreak":{let{ancestors:cd}=Ra,dd=cd.findIndex(pd=>pd.type==="list");return dd===-1?"---":Ai(cd[dd],cd[dd+1])%2===0?"***":"---"}case"linkReference":return["[",V$4(Ra,qa,nd),"]",ud.referenceType==="full"?bt$3(ud):ud.referenceType==="collapsed"?"[]":""];case"imageReference":switch(ud.referenceType){case"full":return["![",ud.alt||"","]",bt$3(ud)];default:return["![",ud.alt,"]",ud.referenceType==="collapsed"?"[]":""]}case"definition":{let cd=qa.proseWrap==="always"?Br$2:" ";return ze$4([bt$3(ud),":",Ze$3([cd,Ct$2(ud.url),ud.title===null?"":[cd,Nr$1(ud.title,qa,!1)]])])}case"footnote":return["[^",V$4(Ra,qa,nd),"]"];case"footnoteReference":return Bi(ud);case"footnoteDefinition":{let cd=ud.children.length===1&&ud.children[0].type==="paragraph"&&(qa.proseWrap==="never"||qa.proseWrap==="preserve"&&ud.children[0].position.start.line===ud.children[0].position.end.line);return[Bi(ud),": ",cd?V$4(Ra,qa,nd):ze$4([ve$5(" ".repeat(4),V$4(Ra,qa,nd,{processor:({isFirst:dd})=>dd?ze$4([qr$1,nd()]):nd()}))])]}case"table":return mi(Ra,qa,nd);case"tableCell":return V$4(Ra,qa,nd);case"break":return/\s/u.test(qa.originalText[ud.position.start.offset])?[" ",_e$3(tr$1)]:["\\",L$4];case"liquidNode":return Ce$3(ud.value,L$4);case"import":case"export":case"jsx":return ud.value;case"esComment":return["{/* ",ud.value," */}"];case"math":return["$$",L$4,ud.value?[Ce$3(ud.value,L$4),L$4]:"","$$"];case"inlineMath":return qa.originalText.slice(Oe$4(ud),Pe$4(ud));case"tableRow":case"listItem":case"text":default:throw new $n$2(ud,"Markdown")}}function yi$1(Ra,qa,nd,od){let{node:ld}=Ra,ud=ld.checked===null?"":ld.checked?"[x] ":"[ ] ";return[ud,V$4(Ra,qa,nd,{processor({node:cd,isFirst:dd}){if(dd&&cd.type!=="list")return ve$5(" ".repeat(ud.length),nd());let pd=" ".repeat(sf(qa.tabWidth-od.length,0,3));return[pd,ve$5(pd,nd())]}})]}function ef(Ra,qa){let nd=od();return Ra+" ".repeat(nd>=4?0:nd);function od(){let ld=Ra.length%qa.tabWidth;return ld===0?0:qa.tabWidth-ld}}function Ai(Ra,qa){return rf(Ra,qa,nd=>nd.ordered===Ra.ordered)}function rf(Ra,qa,nd){let od=-1;for(let ld of qa.children)if(ld.type===Ra.type&&nd(ld)?od++:od=-1,ld===Ra)return od}function tf(Ra,qa,nd){let od=[],ld=null,{children:ud}=Ra.node;for(let[cd,dd]of ud.entries())switch(yt$1(dd)){case"st
`)}function uf({node:Ra,previous:qa,parent:nd},od){if(wi(qa,od))return!0;let ld=qa.type===Ra.type&&Ql$1.has(Ra.type),ud=nd.type==="listItem"&&!wi(nd,od),cd=yt$1(qa)==="next",dd=Ra.type==="html"&&qa.type==="html"&&qa.position.end.line+1===Ra.position.start.line,pd=Ra.type==="html"&&nd.type==="listItem"&&qa.type==="paragraph"&&qa.position.end.line+1===Ra.position.start.line;return!(ld||ud||cd||dd||pd)}function ki({node:Ra,previous:qa}){let nd=qa.type==="list",od=Ra.type==="code"&&Ra.isIndented;return nd&&od}function af(Ra){let qa=Ra.findAncestor(nd=>nd.type==="linkReference"||nd.type==="imageReference");return qa&&(qa.type!=="linkReference"||qa.referenceType!=="full")}var of=(Ra,qa)=>{for(let nd of qa)Ra=N$4(!1,Ra,nd,encodeURIComponent(nd));return Ra};function Ct$2(Ra,qa=[]){let nd=[" ",...Array.isArray(qa)?qa:[qa]];return new RegExp(nd.map(od=>Be$5(od)).join("|"),"u").test(Ra)?`<${of(Ra,"<>")}>`:Ra}function Nr$1(Ra,qa,nd=!0){if(!Ra)return"";if(nd)return" "+Nr$1(Ra,qa,!1);if(Ra=N$4(!1,Ra,/\\(?=["')])/gu,""),Ra.includes('"')&&Ra.includes("'")&&!Ra.includes(")"))return`(${Ra})`;let od=jn$1(Ra,qa.singleQuote);return Ra=N$4(!1,Ra,"\\","\\\\"),Ra=N$4(!1,Ra,od,`\\${od}`),`${od}${Ra}${od}`}function sf(Ra,qa,nd){return Ra<qa?qa:Ra>nd?nd: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(Ra){return`[^${Ra.label}]`}var lf={preprocess:gi,print:Zl$1,embed:ui$2,massageAstNode:Zn$2,hasPrettierIgnore:cf,insertPragma:Jn$2,getVisitorKeys:si$2},Ti=lf,_i=[{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$2={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$2.proseWrap,singleQuote:At$2.singleQuote},Si=ff,On$2={};Ln$1(On$2,{markdown:()=>km,mdx:()=>Bm,remark:()=>km});var Wc=Ue$2(Pi()),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 nd=qa.indexOf(bm$1),od=qa.slice(0,nd);if(Sn$2(od)||Uc(od))return Ra(od)({type:Sn$2(od)?"export":"import",value:od})},Mc=(Ra,qa)=>{let nd=Cm.exec(qa);if(nd)return Ra(nd[0])({type:"esComment",value:nd[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:nd,inlineTokenizers:od,inlineMethods:ld}=Ra.prototype;qa.esSyntax=zc,od.esComment=Mc,nd.splice(nd.indexOf("paragraph"),0,"esSyntax"),ld.splice(ld.indexOf("text"),0,"esComment")},ym=function(){let Ra=this.Parser.prototype;Ra.blockMethods=["frontMatter",...Ra.blockMethods],Ra.blockTokenizers.frontMatter=qa;function qa(nd,od){let ld=ir$2(od);if(ld.frontMatter)return nd(ld.frontMatter.raw)(ld.frontMatter)}qa.onlyAtStart=!0},Gc=ym;function Am(){return Ra=>ye$4(Ra,(qa,nd,[od])=>qa.type!=="html"||Rc.test(qa.value)||Or$1.has(od.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=nd;function nd(od,ld){let ud=ld.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(ud)return od(ud[0])({type:"liquidNode",value:ud[0]})}nd.locator=function(od,ld){return od.indexOf("{",ld)}},jc=xm,wm=function(){let Ra="wikiLink",qa=/^\[\[(?<linkContents>.+?)\]\]/su,nd=this.Parser.prototype,od=nd.inlineMethods;od.splice(od.indexOf("link"),0,Ra),nd.inlineTokenizers.wikiLink=ld;function ld(ud,cd){let dd=qa.exec(cd);if(dd){let pd=dd.groups.linkContents.trim();return ud(dd[0])({type:Ra,value:pd})}}ld.locator=function(ud,cd){return ud.indexOf("[",cd)}},$c=wm;function Qc({isMDX:Ra}){return qa=>{let nd=(0,Xc.default)().use(Jc.default,{commonmark:!0,...Ra&&{blocks:[Nc]}}).use(Wc.default).use(Gc).use(Kc.default).use(Ra?Yc:Hc).use(jc).use(Ra?Vc:Hc).use($c);return nd.run(nd.parse(qa))}}function Hc(){}var Zc={astFormat:"mdast",hasPragma:Kn$2,locStart:Oe$4,locEnd:Pe$4},km={...Zc,parse:Qc({isMDX:!1})},Bm={...Zc,parse:Qc({isMDX:!0})},qm={mdast:Ti},fC=Pn$2;const prettierPluginMarkdown=Object.freeze(Object.defineProperty({__proto__:null,default:fC,languages:_i,options:Si,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 nd in qa)Ur$1(Ra,nd,{get:qa[nd],enumerable:!0})},pl=(Ra,qa,nd,od)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let ld of ll(qa))!fl.call(Ra,ld)&&ld!==nd&&Ur$1(Ra,ld,{get:()=>qa[ld],enumerable:!(od=ul(qa,ld))||od.enumerable});return Ra},ye$3=(Ra,qa,nd)=>(nd=Ra!=null?al(cl(Ra)):{},pl(Ur$1(nd,"default",{value:Ra,enumerable:!0}),Ra)),Ut$3=y$3((Ra,qa)=>{qa.exports.isClean=Symbol("isClean"),qa.exports.my=Symbol("my")}),yi=y$3((Ra,qa)=>{var nd=String,od=function(){return{isColorSupported:!1,reset:nd,bold:nd,dim:nd,italic:nd,underline:nd,inverse:nd,hidden:nd,strikethrough:nd,black:nd,red:nd,green:nd,yellow:nd,blue:nd,magenta:nd,cyan:nd,white:nd,gray:nd,bgBlack:nd,bgRed:nd,bgGreen:nd,bgYellow:nd,bgBlue:nd,bgMagenta:nd,bgCyan:nd,bgWhite:nd}};qa.exports=od(),qa.exports.createColors=od}),ss=y$3(()=>{}),Ft$2=y$3((Ra,qa)=>{var nd=yi(),od=ss(),ld=class kx extends Error{constructor(cd,dd,pd,fd,md,vd){super(cd),this.name="CssSyntaxError",this.reason=cd,md&&(this.file=md),fd&&(this.source=fd),vd&&(this.plugin=vd),typeof dd<"u"&&typeof pd<"u"&&(typeof dd=="number"?(this.line=dd,this.column=pd):(this.line=dd.line,this.column=dd.column,this.endLine=pd.line,this.endColumn=pd.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,kx)}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(cd){if(!this.source)return"";let dd=this.source;cd==null&&(cd=nd.isColorSupported),od&&cd&&(dd=od(dd));let pd=
`+Md+Ad("^")}return" "+Nd(Fd)+Id}).join(`
`)}toString(){let cd=this.showSourceCode();return cd&&(cd=`
`+cd+`
`),this.name+": "+this.message+cd}};qa.exports=ld,ld.default=ld}),$t$2=y$3((Ra,qa)=>{var nd={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function od(ud){return ud[0].toUpperCase()+ud.slice(1)}var ld=class{constructor(ud){this.builder=ud}atrule(ud,cd){let dd="@"+ud.name,pd=ud.params?this.rawValue(ud,"params"):"";if(typeof ud.raws.afterName<"u"?dd+=ud.raws.afterName:pd&&(dd+=" "),ud.nodes)this.block(ud,dd+pd);else{let fd=(ud.raws.between||"")+(cd?";":"");this.builder(dd+pd+fd,ud)}}beforeAfter(ud,cd){let dd;ud.type==="decl"?dd=this.raw(ud,null,"beforeDecl"):ud.type==="comment"?dd=this.raw(ud,null,"beforeComment"):cd==="before"?dd=this.raw(ud,null,"beforeRule"):dd=this.raw(ud,null,"beforeClose");let pd=ud.parent,fd=0;for(;pd&&pd.type!=="root";)fd+=1,pd=pd.parent;if(dd.includes(`
`)){let md=this.raw(ud,null,"indent");if(md.length)for(let vd=0;vd<fd;vd++)dd+=md}return dd}block(ud,cd){let dd=this.raw(ud,"between","beforeOpen");this.builder(cd+dd+"{",ud,"start");let pd;ud.nodes&&ud.nodes.length?(this.body(ud),pd=this.raw(ud,"after")):pd=this.raw(ud,"after","emptyBody"),pd&&this.builder(pd),this.builder("}",ud,"end")}body(ud){let cd=ud.nodes.length-1;for(;cd>0&&ud.nodes[cd].type==="comment";)cd-=1;let dd=this.raw(ud,"semicolon");for(let pd=0;pd<ud.nodes.length;pd++){let fd=ud.nodes[pd],md=this.raw(fd,"before");md&&this.builder(md),this.stringify(fd,cd!==pd||dd)}}comment(ud){let cd=this.raw(ud,"left","commentLeft"),dd=this.raw(ud,"right","commentRight");this.builder("/*"+cd+ud.text+dd+"*/",ud)}decl(ud,cd){let dd=this.raw(ud,"between","colon"),pd=ud.prop+dd+this.rawValue(ud,"value");ud.important&&(pd+=ud.raws.important||" !important"),cd&&(pd+=";"),this.builder(pd,ud)}document(ud){this.body(ud)}raw(ud,cd,dd){let pd;if(dd||(dd=cd),cd&&(pd=ud.raws[cd],typeof pd<"u"))return pd;let fd=ud.parent;if(dd==="before"&&(!fd||fd.type==="root"&&fd.first===ud||fd&&fd.type==="document"))return"";if(!fd)return nd[dd];let md=ud.root();if(md.rawCache||(md.rawCache={}),typeof md.rawCache[dd]<"u")return md.rawCache[dd];if(dd==="before"||dd==="after")return this.beforeAfter(ud,dd);{let vd="raw"+od(dd);this[vd]?pd=this[vd](md,ud):md.walk(Ad=>{if(pd=Ad.raws[cd],typeof pd<"u")return!1})}return typeof pd>"u"&&(pd=nd[dd]),md.rawCache[dd]=pd,pd}rawBeforeClose(ud){let cd;return ud.walk(dd=>{if(dd.nodes&&dd.nodes.length>0&&typeof dd.raws.after<"u")return cd=dd.raws.after,cd.includes(`
`)&&(cd=cd.replace(/[^\n]+$/,"")),!1}),cd&&(cd=cd.replace(/\S/g,"")),cd}rawBeforeComment(ud,cd){let dd;return ud.walkComments(pd=>{if(typeof pd.raws.before<"u")return dd=pd.raws.before,dd.includes(`
`)&&(dd=dd.replace(/[^\n]+$/,"")),!1}),typeof dd>"u"?dd=this.raw(cd,null,"beforeDecl"):dd&&(dd=dd.replace(/\S/g,"")),dd}rawBeforeDecl(ud,cd){let dd;return ud.walkDecls(pd=>{if(typeof pd.raws.before<"u")return dd=pd.raws.before,dd.includes(`
`)&&(dd=dd.replace(/[^\n]+$/,"")),!1}),typeof dd>"u"?dd=this.raw(cd,null,"beforeRule"):dd&&(dd=dd.replace(/\S/g,"")),dd}rawBeforeOpen(ud){let cd;return ud.walk(dd=>{if(dd.type!=="decl"&&(cd=dd.raws.between,typeof cd<"u"))return!1}),cd}rawBeforeRule(ud){let cd;return ud.walk(dd=>{if(dd.nodes&&(dd.parent!==ud||ud.first!==dd)&&typeof dd.raws.before<"u")return cd=dd.raws.before,cd.includes(`
`)&&(cd=cd.replace(/[^\n]+$/,"")),!1}),cd&&(cd=cd.replace(/\S/g,"")),cd}rawColon(ud){let cd;return ud.walkDecls(dd=>{if(typeof dd.raws.between<"u")return cd=dd.raws.between.replace(/[^\s:]/g,""),!1}),cd}rawEmptyBody(ud){let cd;return ud.walk(dd=>{if(dd.nodes&&dd.nodes.length===0&&(cd=dd.raws.after,typeof cd<"u"))return!1}),cd}rawIndent(ud){if(ud.raws.indent)return ud.raws.indent;let cd;return ud.walk(dd=>{let pd=dd.parent;if(pd&&pd!==ud&&pd.parent&&pd.parent===ud&&typeof dd.raws.before<"u"){let fd=dd.raws.before.split(`
`);return cd=fd[fd.length-1],cd=cd.replace(/\S/g,""),!1}}),cd}rawSemicolon(ud){let cd;return ud.walk(dd=>{if(dd.nodes&&dd.nodes.length&&dd.last.type==="decl"&&(cd=dd.raws.semicolon,typeof cd<"u"))return!1}),cd}rawValue(ud,cd){let dd=ud[cd],pd=ud.raws[cd];return pd&&pd.value===dd?pd.raw:dd}root(ud){this.body(ud),ud.raws.after&&this.builder(ud.raws.after)}rule(ud){this.block(ud,this.rawValue(ud,"selector")),ud.raws.ownSemicolon&&this.builder(ud.raws.ownSemicolon,ud,"end")}stringify(ud,cd){if(!this[ud.type])throw new Error("Unknown AST node type "+ud.type+". Maybe you need to change PostCSS stringifier.");this[ud.type](ud,cd)}};qa.exports=ld,ld.default=ld}),it$2=y$3((Ra,qa)=>{var nd=$t$2();function od(ld,ud){new nd(ud).stringify(ld)}qa.exports=od,od.default=od}),at$4=y$3((Ra,qa)=>{var{isClean:nd,my:od}=Ut$3(),ld=Ft$2(),ud=$t$2(),cd=it$2();function dd(fd,md){let vd=new fd.constructor;for(let Ad in fd){if(!Object.prototype.hasOwnProperty.call(fd,Ad)||Ad==="proxyCache")continue;let Nd=fd[Ad],Id=typeof Nd;Ad==="parent"&&Id==="object"?md&&(vd[Ad]=md):Ad==="source"?vd[Ad]=Nd:Array.isArray(Nd)?vd[Ad]=Nd.map(kd=>dd(kd,vd)):(Id==="object"&&Nd!==null&&(Nd=dd(Nd)),vd[Ad]=Nd)}return vd}var pd=class{constructor(fd={}){this.raws={},this[nd]=!1,this[od]=!0;for(let md in fd)if(md==="nodes"){this.nodes=[];for(let vd of fd[md])typeof vd.clone=="function"?this.append(vd.clone()):this.append(vd)}else this[md]=fd[md]}addToError(fd){if(fd.postcssNode=this,fd.stack&&this.source&&/\n\s{4}at /.test(fd.stack)){let md=this.source;fd.stack=fd.stack.replace(/\n\s{4}at /,`$&${md.input.from}:${md.start.line}:${md.start.column}$&`)}return fd}after(fd){return this.parent.insertAfter(this,fd),this}assign(fd={}){for(let md in fd)this[md]=fd[md];return this}before(fd){return this.parent.insertBefore(this,fd),this}cleanRaws(fd){delete this.raws.before,delete this.raws.after,fd||delete this.raws.between}clone(fd={}){let md=dd(this);for(let vd in fd)md[vd]=fd[vd];return md}cloneAfter(fd={}){let md=this.clone(fd);return this.parent.insertAfter(this,md),md}cloneBefore(fd={}){let md=this.clone(fd);return this.parent.insertBefore(this,md),md}error(fd,md={}){if(this.source){let{end:vd,start:Ad}=this.rangeBy(md);return this.source.input.error(fd,{column:Ad.column,line:Ad.line},{column:vd.column,line:vd.line},md)}return new ld(fd)}getProxyProcessor(){return{get(fd,md){return md==="proxyOf"?fd:md==="root"?()=>fd.root().toProxy():fd[md]},set(fd,md,vd){return fd[md]===vd||(fd[md]=vd,(md==="prop"||md==="value"||md==="name"||md==="params"||md==="important"||md==="text")&&fd.markDirty()),!0}}}markDirty(){if(this[nd]){this[nd]=!1;let fd=this;for(;fd=fd.parent;)fd[nd]=!1}}next(){if(!this.parent)return;let fd=this.parent.index(this);return this.parent.nodes[fd+1]}positionBy(fd,md){let vd=this.source.start;if(fd.index)vd=this.positionInside(fd.index,md);else if(fd.word){md=this.toString();let Ad=md.indexOf(fd.word);Ad!==-1&&(vd=this.positionInside(Ad,md))}return vd}positionInside(fd,md){let vd=md||this.toString(),Ad=this.source.start.column,Nd=this.source.start.line;for(let Id=0;Id<fd;Id++)vd[Id]===`
`?(Ad=1,Nd+=1):Ad+=1;return{column:Ad,line:Nd}}prev(){if(!this.parent)return;let fd=this.parent.index(this);return this.parent.nodes[fd-1]}rangeBy(fd){let md={column:this.source.start.column,line:this.source.start.line},vd=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:md.column+1,line:md.line};if(fd.word){let Ad=this.toString(),Nd=Ad.indexOf(fd.word);Nd!==-1&&(md=this.positionInside(Nd,Ad),vd=this.positionInside(Nd+fd.word.length,Ad))}else fd.start?md={column:fd.start.column,line:fd.start.line}:fd.index&&(md=this.positionInside(fd.index)),fd.end?vd={column:fd.end.column,line:fd.end.line}:typeof fd.endIndex=="number"?vd=this.positionInside(fd.endIndex):fd.index&&(vd=this.positionInside(fd.index+1));return(vd.line<md.line||vd.line===md.line&&vd.column<=md.column)&&(vd={column:md.column+1,line:md.line}),{end:vd,start:md}}raw(fd,md){return new ud().raw(this,fd,md)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...fd){if(this.parent){let md=this,vd=!1;for(let Ad of fd)Ad===this?vd=!0:vd?(this.parent.insertAfter(md,Ad),md=Ad):this.parent.insertBefore(md,Ad);vd||this.remove()}return this}root(){let fd=this;for(;fd.parent&&fd.parent.type!=="document";)fd=fd.parent;return fd}toJSON(fd,md){let vd={},Ad=md==null;md=md||new Map;let Nd=0;for(let Id in this){if(!Object.prototype.hasOwnProperty.call(this,Id)||Id==="parent"||Id==="proxyCache")continue;let kd=this[Id];if(Array.isArray(kd))vd[Id]=kd.map(jd=>typeof jd=="object"&&jd.toJSON?jd.toJSON(null,md):jd);else if(typeof kd=="object"&&kd.toJSON)vd[Id]=kd.toJSON(null,md);else if(Id==="source"){let jd=md.get(kd.input);jd==null&&(jd=Nd,md.set(kd.input,Nd),Nd++),vd[Id]={end:kd.end,inputId:jd,start:kd.start}}else vd[Id]=kd}return Ad&&(vd.inputs=[...md.keys()].map(Id=>Id.toJSON())),vd}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(fd=cd){fd.stringify&&(fd=fd.stringify);let md="";return fd(this,vd=>{md+=vd}),md}warn(fd,md,vd){let Ad={node:this};for(let Nd in vd)Ad[Nd]=vd[Nd];return fd.warn(md,Ad)}get proxyOf(){return this}};qa.exports=pd,pd.default=pd}),lt$2=y$3((Ra,qa)=>{var nd=at$4(),od=class extends nd{constructor(ld){ld&&typeof ld.value<"u"&&typeof ld.value!="string"&&(ld={...ld,value:String(ld.value)}),super(ld),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};qa.exports=od,od.default=od}),Oe$3=y$3((Ra,qa)=>{var nd=at$4(),od=class extends nd{constructor(ld){super(ld),this.type="comment"}};qa.exports=od,od.default=od}),re$3=y$3((Ra,qa)=>{var{isClean:nd,my:od}=Ut$3(),ld=lt$2(),ud=Oe$3(),cd=at$4(),dd,pd,fd,md;function vd(Id){return Id.map(kd=>(kd.nodes&&(kd.nodes=vd(kd.nodes)),delete kd.source,kd))}function Ad(Id){if(Id[nd]=!1,Id.proxyOf.nodes)for(let kd of Id.proxyOf.nodes)Ad(kd)}var Nd=class Mx extends cd{append(...kd){for(let jd of kd){let Fd=this.normalize(jd,this.last);for(let Md of Fd)this.proxyOf.nodes.push(Md)}return this.markDirty(),this}cleanRaws(kd){if(super.cleanRaws(kd),this.nodes)for(let jd of this.nodes)jd.cleanRaws(kd)}each(kd){if(!this.proxyOf.nodes)return;let jd=this.getIterator(),Fd,Md;for(;this.indexes[jd]<this.proxyOf.nodes.length&&(Fd=this.indexes[jd],Md=kd(this.proxyOf.nodes[Fd],Fd),Md!==!1);)this.indexes[jd]+=1;return delete this.indexes[jd],Md}every(kd){return this.nodes.every(kd)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let kd=this.lastEach;return this.indexes[kd]=0,kd}getProxyProcessor(){return{get(kd,jd){return jd==="proxyOf"?kd:kd[jd]?jd==="each"||typeof jd=="string"&&jd.startsWith("walk")?(...Fd)=>kd[jd](...Fd.map(Md=>typeof Md=="function"?(Ld,Hd)=>Md(Ld.toProxy(),Hd):Md)):jd==="every"||jd==="some"?Fd=>kd[jd]((Md,...Ld)=>Fd(Md.toProxy(),...Ld)):jd==="root"?()=>kd.root().toProxy():jd==="nodes"?kd.nodes.map(Fd=>Fd.toProxy()):jd==="first"||jd==="last"?kd[jd].toProxy():kd[jd]:kd[jd]},set(kd,jd,Fd){return kd[jd]===Fd||(kd[jd]=Fd,(jd==="name"||jd==="params"||jd==="selector")&&kd.markDirty()),!0}}}index(kd){return typeo
`," "];return nd.split(od,ld)},split(od,ld,ud){let cd=[],dd="",pd=!1,fd=0,md=!1,vd="",Ad=!1;for(let Nd of od)Ad?Ad=!1:Nd==="\\"?Ad=!0:md?Nd===vd&&(md=!1):Nd==='"'||Nd==="'"?(md=!0,vd=Nd):Nd==="("?fd+=1:Nd===")"?fd>0&&(fd-=1):fd===0&&ld.includes(Nd)&&(pd=!0),pd?(dd!==""&&cd.push(dd.trim()),dd="",pd=!1):dd+=Nd;return(ud||dd!=="")&&cd.push(dd.trim()),cd}};qa.exports=nd,nd.default=nd}),jt$1=y$3((Ra,qa)=>{var nd=re$3(),od=us(),ld=class extends nd{constructor(ud){super(ud),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return od.comma(this.selector)}set selectors(ud){let cd=this.selector?this.selector.match(/,\s*/):null,dd=cd?cd[0]:","+this.raw("between","beforeOpen");this.selector=ud.join(dd)}};qa.exports=ld,ld.default=ld,nd.registerRule(ld)}),Ht$2=y$3((Ra,qa)=>{var nd=lt$2(),od=Vt$2(),ld=Oe$3(),ud=Gt$2(),cd=Ae$4(),dd=jt$1(),pd={empty:!0,space:!0};function fd(vd){for(let Ad=vd.length-1;Ad>=0;Ad--){let Nd=vd[Ad],Id=Nd[3]||Nd[2];if(Id)return Id}}var md=class{constructor(vd){this.input=vd,this.root=new cd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:vd,start:{column:1,line:1,offset:0}}}atrule(vd){let Ad=new ud;Ad.name=vd[1].slice(1),Ad.name===""&&this.unnamedAtrule(Ad,vd),this.init(Ad,vd[2]);let Nd,Id,kd,jd=!1,Fd=!1,Md=[],Ld=[];for(;!this.tokenizer.endOfFile();){if(vd=this.tokenizer.nextToken(),Nd=vd[0],Nd==="("||Nd==="["?Ld.push(Nd==="("?")":"]"):Nd==="{"&&Ld.length>0?Ld.push("}"):Nd===Ld[Ld.length-1]&&Ld.pop(),Ld.length===0)if(Nd===";"){Ad.source.end=this.getPosition(vd[2]),Ad.source.end.offset++,this.semicolon=!0;break}else if(Nd==="{"){Fd=!0;break}else if(Nd==="}"){if(Md.length>0){for(kd=Md.length-1,Id=Md[kd];Id&&Id[0]==="space";)Id=Md[--kd];Id&&(Ad.source.end=this.getPosition(Id[3]||Id[2]),Ad.source.end.offset++)}this.end(vd);break}else Md.push(vd);else Md.push(vd);if(this.tokenizer.endOfFile()){jd=!0;break}}Ad.raws.between=this.spacesAndCommentsFromEnd(Md),Md.length?(Ad.raws.afterName=this.spacesAndCommentsFromStart(Md),this.raw(Ad,"params",Md),jd&&(vd=Md[Md.length-1],Ad.source.end=this.getPosition(vd[3]||vd[2]),Ad.source.end.offset++,this.spaces=Ad.raws.between,Ad.raws.between="")):(Ad.raws.afterName="",Ad.params=""),Fd&&(Ad.nodes=[],this.current=Ad)}checkMissedSemicolon(vd){let Ad=this.colon(vd);if(Ad===!1)return;let Nd=0,Id;for(let kd=Ad-1;kd>=0&&(Id=vd[kd],!(Id[0]!=="space"&&(Nd+=1,Nd===2)));kd--);throw this.input.error("Missed semicolon",Id[0]==="word"?Id[3]+1:Id[2])}colon(vd){let Ad=0,Nd,Id,kd;for(let[jd,Fd]of vd.entries()){if(Nd=Fd,Id=Nd[0],Id==="("&&(Ad+=1),Id===")"&&(Ad-=1),Ad===0&&Id===":")if(!kd)this.doubleColon(Nd);else{if(kd[0]==="word"&&kd[1]==="progid")continue;return jd}kd=Nd}return!1}comment(vd){let Ad=new ld;this.init(Ad,vd[2]),Ad.source.end=this.getPosition(vd[3]||vd[2]),Ad.source.end.offset++;let Nd=vd[1].slice(2,-2);if(/^\s*$/.test(Nd))Ad.text="",Ad.raws.left=Nd,Ad.raws.right="";else{let Id=Nd.match(/^(\s*)([^]*\S)(\s*)$/);Ad.text=Id[2],Ad.raws.left=Id[1],Ad.raws.right=Id[3]}}createTokenizer(){this.tokenizer=od(this.input)}decl(vd,Ad){let Nd=new nd;this.init(Nd,vd[0][2]);let Id=vd[vd.length-1];for(Id[0]===";"&&(this.semicolon=!0,vd.pop()),Nd.source.end=this.getPosition(Id[3]||Id[2]||fd(vd)),Nd.source.end.offset++;vd[0][0]!=="word";)vd.length===1&&this.unknownWord(vd),Nd.raws.before+=vd.shift()[1];for(Nd.source.start=this.getPosition(vd[0][2]),Nd.prop="";vd.length;){let Md=vd[0][0];if(Md===":"||Md==="space"||Md==="comment")break;Nd.prop+=vd.shift()[1]}Nd.raws.between="";let kd;for(;vd.length;)if(kd=vd.shift(),kd[0]===":"){Nd.raws.between+=kd[1];break}else kd[0]==="word"&&/\w/.test(kd[1])&&this.unknownWord([kd]),Nd.raws.between+=kd[1];(Nd.prop[0]==="_"||Nd.prop[0]==="*")&&(Nd.raws.before+=Nd.prop[0],Nd.prop=Nd.prop.slice(1));let jd=[],Fd;for(;vd.length&&(Fd=vd[0][0],!(Fd!=="space"&&Fd!=="comment"));)jd.push(vd.shift());this.precheckMissedSemicolon(vd);for(let Md=vd.length-1;Md>=0;Md--){if(kd=vd[Md],kd[1].toLowerCase()==="!important"){Nd.important=!0;let Ld=this.stringFrom(vd,Md);Ld=this.spacesFromEnd(vd)+Ld,Ld!==" !important"&&(Nd.r
`);Md=new Array(Hd.length);let Gd=0;for(let Vd=0,Qd=Hd.length;Vd<Qd;Vd++)Md[Vd]=Gd,Gd+=Hd[Vd].length+1;this[Ad]=Md}Fd=Md[Md.length-1];let Ld=0;if(jd>=Fd)Ld=Md.length-1;else{let Hd=Md.length-2,Gd;for(;Ld<Hd;)if(Gd=Ld+(Hd-Ld>>1),jd<Md[Gd])Hd=Gd-1;else if(jd>=Md[Gd+1])Ld=Gd+1;else{Ld=Gd;break}}return{col:jd-Md[Ld]+1,line:Ld+1}}mapResolve(jd){return/^\w+:\/\//.test(jd)?jd:dd(this.map.consumer().sourceRoot||this.map.root||".",jd)}origin(jd,Fd,Md,Ld){if(!this.map)return!1;let Hd=this.map.consumer(),Gd=Hd.originalPositionFor({column:Fd,line:jd});if(!Gd.source)return!1;let Vd;typeof Md=="number"&&(Vd=Hd.originalPositionFor({column:Ld,line:Md}));let Qd;cd(Gd.source)?Qd=ud(Gd.source):Qd=new URL(Gd.source,this.map.consumer().sourceRoot||ud(this.map.mapFile));let mf={column:Gd.column,endColumn:Vd&&Vd.column,endLine:Vd&&Vd.line,line:Gd.line,url:Qd.toString()};if(Qd.protocol==="file:")if(ld)mf.file=ld(Qd);else throw new Error("file: protocol is not available in this PostCSS build");let Yd=Hd.sourceContentFor(Gd.source);return Yd&&(mf.source=Yd),mf}toJSON(){let jd={};for(let Fd of["hasBOM","css","file","id"])this[Fd]!=null&&(jd[Fd]=this[Fd]);return this.map&&(jd.map={...this.map},jd.map.consumerCache&&(jd.map.consumerCache=void 0)),jd}get from(){return this.file||this.id}};qa.exports=kd,kd.default=kd,fd&&fd.registerInput&&fd.registerInput(kd)}),pt$2=y$3((Ra,qa)=>{var nd=re$3(),od=Ht$2(),ld=Re$4();function ud(cd,dd){let pd=new ld(cd,dd),fd=new od(pd);try{fd.parse()}catch(md){throw md}return fd.root}qa.exports=ud,ud.default=ud,nd.registerParse(ud)}),no$1=y$3((Ra,qa)=>{var nd=Vt$2(),od=Re$4();qa.exports={isInlineComment(ld){if(ld[0]==="word"&&ld[1].slice(0,2)==="//"){let ud=ld,cd=[],dd,pd;for(;ld;){if(/\r?\n/.test(ld[1])){if(/['"].*\r?\n/.test(ld[1])){cd.push(ld[1].substring(0,ld[1].indexOf(`
`))),pd=ld[1].substring(ld[1].indexOf(`
`));let md=this.input.css.valueOf().substring(this.tokenizer.position());pd+=md,dd=ld[3]+md.length-pd.length}else this.tokenizer.back(ld);break}cd.push(ld[1]),dd=ld[2],ld=this.tokenizer.nextToken({ignoreUnclosed:!0})}let fd=["comment",cd.join(""),ud[2],dd];return this.inlineComment(fd),pd&&(this.input=new od(pd),this.tokenizer=nd(this.input)),!0}else if(ld[1]==="/"){let ud=this.tokenizer.nextToken({ignoreUnclosed:!0});if(ud[0]==="comment"&&/^\/\*/.test(ud[1]))return ud[0]="word",ud[1]=ud[1].slice(1),ld[1]="//",this.tokenizer.back(ud),qa.exports.isInlineComment.bind(this)(ld)}return!1}}}),oo$1=y$3((Ra,qa)=>{qa.exports={interpolation(nd){let od=[nd,this.tokenizer.nextToken()],ld=["word","}"];if(od[0][1].length>1||od[1][0]!=="{")return this.tokenizer.back(od[1]),!1;for(nd=this.tokenizer.nextToken();nd&&ld.includes(nd[0]);)od.push(nd),nd=this.tokenizer.nextToken();let ud=od.map(fd=>fd[1]),[cd]=od,dd=od.pop(),pd=["word",ud.join(""),cd[2],dd[2]];return this.tokenizer.back(nd),this.tokenizer.back(pd),!0}}}),uo$1=y$3((Ra,qa)=>{var nd=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,od=/\.[0-9]/,ld=ud=>{let[,cd]=ud,[dd]=cd;return(dd==="."||dd==="#")&&nd.test(cd)===!1&&od.test(cd)===!1};qa.exports={isMixinToken:ld}}),co$1=y$3((Ra,qa)=>{var nd=Vt$2(),od=/^url\((.+)\)/;qa.exports=ld=>{let{name:ud,params:cd=""}=ld;if(ud==="import"&&cd.length){ld.import=!0;let dd=nd({css:cd});for(ld.filename=cd.replace(od,"$1");!dd.endOfFile();){let[pd,fd]=dd.nextToken();if(pd==="word"&&fd==="url")return;if(pd==="brackets"){ld.options=fd,ld.filename=cd.replace(fd,"").trim();break}}}}}),mo$1=y$3((Ra,qa)=>{var nd=/:$/,od=/^:(\s+)?/;qa.exports=ld=>{let{name:ud,params:cd=""}=ld;if(ld.name.slice(-1)===":"){if(nd.test(ud)){let[dd]=ud.match(nd);ld.name=ud.replace(dd,""),ld.raws.afterName=dd+(ld.raws.afterName||""),ld.variable=!0,ld.value=ld.params}if(od.test(cd)){let[dd]=cd.match(od);ld.value=cd.replace(dd,""),ld.raws.afterName=(ld.raws.afterName||"")+dd,ld.variable=!0}}}}),go$1=y$3((Ra,qa)=>{var nd=Oe$3(),od=Ht$2(),{isInlineComment:ld}=no$1(),{interpolation:ud}=oo$1(),{isMixinToken:cd}=uo$1(),dd=co$1(),pd=mo$1(),fd=/(!\s*important)$/i;qa.exports=class extends od{constructor(...md){super(...md),this.lastNode=null}atrule(md){ud.bind(this)(md)||(super.atrule(md),dd(this.lastNode),pd(this.lastNode))}decl(...md){super.decl(...md),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(md){md[0][1]=` ${md[0][1]}`;let vd=md.findIndex(kd=>kd[0]==="("),Ad=md.reverse().find(kd=>kd[0]===")"),Nd=md.reverse().indexOf(Ad),Id=md.splice(vd,Nd).map(kd=>kd[1]).join("");for(let kd of md.reverse())this.tokenizer.back(kd);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=Id}init(md,vd,Ad){super.init(md,vd,Ad),this.lastNode=md}inlineComment(md){let vd=new nd,Ad=md[1].slice(2);if(this.init(vd,md[2]),vd.source.end=this.getPosition(md[3]||md[2]),vd.inline=!0,vd.raws.begin="//",/^\s*$/.test(Ad))vd.text="",vd.raws.left=Ad,vd.raws.right="";else{let Nd=Ad.match(/^(\s*)([^]*[^\s])(\s*)$/);[,vd.raws.left,vd.text,vd.raws.right]=Nd}}mixin(md){let[vd]=md,Ad=vd[1].slice(0,1),Nd=md.findIndex(Md=>Md[0]==="brackets"),Id=md.findIndex(Md=>Md[0]==="("),kd="";if((Nd<0||Nd>3)&&Id>0){let Md=md.reduce((Kd,bf,gf)=>bf[0]===")"?gf:Kd),Ld=md.slice(Id,Md+Id).map(Kd=>Kd[1]).join(""),[Hd]=md.slice(Id),Gd=[Hd[2],Hd[3]],[Vd]=md.slice(Md,Md+1),Qd=[Vd[2],Vd[3]],mf=["brackets",Ld].concat(Gd,Qd),Yd=md.slice(0,Id),Zd=md.slice(Md+1);md=Yd,md.push(mf),md=md.concat(Zd)}let jd=[];for(let Md of md)if((Md[1]==="!"||jd.length)&&jd.push(Md),Md[1]==="important")break;if(jd.length){let[Md]=jd,Ld=md.indexOf(Md),Hd=jd[jd.length-1],Gd=[Md[2],Md[3]],Vd=[Hd[4],Hd[5]],Qd=["word",jd.map(mf=>mf[1]).join("")].concat(Gd,Vd);md.splice(Ld,jd.length,Qd)}let Fd=md.findIndex(Md=>fd.test(Md[1]));Fd>0&&([,kd]=md[Fd],md.splice(Fd,1));for(let Md of md.reverse())this.tokenizer.back(Md);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=Ad,kd&&(this.lastNode.important=!0,this.lastNode.raws.important=kd)}other(md){ld.bind(this)(md)||super.other(md)}rule(md){let
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let Kd=Vd(...Zd);return Kd.postcssPlugin=Gd,Kd.postcssVersion=new cd().version,Kd}let Yd;return Object.defineProperty(mf,"postcss",{get(){return Yd||(Yd=mf()),Yd}}),mf.process=function(Zd,Kd,bf){return Hd([mf(bf)]).process(Zd,Kd)},mf},Hd.stringify=dd,Hd.parse=kd,Hd.fromJSON=pd,Hd.list=jd,Hd.comment=Gd=>new vd(Gd),Hd.atRule=Gd=>new Ad(Gd),Hd.decl=Gd=>new od(Gd),Hd.rule=Gd=>new Fd(Gd),Hd.root=Gd=>new Md(Gd),Hd.document=Gd=>new fd(Gd),Hd.CssSyntaxError=nd,Hd.Declaration=od,Hd.Container=ud,Hd.Processor=cd,Hd.Document=fd,Hd.Comment=vd,Hd.Warning=md,Hd.AtRule=Ad,Hd.Result=Nd,Hd.Input=Id,Hd.Rule=Fd,Hd.Root=Md,Hd.Node=Ld,ld.registerPostcss(Hd),qa.exports=Hd,Hd.default=Hd}),Ho$1=y$3((Ra,qa)=>{var{Container:nd}=Zt$2(),od=class extends nd{constructor(ld){super(ld),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};qa.exports=od}),Jo$1=y$3((Ra,qa)=>{var nd=/[\t\n\f\r "#'()/;[\\\]{}]/g,od=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ld=/.[\r\n"'(/\\]/,ud=/[\da-f]/i,cd=/[\n\f\r]/g;qa.exports=function(dd,pd={}){let fd=dd.css.valueOf(),md=pd.ignoreErrors,vd,Ad,Nd,Id,kd,jd,Fd,Md,Ld,Hd=fd.length,Gd=0,Vd=[],Qd=[],mf;function Yd(){return Gd}function Zd(yf){throw dd.error("Unclosed "+yf,Gd)}function Kd(){return Qd.length===0&&Gd>=Hd}function bf(){let yf=1,xf=!1,Af=!1;for(;yf>0;)Ad+=1,fd.length<=Ad&&Zd("interpolation"),vd=fd.charCodeAt(Ad),Md=fd.charCodeAt(Ad+1),xf?!Af&&vd===xf?(xf=!1,Af=!1):vd===92?Af=!Af:Af&&(Af=!1):vd===39||vd===34?xf=vd:vd===125?yf-=1:vd===35&&Md===123&&(yf+=1)}function gf(yf){if(Qd.length)return Qd.pop();if(Gd>=Hd)return;let xf=yf?yf.ignoreUnclosed:!1;switch(vd=fd.charCodeAt(Gd),vd){case 10:case 32:case 9:case 13:case 12:{Ad=Gd;do Ad+=1,vd=fd.charCodeAt(Ad);while(vd===32||vd===10||vd===9||vd===13||vd===12);Ld=["space",fd.slice(Gd,Ad)],Gd=Ad-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Af=String.fromCharCode(vd);Ld=[Af,Af,Gd];break}case 44:{Ld=["word",",",Gd,Gd+1];break}case 40:{if(Fd=Vd.length?Vd.pop()[1]:"",Md=fd.charCodeAt(Gd+1),Fd==="url"&&Md!==39&&Md!==34){for(mf=1,jd=!1,Ad=Gd+1;Ad<=fd.length-1;){if(Md=fd.charCodeAt(Ad),Md===92)jd=!jd;else if(Md===40)mf+=1;else if(Md===41&&(mf-=1,mf===0))break;Ad+=1}Id=fd.slice(Gd,Ad+1),Ld=["brackets",Id,Gd,Ad],Gd=Ad}else Ad=fd.indexOf(")",Gd+1),Id=fd.slice(Gd,Ad+1),Ad===-1||ld.test(Id)?Ld=["(","(",Gd]:(Ld=["brackets",Id,Gd,Ad],Gd=Ad);break}case 39:case 34:{for(Nd=vd,Ad=Gd,jd=!1;Ad<Hd&&(Ad++,Ad===Hd&&Zd("string"),vd=fd.charCodeAt(Ad),Md=fd.charCodeAt(Ad+1),!(!jd&&vd===Nd));)vd===92?jd=!jd:jd?jd=!1:vd===35&&Md===123&&bf();Ld=["string",fd.slice(Gd,Ad+1),Gd,Ad],Gd=Ad;break}case 64:{nd.lastIndex=Gd+1,nd.test(fd),nd.lastIndex===0?Ad=fd.length-1:Ad=nd.lastIndex-2,Ld=["at-word",fd.slice(Gd,Ad+1),Gd,Ad],Gd=Ad;break}case 92:{for(Ad=Gd,kd=!0;fd.charCodeAt(Ad+1)===92;)Ad+=1,kd=!kd;if(vd=fd.charCodeAt(Ad+1),kd&&vd!==47&&vd!==32&&vd!==10&&vd!==9&&vd!==13&&vd!==12&&(Ad+=1,ud.test(fd.charAt(Ad)))){for(;ud.test(fd.charAt(Ad+1));)Ad+=1;fd.charCodeAt(Ad+1)===32&&(Ad+=1)}Ld=["word",fd.slice(Gd,Ad+1),Gd,Ad],Gd=Ad;break}default:Md=fd.charCodeAt(Gd+1),vd===35&&Md===123?(Ad=Gd,bf(),Id=fd.slice(Gd,Ad+1),Ld=["word",Id,Gd,Ad],Gd=Ad):vd===47&&Md===42?(Ad=fd.indexOf("*/",Gd+2)+1,Ad===0&&(md||xf?Ad=fd.length:Zd("comment")),Ld=["comment",fd.slice(Gd,Ad+1),Gd,Ad],Gd=Ad):vd===47&&Md===47?(cd.lastIndex=Gd+1,cd.test(fd),cd.lastIndex===0?Ad=fd.length-1:Ad=cd.lastIndex-2,Id=fd.slice(Gd,Ad+1),Ld=["comment",Id,Gd,Ad,"inline"],Gd=Ad):(od.lastIndex=Gd+1,od.test(fd),od.lastIndex===0?Ad=fd.length-1:Ad=od.lastIndex-2,Ld=["word",fd.slice(Gd,Ad+1),Gd,Ad],Vd.push(Ld),Gd=Ad);break}return Gd++,Ld}function Ef(yf){Qd.push(yf)}return{back:Ef,endOfFile:Kd,nextToken:gf,position:Yd}}}),Zo$1=y$3((Ra,qa)=>{var{Comment:nd}=Zt$2(),od=Ht$2(),ld=Ho$1(),ud=Jo$1(),cd=class extends od{atrule(dd){let pd=dd[1],fd=dd;for(;!this.tokenizer.endOfFile();){let md=this.tokenizer.nextToken();if(md[0]==="word"&&md[2]===fd[3]+1)pd+=md[1],fd=md;else{this.tokenizer.back(md);break}}super.atrule(["at-word",pd,dd[2],fd[3]])}comment(dd){if(dd[4]==="inline"){let p
`))break;vd[0]==="("?fd+=1:vd[0]===")"?fd-=1:fd===0&&vd[0]===":"&&(pd=!0)}if(!pd||md.trim()===""||/^[#:A-Za-z-]/.test(md))super.rule(dd);else{dd.pop();let vd=new ld;this.init(vd,dd[0][2]);let Ad;for(let Id=dd.length-1;Id>=0;Id--)if(dd[Id][0]!=="space"){Ad=dd[Id];break}if(Ad[3]){let Id=this.input.fromOffset(Ad[3]);vd.source.end={column:Id.col,line:Id.line,offset:Ad[3]+1}}else{let Id=this.input.fromOffset(Ad[2]);vd.source.end={column:Id.col,line:Id.line,offset:Ad[2]+1}}for(;dd[0][0]!=="word";)vd.raws.before+=dd.shift()[1];if(dd[0][2]){let Id=this.input.fromOffset(dd[0][2]);vd.source.start={column:Id.col,line:Id.line,offset:dd[0][2]}}for(vd.prop="";dd.length;){let Id=dd[0][0];if(Id===":"||Id==="space"||Id==="comment")break;vd.prop+=dd.shift()[1]}vd.raws.between="";let Nd;for(;dd.length;)if(Nd=dd.shift(),Nd[0]===":"){vd.raws.between+=Nd[1];break}else vd.raws.between+=Nd[1];(vd.prop[0]==="_"||vd.prop[0]==="*")&&(vd.raws.before+=vd.prop[0],vd.prop=vd.prop.slice(1)),vd.raws.between+=this.spacesAndCommentsFromStart(dd),this.precheckMissedSemicolon(dd);for(let Id=dd.length-1;Id>0;Id--){if(Nd=dd[Id],Nd[1]==="!important"){vd.important=!0;let kd=this.stringFrom(dd,Id);kd=this.spacesFromEnd(dd)+kd,kd!==" !important"&&(vd.raws.important=kd);break}else if(Nd[1]==="important"){let kd=dd.slice(0),jd="";for(let Fd=Id;Fd>0;Fd--){let Md=kd[Fd][0];if(jd.trim().indexOf("!")===0&&Md!=="space")break;jd=kd.pop()[1]+jd}jd.trim().indexOf("!")===0&&(vd.important=!0,vd.raws.important=jd,dd=kd)}if(Nd[0]!=="space"&&Nd[0]!=="comment")break}this.raw(vd,"value",dd),vd.value.includes(":")&&this.checkMissedSemicolon(dd),this.current=vd}}};qa.exports=cd}),ta=y$3((Ra,qa)=>{var{Input:nd}=Zt$2(),od=Zo$1();qa.exports=function(ld,ud){let cd=new nd(ld,ud),dd=new od(cd);return dd.parse(),dd.root}}),Os=y$3(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(nd){this.after=nd.after,this.before=nd.before,this.type=nd.type,this.value=nd.value,this.sourceIndex=nd.sourceIndex}Ra.default=qa}),As=y$3(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});var qa=Os(),nd=od(qa);function od(ud){return ud&&ud.__esModule?ud:{default:ud}}function ld(ud){var cd=this;this.constructor(ud),this.nodes=ud.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(dd){dd.parent=cd})}ld.prototype=Object.create(nd.default.prototype),ld.constructor=nd.default,ld.prototype.walk=function(ud,cd){for(var dd=typeof ud=="string"||ud instanceof RegExp,pd=dd?cd:ud,fd=typeof ud=="string"?new RegExp(ud):ud,md=0;md<this.nodes.length;md++){var vd=this.nodes[md],Ad=dd?fd.test(vd.type):!0;if(Ad&&pd&&pd(vd,md,this.nodes)===!1||vd.nodes&&vd.walk(ud,cd)===!1)return!1}return!0},ld.prototype.each=function(){for(var ud=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],cd=0;cd<this.nodes.length;cd++){var dd=this.nodes[cd];if(ud(dd,cd,this.nodes)===!1)return!1}return!0},Ra.default=ld}),aa=y$3(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.parseMediaFeature=cd,Ra.parseMediaQuery=dd,Ra.parseMediaList=pd;var qa=Os(),nd=ud(qa),od=As(),ld=ud(od);function ud(fd){return fd&&fd.__esModule?fd:{default:fd}}function cd(fd){var md=arguments.length<=1||arguments[1]===void 0?0:arguments[1],vd=[{mode:"normal",character:null}],Ad=[],Nd=0,Id="",kd=null,jd=null,Fd=md,Md=fd;fd[0]==="("&&fd[fd.length-1]===")"&&(Md=fd.substring(1,fd.length-1),Fd++);for(var Ld=0;Ld<Md.length;Ld++){var Hd=Md[Ld];if((Hd==="'"||Hd==='"')&&(vd[Nd].isCalculationEnabled===!0?(vd.push({mode:"string",isCalculationEnabled:!1,character:Hd}),Nd++):vd[Nd].mode==="string"&&vd[Nd].character===Hd&&Md[Ld-1]!=="\\"&&(vd.pop(),Nd--)),Hd==="{"?(vd.push({mode:"interpolation",isCalculationEnabled:!0}),Nd++):Hd==="}"&&(vd.pop(),Nd--),vd[Nd].mode==="normal"&&Hd===":"){var Gd=Md.substring(Ld+1);jd={type:"value",before:/^(\s*)/.exec(Gd)[1],after:/(\s*)$/.exec(Gd)[1],value:Gd.trim()},jd.sourceIndex=jd.before.length+L
`),Xf=Lf.length-1,Xf>0?(jf=vf+Xf,If=xf-Lf[Xf].length):(jf=vf,If=Tf),gf.push(["comment",ih,vf,Gf-Tf,jf,xf-If,Gf]),Tf=If,vf=jf,Gf=xf):(Zd.lastIndex=Gf+1,Zd.test(Ef),Zd.lastIndex===0?xf=Ef.length-1:xf=Zd.lastIndex-2,gf.push(["word",Ef.slice(Gf,xf+1),vf,Gf-Tf,vf,xf-Tf,Gf]),Gf=xf);break}Gf++}return gf}qa.exports=Ra.default}),tu$1=y$3((Ra,qa)=>{Ra.__esModule=!0;var nd=function(){function Tf(vf,Gf){for(var Jf=0;Jf<Gf.length;Jf++){var gh=Gf[Jf];gh.enumerable=gh.enumerable||!1,gh.configurable=!0,"value"in gh&&(gh.writable=!0),Object.defineProperty(vf,gh.key,gh)}}return function(vf,Gf,Jf){return Gf&&Tf(vf.prototype,Gf),Jf&&Tf(vf,Jf),vf}}(),od=qs(),ld=Uf(od),ud=Ls(),cd=Uf(ud),dd=Ds(),pd=Uf(dd),fd=ga(),md=Uf(fd),vd=xa(),Ad=Uf(vd),Nd=ka(),Id=Uf(Nd),kd=Sa(),jd=Uf(kd),Fd=Oa(),Md=Uf(Fd),Ld=Aa(),Hd=Uf(Ld),Gd=Pa(),Vd=Uf(Gd),Qd=Ia(),mf=Uf(Qd),Yd=La(),Zd=Uf(Yd),Kd=Ma(),bf=Uf(Kd),gf=Ua(),Ef=Uf(gf),yf=$a(),xf=Uf(yf),Af=Ya(),Lf=Uf(Af),Xf=Xa(),ih=Uf(Xf),Zf=D$2(),jf=If(Zf);function If(Tf){if(Tf&&Tf.__esModule)return Tf;var vf={};if(Tf!=null)for(var Gf in Tf)Object.prototype.hasOwnProperty.call(Tf,Gf)&&(vf[Gf]=Tf[Gf]);return vf.default=Tf,vf}function Uf(Tf){return Tf&&Tf.__esModule?Tf:{default:Tf}}function qf(Tf,vf){if(!(Tf instanceof vf))throw new TypeError("Cannot call a class as a function")}var Kf=function(){function Tf(vf){qf(this,Tf),this.input=vf,this.lossy=vf.options.lossless===!1,this.position=0,this.root=new md.default;var Gf=new Ad.default;return this.root.append(Gf),this.current=Gf,this.lossy?this.tokens=(0,ih.default)({safe:vf.safe,css:vf.css.trim()}):this.tokens=(0,ih.default)(vf),this.loop()}return Tf.prototype.attribute=function(){var vf="",Gf=void 0,Jf=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)vf+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~vf.indexOf("]")&&this.error("Expected a closing square bracket.");var gh=vf.split(/((?:[*~^$|]?=))([^]*)/),th=gh[0].split(/(\|)/g),Pf={operator:gh[1],value:gh[2],source:{start:{line:Jf[2],column:Jf[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:Jf[4]};if(th.length>1?(th[0]===""&&(th[0]=!0),Pf.attribute=this.parseValue(th[2]),Pf.namespace=this.parseNamespace(th[0])):Pf.attribute=this.parseValue(gh[0]),Gf=new Zd.default(Pf),gh[2]){var uh=gh[2].split(/(\s+i\s*?)$/),xh=uh[0].trim();Gf.value=this.lossy?xh:uh[0],uh[1]&&(Gf.insensitive=!0,this.lossy||(Gf.raws.insensitive=uh[1])),Gf.quoted=xh[0]==="'"||xh[0]==='"',Gf.raws.unquoted=Gf.quoted?xh.slice(1,-1):xh}this.newNode(Gf),this.position++},Tf.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var vf=new Ef.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"?(vf.spaces.before=this.parseSpace(this.currToken[1]),vf.source.start.line=this.nextToken[2],vf.source.start.column=this.nextToken[3],vf.source.end.column=this.nextToken[3],vf.source.end.line=this.nextToken[2],vf.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?vf.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?vf.value=this.currToken[1]:this.currToken[0]==="space"&&(vf.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(vf)},Tf.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var vf=new Ad.default;this.current.parent.append(vf),this.current=vf,this.position++},Tf.prototype.comment=function(){var vf=new jd.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(vf),this.position++},Tf.prototype.error=function(vf){throw new this.input.error(vf)},Tf.prototype.missingBackslash
`?(ud=1,cd+=1):ud+=1;return{line:cd,column:ud}}positionBy(od){let ld=this.source.start;if(Object(od).index)ld=this.positionInside(od.index);else if(Object(od).word){let ud=this.toString().indexOf(od.word);ud!==-1&&(ld=this.positionInside(ud))}return ld}}}),U$4=y$3((Ra,qa)=>{var nd=z$3(),od=class extends nd{constructor(ld){super(ld),this.nodes||(this.nodes=[])}push(ld){return ld.parent=this,this.nodes.push(ld),this}each(ld){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let ud=this.lastEach,cd,dd;if(this.indexes[ud]=0,!!this.nodes){for(;this.indexes[ud]<this.nodes.length&&(cd=this.indexes[ud],dd=ld(this.nodes[cd],cd),dd!==!1);)this.indexes[ud]+=1;return delete this.indexes[ud],dd}}walk(ld){return this.each((ud,cd)=>{let dd=ld(ud,cd);return dd!==!1&&ud.walk&&(dd=ud.walk(ld)),dd})}walkType(ld,ud){if(!ld||!ud)throw new Error("Parameters {type} and {callback} are required.");let cd=typeof ld=="function";return this.walk((dd,pd)=>{if(cd&&dd instanceof ld||!cd&&dd.type===ld)return ud.call(this,dd,pd)})}append(ld){return ld.parent=this,this.nodes.push(ld),this}prepend(ld){return ld.parent=this,this.nodes.unshift(ld),this}cleanRaws(ld){if(super.cleanRaws(ld),this.nodes)for(let ud of this.nodes)ud.cleanRaws(ld)}insertAfter(ld,ud){let cd=this.index(ld),dd;this.nodes.splice(cd+1,0,ud);for(let pd in this.indexes)dd=this.indexes[pd],cd<=dd&&(this.indexes[pd]=dd+this.nodes.length);return this}insertBefore(ld,ud){let cd=this.index(ld),dd;this.nodes.splice(cd,0,ud);for(let pd in this.indexes)dd=this.indexes[pd],cd<=dd&&(this.indexes[pd]=dd+this.nodes.length);return this}removeChild(ld){ld=this.index(ld),this.nodes[ld].parent=void 0,this.nodes.splice(ld,1);let ud;for(let cd in this.indexes)ud=this.indexes[cd],ud>=ld&&(this.indexes[cd]=ud-1);return this}removeAll(){for(let ld of this.nodes)ld.parent=void 0;return this.nodes=[],this}every(ld){return this.nodes.every(ld)}some(ld){return this.nodes.some(ld)}index(ld){return typeof ld=="number"?ld:this.nodes.indexOf(ld)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let ld=this.nodes.map(String).join("");return this.value&&(ld=this.value+ld),this.raws.before&&(ld=this.raws.before+ld),this.raws.after&&(ld+=this.raws.after),ld}};od.registerWalker=ld=>{let ud="walk"+ld.name;ud.lastIndexOf("s")!==ud.length-1&&(ud+="s"),!od.prototype[ud]&&(od.prototype[ud]=function(cd){return this.walkType(ld,cd)})},qa.exports=od}),uu$1=y$3((Ra,qa)=>{var nd=U$4();qa.exports=class extends nd{constructor(od){super(od),this.type="root"}}}),cu$1=y$3((Ra,qa)=>{var nd=U$4();qa.exports=class extends nd{constructor(od){super(od),this.type="value",this.unbalanced=0}}}),hu$1=y$3((Ra,qa)=>{var nd=U$4(),od=class extends nd{constructor(ld){super(ld),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};nd.registerWalker(od),qa.exports=od}),mu$1=y$3((Ra,qa)=>{var nd=U$4(),od=z$3(),ld=class extends od{constructor(ud){super(ud),this.type="colon"}};nd.registerWalker(ld),qa.exports=ld}),wu$1=y$3((Ra,qa)=>{var nd=U$4(),od=z$3(),ld=class extends od{constructor(ud){super(ud),this.type="comma"}};nd.registerWalker(ld),qa.exports=ld}),vu$1=y$3((Ra,qa)=>{var nd=U$4(),od=z$3(),ld=class extends od{constructor(ud){super(ud),this.type="comment",this.inline=Object(ud).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};nd.registerWalker(ld),qa.exports=ld}),_u$1=y$3((Ra,qa)=>{var nd=U$4(),od=class extends nd{constructor(ld){super(ld),this.type="func",this.unbalanced=-1}};nd.registerWalker(od),qa.exports=od}),Eu$1=y$3((Ra,qa)=>{var nd=U$4(),od=z$3(),ld=class extends od{constructor(ud){super(ud),this.type="number",this.unit=Object(ud).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};nd.registerWalker(ld),qa.exports=ld}),Tu$1=y$3((Ra,qa)=>{var nd=U$4(),od=z$3(),ld=class extends od{constructor(ud){super(u
`,kd+2);Ld=Ef!==-1?Ef-1:Ad}Qd=vd.slice(kd,Ld+1),Gd=Qd.split(`
`),Vd=Gd.length-1,Vd>0?(mf=Id+Vd,Yd=Ld-Gd[Vd].length):(mf=Id,Yd=Nd),md.push(["comment",Qd,Id,kd-Nd,mf,Ld-Yd,kd]),Nd=Yd,Id=mf,kd=Ld}else if(Md===35&&!ud.test(vd.slice(kd+1,kd+2)))Ld=kd+1,md.push(["#",vd.slice(kd,Ld),Id,kd-Nd,Id,Ld-Nd,kd]),kd=Ld-1;else if((Md===117||Md===85)&&vd.charCodeAt(kd+1)===43){Ld=kd+2;do Ld+=1,Md=vd.charCodeAt(Ld);while(Ld<Ad&&cd.test(vd.slice(Ld,Ld+1)));md.push(["unicoderange",vd.slice(kd,Ld),Id,kd-Nd,Id,Ld-Nd,kd]),kd=Ld-1}else if(Md===47)Ld=kd+1,md.push(["operator",vd.slice(kd,Ld),Id,kd-Nd,Id,Ld-Nd,kd]),kd=Ld-1;else{let Ef=od;if(Md>=48&&Md<=57&&(Ef=ld),Ef.lastIndex=kd+1,Ef.test(vd),Ef.lastIndex===0?Ld=vd.length-1:Ld=Ef.lastIndex-2,Ef===ld||Md===46){let yf=vd.charCodeAt(Ld),xf=vd.charCodeAt(Ld+1),Af=vd.charCodeAt(Ld+2);(yf===101||yf===69)&&(xf===45||xf===43)&&Af>=48&&Af<=57&&(ld.lastIndex=Ld+2,ld.test(vd),ld.lastIndex===0?Ld=vd.length-1:Ld=ld.lastIndex-2)}md.push(["word",vd.slice(kd,Ld+1),Id,kd-Nd,Id,Ld-Nd,kd]),kd=Ld}break}kd++}return md}}),$u$1=y$3((Ra,qa)=>{var nd=class extends Error{constructor(od){super(od),this.name=this.constructor.name,this.message=od||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(od).stack}};qa.exports=nd}),Vu$1=y$3((Ra,qa)=>{var nd=uu$1(),od=cu$1(),ld=hu$1(),ud=mu$1(),cd=wu$1(),dd=vu$1(),pd=_u$1(),fd=Eu$1(),md=Tu$1(),vd=Cu$1(),Ad=Nu$1(),Nd=Ru$1(),Id=qu$1(),kd=Uu$1(),jd=qs(),Fd=Ls(),Md=Ds(),Ld=$u$1();function Hd(Gd){return Gd.sort((Vd,Qd)=>Vd-Qd)}qa.exports=class{constructor(Gd,Vd){let Qd={loose:!1};this.cache=[],this.input=Gd,this.options=Object.assign({},Qd,Vd),this.position=0,this.unbalanced=0,this.root=new nd;let mf=new od;this.root.append(mf),this.current=mf,this.tokens=kd(Gd,this.options)}parse(){return this.loop()}colon(){let Gd=this.currToken;this.newNode(new ud({value:Gd[1],source:{start:{line:Gd[2],column:Gd[3]},end:{line:Gd[4],column:Gd[5]}},sourceIndex:Gd[6]})),this.position++}comma(){let Gd=this.currToken;this.newNode(new cd({value:Gd[1],source:{start:{line:Gd[2],column:Gd[3]},end:{line:Gd[4],column:Gd[5]}},sourceIndex:Gd[6]})),this.position++}comment(){let Gd=!1,Vd=this.currToken[1].replace(/\/\*|\*\//g,""),Qd;this.options.loose&&Vd.startsWith("//")&&(Vd=Vd.substring(2),Gd=!0),Qd=new dd({value:Vd,inline:Gd,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(Qd),this.position++}error(Gd,Vd){throw new Ld(Gd+` at line: ${Vd[2]}, column ${Vd[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 Gd=this.currToken[1],Vd;if(Gd==="+"||Gd==="-"){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 Vd=new md({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(Vd)}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"wo
Expected it to be 'string' or 'object'.`;if(Ve$2(Ra))throw new Error("doc is valid.");let nd=Object.prototype.toString.call(Ra);if(nd!=="[object Object]")return`Unexpected doc '${nd}'.`;let od=ml([...bt$2].map(ld=>`'${ld}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${od}.`}var Fr$1=class extends Error{constructor(nd){super(yl(nd));p_(this,"name","InvalidDocError");this.doc=nd}},$r$1=Fr$1,Zs=()=>{},_t$2=Zs;function q$4(Ra){return{type:we$4,contents:Ra}}function en$2(Ra,qa){return{type:ge$4,contents:qa,n:Ra}}function L$3(Ra,qa={}){return _t$2(qa.expandedStates),{type:ve$4,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function tn$1(Ra){return en$2({type:"root"},Ra)}function ue$3(Ra){return en$2(-1,Ra)}function Ge$2(Ra){return{type:xe$3,parts:Ra}}function kt$1(Ra,qa="",nd={}){return{type:oe$3,breakContents:Ra,flatContents:qa,groupId:nd.groupId}}var je$4={type:be$4},wl={type:K$3,hard:!0},A$1={type:K$3},M$3={type:K$3,soft:!0},E$3=[wl,je$4];function V$3(Ra,qa){let nd=[];for(let od=0;od<qa.length;od++)od!==0&&nd.push(Ra),nd.push(qa[od]);return nd}var gl=(Ra,qa,nd)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[nd<0?qa.length+nd:nd]:qa.at(nd)},G$4=gl;function vl(Ra,qa){if(typeof Ra=="string")return qa(Ra);let nd=new Map;return od(Ra);function od(ud){if(nd.has(ud))return nd.get(ud);let cd=ld(ud);return nd.set(ud,cd),cd}function ld(ud){switch(Ve$2(ud)){case Be$4:return qa(ud.map(od));case xe$3:return qa({...ud,parts:ud.parts.map(od)});case oe$3:return qa({...ud,breakContents:od(ud.breakContents),flatContents:od(ud.flatContents)});case ve$4:{let{expandedStates:cd,contents:dd}=ud;return cd?(cd=cd.map(od),dd=cd[0]):dd=od(dd),qa({...ud,contents:dd,expandedStates:cd})}case ge$4:case we$4:case $e$2:case ze$3:case We$2:return qa({...ud,contents:od(ud.contents)});case Me$3:case Ue$1:case Fe$3:case Ye$3:case K$3:case be$4:return qa(ud);default:throw new $r$1(ud)}}}function xl(Ra){return Ra.type===K$3&&!Ra.hard?Ra.soft?"":" ":Ra.type===oe$3?Ra.flatContents:Ra}function rn$2(Ra){return vl(Ra,xl)}function bl(Ra){return Array.isArray(Ra)&&Ra.length>0}var ee$3=bl,Et$1="'",sn$1='"';function _l(Ra,qa){let nd=qa===!0||qa===Et$1?Et$1:sn$1,od=nd===Et$1?sn$1:Et$1,ld=0,ud=0;for(let cd of Ra)cd===nd?ld++:cd===od&&ud++;return ld>ud?od:nd}var nn$2=_l;function kl(Ra,qa,nd){let od=qa==='"'?"'":'"',ld=_$4(!1,Ra,/\\(.)|(["'])/gsu,(ud,cd,dd)=>cd===od?cd:dd===qa?"\\"+dd:dd||(nd&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(cd)?cd:"\\"+cd));return qa+ld+qa}var on$1=kl;function El(Ra,qa){let nd=Ra.slice(1,-1),od=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":nn$2(nd,qa.singleQuote);return on$1(nd,od,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var St$2=El,Wr$1=class extends Error{constructor(nd,od,ld="type"){super(`Unexpected ${od} node ${ld}: ${JSON.stringify(nd[ld])}.`);p_(this,"name","UnexpectedNodeError");this.node=nd}},an$2=Wr$1;function Sl(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var _e$2=Sl,Tl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function un$2(Ra,qa,nd){if(_e$2(Ra)&&Ra.language==="yaml"&&delete qa.value,Ra.type==="css-comment"&&nd.type==="css-root"&&nd.nodes.length>0&&((nd.nodes[0]===Ra||_e$2(nd.nodes[0])&&nd.nodes[1]===Ra)&&(delete qa.text,/^\*\s*@(?:format|prettier)\s*$/u.test(Ra.text))||nd.type==="css-root"&&G$4(!1,nd.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(Ra.value)),Ra.type==="selector-combinator"&&(qa.value=_$4(!1,qa.value,/\s+/gu," ")),Ra.type==="media-feature"&&(qa.value=_$4(!1,qa.value," ","")),(Ra.type==="value-word"&&(Ra.isColor&&Ra.isHex||["initial","inherit","unset","revert"].includes(Ra.value.toLowerCase()))||Ra.type==="media-feature"||Ra.type==="
`,nd)+1;return nd+Ra.column}var zr$1=Il;function Tt$2(Ra){return(qa,nd,od)=>{let ld=!!(od!=null&&od.backwards);if(nd===!1)return!1;let{length:ud}=qa,cd=nd;for(;cd>=0&&cd<ud;){let dd=qa.charAt(cd);if(Ra instanceof RegExp){if(!Ra.test(dd))return cd}else if(!Ra.includes(dd))return cd;ld?cd--:cd++}return cd===-1||cd===ud?cd:!1}}var Ot$2=Tt$2(" "),yn$2=Tt$2(",; "),Ct$1=Tt$2(/[^\n\r]/u);function wn$1(Ra,qa){var nd,od,ld;if(typeof((od=(nd=Ra.source)==null?void 0:nd.start)==null?void 0:od.offset)=="number")return Ra.source.start.offset;if(typeof Ra.sourceIndex=="number")return Ra.sourceIndex;if((ld=Ra.source)!=null&&ld.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 nd,od;if(Ra.type==="css-comment"&&Ra.inline)return Ct$1(qa,Ra.source.startOffset);if(typeof((od=(nd=Ra.source)==null?void 0:nd.end)==null?void 0:od.offset)=="number")return Ra.source.end.offset;if(Ra.source){if(Ra.source.end)return zr$1(Ra.source.end,qa);if(ee$3(Ra.nodes))return Vr$1(G$4(!1,Ra.nodes,-1),qa)}return null}function Gr$1(Ra,qa){Ra.source&&(Ra.source.startOffset=wn$1(Ra,qa),Ra.source.endOffset=Vr$1(Ra,qa));for(let nd in Ra){let od=Ra[nd];nd==="source"||!od||typeof od!="object"||(od.type==="value-root"||od.type==="value-unknown"?gn$2(od,ql(Ra),od.text||od.value):Gr$1(od,qa))}}function gn$2(Ra,qa,nd){Ra.source&&(Ra.source.startOffset=wn$1(Ra,nd)+qa,Ra.source.endOffset=Vr$1(Ra,nd)+qa);for(let od in Ra){let ld=Ra[od];od==="source"||!ld||typeof ld!="object"||gn$2(ld,qa,nd)}}function ql(Ra){var qa;let nd=Ra.source.startOffset;return typeof Ra.prop=="string"&&(nd+=Ra.prop.length),Ra.type==="css-atrule"&&typeof Ra.name=="string"&&(nd+=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"&&(nd+=Ra.raws.between.length),nd}function vn$1(Ra){let qa="initial",nd="initial",od,ld=!1,ud=[];for(let cd=0;cd<Ra.length;cd++){let dd=Ra[cd];switch(qa){case"initial":if(dd==="'"){qa="single-quotes";continue}if(dd==='"'){qa="double-quotes";continue}if((dd==="u"||dd==="U")&&Ra.slice(cd,cd+4).toLowerCase()==="url("){qa="url",cd+=3;continue}if(dd==="*"&&Ra[cd-1]==="/"){qa="comment-block";continue}if(dd==="/"&&Ra[cd-1]==="/"){qa="comment-inline",od=cd-1;continue}continue;case"single-quotes":if(dd==="'"&&Ra[cd-1]!=="\\"&&(qa=nd,nd="initial"),dd===`
`||dd==="\r")return Ra;continue;case"double-quotes":if(dd==='"'&&Ra[cd-1]!=="\\"&&(qa=nd,nd="initial"),dd===`
`||dd==="\r")return Ra;continue;case"url":if(dd===")"&&(qa="initial"),dd===`
`||dd==="\r")return Ra;if(dd==="'"){qa="single-quotes",nd="url";continue}if(dd==='"'){qa="double-quotes",nd="url";continue}continue;case"comment-block":dd==="/"&&Ra[cd-1]==="*"&&(qa="initial");continue;case"comment-inline":(dd==='"'||dd==="'"||dd==="*")&&(ld=!0),(dd===`
`||dd==="\r")&&(ld&&ud.push([od,cd]),qa="initial",ld=!1);continue}}for(let[cd,dd]of ud)Ra=Ra.slice(0,cd)+_$4(!1,Ra.slice(cd,dd),/["'*]/gu," ")+Ra.slice(dd);return Ra}function N$3(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.startOffset}function P$4(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.endOffset}var Ll=/\*\/$/,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$1=/(?:^|\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$1(Ra){let qa=Ra.match(kn$1),nd=qa==null?void 0:qa[0];return nd==null?Ra:Ra.slice(nd.length)}function On$1(Ra){let qa=`
`;Ra=_$4(!1,Ra.replace(Dl,"").replace(Ll,""),Ul,"$1");let nd="";for(;nd!==Ra;)nd=Ra,Ra=_$4(!1,Ra,Bl,`${qa}$1 $2${qa}`);Ra=Ra.replace(xn$1,"").trimEnd();let od=Object.create(null),ld=_$4(!1,Ra,bn$1,"").replace(xn$1,"").trimEnd(),ud;for(;ud=bn$1.exec(Ra);){let cd=_$4(!1,ud[2],Ml,"");if(typeof od[ud[1]]=="string"||Array.isArray(od[ud[1]])){let dd=od[ud[1]];od[ud[1]]=[...En$1,...Array.isArray(dd)?dd:[dd],cd]}else od[ud[1]]=cd}return{comments:ld,pragmas:od}}function Cn$1({comments:Ra="",pragmas:qa={}}){let nd=`
`,od="/**",ld=" *",ud=" */",cd=Object.keys(qa),dd=cd.flatMap(fd=>_n$1(fd,qa[fd])).map(fd=>`${ld} ${fd}${nd}`).join("");if(!Ra){if(cd.length===0)return"";if(cd.length===1&&!Array.isArray(qa[cd[0]])){let fd=qa[cd[0]];return`${od} ${_n$1(cd[0],fd)[0]}${ud}`}}let pd=Ra.split(nd).map(fd=>`${ld} ${fd}`).join(nd)+nd;return od+nd+(Ra?pd:"")+(Ra&&cd.length>0?ld+nd:"")+dd+ud}function _n$1(Ra,qa){return[...En$1,...Array.isArray(qa)?qa:[qa]].map(nd=>`@${Ra} ${nd}`.trim())}function Fl(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var An$1=Fl;function Nn$1(Ra){let qa=An$1(Ra);qa&&(Ra=Ra.slice(qa.length+1));let nd=Sn$1(Ra),{pragmas:od,comments:ld}=On$1(nd);return{shebang:qa,text:Ra,pragmas:od,comments:ld}}function Pn$1(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:nd,pragmas:od,comments:ld}=Nn$1(Ra),ud=Tn$1(nd),cd=Cn$1({pragmas:{format:"",...od},comments:ld.trimStart()});return(qa?`${qa}
`:"")+cd+(ud.startsWith(`
`)?`
`:`
`)+ud}var Qe$2=3;function $l(Ra){let qa=Ra.slice(0,Qe$2);if(qa!=="---"&&qa!=="+++")return;let nd=Ra.indexOf(`
`,Qe$2);if(nd===-1)return;let od=Ra.slice(Qe$2,nd).trim(),ld=Ra.indexOf(`
${qa}`,nd),ud=od;if(ud||(ud=qa==="+++"?"toml":"yaml"),ld===-1&&qa==="---"&&ud==="yaml"&&(ld=Ra.indexOf(`
...`,nd)),ld===-1)return;let cd=ld+1+Qe$2,dd=Ra.charAt(cd+1);if(!/\s?/u.test(dd))return;let pd=Ra.slice(0,cd);return{type:"front-matter",language:ud,explicitLanguage:od,value:Ra.slice(nd+1,ld),startDelimiter:qa,endDelimiter:pd.slice(-Qe$2),raw:pd}}function Wl(Ra){let qa=$l(Ra);if(!qa)return{content:Ra};let{raw:nd}=qa;return{frontMatter:qa,content:_$4(!1,nd,/[^\n]/gu," ")+Ra.slice(nd.length)}}var Je$2=Wl;function In(Ra){return Pn$1(Je$2(Ra).content)}function qn$1(Ra){let{frontMatter:qa,content:nd}=Je$2(Ra);return(qa?qa.raw+`
`:"")+Rn(nd)}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,nd;return(nd=(qa=Ra.findAncestor(od=>od.type==="css-decl"))==null?void 0:qa.prop)==null?void 0:nd.toLowerCase()}var zl=new Set(["initial","inherit","unset","revert"]);function Dn$1(Ra){return zl.has(Ra.toLowerCase())}function Mn(Ra,qa){var nd;let od=Ra.findAncestor(ld=>ld.type==="css-atrule");return((nd=od==null?void 0:od.name)==null?void 0:nd.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(qa.toLowerCase())}function te$3(Ra){return Ra.includes("$")||Ra.includes("@")||Ra.includes("#")||Ra.startsWith("%")||Ra.startsWith("--")||Ra.startsWith(":--")||Ra.includes("(")&&Ra.includes(")")?Ra:Ra.toLowerCase()}function ke$4(Ra,qa){var nd;let od=Ra.findAncestor(ld=>ld.type==="value-func");return((nd=od==null?void 0:od.value)==null?void 0:nd.toLowerCase())===qa}function Bn$1(Ra){var qa;let nd=Ra.findAncestor(ld=>ld.type==="css-rule"),od=(qa=nd==null?void 0:nd.raws)==null?void 0:qa.selector;return od&&(od.startsWith(":import")||od.startsWith(":export"))}function Ee$4(Ra,qa){let nd=Array.isArray(qa)?qa:[qa],od=Ra.findAncestor(ld=>ld.type==="css-atrule");return od&&nd.includes(od.name.toLowerCase())}function Un$1(Ra){var qa;let{node:nd}=Ra;return nd.groups[0].value==="url"&&nd.groups.length===2&&((qa=Ra.findAncestor(od=>od.type==="css-atrule"))==null?void 0:qa.name)==="import"}function Fn$1(Ra){return Ra.type==="value-func"&&Ra.value.toLowerCase()==="url"}function $n$1(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(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$1(Ra){return Ra.type==="value-operator"&&Ra.value==="*"}function Xe$2(Ra){return Ra.type==="value-operator"&&Ra.value==="/"}function Q$4(Ra){return Ra.type==="value-operator"&&Ra.value==="+"}function le$3(Ra){return Ra.type==="value-operator"&&Ra.value==="-"}function Vl(Ra){return Ra.type==="value-operator"&&Ra.value==="%"}function Nt$2(Ra){return At$1(Ra)||Xe$2(Ra)||Q$4(Ra)||le$3(Ra)||Vl(Ra)}function Gn$1(Ra){return Ra.type==="value-word"&&["==","!="].includes(Ra.value)}function jn(Ra){return Ra.type==="value-word"&&["<",">","<=",">="].includes(Ra.value)}function Ze$2(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$1(Ra){var qa,nd;return((qa=Ra.value)==null?void 0:qa.type)==="value-root"&&((nd=Ra.value.group)==null?void 0:nd.type)==="value-value"&&Ra.prop.toLowerCase()==="composes"}function Jn$1(Ra){var qa,nd,od;return((od=(nd=(qa=Ra.value)==null?void 0:qa.group)==null?void 0:nd.group)==null?void 0:od.type)==="value-paren_group"&&Ra.value.group.group.open!==null&&Ra.value.group.group.close!==null}function ce$4(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.before)===""}function Rt$2(Ra){var qa,nd;return Ra.type==="value-comma_group"&&((nd=(qa=Ra.groups)==null?void 0:qa[1])==null?void 0:nd.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 nd;if(qa.parser!=="scss")return!1;let{node:od}=Ra;if(od.groups.length===0)return!1;let ld=Ra.grandparent;if(!jr$1(od)&&!(ld&&jr$1(ld)))return!1;let ud=Ra.findAncestor(cd=>cd.type==="css-decl");return!!
`)return qa-2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa-1}else{if(ld==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa+1}return qa}var Dt$1=Xl;function Zl(Ra,qa,nd={}){let od=Ot$2(Ra,nd.backwards?qa-1:qa,nd),ld=Dt$1(Ra,od,nd);return od!==ld}var Mt$2=Zl;function ec(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let nd=qa+2;nd<Ra.length;++nd)if(Ra.charAt(nd)==="*"&&Ra.charAt(nd+1)==="/")return nd+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$1=tc;function rc(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=yn$2(Ra,od),od=ui$1(Ra,od),od=Ot$2(Ra,od);return od=li$1(Ra,od),od=Dt$1(Ra,od),od!==!1&&Mt$2(Ra,od)}var Bt$2=rc;function sc({node:Ra,parent:qa},nd){return!!(Ra.source&&nd.originalText.slice(N$3(Ra),N$3(qa.close)).trimEnd().endsWith(","))}function nc(Ra,qa){return $n$1(Ra.grandparent)&&sc(Ra,qa)?",":Ra.node.type!=="value-comment"&&!(Ra.node.type==="value-comma_group"&&Ra.node.groups.every(nd=>nd.type==="value-comment"))&&ai$1(qa)&&Ra.callParent(()=>Kr$1(Ra,qa))?kt$1(","):""}function ci$1(Ra,qa,nd){let{node:od,parent:ld}=Ra,ud=Ra.map(({node:Nd})=>typeof Nd=="string"?Nd:nd(),"groups");if(ld&&Fn$1(ld)&&(od.groups.length===1||od.groups.length>0&&od.groups[0].type==="value-comma_group"&&od.groups[0].groups.length>0&&od.groups[0].groups[0].type==="value-word"&&od.groups[0].groups[0].value.startsWith("data:")))return[od.open?nd("open"):"",V$3(",",ud),od.close?nd("close"):""];if(!od.open){let Nd=es(Ra),Id=V$3([",",Nd?E$3:A$1],ud);return q$4(Nd?[E$3,Id]:L$3(Ge$2(Id)))}let cd=Ra.map(({node:Nd,isLast:Id,index:kd})=>{var jd;let Fd=ud[kd];if(Rt$2(Nd)&&Nd.type==="value-comma_group"&&Nd.groups&&Nd.groups[0].type!=="value-paren_group"&&((jd=Nd.groups[2])==null?void 0:jd.type)==="value-paren_group"){let{parts:Ld}=Fd.contents.contents;Ld[1]=L$3(Ld[1]),Fd=L$3(ue$3(Fd))}let Md=[Fd,Id?nc(Ra,qa):","];if(!Id&&Nd.type==="value-comma_group"&&ee$3(Nd.groups)){let Ld=G$4(!1,Nd.groups,-1);!Ld.source&&Ld.close&&(Ld=Ld.close),Ld.source&&Bt$2(qa.originalText,P$4(Ld))&&Md.push(E$3)}return Md},"groups"),dd=Xn$1(od,ld),pd=ti$1(od,ld),fd=Kr$1(Ra,qa),md=pd||fd&&!dd,vd=pd||dd,Ad=L$3([od.open?nd("open"):"",q$4([M$3,V$3(A$1,cd)]),M$3,od.close?nd("close"):""],{shouldBreak:md});return vd?ue$3(Ad):Ad}function es(Ra){return Ra.match(qa=>qa.type==="value-paren_group"&&!qa.open&&qa.groups.some(nd=>nd.type==="value-comma_group"),(qa,nd)=>nd==="group"&&qa.type==="value-value",(qa,nd)=>nd==="group"&&qa.type==="value-root",(qa,nd)=>nd==="value"&&(qa.type==="css-decl"&&!qa.prop.startsWith("--")||qa.type==="css-atrule"&&qa.variable))}function ic(Ra,qa,nd){let od=[];return Ra.each(()=>{let{node:ld,previous:ud}=Ra;if((ud==null?void 0:ud.type)==="css-comment"&&ud.text.trim()==="prettier-ignore"?od.push(qa.originalText.slice(N$3(ld),P$4(ld))):od.push(nd()),Ra.isLast)return;let{next:cd}=Ra;cd.type==="css-comment"&&!Mt$2(qa.originalText,N$3(cd),{backwards:!0})&&!_e$2(ld)||cd.type==="css-atrule"&&cd.name==="else"&&ld.type!=="css-comment"?od.push(" "):(od.push(qa.__isHTMLStyleAttribute?A$1:E$3),Bt$2(qa.originalText,P$4(ld))&&!_e$2(ld)&&od.push(E$3))},"nodes"),od}var Te$3=ic;function oc(Ra,qa,nd){var od,ld,ud,cd,dd,pd;let{node:fd}=Ra;switch(fd.type){case"front-matter":return[fd.raw,E$3];case"css-root":{let md=Te$3(Ra,qa,nd),vd=fd.raws.after.trim();return vd.startsWith(";")&&(vd=vd.slice(1).trim()),[fd.frontMatter?[nd("frontMatter"),E$3]:"",md,vd?` ${vd}`:"",fd.nodes.length>0?E$3:""]}case"css-comment":{let md=fd.inline||fd.raws.inline,vd=qa.originalText.slice(N$3(fd),P$4(fd));return md?vd.trimEnd():vd}case"css-rule":return[nd("selector"),fd.important?" !important":"",fd.nodes?[((od=fd.selector)==null?void 0:od.type)==="selector-unknown"&&Se$4(fd.selector.value)?A$1:fd.selector?" ":"","{",fd.nodes.length>0?q$4([E$3,Te$3(Ra,qa,nd)]):"",E$3,"}",Wn(fd)?";":""]:";"];case"css-decl":{let md=Ra.parent,{between:vd}=fd.raws,Ad=vd.trim(),Nd=Ad===":",Id=typeof fd.value=="string"&&/^ *$/u.test(fd.value),kd=typeof fd.value=="string"?fd.value:nd("value");return kd=Qn$1(fd)?rn$2(kd):kd,!Nd&&Se$4(Ad)&&!((ud=(ld=fd.value)==null?void 0:ld.group)!=null&&ud.
`,Gd(Hd.gutter,xf.replace(/\d/g," "))," ",ih,Gd(Hd.marker,"^").repeat(Zf)].join(""),Lf&&Fd.message&&(Xf+=" "+Gd(Hd.message,Fd.message))}return[Gd(Hd.marker,">"),Gd(Hd.gutter,xf),gf.length>0?` ${gf}`:"",Xf].join("")}else return` ${Gd(Hd.gutter,xf)}${gf.length>0?` ${gf}`:""}`}).join(`
`);return Fd.message&&!Zd&&(bf=`${" ".repeat(Kd+1)}${Fd.message}
${bf}`),Md?Ld.reset(bf):bf}function Id(kd,jd,Fd,Md={}){if(!fd){fd=!0;let Ld="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let Hd=new Error(Ld);Hd.name="DeprecationWarning",console.warn(new Error(Ld))}}return Fd=Math.max(Fd,0),Nd(kd,{start:{column:Fd,line:jd}},Md)}}),ir={};We$1(ir,{__debug:()=>di,check:()=>fi,doc:()=>nr,format:()=>gu,formatWithCursor:()=>Cu,getSupportInfo:()=>pi$2,util:()=>or,version:()=>fu});var Ou=(Ra,qa,nd,od)=>{if(!(Ra&&qa==null))return qa.replaceAll?qa.replaceAll(nd,od):nd.global?qa.replace(nd,od):qa.split(nd).join(od)},ne$3=Ou;function Z$3(){}Z$3.prototype={diff:function(Ra,qa){var nd,od=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ld=od.callback;typeof od=="function"&&(ld=od,od={}),this.options=od;var ud=this;function cd(Ld){return ld?(setTimeout(function(){ld(void 0,Ld)},0),!0):Ld}Ra=this.castInput(Ra),qa=this.castInput(qa),Ra=this.removeEmpty(this.tokenize(Ra)),qa=this.removeEmpty(this.tokenize(qa));var dd=qa.length,pd=Ra.length,fd=1,md=dd+pd;od.maxEditLength&&(md=Math.min(md,od.maxEditLength));var vd=(nd=od.timeout)!==null&&nd!==void 0?nd:1/0,Ad=Date.now()+vd,Nd=[{oldPos:-1,lastComponent:void 0}],Id=this.extractCommon(Nd[0],qa,Ra,0);if(Nd[0].oldPos+1>=pd&&Id+1>=dd)return cd([{value:this.join(qa),count:qa.length}]);var kd=-1/0,jd=1/0;function Fd(){for(var Ld=Math.max(kd,-fd);Ld<=Math.min(jd,fd);Ld+=2){var Hd=void 0,Gd=Nd[Ld-1],Vd=Nd[Ld+1];Gd&&(Nd[Ld-1]=void 0);var Qd=!1;if(Vd){var mf=Vd.oldPos-Ld;Qd=Vd&&0<=mf&&mf<dd}var Yd=Gd&&Gd.oldPos+1<pd;if(!Qd&&!Yd){Nd[Ld]=void 0;continue}if(!Yd||Qd&&Gd.oldPos+1<Vd.oldPos?Hd=ud.addToPath(Vd,!0,void 0,0):Hd=ud.addToPath(Gd,void 0,!0,1),Id=ud.extractCommon(Hd,qa,Ra,Ld),Hd.oldPos+1>=pd&&Id+1>=dd)return cd(Su(ud,Hd.lastComponent,qa,Ra,ud.useLongestToken));Nd[Ld]=Hd,Hd.oldPos+1>=pd&&(jd=Math.min(jd,Ld-1)),Id+1>=dd&&(kd=Math.max(kd,Ld+1))}fd++}if(ld)(function Ld(){setTimeout(function(){if(fd>md||Date.now()>Ad)return ld();Fd()||Ld()},0)})();else for(;fd<=md&&Date.now()<=Ad;){var Md=Fd();if(Md)return Md}},addToPath:function(Ra,qa,nd,od){var ld=Ra.lastComponent;return ld&&ld.added===qa&&ld.removed===nd?{oldPos:Ra.oldPos+od,lastComponent:{count:ld.count+1,added:qa,removed:nd,previousComponent:ld.previousComponent}}:{oldPos:Ra.oldPos+od,lastComponent:{count:1,added:qa,removed:nd,previousComponent:ld}}},extractCommon:function(Ra,qa,nd,od){for(var ld=qa.length,ud=nd.length,cd=Ra.oldPos,dd=cd-od,pd=0;dd+1<ld&&cd+1<ud&&this.equals(qa[dd+1],nd[cd+1]);)dd++,cd++,pd++;return pd&&(Ra.lastComponent={count:pd,previousComponent:Ra.lastComponent}),Ra.oldPos=cd,dd},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=[],nd=0;nd<Ra.length;nd++)Ra[nd]&&qa.push(Ra[nd]);return qa},castInput:function(Ra){return Ra},tokenize:function(Ra){return Ra.split("")},join:function(Ra){return Ra.join("")}};function Su(Ra,qa,nd,od,ld){for(var ud=[],cd;qa;)ud.push(qa),cd=qa.previousComponent,delete qa.previousComponent,qa=cd;ud.reverse();for(var dd=0,pd=ud.length,fd=0,md=0;dd<pd;dd++){var vd=ud[dd];if(vd.removed){if(vd.value=Ra.join(od.slice(md,md+vd.count)),md+=vd.count,dd&&ud[dd-1].added){var Ad=ud[dd-1];ud[dd-1]=ud[dd],ud[dd]=Ad}}else{if(!vd.added&&ld){var Nd=nd.slice(fd,fd+vd.count);Nd=Nd.map(function(kd,jd){var Fd=od[md+jd];return Fd.length>kd.length?Fd:kd}),vd.value=Ra.join(Nd)}else vd.value=Ra.join(nd.slice(fd,fd+vd.count));fd+=vd.count,vd.added||(md+=vd.count)}}var Id=ud[pd-1];return pd>1&&typeof Id.value=="string"&&(Id.added||Id.removed)&&Ra.equals("",Id.value)&&(ud[pd-2].value+=Id.value,ud.pop()),ud}var lr=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,cr=/\S/,fr=new Z$3;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)/),nd=0;nd<qa.length-1;nd++)!qa[nd+1]&&qa[nd+2]&&lr.test
`));var qa=[],nd=Ra.split(/(\n|\r\n)/);nd[nd.length-1]||nd.pop();for(var od=0;od<nd.length;od++){var ld=nd[od];od%2&&!this.options.newlineIsToken?qa[qa.length-1]+=ld:(this.options.ignoreWhitespace&&(ld=ld.trim()),qa.push(ld))}return qa};var Nu=new Z$3;Nu.tokenize=function(Ra){return Ra.split(/(\S.+?[.!?])(?=\s+|$)/)};var Tu=new Z$3;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$3=new Z$3;Ae$3.useLongestToken=!0;Ae$3.tokenize=pr.tokenize;Ae$3.castInput=function(Ra){var qa=this.options,nd=qa.undefinedReplacement,od=qa.stringifyReplacer,ld=od===void 0?function(ud,cd){return typeof cd>"u"?nd:cd}:od;return typeof Ra=="string"?Ra:JSON.stringify(Bt$1(Ra,null,null,ld),ld," ")};Ae$3.equals=function(Ra,qa){return Z$3.prototype.equals.call(Ae$3,Ra.replace(/,([\r\n])/g,"$1"),qa.replace(/,([\r\n])/g,"$1"))};function Bt$1(Ra,qa,nd,od,ld){qa=qa||[],nd=nd||[],od&&(Ra=od(ld,Ra));var ud;for(ud=0;ud<qa.length;ud+=1)if(qa[ud]===Ra)return nd[ud];var cd;if(ku.call(Ra)==="[object Array]"){for(qa.push(Ra),cd=new Array(Ra.length),nd.push(cd),ud=0;ud<Ra.length;ud+=1)cd[ud]=Bt$1(Ra[ud],qa,nd,od,ld);return qa.pop(),nd.pop(),cd}if(Ra&&Ra.toJSON&&(Ra=Ra.toJSON()),$e$1(Ra)==="object"&&Ra!==null){qa.push(Ra),cd={},nd.push(cd);var dd=[],pd;for(pd in Ra)Ra.hasOwnProperty(pd)&&dd.push(pd);for(dd.sort(),ud=0;ud<dd.length;ud+=1)pd=dd[ud],cd[pd]=Bt$1(Ra[pd],qa,nd,od,pd);qa.pop(),nd.pop()}else cd=Ra;return cd}var Ve$1=new Z$3;Ve$1.tokenize=function(Ra){return Ra.slice()};Ve$1.join=Ve$1.removeEmpty=function(Ra){return Ra};function dr(Ra,qa,nd){return Ve$1.diff(Ra,qa,nd)}function Fr(Ra){let qa=Ra.indexOf("\r");return qa>=0?Ra.charAt(qa+1)===`
`?"crlf":"cr":"lf"}function Be$3(Ra){switch(Ra){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function wt$1(Ra,qa){let nd;switch(qa){case`
`:nd=/\n/gu;break;case"\r":nd=/\r/gu;break;case`\r
`:nd=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(qa)}.`)}let od=Ra.match(nd);return od?od.length:0}function mr(Ra){return ne$3(!1,Ra,/\r\n?/gu,`
`)}var U$3="string",W$3="array",z$2="cursor",L$2="indent",P$3="align",I$3="trim",x$3="group",S$1="fill",_$3="if-break",R$4="indent-if-break",Y$2="line-suffix",j$2="line-suffix-boundary",B$3="line",N$2="label",b$1="break-parent",Ue=new Set([z$2,L$2,P$3,I$3,x$3,S$1,_$3,R$4,Y$2,j$2,B$3,N$2,b$1]);function Lu(Ra){if(typeof Ra=="string")return U$3;if(Array.isArray(Ra))return W$3;if(!Ra)return;let{type:qa}=Ra;if(Ue.has(qa))return qa}var G$3=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$3(Ra))throw new Error("doc is valid.");let nd=Object.prototype.toString.call(Ra);if(nd!=="[object Object]")return`Unexpected doc '${nd}'.`;let od=Pu([...Ue].map(ld=>`'${ld}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${od}.`}var xt$1=class extends Error{constructor(nd){super(Iu(nd));p_(this,"name","InvalidDocError");this.doc=nd}},Q$3=xt$1,Er={};function Ru(Ra,qa,nd,od){let ld=[Ra];for(;ld.length>0;){let ud=ld.pop();if(ud===Er){nd(ld.pop());continue}nd&&ld.push(ud,Er);let cd=G$3(ud);if(!cd)throw new Q$3(ud);if((qa==null?void 0:qa(ud))!==!1)switch(cd){case W$3:case S$1:{let dd=cd===W$3?ud:ud.parts;for(let pd=dd.length,fd=pd-1;fd>=0;--fd)ld.push(dd[fd]);break}case _$3:ld.push(ud.flatContents,ud.breakContents);break;case x$3:if(od&&ud.expandedStates)for(let dd=ud.expandedStates.length,pd=dd-1;pd>=0;--pd)ld.push(ud.expandedStates[pd]);else ld.push(ud.contents);break;case P$3:case L$2:case R$4:case N$2:case Y$2:ld.push(ud.contents);break;case U$3:case z$2:case I$3:case j$2:case B$3:case b$1:break;default:throw new Q$3(ud)}}}var we$3=Ru,hr$2=()=>{},ze$2=hr$2;function De$2(Ra){return{type:L$2,contents:Ra}}function ae$2(Ra,qa){return{type:P$3,contents:qa,n:Ra}}function _t$1(Ra,qa={}){return ze$2(qa.expandedStates),{type:x$3,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function Cr(Ra){return ae$2(Number.NEGATIVE_INFINITY,Ra)}function gr(Ra){return ae$2({type:"root"},Ra)}function yr(Ra){return ae$2(-1,Ra)}function Ar(Ra,qa){return _t$1(Ra[0],{...qa,expandedStates:Ra})}function Ge$1(Ra){return{type:S$1,parts:Ra}}function Br(Ra,qa="",nd={}){return{type:_$3,breakContents:Ra,flatContents:qa,groupId:nd.groupId}}function wr(Ra,qa){return{type:R$4,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function xe$2(Ra){return{type:Y$2,contents:Ra}}var xr={type:j$2},de$2={type:b$1},_r={type:I$3},_e$1={type:B$3,hard:!0},vt$2={type:B$3,hard:!0,literal:!0},Ke$2={type:B$3},vr={type:B$3,soft:!0},q$3=[_e$1,de$2],qe=[vt$2,de$2],ve$3={type:z$2};function be$3(Ra,qa){let nd=[];for(let od=0;od<qa.length;od++)od!==0&&nd.push(Ra),nd.push(qa[od]);return nd}function Je$1(Ra,qa,nd){let od=Ra;if(qa>0){for(let ld=0;ld<Math.floor(qa/nd);++ld)od=De$2(od);od=ae$2(qa%nd,od),od=ae$2(Number.NEGATIVE_INFINITY,od)}return od}function br$2(Ra,qa){return Ra?{type:N$2,label:Ra,contents:qa}:qa}function ee$2(Ra){var qa;if(!Ra)return"";if(Array.isArray(Ra)){let nd=[];for(let od of Ra)if(Array.isArray(od))nd.push(...ee$2(od));else{let ld=ee$2(od);ld!==""&&nd.push(ld)}return nd}return Ra.type===_$3?{...Ra,breakContents:ee$2(Ra.breakContents),flatContents:ee$2(Ra.flatContents)}:Ra.type===x$3?{...Ra,contents:ee$2(Ra.contents),expandedStates:(qa=Ra.expandedStates)==null?void 0:qa.map(ee$2)}:Ra.type===S$1?{type:"fill",parts:Ra.parts.map(ee$2)}:Ra.contents?{...Ra,contents:ee$2(Ra.contents)}:Ra}function Or(Ra){let qa=Object.create(null),nd=new Set;return od(ee$2(Ra));function od(ud,cd,dd){var pd,fd;if(typeof ud=="string")return JSON.stringify(ud);if(Array.isArray(ud)){let md=ud.map(od).filter(Boolean);return md.length===1?md[0]:`[${md.join(", ")}]`}if(ud.type===B$3){let md=((pd=dd==null?void 0:dd[cd+1])==null?void 0:pd.type)===b$1;return ud.literal?md?"literalline":"literallineWithoutBreakParent":ud.hard?md?"hardline":"hardlineWithoutBreakParent":ud.soft?"softline":"line"}if(ud.type===b$1)return((fd=dd==null?void 0:dd[cd-1])==null?void 0:fd.type)===B$3&&dd[cd-1].hard?void 0:"breakParent";if(ud.type===I$3)return"trim";if(ud.type===L$2)return"indent("+od(ud.contents)+")";if(ud.type===P$3)return ud.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+od(ud.contents)+")":ud.n<0?"dedent("+od(ud.contents)+")":ud.n.type==="root"?"markAsRoot("+od(ud.contents)+")":"align("+JSON.stringify(ud.n)+", "+od(ud.contents)+")";if(ud.type===_$3)return"ifBreak("+od(ud.breakContents)+(ud.flatContents?", "+od(ud.flatContents):"")+(ud.groupId?(ud.flatContents?"":', ""')+`, { groupId: ${ld(ud.groupId)} }`:"")+")";if(ud.type===R$4){let md=[];ud.negate&&md.push("negate: true"),ud.groupId&&md.push(`groupId: ${ld(ud.groupId)}`);let vd=md.length>0?`, { ${md.join(", ")} }`:"";return`indentIfBreak(${od(ud.contents)}${vd})`}if(ud.type===x$3){let md=[];ud.break&&ud.break!=="propagated"&&md.push("shouldBreak: true"),ud.id&&md.push(`id: ${ld(ud.id)}`);let vd=md.length>0?`, { ${md.join(", "
`)):nd)}function Uu(Ra){if(Ra.type===B$3)return!0}function Hr(Ra){return Xe$1(Ra,Uu,!1)}function Qe$1(Ra,qa){return Ra.type===N$2?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}var H$3=Symbol("MODE_BREAK"),J$3=Symbol("MODE_FLAT"),Te$2=Symbol("cursor");function Wr(){return{value:"",length:0,queue:[]}}function zu(Ra,qa){return bt$1(Ra,{type:"indent"},qa)}function Gu(Ra,qa,nd){return qa===Number.NEGATIVE_INFINITY?Ra.root||Wr():qa<0?bt$1(Ra,{type:"dedent"},nd):qa?qa.type==="root"?{...Ra,root:Ra}:bt$1(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},nd):Ra}function bt$1(Ra,qa,nd){let od=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],ld="",ud=0,cd=0,dd=0;for(let Id of od)switch(Id.type){case"indent":md(),nd.useTabs?pd(1):fd(nd.tabWidth);break;case"stringAlign":md(),ld+=Id.n,ud+=Id.n.length;break;case"numberAlign":cd+=1,dd+=Id.n;break;default:throw new Error(`Unexpected type '${Id.type}'`)}return Ad(),{...Ra,value:ld,length:ud,queue:od};function pd(Id){ld+=" ".repeat(Id),ud+=nd.tabWidth*Id}function fd(Id){ld+=" ".repeat(Id),ud+=Id}function md(){nd.useTabs?vd():Ad()}function vd(){cd>0&&pd(cd),Nd()}function Ad(){dd>0&&fd(dd),Nd()}function Nd(){cd=0,dd=0}}function Ot$1(Ra){let qa=0,nd=0,od=Ra.length;e:for(;od--;){let ld=Ra[od];if(ld===Te$2){nd++;continue}for(let ud=ld.length-1;ud>=0;ud--){let cd=ld[ud];if(cd===" "||cd===" ")qa++;else{Ra[od]=ld.slice(0,ud+1);break e}}}if(qa>0||nd>0)for(Ra.length=od+1;nd-- >0;)Ra.push(Te$2);return qa}function et$2(Ra,qa,nd,od,ld,ud){if(nd===Number.POSITIVE_INFINITY)return!0;let cd=qa.length,dd=[Ra],pd=[];for(;nd>=0;){if(dd.length===0){if(cd===0)return!0;dd.push(qa[--cd]);continue}let{mode:fd,doc:md}=dd.pop(),vd=G$3(md);switch(vd){case U$3:pd.push(md),nd-=Oe$2(md);break;case W$3:case S$1:{let Ad=vd===W$3?md:md.parts;for(let Nd=Ad.length-1;Nd>=0;Nd--)dd.push({mode:fd,doc:Ad[Nd]});break}case L$2:case P$3:case R$4:case N$2:dd.push({mode:fd,doc:md.contents});break;case I$3:nd+=Ot$1(pd);break;case x$3:{if(ud&&md.break)return!1;let Ad=md.break?H$3:fd,Nd=md.expandedStates&&Ad===H$3?y$2(!1,md.expandedStates,-1):md.contents;dd.push({mode:Ad,doc:Nd});break}case _$3:{let Ad=(md.groupId?ld[md.groupId]||J$3:fd)===H$3?md.breakContents:md.flatContents;Ad&&dd.push({mode:fd,doc:Ad});break}case B$3:if(fd===H$3||md.hard)return!0;md.soft||(pd.push(" "),nd--);break;case Y$2:od=!0;break;case j$2:if(od)return!1;break}}return!1}function Fe$2(Ra,qa){let nd={},od=qa.printWidth,ld=Be$3(qa.endOfLine),ud=0,cd=[{ind:Wr(),mode:H$3,doc:Ra}],dd=[],pd=!1,fd=[],md=0;for(Rr(Ra);cd.length>0;){let{ind:Ad,mode:Nd,doc:Id}=cd.pop();switch(G$3(Id)){case U$3:{let kd=ld!==`
`?ne$3(!1,Id,`
`,ld):Id;dd.push(kd),cd.length>0&&(ud+=Oe$2(kd));break}case W$3:for(let kd=Id.length-1;kd>=0;kd--)cd.push({ind:Ad,mode:Nd,doc:Id[kd]});break;case z$2:if(md>=2)throw new Error("There are too many 'cursor' in doc.");dd.push(Te$2),md++;break;case L$2:cd.push({ind:zu(Ad,qa),mode:Nd,doc:Id.contents});break;case P$3:cd.push({ind:Gu(Ad,Id.n,qa),mode:Nd,doc:Id.contents});break;case I$3:ud-=Ot$1(dd);break;case x$3:switch(Nd){case J$3:if(!pd){cd.push({ind:Ad,mode:Id.break?H$3:J$3,doc:Id.contents});break}case H$3:{pd=!1;let kd={ind:Ad,mode:J$3,doc:Id.contents},jd=od-ud,Fd=fd.length>0;if(!Id.break&&et$2(kd,cd,jd,Fd,nd))cd.push(kd);else if(Id.expandedStates){let Md=y$2(!1,Id.expandedStates,-1);if(Id.break){cd.push({ind:Ad,mode:H$3,doc:Md});break}else for(let Ld=1;Ld<Id.expandedStates.length+1;Ld++)if(Ld>=Id.expandedStates.length){cd.push({ind:Ad,mode:H$3,doc:Md});break}else{let Hd=Id.expandedStates[Ld],Gd={ind:Ad,mode:J$3,doc:Hd};if(et$2(Gd,cd,jd,Fd,nd)){cd.push(Gd);break}}}else cd.push({ind:Ad,mode:H$3,doc:Id.contents});break}}Id.id&&(nd[Id.id]=y$2(!1,cd,-1).mode);break;case S$1:{let kd=od-ud,{parts:jd}=Id;if(jd.length===0)break;let[Fd,Md]=jd,Ld={ind:Ad,mode:J$3,doc:Fd},Hd={ind:Ad,mode:H$3,doc:Fd},Gd=et$2(Ld,[],kd,fd.length>0,nd,!0);if(jd.length===1){Gd?cd.push(Ld):cd.push(Hd);break}let Vd={ind:Ad,mode:J$3,doc:Md},Qd={ind:Ad,mode:H$3,doc:Md};if(jd.length===2){Gd?cd.push(Vd,Ld):cd.push(Qd,Hd);break}jd.splice(0,2);let mf={ind:Ad,mode:Nd,doc:Ge$1(jd)},Yd=jd[0];et$2({ind:Ad,mode:J$3,doc:[Fd,Md,Yd]},[],kd,fd.length>0,nd,!0)?cd.push(mf,Vd,Ld):Gd?cd.push(mf,Qd,Ld):cd.push(mf,Qd,Hd);break}case _$3:case R$4:{let kd=Id.groupId?nd[Id.groupId]:Nd;if(kd===H$3){let jd=Id.type===_$3?Id.breakContents:Id.negate?Id.contents:De$2(Id.contents);jd&&cd.push({ind:Ad,mode:Nd,doc:jd})}if(kd===J$3){let jd=Id.type===_$3?Id.flatContents:Id.negate?De$2(Id.contents):Id.contents;jd&&cd.push({ind:Ad,mode:Nd,doc:jd})}break}case Y$2:fd.push({ind:Ad,mode:Nd,doc:Id.contents});break;case j$2:fd.length>0&&cd.push({ind:Ad,mode:Nd,doc:_e$1});break;case B$3:switch(Nd){case J$3:if(Id.hard)pd=!0;else{Id.soft||(dd.push(" "),ud+=1);break}case H$3:if(fd.length>0){cd.push({ind:Ad,mode:Nd,doc:Id},...fd.reverse()),fd.length=0;break}Id.literal?Ad.root?(dd.push(ld,Ad.root.value),ud=Ad.root.length):(dd.push(ld),ud=0):(ud-=Ot$1(dd),dd.push(ld+Ad.value),ud=Ad.length);break}break;case N$2:cd.push({ind:Ad,mode:Nd,doc:Id.contents});break;case b$1:break;default:throw new Q$3(Id)}cd.length===0&&fd.length>0&&(cd.push(...fd.reverse()),fd.length=0)}let vd=dd.indexOf(Te$2);if(vd!==-1){let Ad=dd.indexOf(Te$2,vd+1),Nd=dd.slice(0,vd).join(""),Id=dd.slice(vd+1,Ad).join(""),kd=dd.slice(Ad+1).join("");return{formatted:Nd+Id+kd,cursorNodeStart:Nd.length,cursorNodeText:Id}}return{formatted:dd.join("")}}function Ku(Ra,qa,nd=0){let od=0;for(let ld=nd;ld<Ra.length;++ld)Ra[ld]===" "?od=od+qa-od%qa:od++;return od}var me$3=Ku,te$2,Nt$1,tt$2,St$1=class{constructor(qa){Dr(this,te$2),this.stack=[qa]}get key(){let{stack:qa,siblings:nd}=this;return y$2(!1,qa,nd===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:qa}=this,nd=y$2(!1,qa,-3);return Array.isArray(nd)?nd:null}get next(){let{siblings:qa}=this;return qa===null?null:qa[this.index+1]}get previous(){let{siblings:qa}=this;return qa===null?null:qa[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:qa,index:nd}=this;return qa!==null&&nd===qa.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...pe$2(this,te$2,tt$2).call(this)]}getName(){let{stack:qa}=this,{length:nd}=qa;return nd>1?y$2(!1,qa,-2):null}getValue(){return y$2(!1,this.stack,-1)}getNode(qa=0){let nd=pe$2(this,te$2,Nt$1).call(this,qa);return nd===-1?null:this.stack[nd]}getParentNode(qa=0){return this.getNode(qa+1)}call(qa,...nd){let{stack:od}=this,{length:ld}=od,ud=y$2(!1,od,-1);for(let cd of nd)ud=ud[cd
`)return qa-2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa-1}else{if(ld==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa+1}return qa}var M$2=Ju;function Xu(Ra,qa,nd={}){let od=T$2(Ra,nd.backwards?qa-1:qa,nd),ld=M$2(Ra,od,nd);return od!==ld}var V$2=Xu;function Zu(Ra){return Array.isArray(Ra)&&Ra.length>0}var kt=Zu,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$3=eo;function to(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",nd=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 nd.length>20&&(nd=nd.slice(0,19)+"…"),qa+(nd?" "+nd:"")}function Lt(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=to(Ra)}function ue$2(Ra,qa){qa.leading=!0,qa.trailing=!1,Lt(Ra,qa)}function re$2(Ra,qa,nd){qa.leading=!1,qa.trailing=!1,nd&&(qa.marker=nd),Lt(Ra,qa)}function oe$2(Ra,qa){qa.leading=!1,qa.trailing=!0,Lt(Ra,qa)}var Pt=new WeakMap;function ut$2(Ra,qa){if(Pt.has(Ra))return Pt.get(Ra);let{printer:{getCommentChildNodes:nd,canAttachComment:od,getVisitorKeys:ld},locStart:ud,locEnd:cd}=qa;if(!od)return[];let dd=((nd==null?void 0:nd(Ra,qa))??[...Tt$1(Ra,{getVisitorKeys:X$3(ld)})]).flatMap(pd=>od(pd)?[pd]:ut$2(pd,qa));return dd.sort((pd,fd)=>ud(pd)-ud(fd)||cd(pd)-cd(fd)),Pt.set(Ra,dd),dd}function qr(Ra,qa,nd,od){let{locStart:ld,locEnd:ud}=nd,cd=ld(qa),dd=ud(qa),pd=ut$2(Ra,nd),fd,md,vd=0,Ad=pd.length;for(;vd<Ad;){let Nd=vd+Ad>>1,Id=pd[Nd],kd=ld(Id),jd=ud(Id);if(kd<=cd&&dd<=jd)return qr(Id,qa,nd,Id);if(jd<=cd){fd=Id,vd=Nd+1;continue}if(dd<=kd){md=Id,Ad=Nd;continue}throw new Error("Comment location overlaps with node location")}if((od==null?void 0:od.type)==="TemplateLiteral"){let{quasis:Nd}=od,Id=Rt$1(Nd,qa,nd);fd&&Rt$1(Nd,fd,nd)!==Id&&(fd=null),md&&Rt$1(Nd,md,nd)!==Id&&(md=null)}return{enclosingNode:od,precedingNode:fd,followingNode:md}}var It$1=()=>!1;function Jr(Ra,qa){let{comments:nd}=Ra;if(delete Ra.comments,!kt(nd)||!qa.printer.canAttachComment)return;let od=[],{locStart:ld,locEnd:ud,printer:{experimentalFeatures:{avoidAstMutation:cd=!1}={},handleComments:dd={}},originalText:pd}=qa,{ownLine:fd=It$1,endOfLine:md=It$1,remaining:vd=It$1}=dd,Ad=nd.map((Nd,Id)=>({...qr(Ra,Nd,qa),comment:Nd,text:pd,options:qa,ast:Ra,isLastComment:nd.length-1===Id}));for(let[Nd,Id]of Ad.entries()){let{comment:kd,precedingNode:jd,enclosingNode:Fd,followingNode:Md,text:Ld,options:Hd,ast:Gd,isLastComment:Vd}=Id;if(Hd.parser==="json"||Hd.parser==="json5"||Hd.parser==="jsonc"||Hd.parser==="__js_expression"||Hd.parser==="__ts_expression"||Hd.parser==="__vue_expression"||Hd.parser==="__vue_ts_expression"){if(ld(kd)-ld(Gd)<=0){ue$2(Gd,kd);continue}if(ud(kd)-ud(Gd)>=0){oe$2(Gd,kd);continue}}let Qd;if(cd?Qd=[Id]:(kd.enclosingNode=Fd,kd.precedingNode=jd,kd.followingNode=Md,Qd=[kd,Ld,Hd,Gd,Vd]),ro(Ld,Hd,Ad,Nd))kd.placement="ownLine",fd(...Qd)||(Md?ue$2(Md,kd):jd?oe$2(jd,kd):re$2(Fd||Gd,kd));else if(no(Ld,Hd,Ad,Nd))kd.placement="endOfLine",md(...Qd)||(jd?oe$2(jd,kd):Md?ue$2(Md,kd):re$2(Fd||Gd,kd));else if(kd.placement="remaining",!vd(...Qd))if(jd&&Md){let mf=od.length;mf>0&&od[mf-1].followingNode!==Md&&Kr(od,Hd),od.push(Id)}else jd?oe$2(jd,kd):Md?ue$2(Md,kd):re$2(Fd||Gd,kd)}if(Kr(od,qa),!cd)for(let Nd of nd)delete Nd.precedingNode,delete Nd.enclosingNode,delete Nd.followingNode}var Xr=Ra=>!/[\S\n\u2028\u2029]/u.test(Ra);function ro(Ra,qa,nd,od){let{comment:ld,precedingNode:ud}=nd[od],{locStart:cd,locEnd:dd}=qa,pd=cd(ld);if(ud)for(let fd=od-1;fd>=0;fd--){let{comment:md,precedingNode:vd}=nd[fd];if(vd!==ud||!Xr(Ra.slice(dd(md),pd)))break;pd=cd(md)}return V$2(Ra,pd,{backwards:!0})}function no(Ra,qa,nd,od){let{comment:ld,followingNode:ud}=nd[od],{locStart:cd,locEnd:dd}=qa,pd=dd(ld);if(ud)for(let fd=od+1;fd<nd.length;fd++){let{comment:md,followingNode:vd}=nd[fd];if(vd!==ud||!Xr(Ra.slice(pd,cd(md))))break;pd=dd(md)}return V$2(Ra,pd)}function Kr(Ra,qa){var nd,od;let ld=Ra.length;if(ld===0)return;let{precedingNode:ud,followingNode:cd}
(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$2({plugins:Ra=[],showDeprecated:qa=!1}={}){let nd=Ra.flatMap(ld=>ld.languages??[]),od=[];for(let ld of lo(Object.assign({},...Ra.map(({options:ud})=>ud),rn$1)))!qa&&ld.deprecated||(Array.isArray(ld.choices)&&(qa||(ld.choices=ld.choices.filter(ud=>!ud.deprecated)),ld.name==="parser"&&(ld.choices=[...ld.choices,...Do(ld.choices,nd,Ra)])),ld.pluginDefaults=Object.fromEntries(Ra.filter(ud=>{var cd;return((cd=ud.defaultOptions)==null?void 0:cd[ld.name])!==void 0}).map(ud=>[ud.name,ud.defaultOptions[ld.name]])),od.push(ld));return{languages:nd,options:od}}function*Do(Ra,qa,nd){let od=new Set(Ra.map(ld=>ld.value));for(let ld of qa)if(ld.parsers){for(let ud of ld.parsers)if(!od.has(ud)){od.add(ud);let cd=nd.find(pd=>pd.parsers&&Object.prototype.hasOwnProperty.call(pd.parsers,ud)),dd=ld.name;cd!=null&&cd.name&&(dd+=` (plugin: ${cd.name})`),yield{value:ud,description:dd}}}}function lo(Ra){let qa=[];for(let[nd,od]of Object.entries(Ra)){let ld={name:nd,...od};Array.isArray(ld.default)&&(ld.default=y$2(!1,ld.default,-1).value),qa.push(ld)}return qa}var co=Ra=>String(Ra).split(/[/\\]/u).pop();function nn$1(Ra,qa){if(!qa)return;let nd=co(qa).toLowerCase();return Ra.find(({filenames:od})=>od==null?void 0:od.some(ld=>ld.toLowerCase()===nd))??Ra.find(({extensions:od})=>od==null?void 0:od.some(ld=>nd.endsWith(ld)))}function fo(Ra,qa){if(qa)return Ra.find(({name:nd})=>nd.toLowerCase()===qa)??Ra.find(({aliases:nd})=>nd==null?void 0:nd.includes(qa))??Ra.find(({extensions:nd})=>nd==null?void 0:nd.includes(`.${qa}`))}function po(Ra,qa){let nd=Ra.plugins.flatMap(ld=>ld.languages??[]),od=fo(nd,qa.language)??nn$1(nd,qa.physicalFile)??nn$1(nd,qa.file)??(qa.physicalFile,void 0);return od==null?void 0:od.parsers[0]}var un$1=po,ie$2={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(nd=>ie$2.value(nd)).join(", ")}]`;let qa=Object.keys(Ra);return qa.length===0?"{}":`{ ${qa.map(nd=>`${ie$2.key(nd)}: ${ie$2.value(Ra[nd])}`).join(", ")} }`},pair:({key:Ra,value:qa})=>ie$2.value({[Ra]:qa})},Yt$1=Me$2(it$1()),an$1=(Ra,qa,{descriptor:nd})=>{let od=[`${Yt$1.default.yellow(typeof Ra=="string"?nd.key(Ra):nd.pair(Ra))} is deprecated`];return qa&&od.push(`we now treat it as ${Yt$1.default.blue(typeof qa=="string"?nd.key(qa):nd.pair(qa))}`),od.join("; ")+"."},le$2=Me$2(it$1()),st$2=Symbol.for("vnopts.VALUE_NOT_EXIST"),he$2=Symbol.for("vnopts.VALUE_UNCHANGED"),Dn=" ".repeat(2),cn$1=(Ra,qa,nd)=>{let{text:od,list:ld}=nd.normalizeExpectedResult(nd.schemas[Ra].expected(nd)),ud=[];return od&&ud.push(ln$1(Ra,qa,od,nd.descriptor)),ld&&ud.push([ln$1(Ra,qa,ld.title,nd.descriptor)].concat(ld.values.map(cd=>fn$1(cd,nd.loggerPrintWidth))).join(`
`)),pn$1(ud,nd.loggerPrintWidth)};function ln$1(Ra,qa,nd,od){return[`Invalid ${le$2.default.red(od.key(Ra))} value.`,`Expected ${le$2.default.blue(nd)},`,`but received ${qa===st$2?le$2.default.gray("nothing"):le$2.default.red(od.value(qa))}.`].join(" ")}function fn$1({text:Ra,list:qa},nd){let od=[];return Ra&&od.push(`- ${le$2.default.blue(Ra)}`),qa&&od.push([`- ${le$2.default.blue(qa.title)}:`].concat(qa.values.map(ld=>fn$1(ld,nd-Dn.length).replace(/^|\n/g,`$&${Dn}`))).join(`
`)),pn$1(od,nd)}function pn$1(Ra,qa){if(Ra.length===1)return Ra[0];let[nd,od]=Ra,[ld,ud]=Ra.map(cd=>cd.split(`
`,1)[0].length);return ld>qa&&ld>ud?od:nd}var Wt$2=Me$2(it$1()),jt=[],dn$1=[];function Ht$1(Ra,qa){if(Ra===qa)return 0;let nd=Ra;Ra.length>qa.length&&(Ra=qa,qa=nd);let od=Ra.length,ld=qa.length;for(;od>0&&Ra.charCodeAt(~-od)===qa.charCodeAt(~-ld);)od--,ld--;let ud=0;for(;ud<od&&Ra.charCodeAt(ud)===qa.charCodeAt(ud);)ud++;if(od-=ud,ld-=ud,od===0)return ld;let cd,dd,pd,fd,md=0,vd=0;for(;md<od;)dn$1[md]=Ra.charCodeAt(ud+md),jt[md]=++md;for(;vd<ld;)for(cd=qa.charCodeAt(ud+vd),pd=vd++,dd=vd,md=0;md<od;md++)fd=cd===dn$1[md]?pd:pd+1,pd=jt[md],dd=jt[md]=pd>dd?fd>dd?dd+1:fd:fd>pd?pd+1:fd;return dd}var at$3=(Ra,qa,{descriptor:nd,logger:od,schemas:ld})=>{let ud=[`Ignored unknown option ${Wt$2.default.yellow(nd.pair({key:Ra,value:qa}))}.`],cd=Object.keys(ld).sort().find(dd=>Ht$1(Ra,dd)<3);cd&&ud.push(`Did you mean ${Wt$2.default.blue(nd.key(cd))}?`),od.warn(ud.join(" "))},Fo=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function mo(Ra,qa){let nd=new Ra(qa),od=Object.create(nd);for(let ld of Fo)ld in qa&&(od[ld]=Eo(qa[ld],nd,O$1.prototype[ld].length));return od}var O$1=class{static create(qa){return mo(this,qa)}constructor(qa){this.name=qa.name}default(qa){}expected(qa){return"nothing"}validate(qa,nd){return!1}deprecated(qa,nd){return!1}forward(qa,nd){}redirect(qa,nd){}overlap(qa,nd,od){return qa}preprocess(qa,nd){return qa}postprocess(qa,nd){return he$2}};function Eo(Ra,qa,nd){return typeof Ra=="function"?(...od)=>Ra(...od.slice(0,nd-1),qa,...od.slice(nd-1)):()=>Ra}var Dt=class extends O$1{constructor(Ra){super(Ra),this._sourceName=Ra.sourceName}expected(Ra){return Ra.schemas[this._sourceName].expected(Ra)}validate(Ra,qa){return qa.schemas[this._sourceName].validate(Ra,qa)}redirect(Ra,qa){return this._sourceName}},lt$1=class extends O$1{expected(){return"anything"}validate(){return!0}},ct$1=class extends O$1{constructor({valueSchema:qa,name:nd=qa.name,...od}){super({...od,name:nd}),this._valueSchema=qa}expected(qa){let{text:nd,list:od}=qa.normalizeExpectedResult(this._valueSchema.expected(qa));return{text:nd&&`an array of ${nd}`,list:od&&{title:"an array of the following values",values:[{list:od}]}}}validate(qa,nd){if(!Array.isArray(qa))return!1;let od=[];for(let ld of qa){let ud=nd.normalizeValidateResult(this._valueSchema.validate(ld,nd),ld);ud!==!0&&od.push(ud.value)}return od.length===0?!0:{value:od}}deprecated(qa,nd){let od=[];for(let ld of qa){let ud=nd.normalizeDeprecatedResult(this._valueSchema.deprecated(ld,nd),ld);ud!==!1&&od.push(...ud.map(({value:cd})=>({value:[cd]})))}return od}forward(qa,nd){let od=[];for(let ld of qa){let ud=nd.normalizeForwardResult(this._valueSchema.forward(ld,nd),ld);od.push(...ud.map(Fn))}return od}redirect(qa,nd){let od=[],ld=[];for(let ud of qa){let cd=nd.normalizeRedirectResult(this._valueSchema.redirect(ud,nd),ud);"remain"in cd&&od.push(cd.remain),ld.push(...cd.redirect.map(Fn))}return od.length===0?{redirect:ld}:{redirect:ld,remain:od}}overlap(qa,nd){return qa.concat(nd)}};function Fn({from:Ra,to:qa}){return{from:[Ra],to:qa}}var ft$1=class extends O$1{expected(){return"true or false"}validate(qa){return typeof qa=="boolean"}};function En(Ra,qa){let nd=Object.create(null);for(let od of Ra){let ld=od[qa];if(nd[ld])throw new Error(`Duplicate ${qa} ${JSON.stringify(ld)}`);nd[ld]=od}return nd}function hn(Ra,qa){let nd=new Map;for(let od of Ra){let ld=od[qa];if(nd.has(ld))throw new Error(`Duplicate ${qa} ${JSON.stringify(ld)}`);nd.set(ld,od)}return nd}function Cn(){let Ra=Object.create(null);return qa=>{let nd=JSON.stringify(qa);return Ra[nd]?!0:(Ra[nd]=!0,!1)}}function gn$1(Ra,qa){let nd=[],od=[];for(let ld of Ra)qa(ld)?nd.push(ld):od.push(ld);return[nd,od]}function yn$1(Ra){return Ra===Math.floor(Ra)}function An(Ra,qa){if(Ra===qa)return 0;let nd=typeof Ra,od=typeof qa,ld=["undefined","object","boolean","number","string"];return nd!==od?ld.indexOf(nd)-ld.indexOf(od):nd!=="string"?Number(Ra)-Number(qa):Ra.localeCompare(qa)}function Bn(Ra){return(...qa)=>{let nd=Ra(...qa);return typeof nd=="string"?new Error(nd):nd}}function Mt$1(Ra){return
`+od,Ra.codeFrame=od,Ra}throw Ra}var ce$3=ko;async function Un(Ra,qa,nd,od,ld){let{embeddedLanguageFormatting:ud,printer:{embed:cd,hasPrettierIgnore:dd=()=>!1,getVisitorKeys:pd}}=nd;if(!cd||ud!=="auto")return;if(cd.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 fd=X$3(cd.getVisitorKeys??pd),md=[];Nd();let vd=Ra.stack;for(let{print:Id,node:kd,pathStack:jd}of md)try{Ra.stack=jd;let Fd=await Id(Ad,qa,Ra,nd);Fd&&ld.set(kd,Fd)}catch(Fd){if(globalThis.PRETTIER_DEBUG)throw Fd}Ra.stack=vd;function Ad(Id,kd){return Po(Id,kd,nd,od)}function Nd(){let{node:Id}=Ra;if(Id===null||typeof Id!="object"||dd(Ra))return;for(let jd of fd(Id))Array.isArray(Id[jd])?Ra.each(Nd,jd):Ra.call(Nd,jd);let kd=cd(Ra,nd);if(kd){if(typeof kd=="function"){md.push({print:kd,node:Id,pathStack:[...Ra.stack]});return}ld.set(Id,kd)}}}async function Po(Ra,qa,nd,od){let ld=await se$3({...nd,...qa,parentParser:nd.parser,originalText:Ra},{passThrough:!0}),{ast:ud}=await ce$3(Ra,ld),cd=await od(ud,ld);return Ze$1(cd)}function Io(Ra,qa){let{originalText:nd,[Symbol.for("comments")]:od,locStart:ld,locEnd:ud,[Symbol.for("printedComments")]:cd}=qa,{node:dd}=Ra,pd=ld(dd),fd=ud(dd);for(let md of od)ld(md)>=pd&&ud(md)<=fd&&cd.add(md);return nd.slice(pd,fd)}var zn=Io;async function Ye$2(Ra,qa){({ast:Ra}=await Qt$1(Ra,qa));let nd=new Map,od=new Mr(Ra),ld=new Map;await Un(od,cd,qa,Ye$2,ld);let ud=await Gn(od,qa,cd,void 0,ld);return en$1(qa),ud;function cd(pd,fd){return pd===void 0||pd===od?dd(fd):Array.isArray(pd)?od.call(()=>dd(fd),...pd):od.call(()=>dd(fd),pd)}function dd(pd){let fd=od.node;if(fd==null)return"";let md=fd&&typeof fd=="object"&&pd===void 0;if(md&&nd.has(fd))return nd.get(fd);let vd=Gn(od,qa,cd,pd,ld);return md&&nd.set(fd,vd),vd}}function Gn(Ra,qa,nd,od,ld){var ud;let{node:cd}=Ra,{printer:dd}=qa,pd;return(ud=dd.hasPrettierIgnore)!=null&&ud.call(dd,Ra)?pd=zn(Ra,qa):ld.has(cd)?pd=ld.get(cd):pd=dd.print(Ra,qa,nd,od),cd===qa.cursorNode&&(pd=Qe$1(pd,fd=>[ve$3,fd,ve$3])),dd.printComment&&(!dd.willPrintOwnComments||!dd.willPrintOwnComments(Ra,qa))&&(pd=Qr(Ra,pd,qa)),pd}async function Qt$1(Ra,qa){let nd=Ra.comments??[];qa[Symbol.for("comments")]=nd,qa[Symbol.for("tokens")]=Ra.tokens??[],qa[Symbol.for("printedComments")]=new Set,Jr(Ra,qa);let{printer:{preprocess:od}}=qa;return Ra=od?await od(Ra,qa):Ra,{ast:Ra,comments:nd}}function Ro(Ra,qa){let{cursorOffset:nd,locStart:od,locEnd:ld}=qa,ud=X$3(qa.printer.getVisitorKeys),cd=pd=>od(pd)<=nd&&ld(pd)>=nd,dd=Ra;for(let pd of Ur(Ra,{getVisitorKeys:ud,filter:cd}))dd=pd;return dd}var Kn=Ro;function Yo(Ra,qa){let{printer:{massageAstNode:nd,getVisitorKeys:od}}=qa;if(!nd)return Ra;let ld=X$3(od),ud=nd.ignoredProperties??new Set;return cd(Ra);function cd(dd,pd){if(!(dd!==null&&typeof dd=="object"))return dd;if(Array.isArray(dd))return dd.map(Ad=>cd(Ad,pd)).filter(Boolean);let fd={},md=new Set(ld(dd));for(let Ad in dd)!Object.prototype.hasOwnProperty.call(dd,Ad)||ud.has(Ad)||(md.has(Ad)?fd[Ad]=cd(dd[Ad],dd):fd[Ad]=dd[Ad]);let vd=nd(dd,fd,pd);if(vd!==null)return vd??fd}}var qn=Yo,jo=(Ra,qa,nd)=>{if(!(Ra&&qa==null)){if(qa.findLastIndex)return qa.findLastIndex(nd);for(let od=qa.length-1;od>=0;od--){let ld=qa[od];if(nd(ld,od,qa))return od}return-1}},Jn=jo,Ho=({parser:Ra})=>Ra==="json"||Ra==="json5"||Ra==="jsonc"||Ra==="json-stringify";function Wo(Ra,qa){let nd=[Ra.node,...Ra.parentNodes],od=new Set([qa.node,...qa.parentNodes]);return nd.find(ld=>Qn.has(ld.type)&&od.has(ld))}function Xn(Ra){let qa=Jn(!1,Ra,nd=>nd.type!=="Program"&&nd.type!=="File");return qa===-1?Ra:Ra.slice(0,qa+1)}function Mo(Ra,qa,{locStart:nd,locEnd:od}){let ld=Ra.node,ud=qa.node;if(ld===ud)return{startNode:ld,endNode:ud};let cd=nd(Ra.node);for(let pd of Xn(qa.parentNodes))if(nd(pd)>=cd)ud=pd;else break;let dd=od(qa.node);for(let pd of Xn(Ra.parentNodes)){if(od(pd)<=dd)ld=pd;else break;if(ld===ud)break}return{startNode:ld,endNode:ud}}function er(Ra,qa,nd,od,ld=[],ud){let{locStart:cd,locEnd:dd}=nd,pd=cd(Ra),fd=dd(Ra);if(!(qa>fd|
`,ld)+1),pd=od.slice(dd,ld).match(/^\s*/u)[0],fd=me$3(pd,qa.tabWidth),md=await ou(cd,{...qa,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:qa.cursorOffset>ld&&qa.cursorOffset<=ud?qa.cursorOffset-ld:-1,endOfLine:"lf"},fd),vd=md.formatted.trimEnd(),{cursorOffset:Ad}=qa;Ad>ud?Ad+=vd.length-cd.length:md.cursorOffset>=0&&(Ad=md.cursorOffset+ld);let Nd=od.slice(0,ld)+vd+od.slice(ud);if(qa.endOfLine!=="lf"){let Id=Be$3(qa.endOfLine);Ad>=0&&Id===`\r
`&&(Ad+=wt$1(Nd.slice(0,Ad),`
`)),Nd=ne$3(!1,Nd,`
`,Id)}return{formatted:Nd,cursorOffset:Ad,comments:md.comments}}function tr(Ra,qa,nd){return typeof qa!="number"||Number.isNaN(qa)||qa<0||qa>Ra.length?nd:qa}function ru(Ra,qa){let{cursorOffset:nd,rangeStart:od,rangeEnd:ld}=qa;return nd=tr(Ra,nd,-1),od=tr(Ra,od,0),ld=tr(Ra,ld,Ra.length),{...qa,cursorOffset:nd,rangeStart:od,rangeEnd:ld}}function iu(Ra,qa){let{cursorOffset:nd,rangeStart:od,rangeEnd:ld,endOfLine:ud}=ru(Ra,qa),cd=Ra.charAt(0)===uu;if(cd&&(Ra=Ra.slice(1),nd--,od--,ld--),ud==="auto"&&(ud=Fr(Ra)),Ra.includes("\r")){let dd=pd=>wt$1(Ra.slice(0,Math.max(pd,0)),`\r
`);nd-=dd(nd),od-=dd(od),ld-=dd(ld),Ra=mr(Ra)}return{hasBOM:cd,text:Ra,options:ru(Ra,{...qa,cursorOffset:nd,rangeStart:od,rangeEnd:ld,endOfLine:ud})}}async function nu(Ra,qa){let nd=await ht$1(qa);return!nd.hasPragma||nd.hasPragma(Ra)}async function rr(Ra,qa){let{hasBOM:nd,text:od,options:ld}=iu(Ra,await se$3(qa));if(ld.rangeStart>=ld.rangeEnd&&od!==""||ld.requirePragma&&!await nu(od,ld))return{formatted:Ra,cursorOffset:qa.cursorOffset,comments:[]};let ud;return ld.rangeStart>0||ld.rangeEnd<od.length?ud=await Uo(od,ld):(!ld.requirePragma&&ld.insertPragma&&ld.printer.insertPragma&&!await nu(od,ld)&&(od=ld.printer.insertPragma(od)),ud=await ou(od,ld)),nd&&(ud.formatted=uu+ud.formatted,ud.cursorOffset>=0&&ud.cursorOffset++),ud}async function su(Ra,qa,nd){let{text:od,options:ld}=iu(Ra,await se$3(qa)),ud=await ce$3(od,ld);return nd&&(nd.preprocessForPrint&&(ud.ast=await Qt$1(ud.ast,ld)),nd.massage&&(ud.ast=qn(ud.ast,ld))),ud}async function au(Ra,qa){qa=await se$3(qa);let nd=await Ye$2(Ra,qa);return Fe$2(nd,qa)}async function Du(Ra,qa){let nd=Or(Ra),{formatted:od}=await rr(nd,{...qa,parser:"__js_expression"});return od}async function lu(Ra,qa){qa=await se$3(qa);let{ast:nd}=await ce$3(Ra,qa);return Ye$2(nd,qa)}async function cu(Ra,qa){return Fe$2(Ra,await se$3(qa))}var nr={};We$1(nr,{builders:()=>Go,printer:()=>Ko,utils:()=>qo});var Go={join:be$3,line:Ke$2,softline:vr,hardline:q$3,literalline:qe,group:_t$1,conditionalGroup:Ar,fill:Ge$1,lineSuffix:xe$2,lineSuffixBoundary:xr,cursor:ve$3,breakParent:de$2,ifBreak:Br,trim:_r,indent:De$2,indentIfBreak:wr,align:ae$2,addAlignmentToDoc:Je$1,markAsRoot:gr,dedentToRoot:Cr,dedent:yr,hardlineWithoutBreakParent:_e$1,literallineWithoutBreakParent:vt$2,label:br$2,concat:Ra=>Ra},Ko={printDocToString:Fe$2},qo={willBreak:Ir,traverseDoc:we$3,findInDoc:Xe$1,mapDoc:Ne$2,removeLines:Yr,stripTrailingHardline:Ze$1,replaceEndOfLine:jr,canBreak:Hr},fu="3.3.3",or={};We$1(or,{addDanglingComment:()=>re$2,addLeadingComment:()=>ue$2,addTrailingComment:()=>oe$2,getAlignmentSize:()=>me$3,getIndentSize:()=>pu,getMaxContinuousCount:()=>du,getNextNonSpaceNonCommentCharacter:()=>Fu,getNextNonSpaceNonCommentCharacterIndex:()=>si,getStringWidth:()=>Oe$2,hasNewline:()=>V$2,hasNewlineInRange:()=>mu,hasSpaces:()=>Eu,isNextLineEmpty:()=>ci,isNextLineEmptyAfterIndex:()=>gt$1,isPreviousLineEmpty:()=>Di,makeString:()=>hu,skip:()=>Ee$3,skipEverythingButNewLine:()=>nt$2,skipInlineComment:()=>Ce$2,skipNewline:()=>M$2,skipSpaces:()=>T$2,skipToLineEnd:()=>rt$1,skipTrailingComment:()=>ge$3,skipWhitespace:()=>zr});function Jo(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let nd=qa+2;nd<Ra.length;++nd)if(Ra.charAt(nd)==="*"&&Ra.charAt(nd+1)==="/")return nd+2}return qa}var Ce$2=Jo;function Xo(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?nt$2(Ra,qa):qa}var ge$3=Xo;function Zo(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=T$2(Ra,od),od=Ce$2(Ra,od),od=ge$3(Ra,od),od=M$2(Ra,od);return od}var je$3=Zo;function Qo(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=rt$1(Ra,od),od=Ce$2(Ra,od),od=T$2(Ra,od);return od=ge$3(Ra,od),od=M$2(Ra,od),od!==!1&&V$2(Ra,od)}var gt$1=Qo;function ei(Ra,qa){let nd=Ra.lastIndexOf(`
`);return nd===-1?0:me$3(Ra.slice(nd+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(Ra,qa){let nd=Ra.match(new RegExp(`(${ur(qa)})+`,"gu"));return nd===null?0:nd.reduce((od,ld)=>Math.max(od,ld.length/qa.length),0)}var du=ti;function ri(Ra,qa){let nd=je$3(Ra,qa);return nd===!1?"":Ra.charAt(nd)}var Fu=ri;function ni(Ra,qa,nd){for(let od=qa;od<nd;++od)if(Ra.charAt(od)===`
`)return!0;return!1}var mu=ni;function ui(Ra,qa,nd={}){return T$2(Ra,nd.backwards?qa-1:qa,nd)!==qa}var Eu=ui;function oi(Ra,qa,nd){let od=qa==='"'?"'":'"',ld=ne$3(!1,Ra,/\\(.)|(["'])/gsu,(ud,cd,dd)=>cd===od?cd:dd===qa?"\\"+dd:dd||(nd&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(cd)?cd:"\\"+cd));return qa+ld+qa}var hu=oi;function ii(Ra,qa,nd){return je$3(Ra,nd(qa))}function si(Ra,qa){return arguments.length===2||typeof qa=="number"?je$3(Ra,qa):ii(...arguments)}function ai(Ra,qa,nd){return Le$3(Ra,nd(qa))}function Di(Ra,qa){return arguments.length===2||typeof qa=="number"?Le$3(Ra,qa):ai(...arguments)}function li(Ra,qa,nd){return gt$1(Ra,nd(qa))}function ci(Ra,qa){return arguments.length===2||typeof qa=="number"?gt$1(Ra,qa):li(...arguments)}function fe$3(Ra,qa=1){return async(...nd)=>{let od=nd[qa]??{},ld=od.plugins??[];return nd[qa]={...od,plugins:Array.isArray(ld)?ld:Object.values(ld)},Ra(...nd)}}var Cu=fe$3(rr);async function gu(Ra,qa){let{formatted:nd}=await Cu(Ra,{...qa,cursorOffset:-1});return nd}async function fi(Ra,qa){return await gu(Ra,qa)===Ra}var pi$2=fe$3(ot$2,0),di={parse:fe$3(su),formatAST:fe$3(au),formatDoc:fe$3(Du),printToDoc:fe$3(lu),printDocToString:fe$3(cu)};function addPrefix(Ra){return`${prefix}__${Ra}`}function customizeTheme(Ra,qa){const nd=JSON.parse(JSON.stringify(Ra)),{fontSize:od,color:ld}=qa;if(od)for(let ud=1;ud<=6;ud++){const cd=nd.block[`h${ud}`]["font-size"];nd.block[`h${ud}`]["font-size"]=`${od*Number.parseFloat(cd)}px`}return ld&&(nd.base["--md-primary-color"]=ld),nd}function customCssWithTemplate(Ra,qa,nd){const od=customizeTheme(nd,{color:qa}),ld=(dd,pd,fd)=>{fd.forEach(md=>{pd[md]&&(dd[md]=Object.assign(dd[md]||{},pd[md]))})},ud=["h1","h2","h3","h4","h5","h6","code","code_pre","p","hr","blockquote","blockquote_note","blockquote_tip","blockquote_important","blockquote_warning","blockquote_caution","blockquote_p","blockquote_p_note","blockquote_p_tip","blockquote_p_important","blockquote_p_warning","blockquote_p_caution","blockquote_title","blockquote_title_note","blockquote_title_tip","blockquote_title_important","blockquote_title_warning","blockquote_title_caution","image","ul","ol"],cd=["strong","codespan","link","wx_link","listitem"];return ld(od.block,Ra,ud),ld(od.inline,Ra,cd),od}function css2json(Ra){Ra=Ra.replace(/\/\*[\s\S]*?\*\//g,"");const qa={},nd=od=>od.reduce((ld,ud)=>{const[cd,dd]=ud.split(":").map(pd=>pd.trim());return cd&&(ld[cd]=dd),ld},{});for(;Ra.includes("{")&&Ra.includes("}");){const od=Ra.indexOf("{"),ld=Ra.indexOf("}"),ud=Ra.substring(od+1,ld).split(";").map(pd=>pd.trim()).filter(Boolean),cd=Ra.substring(0,od).split(",").map(pd=>pd.trim()),dd=nd(ud);cd.forEach(pd=>{qa[pd]={...qa[pd]||{},...dd}}),Ra=Ra.slice(ld+1).trim()}return qa}function getStyleString(Ra){return Object.entries(Ra??{}).map(([qa,nd])=>`${qa}: ${nd}`).join("; ")}async function formatDoc(Ra,qa="markdown"){const nd={markdown:[prettierPluginMarkdown,prettierPluginBabel,prettierPluginEstree],css:[prettierPluginCss]},od=qa in nd?qa:"markdown";return await gu(Ra,{parser:od,plugins:nd[od]})}function downloadMD(Ra){const qa=document.createElement("a");qa.download="content.md",qa.style.display="none";const nd=new Blob([Ra]);qa.href=URL.createObjectURL(nd),document.body.appendChild(qa),qa.click(),document.body.removeChild(qa)}function exportHTML(Ra){const qa=document.querySelector("#output");ud(qa);const nd=qa.innerHTML.replaceAll("var(--md-primary-color)",Ra).replaceAll(/--md-primary-color:.+?;/g,""),od=document.createElement("a");od.download="content.html",od.style.display="none";const ld=new Blob([`<html><head><meta charset="utf-8" /></head><body><div style="width: 750px; margin: auto;">${nd}</div></body></html>`]);od.href=URL.createObjectURL(ld),document.body.appendChild(od),od.click(),document.body.removeChild(od);function ud(cd){function dd(vd,Ad=["width","height","inlineSize","webkitLogicalWidth","webkitLogicalHeight"]){const Nd=getComputedStyle(vd,null);return Object.entries(Nd).filter(([Id])=>{const kd=Id.replace(/[A-Z]/g,jd=>`-${jd.toLowerCase()}`);return Nd.getPropertyValue(kd)&&!Ad.includes(Id)}
`}return od}function toBase64$1(Ra){return new Promise((qa,nd)=>{const od=new FileReader;od.readAsDataURL(Ra),od.onload=()=>qa(od.result.split(",").pop()),od.onerror=ld=>nd(ld)})}function checkImage(Ra){if(!/\.(?:gif|jpe?g|png)$/i.test(Ra.name))return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const nd=10;return Ra.size>nd*1024*1024?{ok:!1,msg:`由于公众号限制图片大小不能超过 ${nd}M`}:{ok:!0}}function removeLeft(Ra){const qa=Ra.split(`
`),nd=qa.filter(od=>od.trim()).map(od=>od.match(/(^\s+)?/)[0].length).sort((od,ld)=>od-ld)[0];return qa.map(od=>od.slice(nd)).join(`
`)}function solveWeChatImage(){const qa=document.getElementById("output").getElementsByTagName("img");for(let nd=0;nd<qa.length;nd++){const od=qa[nd],ld=od.getAttribute("width"),ud=od.getAttribute("height");od.removeAttribute("width"),od.removeAttribute("height"),od.style.width=ld,od.style.height=ud}}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 nd=Ra[qa],od=typeof nd;(od==="object"||od==="function")&&!Object.isFrozen(nd)&&deepFreeze(nd)}),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 nd=Object.create(null);for(const od in Ra)nd[od]=Ra[od];return qa.forEach(function(od){for(const ld in od)nd[ld]=od[ld]}),nd}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 nd=Ra.split(".");return[`${qa}${nd.shift()}`,...nd.map((od,ld)=>`${od}${"_".repeat(ld+1)}`)].join(" ")}return`${qa}${Ra}`};class HTMLRenderer{constructor(qa,nd){this.buffer="",this.classPrefix=nd.classPrefix,qa.walk(this)}addText(qa){this.buffer+=escapeHTML(qa)}openNode(qa){if(!emitsWrappingTags(qa))return;const nd=scopeToCSSClass(qa.scope,{prefix:this.classPrefix});this.span(nd)}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 nd=newNode({scope:qa});this.add(nd),this.stack.push(nd)}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,nd){return typeof nd=="string"?qa.addText(nd):nd.children&&(qa.openNode(nd),nd.children.forEach(od=>this._walk(qa,od)),qa.closeNode(nd)),qa}static _collapse(qa){typeof qa!="string"&&qa.children&&(qa.children.every(nd=>typeof nd=="string")?qa.children=[qa.children.join("")]:qa.children.forEach(nd=>{TokenTree._collapse(nd)}))}}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,nd){const od=qa.root;nd&&(od.scope=`language:${nd}`),this.add(od)}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(nd=>source(nd)).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(od=>source(od)).join("|")+")"}function countMatchGroups(Ra){return new RegExp(Ra.toString()+"|").exec("").length-1}function startsWith$1(Ra,qa){const nd=Ra&&Ra.exec(qa);return nd&&nd.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(Ra,{joinWith:qa}){let nd=0;return Ra.map(od=>{nd+=1;const ld=nd;let ud
https://github.com/highlightjs/highlight.js/issues/2277`),Zf=Af,ih=Lf),Xf===void 0&&(Xf=!0);const jf={code:ih,language:Zf};yf("before:highlight",jf);const If=jf.result?jf.result:vd(jf.language,jf.code,Xf);return If.code=jf.code,yf("after:highlight",If),If}function vd(Af,Lf,Xf,ih){const Zf=Object.create(null);function jf(cm,Sm){return cm.keywords[Sm]}function If(){if(!Wf.keywords){Th.addText(dh);return}let cm=0;Wf.keywordPatternRe.lastIndex=0;let Sm=Wf.keywordPatternRe.exec(dh),$m="";for(;Sm;){$m+=dh.substring(cm,Sm.index);const ph=Qf.case_insensitive?Sm[0].toLowerCase():Sm[0],Rf=jf(Wf,ph);if(Rf){const[wf,ch]=Rf;if(Th.addText($m),$m="",Zf[ph]=(Zf[ph]||0)+1,Zf[ph]<=MAX_KEYWORD_HITS&&(Vh+=ch),wf.startsWith("_"))$m+=Sm[0];else{const yh=Qf.classNameAliases[wf]||wf;Kf(Sm[0],yh)}}else $m+=Sm[0];cm=Wf.keywordPatternRe.lastIndex,Sm=Wf.keywordPatternRe.exec(dh)}$m+=dh.substring(cm),Th.addText($m)}function Uf(){if(dh==="")return;let cm=null;if(typeof Wf.subLanguage=="string"){if(!qa[Wf.subLanguage]){Th.addText(dh);return}cm=vd(Wf.subLanguage,dh,!0,vh[Wf.subLanguage]),vh[Wf.subLanguage]=cm._top}else cm=Nd(dh,Wf.subLanguage.length?Wf.subLanguage:null);Wf.relevance>0&&(Vh+=cm.relevance),Th.__addSublanguage(cm._emitter,cm.language)}function qf(){Wf.subLanguage!=null?Uf():If(),dh=""}function Kf(cm,Sm){cm!==""&&(Th.startScope(Sm),Th.addText(cm),Th.endScope())}function Tf(cm,Sm){let $m=1;const ph=Sm.length-1;for(;$m<=ph;){if(!cm._emit[$m]){$m++;continue}const Rf=Qf.classNameAliases[cm[$m]]||cm[$m],wf=Sm[$m];Rf?Kf(wf,Rf):(dh=wf,If(),dh=""),$m++}}function vf(cm,Sm){return cm.scope&&typeof cm.scope=="string"&&Th.openNode(Qf.classNameAliases[cm.scope]||cm.scope),cm.beginScope&&(cm.beginScope._wrap?(Kf(dh,Qf.classNameAliases[cm.beginScope._wrap]||cm.beginScope._wrap),dh=""):cm.beginScope._multi&&(Tf(cm.beginScope,Sm),dh="")),Wf=Object.create(cm,{parent:{value:Wf}}),Wf}function Gf(cm,Sm,$m){let ph=startsWith$1(cm.endRe,$m);if(ph){if(cm["on:end"]){const Rf=new Response$1(cm);cm["on:end"](Sm,Rf),Rf.isMatchIgnored&&(ph=!1)}if(ph){for(;cm.endsParent&&cm.parent;)cm=cm.parent;return cm}}if(cm.endsWithParent)return Gf(cm.parent,Sm,$m)}function Jf(cm){return Wf.matcher.regexIndex===0?(dh+=cm[0],1):(Nm=!0,0)}function gh(cm){const Sm=cm[0],$m=cm.rule,ph=new Response$1($m),Rf=[$m.__beforeBegin,$m["on:begin"]];for(const wf of Rf)if(wf&&(wf(cm,ph),ph.isMatchIgnored))return Jf(Sm);return $m.skip?dh+=Sm:($m.excludeBegin&&(dh+=Sm),qf(),!$m.returnBegin&&!$m.excludeBegin&&(dh=Sm)),vf($m,cm),$m.returnBegin?0:Sm.length}function th(cm){const Sm=cm[0],$m=Lf.substring(cm.index),ph=Gf(Wf,cm,$m);if(!ph)return NO_MATCH;const Rf=Wf;Wf.endScope&&Wf.endScope._wrap?(qf(),Kf(Sm,Wf.endScope._wrap)):Wf.endScope&&Wf.endScope._multi?(qf(),Tf(Wf.endScope,cm)):Rf.skip?dh+=Sm:(Rf.returnEnd||Rf.excludeEnd||(dh+=Sm),qf(),Rf.excludeEnd&&(dh=Sm));do Wf.scope&&Th.closeNode(),!Wf.skip&&!Wf.subLanguage&&(Vh+=Wf.relevance),Wf=Wf.parent;while(Wf!==ph.parent);return ph.starts&&vf(ph.starts,cm),Rf.returnEnd?0:Sm.length}function Pf(){const cm=[];for(let Sm=Wf;Sm!==Qf;Sm=Sm.parent)Sm.scope&&cm.unshift(Sm.scope);cm.forEach(Sm=>Th.openNode(Sm))}let uh={};function xh(cm,Sm){const $m=Sm&&Sm[0];if(dh+=cm,$m==null)return qf(),0;if(uh.type==="begin"&&Sm.type==="end"&&uh.index===Sm.index&&$m===""){if(dh+=Lf.slice(Sm.index,Sm.index+1),!ld){const ph=new Error(`0 width match regex (${Af})`);throw ph.languageName=Af,ph.badRule=uh.rule,ph}return 1}if(uh=Sm,Sm.type==="begin")return gh(Sm);if(Sm.type==="illegal"&&!Xf){const ph=new Error('Illegal lexeme "'+$m+'" for mode "'+(Wf.scope||"<unnamed>")+'"');throw ph.mode=Wf,ph}else if(Sm.type==="end"){const ph=th(Sm);if(ph!==NO_MATCH)return ph}if(Sm.type==="illegal"&&$m==="")return 1;if(fm>1e5&&fm>Sm.index*3)throw new Error("potential infinite loop, way more iterations than matches");return dh+=$m,$m.length}const Qf=Yd(Af);if(!Qf)throw error(ud.replace("{}",Af)),new Error('Unknown language: "'+Af+'"');const Nf=compileLanguage(Qf);let $f="",Wf=ih||Nf;const vh={},Th=new dd.__emitter(dd);Pf();let dh="",Vh=0,wh=0,fm=0,Nm=!1;try{if(Qf.__emitTokens)Qf.__emitTokens(Lf,Th
`},Id]}}return kotlin_1=ld,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function Ra(qa){const nd="[a-zA-Z_][\\w.]*",od="<\\?(lasso(script)?|=)",ld="\\]|\\?>",ud={$pattern:nd+"|&[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"},cd=qa.COMMENT("<!--","-->",{relevance:0}),dd={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[cd]}},pd={className:"meta",begin:"\\[/noprocess|"+od},fd={className:"symbol",begin:"'"+nd+"'"},md=[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:"[#$]"+nd},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:nd,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+nd,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[fd]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[qa.inherit(qa.TITLE_MODE,{begin:nd+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:ud,contains:[{className:"meta",begin:ld,relevance:0,starts:{end:"\\[|"+od,returnEnd:!0,relevance:0,contains:[cd]}},dd,pd,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:ud,contains:[{className:"meta",begin:ld,relevance:0,starts:{end:"\\[noprocess\\]|"+od,returnEnd:!0,contains:[cd]}},dd,pd].concat(md)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(md)}}return lasso_1=Ra,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function Ra(qa){const od=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
]`,Id={scope:"string",variants:[md,fd,vd,Ad]},kd={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},jd=["false","null","true"],Fd=["__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"],Md=["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"],Hd={keyword:Fd,literal:(Ef=>{const yf=[];return Ef.forEach(xf=>{yf.push(xf),xf.toLowerCase()===xf?yf.push(xf.toUpperCase()):yf.push(xf.toLowerCase())}),yf})(jd),built_in:Md},Gd=Ef=>Ef.map(yf=>yf.replace(/\|\d+$/,"")),Vd={variants:[{match:[/new/,nd.concat(Nd,"+"),nd.concat("(?!",Gd(Md).join("\\b|"),"\\b)"),ud],scope:{1:"keyword",4:"title.class"}}]},Qd=nd.concat(ld,"\\b(?!\\()"),mf={variants:[{match:[nd.concat(/::/,nd.lookahead(/(?!class\b)/)),Qd],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[ud,nd.concat(/::/,nd.lookahead(/(?!class\b)/)),Qd],scope:{1:"title.class",3:"variable.constant"}},{match:[ud,nd.concat("::",nd.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[ud,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Yd={scope:"attr",match:nd.concat(ld,nd.lookahead(":"),nd.lookahead(/(?!::)/))},Zd={relevance:0,begin:/\(/,end:/\)/,keywords:Hd,contains:[Yd,cd,mf,qa.C_BLOCK_COMMENT_MODE,Id,kd,Vd]},Kd={relevance:0,match:[/\b/,nd.concat("(?!fn\\b|function\\b|",Gd(Fd).join("\\b|"),"|",Gd(Md).join("\\b|"),"\\b)"),ld,nd.concat(Nd,"*"),nd.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Zd]};Zd.contains.push(Kd);const bf=[Yd,mf,qa.C_BLOCK_COMMENT_MODE,Id,kd,Vd],gf={begin:nd.concat(/#\[\s*/,ud),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:jd,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 nd="[a-z][a-zA-Z0-9_]*",od={className:"string",begin:"\\$.{1}"},ld={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:nd+":",relevance:0},qa.C_NUMBER_MODE,ld,od,{begin:"\\|[ ]*"+nd+"([ ]+"+nd+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+nd}]},{begin:"#\\(",end:"\\)",contains:[qa.APOS_STRING_MODE,od,qa.C_NUMBER_MODE,ld]}]}}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 nd={className:"variable",begin:/\b_+[a-zA-Z]\w*/},od={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},ld={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},ud=["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"],cd=["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"],dd=["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=fd=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:fd.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:[fd.APOS_STRING_MODE,fd.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:fd.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"],nd=["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"],od=[...qa,...nd],ld=["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(mf){return mf?typeof mf=="string"?mf:mf.source:null}function qa(mf){return nd("(?=",mf,")")}function nd(...mf){return mf.map(Zd=>Ra(Zd)).join("")}function od(mf){const Yd=mf[mf.length-1];return typeof Yd=="object"&&Yd.constructor===Object?(mf.splice(mf.length-1,1),Yd):{}}function ld(...mf){return"("+(od(mf).capture?"":"?:")+mf.map(Kd=>Ra(Kd)).join("|")+")"}const ud=mf=>nd(/\b/,mf,/\w$/.test(mf)?/\b/:/\B/),cd=["Protocol","Type"].map(ud),dd=["init","self"].map(ud),pd=["Any","Self"],fd=["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"],md=["false","nil","true"],vd=["assignment","associativity","higherThan","left","lowerThan","none","right"],Ad=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Nd=["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"],Id=ld(/[/=\-+!*%<>&|^~?]/,/[\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]/),kd=ld(Id,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),jd=nd(Id,kd,"*"),Fd=ld(/[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]/),Md=ld(Fd,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ld=nd(Fd,Md,"*"),Hd=nd(/[A-Z]/,Md,"*"),Gd=["attached","autoclosure",nd(/convention\(/,ld("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","N
]`).replace("lheading",lheading$1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape$1$1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,inlineCode$1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br$1=/^( {2,}|\\)\n(?!\s*$)/,inlineText$1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_punctuation$1=new RegExp("\\p{P}\\p{S}","u"),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$1$1,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$1$1).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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))
`).map(ud=>{const cd=ud.match(nd.other.beginningSpace);if(cd===null)return ud;const[dd]=cd;return dd.length>=ld.length?ud.slice(ld.length):ud}).join(`
`)}let _Tokenizer$1=class{constructor(qa){p_(this,"options");p_(this,"rules");p_(this,"lexer");this.options=qa||_defaults$1}space(qa){const nd=this.rules.block.newline.exec(qa);if(nd&&nd[0].length>0)return{type:"space",raw:nd[0]}}code(qa){const nd=this.rules.block.code.exec(qa);if(nd){const od=nd[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:nd[0],codeBlockStyle:"indented",text:this.options.pedantic?od:rtrim$1(od,`
`)}}}fences(qa){const nd=this.rules.block.fences.exec(qa);if(nd){const od=nd[0],ld=indentCodeCompensation$1(od,nd[3]||"",this.rules);return{type:"code",raw:od,lang:nd[2]?nd[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):nd[2],text:ld}}}heading(qa){const nd=this.rules.block.heading.exec(qa);if(nd){let od=nd[2].trim();if(this.rules.other.endingHash.test(od)){const ld=rtrim$1(od,"#");(this.options.pedantic||!ld||this.rules.other.endingSpaceChar.test(ld))&&(od=ld.trim())}return{type:"heading",raw:nd[0],depth:nd[1].length,text:od,tokens:this.lexer.inline(od)}}}hr(qa){const nd=this.rules.block.hr.exec(qa);if(nd)return{type:"hr",raw:rtrim$1(nd[0],`
`)}}blockquote(qa){const nd=this.rules.block.blockquote.exec(qa);if(nd){let od=rtrim$1(nd[0],`
`).split(`
`),ld="",ud="";const cd=[];for(;od.length>0;){let dd=!1;const pd=[];let fd;for(fd=0;fd<od.length;fd++)if(this.rules.other.blockquoteStart.test(od[fd]))pd.push(od[fd]),dd=!0;else if(!dd)pd.push(od[fd]);else break;od=od.slice(fd);const md=pd.join(`
`),vd=md.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");ld=ld?`${ld}
${md}`:md,ud=ud?`${ud}
${vd}`:vd;const Ad=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(vd,cd,!0),this.lexer.state.top=Ad,od.length===0)break;const Nd=cd.at(-1);if((Nd==null?void 0:Nd.type)==="code")break;if((Nd==null?void 0:Nd.type)==="blockquote"){const Id=Nd,kd=Id.raw+`
`+od.join(`
`),jd=this.blockquote(kd);cd[cd.length-1]=jd,ld=ld.substring(0,ld.length-Id.raw.length)+jd.raw,ud=ud.substring(0,ud.length-Id.text.length)+jd.text;break}else if((Nd==null?void 0:Nd.type)==="list"){const Id=Nd,kd=Id.raw+`
`+od.join(`
`),jd=this.list(kd);cd[cd.length-1]=jd,ld=ld.substring(0,ld.length-Nd.raw.length)+jd.raw,ud=ud.substring(0,ud.length-Id.raw.length)+jd.raw,od=kd.substring(cd.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:ld,tokens:cd,text:ud}}}list(qa){let nd=this.rules.block.list.exec(qa);if(nd){let od=nd[1].trim();const ld=od.length>1,ud={type:"list",raw:"",ordered:ld,start:ld?+od.slice(0,-1):"",loose:!1,items:[]};od=ld?`\\d{1,9}\\${od.slice(-1)}`:`\\${od}`,this.options.pedantic&&(od=ld?od:"[*+-]");const cd=this.rules.other.listItemRegex(od);let dd=!1;for(;qa;){let fd=!1,md="",vd="";if(!(nd=cd.exec(qa))||this.rules.block.hr.test(qa))break;md=nd[0],qa=qa.substring(md.length);let Ad=nd[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,Md=>" ".repeat(3*Md.length)),Nd=qa.split(`
`,1)[0],Id=!Ad.trim(),kd=0;if(this.options.pedantic?(kd=2,vd=Ad.trimStart()):Id?kd=nd[1].length+1:(kd=nd[2].search(this.rules.other.nonSpaceChar),kd=kd>4?1:kd,vd=Ad.slice(kd),kd+=nd[1].length),Id&&this.rules.other.blankLine.test(Nd)&&(md+=Nd+`
`,qa=qa.substring(Nd.length+1),fd=!0),!fd){const Md=this.rules.other.nextBulletRegex(kd),Ld=this.rules.other.hrRegex(kd),Hd=this.rules.other.fencesBeginRegex(kd),Gd=this.rules.other.headingBeginRegex(kd),Vd=this.rules.other.htmlBeginRegex(kd);for(;qa;){const Qd=qa.split(`
`,1)[0];let mf;if(Nd=Qd,this.options.pedantic?(Nd=Nd.replace(this.rules.other.listReplaceNesting," "),mf=Nd):mf=Nd.replace(this.rules.other.tabCharGlobal," "),Hd.test(Nd)||Gd.test(Nd)||Vd.test(Nd)||Md.test(Nd)||Ld.test(Nd))break;if(mf.search(this.rules.other.nonSpaceChar)>=kd||!Nd.trim())vd+=`
`+mf.slice(kd);else{if(Id||Ad.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Hd.test(Ad)||Gd.test(Ad)||Ld.test(Ad))break;vd+=`
`+Nd}!Id&&!Nd.trim()&&(Id=!0),md+=Qd+`
`,qa=qa.substring(Qd.length+1),Ad=mf.slice(kd)}}ud.loose||(dd?ud.loose=!0:this.rules.other.doubleBlankLine.test(md)&&(dd=!0));let jd=null,Fd;this.options.gfm&&(jd=this.rules.other.listIsTask.exec(vd),jd&&(Fd=jd[0]!=="[ ] ",vd=vd.replace(this.rules.other.listReplaceTask,""))),ud.items.push({type:"list_item",raw:md,task:!!jd,checked:Fd,loose:!1,text:vd,tokens:[]}),ud.raw+=md}const pd=ud.items.at(-1);pd&&(pd.raw=pd.raw.trimEnd(),pd.text=pd.text.trimEnd()),ud.raw=ud.raw.trimEnd();for(let fd=0;fd<ud.items.length;fd++)if(this.lexer.state.top=!1,ud.items[fd].tokens=this.lexer.blockTokens(ud.items[fd].text,[]),!ud.loose){const md=ud.items[fd].tokens.filter(Ad=>Ad.type==="space"),vd=md.length>0&&md.some(Ad=>this.rules.other.anyLine.test(Ad.raw));ud.loose=vd}if(ud.loose)for(let fd=0;fd<ud.items.length;fd++)ud.items[fd].loose=!0;return ud}}html(qa){const nd=this.rules.block.html.exec(qa);if(nd)return{type:"html",block:!0,raw:nd[0],pre:nd[1]==="pre"||nd[1]==="script"||nd[1]==="style",text:nd[0]}}def(qa){const nd=this.rules.block.def.exec(qa);if(nd){const od=nd[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),ld=nd[2]?nd[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",ud=nd[3]?nd[3].substring(1,nd[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):nd[3];return{type:"def",tag:od,raw:nd[0],href:ld,title:ud}}}table(qa){var dd;const nd=this.rules.block.table.exec(qa);if(!nd||!this.rules.other.tableDelimiter.test(nd[2]))return;const od=splitCells$1(nd[1]),ld=nd[2].replace(this.rules.other.tableAlignChars,"").split("|"),ud=(dd=nd[3])!=null&&dd.trim()?nd[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],cd={type:"table",raw:nd[0],header:[],align:[],rows:[]};if(od.length===ld.length){for(const pd of ld)this.rules.other.tableAlignRight.test(pd)?cd.align.push("right"):this.rules.other.tableAlignCenter.test(pd)?cd.align.push("center"):this.rules.other.tableAlignLeft.test(pd)?cd.align.push("left"):cd.align.push(null);for(let pd=0;pd<od.length;pd++)cd.header.push({text:od[pd],tokens:this.lexer.inline(od[pd]),header:!0,align:cd.align[pd]});for(const pd of ud)cd.rows.push(splitCells$1(pd,cd.header.length).map((fd,md)=>({text:fd,tokens:this.lexer.inline(fd),header:!1,align:cd.align[md]})));return cd}}lheading(qa){const nd=this.rules.block.lheading.exec(qa);if(nd)return{type:"heading",raw:nd[0],depth:nd[2].charAt(0)==="="?1:2,text:nd[1],tokens:this.lexer.inline(nd[1])}}paragraph(qa){const nd=this.rules.block.paragraph.exec(qa);if(nd){const od=nd[1].charAt(nd[1].length-1)===`
`?nd[1].slice(0,-1):nd[1];return{type:"paragraph",raw:nd[0],text:od,tokens:this.lexer.inline(od)}}}text(qa){const nd=this.rules.block.text.exec(qa);if(nd)return{type:"text",raw:nd[0],text:nd[0],tokens:this.lexer.inline(nd[0])}}escape(qa){const nd=this.rules.inline.escape.exec(qa);if(nd)return{type:"escape",raw:nd[0],text:nd[1]}}tag(qa){const nd=this.rules.inline.tag.exec(qa);if(nd)return!this.lexer.state.inLink&&this.rules.other.startATag.test(nd[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(nd[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(nd[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(nd[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:nd[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:nd[0]}}link(qa){const nd=this.rules.inline.link.exec(qa);if(nd){const od=nd[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(od)){if(!this.rules.other.endAngleBracket.test(od))return;const cd=rtrim$1(od.slice(0,-1),"\\");if((od.length-cd.length)%2===0)return}else{const cd=findClosingBracket$1(nd[2],"()");if(cd>-1){const pd=(nd[0].indexOf("!")===0?5:4)+nd[1].length+cd;nd[2]=nd[2].substring(0,cd),nd[0]=nd[0].substring(0,pd).trim(),nd[3]=""}}let ld=nd[2],ud="";if(this.options.pedantic){const cd=this.rules.other.pedanticHrefTitle.exec(ld);cd&&(ld=cd[1],ud=cd[3])}else ud=nd[3]?nd[3].slice(1,-1):"";return ld=ld.trim(),this.rules.other.startAngleBracket.test(ld)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(od)?ld=ld.slice(1):ld=ld.slice(1,-1)),outputLink$1(nd,{href:ld&&ld.replace(this.rules.inline.anyPunctuation,"$1"),title:ud&&ud.replace(this.rules.inline.anyPunctuation,"$1")},nd[0],this.lexer,this.rules)}}reflink(qa,nd){let od;if((od=this.rules.inline.reflink.exec(qa))||(od=this.rules.inline.nolink.exec(qa))){const ld=(od[2]||od[1]).replace(this.rules.other.multipleSpaceGlobal," "),ud=nd[ld.toLowerCase()];if(!ud){const cd=od[0].charAt(0);return{type:"text",raw:cd,text:cd}}return outputLink$1(od,ud,od[0],this.lexer,this.rules)}}emStrong(qa,nd,od=""){let ld=this.rules.inline.emStrongLDelim.exec(qa);if(!ld||ld[3]&&od.match(this.rules.other.unicodeAlphaNumeric))return;if(!(ld[1]||ld[2]||"")||!od||this.rules.inline.punctuation.exec(od)){const cd=[...ld[0]].length-1;let dd,pd,fd=cd,md=0;const vd=ld[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(vd.lastIndex=0,nd=nd.slice(-1*qa.length+cd);(ld=vd.exec(nd))!=null;){if(dd=ld[1]||ld[2]||ld[3]||ld[4]||ld[5]||ld[6],!dd)continue;if(pd=[...dd].length,ld[3]||ld[4]){fd+=pd;continue}else if((ld[5]||ld[6])&&cd%3&&!((cd+pd)%3)){md+=pd;continue}if(fd-=pd,fd>0)continue;pd=Math.min(pd,pd+fd+md);const Ad=[...ld[0]][0].length,Nd=qa.slice(0,cd+ld.index+Ad+pd);if(Math.min(cd,pd)%2){const kd=Nd.slice(1,-1);return{type:"em",raw:Nd,text:kd,tokens:this.lexer.inlineTokens(kd)}}const Id=Nd.slice(2,-2);return{type:"strong",raw:Nd,text:Id,tokens:this.lexer.inlineTokens(Id)}}}}codespan(qa){const nd=this.rules.inline.code.exec(qa);if(nd){let od=nd[2].replace(this.rules.other.newLineCharGlobal," ");const ld=this.rules.other.nonSpaceChar.test(od),ud=this.rules.other.startingSpaceChar.test(od)&&this.rules.other.endingSpaceChar.test(od);return ld&&ud&&(od=od.substring(1,od.length-1)),{type:"codespan",raw:nd[0],text:od}}}br(qa){const nd=this.rules.inline.br.exec(qa);if(nd)return{type:"br",raw:nd[0]}}del(qa){const nd=this.rules.inline.del.exec(qa);if(nd)return{type:"del",raw:nd[0],text:nd[2],tokens:this.lexer.inlineTokens(nd[2])}}autolink(qa){const nd=this.rules.inline.autolink.exec(qa);if(nd){let od,ld;return nd[2]==="@"?(od=nd[1],ld="mailto:"+od):(od=nd[1],ld=od),{type:"link",raw:nd[0],text:od,href:ld,tokens:[{type:"text",raw:od,text:od}]}}}url(qa){var od;let nd;if(nd=this.rules.inline.url.exec(qa)){let ld,ud;if(nd[2]==="@")ld=nd[0],ud="mailto:"+ld;else{let cd;do cd=nd[0],nd[0]=((od=this.rules.inline._backpedal.exec(nd[0]))==null?void 0:od[0])??"";w
`),this.blockTokens(qa,this.tokens);for(let nd=0;nd<this.inlineQueue.length;nd++){const od=this.inlineQueue[nd];this.inlineTokens(od.src,od.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,nd=[],od=!1){var ld,ud,cd;for(this.options.pedantic&&(qa=qa.replace(other.tabCharGlobal," ").replace(other.spaceLine,""));qa;){let dd;if((ud=(ld=this.options.extensions)==null?void 0:ld.block)!=null&&ud.some(fd=>(dd=fd.call({lexer:this},qa,nd))?(qa=qa.substring(dd.raw.length),nd.push(dd),!0):!1))continue;if(dd=this.tokenizer.space(qa)){qa=qa.substring(dd.raw.length);const fd=nd.at(-1);dd.raw.length===1&&fd!==void 0?fd.raw+=`
`:nd.push(dd);continue}if(dd=this.tokenizer.code(qa)){qa=qa.substring(dd.raw.length);const fd=nd.at(-1);(fd==null?void 0:fd.type)==="paragraph"||(fd==null?void 0:fd.type)==="text"?(fd.raw+=`
`+dd.raw,fd.text+=`
`+dd.text,this.inlineQueue.at(-1).src=fd.text):nd.push(dd);continue}if(dd=this.tokenizer.fences(qa)){qa=qa.substring(dd.raw.length),nd.push(dd);continue}if(dd=this.tokenizer.heading(qa)){qa=qa.substring(dd.raw.length),nd.push(dd);continue}if(dd=this.tokenizer.hr(qa)){qa=qa.substring(dd.raw.length),nd.push(dd);continue}if(dd=this.tokenizer.blockquote(qa)){qa=qa.substring(dd.raw.length),nd.push(dd);continue}if(dd=this.tokenizer.list(qa)){qa=qa.substring(dd.raw.length),nd.push(dd);continue}if(dd=this.tokenizer.html(qa)){qa=qa.substring(dd.raw.length),nd.push(dd);continue}if(dd=this.tokenizer.def(qa)){qa=qa.substring(dd.raw.length);const fd=nd.at(-1);(fd==null?void 0:fd.type)==="paragraph"||(fd==null?void 0:fd.type)==="text"?(fd.raw+=`
`+dd.raw,fd.text+=`
`+dd.raw,this.inlineQueue.at(-1).src=fd.text):this.tokens.links[dd.tag]||(this.tokens.links[dd.tag]={href:dd.href,title:dd.title});continue}if(dd=this.tokenizer.table(qa)){qa=qa.substring(dd.raw.length),nd.push(dd);continue}if(dd=this.tokenizer.lheading(qa)){qa=qa.substring(dd.raw.length),nd.push(dd);continue}let pd=qa;if((cd=this.options.extensions)!=null&&cd.startBlock){let fd=1/0;const md=qa.slice(1);let vd;this.options.extensions.startBlock.forEach(Ad=>{vd=Ad.call({lexer:this},md),typeof vd=="number"&&vd>=0&&(fd=Math.min(fd,vd))}),fd<1/0&&fd>=0&&(pd=qa.substring(0,fd+1))}if(this.state.top&&(dd=this.tokenizer.paragraph(pd))){const fd=nd.at(-1);od&&(fd==null?void 0:fd.type)==="paragraph"?(fd.raw+=`
`+dd.raw,fd.text+=`
`+dd.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=fd.text):nd.push(dd),od=pd.length!==qa.length,qa=qa.substring(dd.raw.length);continue}if(dd=this.tokenizer.text(qa)){qa=qa.substring(dd.raw.length);const fd=nd.at(-1);(fd==null?void 0:fd.type)==="text"?(fd.raw+=`
`+dd.raw,fd.text+=`
`+dd.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=fd.text):nd.push(dd);continue}if(qa){const fd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(fd);break}else throw new Error(fd)}}return this.state.top=!0,nd}inline(qa,nd=[]){return this.inlineQueue.push({src:qa,tokens:nd}),nd}inlineTokens(qa,nd=[]){var dd,pd,fd;let od=qa,ld=null;if(this.tokens.links){const md=Object.keys(this.tokens.links);if(md.length>0)for(;(ld=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)md.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);let ud=!1,cd="";for(;qa;){ud||(cd=""),ud=!1;let md;if((pd=(dd=this.options.extensions)==null?void 0:dd.inline)!=null&&pd.some(Ad=>(md=Ad.call({lexer:this},qa,nd))?(qa=qa.substring(md.raw.length),nd.push(md),!0):!1))continue;if(md=this.tokenizer.escape(qa)){qa=qa.substring(md.raw.length),nd.push(md);continue}if(md=this.tokenizer.tag(qa)){qa=qa.substring(md.raw.length),nd.push(md);continue}if(md=this.tokenizer.link(qa)){qa=qa.substring(md.raw.length),nd.push(md);continue}if(md=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(md.raw.length);const Ad=nd.at(-1);md.type==="text"&&(Ad==null?void 0:Ad.type)==="text"?(Ad.raw+=md.raw,Ad.text+=md.text):nd.push(md);continue}if(md=this.tokenizer.emStrong(qa,od,cd)){qa=qa.substring(md.raw.length),nd.push(md);continue}if(md=this.tokenizer.codespan(qa)){qa=qa.substring(md.raw.length),nd.push(md);continue}if(md=this.tokenizer.br(qa)){qa=qa.substring(md.raw.length),nd.push(md);continue}if(md=this.tokenizer.del(qa)){qa=qa.substring(md.raw.length),nd.push(md);continue}if(md=this.tokenizer.autolink(qa)){qa=qa.substring(md.raw.length),nd.push(md);continue}if(!this.state.inLink&&(md=this.tokenizer.url(qa))){qa=qa.substring(md.raw.length),nd.push(md);continue}let vd=qa;if((fd=this.options.extensions)!=null&&fd.startInline){let Ad=1/0;const Nd=qa.slice(1);let Id;this.options.extensions.startInline.forEach(kd=>{Id=kd.call({lexer:this},Nd),typeof Id=="number"&&Id>=0&&(Ad=Math.min(Ad,Id))}),Ad<1/0&&Ad>=0&&(vd=qa.substring(0,Ad+1))}if(md=this.tokenizer.inlineText(vd)){qa=qa.substring(md.raw.length),md.raw.slice(-1)!=="_"&&(cd=md.raw.slice(-1)),ud=!0;const Ad=nd.at(-1);(Ad==null?void 0:Ad.type)==="text"?(Ad.raw+=md.raw,Ad.text+=md.text):nd.push(md);continue}if(qa){const Ad="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(Ad);break}else throw new Error(Ad)}}return nd}},_Renderer$1=class{constructor(qa){p_(this,"options");p_(this,"parser");this.options=qa||_defaults$1}space(qa){return""}code({text:qa,lang:nd,escaped:od}){var cd;const ld=(cd=(nd||"").match(other.notSpaceStart))==null?void 0:cd[0],ud=qa.replace(other.endingNewline,"")+`
`;return ld?'<pre><code class="language-'+escape$3(ld)+'">'+(od?ud:escape$3(ud,!0))+`</code></pre>
`:"<pre><code>"+(od?ud:escape$3(ud,!0))+`</code></pre>
`}blockquote({tokens:qa}){return`<blockquote>
${this.parser.parse(qa)}</blockquote>
`}html({text:qa}){return qa}heading({tokens:qa,depth:nd}){return`<h${nd}>${this.parser.parseInline(qa)}</h${nd}>
`}hr(qa){return`<hr>
`}list(qa){const nd=qa.ordered,od=qa.start;let ld="";for(let dd=0;dd<qa.items.length;dd++){const pd=qa.items[dd];ld+=this.listitem(pd)}const ud=nd?"ol":"ul",cd=nd&&od!==1?' start="'+od+'"':"";return"<"+ud+cd+`>
`+ld+"</"+ud+`>
`}listitem(qa){var od;let nd="";if(qa.task){const ld=this.checkbox({checked:!!qa.checked});qa.loose?((od=qa.tokens[0])==null?void 0:od.type)==="paragraph"?(qa.tokens[0].text=ld+" "+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=ld+" "+escape$3(qa.tokens[0].tokens[0].text),qa.tokens[0].tokens[0].escaped=!0)):qa.tokens.unshift({type:"text",raw:ld+" ",text:ld+" ",escaped:!0}):nd+=ld+" "}return nd+=this.parser.parse(qa.tokens,!!qa.loose),`<li>${nd}</li>
`}checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return`<p>${this.parser.parseInline(qa)}</p>
`}table(qa){let nd="",od="";for(let ud=0;ud<qa.header.length;ud++)od+=this.tablecell(qa.header[ud]);nd+=this.tablerow({text:od});let ld="";for(let ud=0;ud<qa.rows.length;ud++){const cd=qa.rows[ud];od="";for(let dd=0;dd<cd.length;dd++)od+=this.tablecell(cd[dd]);ld+=this.tablerow({text:od})}return ld&&(ld=`<tbody>${ld}</tbody>`),`<table>
<thead>
`+nd+`</thead>
`+ld+`</table>
`}tablerow({text:qa}){return`<tr>
${qa}</tr>
`}tablecell(qa){const nd=this.parser.parseInline(qa.tokens),od=qa.header?"th":"td";return(qa.align?`<${od} align="${qa.align}">`:`<${od}>`)+nd+`</${od}>
`}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>${escape$3(qa,!0)}</code>`}br(qa){return"<br>"}del({tokens:qa}){return`<del>${this.parser.parseInline(qa)}</del>`}link({href:qa,title:nd,tokens:od}){const ld=this.parser.parseInline(od),ud=cleanUrl$1(qa);if(ud===null)return ld;qa=ud;let cd='<a href="'+qa+'"';return nd&&(cd+=' title="'+escape$3(nd)+'"'),cd+=">"+ld+"</a>",cd}image({href:qa,title:nd,text:od}){const ld=cleanUrl$1(qa);if(ld===null)return escape$3(od);qa=ld;let ud=`<img src="${qa}" alt="${od}"`;return nd&&(ud+=` title="${escape$3(nd)}"`),ud+=">",ud}text(qa){return"tokens"in qa&&qa.tokens?this.parser.parseInline(qa.tokens):"escaped"in qa&&qa.escaped?qa.text:escape$3(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 X1{constructor(qa){p_(this,"options");p_(this,"renderer");p_(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,nd){return new X1(nd).parse(qa)}static parseInline(qa,nd){return new X1(nd).parseInline(qa)}parse(qa,nd=!0){var ld,ud;let od="";for(let cd=0;cd<qa.length;cd++){const dd=qa[cd];if((ud=(ld=this.options.extensions)==null?void 0:ld.renderers)!=null&&ud[dd.type]){const fd=dd,md=this.options.extensions.renderers[fd.type].call({parser:this},fd);if(md!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(fd.type)){od+=md||"";continue}}const pd=dd;switch(pd.type){case"space":{od+=this.renderer.space(pd);continue}case"hr":{od+=this.renderer.hr(pd);continue}case"heading":{od+=this.renderer.heading(pd);continue}case"code":{od+=this.renderer.code(pd);continue}case"table":{od+=this.renderer.table(pd);continue}case"blockquote":{od+=this.renderer.blockquote(pd);continue}case"list":{od+=this.renderer.list(pd);continue}case"html":{od+=this.renderer.html(pd);continue}case"paragraph":{od+=this.renderer.paragraph(pd);continue}case"text":{let fd=pd,md=this.renderer.text(fd);for(;cd+1<qa.length&&qa[cd+1].type==="text";)fd=qa[++cd],md+=`
`+this.renderer.text(fd);nd?od+=this.renderer.paragraph({type:"paragraph",raw:md,text:md,tokens:[{type:"text",raw:md,text:md,escaped:!0}]}):od+=md;continue}default:{const fd='Token with "'+pd.type+'" type was not found.';if(this.options.silent)return console.error(fd),"";throw new Error(fd)}}}return od}parseInline(qa,nd=this.renderer){var ld,ud;let od="";for(let cd=0;cd<qa.length;cd++){const dd=qa[cd];if((ud=(ld=this.options.extensions)==null?void 0:ld.renderers)!=null&&ud[dd.type]){const fd=this.options.extensions.renderers[dd.type].call({parser:this},dd);if(fd!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(dd.type)){od+=fd||"";continue}}const pd=dd;switch(pd.type){case"escape":{od+=nd.text(pd);break}case"html":{od+=nd.html(pd);break}case"link":{od+=nd.link(pd);break}case"image":{od+=nd.image(pd);break}case"strong":{od+=nd.strong(pd);break}case"em":{od+=nd.em(pd);break}case"codespan":{od+=nd.codespan(pd);break}case"br":{od+=nd.br(pd);break}case"del":{od+=nd.del(pd);break}case"text":{od+=nd.text(pd);break}default:{const fd='Token with "'+pd.type+'" type was not found.';if(this.options.silent)return console.error(fd),"";throw new Error(fd)}}}return od}};var Y1;let _Hooks$1=(Y1=class{constructor(qa){p_(this,"options");p_(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}},p_(Y1,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Y1),Marked$1=class{constructor(...qa){p_(this,"defaults",_getDefaults$1());p_(this,"options",this.setOptions);p_(this,"parse",this.parseMarkdown(!0));p_(this,"parseInline",this.parseMarkdown(!1));p_(this,"Parser",_Parser$1);p_(this,"Renderer",_Renderer$1);p_(this,"TextRenderer",_TextRenderer$1);p_(this,"Lexer",_Lexer$1);p_(this,"Tokenizer",_Tokenizer$1);p_(this,"Hooks",_Hooks$1);this.use(...qa)}walkTokens(qa,nd){var ld,ud;let od=[];for(const cd of qa)switch(od=od.concat(nd.call(this,cd)),cd.type){case"table":{const dd=cd;for(const pd of dd.header)od=od.concat(this.walkTokens(pd.tokens,nd));for(const pd of dd.rows)for(const fd of pd)od=od.concat(this.walkTokens(fd.tokens,nd));break}case"list":{const dd=cd;od=od.concat(this.walkTokens(dd.items,nd));break}default:{const dd=cd;(ud=(ld=this.defaults.extensions)==null?void 0:ld.childTokens)!=null&&ud[dd.type]?this.defaults.extensions.childTokens[dd.type].forEach(pd=>{const fd=dd[pd].flat(1/0);od=od.concat(this.walkTokens(fd,nd))}):dd.tokens&&(od=od.concat(this.walkTokens(dd.tokens,nd)))}}return od}use(...qa){const nd=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(od=>{const ld={...od};if(ld.async=this.defaults.async||ld.async||!1,od.extensions&&(od.extensions.forEach(ud=>{if(!ud.name)throw new Error("extension name required");if("renderer"in ud){const cd=nd.renderers[ud.name];cd?nd.renderers[ud.name]=function(...dd){let pd=ud.renderer.apply(this,dd);return pd===!1&&(pd=cd.apply(this,dd)),pd}:nd.renderers[ud.name]=ud.renderer}if("tokenizer"in ud){if(!ud.level||ud.level!=="block"&&ud.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const cd=nd[ud.level];cd?cd.unshift(ud.tokenizer):nd[ud.level]=[ud.tokenizer],ud.start&&(ud.level==="block"?nd.startBlock?nd.startBlock.push(ud.start):nd.startBlock=[ud.start]:ud.level==="inline"&&(nd.startInline?nd.startInline.push(ud.start):nd.startInline=[ud.start]))}"childTokens"in ud&&ud.childTokens&&(nd.childTokens[ud.name]=ud.childTokens)}),ld.extensions=nd),od.renderer){const ud=this.defaults.renderer||new _Renderer$1(this.defaults);for(const cd in od.renderer){if(!(cd in ud))throw new Error(`renderer '${cd}' does not exist`);if(["options","parser"].includes(cd))continue;const dd=cd,pd=od.renderer[dd],fd=ud[dd];ud[dd]=(...md)=>{let vd=pd.apply(ud,md);return vd===!1&&(vd=fd.apply(ud,md)),vd||""}}ld.renderer=ud}if(od.tokenizer){const ud=this.defaults.tokenizer||new _Tokenizer$1(this.defau
Please report this to https://github.com/markedjs/marked.`,qa){const ld="<p>An error occurred:</p><pre>"+escape$3(od.message+"",!0)+"</pre>";return nd?Promise.resolve(ld):ld}if(nd)return Promise.reject(od);throw od}}};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,nd,od){let ld=Promise.resolve();if(nd&&nd.length>0){document.getElementsByTagName("link");const cd=document.querySelector("meta[property=csp-nonce]"),dd=(cd==null?void 0:cd.nonce)||(cd==null?void 0:cd.getAttribute("nonce"));ld=Promise.allSettled(nd.map(pd=>{if(pd=assetsURL(pd),pd in seen)return;seen[pd]=!0;const fd=pd.endsWith(".css"),md=fd?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${pd}"]${md}`))return;const vd=document.createElement("link");if(vd.rel=fd?"stylesheet":scriptRel,fd||(vd.as="script"),vd.crossOrigin="",vd.href=pd,dd&&vd.setAttribute("nonce",dd),document.head.appendChild(vd),fd)return new Promise((Ad,Nd)=>{vd.addEventListener("load",Ad),vd.addEventListener("error",()=>Nd(new Error(`Unable to preload CSS for ${pd}`)))})}))}function ud(cd){const dd=new Event("vite:preloadError",{cancelable:!0});if(dd.payload=cd,window.dispatchEvent(dd),!dd.defaultPrevented)throw cd}return ld.then(cd=>{for(const dd of cd||[])dd.status==="rejected"&&ud(dd.reason);return qa().catch(ud)})};var dayjs_min={exports:{}};(function(Ra,qa){(function(nd,od){Ra.exports=od()})(commonjsGlobal,function(){var nd=1e3,od=6e4,ld=36e5,ud="millisecond",cd="second",dd="minute",pd="hour",fd="day",md="week",vd="month",Ad="quarter",Nd="year",Id="date",kd="Invalid Date",jd=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Fd=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Md={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ef){var yf=["th","st","nd","rd"],xf=Ef%100;return"["+Ef+(yf[(xf-20)%10]||yf[xf]||yf[0])+"]"}},Ld=function(Ef,yf,xf){var Af=String(Ef);return!Af||Af.length>=yf?Ef:""+Array(yf+1-Af.length).join(xf)+Ef},Hd={s:Ld,z:function(Ef){var yf=-Ef.utcOffset(),xf=Math.abs(yf),Af=Math.floor(xf/60),Lf=xf%60;return(yf<=0?"+":"-")+Ld(Af,2,"0")+":"+Ld(Lf,2,"0")},m:function Ef(yf,xf){if(yf.date()<xf.date())return-Ef(xf,yf);var Af=12*(xf.year()-yf.year())+(xf.month()-yf.month()),Lf=yf.clone().add(Af,vd),Xf=xf-Lf<0,ih=yf.clone().add(Af+(Xf?-1:1),vd);return+(-(Af+(xf-Lf)/(Xf?Lf-ih:ih-Lf))||0)},a:function(Ef){return Ef<0?Math.ceil(Ef)||0:Math.floor(Ef)},p:function(Ef){return{M:vd,y:Nd,w:md,d:fd,D:Id,h:pd,m:dd,s:cd,ms:ud,Q:Ad}[Ef]||String(Ef||"").toLowerCase().replace(/s$/,"")},u:function(Ef){return Ef===void 0}},Gd="en",Vd={};Vd[Gd]=Md;var Qd="$isDayjsObject",mf=function(Ef){return Ef instanceof bf||!(!Ef||!Ef[Qd])},Yd=function Ef(yf,xf,Af){var Lf;if(!yf)return Gd;if(typeof yf=="string"){var Xf=yf.toLowerCase();Vd[Xf]&&(Lf=Xf),xf&&(Vd[Xf]=xf,Lf=Xf);var ih=yf.split("-");if(!Lf&&ih.length>1)return
`+j_),th&&arrayForEach([bf,gf,Ef],B_=>{j_=stringReplace(j_,B_," ")}),Hd&&Wf?Hd.createHTML(j_):j_},qa.setConfig=function(){let im=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L_(im),xh=!0},qa.clearConfig=function(){M_=null,xh=!1},qa.isValidAttribute=function(im,Rh,Im){M_||L_({});const Pm=x_(im),i_=x_(Rh);return Sh(Pm,i_,Im)},qa.addHook=function(im,Rh){typeof Rh=="function"&&(Kd[im]=Kd[im]||[],arrayPush(Kd[im],Rh))},qa.removeHook=function(im){if(Kd[im])return arrayPop(Kd[im])},qa.removeHooks=function(im){Kd[im]&&(Kd[im]=[])},qa.removeAllHooks=function(){Kd={}},qa}var purify=createDOMPurify(),__defProp=Object.defineProperty,__name=(Ra,qa)=>__defProp(Ra,"name",{value:qa,configurable:!0}),__export=(Ra,qa)=>{for(var nd in qa)__defProp(Ra,nd,{get:qa[nd],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,sT,UnknownDiagramError=(sT=class extends Error{constructor(qa){super(qa),this.name="UnknownDiagramError"}},__name(sT,"UnknownDiagramError"),sT),detectors={},detectType$1=__name(function(Ra,qa){Ra=Ra.replace(frontMatterRegex,"").replace(directiveRegex,"").replace(anyCommentRegex,`
`);for(const[nd,{detector:od}]of Object.entries(detectors))if(od(Ra,qa))return nd;throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${Ra}`)},"detectType"),registerLazyLoadedDiagrams=__name((...Ra)=>{for(const{id:qa,detector:nd,loader:od}of Ra)addDetector(qa,nd,od)},"registerLazyLoadedDiagrams"),addDetector=__name((Ra,qa,nd)=>{detectors[Ra]&&log$1.warn(`Detector with key ${Ra} already exists. Overwriting.`),detectors[Ra]={detector:qa,loader:nd},log$1.debug(`Detector with key ${Ra} added${nd?" with loader":""}`)},"addDetector"),getDiagramLoader=__name(Ra=>detectors[Ra].loader,"getDiagramLoader"),assignWithDepth=__name((Ra,qa,{depth:nd=2,clobber:od=!1}={})=>{const ld={depth:nd,clobber:od};return Array.isArray(qa)&&!Array.isArray(Ra)?(qa.forEach(ud=>assignWithDepth(Ra,ud,ld)),Ra):Array.isArray(qa)&&Array.isArray(Ra)?(qa.forEach(ud=>{Ra.includes(ud)||Ra.push(ud)}),Ra):Ra===void 0||nd<=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(ud=>{typeof qa[ud]=="object"&&(Ra[ud]===void 0||typeof Ra[ud]=="object")?(Ra[ud]===void 0&&(Ra[ud]=Array.isArray(qa[ud])?[]:{}),Ra[ud]=assignWithDepth(Ra[ud],qa[ud],{depth:nd-1,clobber:od})):(od||typeof Ra[ud]!="object"&&typeof qa[ud]!="object")&&(Ra[ud]=qa[ud])}),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"),oT,Theme=(oT=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 nd,od,ld,ud,cd,dd,pd,fd,md,vd,Ad;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: ${nd.fontFamily};
font-size: ${nd.fontSize};
fill: ${nd.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${nd.errorBkgColor};
}
& .error-text {
fill: ${nd.errorTextColor};
stroke: ${nd.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: ${nd.lineColor};
stroke: ${nd.lineColor};
}
& .marker.cross {
stroke: ${nd.lineColor};
}
& svg {
font-family: ${nd.fontFamily};
font-size: ${nd.fontSize};
}
& p {
margin: 0
}
${od}
${qa}
`},"getStyles"),addStylesForDiagram=__name((Ra,qa)=>{qa!==void 0&&(themes[Ra]=qa)},"addStylesForDiagram"),styles_default=getStyles$1,commonDb_exports={};__export(commonDb_exports,{clear:()=>clear$2,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$2=__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,nd)=>{var od;diagrams[Ra]&&log2.warn(`Diagram with id ${Ra} already registered. Overwriting.`),diagrams[Ra]=qa,nd&&addDetector(Ra,nd),addStylesForDiagram(Ra,qa.styles),(od=qa.injectUtils)==null||od.call(qa,log2,setLogLevel2,getConfig2,sanitizeText3,setupGraphViewbox2,getCommonDb(),()=>{})},"registerDiagram"),getDiagram=__name(Ra=>{if(Ra in diagrams)return diagrams[Ra];throw new DiagramNotFoundError(Ra)},"getDiagram"),pT,DiagramNotFoundError=(pT=class extends Error{constructor(qa){super(`Diagram ${qa} not found.`)}},__name(pT,"DiagramNotFoundError"),pT);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$2(Ra,qa){var nd,od,ld,ud;if(qa)for(ud=Object.keys(qa),nd=0,od=ud.length;nd<od;nd+=1)ld=ud[nd],Ra[ld]=qa[ld];return Ra}__name(extend$2,"extend");function repeat(Ra,qa){var nd="",od;for(od=0;od<qa;od+=1)nd+=Ra;return nd}__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$2,common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(Ra,qa){var nd="",od=Ra.reason||"(unknown reason)";return Ra.mark?(Ra.mark.name&&(nd+='in "'+Ra.mark.name+'" '),nd+="("+(Ra.mark.line+1)+":"+(Ra.mark.column+1)+")",!qa&&Ra.mark.snippet&&(nd+=`
`+Ra.mark.snippet),od+" "+nd):od}__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,nd,od,ld){var ud="",cd="",dd=Math.floor(ld/2)-1;return od-qa>dd&&(ud=" ... ",qa=od-dd+ud.length),nd-od>dd&&(cd=" ...",nd=od+dd-cd.length),{str:ud+Ra.slice(qa,nd).replace(/\t/g,"→")+cd,pos:od-qa+ud.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 nd=/\r?\n|\r|\0/g,od=[0],ld=[],ud,cd=-1;ud=nd.exec(Ra.buffer);)ld.push(ud.index),od.push(ud.index+ud[0].length),Ra.position<=ud.index&&cd<0&&(cd=od.length-2);cd<0&&(cd=od.length-1);var dd="",pd,fd,md=Math.min(Ra.line+qa.linesAfter,ld.length).toString().length,vd=qa.maxLength-(qa.indent+md+3);for(pd=1;pd<=qa.linesBefore&&!(cd-pd<0);pd++)fd=getLine(Ra.buffer,od[cd-pd],ld[cd-pd],Ra.position-(od[cd]-od[cd-pd]),vd),dd=common.repeat(" ",qa.indent)+padStart((Ra.line-pd+1).toString(),md)+" | "+fd.str+`
`+dd;for(fd=getLine(Ra.buffer,od[cd],ld[cd],Ra.position,vd),dd+=common.repeat(" ",qa.indent)+padStart((Ra.line+1).toString(),md)+" | "+fd.str+`
`,dd+=common.repeat("-",qa.indent+md+3+fd.pos)+`^
`,pd=1;pd<=qa.linesAfter&&!(cd+pd>=ld.length);pd++)fd=getLine(Ra.buffer,od[cd+pd],ld[cd+pd],Ra.position-(od[cd]-od[cd+pd]),vd),dd+=common.repeat(" ",qa.indent)+padStart((Ra.line+pd+1).toString(),md)+" | "+fd.str+`
`;return dd.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(nd){Ra[nd].forEach(function(od){qa[String(od)]=nd})}),qa}__name(compileStyleAliases,"compileStyleAliases");function Type$1(Ra,qa){if(qa=qa||{},Object.keys(qa).forEach(function(nd){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(nd)===-1)throw new exception('Unknown option "'+nd+'" 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(nd){return nd},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 nd=[];return Ra[qa].forEach(function(od){var ld=nd.length;nd.forEach(function(ud,cd){ud.tag===od.tag&&ud.kind===od.kind&&ud.multi===od.multi&&(ld=cd)}),nd[ld]=od}),nd}__name(compileList,"compileList");function compileMap(){var Ra={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},qa,nd;function od(ld){ld.multi?(Ra.multi[ld.kind].push(ld),Ra.multi.fallback.push(ld)):Ra[ld.kind][ld.tag]=Ra.fallback[ld.tag]=ld}for(__name(od,"collectType"),qa=0,nd=arguments.length;qa<nd;qa+=1)arguments[qa].forEach(od);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 nd=[],od=[];if(qa instanceof type$1)od.push(qa);else if(Array.isArray(qa))od=od.concat(qa);else if(qa&&(Array.isArray(qa.implicit)||Array.isArray(qa.explicit)))qa.implicit&&(nd=nd.concat(qa.implicit)),qa.explicit&&(od=od.concat(qa.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");nd.forEach(function(ud){if(!(ud instanceof type$1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(ud.loadKind&&ud.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(ud.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),od.forEach(function(ud){if(!(ud instanceof type$1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var ld=Object.create(Schema$1.prototype);return ld.implicit=(this.implicit||[]).concat(nd),ld.explicit=(this.explicit||[]).concat(od),ld.compiledImplicit=compileList(ld,"implicit"),ld.compiledExplicit=compileList(ld,"explicit"),ld.compiledTypeMap=compileMap(ld.compiledImplicit,ld.compiledExplicit),ld},"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,nd,od=0,ld=Ra.length,ud=BASE64_MAP;for(nd=0;nd<ld;nd++)if(qa=ud.indexOf(Ra.charAt(nd)),!(qa>64)){if(qa<0)return!1;od+=6}return od%8===0}__name(resolveYamlBinary,"resolveYamlBinary");function constructYamlBinary(Ra){var qa,nd,od=Ra.replace(/[\r\n=]/g,""),ld=od.length,ud=BASE64_MAP,cd=0,dd=[];for(qa=0;qa<ld;qa++)qa%4===0&&qa&&(dd.push(cd>>16&255),dd.push(cd>>8&255),dd.push(cd&255)),cd=cd<<6|ud.indexOf(od.charAt(qa));return nd=ld%4*6,nd===0?(dd.push(cd>>16&255),dd.push(cd>>8&255),dd.push(cd&255)):nd===18?(dd.push(cd>>10&255),dd.push(cd>>2&255)):nd===12&&dd.push(cd>>4&255),new Uint8Array(dd)}__name(constructYamlBinary,"constructYamlBinary");function representYamlBinary(Ra){var qa="",nd=0,od,ld,ud=Ra.length,cd=BASE64_MAP;for(od=0;od<ud;od++)od%3===0&&od&&(qa+=cd[nd>>18&63],qa+=cd[nd>>12&63],qa+=cd[nd>>6&63],qa+=cd[nd&63]),nd=(nd<<8)+Ra[od];return ld=ud%3,ld===0?(qa+=cd[nd>>18&63],qa+=cd[nd>>12&63],qa+=cd[nd>>6&63],qa+=cd[nd&63]):ld===2?(qa+=cd[nd>>10&63],qa+=cd[nd>>4&63],qa+=cd[nd<<2&63],qa+=cd[64]):ld===1&&(qa+=cd[nd>>2&63],qa+=cd[nd<<4&63],qa+=cd[64],qa+=cd[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=[],nd,od,ld,ud,cd,dd=Ra;for(nd=0,od=dd.length;nd<od;nd+=1){if(ld=dd[nd],cd=!1,_toString$2.call(ld)!=="[object Object]")return!1;for(ud in ld)if(_hasOwnProperty$3.call(ld,ud))if(!cd)cd=!0;else return!1;if(!cd)return!1;if(qa.indexOf(ud)===-1)qa.push(ud);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,nd,od,ld,ud,cd=Ra;for(ud=new Array(cd.length),qa=0,nd=cd.length;qa<nd;qa+=1){if(od=cd[qa],_toString$1.call(od)!=="[object Object]"||(ld=Object.keys(od),ld.length!==1))return!1;ud[qa]=[ld[0],od[ld[0]]]}return!0}__name(resolveYamlPairs,"resolveYamlPairs");function constructYamlPairs(Ra){if(Ra===null)return[];var qa,nd,od,ld,ud,cd=Ra;for(ud=new Array(cd.length),qa=0,nd=cd.length;qa<nd;qa+=1)od=cd[qa],ld=Object.keys(od),ud[qa]=[ld[0],od[ld[0]]];return ud}__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,nd=Ra;for(qa in nd)if(_hasOwnProperty$2.call(nd,qa)&&nd[qa]!==null)return!1;return!0}__name(resolveYamlSet,"resolveYamlSet");function constructYamlSet(Ra){return Ra!==null?Ra:{}}__name(constructYamlSet,"constructYamlSet");var set$2=new type$1("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default=core$1.extend({implicit:[timestamp,merge$2],explicit:[binary,omap,pairs,set$2]}),_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===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 nd={name:Ra.filename,buffer:Ra.input.slice(0,-1),position:Ra.position,line:Ra.line,column:Ra.position-Ra.lineStart};return nd.snippet=snippet(nd),new exception(qa,nd)}__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,nd,od){var ld,ud,cd;qa.version!==null&&throwError(qa,"duplication of %YAML directive"),od.length!==1&&throwError(qa,"YAML directive accepts exactly one argument"),ld=/^([0-9]+)\.([0-9]+)$/.exec(od[0]),ld===null&&throwError(qa,"ill-formed argument of the YAML directive"),ud=parseInt(ld[1],10),cd=parseInt(ld[2],10),ud!==1&&throwError(qa,"unacceptable YAML version of the document"),qa.version=od[0],qa.checkLineBreaks=cd<2,cd!==1&&cd!==2&&throwWarning(qa,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:__name(function(qa,nd,od){var ld,ud;od.length!==2&&throwError(qa,"TAG directive accepts exactly two arguments"),ld=od[0],ud=od[1],PATTERN_TAG_HANDLE.test(ld)||throwError(qa,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(qa.tagMap,ld)&&throwError(qa,'there is a previously declared suffix for "'+ld+'" tag handle'),PATTERN_TAG_URI.test(ud)||throwError(qa,"ill-formed tag prefix (second argument) of the TAG directive");try{ud=decodeURIComponent(ud)}catch{throwError(qa,"tag prefix is malformed: "+ud)}qa.tagMap[ld]=ud},"handleTagDirective")};function captureSegment(Ra,qa,nd,od){var ld,ud,cd,dd;if(qa<nd){if(dd=Ra.input.slice(qa,nd),od)for(ld=0,ud=dd.length;ld<ud;ld+=1)cd=dd.charCodeAt(ld),cd===9||32<=cd&&cd<=1114111||throwError(Ra,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(dd)&&throwError(Ra,"the stream contains non-printable characters");Ra.result+=dd}}__name(captureSegment,"captureSegment");function mergeMappings(Ra,qa,nd,od){var ld,ud,cd,dd;for(common.isObject(nd)||throwError(Ra,"cannot merge mappings; the provided source object is unacceptable"),ld=Object.keys(nd),cd=0,dd=ld.length;cd<dd;cd+=1)ud=ld[cd],_hasOwnProperty$1.call(qa,ud)||(qa[ud]=nd[ud],od[ud]=!0)}__name(mergeMappings,"mergeMappings");function storeMappingPair(Ra,qa,nd,od,ld,ud,cd,dd,pd){var fd,md;if(Array.isArray(ld))for(ld=Array.prototype.slice.call(ld),fd=0,md=ld.length;fd<md;fd+=1)Array.isArray(ld[fd])&&throwError(Ra,"nested arrays are not supported inside keys"),typeof ld=="object"&&_class(ld[fd])==="[object Object]"&&(ld[fd]="[object Object]");if(typeof ld=="object"&&_class(ld)==="[object Object]"&&(ld="[object Object]"),ld=String(ld),qa===null&&(qa={}),od==="tag:yaml.org,2002:merge")if(Array.isArray(ud))for(fd=0,md=ud.length;fd<md;fd+=1)mergeMappings(Ra,qa,ud[fd],nd);else mergeMappings(Ra,qa,ud,nd);else!Ra.json&&!_hasOwnProperty$1.call(nd,ld)&&_hasOwnProperty$1.call(qa,ld)&&(Ra.line=cd||Ra.line,Ra.lineStart=dd||Ra.lineStart,Ra.position=pd||Ra.positio
`,qa-1))}__name(writeFoldedLines,"writeFoldedLines");function readPlainScalar(Ra,qa,nd){var od,ld,ud,cd,dd,pd,fd,md,vd=Ra.kind,Ad=Ra.result,Nd;if(Nd=Ra.input.charCodeAt(Ra.position),is_WS_OR_EOL(Nd)||is_FLOW_INDICATOR(Nd)||Nd===35||Nd===38||Nd===42||Nd===33||Nd===124||Nd===62||Nd===39||Nd===34||Nd===37||Nd===64||Nd===96||(Nd===63||Nd===45)&&(ld=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(ld)||nd&&is_FLOW_INDICATOR(ld)))return!1;for(Ra.kind="scalar",Ra.result="",ud=cd=Ra.position,dd=!1;Nd!==0;){if(Nd===58){if(ld=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(ld)||nd&&is_FLOW_INDICATOR(ld))break}else if(Nd===35){if(od=Ra.input.charCodeAt(Ra.position-1),is_WS_OR_EOL(od))break}else{if(Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)||nd&&is_FLOW_INDICATOR(Nd))break;if(is_EOL(Nd))if(pd=Ra.line,fd=Ra.lineStart,md=Ra.lineIndent,skipSeparationSpace(Ra,!1,-1),Ra.lineIndent>=qa){dd=!0,Nd=Ra.input.charCodeAt(Ra.position);continue}else{Ra.position=cd,Ra.line=pd,Ra.lineStart=fd,Ra.lineIndent=md;break}}dd&&(captureSegment(Ra,ud,cd,!1),writeFoldedLines(Ra,Ra.line-pd),ud=cd=Ra.position,dd=!1),is_WHITE_SPACE(Nd)||(cd=Ra.position+1),Nd=Ra.input.charCodeAt(++Ra.position)}return captureSegment(Ra,ud,cd,!1),Ra.result?!0:(Ra.kind=vd,Ra.result=Ad,!1)}__name(readPlainScalar,"readPlainScalar");function readSingleQuotedScalar(Ra,qa){var nd,od,ld;if(nd=Ra.input.charCodeAt(Ra.position),nd!==39)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,od=ld=Ra.position;(nd=Ra.input.charCodeAt(Ra.position))!==0;)if(nd===39)if(captureSegment(Ra,od,Ra.position,!0),nd=Ra.input.charCodeAt(++Ra.position),nd===39)od=Ra.position,Ra.position++,ld=Ra.position;else return!0;else is_EOL(nd)?(captureSegment(Ra,od,ld,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),od=ld=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a single quoted scalar"):(Ra.position++,ld=Ra.position);throwError(Ra,"unexpected end of the stream within a single quoted scalar")}__name(readSingleQuotedScalar,"readSingleQuotedScalar");function readDoubleQuotedScalar(Ra,qa){var nd,od,ld,ud,cd,dd;if(dd=Ra.input.charCodeAt(Ra.position),dd!==34)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,nd=od=Ra.position;(dd=Ra.input.charCodeAt(Ra.position))!==0;){if(dd===34)return captureSegment(Ra,nd,Ra.position,!0),Ra.position++,!0;if(dd===92){if(captureSegment(Ra,nd,Ra.position,!0),dd=Ra.input.charCodeAt(++Ra.position),is_EOL(dd))skipSeparationSpace(Ra,!1,qa);else if(dd<256&&simpleEscapeCheck[dd])Ra.result+=simpleEscapeMap[dd],Ra.position++;else if((cd=escapedHexLen(dd))>0){for(ld=cd,ud=0;ld>0;ld--)dd=Ra.input.charCodeAt(++Ra.position),(cd=fromHexCode(dd))>=0?ud=(ud<<4)+cd:throwError(Ra,"expected hexadecimal character");Ra.result+=charFromCodepoint(ud),Ra.position++}else throwError(Ra,"unknown escape sequence");nd=od=Ra.position}else is_EOL(dd)?(captureSegment(Ra,nd,od,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),nd=od=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a double quoted scalar"):(Ra.position++,od=Ra.position)}throwError(Ra,"unexpected end of the stream within a double quoted scalar")}__name(readDoubleQuotedScalar,"readDoubleQuotedScalar");function readFlowCollection(Ra,qa){var nd=!0,od,ld,ud,cd=Ra.tag,dd,pd=Ra.anchor,fd,md,vd,Ad,Nd,Id=Object.create(null),kd,jd,Fd,Md;if(Md=Ra.input.charCodeAt(Ra.position),Md===91)md=93,Nd=!1,dd=[];else if(Md===123)md=125,Nd=!0,dd={};else return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=dd),Md=Ra.input.charCodeAt(++Ra.position);Md!==0;){if(skipSeparationSpace(Ra,!0,qa),Md=Ra.input.charCodeAt(Ra.position),Md===md)return Ra.position++,Ra.tag=cd,Ra.anchor=pd,Ra.kind=Nd?"mapping":"sequence",Ra.result=dd,!0;nd?Md===44&&throwError(Ra,"expected the node content, but found ','"):throwError(Ra,"missed comma between flow collection entries"),jd=kd=Fd=null,vd=Ad=!1,Md===63&&(fd=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(fd)&&(vd=Ad=!0,Ra.position++,skipSeparationSpace(Ra,!0,qa))),od=Ra.l
`,ud?1+pd:pd):ld===CHOMPING_CLIP&&ud&&(Ra.result+=`
`);break}for(od?is_WHITE_SPACE(vd)?(fd=!0,Ra.result+=common.repeat(`
`,ud?1+pd:pd)):fd?(fd=!1,Ra.result+=common.repeat(`
`,pd+1)):pd===0?ud&&(Ra.result+=" "):Ra.result+=common.repeat(`
`,pd):Ra.result+=common.repeat(`
`,ud?1+pd:pd),ud=!0,cd=!0,pd=0,nd=Ra.position;!is_EOL(vd)&&vd!==0;)vd=Ra.input.charCodeAt(++Ra.position);captureSegment(Ra,nd,Ra.position,!1)}return!0}__name(readBlockScalar,"readBlockScalar");function readBlockSequence(Ra,qa){var nd,od=Ra.tag,ld=Ra.anchor,ud=[],cd,dd=!1,pd;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=ud),pd=Ra.input.charCodeAt(Ra.position);pd!==0&&(Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),!(pd!==45||(cd=Ra.input.charCodeAt(Ra.position+1),!is_WS_OR_EOL(cd))));){if(dd=!0,Ra.position++,skipSeparationSpace(Ra,!0,-1)&&Ra.lineIndent<=qa){ud.push(null),pd=Ra.input.charCodeAt(Ra.position);continue}if(nd=Ra.line,composeNode(Ra,qa,CONTEXT_BLOCK_IN,!1,!0),ud.push(Ra.result),skipSeparationSpace(Ra,!0,-1),pd=Ra.input.charCodeAt(Ra.position),(Ra.line===nd||Ra.lineIndent>qa)&&pd!==0)throwError(Ra,"bad indentation of a sequence entry");else if(Ra.lineIndent<qa)break}return dd?(Ra.tag=od,Ra.anchor=ld,Ra.kind="sequence",Ra.result=ud,!0):!1}__name(readBlockSequence,"readBlockSequence");function readBlockMapping(Ra,qa,nd){var od,ld,ud,cd,dd,pd,fd=Ra.tag,md=Ra.anchor,vd={},Ad=Object.create(null),Nd=null,Id=null,kd=null,jd=!1,Fd=!1,Md;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=vd),Md=Ra.input.charCodeAt(Ra.position);Md!==0;){if(!jd&&Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),od=Ra.input.charCodeAt(Ra.position+1),ud=Ra.line,(Md===63||Md===58)&&is_WS_OR_EOL(od))Md===63?(jd&&(storeMappingPair(Ra,vd,Ad,Nd,Id,null,cd,dd,pd),Nd=Id=kd=null),Fd=!0,jd=!0,ld=!0):jd?(jd=!1,ld=!0):throwError(Ra,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),Ra.position+=1,Md=od;else{if(cd=Ra.line,dd=Ra.lineStart,pd=Ra.position,!composeNode(Ra,nd,CONTEXT_FLOW_OUT,!1,!0))break;if(Ra.line===ud){for(Md=Ra.input.charCodeAt(Ra.position);is_WHITE_SPACE(Md);)Md=Ra.input.charCodeAt(++Ra.position);if(Md===58)Md=Ra.input.charCodeAt(++Ra.position),is_WS_OR_EOL(Md)||throwError(Ra,"a whitespace character is expected after the key-value separator within a block mapping"),jd&&(storeMappingPair(Ra,vd,Ad,Nd,Id,null,cd,dd,pd),Nd=Id=kd=null),Fd=!0,jd=!1,ld=!1,Nd=Ra.tag,Id=Ra.result;else if(Fd)throwError(Ra,"can not read an implicit mapping pair; a colon is missed");else return Ra.tag=fd,Ra.anchor=md,!0}else if(Fd)throwError(Ra,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Ra.tag=fd,Ra.anchor=md,!0}if((Ra.line===ud||Ra.lineIndent>qa)&&(jd&&(cd=Ra.line,dd=Ra.lineStart,pd=Ra.position),composeNode(Ra,qa,CONTEXT_BLOCK_OUT,!0,ld)&&(jd?Id=Ra.result:kd=Ra.result),jd||(storeMappingPair(Ra,vd,Ad,Nd,Id,kd,cd,dd,pd),Nd=Id=kd=null),skipSeparationSpace(Ra,!0,-1),Md=Ra.input.charCodeAt(Ra.position)),(Ra.line===ud||Ra.lineIndent>qa)&&Md!==0)throwError(Ra,"bad indentation of a mapping entry");else if(Ra.lineIndent<qa)break}return jd&&storeMappingPair(Ra,vd,Ad,Nd,Id,null,cd,dd,pd),Fd&&(Ra.tag=fd,Ra.anchor=md,Ra.kind="mapping",Ra.result=vd),Fd}__name(readBlockMapping,"readBlockMapping");function readTagProperty(Ra){var qa,nd=!1,od=!1,ld,ud,cd;if(cd=Ra.input.charCodeAt(Ra.position),cd!==33)return!1;if(Ra.tag!==null&&throwError(Ra,"duplication of a tag property"),cd=Ra.input.charCodeAt(++Ra.position),cd===60?(nd=!0,cd=Ra.input.charCodeAt(++Ra.position)):cd===33?(od=!0,ld="!!",cd=Ra.input.charCodeAt(++Ra.position)):ld="!",qa=Ra.position,nd){do cd=Ra.input.charCodeAt(++Ra.position);while(cd!==0&&cd!==62);Ra.position<Ra.length?(ud=Ra.input.slice(qa,Ra.position),cd=Ra.input.charCodeAt(++Ra.position)):throwError(Ra,"unexpected end of the stream within a verbatim tag")}else{for(;cd!==0&&!is_WS_OR_EOL(cd);)cd===33&&(od?throwError(Ra,"tag suffix cannot contain exclamation marks"):(ld=Ra.input.slice(qa-1,Ra.position+1),PATTERN_TAG_HANDLE.test(ld)||throwError(Ra,"named tag handle cannot contain such characters"),od=!0,qa=Ra.position+1)),cd=Ra.input.charCodeAt(++Ra.position);
`),Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)));var nd=new State$1(Ra,qa),od=Ra.indexOf("\0");for(od!==-1&&(nd.position=od,throwError(nd,"null byte is not allowed in input")),nd.input+="\0";nd.input.charCodeAt(nd.position)===32;)nd.lineIndent+=1,nd.position+=1;for(;nd.position<nd.length-1;)readDocument(nd);return nd.documents}__name(loadDocuments,"loadDocuments");function loadAll$1(Ra,qa,nd){qa!==null&&typeof qa=="object"&&typeof nd>"u"&&(nd=qa,qa=null);var od=loadDocuments(Ra,nd);if(typeof qa!="function")return od;for(var ld=0,ud=od.length;ld<ud;ld+=1)qa(od[ld])}__name(loadAll$1,"loadAll$1");function load$1(Ra,qa){var nd=loadDocuments(Ra,qa);if(nd.length!==0){if(nd.length===1)return nd[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,loader$1={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 nd,od,ld,ud,cd,dd,pd;if(qa===null)return{};for(nd={},od=Object.keys(qa),ld=0,ud=od.length;ld<ud;ld+=1)cd=od[ld],dd=String(qa[cd]),cd.slice(0,2)==="!!"&&(cd="tag:yaml.org,2002:"+cd.slice(2)),pd=Ra.compiledTypeMap.fallback[cd],pd&&_hasOwnProperty.call(pd.styleAliases,dd)&&(dd=pd.styleAliases[dd]),nd[cd]=dd;return nd}__name(compileStyleMap,"compileStyleMap");function encodeHex(Ra){var qa,nd,od;if(qa=Ra.toString(16).toUpperCase(),Ra<=255)nd="x",od=2;else if(Ra<=65535)nd="u",od=4;else if(Ra<=4294967295)nd="U",od=8;else throw new exception("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+nd+common.repeat("0",od-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 nd=common.repeat(" ",qa),od=0,ld=-1,ud="",cd,dd=Ra.length;od<dd;)ld=Ra.indexOf(`
`,od),ld===-1?(cd=Ra.slice(od),od=dd):(cd=Ra.slice(od,ld+1),od=ld+1),cd.length&&cd!==`
`&&(ud+=nd),ud+=cd;return ud}__name(indentString,"indentString");function generateNextLine(Ra,qa){return`
`+common.repeat(" ",Ra.indent*qa)}__name(generateNextLine,"generateNextLine");function testImplicitResolving(Ra,qa){var nd,od,ld;for(nd=0,od=Ra.implicitTypes.length;nd<od;nd+=1)if(ld=Ra.implicitTypes[nd],ld.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,nd){var od=isNsCharOrWhitespace(Ra),ld=od&&!isWhitespace(Ra);return(nd?od:od&&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&&!ld)||isNsCharOrWhitespace(qa)&&!isWhitespace(qa)&&Ra===CHAR_SHARP||qa===CHAR_COLON&&ld}__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 nd=Ra.charCodeAt(qa),od;return nd>=55296&&nd<=56319&&qa+1<Ra.length&&(od=Ra.charCodeAt(qa+1),od>=56320&&od<=57343)?(nd-55296)*1024+od-56320+65536:nd}__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,nd,od,ld,ud,cd,dd){var pd,fd=0,md=null,vd=!1,Ad=!1,Nd=od!==-1,Id=-1,kd=isPlainSafeFirst(codePointAt(Ra,0))&&isPlainSafeLast(codePointAt(Ra,Ra.length-1));if(qa||cd)for(pd=0;pd<Ra.length;fd>=65536?pd+=2:pd++){if(fd=codePointAt(Ra,pd),!isPrintable(fd))return STYLE_DOUBLE;kd=kd&&isPlainSafe(fd,md,dd),md=fd}else{for(pd=0;pd<Ra.length;fd>=65536?pd+=2:pd++){if(fd=codePointAt(Ra,pd),fd===CHAR_LINE_FEED)vd=!0,Nd&&(Ad=Ad||pd-Id-1>od&&Ra[Id+1]!==" ",Id=pd);else if(!isPrintable(fd))return STYLE_DOUBLE;kd=kd&&isPlainSafe(fd,md,dd),md=fd}Ad=Ad||Nd&&pd-Id-1>od&&Ra[Id+1]!==" "}return!vd&&!Ad?kd&&!cd&&!ld(Ra)?STYLE_PLAIN:ud===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:nd>9&&needIndentIndicator(Ra)?STYLE_DOUBLE:cd?ud===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:Ad?STYLE_FOLDED:STYLE_LITERAL}__name(chooseScalarStyle,"chooseScalarStyle");function writeScalar(Ra,qa,nd,od,ld){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 ud=Ra.indent*Math.max(1,nd),cd=Ra.lineWidth===-1?-1:Math.max(Math.min(Ra.lineWidth,40),Ra.lineWidth-ud),dd=od||Ra.flowLevel>-1&&nd>=Ra.flowLevel;function pd(fd){return testImplicitResolving(Ra,fd)}switch(__name(pd,"testAmbiguity"),chooseScalarStyle(qa,dd,Ra.indent,cd,pd,Ra.quotingType,Ra.forceQuotes&&!od,ld)){case STYLE_PLAIN:return qa;case STYLE_SINGLE:return"'"+qa.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(qa,ud));case STYLE_FOLDED:return">"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(foldString(qa,cd),ud));case STYLE_DOUBLE:return'"'+escapeString(qa)+'"';default:throw new
`,ld=od&&(Ra[Ra.length-2]===`
`||Ra===`
`),ud=ld?"+":od?"":"-";return nd+ud+`
`}__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 nd=/(\n+)([^\n]*)/g,od=function(){var fd=Ra.indexOf(`
`);return fd=fd!==-1?fd:Ra.length,nd.lastIndex=fd,foldLine(Ra.slice(0,fd),qa)}(),ld=Ra[0]===`
`||Ra[0]===" ",ud,cd;cd=nd.exec(Ra);){var dd=cd[1],pd=cd[2];ud=pd[0]===" ",od+=dd+(!ld&&!ud&&pd!==""?`
`:"")+foldLine(pd,qa),ld=ud}return od}__name(foldString,"foldString");function foldLine(Ra,qa){if(Ra===""||Ra[0]===" ")return Ra;for(var nd=/ [^ ]/g,od,ld=0,ud,cd=0,dd=0,pd="";od=nd.exec(Ra);)dd=od.index,dd-ld>qa&&(ud=cd>ld?cd:dd,pd+=`
`+Ra.slice(ld,ud),ld=ud+1),cd=dd;return pd+=`
`,Ra.length-ld>qa&&cd>ld?pd+=Ra.slice(ld,cd)+`
`+Ra.slice(cd+1):pd+=Ra.slice(ld),pd.slice(1)}__name(foldLine,"foldLine");function escapeString(Ra){for(var qa="",nd=0,od,ld=0;ld<Ra.length;nd>=65536?ld+=2:ld++)nd=codePointAt(Ra,ld),od=ESCAPE_SEQUENCES[nd],!od&&isPrintable(nd)?(qa+=Ra[ld],nd>=65536&&(qa+=Ra[ld+1])):qa+=od||encodeHex(nd);return qa}__name(escapeString,"escapeString");function writeFlowSequence(Ra,qa,nd){var od="",ld=Ra.tag,ud,cd,dd;for(ud=0,cd=nd.length;ud<cd;ud+=1)dd=nd[ud],Ra.replacer&&(dd=Ra.replacer.call(nd,String(ud),dd)),(writeNode(Ra,qa,dd,!1,!1)||typeof dd>"u"&&writeNode(Ra,qa,null,!1,!1))&&(od!==""&&(od+=","+(Ra.condenseFlow?"":" ")),od+=Ra.dump);Ra.tag=ld,Ra.dump="["+od+"]"}__name(writeFlowSequence,"writeFlowSequence");function writeBlockSequence(Ra,qa,nd,od){var ld="",ud=Ra.tag,cd,dd,pd;for(cd=0,dd=nd.length;cd<dd;cd+=1)pd=nd[cd],Ra.replacer&&(pd=Ra.replacer.call(nd,String(cd),pd)),(writeNode(Ra,qa+1,pd,!0,!0,!1,!0)||typeof pd>"u"&&writeNode(Ra,qa+1,null,!0,!0,!1,!0))&&((!od||ld!=="")&&(ld+=generateNextLine(Ra,qa)),Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?ld+="-":ld+="- ",ld+=Ra.dump);Ra.tag=ud,Ra.dump=ld||"[]"}__name(writeBlockSequence,"writeBlockSequence");function writeFlowMapping(Ra,qa,nd){var od="",ld=Ra.tag,ud=Object.keys(nd),cd,dd,pd,fd,md;for(cd=0,dd=ud.length;cd<dd;cd+=1)md="",od!==""&&(md+=", "),Ra.condenseFlow&&(md+='"'),pd=ud[cd],fd=nd[pd],Ra.replacer&&(fd=Ra.replacer.call(nd,pd,fd)),writeNode(Ra,qa,pd,!1,!1)&&(Ra.dump.length>1024&&(md+="? "),md+=Ra.dump+(Ra.condenseFlow?'"':"")+":"+(Ra.condenseFlow?"":" "),writeNode(Ra,qa,fd,!1,!1)&&(md+=Ra.dump,od+=md));Ra.tag=ld,Ra.dump="{"+od+"}"}__name(writeFlowMapping,"writeFlowMapping");function writeBlockMapping(Ra,qa,nd,od){var ld="",ud=Ra.tag,cd=Object.keys(nd),dd,pd,fd,md,vd,Ad;if(Ra.sortKeys===!0)cd.sort();else if(typeof Ra.sortKeys=="function")cd.sort(Ra.sortKeys);else if(Ra.sortKeys)throw new exception("sortKeys must be a boolean or a function");for(dd=0,pd=cd.length;dd<pd;dd+=1)Ad="",(!od||ld!=="")&&(Ad+=generateNextLine(Ra,qa)),fd=cd[dd],md=nd[fd],Ra.replacer&&(md=Ra.replacer.call(nd,fd,md)),writeNode(Ra,qa+1,fd,!0,!0,!0)&&(vd=Ra.tag!==null&&Ra.tag!=="?"||Ra.dump&&Ra.dump.length>1024,vd&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?Ad+="?":Ad+="? "),Ad+=Ra.dump,vd&&(Ad+=generateNextLine(Ra,qa)),writeNode(Ra,qa+1,md,!0,vd)&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?Ad+=":":Ad+=": ",Ad+=Ra.dump,ld+=Ad));Ra.tag=ud,Ra.dump=ld||"{}"}__name(writeBlockMapping,"writeBlockMapping");function detectType(Ra,qa,nd){var od,ld,ud,cd,dd,pd;for(ld=nd?Ra.explicitTypes:Ra.implicitTypes,ud=0,cd=ld.length;ud<cd;ud+=1)if(dd=ld[ud],(dd.instanceOf||dd.predicate)&&(!dd.instanceOf||typeof qa=="object"&&qa instanceof dd.instanceOf)&&(!dd.predicate||dd.predicate(qa))){if(nd?dd.multi&&dd.representName?Ra.tag=dd.representName(qa):Ra.tag=dd.tag:Ra.tag="?",dd.represent){if(pd=Ra.styleMap[dd.tag]||dd.defaultStyle,_toString.call(dd.represent)==="[object Function]")od=dd.represent(qa,pd);else if(_hasOwnProperty.call(dd.represent,pd))od=dd.represent[pd](qa,pd);else throw new exception("!<"+dd.tag+'> tag resolver accepts not "'+pd+'" style');Ra.dump=od}return!0}return!1}__name(detectType,"detectType");function writeNode(Ra,qa,nd,od,ld,ud,cd){Ra.tag=null,Ra.dump=nd,detectType(Ra,nd,!1)||detectType(Ra,nd,!0);var dd=_toString.call(Ra.dump),pd=od,fd;od&&(od=Ra.flowLevel<0||Ra.flowLevel>qa);var md=dd==="[object Object]"||dd==="[object Array]",vd,Ad;if(md&&(vd=Ra.duplicates.indexOf(nd),Ad=vd!==-1),(Ra.tag!==null&&Ra.tag!=="?"||Ad||Ra.indent!==2&&qa>0)&&(ld=!1),Ad&&Ra.usedDuplicates[vd])Ra.dump="*ref_"+vd;else{if(md&&Ad&&!Ra.usedDuplicates[vd]&&(Ra.usedDuplicates[vd]=!0),dd==="[object Object]")od&&Object.keys(Ra.dump).length!==0?(writeBlockMapping(Ra,qa,Ra.dump,ld),Ad&&(Ra.dump="&ref_"+vd+Ra.dump)):(writeFlowMapping(Ra,qa,Ra.dump),Ad&&(Ra.dump="&ref_"+vd+" "+Ra.dump));else if(dd==="[object Array]")od&&Ra.dump.length!==0?(Ra.noArrayIndent&&!cd&&qa>0?writeBlockSequence(Ra,qa-1,Ra.dump,ld):writeBlockSequence(Ra,qa,Ra.dump,ld),Ad&&(Ra.dump="&ref_"+vd+Ra.dump)):(writeFlowSequence(Ra,qa,Ra.dump),Ad&&(Ra.dump="&ref
`:""}__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=loader$1.load;/*! Bundled license information:
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/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,nd,od="")=>{const ld=Ra.split(":");if(Ra.slice(0,1)==="@"){if(ld.length<2||ld.length>3)return null;od=ld.shift().slice(1)}if(ld.length>3||!ld.length)return null;if(ld.length>1){const dd=ld.pop(),pd=ld.pop(),fd={provider:ld.length>0?ld[0]:od,prefix:pd,name:dd};return validateIconName(fd)?fd:null}const ud=ld[0],cd=ud.split("-");if(cd.length>1){const dd={provider:od,prefix:cd.shift(),name:cd.join("-")};return validateIconName(dd)?dd:null}if(nd&&od===""){const dd={provider:od,prefix:"",name:ud};return validateIconName(dd,nd)?dd: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 nd={};!Ra.hFlip!=!qa.hFlip&&(nd.hFlip=!0),!Ra.vFlip!=!qa.vFlip&&(nd.vFlip=!0);const od=((Ra.rotate||0)+(qa.rotate||0))%4;return od&&(nd.rotate=od),nd}function mergeIconData(Ra,qa){const nd=mergeIconTransformations(Ra,qa);for(const od in defaultExtendedIconProps)od in defaultIconTransformations?od in Ra&&!(od in nd)&&(nd[od]=defaultIconTransformations[od]):od in qa?nd[od]=qa[od]:od in Ra&&(nd[od]=Ra[od]);return nd}function getIconsTree(Ra,qa){const nd=Ra.icons,od=Ra.aliases||Object.create(null),ld=Object.create(null);function ud(cd){if(nd[cd])return ld[cd]=[];if(!(cd in ld)){ld[cd]=null;const dd=od[cd]&&od[cd].parent,pd=dd&&ud(dd);pd&&(ld[cd]=[dd].concat(pd))}return ld[cd]}return(qa||Object.keys(nd).concat(Object.keys(od))).forEach(ud),ld}function internalGetIconData(Ra,qa,nd){const od=Ra.icons,ld=Ra.aliases||Object.create(null);let ud={};function cd(dd){ud=mergeIconData(od[dd]||ld[dd],ud)}return cd(qa),nd.forEach(cd),mergeIconData(Ra,ud)}function getIconData(Ra,qa){if(Ra.icons[qa])return internalGetIconData(Ra,qa,[]);const nd=getIconsTree(Ra,[qa])[qa];return nd?internalGetIconData(Ra,qa,nd):null}const unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(Ra,qa,nd){if(qa===1)return Ra;if(nd=nd||100,typeof Ra=="number")return Math.ceil(Ra*qa*nd)/nd;if(typeof Ra!="string")return Ra;const od=Ra.split(unitsSplit);if(od===null||!od.length)return Ra;const ld=[];let ud=od.shift(),cd=unitsTest.test(ud);for(;;){if(cd){const dd=parseFloat(ud);isNaN(dd)?ld.push(ud):ld.push(Math.ceil(dd*qa*nd)/nd)}else ld.push(ud);if(ud=od.shift(),ud===void 0)return ld.join("");cd=!cd}}function splitSVGDefs(Ra,qa="defs"){let nd="";const od=Ra.indexOf("<"+qa);for(;od>=0;){const ld=Ra.indexOf(">",od),ud=Ra.indexOf("</"+qa);if(ld===-1||ud===-1)break;const cd=Ra.indexOf(">",ud);if(cd===-1)break;nd+=Ra.slice(ld+1,ud).trim(),Ra=Ra.slice(0,od).trim()+Ra.slice(cd+1)}return{defs:nd,content:Ra}}function mergeDefsAndContent(Ra,qa){return Ra?"<defs>"+Ra+"</defs>"+qa:qa}function wrapSVGContent(Ra,qa,nd){const od=splitSVGDefs(Ra);return mergeDefsAndContent(od.defs,qa+od.content+nd)}const isUnsetKeyword=Ra=>Ra==="unset"||Ra==="undefined"||Ra==="none";function iconToSVG(Ra,qa){const nd={...defaultIconProps,...Ra},od={...defaultIconCustomisations,...qa},ld={left:nd.left,top:nd.top,width:nd.width,height:nd.height};let ud=nd.body;[nd,od].forEach(kd=>{const jd=[],Fd=kd.hFlip,Md=kd.vFlip;let Ld=kd.rotate;Fd?Md?Ld+=2:(jd.push("translate("+(ld.width+ld.left).toString()+" "+(0-ld.top).toString()+")"),jd.push("scale(-1 1)"),ld.top=ld.left=0):Md&&(jd.push("translate("+(0-ld.left).toString()+" "+(ld.height+ld.top).toString()+")"),jd.push("scale(1 -1)"),ld.top=ld.left=0);let Hd;switch(Ld<0&&(Ld-=Math.floor(Ld/4)*4),Ld=Ld%4,Ld){case 1
`,"ig");Ra=Ra.trim().replace(ld,"").replace(/'/gm,'"'),log$1.debug(`Detecting diagram directive${qa!==null?" type:"+qa:""} based on the text:${Ra}`);let ud;const cd=[];for(;(ud=directiveRegex.exec(Ra))!==null;)if(ud.index===directiveRegex.lastIndex&&directiveRegex.lastIndex++,ud&&!qa||qa&&((nd=ud[1])!=null&&nd.match(qa))||qa&&((od=ud[2])!=null&&od.match(qa))){const dd=ud[1]?ud[1]:ud[2],pd=ud[3]?ud[3].trim():ud[4]?JSON.parse(ud[4].trim()):null;cd.push({type:dd,args:pd})}return cd.length===0?{type:Ra,args:null}:cd.length===1?cd[0]:cd}catch(ld){return log$1.error(`ERROR: ${ld.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[nd,od]of qa.entries())if(od.match(Ra))return nd;return-1},"isSubstringInArray");function interpolateToCurve(Ra,qa){if(!Ra)return qa;const nd=`curve${Ra.charAt(0).toUpperCase()+Ra.slice(1)}`;return d3CurveTypes[nd]??qa}__name(interpolateToCurve,"interpolateToCurve");function formatUrl(Ra,qa){const nd=Ra.trim();if(nd)return qa.securityLevel!=="loose"?sanitizeUrl_1(nd):nd}__name(formatUrl,"formatUrl");var runFunc=__name((Ra,...qa)=>{const nd=Ra.split("."),od=nd.length-1,ld=nd[od];let ud=window;for(let cd=0;cd<od;cd++)if(ud=ud[nd[cd]],!ud){log$1.error(`Function name: ${Ra} not found in window`);return}ud[ld](...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,nd=0;Ra.forEach(ld=>{nd+=distance(ld,qa),qa=ld});const od=nd/2;return calculatePoint(Ra,od)}__name(traverseEdge,"traverseEdge");function calcLabelPosition(Ra){return Ra.length===1?Ra[0]:traverseEdge(Ra)}__name(calcLabelPosition,"calcLabelPosition");var roundNumber=__name((Ra,qa=2)=>{const nd=Math.pow(10,qa);return Math.round(Ra*nd)/nd},"roundNumber"),calculatePoint=__name((Ra,qa)=>{let nd,od=qa;for(const ld of Ra){if(nd){const ud=distance(ld,nd);if(ud<od)od-=ud;else{const cd=od/ud;if(cd<=0)return nd;if(cd>=1)return{x:ld.x,y:ld.y};if(cd>0&&cd<1)return{x:roundNumber((1-cd)*nd.x+cd*ld.x,5),y:roundNumber((1-cd)*nd.y+cd*ld.y,5)}}}nd=ld}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),calcCardinalityPosition=__name((Ra,qa,nd)=>{log$1.info(`our points ${JSON.stringify(qa)}`),qa[0]!==nd&&(qa=qa.reverse());const ld=calculatePoint(qa,25),ud=Ra?10:5,cd=Math.atan2(qa[0].y-ld.y,qa[0].x-ld.x),dd={x:0,y:0};return dd.x=Math.sin(cd)*ud+(qa[0].x+ld.x)/2,dd.y=-Math.cos(cd)*ud+(qa[0].y+ld.y)/2,dd},"calcCardinalityPosition");function calcTerminalLabelPosition(Ra,qa,nd){const od=structuredClone(nd);log$1.info("our points",od),qa!=="start_left"&&qa!=="start_right"&&od.reverse();const ld=25+Ra,ud=calculatePoint(od,ld),cd=10+Ra*.5,dd=Math.atan2(od[0].y-ud.y,od[0].x-ud.x),pd={x:0,y:0};return qa==="start_left"?(pd.x=Math.sin(dd+Math.PI)*cd+(od[0].x+ud.x)/2,pd.y=-Math.cos(dd+Math.PI)*cd+(od[0].y+ud.y)/2):qa==="end_right"?(pd.x=Math.sin(dd-Math.PI)*cd+(od[0].x+ud.x)/2-5,pd.y=-Math.cos(dd-Math.PI)*cd+(od[0].y+ud.y)/2-5):qa==="end_left"?(pd.x=Math.sin(dd)*cd+(od[0].x+ud.x)/2-5,pd.y=-Math.cos(dd)*cd+(od[0].y+ud.y)/2-5):(pd.x=Math.sin(dd)*cd+(od[0].x+ud.x)/2,pd.y=-Math.cos(dd)*cd+(od[0].y+ud.y)/2),pd}__name(calcTerminalLabelPosition,"calcTerminalLabelPosition");function getStylesFromArray(Ra){let qa="",nd="";for(const od of Ra)od!==void 0&&(od.startsWith("color:")||od.startsWith("text-align:")?nd=nd+od+";":qa=qa+od+";");return{style:qa,labelStyle:nd}}__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 nd="0123456789abcdef",od=nd.length;for(let ld=0;ld<Ra;ld++)qa+=nd.charAt(Math.floor(Math.random()*od));return qa}__name(makeRandomHex,"makeRandomHex");var random=__name(Ra=>makeRandomHex(Ra.length),"random"),getTextObj=__name(function(){return{x:0,y:0,fill:vo
`).map(ld=>{const ud=ld.match(/^\s+/);if(ud===null)return ld;const[cd]=ud;return cd.length>=od.length?ld.slice(od.length):ld}).join(`
`)}class _Tokenizer{constructor(qa){p_(this,"options");p_(this,"rules");p_(this,"lexer");this.options=qa||_defaults}space(qa){const nd=this.rules.block.newline.exec(qa);if(nd&&nd[0].length>0)return{type:"space",raw:nd[0]}}code(qa){const nd=this.rules.block.code.exec(qa);if(nd){const od=nd[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:nd[0],codeBlockStyle:"indented",text:this.options.pedantic?od:rtrim(od,`
`)}}}fences(qa){const nd=this.rules.block.fences.exec(qa);if(nd){const od=nd[0],ld=indentCodeCompensation(od,nd[3]||"");return{type:"code",raw:od,lang:nd[2]?nd[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):nd[2],text:ld}}}heading(qa){const nd=this.rules.block.heading.exec(qa);if(nd){let od=nd[2].trim();if(/#$/.test(od)){const ld=rtrim(od,"#");(this.options.pedantic||!ld||/ $/.test(ld))&&(od=ld.trim())}return{type:"heading",raw:nd[0],depth:nd[1].length,text:od,tokens:this.lexer.inline(od)}}}hr(qa){const nd=this.rules.block.hr.exec(qa);if(nd)return{type:"hr",raw:rtrim(nd[0],`
`)}}blockquote(qa){const nd=this.rules.block.blockquote.exec(qa);if(nd){let od=rtrim(nd[0],`
`).split(`
`),ld="",ud="";const cd=[];for(;od.length>0;){let dd=!1;const pd=[];let fd;for(fd=0;fd<od.length;fd++)if(/^ {0,3}>/.test(od[fd]))pd.push(od[fd]),dd=!0;else if(!dd)pd.push(od[fd]);else break;od=od.slice(fd);const md=pd.join(`
`),vd=md.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");ld=ld?`${ld}
${md}`:md,ud=ud?`${ud}
${vd}`:vd;const Ad=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(vd,cd,!0),this.lexer.state.top=Ad,od.length===0)break;const Nd=cd[cd.length-1];if((Nd==null?void 0:Nd.type)==="code")break;if((Nd==null?void 0:Nd.type)==="blockquote"){const Id=Nd,kd=Id.raw+`
`+od.join(`
`),jd=this.blockquote(kd);cd[cd.length-1]=jd,ld=ld.substring(0,ld.length-Id.raw.length)+jd.raw,ud=ud.substring(0,ud.length-Id.text.length)+jd.text;break}else if((Nd==null?void 0:Nd.type)==="list"){const Id=Nd,kd=Id.raw+`
`+od.join(`
`),jd=this.list(kd);cd[cd.length-1]=jd,ld=ld.substring(0,ld.length-Nd.raw.length)+jd.raw,ud=ud.substring(0,ud.length-Id.raw.length)+jd.raw,od=kd.substring(cd[cd.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:ld,tokens:cd,text:ud}}}list(qa){let nd=this.rules.block.list.exec(qa);if(nd){let od=nd[1].trim();const ld=od.length>1,ud={type:"list",raw:"",ordered:ld,start:ld?+od.slice(0,-1):"",loose:!1,items:[]};od=ld?`\\d{1,9}\\${od.slice(-1)}`:`\\${od}`,this.options.pedantic&&(od=ld?od:"[*+-]");const cd=new RegExp(`^( {0,3}${od})((?:[ ][^\\n]*)?(?:\\n|$))`);let dd=!1;for(;qa;){let pd=!1,fd="",md="";if(!(nd=cd.exec(qa))||this.rules.block.hr.test(qa))break;fd=nd[0],qa=qa.substring(fd.length);let vd=nd[2].split(`
`,1)[0].replace(/^\t+/,Fd=>" ".repeat(3*Fd.length)),Ad=qa.split(`
`,1)[0],Nd=!vd.trim(),Id=0;if(this.options.pedantic?(Id=2,md=vd.trimStart()):Nd?Id=nd[1].length+1:(Id=nd[2].search(/[^ ]/),Id=Id>4?1:Id,md=vd.slice(Id),Id+=nd[1].length),Nd&&/^ *$/.test(Ad)&&(fd+=Ad+`
`,qa=qa.substring(Ad.length+1),pd=!0),!pd){const Fd=new RegExp(`^ {0,${Math.min(3,Id-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Md=new RegExp(`^ {0,${Math.min(3,Id-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Ld=new RegExp(`^ {0,${Math.min(3,Id-1)}}(?:\`\`\`|~~~)`),Hd=new RegExp(`^ {0,${Math.min(3,Id-1)}}#`);for(;qa;){const Gd=qa.split(`
`,1)[0];if(Ad=Gd,this.options.pedantic&&(Ad=Ad.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),Ld.test(Ad)||Hd.test(Ad)||Fd.test(Ad)||Md.test(qa))break;if(Ad.search(/[^ ]/)>=Id||!Ad.trim())md+=`
`+Ad.slice(Id);else{if(Nd||vd.search(/[^ ]/)>=4||Ld.test(vd)||Hd.test(vd)||Md.test(vd))break;md+=`
`+Ad}!Nd&&!Ad.trim()&&(Nd=!0),fd+=Gd+`
`,qa=qa.substring(Gd.length+1),vd=Ad.slice(Id)}}ud.loose||(dd?ud.loose=!0:/\n *\n *$/.test(fd)&&(dd=!0));let kd=null,jd;this.options.gfm&&(kd=/^\[[ xX]\] /.exec(md),kd&&(jd=kd[0]!=="[ ] ",md=md.replace(/^\[[ xX]\] +/,""))),ud.items.push({type:"list_item",raw:fd,task:!!kd,checked:jd,loose:!1,text:md,tokens:[]}),ud.raw+=fd}ud.items[ud.items.length-1].raw=ud.items[ud.items.length-1].raw.trimEnd(),ud.items[ud.items.length-1].text=ud.items[ud.items.length-1].text.trimEnd(),ud.raw=ud.raw.trimEnd();for(let pd=0;pd<ud.items.length;pd++)if(this.lexer.state.top=!1,ud.items[pd].tokens=this.lexer.blockTokens(ud.items[pd].text,[]),!ud.loose){const fd=ud.items[pd].tokens.filter(vd=>vd.type==="space"),md=fd.length>0&&fd.some(vd=>/\n.*\n/.test(vd.raw));ud.loose=md}if(ud.loose)for(let pd=0;pd<ud.items.length;pd++)ud.items[pd].loose=!0;return ud}}html(qa){const nd=this.rules.block.html.exec(qa);if(nd)return{type:"html",block:!0,raw:nd[0],pre:nd[1]==="pre"||nd[1]==="script"||nd[1]==="style",text:nd[0]}}def(qa){const nd=this.rules.block.def.exec(qa);if(nd){const od=nd[1].toLowerCase().replace(/\s+/g," "),ld=nd[2]?nd[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",ud=nd[3]?nd[3].substring(1,nd[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):nd[3];return{type:"def",tag:od,raw:nd[0],href:ld,title:ud}}}table(qa){const nd=this.rules.block.table.exec(qa);if(!nd||!/[:|]/.test(nd[2]))return;const od=splitCells(nd[1]),ld=nd[2].replace(/^\||\| *$/g,"").split("|"),ud=nd[3]&&nd[3].trim()?nd[3].replace(/\n[ \t]*$/,"").split(`
`):[],cd={type:"table",raw:nd[0],header:[],align:[],rows:[]};if(od.length===ld.length){for(const dd of ld)/^ *-+: *$/.test(dd)?cd.align.push("right"):/^ *:-+: *$/.test(dd)?cd.align.push("center"):/^ *:-+ *$/.test(dd)?cd.align.push("left"):cd.align.push(null);for(let dd=0;dd<od.length;dd++)cd.header.push({text:od[dd],tokens:this.lexer.inline(od[dd]),header:!0,align:cd.align[dd]});for(const dd of ud)cd.rows.push(splitCells(dd,cd.header.length).map((pd,fd)=>({text:pd,tokens:this.lexer.inline(pd),header:!1,align:cd.align[fd]})));return cd}}lheading(qa){const nd=this.rules.block.lheading.exec(qa);if(nd)return{type:"heading",raw:nd[0],depth:nd[2].charAt(0)==="="?1:2,text:nd[1],tokens:this.lexer.inline(nd[1])}}paragraph(qa){const nd=this.rules.block.paragraph.exec(qa);if(nd){const od=nd[1].charAt(nd[1].length-1)===`
`?nd[1].slice(0,-1):nd[1];return{type:"paragraph",raw:nd[0],text:od,tokens:this.lexer.inline(od)}}}text(qa){const nd=this.rules.block.text.exec(qa);if(nd)return{type:"text",raw:nd[0],text:nd[0],tokens:this.lexer.inline(nd[0])}}escape(qa){const nd=this.rules.inline.escape.exec(qa);if(nd)return{type:"escape",raw:nd[0],text:escape$1(nd[1])}}tag(qa){const nd=this.rules.inline.tag.exec(qa);if(nd)return!this.lexer.state.inLink&&/^<a /i.test(nd[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(nd[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(nd[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(nd[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:nd[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:nd[0]}}link(qa){const nd=this.rules.inline.link.exec(qa);if(nd){const od=nd[2].trim();if(!this.options.pedantic&&/^</.test(od)){if(!/>$/.test(od))return;const cd=rtrim(od.slice(0,-1),"\\");if((od.length-cd.length)%2===0)return}else{const cd=findClosingBracket(nd[2],"()");if(cd>-1){const pd=(nd[0].indexOf("!")===0?5:4)+nd[1].length+cd;nd[2]=nd[2].substring(0,cd),nd[0]=nd[0].substring(0,pd).trim(),nd[3]=""}}let ld=nd[2],ud="";if(this.options.pedantic){const cd=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ld);cd&&(ld=cd[1],ud=cd[3])}else ud=nd[3]?nd[3].slice(1,-1):"";return ld=ld.trim(),/^</.test(ld)&&(this.options.pedantic&&!/>$/.test(od)?ld=ld.slice(1):ld=ld.slice(1,-1)),outputLink(nd,{href:ld&&ld.replace(this.rules.inline.anyPunctuation,"$1"),title:ud&&ud.replace(this.rules.inline.anyPunctuation,"$1")},nd[0],this.lexer)}}reflink(qa,nd){let od;if((od=this.rules.inline.reflink.exec(qa))||(od=this.rules.inline.nolink.exec(qa))){const ld=(od[2]||od[1]).replace(/\s+/g," "),ud=nd[ld.toLowerCase()];if(!ud){const cd=od[0].charAt(0);return{type:"text",raw:cd,text:cd}}return outputLink(od,ud,od[0],this.lexer)}}emStrong(qa,nd,od=""){let ld=this.rules.inline.emStrongLDelim.exec(qa);if(!ld||ld[3]&&od.match(/[\p{L}\p{N}]/u))return;if(!(ld[1]||ld[2]||"")||!od||this.rules.inline.punctuation.exec(od)){const cd=[...ld[0]].length-1;let dd,pd,fd=cd,md=0;const vd=ld[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(vd.lastIndex=0,nd=nd.slice(-1*qa.length+cd);(ld=vd.exec(nd))!=null;){if(dd=ld[1]||ld[2]||ld[3]||ld[4]||ld[5]||ld[6],!dd)continue;if(pd=[...dd].length,ld[3]||ld[4]){fd+=pd;continue}else if((ld[5]||ld[6])&&cd%3&&!((cd+pd)%3)){md+=pd;continue}if(fd-=pd,fd>0)continue;pd=Math.min(pd,pd+fd+md);const Ad=[...ld[0]][0].length,Nd=qa.slice(0,cd+ld.index+Ad+pd);if(Math.min(cd,pd)%2){const kd=Nd.slice(1,-1);return{type:"em",raw:Nd,text:kd,tokens:this.lexer.inlineTokens(kd)}}const Id=Nd.slice(2,-2);return{type:"strong",raw:Nd,text:Id,tokens:this.lexer.inlineTokens(Id)}}}}codespan(qa){const nd=this.rules.inline.code.exec(qa);if(nd){let od=nd[2].replace(/\n/g," ");const ld=/[^ ]/.test(od),ud=/^ /.test(od)&&/ $/.test(od);return ld&&ud&&(od=od.substring(1,od.length-1)),od=escape$1(od,!0),{type:"codespan",raw:nd[0],text:od}}}br(qa){const nd=this.rules.inline.br.exec(qa);if(nd)return{type:"br",raw:nd[0]}}del(qa){const nd=this.rules.inline.del.exec(qa);if(nd)return{type:"del",raw:nd[0],text:nd[2],tokens:this.lexer.inlineTokens(nd[2])}}autolink(qa){const nd=this.rules.inline.autolink.exec(qa);if(nd){let od,ld;return nd[2]==="@"?(od=escape$1(nd[1]),ld="mailto:"+od):(od=escape$1(nd[1]),ld=od),{type:"link",raw:nd[0],text:od,href:ld,tokens:[{type:"text",raw:od,text:od}]}}}url(qa){var od;let nd;if(nd=this.rules.inline.url.exec(qa)){let ld,ud;if(nd[2]==="@")ld=escape$1(nd[0]),ud="mailto:"+ld;else{let cd;do cd=nd[0],nd[0]=((od=this.rules.inline._backpedal.exec(nd[0]))==null?void 0:od[0])??"";while(cd!==nd[0]);ld=escape$1(nd[0]),nd[1]==="www."?ud="http://"+nd[0]:ud=nd[0]}return{type:"link",raw:nd[0],text:ld,href:ud,tokens:[{type:"text",raw:ld,text:ld}]}}}inlineText(qa){const nd=this.rules.inline.text.exec(qa);if(nd){let od;return this.lexer.state.inRawBlock?od=nd[0]:od=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){p_(this,"
`),this.blockTokens(qa,this.tokens);for(let nd=0;nd<this.inlineQueue.length;nd++){const od=this.inlineQueue[nd];this.inlineTokens(od.src,od.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,nd=[],od=!1){this.options.pedantic?qa=qa.replace(/\t/g," ").replace(/^ +$/gm,""):qa=qa.replace(/^( *)(\t+)/gm,(dd,pd,fd)=>pd+" ".repeat(fd.length));let ld,ud,cd;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(dd=>(ld=dd.call({lexer:this},qa,nd))?(qa=qa.substring(ld.raw.length),nd.push(ld),!0):!1))){if(ld=this.tokenizer.space(qa)){qa=qa.substring(ld.raw.length),ld.raw.length===1&&nd.length>0?nd[nd.length-1].raw+=`
`:nd.push(ld);continue}if(ld=this.tokenizer.code(qa)){qa=qa.substring(ld.raw.length),ud=nd[nd.length-1],ud&&(ud.type==="paragraph"||ud.type==="text")?(ud.raw+=`
`+ld.raw,ud.text+=`
`+ld.text,this.inlineQueue[this.inlineQueue.length-1].src=ud.text):nd.push(ld);continue}if(ld=this.tokenizer.fences(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.heading(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.hr(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.blockquote(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.list(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.html(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.def(qa)){qa=qa.substring(ld.raw.length),ud=nd[nd.length-1],ud&&(ud.type==="paragraph"||ud.type==="text")?(ud.raw+=`
`+ld.raw,ud.text+=`
`+ld.raw,this.inlineQueue[this.inlineQueue.length-1].src=ud.text):this.tokens.links[ld.tag]||(this.tokens.links[ld.tag]={href:ld.href,title:ld.title});continue}if(ld=this.tokenizer.table(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.lheading(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(cd=qa,this.options.extensions&&this.options.extensions.startBlock){let dd=1/0;const pd=qa.slice(1);let fd;this.options.extensions.startBlock.forEach(md=>{fd=md.call({lexer:this},pd),typeof fd=="number"&&fd>=0&&(dd=Math.min(dd,fd))}),dd<1/0&&dd>=0&&(cd=qa.substring(0,dd+1))}if(this.state.top&&(ld=this.tokenizer.paragraph(cd))){ud=nd[nd.length-1],od&&(ud==null?void 0:ud.type)==="paragraph"?(ud.raw+=`
`+ld.raw,ud.text+=`
`+ld.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ud.text):nd.push(ld),od=cd.length!==qa.length,qa=qa.substring(ld.raw.length);continue}if(ld=this.tokenizer.text(qa)){qa=qa.substring(ld.raw.length),ud=nd[nd.length-1],ud&&ud.type==="text"?(ud.raw+=`
`+ld.raw,ud.text+=`
`+ld.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ud.text):nd.push(ld);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 this.state.top=!0,nd}inline(qa,nd=[]){return this.inlineQueue.push({src:qa,tokens:nd}),nd}inlineTokens(qa,nd=[]){let od,ld,ud,cd=qa,dd,pd,fd;if(this.tokens.links){const md=Object.keys(this.tokens.links);if(md.length>0)for(;(dd=this.tokenizer.rules.inline.reflinkSearch.exec(cd))!=null;)md.includes(dd[0].slice(dd[0].lastIndexOf("[")+1,-1))&&(cd=cd.slice(0,dd.index)+"["+"a".repeat(dd[0].length-2)+"]"+cd.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(dd=this.tokenizer.rules.inline.blockSkip.exec(cd))!=null;)cd=cd.slice(0,dd.index)+"["+"a".repeat(dd[0].length-2)+"]"+cd.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(dd=this.tokenizer.rules.inline.anyPunctuation.exec(cd))!=null;)cd=cd.slice(0,dd.index)+"++"+cd.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(pd||(fd=""),pd=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(md=>(od=md.call({lexer:this},qa,nd))?(qa=qa.substring(od.raw.length),nd.push(od),!0):!1))){if(od=this.tokenizer.escape(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.tag(qa)){qa=qa.substring(od.raw.length),ld=nd[nd.length-1],ld&&od.type==="text"&&ld.type==="text"?(ld.raw+=od.raw,ld.text+=od.text):nd.push(od);continue}if(od=this.tokenizer.link(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(od.raw.length),ld=nd[nd.length-1],ld&&od.type==="text"&&ld.type==="text"?(ld.raw+=od.raw,ld.text+=od.text):nd.push(od);continue}if(od=this.tokenizer.emStrong(qa,cd,fd)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.codespan(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.br(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.del(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.autolink(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(!this.state.inLink&&(od=this.tokenizer.url(qa))){qa=qa.substring(od.raw.length),nd.push(od);continue}if(ud=qa,this.options.extensions&&this.options.extensions.startInline){let md=1/0;const vd=qa.slice(1);let Ad;this.options.extensions.startInline.forEach(Nd=>{Ad=Nd.call({lexer:this},vd),typeof Ad=="number"&&Ad>=0&&(md=Math.min(md,Ad))}),md<1/0&&md>=0&&(ud=qa.substring(0,md+1))}if(od=this.tokenizer.inlineText(ud)){qa=qa.substring(od.raw.length),od.raw.slice(-1)!=="_"&&(fd=od.raw.slice(-1)),pd=!0,ld=nd[nd.length-1],ld&&ld.type==="text"?(ld.raw+=od.raw,ld.text+=od.text):nd.push(od);continue}if(qa){const md="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(md);break}else throw new Error(md)}}return nd}}class _Renderer{constructor(qa){p_(this,"options");p_(this,"parser");this.options=qa||_defaults}space(qa){return""}code({text:qa,lang:nd,escaped:od}){var cd;const ld=(cd=(nd||"").match(/^\S*/))==null?void 0:cd[0],ud=qa.replace(/\n$/,"")+`
`;return ld?'<pre><code class="language-'+escape$1(ld)+'">'+(od?ud:escape$1(ud,!0))+`</code></pre>
`:"<pre><code>"+(od?ud:escape$1(ud,!0))+`</code></pre>
`}blockquote({tokens:qa}){return`<blockquote>
${this.parser.parse(qa)}</blockquote>
`}html({text:qa}){return qa}heading({tokens:qa,depth:nd}){return`<h${nd}>${this.parser.parseInline(qa)}</h${nd}>
`}hr(qa){return`<hr>
`}list(qa){const nd=qa.ordered,od=qa.start;let ld="";for(let dd=0;dd<qa.items.length;dd++){const pd=qa.items[dd];ld+=this.listitem(pd)}const ud=nd?"ol":"ul",cd=nd&&od!==1?' start="'+od+'"':"";return"<"+ud+cd+`>
`+ld+"</"+ud+`>
`}listitem(qa){let nd="";if(qa.task){const od=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=od+" "+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=od+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:od+" ",text:od+" "}):nd+=od+" "}return nd+=this.parser.parse(qa.tokens,!!qa.loose),`<li>${nd}</li>
`}checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return`<p>${this.parser.parseInline(qa)}</p>
`}table(qa){let nd="",od="";for(let ud=0;ud<qa.header.length;ud++)od+=this.tablecell(qa.header[ud]);nd+=this.tablerow({text:od});let ld="";for(let ud=0;ud<qa.rows.length;ud++){const cd=qa.rows[ud];od="";for(let dd=0;dd<cd.length;dd++)od+=this.tablecell(cd[dd]);ld+=this.tablerow({text:od})}return ld&&(ld=`<tbody>${ld}</tbody>`),`<table>
<thead>
`+nd+`</thead>
`+ld+`</table>
`}tablerow({text:qa}){return`<tr>
${qa}</tr>
`}tablecell(qa){const nd=this.parser.parseInline(qa.tokens),od=qa.header?"th":"td";return(qa.align?`<${od} align="${qa.align}">`:`<${od}>`)+nd+`</${od}>
`}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:nd,tokens:od}){const ld=this.parser.parseInline(od),ud=cleanUrl(qa);if(ud===null)return ld;qa=ud;let cd='<a href="'+qa+'"';return nd&&(cd+=' title="'+nd+'"'),cd+=">"+ld+"</a>",cd}image({href:qa,title:nd,text:od}){const ld=cleanUrl(qa);if(ld===null)return od;qa=ld;let ud=`<img src="${qa}" alt="${od}"`;return nd&&(ud+=` title="${nd}"`),ud+=">",ud}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){p_(this,"options");p_(this,"renderer");p_(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,nd){return new _Parser(nd).parse(qa)}static parseInline(qa,nd){return new _Parser(nd).parseInline(qa)}parse(qa,nd=!0){let od="";for(let ld=0;ld<qa.length;ld++){const ud=qa[ld];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ud.type]){const dd=ud,pd=this.options.extensions.renderers[dd.type].call({parser:this},dd);if(pd!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(dd.type)){od+=pd||"";continue}}const cd=ud;switch(cd.type){case"space":{od+=this.renderer.space(cd);continue}case"hr":{od+=this.renderer.hr(cd);continue}case"heading":{od+=this.renderer.heading(cd);continue}case"code":{od+=this.renderer.code(cd);continue}case"table":{od+=this.renderer.table(cd);continue}case"blockquote":{od+=this.renderer.blockquote(cd);continue}case"list":{od+=this.renderer.list(cd);continue}case"html":{od+=this.renderer.html(cd);continue}case"paragraph":{od+=this.renderer.paragraph(cd);continue}case"text":{let dd=cd,pd=this.renderer.text(dd);for(;ld+1<qa.length&&qa[ld+1].type==="text";)dd=qa[++ld],pd+=`
`+this.renderer.text(dd);nd?od+=this.renderer.paragraph({type:"paragraph",raw:pd,text:pd,tokens:[{type:"text",raw:pd,text:pd}]}):od+=pd;continue}default:{const dd='Token with "'+cd.type+'" type was not found.';if(this.options.silent)return console.error(dd),"";throw new Error(dd)}}}return od}parseInline(qa,nd){nd=nd||this.renderer;let od="";for(let ld=0;ld<qa.length;ld++){const ud=qa[ld];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ud.type]){const dd=this.options.extensions.renderers[ud.type].call({parser:this},ud);if(dd!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(ud.type)){od+=dd||"";continue}}const cd=ud;switch(cd.type){case"escape":{od+=nd.text(cd);break}case"html":{od+=nd.html(cd);break}case"link":{od+=nd.link(cd);break}case"image":{od+=nd.image(cd);break}case"strong":{od+=nd.strong(cd);break}case"em":{od+=nd.em(cd);break}case"codespan":{od+=nd.codespan(cd);break}case"br":{od+=nd.br(cd);break}case"del":{od+=nd.del(cd);break}case"text":{od+=nd.text(cd);break}default:{const dd='Token with "'+cd.type+'" type was not found.';if(this.options.silent)return console.error(dd),"";throw new Error(dd)}}}return od}}class _Hooks{constructor(qa){p_(this,"options");this.options=qa||_defaults}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}}p_(_Hooks,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var By,Px,Q1,Lx;class Marked{constructor(...qa){Ox(this,By);p_(this,"defaults",_getDefaults());p_(this,"options",this.setOptions);p_(this,"parse",ZT(this,By,Q1).call(this,_Lexer.lex,_Parser.parse));p_(this,"parseInline",ZT(this,By,Q1).call(this,_Lexer.lexInline,_Parser.parseInline));p_(this,"Parser",_Parser);p_(this,"Renderer",_Renderer);p_(this,"TextRenderer",_TextRenderer);p_(this,"Lexer",_Lexer);p_(this,"Tokenizer",_Tokenizer);p_(this,"Hooks",_Hooks);this.use(...qa)}walkTokens(qa,nd){var ld,ud;let od=[];for(const cd of qa)switch(od=od.concat(nd.call(this,cd)),cd.type){case"table":{const dd=cd;for(const pd of dd.header)od=od.concat(this.walkTokens(pd.tokens,nd));for(const pd of dd.rows)for(const fd of pd)od=od.concat(this.walkTokens(fd.tokens,nd));break}case"list":{const dd=cd;od=od.concat(this.walkTokens(dd.items,nd));break}default:{const dd=cd;(ud=(ld=this.defaults.extensions)==null?void 0:ld.childTokens)!=null&&ud[dd.type]?this.defaults.extensions.childTokens[dd.type].forEach(pd=>{const fd=dd[pd].flat(1/0);od=od.concat(this.walkTokens(fd,nd))}):dd.tokens&&(od=od.concat(this.walkTokens(dd.tokens,nd)))}}return od}use(...qa){const nd=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(od=>{const ld={...od};if(ld.async=this.defaults.async||ld.async||!1,od.extensions&&(od.extensions.forEach(ud=>{if(!ud.name)throw new Error("extension name required");if("renderer"in ud){const cd=nd.renderers[ud.name];cd?nd.renderers[ud.name]=function(...dd){let pd=ud.renderer.apply(this,dd);return pd===!1&&(pd=cd.apply(this,dd)),pd}:nd.renderers[ud.name]=ud.renderer}if("tokenizer"in ud){if(!ud.level||ud.level!=="block"&&ud.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const cd=nd[ud.level];cd?cd.unshift(ud.tokenizer):nd[ud.level]=[ud.tokenizer],ud.start&&(ud.level==="block"?nd.startBlock?nd.startBlock.push(ud.start):nd.startBlock=[ud.start]:ud.level==="inline"&&(nd.startInline?nd.startInline.push(ud.start):nd.startInline=[ud.start]))}"childTokens"in ud&&ud.childTokens&&(nd.childTokens[ud.name]=ud.childTokens)}),ld.extensions=nd),od.renderer){const ud=this.defaults.renderer||new _Renderer(this.defaults);for(const cd in od.renderer){if(!(cd in ud))throw new Error(`renderer '${cd}' does not exist`);if(["options","parser"].includes(cd))continue;const dd=cd;let pd=od.renderer[dd];od.useNewRenderer||(pd=ZT(this,By,Px).call(this,pd,dd,ud));const fd=ud[dd];ud[dd]=(...md)=>{let vd=pd.apply(ud,md);return vd===!1&&(vd=fd.apply(ud,md)),vd||""}}ld.renderer=ud}if(od.tokenizer){const ud=this.defaults.tokenizer||new _Tokenizer(this.defaults);for(const cd in
Please report this to https://github.com/markedjs/marked.`,qa){const ld="<p>An error occurred:</p><pre>"+escape$1(od.message+"",!0)+"</pre>";return nd?Promise.resolve(ld):ld}if(nd)return Promise.reject(od);throw od}};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=[],nd=1;nd<arguments.length;nd++)qa[nd-1]=arguments[nd];var od=Array.from(typeof Ra=="string"?[Ra]:Ra);od[od.length-1]=od[od.length-1].replace(/\r?\n([\t ]*)$/,"");var ld=od.reduce(function(dd,pd){var fd=pd.match(/\n([\t ]+|(?!\s).)/g);return fd?dd.concat(fd.map(function(md){var vd,Ad;return(Ad=(vd=md.match(/[\t ]/g))===null||vd===void 0?void 0:vd.length)!==null&&Ad!==void 0?Ad:0})):dd},[]);if(ld.length){var ud=new RegExp(`
[ ]{`+Math.min.apply(Math,ld)+"}","g");od=od.map(function(dd){return dd.replace(ud,`
`)})}od[0]=od[0].replace(/^\r?\n/,"");var cd=od[0];return qa.forEach(function(dd,pd){var fd=cd.match(/(?:^|\n)( *)$/),md=fd?fd[1]:"",vd=dd;typeof dd=="string"&&dd.includes(`
`)&&(vd=String(dd).split(`
`).map(function(Ad,Nd){return Nd===0?Ad:""+md+Ad}).join(`
`)),cd+=vd+od[pd+1]}),cd}function preprocessMarkdown(Ra,{markdownAutoWrap:qa}){const od=Ra.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`),ld=dedent(od);return qa===!1?ld.replace(/ /g,"&nbsp;"):ld}__name(preprocessMarkdown,"preprocessMarkdown");function markdownToLines(Ra,qa={}){const nd=preprocessMarkdown(Ra,qa),od=marked.lexer(nd),ld=[[]];let ud=0;function cd(dd,pd="normal"){dd.type==="text"?dd.text.split(`
`).forEach((md,vd)=>{vd!==0&&(ud++,ld.push([])),md.split(" ").forEach(Ad=>{Ad=Ad.replace(/&#39;/g,"'"),Ad&&ld[ud].push({content:Ad,type:pd})})}):dd.type==="strong"||dd.type==="em"?dd.tokens.forEach(fd=>{cd(fd,dd.type)}):dd.type==="html"&&ld[ud].push({content:dd.text,type:"normal"})}return __name(cd,"processNode"),od.forEach(dd=>{var pd;dd.type==="paragraph"?(pd=dd.tokens)==null||pd.forEach(fd=>{cd(fd)}):dd.type==="html"&&ld[ud].push({content:dd.text,type:"normal"})}),ld}__name(markdownToLines,"markdownToLines");function markdownToHTML(Ra,{markdownAutoWrap:qa}={}){const nd=marked.lexer(Ra);function od(ld){var ud,cd,dd;return ld.type==="text"?qa===!1?ld.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):ld.text.replace(/\n */g,"<br/>"):ld.type==="strong"?`<strong>${(ud=ld.tokens)==null?void 0:ud.map(od).join("")}</strong>`:ld.type==="em"?`<em>${(cd=ld.tokens)==null?void 0:cd.map(od).join("")}</em>`:ld.type==="paragraph"?`<p>${(dd=ld.tokens)==null?void 0:dd.map(od).join("")}</p>`:ld.type==="space"?"":ld.type==="html"?`${ld.text}`:ld.type==="escape"?ld.text:`Unsupported markdown: ${ld.type}`}return __name(od,"output"),nd.map(od).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 nd=splitTextToChars(qa.content);return splitWordToFitWidthRecursion(Ra,[],nd,qa.type)}__name(splitWordToFitWidth,"splitWordToFitWidth");function splitWordToFitWidthRecursion(Ra,qa,nd,od){if(nd.length===0)return[{content:qa.join(""),type:od},{content:"",type:od}];const[ld,...ud]=nd,cd=[...qa,ld];return Ra([{content:cd.join(""),type:od}])?splitWordToFitWidthRecursion(Ra,cd,ud,od):(qa.length===0&&ld&&(qa.push(ld),nd.shift()),[{content:qa.join(""),type:od},{content:nd.join(""),type:od}])}__name(splitWordToFitWidthRecursion,"splitWordToFitWidthRecursion");function splitLineToFitWidth(Ra,qa){if(Ra.some(({content:nd})=>nd.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return splitLineToFitWidthRecursion(Ra,qa)}__name(splitLineToFitWidth,"splitLineToFitWidth");function splitLineToFitWidthRecursion(Ra,qa,nd=[],od=[]){if(Ra.length===0)return od.length>0&&nd.push(od),nd.length>0?nd:[];let ld="";Ra[0].content===" "&&(ld=" ",Ra.shift());const ud=Ra.shift()??{content:" ",type:"normal"},cd=[...od];if(ld!==""&&cd.push({content:ld,type:"normal"}),cd.push(ud),qa(cd))return splitLineToFitWidthRecursion(Ra,qa,nd,cd);if(od.length>0)nd.push(od),Ra.unshift(ud);else if(ud.content){const[dd,pd]=splitWordToFitWidth(qa,ud);nd.push([dd]),pd.content&&Ra.unshift(pd)}return splitLineToFitWidthRecursion(Ra,qa,nd)}__name(splitLineToFitWidthRecursion,"splitLineToFitWidthRecursion");function applyStyle$1(Ra,qa){qa&&Ra.attr("style",qa)}__name(applyStyle$1,"applyStyle");async function addHtmlSpan(Ra,qa,nd,od,ld=!1){const ud=Ra.append("foreignObject");ud.attr("width",`${10*nd}px`),ud.attr("height",`${10*nd}px`);const cd=ud.append("xhtml:div");let dd=qa.label;qa.label&&hasKatex(qa.label)&&(dd=await renderKatex(qa.label.replace(common_default.lineBreakRegex,`
`),getConfig2()));const pd=qa.isNode?"nodeLabel":"edgeLabel",fd=cd.append("span");fd.html(dd),applyStyle$1(fd,qa.labelStyle),fd.attr("class",`${pd} ${od}`),applyStyle$1(cd,qa.labelStyle),cd.style("display","table-cell"),cd.style("white-space","nowrap"),cd.style("line-height","1.5"),cd.style("max-width",nd+"px"),cd.style("text-align","center"),cd.attr("xmlns","http://www.w3.org/1999/xhtml"),ld&&cd.attr("class","labelBkg");let md=cd.node().getBoundingClientRect();return md.width===nd&&(cd.style("display","table"),cd.style("white-space","break-spaces"),cd.style("width",nd+"px"),md=cd.node().getBoundingClientRect()),ud.node()}__name(addHtmlSpan,"addHtmlSpan");function createTspan(Ra,qa,nd){return Ra.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",qa*nd-.1+"em").attr("dy",nd+"em")}__name(createTspan,"createTspan");function computeWidthOfText(Ra,qa,nd){const od=Ra.append("text"),ld=createTspan(od,1,qa);updateTextContentAndStyles(ld,nd);const ud=ld.node().getComputedTextLength();return od.remove(),ud}__name(computeWidthOfText,"computeWidthOfText");function computeDimensionOfText(Ra,qa,nd){var cd;const od=Ra.append("text"),ld=createTspan(od,1,qa);updateTextContentAndStyles(ld,[{content:nd,type:"normal"}]);const ud=(cd=ld.node())==null?void 0:cd.getBoundingClientRect();return ud&&od.remove(),ud}__name(computeDimensionOfText,"computeDimensionOfText");function createFormattedText(Ra,qa,nd,od=!1){const ud=qa.append("g"),cd=ud.insert("rect").attr("class","background").attr("style","stroke: none"),dd=ud.append("text").attr("y","-10.1");let pd=0;for(const fd of nd){const md=__name(Ad=>computeWidthOfText(ud,1.1,Ad)<=Ra,"checkWidth"),vd=md(fd)?[fd]:splitLineToFitWidth(fd,md);for(const Ad of vd){const Nd=createTspan(dd,pd,1.1);updateTextContentAndStyles(Nd,Ad),pd++}}if(od){const fd=dd.node().getBBox(),md=2;return cd.attr("x",fd.x-md).attr("y",fd.y-md).attr("width",fd.width+2*md).attr("height",fd.height+2*md),ud.node()}else return dd.node()}__name(createFormattedText,"createFormattedText");function updateTextContentAndStyles(Ra,qa){Ra.text(""),qa.forEach((nd,od)=>{const ld=Ra.append("tspan").attr("font-style",nd.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",nd.type==="strong"?"bold":"normal");od===0?ld.text(nd.content):ld.text(" "+nd.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:nd="",isTitle:od=!1,classes:ld="",useHtmlLabels:ud=!0,isNode:cd=!0,width:dd=200,addSvgBackground:pd=!1}={},fd)=>{if(log$1.debug("XYZ createText",qa,nd,od,ld,ud,cd,"addSvgBackground: ",pd),ud){const md=markdownToHTML(qa,fd),vd=replaceIconSubstring(decodeEntities(md)),Ad=qa.replace(/\\\\/g,"\\"),Nd={isNode:cd,label:hasKatex(qa)?Ad:vd,labelStyle:nd.replace("fill:","color:")};return await addHtmlSpan(Ra,Nd,dd,ld,pd)}else{const md=qa.replace(/<br\s*\/?>/g,"<br/>"),vd=markdownToLines(md.replace("<br>","<br/>"),fd),Ad=createFormattedText(dd,Ra,vd,qa?pd:!1);if(cd){/stroke:/.exec(nd)&&(nd=nd.replace("stroke:","lineColor:"));const Nd=nd.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");select(Ad).attr("style",Nd)}else{const Nd=nd.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");select(Ad).select("rect").attr("style",Nd.replace(/background:/g,"fill:"));const Id=nd.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");select(Ad).select("text").attr("style",Id)}return Ad}},"createText");function t(Ra,qa,nd){if(Ra&&Ra.length){const[od,ld]=qa,ud=Math.PI/180*nd,cd=Math.cos(ud),dd=Math.sin(ud);for(const pd of Ra){const[fd,md]=pd;pd[0]=(fd-od)*cd-(md-ld)*dd+od,pd[1]=(fd-od)*dd+(md-ld)*cd+ld}}}function e(Ra,qa){return Ra[0]===qa[0]&&Ra[1]===qa[1]}function s(Ra,qa,nd,od=1)
`),getConfig2()));const ld=Ra.isNode?"nodeLabel":"edgeLabel";return nd.html('<span class="'+ld+'" '+(Ra.labelStyle?'style="'+Ra.labelStyle+'"':"")+">"+od+"</span>"),applyStyle(nd,Ra.labelStyle),nd.style("display","inline-block"),nd.style("padding-right","1px"),nd.style("white-space","nowrap"),nd.attr("xmlns","http://www.w3.org/1999/xhtml"),qa.node()}__name(addHtmlLabel,"addHtmlLabel");var createLabel=__name(async(Ra,qa,nd,od)=>{let ld=Ra||"";if(typeof ld=="object"&&(ld=ld[0]),evaluate(getConfig2().flowchart.htmlLabels)){ld=ld.replace(/\\n|\n/g,"<br />"),log$1.info("vertexText"+ld);const ud={isNode:od,label:decodeEntities(ld).replace(/fa[blrs]?:fa-[\w-]+/g,dd=>`<i class='${dd.replace(":"," ")}'></i>`),labelStyle:qa&&qa.replace("fill:","color:")};return await addHtmlLabel(ud)}else{const ud=document.createElementNS("http://www.w3.org/2000/svg","text");ud.setAttribute("style",qa.replace("color:","fill:"));let cd=[];typeof ld=="string"?cd=ld.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(ld)?cd=ld:cd=[];for(const dd of cd){const pd=document.createElementNS("http://www.w3.org/2000/svg","tspan");pd.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),pd.setAttribute("dy","1em"),pd.setAttribute("x","0"),nd?pd.setAttribute("class","title-row"):pd.setAttribute("class","row"),pd.textContent=dd.trim(),ud.appendChild(pd)}return ud}},"createLabel"),createLabel_default=createLabel,createRoundedRectPathD=__name((Ra,qa,nd,od,ld)=>["M",Ra+ld,qa,"H",Ra+nd-ld,"A",ld,ld,0,0,1,Ra+nd,qa+ld,"V",qa+od-ld,"A",ld,ld,0,0,1,Ra+nd-ld,qa+od,"H",Ra+ld,"A",ld,ld,0,0,1,Ra,qa+od-ld,"V",qa+ld,"A",ld,ld,0,0,1,Ra+ld,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(nd=>{const[od,ld]=nd.split(":");qa.set(od.trim(),ld==null?void 0:ld.trim())}),qa},"styles2Map"),styles2String=__name(Ra=>{const{stylesArray:qa}=compileStyles(Ra),nd=[],od=[],ld=[],ud=[];return qa.forEach(cd=>{const dd=cd[0];dd==="color"||dd==="font-size"||dd==="font-family"||dd==="font-weight"||dd==="font-style"||dd==="text-decoration"||dd==="text-align"||dd==="text-transform"||dd==="line-height"||dd==="letter-spacing"||dd==="word-spacing"||dd==="text-shadow"||dd==="text-overflow"||dd==="white-space"||dd==="word-wrap"||dd==="word-break"||dd==="overflow-wrap"||dd==="hyphens"?nd.push(cd.join(":")+" !important"):(od.push(cd.join(":")+" !important"),dd.includes("stroke")&&ld.push(cd.join(":")+" !important"),dd==="fill"&&ud.push(cd.join(":")+" !important"))}),{labelStyles:nd.join(";"),nodeStyles:od.join(";"),stylesArray:qa,borderStyles:ld,backgroundStyles:ud}},"styles2String"),userNodeOverrides=__name((Ra,qa)=>{var pd;const{themeVariables:nd,handDrawnSeed:od}=getConfig2(),{nodeBorder:ld,mainBkg:ud}=nd,{stylesMap:cd}=compileStyles(Ra);return Object.assign({roughness:.7,fill:cd.get("fill")||ud,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:cd.get("stroke")||ld,seed:od,strokeWidth:((pd=cd.get("stroke-width"))==null?void 0:pd.replace("px",""))||1.3,fillLineDash:[0,0]},qa)},"userNodeOverrides"),rect=__name(async(Ra,qa)=>{log$1.info("Creating subgraph rect for ",qa.id,qa);const nd=getConfig2(),{themeVariables:od,handDrawnSeed:ld}=nd,{clusterBkg:ud,clusterBorder:cd}=od,{labelStyles:dd,nodeStyles:pd,borderStyles:fd,backgroundStyles:md}=styles2String(qa),vd=Ra.insert("g").attr("class","cluster "+qa.cssClasses).attr("id",qa.id).attr("data-look",qa.look),Ad=evaluate(nd.flowchart.htmlLabels),Nd=vd.insert("g").attr("class","cluster-label "),Id=await createText(Nd,qa.label,{style:qa.labelStyle,useHtmlLabels:Ad,isNode:!0});let kd=Id.getBBox();if(evaluate(nd.flowchart.htmlLabels)){const Qd=Id.children[0],mf=select(Id);kd=Qd.getBoundingClientRect(),mf.attr("width",kd.width),mf.attr("height",kd.height)}const jd=qa.wi
M ${ld.x},${ld.y} L ${cd.x},${cd.y}`}__name(createLine,"createLine");function crossedCircle(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd,qa.label="";const ld=Ra.insert("g").attr("class",getNodeClasses(qa)).attr("id",qa.domId??qa.id),ud=Math.max(30,(qa==null?void 0:qa.width)??0),{cssStyles:cd}=qa,dd=at$2.svg(ld),pd=userNodeOverrides(qa,{});qa.look!=="handDrawn"&&(pd.roughness=0,pd.fillStyle="solid");const fd=dd.circle(0,0,ud*2,pd),md=createLine(ud),vd=dd.path(md,pd),Ad=ld.insert(()=>fd,":first-child");return Ad.insert(()=>vd),cd&&qa.look!=="handDrawn"&&Ad.selectAll("path").attr("style",cd),od&&qa.look!=="handDrawn"&&Ad.selectAll("path").attr("style",od),updateNodeBounds(qa,Ad),qa.intersect=function(Nd){return log$1.info("crossedCircle intersect",qa,{radius:ud,point:Nd}),intersect_default.circle(qa,ud,Nd)},ld}__name(crossedCircle,"crossedCircle");function generateCirclePoints2(Ra,qa,nd,od=100,ld=0,ud=180){const cd=[],dd=ld*Math.PI/180,md=(ud*Math.PI/180-dd)/(od-1);for(let vd=0;vd<od;vd++){const Ad=dd+vd*md,Nd=Ra+nd*Math.cos(Ad),Id=qa+nd*Math.sin(Ad);cd.push({x:-Nd,y:-Id})}return cd}__name(generateCirclePoints2,"generateCirclePoints");async function curlyBraceLeft(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:cd}=await labelHelper(Ra,qa,getNodeClasses(qa)),dd=ud.width+(qa.padding??0),pd=ud.height+(qa.padding??0),fd=Math.max(5,pd*.1),{cssStyles:md}=qa,vd=[...generateCirclePoints2(dd/2,-pd/2,fd,30,-90,0),{x:-dd/2-fd,y:fd},...generateCirclePoints2(dd/2+fd*2,-fd,fd,20,-180,-270),...generateCirclePoints2(dd/2+fd*2,fd,fd,20,-90,-180),{x:-dd/2-fd,y:-pd/2},...generateCirclePoints2(dd/2,pd/2,fd,20,0,90)],Ad=[{x:dd/2,y:-pd/2-fd},{x:-dd/2,y:-pd/2-fd},...generateCirclePoints2(dd/2,-pd/2,fd,20,-90,0),{x:-dd/2-fd,y:-fd},...generateCirclePoints2(dd/2+dd*.1,-fd,fd,20,-180,-270),...generateCirclePoints2(dd/2+dd*.1,fd,fd,20,-90,-180),{x:-dd/2-fd,y:pd/2},...generateCirclePoints2(dd/2,pd/2,fd,20,0,90),{x:-dd/2,y:pd/2+fd},{x:dd/2,y:pd/2+fd}],Nd=at$2.svg(ld),Id=userNodeOverrides(qa,{fill:"none"});qa.look!=="handDrawn"&&(Id.roughness=0,Id.fillStyle="solid");const jd=createPathFromPoints(vd).replace("Z",""),Fd=Nd.path(jd,Id),Md=createPathFromPoints(Ad),Ld=Nd.path(Md,{...Id}),Hd=ld.insert("g",":first-child");return Hd.insert(()=>Ld,":first-child").attr("stroke-opacity",0),Hd.insert(()=>Fd,":first-child"),Hd.attr("class","text"),md&&qa.look!=="handDrawn"&&Hd.selectAll("path").attr("style",md),od&&qa.look!=="handDrawn"&&Hd.selectAll("path").attr("style",od),Hd.attr("transform",`translate(${fd}, 0)`),cd.attr("transform",`translate(${-dd/2+fd-(ud.x-(ud.left??0))},${-pd/2+(qa.padding??0)/2-(ud.y-(ud.top??0))})`),updateNodeBounds(qa,Hd),qa.intersect=function(Gd){return intersect_default.polygon(qa,Ad,Gd)},ld}__name(curlyBraceLeft,"curlyBraceLeft");function generateCirclePoints3(Ra,qa,nd,od=100,ld=0,ud=180){const cd=[],dd=ld*Math.PI/180,md=(ud*Math.PI/180-dd)/(od-1);for(let vd=0;vd<od;vd++){const Ad=dd+vd*md,Nd=Ra+nd*Math.cos(Ad),Id=qa+nd*Math.sin(Ad);cd.push({x:Nd,y:Id})}return cd}__name(generateCirclePoints3,"generateCirclePoints");async function curlyBraceRight(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:cd}=await labelHelper(Ra,qa,getNodeClasses(qa)),dd=ud.width+(qa.padding??0),pd=ud.height+(qa.padding??0),fd=Math.max(5,pd*.1),{cssStyles:md}=qa,vd=[...generateCirclePoints3(dd/2,-pd/2,fd,20,-90,0),{x:dd/2+fd,y:-fd},...generateCirclePoints3(dd/2+fd*2,-fd,fd,20,-180,-270),...generateCirclePoints3(dd/2+fd*2,fd,fd,20,-90,-180),{x:dd/2+fd,y:pd/2},...generateCirclePoints3(dd/2,pd/2,fd,20,0,90)],Ad=[{x:-dd/2,y:-pd/2-fd},{x:dd/2,y:-pd/2-fd},...generateCirclePoints3(dd/2,-pd/2,fd,20,-90,0),{x:dd/2+fd,y:-fd},...generateCirclePoints3(dd/2+fd*2,-fd,fd,20,-180,-270),...generateCirclePoints3(dd/2+fd*2,fd,fd,20,-90,-180),{x:dd/2+fd,y:pd/2},...generateCirclePoints3(dd/2,pd/2,fd,20,0,90),{x:dd/2,y:pd/2+fd},{x:-dd/2,y:pd/2+fd}],Nd=at$2.svg(ld),Id=userNodeOverrides(qa,{fill:"none"});qa.look!
point:`,Ad,`
node:
`,qa,`
res:`,intersect_default.polygon(qa,fd,Ad)),intersect_default.polygon(qa,fd,Ad)},ld}__name(question,"question");async function rect_left_inv_arrow(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:cd}=await labelHelper(Ra,qa,getNodeClasses(qa)),dd=Math.max(ud.width+(qa.padding??0),(qa==null?void 0:qa.width)??0),pd=Math.max(ud.height+(qa.padding??0),(qa==null?void 0:qa.height)??0),fd=-dd/2,md=-pd/2,vd=md/2,Ad=[{x:fd+vd,y:md},{x:fd,y:0},{x:fd+vd,y:-md},{x:-fd,y:-md},{x:-fd,y:md}],{cssStyles:Nd}=qa,Id=at$2.svg(ld),kd=userNodeOverrides(qa,{});qa.look!=="handDrawn"&&(kd.roughness=0,kd.fillStyle="solid");const jd=createPathFromPoints(Ad),Fd=Id.path(jd,kd),Md=ld.insert(()=>Fd,":first-child");return Md.attr("class","basic label-container"),Nd&&qa.look!=="handDrawn"&&Md.selectAll("path").attr("style",Nd),od&&qa.look!=="handDrawn"&&Md.selectAll("path").attr("style",od),Md.attr("transform",`translate(${-vd/2},0)`),cd.attr("transform",`translate(${-vd/2-ud.width/2-(ud.x-(ud.left??0))}, ${-(ud.height/2)-(ud.y-(ud.top??0))})`),updateNodeBounds(qa,Md),qa.intersect=function(Ld){return intersect_default.polygon(qa,Ad,Ld)},ld}__name(rect_left_inv_arrow,"rect_left_inv_arrow");async function rectWithTitle(Ra,qa){var mf,Yd;const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;let ld;qa.cssClasses?ld="node "+qa.cssClasses:ld="node default";const ud=Ra.insert("g").attr("class",ld).attr("id",qa.domId||qa.id),cd=ud.insert("g"),dd=ud.insert("g").attr("class","label").attr("style",od),pd=qa.description,fd=qa.label,md=dd.node().appendChild(await createLabel_default(fd,qa.labelStyle,!0,!0));let vd={width:0,height:0};if(evaluate((Yd=(mf=getConfig2())==null?void 0:mf.flowchart)==null?void 0:Yd.htmlLabels)){const Zd=md.children[0],Kd=select(md);vd=Zd.getBoundingClientRect(),Kd.attr("width",vd.width),Kd.attr("height",vd.height)}log$1.info("Text 2",pd);const Ad=pd||[],Nd=md.getBBox(),Id=dd.node().appendChild(await createLabel_default(Ad.join?Ad.join("<br/>"):Ad,qa.labelStyle,!0,!0)),kd=Id.children[0],jd=select(Id);vd=kd.getBoundingClientRect(),jd.attr("width",vd.width),jd.attr("height",vd.height);const Fd=(qa.padding||0)/2;select(Id).attr("transform","translate( "+(vd.width>Nd.width?0:(Nd.width-vd.width)/2)+", "+(Nd.height+Fd+5)+")"),select(md).attr("transform","translate( "+(vd.width<Nd.width?0:-(Nd.width-vd.width)/2)+", 0)"),vd=dd.node().getBBox(),dd.attr("transform","translate("+-vd.width/2+", "+(-vd.height/2-Fd+3)+")");const Md=vd.width+(qa.padding||0),Ld=vd.height+(qa.padding||0),Hd=-vd.width/2-Fd,Gd=-vd.height/2-Fd;let Vd,Qd;if(qa.look==="handDrawn"){const Zd=at$2.svg(ud),Kd=userNodeOverrides(qa,{}),bf=Zd.path(createRoundedRectPathD(Hd,Gd,Md,Ld,qa.rx||0),Kd),gf=Zd.line(-vd.width/2-Fd,-vd.height/2-Fd+Nd.height+Fd,vd.width/2+Fd,-vd.height/2-Fd+Nd.height+Fd,Kd);Qd=ud.insert(()=>(log$1.debug("Rough node insert CXC",bf),gf),":first-child"),Vd=ud.insert(()=>(log$1.debug("Rough node insert CXC",bf),bf),":first-child")}else Vd=cd.insert("rect",":first-child"),Qd=cd.insert("line"),Vd.attr("class","outer title-state").attr("style",od).attr("x",-vd.width/2-Fd).attr("y",-vd.height/2-Fd).attr("width",vd.width+(qa.padding||0)).attr("height",vd.height+(qa.padding||0)),Qd.attr("class","divider").attr("x1",-vd.width/2-Fd).attr("x2",vd.width/2+Fd).attr("y1",-vd.height/2-Fd+Nd.height+Fd).attr("y2",-vd.height/2-Fd+Nd.height+Fd);return updateNodeBounds(qa,Vd),qa.intersect=function(Zd){return intersect_default.rect(qa,Zd)},ud}__name(rectWithTitle,"rectWithTitle");async function roundedRect(Ra,qa){const nd={rx:5,ry:5,classes:"",labelPaddingX:((qa==null?void 0:qa.padding)||0)*1,labelPaddingY:((qa==null?void 0:qa.padding)||0)*1};return drawRect(Ra,qa,nd)}__name(roundedRect,"roundedRect");async function shadedProcess(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:cd}=await labelHelper(Ra,qa,getNodeClasses(qa)),dd=(qa==null?void 0:qa.padding)??0,pd=Math.max(ud.width+(qa.padding??0)*2,(qa==null?void 0:qa.width)??0),fd=Math.max(ud.height+(
a${ld},${ud} 0,0,1 0,${-od}
l${nd},0
a${ld},${ud} 0,0,1 0,${od}
M${nd},${-od}
a${ld},${ud} 0,0,0 0,${od}
l${-nd},0`,"createCylinderPathD"),createOuterCylinderPathD3=__name((Ra,qa,nd,od,ld,ud)=>[`M${Ra},${qa}`,`M${Ra+nd},${qa}`,`a${ld},${ud} 0,0,0 0,${-od}`,`l${-nd},0`,`a${ld},${ud} 0,0,0 0,${od}`,`l${nd},0`].join(" "),"createOuterCylinderPathD"),createInnerCylinderPathD3=__name((Ra,qa,nd,od,ld,ud)=>[`M${Ra+nd/2},${-od/2}`,`a${ld},${ud} 0,0,0 0,${od}`].join(" "),"createInnerCylinderPathD");async function tiltedCylinder(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:cd,halfPadding:dd}=await labelHelper(Ra,qa,getNodeClasses(qa)),pd=qa.look==="neo"?dd*2:dd,fd=ud.height+pd,md=fd/2,vd=md/(2.5+fd/50),Ad=ud.width+vd+pd,{cssStyles:Nd}=qa;let Id;if(qa.look==="handDrawn"){const kd=at$2.svg(ld),jd=createOuterCylinderPathD3(0,0,Ad,fd,vd,md),Fd=createInnerCylinderPathD3(0,0,Ad,fd,vd,md),Md=kd.path(jd,userNodeOverrides(qa,{})),Ld=kd.path(Fd,userNodeOverrides(qa,{fill:"none"}));Id=ld.insert(()=>Ld,":first-child"),Id=ld.insert(()=>Md,":first-child"),Id.attr("class","basic label-container"),Nd&&Id.attr("style",Nd)}else{const kd=createCylinderPathD3(0,0,Ad,fd,vd,md);Id=ld.insert("path",":first-child").attr("d",kd).attr("class","basic label-container").attr("style",handleUndefinedAttr(Nd)).attr("style",od),Id.attr("class","basic label-container"),Nd&&Id.selectAll("path").attr("style",Nd),od&&Id.selectAll("path").attr("style",od)}return Id.attr("label-offset-x",vd),Id.attr("transform",`translate(${-Ad/2}, ${fd/2} )`),cd.attr("transform",`translate(${-(ud.width/2)-vd-(ud.x-(ud.left??0))}, ${-(ud.height/2)-(ud.y-(ud.top??0))})`),updateNodeBounds(qa,Id),qa.intersect=function(kd){const jd=intersect_default.rect(qa,kd),Fd=jd.y-(qa.y??0);if(md!=0&&(Math.abs(Fd)<(qa.height??0)/2||Math.abs(Fd)==(qa.height??0)/2&&Math.abs(jd.x-(qa.x??0))>(qa.width??0)/2-vd)){let Md=vd*vd*(1-Fd*Fd/(md*md));Md!=0&&(Md=Math.sqrt(Math.abs(Md))),Md=vd-Md,kd.x-(qa.x??0)>0&&(Md=-Md),jd.x+=Md}return jd},ld}__name(tiltedCylinder,"tiltedCylinder");async function trapezoid(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud}=await labelHelper(Ra,qa,getNodeClasses(qa)),cd=ud.width+qa.padding,dd=ud.height+qa.padding,pd=[{x:-3*dd/6,y:0},{x:cd+3*dd/6,y:0},{x:cd,y:-dd},{x:0,y:-dd}];let fd;const{cssStyles:md}=qa;if(qa.look==="handDrawn"){const vd=at$2.svg(ld),Ad=userNodeOverrides(qa,{}),Nd=createPathFromPoints(pd),Id=vd.path(Nd,Ad);fd=ld.insert(()=>Id,":first-child").attr("transform",`translate(${-cd/2}, ${dd/2})`),md&&fd.attr("style",md)}else fd=insertPolygonShape(ld,cd,dd,pd);return od&&fd.attr("style",od),qa.width=cd,qa.height=dd,updateNodeBounds(qa,fd),qa.intersect=function(vd){return intersect_default.polygon(qa,pd,vd)},ld}__name(trapezoid,"trapezoid");async function trapezoidalPentagon(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud}=await labelHelper(Ra,qa,getNodeClasses(qa)),cd=60,dd=20,pd=Math.max(cd,ud.width+(qa.padding??0)*2,(qa==null?void 0:qa.width)??0),fd=Math.max(dd,ud.height+(qa.padding??0)*2,(qa==null?void 0:qa.height)??0),{cssStyles:md}=qa,vd=at$2.svg(ld),Ad=userNodeOverrides(qa,{});qa.look!=="handDrawn"&&(Ad.roughness=0,Ad.fillStyle="solid");const Nd=[{x:-pd/2*.8,y:-fd/2},{x:pd/2*.8,y:-fd/2},{x:pd/2,y:-fd/2*.6},{x:pd/2,y:fd/2},{x:-pd/2,y:fd/2},{x:-pd/2,y:-fd/2*.6}],Id=createPathFromPoints(Nd),kd=vd.path(Id,Ad),jd=ld.insert(()=>kd,":first-child");return jd.attr("class","basic label-container"),md&&qa.look!=="handDrawn"&&jd.selectChildren("path").attr("style",md),od&&qa.look!=="handDrawn"&&jd.selectChildren("path").attr("style",od),updateNodeBounds(qa,jd),qa.intersect=function(Fd){return intersect_default.polygon(qa,Nd,Fd)},ld}__name(trapezoidalPentagon,"trapezoidalPentagon");async function triangle(Ra,qa){var Md;const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:cd}=await labelHelper(Ra,qa,getNodeClasses(qa)),dd=evaluate((Md=getConfig2().flowchart)==null?void 0:Md.htmlLabels),pd=ud.width+(qa.padding??0),fd=pd+ud.height,md=pd+ud.height,vd=[{x:0,y
M${md-fd},${vd} L${md+dd},${vd}
M${md},${vd-fd} L${md},${vd+pd}`;qa.look!=="handDrawn"&&(Id.roughness=0,Id.fillStyle="solid");const Fd=Nd.path(jd,Id),Md=ld.insert(()=>Fd,":first-child");return Md.attr("transform",`translate(${fd/2}, ${fd/2})`),Md.attr("class","basic label-container"),Ad&&qa.look!=="handDrawn"&&Md.selectAll("path").attr("style",Ad),od&&qa.look!=="handDrawn"&&Md.selectAll("path").attr("style",od),cd.attr("transform",`translate(${-(ud.width/2)+fd/2-(ud.x-(ud.left??0))}, ${-(ud.height/2)+fd/2-(ud.y-(ud.top??0))})`),updateNodeBounds(qa,Md),qa.intersect=function(Ld){return intersect_default.polygon(qa,kd,Ld)},ld}__name(windowPane,"windowPane");async function textHelper(Ra,qa,nd,od,ld=nd.class.padding??12){const ud=od?0:3,cd=Ra.insert("g").attr("class",getNodeClasses(qa)).attr("id",qa.domId||qa.id);let dd=null,pd=null,fd=null,md=null,vd=0,Ad=0,Nd=0;if(dd=cd.insert("g").attr("class","annotation-group text"),qa.annotations.length>0){const Md=qa.annotations[0];await addText(dd,{text:`«${Md}»`},0),vd=dd.node().getBBox().height}pd=cd.insert("g").attr("class","label-group text"),await addText(pd,qa,0,["font-weight: bolder"]);const Id=pd.node().getBBox();Ad=Id.height,fd=cd.insert("g").attr("class","members-group text");let kd=0;for(const Md of qa.members){const Ld=await addText(fd,Md,kd,[Md.parseClassifier()]);kd+=Ld+ud}Nd=fd.node().getBBox().height,Nd<=0&&(Nd=ld/2),md=cd.insert("g").attr("class","methods-group text");let jd=0;for(const Md of qa.methods){const Ld=await addText(md,Md,jd,[Md.parseClassifier()]);jd+=Ld+ud}let Fd=cd.node().getBBox();if(dd!==null){const Md=dd.node().getBBox();dd.attr("transform",`translate(${-Md.width/2})`)}return pd.attr("transform",`translate(${-Id.width/2}, ${vd})`),Fd=cd.node().getBBox(),fd.attr("transform",`translate(0, ${vd+Ad+ld*2})`),Fd=cd.node().getBBox(),md.attr("transform",`translate(0, ${vd+Ad+(Nd?Nd+ld*4:ld*2)})`),Fd=cd.node().getBBox(),{shapeSvg:cd,bbox:Fd}}__name(textHelper,"textHelper");async function addText(Ra,qa,nd,od=[]){const ld=Ra.insert("g").attr("class","label").attr("style",od.join("; ")),ud=getConfig$1();let cd="useHtmlLabels"in qa?qa.useHtmlLabels:evaluate(ud.htmlLabels)??!0,dd="";"text"in qa?dd=qa.text:dd=qa.label,!cd&&dd.startsWith("\\")&&(dd=dd.substring(1)),hasKatex(dd)&&(cd=!0);const pd=await createText(ld,sanitizeText3(decodeEntities(dd)),{width:calculateTextWidth(dd,ud)+50,classes:"markdown-node-label",useHtmlLabels:cd},ud);let fd,md=1;if(cd){const vd=pd.children[0],Ad=select(pd);md=vd.innerHTML.split("<br>").length,vd.innerHTML.includes("</math>")&&(md+=vd.innerHTML.split("<mrow>").length-1);const Nd=vd.getElementsByTagName("img");if(Nd){const Id=dd.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...Nd].map(kd=>new Promise(jd=>{function Fd(){var Md;if(kd.style.display="flex",kd.style.flexDirection="column",Id){const Ld=((Md=ud.fontSize)==null?void 0:Md.toString())??window.getComputedStyle(document.body).fontSize,Gd=parseInt(Ld,10)*5+"px";kd.style.minWidth=Gd,kd.style.maxWidth=Gd}else kd.style.width="100%";jd(kd)}__name(Fd,"setupImage"),setTimeout(()=>{kd.complete&&Fd()}),kd.addEventListener("error",Fd),kd.addEventListener("load",Fd)})))}fd=vd.getBoundingClientRect(),Ad.attr("width",fd.width),Ad.attr("height",fd.height)}else{od.includes("font-weight: bolder")&&select(pd).selectAll("tspan").attr("font-weight",""),md=pd.children.length;const vd=pd.children[0];(pd.textContent===""||pd.textContent.includes("&gt"))&&(vd.textContent=dd[0]+dd.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),dd[1]===" "&&(vd.textContent=vd.textContent[0]+" "+vd.textContent.substring(1))),vd.textContent==="undefined"&&(vd.textContent=""),fd=pd.getBBox()}return ld.attr("transform","translate(0,"+(-fd.height/(2*md)+nd)+")"),fd.height}__name(addText,"addText");async function classBox(Ra,qa){var Yd,Zd;const nd=getConfig2(),od=nd.class.padding??12,ld=od,ud=qa.useHtmlLabels??evaluate(nd.htmlLabels)??!0,cd=qa;cd.annotations=cd.annotations??[],cd.members=cd.members??[],cd.methods=cd.methods??[];const{shapeSvg:dd,bbox:pd}=await textHelper(Ra,qa,nd,ud,ld),{labelStyles:fd,nodeSty
outsidePoint: ${JSON.stringify(qa)}
insidePoint : ${JSON.stringify(nd)}
node : x:${Ra.x} y:${Ra.y} w:${Ra.width} h:${Ra.height}`);const od=Ra.x,ld=Ra.y,ud=Math.abs(od-nd.x),cd=Ra.width/2;let dd=nd.x<qa.x?cd-ud:cd+ud;const pd=Ra.height/2,fd=Math.abs(qa.y-nd.y),md=Math.abs(qa.x-nd.x);if(Math.abs(ld-qa.y)*cd>Math.abs(od-qa.x)*pd){let vd=nd.y<qa.y?qa.y-pd-ld:ld-pd-qa.y;dd=md*vd/fd;const Ad={x:nd.x<qa.x?nd.x+dd:nd.x-md+dd,y:nd.y<qa.y?nd.y+fd-vd:nd.y-fd+vd};return dd===0&&(Ad.x=qa.x,Ad.y=qa.y),md===0&&(Ad.x=qa.x),fd===0&&(Ad.y=qa.y),log$1.debug(`abc89 top/bottom calc, Q ${fd}, q ${vd}, R ${md}, r ${dd}`,Ad),Ad}else{nd.x<qa.x?dd=qa.x-cd-od:dd=od-cd-qa.x;let vd=fd*dd/md,Ad=nd.x<qa.x?nd.x+md-dd:nd.x-md+dd,Nd=nd.y<qa.y?nd.y+vd:nd.y-vd;return log$1.debug(`sides calc abc89, Q ${fd}, q ${vd}, R ${md}, r ${dd}`,{_x:Ad,_y:Nd}),dd===0&&(Ad=qa.x,Nd=qa.y),md===0&&(Ad=qa.x),fd===0&&(Nd=qa.y),{x:Ad,y:Nd}}},"intersection"),cutPathAtIntersect=__name((Ra,qa)=>{log$1.warn("abc88 cutPathAtIntersect",Ra,qa);let nd=[],od=Ra[0],ld=!1;return Ra.forEach(ud=>{if(log$1.info("abc88 checking point",ud,qa),!outsideNode(qa,ud)&&!ld){const cd=intersection(qa,od,ud);log$1.debug("abc88 inside",ud,od,cd),log$1.debug("abc88 intersection",cd,qa);let dd=!1;nd.forEach(pd=>{dd=dd||pd.x===cd.x&&pd.y===cd.y}),nd.some(pd=>pd.x===cd.x&&pd.y===cd.y)?log$1.warn("abc88 no intersect",cd,nd):nd.push(cd),ld=!0}else log$1.warn("abc88 outside",ud,od),od=ud,ld||nd.push(ud)}),log$1.debug("returning points",nd),nd},"cutPathAtIntersect");function extractCornerPoints(Ra){const qa=[],nd=[];for(let od=1;od<Ra.length-1;od++){const ld=Ra[od-1],ud=Ra[od],cd=Ra[od+1];(ld.x===ud.x&&ud.y===cd.y&&Math.abs(ud.x-cd.x)>5&&Math.abs(ud.y-ld.y)>5||ld.y===ud.y&&ud.x===cd.x&&Math.abs(ud.x-ld.x)>5&&Math.abs(ud.y-cd.y)>5)&&(qa.push(ud),nd.push(od))}return{cornerPoints:qa,cornerPointPositions:nd}}__name(extractCornerPoints,"extractCornerPoints");var findAdjacentPoint=__name(function(Ra,qa,nd){const od=qa.x-Ra.x,ld=qa.y-Ra.y,ud=Math.sqrt(od*od+ld*ld),cd=nd/ud;return{x:qa.x-cd*od,y:qa.y-cd*ld}},"findAdjacentPoint"),fixCorners=__name(function(Ra){const{cornerPointPositions:qa}=extractCornerPoints(Ra),nd=[];for(let od=0;od<Ra.length;od++)if(qa.includes(od)){const ld=Ra[od-1],ud=Ra[od+1],cd=Ra[od],dd=findAdjacentPoint(ld,cd,5),pd=findAdjacentPoint(ud,cd,5),fd=pd.x-dd.x,md=pd.y-dd.y;nd.push(dd);const vd=Math.sqrt(2)*2;let Ad={x:cd.x,y:cd.y};if(Math.abs(ud.x-ld.x)>10&&Math.abs(ud.y-ld.y)>=10){log$1.debug("Corner point fixing",Math.abs(ud.x-ld.x),Math.abs(ud.y-ld.y));const Nd=5;cd.x===dd.x?Ad={x:fd<0?dd.x-Nd+vd:dd.x+Nd-vd,y:md<0?dd.y-vd:dd.y+vd}:Ad={x:fd<0?dd.x-vd:dd.x+vd,y:md<0?dd.y-Nd+vd:dd.y+Nd-vd}}else log$1.debug("Corner point skipping fixing",Math.abs(ud.x-ld.x),Math.abs(ud.y-ld.y));nd.push(Ad,pd)}else nd.push(Ra[od]);return nd},"fixCorners"),insertEdge=__name(function(Ra,qa,nd,od,ld,ud,cd){const{handDrawnSeed:dd}=getConfig2();let pd=qa.points,fd=!1;const md=ld;var vd=ud;vd.intersect&&md.intersect&&(pd=pd.slice(1,qa.points.length-1),pd.unshift(md.intersect(pd[0])),log$1.debug("Last point APA12",qa.start,"-->",qa.end,pd[pd.length-1],vd,vd.intersect(pd[pd.length-1])),pd.push(vd.intersect(pd[pd.length-1]))),qa.toCluster&&(log$1.info("to cluster abc88",nd.get(qa.toCluster)),pd=cutPathAtIntersect(qa.points,nd.get(qa.toCluster).node),fd=!0),qa.fromCluster&&(log$1.debug("from cluster abc88",nd.get(qa.fromCluster),JSON.stringify(pd,null,2)),pd=cutPathAtIntersect(pd.reverse(),nd.get(qa.fromCluster).node).reverse(),fd=!0);let Ad=pd.filter(Qd=>!Number.isNaN(Qd.y));Ad=fixCorners(Ad);let Nd=curveBasis;qa.curve&&(Nd=qa.curve);const{x:Id,y:kd}=getLineFunctionsWithOffset(qa),jd=line$1().x(Id).y(kd).curve(Nd);let Fd;switch(qa.thickness){case"normal":Fd="edge-thickness-normal";break;case"thick":Fd="edge-thickness-thick";break;case"invisible":Fd="edge-thickness-invisible";break;default:Fd="edge-thickness-normal"}switch(qa.pattern){case"solid":Fd+=" edge-pattern-solid";break;case"dotted":Fd+=" edge-pattern-dotted";break;case"dashed":Fd+=" edge-pattern-dashed";break;default:Fd+=" edge-pattern-solid"}let Md,Ld=jd(Ad);const Hd=Array.isArray(qa.style)?qa.style:[qa.style];if(qa.look==="ha
`);const od=selectSvgElement(qa),ld=od.append("g");od.attr("viewBox","0 0 2412 512"),configureSvgSize(od,100,512,!0),ld.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"),ld.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"),ld.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"),ld.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"),ld.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"),ld.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"),ld.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"),ld.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${nd}`)},"draw"),renderer={draw},errorRenderer_default=renderer,diagram={db:{},renderer,parser:{parse:__name(()=>{},"parse")}},errorDiagram_default=diagram,id18="flowchart-elk",detector18=__name((Ra,qa={})=>{var nd;return/^\s*flowchart-elk/.test(Ra)||/^\s*flowchart|graph/.test(Ra)&&((nd=qa==null?void 0:qa.flowchart)==null?void 0:nd.defaultRenderer)==="elk"?(qa.layout="elk",!0):!1},"detector"),loader18=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./flowDiagram-7ASYPVHJ-4NWSyp-f.js");return{diagram:qa}},__vite__mapDeps([8,9,10]));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-U7ZMHBDA-qYd4vsmp.js");return{diagram:qa}},__vite__mapDeps([34,21]));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-GWI6TPTV-Ce5ZckIZ.js");return{diagram:qa}},__vite__mapDeps([35,36]));return{id:id20,diagram:Ra}},"loader"),plugin18={id:id20,detector:detector20,loader:loader20},detector_default3=plugin18,id21="kanban",detector21=__name(Ra=>/^\s*kanban/.test(Ra),"detector"),loader21=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./kanban-definition-QRCXZQQD-CBO6mxhr.js");return{diagram:qa}},[]);return{id:id21,diagram:Ra}},"loader"),plugin19={id:id21,detector:detector21,loader:loader21},detector_default4=plugin19,id22="sankey",detector22=__name(Ra=>/^\s*sankey-beta/.test(Ra),"detector"),loader22=__name(async()=>{co
`;try{getDiagram(ld)}catch{const vd=getDiagramLoader(ld);if(!vd)throw new UnknownDiagramError(`Diagram ${ld} not found.`);const{id:Ad,diagram:Nd}=await vd();registerDiagram(Ad,Nd)}const{db:ud,parser:cd,renderer:dd,init:pd}=getDiagram(ld);return cd.parser&&(cd.parser.yy=ud),(fd=ud.clear)==null||fd.call(ud),pd==null||pd(od),nd.title&&((md=ud.setDiagramTitle)==null||md.call(ud,nd.title)),await cd.parse(qa),new gE(ld,qa,ud,cd,dd)}async render(qa,nd){await this.renderer.draw(this.text,qa,nd,this)}getParser(){return this.parser}getType(){return this.type}},__name(gE,"Diagram"),gE),interactionFunctions=[],attachFunctions=__name(()=>{interactionFunctions.forEach(Ra=>{Ra()}),interactionFunctions=[]},"attachFunctions"),cleanupComments=__name(Ra=>Ra.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function extractFrontMatter(Ra){const qa=Ra.match(frontMatterRegex);if(!qa)return{text:Ra,metadata:{}};let nd=load(qa[1],{schema:JSON_SCHEMA})??{};nd=typeof nd=="object"&&!Array.isArray(nd)?nd:{};const od={};return nd.displayMode&&(od.displayMode=nd.displayMode.toString()),nd.title&&(od.title=nd.title.toString()),nd.config&&(od.config=nd.config),{text:Ra.slice(qa[0].length),metadata:od}}__name(extractFrontMatter,"extractFrontMatter");var cleanupText=__name(Ra=>Ra.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(qa,nd,od)=>"<"+nd+od.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),processFrontmatter=__name(Ra=>{const{text:qa,metadata:nd}=extractFrontMatter(Ra),{displayMode:od,title:ld,config:ud={}}=nd;return od&&(ud.gantt||(ud.gantt={}),ud.gantt.displayMode=od),{title:ld,config:ud,text:qa}},"processFrontmatter"),processDirectives=__name(Ra=>{const qa=utils_default.detectInit(Ra)??{},nd=utils_default.detectDirective(Ra,"wrap");return Array.isArray(nd)?qa.wrap=nd.some(({type:od})=>od==="wrap"):(nd==null?void 0:nd.type)==="wrap"&&(qa.wrap=!0),{text:removeDirectives(Ra),directive:qa}},"processDirectives");function preprocessDiagram(Ra){const qa=cleanupText(Ra),nd=processFrontmatter(qa),od=processDirectives(nd.text),ld=cleanAndMerge(nd.config,od.directive);return Ra=cleanupComments(od.text),{code:Ra,title:nd.title,config:ld}}__name(preprocessDiagram,"preprocessDiagram");function toBase64(Ra){const qa=new TextEncoder().encode(Ra),nd=Array.from(qa,od=>String.fromCodePoint(od)).join("");return btoa(nd)}__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:nd,config:od}=processAndSetConfigs(Ra);return{diagramType:(await getDiagramFromText(nd)).type,config:od}}catch(nd){if(qa!=null&&qa.suppressErrors)return!1;throw nd}}__name(parse,"parse");var cssImportantStyles=__name((Ra,qa,nd=[])=>`
.${Ra} ${qa} { ${nd.join(" !important; ")} !important; }`,"cssImportantStyles"),createCssStyles=__name((Ra,qa=new Map)=>{var od;let nd="";if(Ra.themeCSS!==void 0&&(nd+=`
${Ra.themeCSS}`),Ra.fontFamily!==void 0&&(nd+=`
:root { --mermaid-font-family: ${Ra.fontFamily}}`),Ra.altFontFamily!==void 0&&(nd+=`
:root { --mermaid-alt-font-family: ${Ra.altFontFamily}}`),qa instanceof Map){const dd=Ra.htmlLabels??((od=Ra.flowchart)==null?void 0:od.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];qa.forEach(pd=>{isEmpty$1(pd.styles)||dd.forEach(fd=>{nd+=cssImportantStyles(pd.id,fd,pd.styles)}),isEmpty$1(pd.textStyles)||(nd+=cssImportantStyles(pd.id,"tspan",((pd==null?void 0:pd.textStyles)||[]).map(fd=>fd.replace("color","fill"))))})}return nd},"createCssStyles"),createUserStyles=__name((Ra,qa,nd,od)=>{const ld=createCssStyles(Ra,nd),ud=styles_default(qa,ld,Ra.themeVariables);return serialize(compile(`${od}{${ud}}`),stringify$1)},"createUserStyles"),cleanUpSvgCode=__name((Ra="",qa,nd)=>{let od=Ra;return!nd&&!qa&&(od=od.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),od=decodeEntities(od),od=od.replace(/<br>/g,"<br/>"),od},"cleanUpSvgCode"),putIntoIFrame=__name((Ra="",qa)=>{var ld,ud;const nd=(ud=(ld=qa==null?void 0:qa.viewBox)==null?void 0:ld.baseVal)!=null&&ud.height?qa.viewBox.baseVal.height+"px":IFRAME_HEIGHT,od=toBase64(`<body style="${IFRAME_BODY_STYLE}">${Ra}</body>`);return`<iframe style="width:${IFRAME_WIDTH};height:${nd};${IFRAME_STYLES}" src="data:text/html;charset=UTF-8;base64,${od}" sandbox="${IFRAME_SANDBOX_OPTS}">
${IFRAME_NOT_SUPPORTED_MSG}
</iframe>`},"putIntoIFrame"),appendDivSvgG=__name((Ra,qa,nd,od,ld)=>{const ud=Ra.append("div");ud.attr("id",nd),od&&ud.attr("style",od);const cd=ud.append("svg").attr("id",qa).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return ld&&cd.attr("xmlns:xlink",ld),cd.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,nd,od)=>{var ld,ud,cd;(ld=Ra.getElementById(qa))==null||ld.remove(),(ud=Ra.getElementById(nd))==null||ud.remove(),(cd=Ra.getElementById(od))==null||cd.remove()},"removeExistingElements"),render=__name(async function(Ra,qa,nd){var bf,gf,Ef,yf,xf,Af;addDiagrams();const od=processAndSetConfigs(qa);qa=od.code;const ld=getConfig$1();log$1.debug(ld),qa.length>((ld==null?void 0:ld.maxTextSize)??MAX_TEXTLENGTH)&&(qa=MAX_TEXTLENGTH_EXCEEDED_MSG);const ud="#"+Ra,cd="i"+Ra,dd="#"+cd,pd="d"+Ra,fd="#"+pd,md=__name(()=>{const Xf=select(Ad?dd:fd).node();Xf&&"remove"in Xf&&Xf.remove()},"removeTempElements");let vd=select("body");const Ad=ld.securityLevel===SECURITY_LVL_SANDBOX,Nd=ld.securityLevel===SECURITY_LVL_LOOSE,Id=ld.fontFamily;if(nd!==void 0){if(nd&&(nd.innerHTML=""),Ad){const Lf=sandboxedIframe(select(nd),cd);vd=select(Lf.nodes()[0].contentDocument.body),vd.node().style.margin=0}else vd=select(nd);appendDivSvgG(vd,Ra,pd,`font-family: ${Id}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,Ra,pd,cd),Ad){const Lf=sandboxedIframe(select("body"),cd);vd=select(Lf.nodes()[0].contentDocument.body),vd.node().style.margin=0}else vd=select("body");appendDivSvgG(vd,Ra,pd)}let kd,jd;try{kd=await Diagram.fromText(qa,{title:od.title})}catch(Lf){if(ld.suppressErrorRendering)throw md(),Lf;kd=await Diagram.fromText("error"),jd=Lf}const Fd=vd.select(fd).node(),Md=kd.type,Ld=Fd.firstChild,Hd=Ld.firstChild,Gd=(gf=(bf=kd.renderer).getClasses)==null?void 0:gf.call(bf,qa,kd),Vd=createUserStyles(ld,Md,Gd,ud),Qd=document.createElement("style");Qd.innerHTML=Vd,Ld.insertBefore(Qd,Hd);try{await kd.renderer.draw(qa,Ra,version,kd)}catch(Lf){throw ld.suppressErrorRendering?md():errorRenderer_default.draw(qa,Ra,version),Lf}const mf=vd.select(`${fd} svg`),Yd=(yf=(Ef=kd.db).getAccTitle)==null?void 0:yf.call(Ef),Zd=(Af=(xf=kd.db).getAccDescription)==null?void 0:Af.call(xf);addA11yInfo(Md,mf,Yd,Zd),vd.select(`[id="${Ra}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let Kd=vd.select(fd).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",ld.arrowMarkerAbsolute),Kd=cleanUpSvgCode(Kd,Ad,evaluate(ld.arrowMarkerAbsolute)),Ad){const Lf=vd.select(fd+" svg").node();Kd=putIntoIFrame(Kd,Lf)}else Nd||(Kd=purify.sanitize(Kd,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(attachFunctions(),jd)throw jd;return md(),{diagramType:Md,svg:Kd,bindFunctions:kd.db.bindFunctions}},"render");function initialize(Ra={}){var od;const qa=assignWithDepth_default({},Ra);qa!=null&&qa.fontFamily&&!((od=qa.themeVariables)!=null&&od.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 nd=typeof qa=="object"?setSiteConfig(qa):getSiteConfig();setLogLevel(nd.logLevel),addDiagrams()}__name(initialize,"initialize");var getDiagramFromText=__name((Ra,qa={})=>{const{code:nd}=preprocessDiagram(Ra);return Diagram.fromText(nd,qa)},"getDiagramFromText");function addA11yInfo(Ra,qa,nd,od){setA11yDiagramInfo(qa,Ra),addSVGa11yTitleDescription(qa,nd,od,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"),defaul
* Wait for document loaded before starting the execution
*/function markedAlert(Ra={}){const{className:qa="markdown-alert",variants:nd=[]}=Ra,od=resolveVariants(nd);return{walkTokens(ld){var cd,dd,pd,fd;if(ld.type!=="blockquote")return;const ud=od.find(({type:md})=>new RegExp(createSyntaxPattern(md),"i").test(ld.text));if(ud){const{type:md,icon:vd,title:Ad=ucfirst(md),titleClassName:Nd=`${qa}-title`}=ud,Id=new RegExp(createSyntaxPattern(md),"i"),{styles:kd}=Ra;Object.assign(ld,{type:"alert",meta:{className:qa,variant:md,icon:vd,title:Ad,titleClassName:Nd,wrapperStyle:{...kd==null?void 0:kd.blockquote,...kd==null?void 0:kd[`blockquote_${md}`]},titleStyle:{...kd==null?void 0:kd.blockquote_title,...kd==null?void 0:kd[`blockquote_title_${md}`]},contentStyle:{...kd==null?void 0:kd.blockquote_p,...kd==null?void 0:kd[`blockquote_p_${md}`]}}});const jd=(cd=ld.tokens)==null?void 0:cd[0];if((dd=jd.raw)==null?void 0:dd.replace(Id,"").trim()){const Md=jd.tokens[0];Object.assign(Md,{raw:Md.raw.replace(Id,""),text:Md.text.replace(Id,"")}),((pd=jd.tokens[1])==null?void 0:pd.type)==="br"&&jd.tokens.splice(1,1)}else(fd=ld.tokens)==null||fd.shift()}},extensions:[{name:"alert",level:"block",renderer({meta:ld,tokens:ud=[]}){var pd;let cd=this.parser.parse(ud);cd=cd.replace(/<p .*?>/g,`<p style="${getStyleString(ld.contentStyle)}">`);let dd=`<blockquote class="${ld.className} ${ld.className}-${ld.variant}" style="${getStyleString(ld.wrapperStyle)}">
`;return dd+=`<p class="${ld.titleClassName}" style="${getStyleString(ld.titleStyle)}">`,dd+=ld.icon.replace("<svg",`<svg style="fill: ${((pd=ld.titleStyle)==null?void 0:pd.color)??"inherit"}"`),dd+=ld.title,dd+=`</p>
`,dd+=cd,dd+=`</blockquote>
`,dd}}]}}const defaultAlertVariant=[{type:"note",icon:'<svg class="octicon octicon-info" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>'},{type:"tip",icon:'<svg class="octicon octicon-light-bulb" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></svg>'},{type:"important",icon:'<svg class="octicon octicon-report" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></svg>'},{type:"warning",icon:'<svg class="octicon octicon-alert" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></svg>'},{type:"caution",icon:'<svg class="octicon octicon-stop" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>'}];function resolveVariants(Ra){return Ra.length?Object.values([...defaultAlertVariant,...Ra].reduce((qa,nd)=>(qa[nd.type]=nd,qa),{})):defaultAlertVariant}function createSyntaxPattern(Ra){return`^(?:\\[!${Ra}])\\s*?
*`}function ucfirst(Ra){return Ra.slice(0,1).toUpperCase()+Ra.slice(1).toLowerCase()}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 od=window.MathJax.tex2svg(qa.text,{display:Ra}).firstChild,ld=od.style["min-width"]||od.getAttribute("width");return od.removeAttribute("width"),od.style="max-width: 300vw !important;",od.style.width=ld,od.style.display="initial",Ra?`<section style="text-align: center; overflow: auto;">${od.outerHTML}</section>`:`<span style="vertical-align: middle; line-height: 1;">${od.outerHTML}</span>`}}function inlineKatex(Ra,qa){const nd=Ra&&Ra.nonStandard,od=nd?inlineRuleNonStandard:inlineRule;return{name:"inlineKatex",level:"inline",start(ld){let ud,cd=ld;for(;cd;){if(ud=cd.indexOf("$"),ud===-1)return;if((nd?ud>-1:ud===0||cd.charAt(ud-1)===" ")&&cd.substring(ud).match(od))return ud;cd=cd.substring(ud+1).replace(/^\$+/,"")}},tokenizer(ld){const ud=ld.match(od);if(ud)return{type:"inlineKatex",raw:ud[0],text:ud[2].trim(),displayMode:ud[1].length===2}},renderer:qa}}function blockKatex(Ra,qa){return{name:"blockKatex",level:"block",tokenizer(nd){const od=nd.match(blockRule);if(od)return{type:"blockKatex",raw:od[0],text:od[2].trim(),displayMode:od[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:nd,isUseIndent:od}){const ld=cloneDeep(Ra),ud=toMerged(ld.base,{"font-family":qa,"font-size":nd});od&&(ld.block.p={"text-indent":"2em",...ld.block.p});const cd=dd=>Object.fromEntries(Object.entries(dd).map(([pd,fd])=>[pd,toMerged(ud,fd)]));return{...cd(ld.inline),...cd(ld.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,nd=""){const od=Ra[qa];return od?`style="${getStyleString(od)}${nd}"`:""}function buildFootnoteArray(Ra){return Ra.map(([qa,nd,od])=>od===nd?`<code style="font-size: 90%; opacity: 0.6;">[${qa}]</code>: <i style="word-break: break-all">${nd}</i><br/>`:`<code style="font-size: 90%; opacity: 0.6;">[${qa}]</code> ${nd}: <i style="word-break: break-all">${od}</i><br/>`).join(`
`)}function transform$1(Ra,qa,nd){const od=Ra.split("-");for(const ld of od){if(ld==="alt"&&qa)return qa;if(ld==="title"&&nd)return nd}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="50" 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="400" 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 nd=0,od=buildTheme(Ra),ld=0,ud=0,cd=!1;function dd(Id,kd=""){return getStyles(od,Id,kd)}function pd(Id,kd,jd){const Fd=jd??Id;return`<${Fd} ${dd(Id)}>${kd}</${Fd}>`}function fd(Id,kd){return qa.push([++nd,Id,kd]),nd}function md(Id){qa.length=0,nd=0,vd(Id)}function vd(Id){Ra={...Ra,...Id},od=buildTheme(Ra),marked$1.use(markedAlert({styles:od}))}const Ad=()=>qa.length?pd("h4","引用链接")+pd("footnotes",buildFootnoteArray(qa),"p"):"",Nd={heading({tokens:Id,depth:kd}){const jd=this.parser.parseInline(Id),Fd=`h${kd}`;return pd(Fd,jd)},paragraph({tokens:Id}){const kd=this.parser.parseInline(Id),jd=kd.includes("<figure")&&kd.includes("<img"),Fd=kd.trim()==="";return jd||Fd?kd:pd("p",kd)},blockquote({tokens:Id}){let kd=this.parser.parse(Id);return kd=kd.replace(/<p .*?>/g,`<p ${dd("blockquote_p")}>`),pd("blockquote",kd)},code({text:Id,lang:kd=""}){if(kd.startsWith("mermaid"))return clearTimeout(ld),ld=setTimeout(()=>{mermaid_default.run()},0),`<pre class="mermaid">${Id}</pre>`;const jd=kd.split(" ")[0],Fd=HighlightJS.getLanguage(jd)?jd:"plaintext";let Md=HighlightJS.highlight(Id,{language:Fd}).value;Md=Md.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>").replace(/(>[^<]+)|(^[^<]+)/g,Gd=>Gd.replace(/\s/g,"&nbsp;"));const Ld=`<span class="mac-sign" style="padding: 10px 14px 0;" hidden>${macCodeSvg}</span>`,Hd=`<code class="language-${kd}" ${dd("code")}>${Md}</code>`;return`<pre class="hljs code__pre" ${dd("code_pre")}>${Ld}${Hd}</pre>`},codespan({text:Id}){return pd("codespan",Id,"code")},listitem(Id){const kd=cd?`${ud+1}. `:" ",jd=Id.tokens.map(Fd=>this[Fd.type](Fd)).join("");return pd("listitem",`${kd}${jd}`,"li")},list({ordered:Id,items:kd,start:jd=1}){const Fd=[];for(let Ld=0;Ld<kd.length;Ld++){cd=Id,ud=Number(jd)+Ld-1;const Hd=kd[Ld];Fd.push(this.listitem(Hd))}return pd(Id?"ol":"ul",Fd.join(""))},image({href:Id,title:kd,text:jd}){const Fd=pd("figcaption",transform$1(Ra.legend,jd,kd)),Md=dd("figure"),Ld=dd("image");return`<figure ${Md}><img ${Ld} src="${Id}" title="${kd}" alt="${jd}"/>${Fd}</figure>`},link({href:Id,title:kd,text:jd,tokens:Fd}){const Md=this.parser.parseInline(Fd);if(Id.startsWith("https://mp.weixin.qq.com"))return`<a href="${Id}" title="${kd||jd}" ${dd("wx_link")}>${Md}</a>`;if(Id===jd)return Md;if(Ra.citeStatus){const Ld=fd(kd||jd,Id);return`<span ${dd("link")}>${Md}<sup>[${Ld}]</sup></span>`}return pd("link",Md,"span")},strong({tokens:Id}){return pd("strong",this.parser.parseInline(Id))},em({tokens:Id}){return pd("em",this.parser.parseInline(Id),"span")},table({header:Id,rows:kd}){const jd=Id.map(Md=>this.tablecell(Md)).join(""),Fd=kd.map(Md=>{const Ld=Md.map(Hd=>this.tablecell(Hd)).join("");return pd("tr",Ld)}).join("");return`
<section style="padding:0 8px; max-width: 100%; overflow: auto">
<table class="preview-table">
<thead ${dd("thead")}>${jd}</thead>
<tbody>${Fd}</tbody>
</table>
</section>
`},tablecell(Id){const kd=this.parser.parseInline(Id.tokens);return pd("td",kd)},hr(Id){return pd("hr","")}};return marked$1.use({renderer:Nd}),{buildAddition,buildFootnotes:Ad,setOptions:vd,reset:md}}var codemirror={exports:{}},hasRequiredCodemirror;function requireCodemirror(){return hasRequiredCodemirror||(hasRequiredCodemirror=1,function(Ra,qa){(function(nd,od){Ra.exports=od()})(commonjsGlobal,function(){var nd=navigator.userAgent,od=navigator.platform,ld=/gecko\/\d/i.test(nd),ud=/MSIE \d/.test(nd),cd=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nd),dd=/Edge\/(\d+)/.exec(nd),pd=ud||cd||dd,fd=pd&&(ud?document.documentMode||6:+(dd||cd)[1]),md=!dd&&/WebKit\//.test(nd),vd=md&&/Qt\/\d+\.\d+/.test(nd),Ad=!dd&&/Chrome\/(\d+)/.exec(nd),Nd=Ad&&+Ad[1],Id=/Opera\//.test(nd),kd=/Apple Computer/.test(navigator.vendor),jd=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(nd),Fd=/PhantomJS/.test(nd),Md=kd&&(/Mobile\/\w+/.test(nd)||navigator.maxTouchPoints>2),Ld=/Android/.test(nd),Hd=Md||Ld||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(nd),Gd=Md||/Mac/.test(od),Vd=/\bCrOS\b/.test(nd),Qd=/win/i.test(od),mf=Id&&nd.match(/Version\/(\d*\.\d*)/);mf&&(mf=Number(mf[1])),mf&&mf>=15&&(Id=!1,md=!0);var Yd=Gd&&(vd||Id&&(mf==null||mf<12.11)),Zd=ld||pd&&fd>=9;function Kd(Od){return new RegExp("(^|\\s)"+Od+"(?:$|\\s)\\s*")}var bf=function(Od,Ud){var Jd=Od.className,Xd=Kd(Ud).exec(Jd);if(Xd){var pf=Jd.slice(Xd.index+Xd[0].length);Od.className=Jd.slice(0,Xd.index)+(pf?Xd[1]+pf:"")}};function gf(Od){for(var Ud=Od.childNodes.length;Ud>0;--Ud)Od.removeChild(Od.firstChild);return Od}function Ef(Od,Ud){return gf(Od).appendChild(Ud)}function yf(Od,Ud,Jd,Xd){var pf=document.createElement(Od);if(Jd&&(pf.className=Jd),Xd&&(pf.style.cssText=Xd),typeof Ud=="string")pf.appendChild(document.createTextNode(Ud));else if(Ud)for(var Cf=0;Cf<Ud.length;++Cf)pf.appendChild(Ud[Cf]);return pf}function xf(Od,Ud,Jd,Xd){var pf=yf(Od,Ud,Jd,Xd);return pf.setAttribute("role","presentation"),pf}var Af;document.createRange?Af=function(Od,Ud,Jd,Xd){var pf=document.createRange();return pf.setEnd(Xd||Od,Jd),pf.setStart(Od,Ud),pf}:Af=function(Od,Ud,Jd){var Xd=document.body.createTextRange();try{Xd.moveToElementText(Od.parentNode)}catch{return Xd}return Xd.collapse(!0),Xd.moveEnd("character",Jd),Xd.moveStart("character",Ud),Xd};function Lf(Od,Ud){if(Ud.nodeType==3&&(Ud=Ud.parentNode),Od.contains)return Od.contains(Ud);do if(Ud.nodeType==11&&(Ud=Ud.host),Ud==Od)return!0;while(Ud=Ud.parentNode)}function Xf(Od){var Ud=Od.ownerDocument||Od,Jd;try{Jd=Od.activeElement}catch{Jd=Ud.body||null}for(;Jd&&Jd.shadowRoot&&Jd.shadowRoot.activeElement;)Jd=Jd.shadowRoot.activeElement;return Jd}function ih(Od,Ud){var Jd=Od.className;Kd(Ud).test(Jd)||(Od.className+=(Jd?" ":"")+Ud)}function Zf(Od,Ud){for(var Jd=Od.split(" "),Xd=0;Xd<Jd.length;Xd++)Jd[Xd]&&!Kd(Jd[Xd]).test(Ud)&&(Ud+=" "+Jd[Xd]);return Ud}var jf=function(Od){Od.select()};Md?jf=function(Od){Od.selectionStart=0,Od.selectionEnd=Od.value.length}:pd&&(jf=function(Od){try{Od.select()}catch{}});function If(Od){return Od.display.wrapper.ownerDocument}function Uf(Od){return qf(Od.display.wrapper)}function qf(Od){return Od.getRootNode?Od.getRootNode():Od.ownerDocument}function Kf(Od){return If(Od).defaultView}function Tf(Od){var Ud=Array.prototype.slice.call(arguments,1);return function(){return Od.apply(null,Ud)}}function vf(Od,Ud,Jd){Ud||(Ud={});for(var Xd in Od)Od.hasOwnProperty(Xd)&&(Jd!==!1||!Ud.hasOwnProperty(Xd))&&(Ud[Xd]=Od[Xd]);return Ud}function Gf(Od,Ud,Jd,Xd,pf){Ud==null&&(Ud=Od.search(/[^\s\u00a0]/),Ud==-1&&(Ud=Od.length));for(var Cf=Xd||0,Bf=pf||0;;){var Yf=Od.indexOf(" ",Cf);if(Yf<0||Yf>=Ud)return Bf+(Ud-Cf);Bf+=Yf-Cf,Bf+=Jd-Bf%Jd,Cf=Yf+1}}var Jf=function(){this.id=null,this.f=null,this.time=0,this.handler=Tf(this.onTimeout,this)};Jf.prototype.onTimeout=function(Od){Od.id=0,Od.time<=+new Date?Od.f():setTimeout(Od.handler,Od.time-+new Date)},Jf.prototype.set=function(Od,Ud){this.f=Ud;var Jd=+new Date+Od;(!this.id||Jd<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,Od),this.time=Jd)};function gh(Od,Ud){for(var J
b`.split(/\n/).length!=3?function(Od){for(var Ud=0,Jd=[],Xd=Od.length;Ud<=Xd;){var pf=Od.indexOf(`
`,Ud);pf==-1&&(pf=Od.length);var Cf=Od.slice(Ud,Od.charAt(pf-1)=="\r"?pf-1:pf),Bf=Cf.indexOf("\r");Bf!=-1?(Jd.push(Cf.slice(0,Bf)),Ud+=Bf+1):(Jd.push(Cf),Ud=pf+1)}return Jd}:function(Od){return Od.split(/\r\n?|\n/)},Ch=window.getSelection?function(Od){try{return Od.selectionStart!=Od.selectionEnd}catch{return!1}}:function(Od){var Ud;try{Ud=Od.ownerDocument.selection.createRange()}catch{}return!Ud||Ud.parentElement()!=Od?!1:Ud.compareEndPoints("StartToEnd",Ud)!=0},mh=function(){var Od=yf("div");return"oncopy"in Od?!0:(Od.setAttribute("oncopy","return;"),typeof Od.oncopy=="function")}(),Sh=null;function Wh(Od){if(Sh!=null)return Sh;var Ud=Ef(Od,yf("span","x")),Jd=Ud.getBoundingClientRect(),Xd=Af(Ud,0,1).getBoundingClientRect();return Sh=Math.abs(Jd.left-Xd.left)>1}var Fh={},om={};function im(Od,Ud){arguments.length>2&&(Ud.dependencies=Array.prototype.slice.call(arguments,2)),Fh[Od]=Ud}function Rh(Od,Ud){om[Od]=Ud}function Im(Od){if(typeof Od=="string"&&om.hasOwnProperty(Od))Od=om[Od];else if(Od&&typeof Od.name=="string"&&om.hasOwnProperty(Od.name)){var Ud=om[Od.name];typeof Ud=="string"&&(Ud={name:Ud}),Od=wh(Ud,Od),Od.name=Ud.name}else{if(typeof Od=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(Od))return Im("application/xml");if(typeof Od=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(Od))return Im("application/json")}return typeof Od=="string"?{name:Od}:Od||{name:"null"}}function Pm(Od,Ud){Ud=Im(Ud);var Jd=Fh[Ud.name];if(!Jd)return Pm(Od,"text/plain");var Xd=Jd(Od,Ud);if(i_.hasOwnProperty(Ud.name)){var pf=i_[Ud.name];for(var Cf in pf)pf.hasOwnProperty(Cf)&&(Xd.hasOwnProperty(Cf)&&(Xd["_"+Cf]=Xd[Cf]),Xd[Cf]=pf[Cf])}if(Xd.name=Ud.name,Ud.helperType&&(Xd.helperType=Ud.helperType),Ud.modeProps)for(var Bf in Ud.modeProps)Xd[Bf]=Ud.modeProps[Bf];return Xd}var i_={};function Hm(Od,Ud){var Jd=i_.hasOwnProperty(Od)?i_[Od]:i_[Od]={};vf(Ud,Jd)}function o_(Od,Ud){if(Ud===!0)return Ud;if(Od.copyState)return Od.copyState(Ud);var Jd={};for(var Xd in Ud){var pf=Ud[Xd];pf instanceof Array&&(pf=pf.concat([])),Jd[Xd]=pf}return Jd}function j_(Od,Ud){for(var Jd;Od.innerMode&&(Jd=Od.innerMode(Ud),!(!Jd||Jd.mode==Od));)Ud=Jd.state,Od=Jd.mode;return Jd||{mode:Od,state:Ud}}function B_(Od,Ud,Jd){return Od.startState?Od.startState(Ud,Jd):!0}var C_=function(Od,Ud,Jd){this.pos=this.start=0,this.string=Od,this.tabSize=Ud||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Jd};C_.prototype.eol=function(){return this.pos>=this.string.length},C_.prototype.sol=function(){return this.pos==this.lineStart},C_.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},C_.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},C_.prototype.eat=function(Od){var Ud=this.string.charAt(this.pos),Jd;if(typeof Od=="string"?Jd=Ud==Od:Jd=Ud&&(Od.test?Od.test(Ud):Od(Ud)),Jd)return++this.pos,Ud},C_.prototype.eatWhile=function(Od){for(var Ud=this.pos;this.eat(Od););return this.pos>Ud},C_.prototype.eatSpace=function(){for(var Od=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>Od},C_.prototype.skipToEnd=function(){this.pos=this.string.length},C_.prototype.skipTo=function(Od){var Ud=this.string.indexOf(Od,this.pos);if(Ud>-1)return this.pos=Ud,!0},C_.prototype.backUp=function(Od){this.pos-=Od},C_.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Gf(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Gf(this.string,this.lineStart,this.tabSize):0)},C_.prototype.indentation=function(){return Gf(this.string,null,this.tabSize)-(this.lineStart?Gf(this.string,this.lineStart,this.tabSize):0)},C_.prototype.match=function(Od,Ud,Jd){if(typeof Od=="string"){var Xd=function(Bf){return Jd?Bf.toLowerCase():Bf},pf=this.string.substr(this.pos,Od.length);if(Xd(pf)==Xd(Od))return Ud!==!1&&(this.pos+=Od.length),!0}else{var Cf=this.string.slice(this.pos).match(Od);return Cf&&Cf.index>0?null:(Cf&&Ud!==!1&&(this.pos+=Cf[0].length),Cf)}},C_.prototype.current=funct
`?(jm=Mh.appendChild(yf("span",hm[0]=="\r"?"␍":"␤","cm-invalidchar")),jm.setAttribute("cm-text",hm[0]),Od.col+=1):(jm=Od.cm.options.specialCharPlaceholder(hm[0]),jm.setAttribute("cm-text",hm[0]),pd&&fd<9?Mh.appendChild(yf("span",[jm])):Mh.appendChild(jm),Od.col+=1);Od.map.push(Od.pos,Od.pos+1,jm),Od.pos++}}if(Od.trailingSpace=Yf.charCodeAt(Ud.length-1)==32,Jd||Xd||pf||hh||Cf||Bf){var a_=Jd||"";Xd&&(a_+=Xd),pf&&(a_+=pf);var t_=yf("span",[Mh],a_,Cf);if(Bf)for(var u_ in Bf)Bf.hasOwnProperty(u_)&&u_!="style"&&u_!="class"&&t_.setAttribute(u_,Bf[u_]);return Od.content.appendChild(t_)}Od.content.appendChild(Mh)}}function ev(Od,Ud){if(Od.length>1&&!/ /.test(Od))return Od;for(var Jd=Ud,Xd="",pf=0;pf<Od.length;pf++){var Cf=Od.charAt(pf);Cf==" "&&Jd&&(pf==Od.length-1||Od.charCodeAt(pf+1)==32)&&(Cf=" "),Xd+=Cf,Jd=Cf==" "}return Xd}function ug(Od,Ud){return function(Jd,Xd,pf,Cf,Bf,Yf,sh){pf=pf?pf+" cm-force-border":"cm-force-border";for(var hh=Jd.pos,Mh=hh+Xd.length;;){for(var Jh=void 0,hm=0;hm<Ud.length&&(Jh=Ud[hm],!(Jh.to>hh&&Jh.from<=hh));hm++);if(Jh.to>=Mh)return Od(Jd,Xd,pf,Cf,Bf,Yf,sh);Od(Jd,Xd.slice(0,Jh.to-hh),pf,Cf,null,Yf,sh),Cf=null,Xd=Xd.slice(Jh.to-hh),hh=Jh.to}}}function Lb(Od,Ud,Jd,Xd){var pf=!Xd&&Jd.widgetNode;pf&&Od.map.push(Od.pos,Od.pos+Ud,pf),!Xd&&Od.cm.display.input.needsContentAttribute&&(pf||(pf=Od.content.appendChild(document.createElement("span"))),pf.setAttribute("cm-marker",Jd.id)),pf&&(Od.cm.display.input.setUneditable(pf),Od.content.appendChild(pf)),Od.pos+=Ud,Od.trailingSpace=!1}function qv(Od,Ud,Jd){var Xd=Od.markedSpans,pf=Od.text,Cf=0;if(!Xd){for(var Bf=1;Bf<Jd.length;Bf+=2)Ud.addToken(Ud,pf.slice(Cf,Cf=Jd[Bf]),DE(Jd[Bf+1],Ud.cm.options));return}for(var Yf=pf.length,sh=0,hh=1,Mh="",Jh,hm,pm=0,Rm,jm,Ym,n_,a_;;){if(pm==sh){Rm=jm=Ym=hm="",a_=null,n_=null,pm=1/0;for(var t_=[],u_=void 0,g_=0;g_<Xd.length;++g_){var m_=Xd[g_],R_=m_.marker;if(R_.type=="bookmark"&&m_.from==sh&&R_.widgetNode)t_.push(R_);else if(m_.from<=sh&&(m_.to==null||m_.to>sh||R_.collapsed&&m_.to==sh&&m_.from==sh)){if(m_.to!=null&&m_.to!=sh&&pm>m_.to&&(pm=m_.to,jm=""),R_.className&&(Rm+=" "+R_.className),R_.css&&(hm=(hm?hm+";":"")+R_.css),R_.startStyle&&m_.from==sh&&(Ym+=" "+R_.startStyle),R_.endStyle&&m_.to==pm&&(u_||(u_=[])).push(R_.endStyle,m_.to),R_.title&&((a_||(a_={})).title=R_.title),R_.attributes)for(var ng in R_.attributes)(a_||(a_={}))[ng]=R_.attributes[ng];R_.collapsed&&(!n_||jv(n_.marker,R_)<0)&&(n_=m_)}else m_.from>sh&&pm>m_.from&&(pm=m_.from)}if(u_)for(var Ng=0;Ng<u_.length;Ng+=2)u_[Ng+1]==pm&&(jm+=" "+u_[Ng]);if(!n_||n_.from==sh)for(var gg=0;gg<t_.length;++gg)Lb(Ud,0,t_[gg]);if(n_&&(n_.from||0)==sh){if(Lb(Ud,(n_.to==null?Yf+1:n_.to)-sh,n_.marker,n_.from==null),n_.to==null)return;n_.to==sh&&(n_=!1)}}if(sh>=Yf)break;for(var Sg=Math.min(Yf,pm);;){if(Mh){var Og=sh+Mh.length;if(!n_){var Rg=Og>Sg?Mh.slice(0,Sg-sh):Mh;Ud.addToken(Ud,Rg,Jh?Jh+Rm:Rm,Ym,sh+Rg.length==pm?jm:"",hm,a_)}if(Og>=Sg){Mh=Mh.slice(Sg-sh),sh=Sg;break}sh=Og,Ym=""}Mh=pf.slice(Cf,Cf=Jd[hh++]),Jh=DE(Jd[hh++],Ud.cm.options)}}}function NE(Od,Ud,Jd){this.line=Ud,this.rest=h0(Ud),this.size=this.rest?fh(vh(this.rest))-Jd+1:1,this.node=this.text=null,this.hidden=Ag(Od,Ud)}function N0(Od,Ud,Jd){for(var Xd=[],pf,Cf=Ud;Cf<Jd;Cf=pf){var Bf=new NE(Od.doc,Km(Od.doc,Cf),Cf);pf=Cf+Bf.size,Xd.push(Bf)}return Xd}var Ab=null;function wE(Od){Ab?Ab.ops.push(Od):Od.ownsGroup=Ab={ops:[Od],delayedCallbacks:[]}}function mT(Od){var Ud=Od.delayedCallbacks,Jd=0;do{for(;Jd<Ud.length;Jd++)Ud[Jd].call(null);for(var Xd=0;Xd<Od.ops.length;Xd++){var pf=Od.ops[Xd];if(pf.cursorActivityHandlers)for(;pf.cursorActivityCalled<pf.cursorActivityHandlers.length;)pf.cursorActivityHandlers[pf.cursorActivityCalled++].call(null,pf.cm)}}while(Jd<Ud.length)}function zd(Od,Ud){var Jd=Od.ownsGroup;if(Jd)try{mT(Jd)}finally{Ab=null,Ud(Jd)}}var Bd=null;function Wd(Od,Ud){var Jd=r_(Od,Ud);if(Jd.length){var Xd=Array.prototype.slice.call(arguments,2),pf;Ab?pf=Ab.delayedCallbacks:Bd?pf=Bd:(pf=Bd=[],setTimeout(_f,0));for(var Cf=function(Yf){pf.push(function(){return Jd[Yf].apply(null,Xd)})},Bf=0;Bf<Jd.length;++Bf)C
top: `+u_+"px; width: "+(g_??sh-t_)+`px;
height: `+(m_-u_)+"px"))}function Jh(t_,u_,g_){var m_=Km(pf,t_),R_=m_.text.length,ng,Ng;function gg(Rg,ab){return Lm(Od,Tm(t_,Rg),"div",m_,ab)}function Sg(Rg,ab,Jg){var Bg=ag(Od,m_,null,Rg),kg=ab=="ltr"==(Jg=="after")?"left":"right",xg=Jg=="after"?Bg.begin:Bg.end-(/\s/.test(m_.text.charAt(Bg.end-1))?2:1);return gg(xg,kg)[kg]}var Og=_m(m_,pf.direction);return ch(Og,u_||0,g_??R_,function(Rg,ab,Jg,Bg){var kg=Jg=="ltr",xg=gg(Rg,kg?"left":"right"),cb=gg(ab-1,kg?"right":"left"),Ov=u_==null&&Rg==0,H0=g_==null&&ab==R_,tb=Bg==0,o0=!Og||Bg==Og.length-1;if(cb.top-xg.top<=3){var Wg=(hh?Ov:H0)&&tb,XT=(hh?H0:Ov)&&o0,l0=Wg?Yf:(kg?xg:cb).left,G0=XT?sh:(kg?cb:xg).right;Mh(l0,xg.top,G0-l0,xg.bottom)}else{var q0,sb,kv,QT;kg?(q0=hh&&Ov&&tb?Yf:xg.left,sb=hh?sh:Sg(Rg,Jg,"before"),kv=hh?Yf:Sg(ab,Jg,"after"),QT=hh&&H0&&o0?sh:cb.right):(q0=hh?Sg(Rg,Jg,"before"):Yf,sb=!hh&&Ov&&tb?sh:xg.right,kv=!hh&&H0&&o0?Yf:cb.left,QT=hh?Sg(ab,Jg,"after"):sh),Mh(q0,xg.top,sb-q0,xg.bottom),xg.bottom<cb.top&&Mh(Yf,xg.bottom,null,cb.top),Mh(kv,cb.top,QT-kv,cb.bottom)}(!ng||ny(xg,ng)<0)&&(ng=xg),ny(cb,ng)<0&&(ng=cb),(!Ng||ny(xg,Ng)<0)&&(Ng=xg),ny(cb,Ng)<0&&(Ng=cb)}),{start:ng,end:Ng}}var hm=Ud.from(),pm=Ud.to();if(hm.line==pm.line)Jh(hm.line,hm.ch,pm.ch);else{var Rm=Km(pf,hm.line),jm=Km(pf,pm.line),Ym=Z_(Rm)==Z_(jm),n_=Jh(hm.line,hm.ch,Ym?Rm.text.length+1:null).end,a_=Jh(pm.line,Ym?0:null,pm.ch).start;Ym&&(n_.top<a_.top-2?(Mh(n_.right,n_.top,null,n_.bottom),Mh(Yf,a_.top,a_.left,a_.bottom)):Mh(n_.right,n_.top,a_.left-n_.right,n_.bottom)),n_.bottom<a_.top&&Mh(Yf,n_.bottom,null,a_.top)}Jd.appendChild(Cf)}function iy(Od){if(Od.state.focused){var Ud=Od.display;clearInterval(Ud.blinker);var Jd=!0;Ud.cursorDiv.style.visibility="",Od.options.cursorBlinkRate>0?Ud.blinker=setInterval(function(){Od.hasFocus()||sv(Od),Ud.cursorDiv.style.visibility=(Jd=!Jd)?"":"hidden"},Od.options.cursorBlinkRate):Od.options.cursorBlinkRate<0&&(Ud.cursorDiv.style.visibility="hidden")}}function O0(Od){Od.hasFocus()||(Od.display.input.focus(),Od.state.focused||ET(Od))}function av(Od){Od.state.delayingBlurEvent=!0,setTimeout(function(){Od.state.delayingBlurEvent&&(Od.state.delayingBlurEvent=!1,Od.state.focused&&sv(Od))},100)}function ET(Od,Ud){Od.state.delayingBlurEvent&&!Od.state.draggingText&&(Od.state.delayingBlurEvent=!1),Od.options.readOnly!="nocursor"&&(Od.state.focused||(s_(Od,"focus",Od,Ud),Od.state.focused=!0,ih(Od.display.wrapper,"CodeMirror-focused"),!Od.curOp&&Od.display.selForContextMenu!=Od.doc.sel&&(Od.display.input.reset(),md&&setTimeout(function(){return Od.display.input.reset(!0)},20)),Od.display.input.receivedFocus()),iy(Od))}function sv(Od,Ud){Od.state.delayingBlurEvent||(Od.state.focused&&(s_(Od,"blur",Od,Ud),Od.state.focused=!1,bf(Od.display.wrapper,"CodeMirror-focused")),clearInterval(Od.display.blinker),setTimeout(function(){Od.state.focused||(Od.display.shift=!1)},150))}function PE(Od){for(var Ud=Od.display,Jd=Ud.lineDiv.offsetTop,Xd=Math.max(0,Ud.scroller.getBoundingClientRect().top),pf=Ud.lineDiv.getBoundingClientRect().top,Cf=0,Bf=0;Bf<Ud.view.length;Bf++){var Yf=Ud.view[Bf],sh=Od.options.lineWrapping,hh=void 0,Mh=0;if(!Yf.hidden){if(pf+=Yf.line.height,pd&&fd<8){var Jh=Yf.node.offsetTop+Yf.node.offsetHeight;hh=Jh-Jd,Jd=Jh}else{var hm=Yf.node.getBoundingClientRect();hh=hm.bottom-hm.top,!sh&&Yf.text.firstChild&&(Mh=Yf.text.firstChild.getBoundingClientRect().right-hm.left-1)}var pm=Yf.line.height-hh;if((pm>.005||pm<-.005)&&(pf<Xd&&(Cf-=pm),y_(Yf.line,hh),Wv(Yf.line),Yf.rest))for(var Rm=0;Rm<Yf.rest.length;Rm++)Wv(Yf.rest[Rm]);if(Mh>Od.display.sizerWidth){var jm=Math.ceil(Mh/_0(Od.display));jm>Od.display.maxLineLength&&(Od.display.maxLineLength=jm,Od.display.maxLine=Yf.line,Od.display.maxLineChanged=!0)}}}Math.abs(Cf)>2&&(Ud.scroller.scrollTop+=Cf)}function Wv(Od){if(Od.widgets)for(var Ud=0;Ud<Od.widgets.length;++Ud){var Jd=Od.widgets[Ud],Xd=Jd.node.parentNode;Xd&&(Jd.height=Xd.offsetHeight)}}function ay(Od,Ud,Jd){var Xd=Jd&&Jd.top!=null?Math.max(0,Jd.top):Od.scroller.scrollTop;Xd=Math.floor(Xd-Hg(Od));var pf=Jd&&Jd.bottom!=null?Jd.bottom:Xd+Od
top: `+(Ud.top-Jd.viewOffset-Hg(Od.display))+`px;
height: `+(Ud.bottom-Ud.top+e0(Od)+Jd.barHeight)+`px;
left: `+Ud.left+"px; width: "+Math.max(2,Ud.right-Ud.left)+"px;");Od.display.lineSpace.appendChild(Bf),Bf.scrollIntoView(pf),Od.display.lineSpace.removeChild(Bf)}}}function s1(Od,Ud,Jd,Xd){Xd==null&&(Xd=0);var pf;!Od.options.lineWrapping&&Ud==Jd&&(Jd=Ud.sticky=="before"?Tm(Ud.line,Ud.ch+1,"before"):Ud,Ud=Ud.ch?Tm(Ud.line,Ud.sticky=="before"?Ud.ch-1:Ud.ch,"after"):Ud);for(var Cf=0;Cf<5;Cf++){var Bf=!1,Yf=Dm(Od,Ud),sh=!Jd||Jd==Ud?Yf:Dm(Od,Jd);pf={left:Math.min(Yf.left,sh.left),top:Math.min(Yf.top,sh.top)-Xd,right:Math.max(Yf.left,sh.left),bottom:Math.max(Yf.bottom,sh.bottom)+Xd};var hh=ST(Od,pf),Mh=Od.doc.scrollTop,Jh=Od.doc.scrollLeft;if(hh.scrollTop!=null&&(Yv(Od,hh.scrollTop),Math.abs(Od.doc.scrollTop-Mh)>1&&(Bf=!0)),hh.scrollLeft!=null&&(Hb(Od,hh.scrollLeft),Math.abs(Od.doc.scrollLeft-Jh)>1&&(Bf=!0)),!Bf)break}return pf}function lS(Od,Ud){var Jd=ST(Od,Ud);Jd.scrollTop!=null&&Yv(Od,Jd.scrollTop),Jd.scrollLeft!=null&&Hb(Od,Jd.scrollLeft)}function ST(Od,Ud){var Jd=Od.display,Xd=Fb(Od.display);Ud.top<0&&(Ud.top=0);var pf=Od.curOp&&Od.curOp.scrollTop!=null?Od.curOp.scrollTop:Jd.scroller.scrollTop,Cf=_T(Od),Bf={};Ud.bottom-Ud.top>Cf&&(Ud.bottom=Ud.top+Cf);var Yf=Od.doc.height+Q0(Jd),sh=Ud.top<Xd,hh=Ud.bottom>Yf-Xd;if(Ud.top<pf)Bf.scrollTop=sh?0:Ud.top;else if(Ud.bottom>pf+Cf){var Mh=Math.min(Ud.top,(hh?Yf:Ud.bottom)-Cf);Mh!=pf&&(Bf.scrollTop=Mh)}var Jh=Od.options.fixedGutter?0:Jd.gutters.offsetWidth,hm=Od.curOp&&Od.curOp.scrollLeft!=null?Od.curOp.scrollLeft:Jd.scroller.scrollLeft-Jh,pm=J0(Od)-Jd.gutters.offsetWidth,Rm=Ud.right-Ud.left>pm;return Rm&&(Ud.right=Ud.left+pm),Ud.left<10?Bf.scrollLeft=0:Ud.left<hm?Bf.scrollLeft=Math.max(0,Ud.left+Jh-(Rm?0:10)):Ud.right>pm+hm-3&&(Bf.scrollLeft=Ud.right+(Rm?0:10)-pm),Bf}function xT(Od,Ud){Ud!=null&&(LE(Od),Od.curOp.scrollTop=(Od.curOp.scrollTop==null?Od.doc.scrollTop:Od.curOp.scrollTop)+Ud)}function bg(Od){LE(Od);var Ud=Od.getCursor();Od.curOp.scrollToPos={from:Ud,to:Ud,margin:Od.options.cursorScrollMargin}}function Lg(Od,Ud,Jd){(Ud!=null||Jd!=null)&&LE(Od),Ud!=null&&(Od.curOp.scrollLeft=Ud),Jd!=null&&(Od.curOp.scrollTop=Jd)}function o1(Od,Ud){LE(Od),Od.curOp.scrollToPos=Ud}function LE(Od){var Ud=Od.curOp.scrollToPos;if(Ud){Od.curOp.scrollToPos=null;var Jd=f_(Od,Ud.from),Xd=f_(Od,Ud.to);CT(Od,Jd,Xd,Ud.margin)}}function CT(Od,Ud,Jd,Xd){var pf=ST(Od,{left:Math.min(Ud.left,Jd.left),top:Math.min(Ud.top,Jd.top)-Xd,right:Math.max(Ud.right,Jd.right),bottom:Math.max(Ud.bottom,Jd.bottom)+Xd});Lg(Od,pf.scrollLeft,pf.scrollTop)}function Yv(Od,Ud){Math.abs(Od.doc.scrollTop-Ud)<2||(ld||Gb(Od,{top:Ud}),BE(Od,Ud,!0),ld&&Gb(Od),Qv(Od,100))}function BE(Od,Ud,Jd){Ud=Math.max(0,Math.min(Od.display.scroller.scrollHeight-Od.display.scroller.clientHeight,Ud)),!(Od.display.scroller.scrollTop==Ud&&!Jd)&&(Od.doc.scrollTop=Ud,Od.display.scrollbars.setScrollTop(Ud),Od.display.scroller.scrollTop!=Ud&&(Od.display.scroller.scrollTop=Ud))}function Hb(Od,Ud,Jd,Xd){Ud=Math.max(0,Math.min(Ud,Od.display.scroller.scrollWidth-Od.display.scroller.clientWidth)),!((Jd?Ud==Od.doc.scrollLeft:Math.abs(Od.doc.scrollLeft-Ud)<2)&&!Xd)&&(Od.doc.scrollLeft=Ud,pS(Od),Od.display.scroller.scrollLeft!=Ud&&(Od.display.scroller.scrollLeft=Ud),Od.display.scrollbars.setScrollLeft(Ud))}function sy(Od){var Ud=Od.display,Jd=Ud.gutters.offsetWidth,Xd=Math.round(Od.doc.height+Q0(Od.display));return{clientHeight:Ud.scroller.clientHeight,viewHeight:Ud.wrapper.clientHeight,scrollWidth:Ud.scroller.scrollWidth,clientWidth:Ud.scroller.clientWidth,viewWidth:Ud.wrapper.clientWidth,barLeft:Od.options.fixedGutter?Jd:0,docHeight:Xd,scrollHeight:Xd+e0(Od)+Ud.barHeight,nativeBarWidth:Ud.nativeBarWidth,gutterWidth:Jd}}var Nb=function(Od,Ud,Jd){this.cm=Jd;var Xd=this.vert=yf("div",[yf("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pf=this.horiz=yf("div",[yf("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Xd.tabIndex=pf.tabIndex=-1,Od(Xd),Od(pf),Om(Xd,"scroll",function(){Xd.clientHeight&&Ud(Xd.scrollTop,"vertical")}),Om(pf,"scroll",function(){pf.clientWidth&&Ud(pf.scrollLeft,"horizontal")}),thi
`},setDirection:Gg(function(Od){Od!="rtl"&&(Od="ltr"),Od!=this.direction&&(this.direction=Od,this.iter(function(Ud){return Ud.order=null}),this.cm&&y0(this.cm))})}),ib.prototype.eachLine=ib.prototype.iter;var zE=0;function E1(Od){var Ud=this;if(kS(Ud),!(b_(Ud,Od)||K_(Ud.display,Od))){h_(Od),pd&&(zE=+new Date);var Jd=t0(Ud,Od,!0),Xd=Od.dataTransfer.files;if(!(!Jd||Ud.isReadOnly()))if(Xd&&Xd.length&&window.FileReader&&window.File)for(var pf=Xd.length,Cf=Array(pf),Bf=0,Yf=function(){++Bf==pf&&eg(Ud,function(){Jd=E_(Ud.doc,Jd);var pm={from:Jd,to:Jd,text:Ud.doc.splitLines(Cf.filter(function(Rm){return Rm!=null}).join(Ud.doc.lineSeparator())),origin:"paste"};mv(Ud.doc,pm),P0(Ud.doc,k0(E_(Ud.doc,Jd),E_(Ud.doc,M0(pm))))})()},sh=function(pm,Rm){if(Ud.options.allowDropFileTypes&&gh(Ud.options.allowDropFileTypes,pm.type)==-1){Yf();return}var jm=new FileReader;jm.onerror=function(){return Yf()},jm.onload=function(){var Ym=jm.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ym)){Yf();return}Cf[Rm]=Ym,Yf()},jm.readAsText(pm)},hh=0;hh<Xd.length;hh++)sh(Xd[hh],hh);else{if(Ud.state.draggingText&&Ud.doc.sel.contains(Jd)>-1){Ud.state.draggingText(Od),setTimeout(function(){return Ud.display.input.focus()},20);return}try{var Mh=Od.dataTransfer.getData("Text");if(Mh){var Jh;if(Ud.state.draggingText&&!Ud.state.draggingText.copy&&(Jh=Ud.listSelections()),Qg(Ud.doc,k0(Jd,Jd)),Jh)for(var hm=0;hm<Jh.length;++hm)Ay(Ud.doc,"",Jh[hm].anchor,Jh[hm].head,"drag");Ud.replaceSelection(Mh,"around","paste"),Ud.display.input.focus()}}catch{}}}}function jT(Od,Ud){if(pd&&(!Od.state.draggingText||+new Date-zE<100)){dg(Ud);return}if(!(b_(Od,Ud)||K_(Od.display,Ud))&&(Ud.dataTransfer.setData("Text",Od.getSelection()),Ud.dataTransfer.effectAllowed="copyMove",Ud.dataTransfer.setDragImage&&!kd)){var Jd=yf("img",null,null,"position: fixed; left: 0; top: 0;");Jd.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Id&&(Jd.width=Jd.height=1,Od.display.wrapper.appendChild(Jd),Jd._top=Jd.offsetTop),Ud.dataTransfer.setDragImage(Jd,0,0),Id&&Jd.parentNode.removeChild(Jd)}}function $_(Od,Ud){var Jd=t0(Od,Ud);if(Jd){var Xd=document.createDocumentFragment();$E(Od,Jd,Xd),Od.display.dragCursor||(Od.display.dragCursor=yf("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),Od.display.lineSpace.insertBefore(Od.display.dragCursor,Od.display.cursorDiv)),Ef(Od.display.dragCursor,Xd)}}function kS(Od){Od.display.dragCursor&&(Od.display.lineSpace.removeChild(Od.display.dragCursor),Od.display.dragCursor=null)}function MS(Od){if(document.getElementsByClassName){for(var Ud=document.getElementsByClassName("CodeMirror"),Jd=[],Xd=0;Xd<Ud.length;Xd++){var pf=Ud[Xd].CodeMirror;pf&&Jd.push(pf)}Jd.length&&Jd[0].operation(function(){for(var Cf=0;Cf<Jd.length;Cf++)Od(Jd[Cf])})}}var yv=!1;function $S(){yv||(T1(),yv=!0)}function T1(){var Od;Om(window,"resize",function(){Od==null&&(Od=setTimeout(function(){Od=null,MS(S1)},100))}),Om(window,"blur",function(){return MS(sv)})}function S1(Od){var Ud=Od.display;Ud.cachedCharWidth=Ud.cachedTextHeight=Ud.cachedPaddingH=null,Ud.scrollbarsClipped=!1,Od.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"},rE=0;rE<10;rE++)Vg[rE+48]=Vg[rE+96]=String(rE);for(var Iy=65;Iy<=90;Iy++)Vg[Iy]=String.fromCharCode(Iy);for(var Oy=1;Oy<=12;Oy++)Vg[Oy+111]=Vg[Oy+63235]="F"+Oy;var i0={};i0.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(Od){return Od.toggleOverwrite()}};function E0(Od,Ud){var Jd=Km(Od.doc,Ud),Xd=Z_(Jd);return Xd!=Jd&&(Ud=fh(Xd)),sE(!0,Od,Xd,Ud,1)}function LS(Od,Ud){var Jd=Km(Od.doc,Ud),Xd=Hv(Jd);return Xd!=Jd&&(Ud=fh(Xd)),sE(!0,Od,Jd,Ud,-1)}function HT(Od,Ud){var Jd=E0(Od,Ud.line),Xd=Km(Od.doc,Jd.line),pf=_m(Xd,Od.doc.direction);if(!pf||pf[0].level==0){var Cf=Math.max(Jd.ch,Xd.text.search(/\S/)),Bf=Ud.line==Jd.line&&Ud.ch<=Cf&&Ud.ch;return Tm(Jd.line,Bf?0:Cf,Jd.sticky)}return Jd}function vv(Od,Ud,Jd){if(typeof Ud=="string"&&(Ud=oE[Ud],!Ud))return!1;Od.display.input.ensurePolled();var Xd=Od.display.shift,pf=!1;try{Od.isReadOnly()&&(Od.state.suppressEdits=!0),Jd&&(Od.display.shift=!1),pf=Ud(Od)!=Pf}finally{Od.display.shift=Xd,Od.state.suppressEdits=!1}return pf}function x1(Od,Ud,Jd){for(var Xd=0;Xd<Od.state.keyMaps.length;Xd++){var pf=yb(Ud,Od.state.keyMaps[Xd],Jd,Od);if(pf)return pf}return Od.options.extraKeys&&yb(Ud,Od.options.extraKeys,Jd,Od)||yb(Ud,Od.options.keyMap,Jd,Od)}var C1=new Jf;function lE(Od,Ud,Jd,Xd){var pf=Od.state.keySeq;if(pf){if(WE(Ud))return"handled";if(/\'$/.test(Ud)?Od.state.keySeq=null:C1.set(50,function(){Od.state.keySeq==pf&&(Od.state.keySeq=null,Od.display.input.reset())}),GT(Od,pf+" "+Ud,Jd,Xd))return!0}return GT(Od,Ud,Jd,Xd)}function GT(Od,Ud,Jd,Xd){var pf=x1(Od,Ud,Xd);return pf=="multi"&&(Od.state.keySeq=Ud),pf=="handled"&&Wd(Od,"keyHandled",Od,Ud,Jd),(pf=="handled"||pf=="multi")&&(h_(Jd),iy(Od)),!!pf}function qT(Od,Ud){var Jd=nE(Ud,!0);return Jd?Ud.shiftKey&&!Od.state.keySeq?lE(Od,"Shift-"+Jd,Ud,function(Xd){return vv(Od,Xd,!0)})||lE(Od,Jd,Ud,function(Xd){if(typeof Xd=="string"?/^go[A-Z]/.test(Xd):Xd.motion)return vv(Od,Xd)}):lE(Od,Jd,Ud,function(Xd){return vv(Od,Xd)}):!1}function A1(Od,Ud,Jd){return lE(Od,"'"+Jd+"'",Ud,function(Xd){return vv(Od,Xd,!0)})}var KE=null;function VT(Od){var Ud=this;if(!(Od.target&&Od.target!=Ud.display.input.getField())&&(Ud.curOp.focus=Xf(Uf(Ud)),!b_(Ud,Od))){pd&&fd<11&&Od.keyCode==27&&(Od.returnValue=!1);var Jd=Od.keyCode;Ud.display.shift=Jd==16||Od.shiftKey;var Xd=qT(Ud,Od);Id&&(KE=Xd?Jd:null,!Xd&&Jd==88&&!mh&&(Gd?Od.metaKey:Od.ctrlKey)&&Ud.replaceSelection("",null,"cut")),ld&&!Gd&&!Xd&&Jd==46&&Od.shiftKey&&!Od.ctrlKey&&document.execCommand&&document.execCommand("cut"),Jd==18&&!/\bCodeMirror-crosshair\b/.test(Ud.display.lineDiv.className)&&hb(Ud)}}function hb(Od){var Ud=Od.display.lineDiv;ih(Ud,"CodeMirror-crosshair");function Jd(Xd){(Xd.keyCode==18||!Xd.altKey)&&(bf(Ud,"CodeMirror-crosshair"),Xm(document,"keyup",Jd),Xm(document,"mouseover",Jd))}Om(document,"keyup",Jd),Om(document,"mouseover",Jd)}function Yb(Od){Od.keyCode==16&&(this.doc.sel.shift=!1),b_(this,Od)}function BS(Od){var Ud=this;if(!(Od.target&&Od.target!=Ud.display.input.getField())&&!(K_(Ud.display,Od)||b_(Ud,Od)||Od.ctrlKey&&!Od.altKey||Gd&&Od.metaKey)){var Jd=Od.keyCode,Xd=Od.charCode;if(Id&&Jd==KE){KE=null,h_(Od);return}if(!(Id&&(!Od.which||Od.which<10)&&qT(Ud,Od))){var pf=String.fromCharCode(Xd??Jd);pf!="\b"&&(A1(Ud,Od,pf)||Ud.display.input.onKeyPress(Od))}}}var D1=400,Ev=function(Od,Ud,Jd){this.time=Od,this.pos=Ud,this.button=Jd};Ev.prototype.compare=function(Od,Ud,Jd){return this.time+D1>Od&&e_(Ud,this.pos)==0&&Jd==this.button};var a0,Cv;function FS(Od,Ud){var Jd=+new Date;return Cv&&Cv.compare(Jd,Od,Ud)?(a0=Cv=null,"triple"):a0&&a0.compare(Jd,Od,Ud)?(Cv=new Ev(Jd,Od,Ud),a0=null,"double"):(a0=new Ev(Jd,Od,Ud),Cv=null,"single")}function jS(Od){var Ud=this,Jd=Ud.display;if(!(b_(Ud,Od)||Jd.activeTouch&&Jd.input.supportsTouch())){if(Jd.input.ensurePolled(),Jd.shift=Od.shiftKey,K_(Jd,Od)){md||(Jd.scroller.draggable=!1,setTimeout(function(){return Jd.scroller.draggable=!0},100));return}if(!Nv(Ud,Od)){var Xd=t0(Ud,Od),pf=q_(Od),Cf=Xd?FS(Xd,pf):"single";Kf(Ud).focus(),pf==1&&Ud.state.selectingText&&Ud.state.selectingText(Od),!(Xd&&US(Ud,pf,Xd,Cf,Od))&&(pf==1?Xd?uE(Ud,Xd,Cf,Od):yg(Od)==Jd.scroller&&h_(Od):pf==2?(Xd&&dv(Ud.doc,Xd),setTimeout(function(){return Jd.input.focus()},20)):pf==3&&(Zd?Ud.display.input.onContextMenu(Od):av(Ud)))}}}function US(Od,Ud,Jd,Xd,pf){var Cf="Click";
`)==Ud){if(Xd.ranges.length%Ib.text.length==0){hh=[];for(var Mh=0;Mh<Ib.text.length;Mh++)hh.push(Cf.splitLines(Ib.text[Mh]))}}else sh.length==Xd.ranges.length&&Od.options.pasteLinesPerSelection&&(hh=Th(sh,function(n_){return[n_]}));for(var Jh=Od.curOp.updateInput,hm=Xd.ranges.length-1;hm>=0;hm--){var pm=Xd.ranges[hm],Rm=pm.from(),jm=pm.to();pm.empty()&&(Jd&&Jd>0?Rm=Tm(Rm.line,Rm.ch-Jd):Od.state.overwrite&&!Yf?jm=Tm(jm.line,Math.min(Km(Cf,jm.line).text.length,jm.ch+vh(sh).length)):Yf&&Ib&&Ib.lineWise&&Ib.text.join(`
`)==sh.join(`
`)&&(Rm=jm=Tm(Rm.line,0)));var Ym={from:Rm,to:jm,text:hh?hh[hm%hh.length]:sh,origin:pf||(Yf?"paste":Od.state.cutIncoming>Bf?"cut":"+input")};mv(Od.doc,Ym),Wd(Od,"inputRead",Od,Ym)}Ud&&!Yf&&tT(Od,Ud),bg(Od),Od.curOp.updateInput<2&&(Od.curOp.updateInput=Jh),Od.curOp.typing=!0,Od.state.pasteIncoming=Od.state.cutIncoming=-1}function s0(Od,Ud){var Jd=Od.clipboardData&&Od.clipboardData.getData("Text");if(Jd)return Od.preventDefault(),!Ud.isReadOnly()&&!Ud.options.disableInput&&Ud.hasFocus()&&eb(Ud,function(){return KT(Ud,Jd,0,null,"paste")}),!0}function tT(Od,Ud){if(!(!Od.options.electricChars||!Od.options.smartIndent))for(var Jd=Od.doc.sel,Xd=Jd.ranges.length-1;Xd>=0;Xd--){var pf=Jd.ranges[Xd];if(!(pf.head.ch>100||Xd&&Jd.ranges[Xd-1].head.line==pf.head.line)){var Cf=Od.getModeAt(pf.head),Bf=!1;if(Cf.electricChars){for(var Yf=0;Yf<Cf.electricChars.length;Yf++)if(Ud.indexOf(Cf.electricChars.charAt(Yf))>-1){Bf=pE(Od,pf.head.line,"smart");break}}else Cf.electricInput&&Cf.electricInput.test(Km(Od.doc,pf.head.line).text.slice(0,pf.head.ch))&&(Bf=pE(Od,pf.head.line,"smart"));Bf&&Wd(Od,"electricInput",Od,pf.head.line)}}}function rT(Od){for(var Ud=[],Jd=[],Xd=0;Xd<Od.doc.sel.ranges.length;Xd++){var pf=Od.doc.sel.ranges[Xd].head.line,Cf={anchor:Tm(pf,0),head:Tm(pf+1,0)};Jd.push(Cf),Ud.push(Od.getRange(Cf.anchor,Cf.head))}return{text:Ud,ranges:Jd}}function fE(Od,Ud,Jd,Xd){Od.setAttribute("autocorrect",Jd?"on":"off"),Od.setAttribute("autocapitalize",Xd?"on":"off"),Od.setAttribute("spellcheck",!!Ud)}function hE(){var Od=yf("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),Ud=yf("div",[Od],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return md?Od.style.width="1000px":Od.setAttribute("wrap","off"),Md&&(Od.style.border="1px solid black"),Ud}function wv(Od){var Ud=Od.optionHandlers,Jd=Od.helpers={};Od.prototype={constructor:Od,focus:function(){Kf(this).focus(),this.display.input.focus()},setOption:function(Xd,pf){var Cf=this.options,Bf=Cf[Xd];Cf[Xd]==pf&&Xd!="mode"||(Cf[Xd]=pf,Ud.hasOwnProperty(Xd)&&eg(this,Ud[Xd])(this,pf,Bf),s_(this,"optionChange",this,Xd))},getOption:function(Xd){return this.options[Xd]},getDoc:function(){return this.doc},addKeyMap:function(Xd,pf){this.state.keyMaps[pf?"push":"unshift"](iE(Xd))},removeKeyMap:function(Xd){for(var pf=this.state.keyMaps,Cf=0;Cf<pf.length;++Cf)if(pf[Cf]==Xd||pf[Cf].name==Xd)return pf.splice(Cf,1),!0},addOverlay:S_(function(Xd,pf){var Cf=Xd.token?Xd:Od.getMode(this.options,Xd);if(Cf.startState)throw new Error("Overlays may not be stateful.");dh(this.state.overlays,{mode:Cf,modeSpec:Xd,opaque:pf&&pf.opaque,priority:pf&&pf.priority||0},function(Bf){return Bf.priority}),this.state.modeGen++,ub(this)}),removeOverlay:S_(function(Xd){for(var pf=this.state.overlays,Cf=0;Cf<pf.length;++Cf){var Bf=pf[Cf].modeSpec;if(Bf==Xd||typeof Xd=="string"&&Bf.name==Xd){pf.splice(Cf,1),this.state.modeGen++,ub(this);return}}}),indentLine:S_(function(Xd,pf,Cf){typeof pf!="string"&&typeof pf!="number"&&(pf==null?pf=this.options.smartIndent?"smart":"prev":pf=pf?"add":"subtract"),Mm(this.doc,Xd)&&pE(this,Xd,pf,Cf)}),indentSelection:S_(function(Xd){for(var pf=this.doc.sel.ranges,Cf=-1,Bf=0;Bf<pf.length;Bf++){var Yf=pf[Bf];if(Yf.empty())Yf.head.line>Cf&&(pE(this,Yf.head.line,Xd,!0),Cf=Yf.head.line,Bf==this.doc.sel.primIndex&&bg(this));else{var sh=Yf.from(),hh=Yf.to(),Mh=Math.max(Cf,sh.line);Cf=Math.min(this.lastLine(),hh.line-(hh.ch?0:1))+1;for(var Jh=Mh;Jh<Cf;++Jh)pE(this,Jh,Xd);var hm=this.doc.sel.ranges;sh.ch==0&&pf.length==hm.length&&hm[Bf].from().ch>0&&wb(this.doc,Bf,new X_(sh,hm[Bf].to()),uh)}}}),getTokenAt:function(Xd,pf){return C0(this,Xd,pf)},getLineTokens:function(Xd,pf){return C0(this,Tm(Xd),pf,!0)},getTokenTypeAt:function(Xd){Xd=E_(this.doc,Xd);var pf=Jb(this,Km(this.doc,Xd.line)),Cf=0,Bf=(pf.length-1)/2,Yf=Xd.ch,sh;if(Yf==0)sh=pf[2];else for(;;){var hh=Cf+Bf>>1;if((hh?pf[hh*2-1]:0)>=Yf)Bf=hh;else if(pf[hh*2+1]<Yf)Cf=hh+1;else{sh=pf[hh*2+2];break}}var Mh=sh?sh.indexOf("overlay "):-1;return Mh<0?sh:Mh==0?null:s
`,Ym=cm(jm,pm)?"w":hm&&jm==`
`?"n":!hm||/\s/.test(jm)?null:"p";if(hm&&!Rm&&!Ym&&(Ym="s"),Jh&&Jh!=Ym){Jd<0&&(Jd=1,Mh(),Ud.sticky="after");break}if(Ym&&(Jh=Ym),Jd>0&&!Mh(!Rm))break}var n_=fv(Od,Ud,Cf,Bf,!0);return O_(Cf,n_)&&(n_.hitSide=!0),n_}function mE(Od,Ud,Jd,Xd){var pf=Od.doc,Cf=Ud.left,Bf;if(Xd=="page"){var Yf=Math.min(Od.display.wrapper.clientHeight,Kf(Od).innerHeight||pf(Od).documentElement.clientHeight),sh=Math.max(Yf-.5*Fb(Od.display),3);Bf=(Jd>0?Ud.bottom:Ud.top)+Jd*sh}else Xd=="line"&&(Bf=Jd>0?Ud.bottom+3:Ud.top-3);for(var hh;hh=V_(Od,Cf,Bf),!!hh.outside;){if(Jd<0?Bf<=0:Bf>=pf.height){hh.hitSide=!0;break}Bf+=Jd*5}return hh}var Q_=function(Od){this.cm=Od,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Jf,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Q_.prototype.init=function(Od){var Ud=this,Jd=this,Xd=Jd.cm,pf=Jd.div=Od.lineDiv;pf.contentEditable=!0,fE(pf,Xd.options.spellcheck,Xd.options.autocorrect,Xd.options.autocapitalize);function Cf(Yf){for(var sh=Yf.target;sh;sh=sh.parentNode){if(sh==pf)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(sh.className))break}return!1}Om(pf,"paste",function(Yf){!Cf(Yf)||b_(Xd,Yf)||s0(Yf,Xd)||fd<=11&&setTimeout(eg(Xd,function(){return Ud.updateFromDOM()}),20)}),Om(pf,"compositionstart",function(Yf){Ud.composing={data:Yf.data,done:!1}}),Om(pf,"compositionupdate",function(Yf){Ud.composing||(Ud.composing={data:Yf.data,done:!1})}),Om(pf,"compositionend",function(Yf){Ud.composing&&(Yf.data!=Ud.composing.data&&Ud.readFromDOMSoon(),Ud.composing.done=!0)}),Om(pf,"touchstart",function(){return Jd.forceCompositionEnd()}),Om(pf,"input",function(){Ud.composing||Ud.readFromDOMSoon()});function Bf(Yf){if(!(!Cf(Yf)||b_(Xd,Yf))){if(Xd.somethingSelected())eT({lineWise:!1,text:Xd.getSelections()}),Yf.type=="cut"&&Xd.replaceSelection("",null,"cut");else if(Xd.options.lineWiseCopyCut){var sh=rT(Xd);eT({lineWise:!0,text:sh.text}),Yf.type=="cut"&&Xd.operation(function(){Xd.setSelections(sh.ranges,0,uh),Xd.replaceSelection("",null,"cut")})}else return;if(Yf.clipboardData){Yf.clipboardData.clearData();var hh=Ib.text.join(`
`);if(Yf.clipboardData.setData("Text",hh),Yf.clipboardData.getData("Text")==hh){Yf.preventDefault();return}}var Mh=hE(),Jh=Mh.firstChild;fE(Jh),Xd.display.lineSpace.insertBefore(Mh,Xd.display.lineSpace.firstChild),Jh.value=Ib.text.join(`
`);var hm=Xf(qf(pf));jf(Jh),setTimeout(function(){Xd.display.lineSpace.removeChild(Mh),hm.focus(),hm==pf&&Jd.showPrimarySelection()},50)}}Om(pf,"copy",Bf),Om(pf,"cut",Bf)},Q_.prototype.screenReaderLabelChanged=function(Od){Od?this.div.setAttribute("aria-label",Od):this.div.removeAttribute("aria-label")},Q_.prototype.prepareSelection=function(){var Od=vT(this.cm,!1);return Od.focus=Xf(qf(this.div))==this.div,Od},Q_.prototype.showSelection=function(Od,Ud){!Od||!this.cm.display.view.length||((Od.focus||Ud)&&this.showPrimarySelection(),this.showMultipleSelections(Od))},Q_.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Q_.prototype.showPrimarySelection=function(){var Od=this.getSelection(),Ud=this.cm,Jd=Ud.doc.sel.primary(),Xd=Jd.from(),pf=Jd.to();if(Ud.display.viewTo==Ud.display.viewFrom||Xd.line>=Ud.display.viewTo||pf.line<Ud.display.viewFrom){Od.removeAllRanges();return}var Cf=zg(Ud,Od.anchorNode,Od.anchorOffset),Bf=zg(Ud,Od.focusNode,Od.focusOffset);if(!(Cf&&!Cf.bad&&Bf&&!Bf.bad&&e_(rb(Cf,Bf),Xd)==0&&e_(Cg(Cf,Bf),pf)==0)){var Yf=Ud.display.view,sh=Xd.line>=Ud.display.viewFrom&&j0(Ud,Xd)||{node:Yf[0].measure.map[2],offset:0},hh=pf.line<Ud.display.viewTo&&j0(Ud,pf);if(!hh){var Mh=Yf[Yf.length-1].measure,Jh=Mh.maps?Mh.maps[Mh.maps.length-1]:Mh.map;hh={node:Jh[Jh.length-1],offset:Jh[Jh.length-2]-Jh[Jh.length-3]}}if(!sh||!hh){Od.removeAllRanges();return}var hm=Od.rangeCount&&Od.getRangeAt(0),pm;try{pm=Af(sh.node,sh.offset,hh.offset,hh.node)}catch{}pm&&(!ld&&Ud.state.focused?(Od.collapse(sh.node,sh.offset),pm.collapsed||(Od.removeAllRanges(),Od.addRange(pm))):(Od.removeAllRanges(),Od.addRange(pm)),hm&&Od.anchorNode==null?Od.addRange(hm):ld&&this.startGracePeriod()),this.rememberSelection()}},Q_.prototype.startGracePeriod=function(){var Od=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){Od.gracePeriod=!1,Od.selectionChanged()&&Od.cm.operation(function(){return Od.cm.curOp.selectionChanged=!0})},20)},Q_.prototype.showMultipleSelections=function(Od){Ef(this.cm.display.cursorDiv,Od.cursors),Ef(this.cm.display.selectionDiv,Od.selection)},Q_.prototype.rememberSelection=function(){var Od=this.getSelection();this.lastAnchorNode=Od.anchorNode,this.lastAnchorOffset=Od.anchorOffset,this.lastFocusNode=Od.focusNode,this.lastFocusOffset=Od.focusOffset},Q_.prototype.selectionInEditor=function(){var Od=this.getSelection();if(!Od.rangeCount)return!1;var Ud=Od.getRangeAt(0).commonAncestorContainer;return Lf(this.div,Ud)},Q_.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Xf(qf(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Q_.prototype.blur=function(){this.div.blur()},Q_.prototype.getField=function(){return this.div},Q_.prototype.supportsTouch=function(){return!0},Q_.prototype.receivedFocus=function(){var Od=this,Ud=this;this.selectionInEditor()?setTimeout(function(){return Od.pollSelection()},20):eb(this.cm,function(){return Ud.cm.curOp.selectionChanged=!0});function Jd(){Ud.cm.state.focused&&(Ud.pollSelection(),Ud.polling.set(Ud.cm.options.pollInterval,Jd))}this.polling.set(this.cm.options.pollInterval,Jd)},Q_.prototype.selectionChanged=function(){var Od=this.getSelection();return Od.anchorNode!=this.lastAnchorNode||Od.anchorOffset!=this.lastAnchorOffset||Od.focusNode!=this.lastFocusNode||Od.focusOffset!=this.lastFocusOffset},Q_.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var Od=this.getSelection(),Ud=this.cm;if(Ld&&Ad&&this.cm.display.gutterSpecs.length&&I1(Od.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Jd=zg(Ud,Od.anchorNode,Od.anchorOffset),Xd=zg(Ud,Od.focusNode,Od.focusOffset);Jd&&Xd&&eb(Ud,function(){Xg(Ud.doc,k0(Jd,Xd),uh),(Jd.bad||Xd.bad)&&(Ud.curOp.selectionChanged=!0)})}}},Q_.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMT
`),jf(pf))}else return;Bf.type=="cut"&&(Xd.state.cutIncoming=+new Date)}}Om(pf,"cut",Cf),Om(pf,"copy",Cf),Om(Od.scroller,"paste",function(Bf){if(!(K_(Od,Bf)||b_(Xd,Bf))){if(!pf.dispatchEvent){Xd.state.pasteIncoming=+new Date,Jd.focus();return}var Yf=new Event("paste");Yf.clipboardData=Bf.clipboardData,pf.dispatchEvent(Yf)}}),Om(Od.lineSpace,"selectstart",function(Bf){K_(Od,Bf)||h_(Bf)}),Om(pf,"compositionstart",function(){var Bf=Xd.getCursor("from");Jd.composing&&Jd.composing.range.clear(),Jd.composing={start:Bf,range:Xd.markText(Bf,Xd.getCursor("to"),{className:"CodeMirror-composing"})}}),Om(pf,"compositionend",function(){Jd.composing&&(Jd.poll(),Jd.composing.range.clear(),Jd.composing=null)})},Dg.prototype.createField=function(Od){this.wrapper=hE(),this.textarea=this.wrapper.firstChild;var Ud=this.cm.options;fE(this.textarea,Ud.spellcheck,Ud.autocorrect,Ud.autocapitalize)},Dg.prototype.screenReaderLabelChanged=function(Od){Od?this.textarea.setAttribute("aria-label",Od):this.textarea.removeAttribute("aria-label")},Dg.prototype.prepareSelection=function(){var Od=this.cm,Ud=Od.display,Jd=Od.doc,Xd=vT(Od);if(Od.options.moveInputWithCursor){var pf=Dm(Od,Jd.sel.primary().head,"div"),Cf=Ud.wrapper.getBoundingClientRect(),Bf=Ud.lineDiv.getBoundingClientRect();Xd.teTop=Math.max(0,Math.min(Ud.wrapper.clientHeight-10,pf.top+Bf.top-Cf.top)),Xd.teLeft=Math.max(0,Math.min(Ud.wrapper.clientWidth-10,pf.left+Bf.left-Cf.left))}return Xd},Dg.prototype.showSelection=function(Od){var Ud=this.cm,Jd=Ud.display;Ef(Jd.cursorDiv,Od.cursors),Ef(Jd.selectionDiv,Od.selection),Od.teTop!=null&&(this.wrapper.style.top=Od.teTop+"px",this.wrapper.style.left=Od.teLeft+"px")},Dg.prototype.reset=function(Od){if(!(this.contextMenuPending||this.composing&&Od)){var Ud=this.cm;if(this.resetting=!0,Ud.somethingSelected()){this.prevInput="";var Jd=Ud.getSelection();this.textarea.value=Jd,Ud.state.focused&&jf(this.textarea),pd&&fd>=9&&(this.hasSelection=Jd)}else Od||(this.prevInput=this.textarea.value="",pd&&fd>=9&&(this.hasSelection=null));this.resetting=!1}},Dg.prototype.getField=function(){return this.textarea},Dg.prototype.supportsTouch=function(){return!1},Dg.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Hd||Xf(qf(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Dg.prototype.blur=function(){this.textarea.blur()},Dg.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Dg.prototype.receivedFocus=function(){this.slowPoll()},Dg.prototype.slowPoll=function(){var Od=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){Od.poll(),Od.cm.state.focused&&Od.slowPoll()})},Dg.prototype.fastPoll=function(){var Od=!1,Ud=this;Ud.pollingFast=!0;function Jd(){var Xd=Ud.poll();!Xd&&!Od?(Od=!0,Ud.polling.set(60,Jd)):(Ud.pollingFast=!1,Ud.slowPoll())}Ud.polling.set(20,Jd)},Dg.prototype.poll=function(){var Od=this,Ud=this.cm,Jd=this.textarea,Xd=this.prevInput;if(this.contextMenuPending||this.resetting||!Ud.state.focused||Ch(Jd)&&!Xd&&!this.composing||Ud.isReadOnly()||Ud.options.disableInput||Ud.state.keySeq)return!1;var pf=Jd.value;if(pf==Xd&&!Ud.somethingSelected())return!1;if(pd&&fd>=9&&this.hasSelection===pf||Gd&&/[\uf700-\uf7ff]/.test(pf))return Ud.display.input.reset(),!1;if(Ud.doc.sel==Ud.display.selForContextMenu){var Cf=pf.charCodeAt(0);if(Cf==8203&&!Xd&&(Xd=""),Cf==8666)return this.reset(),this.cm.execCommand("undo")}for(var Bf=0,Yf=Math.min(Xd.length,pf.length);Bf<Yf&&Xd.charCodeAt(Bf)==pf.charCodeAt(Bf);)++Bf;return eb(Ud,function(){KT(Ud,pf.slice(Bf),Xd.length-Bf,null,Od.composing?"*compose":null),pf.length>1e3||pf.indexOf(`
`)>-1?Jd.value=Od.prevInput="":Od.prevInput=pf,Od.composing&&(Od.composing.range.clear(),Od.composing.range=Ud.markText(Od.composing.start,Ud.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Dg.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Dg.prototype.onKeyPress=function(){pd&&fd>=9&&(this.hasSelection=null),this.fastPoll()},Dg.prototype.onContextMenu=function(Od){var Ud=this,Jd=Ud.cm,Xd=Jd.display,pf=Ud.textarea;Ud.contextMenuPending&&Ud.contextMenuPending();var Cf=t0(Jd,Od),Bf=Xd.scroller.scrollTop;if(!Cf||Id)return;var Yf=Jd.options.resetSelectionOnContextMenu;Yf&&Jd.doc.sel.contains(Cf)==-1&&eg(Jd,Xg)(Jd.doc,k0(Cf),uh);var sh=pf.style.cssText,hh=Ud.wrapper.style.cssText,Mh=Ud.wrapper.offsetParent.getBoundingClientRect();Ud.wrapper.style.cssText="position: static",pf.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(Od.clientY-Mh.top-5)+"px; left: "+(Od.clientX-Mh.left-5)+`px;
z-index: 1000; background: `+(pd?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Jh;md&&(Jh=pf.ownerDocument.defaultView.scrollY),Xd.input.focus(),md&&pf.ownerDocument.defaultView.scrollTo(null,Jh),Xd.input.reset(),Jd.somethingSelected()||(pf.value=Ud.prevInput=" "),Ud.contextMenuPending=pm,Xd.selForContextMenu=Jd.doc.sel,clearTimeout(Xd.detectingSelectAll);function hm(){if(pf.selectionStart!=null){var jm=Jd.somethingSelected(),Ym=""+(jm?pf.value:"");pf.value="⇚",pf.value=Ym,Ud.prevInput=jm?"":"",pf.selectionStart=1,pf.selectionEnd=Ym.length,Xd.selForContextMenu=Jd.doc.sel}}function pm(){if(Ud.contextMenuPending==pm&&(Ud.contextMenuPending=!1,Ud.wrapper.style.cssText=hh,pf.style.cssText=sh,pd&&fd<9&&Xd.scrollbars.setScrollTop(Xd.scroller.scrollTop=Bf),pf.selectionStart!=null)){(!pd||pd&&fd<9)&&hm();var jm=0,Ym=function(){Xd.selForContextMenu==Jd.doc.sel&&pf.selectionStart==0&&pf.selectionEnd>0&&Ud.prevInput==""?eg(Jd,hv)(Jd):jm++<10?Xd.detectingSelectAll=setTimeout(Ym,500):(Xd.selForContextMenu=null,Xd.input.reset())};Xd.detectingSelectAll=setTimeout(Ym,200)}}if(pd&&fd>=9&&hm(),Zd){dg(Od);var Rm=function(){Xm(window,"mouseup",Rm),setTimeout(pm,20)};Om(window,"mouseup",Rm)}else setTimeout(pm,50)},Dg.prototype.readOnlyChanged=function(Od){Od||this.reset(),this.textarea.disabled=Od=="nocursor",this.textarea.readOnly=!!Od},Dg.prototype.setUneditable=function(){},Dg.prototype.needsContentAttribute=!1;function WS(Od,Ud){if(Ud=Ud?vf(Ud):{},Ud.value=Od.value,!Ud.tabindex&&Od.tabIndex&&(Ud.tabindex=Od.tabIndex),!Ud.placeholder&&Od.placeholder&&(Ud.placeholder=Od.placeholder),Ud.autofocus==null){var Jd=Xf(qf(Od));Ud.autofocus=Jd==Od||Od.getAttribute("autofocus")!=null&&Jd==document.body}function Xd(){Od.value=Yf.getValue()}var pf;if(Od.form&&(Om(Od.form,"submit",Xd),!Ud.leaveSubmitMethodAlone)){var Cf=Od.form;pf=Cf.submit;try{var Bf=Cf.submit=function(){Xd(),Cf.submit=pf,Cf.submit(),Cf.submit=Bf}}catch{}}Ud.finishInit=function(sh){sh.save=Xd,sh.getTextArea=function(){return Od},sh.toTextArea=function(){sh.toTextArea=isNaN,Xd(),Od.parentNode.removeChild(sh.getWrapperElement()),Od.style.display="",Od.form&&(Xm(Od.form,"submit",Xd),!Ud.leaveSubmitMethodAlone&&typeof Od.form.submit=="function"&&(Od.form.submit=pf))}},Od.style.display="none";var Yf=z_(function(sh){return Od.parentNode.insertBefore(sh,Od.nextSibling)},Ud);return Yf}function R1(Od){Od.off=Xm,Od.on=Om,Od.wheelEventPixels=_1,Od.Doc=ib,Od.splitLines=Of,Od.countColumn=Gf,Od.findColumn=Nf,Od.isWordChar=Nm,Od.Pass=Pf,Od.signal=s_,Od.Line=Pb,Od.changeEnd=M0,Od.scrollbarModel=oy,Od.Pos=Tm,Od.cmpPos=e_,Od.modes=Fh,Od.mimeModes=om,Od.resolveMode=Im,Od.getMode=Pm,Od.modeExtensions=i_,Od.extendMode=Hm,Od.copyState=o_,Od.startState=B_,Od.innerMode=j_,Od.commands=oE,Od.keyMap=i0,Od.keyName=nE,Od.isModifierKey=WE,Od.lookupKey=yb,Od.normalizeKeyMap=bb,Od.StringStream=C_,Od.SharedTextMarker=bv,Od.TextMarker=Wb,Od.LineWidget=Ny,Od.e_preventDefault=h_,Od.e_stopPropagation=tg,Od.e_stop=dg,Od.addClass=ih,Od.contains=Lf,Od.rmClass=bf,Od.keyNames=Vg}YT(z_),wv(z_);var YS="iter insert remove copy getEditor constructor".split(" ");for(var nT in ib.prototype)ib.prototype.hasOwnProperty(nT)&&gh(YS,nT)<0&&(z_.prototype[nT]=function(Od){return function(){return Od.apply(this.doc,arguments)}}(ib.prototype[nT]));return M_(ib),z_.inputStyles={textarea:Dg,contenteditable:Q_},z_.defineMode=function(Od){!z_.defaults.mode&&Od!="null"&&(z_.defaults.mode=Od),im.apply(this,arguments)},z_.defineMIME=Rh,z_.defineMode("null",function(){return{token:function(Od){return Od.skipToEnd()}}}),z_.defineMIME("text/plain","null"),z_.defineExtension=function(Od,Ud){z_.prototype[Od]=Ud},z_.defineDocExtension=function(Od,Ud){ib.prototype[Od]=Ud},z_.fromTextArea=WS,R1(z_),z_.version="5.65.18",z_})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);var qt$1=Object.defineProperty,Jt$1=(Ra,qa,nd)=>qa in Ra?qt$1(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:nd}):Ra[qa]=nd,x=(Ra,qa,nd)=>Jt$1(R
<style>
.hljs.code__pre > .mac-sign {
display: flex;
}
</style>
`),Th+=`
<style>
.code__pre {
padding: 0 !important;
}
.hljs.code__pre code {
display: -webkit-box;
padding: 0.5em 1em 1em;
overflow-x: auto;
text-indent: 0;
}
</style>
`,md.value=Th},If=()=>{const Th=css2json(bf.value.getValue()),dh=customCssWithTemplate(Th,Id.value,customizeTheme(themeMap[vd.value],{fontSize:Fd.value,color:Id.value}));Zf.setOptions({theme:dh}),jf()};onMounted(()=>{const Th=document.querySelector("#cssEditor");Th.value=xf().content;const dh=Ra.value?"darcula":"xq-light";bf.value=markRaw(CodeMirror.fromTextArea(Th,{mode:"css",theme:dh,lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(wh){formatDoc(wh.getValue(),"css").then(fm=>{xf().content=fm,wh.setValue(fm)})}}})),bf.value.on("keyup",(Vh,wh)=>{(wh.keyCode>=65&&wh.keyCode<=90||wh.keyCode===189)&&Vh.showHint(wh)}),bf.value.on("update",()=>{If(),xf().content=bf.value.getValue()})}),watch(Ra,()=>{var dh,Vh;const Th=Ra.value?"darcula":"xq-light";(Vh=(dh=toRaw(bf.value))==null?void 0:dh.setOption)==null||Vh.call(dh,"theme",Th)});const Uf=()=>{cd.value=!1,nd.value=!0,vd.value=themeOptions[0].value,Ad.value=fontFamilyOptions[0].value,Ad.value=fontFamilyOptions[0].value,Nd.value=fontSizeOptions[2].value,Id.value=colorOptions[0].value,kd.value=codeBlockThemeOptions[2].value,jd.value=legendOptions[3].value,yf.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Ef.value||DEFAULT_CSS_CONTENT}]},bf.value.setValue(DEFAULT_CSS_CONTENT),If(),jf(),Ke$1.success("样式重置成功~")},qf=Th=>(...dh)=>{Th(...dh),jf()},Kf=(Th,dh)=>{const Vh=themeMap[vd.value],wh=Number(Th.replace("px",""));return customCssWithTemplate(css2json(xf().content),dh,customizeTheme(Vh,{fontSize:wh,color:dh}))},Tf=qf(Th=>{Zf.setOptions({theme:customCssWithTemplate(css2json(xf().content),Id.value,customizeTheme(themeMap[Th],{fontSize:Fd.value}))}),vd.value=Th}),vf=qf(Th=>{Zf.setOptions({fonts:Th}),Ad.value=Th}),Gf=qf(Th=>{const dh=Kf(Th,Id.value);Zf.setOptions({size:Th,theme:dh}),Nd.value=Th}),Jf=qf(Th=>{const dh=Kf(Nd.value,Th);Zf.setOptions({theme:dh}),Id.value=Th}),gh=qf(Th=>{kd.value=Th}),th=qf(Th=>{jd.value=Th}),Pf=qf(()=>{od()}),uh=qf(()=>{dd()}),xh=qf(()=>{fd()}),Qf=()=>{exportHTML(Id.value),document.querySelector("#output").innerHTML=md.value},Nf=()=>{downloadMD(Md.value.getValue())},$f=()=>{const Th=document.body,dh=document.createElement("input");dh.type="file",dh.name="filename",dh.accept=".md",dh.onchange=()=>{const Vh=dh.files[0];if(!Vh)return;const wh=new FileReader;wh.readAsText(Vh),wh.onload=fm=>{Md.value.setValue(fm.target.result),Ke$1.success("文档导入成功")}},Th.appendChild(dh),dh.click(),Th.removeChild(dh)},Wf=ref$1(!1);return{isDark:Ra,toggleDark:qa,isEditOnLeft:ld,toggleEditOnLeft:ud,isMacCodeBlock:nd,isCiteStatus:cd,citeStatusChanged:uh,isUseIndent:pd,useIndentChanged:xh,output:md,editor:Md,cssEditor:bf,theme:vd,fontFamily:Ad,fontSize:Nd,primaryColor:Id,codeBlockTheme:kd,legend:jd,editorRefresh:jf,themeChanged:Tf,fontChanged:vf,sizeChanged:Gf,colorChanged:Jf,codeBlockThemeChanged:gh,legendChanged:th,macCodeBlockChanged:Pf,formatContent:Zd,exportEditorContent2HTML:Qf,exportEditorContent2MD:Nf,importMarkdownContent:$f,isOpenConfirmDialog:Wf,resetStyleConfirm:()=>{Wf.value=!0},resetStyle:Uf,cssContentConfig:yf,addCssContentTab:Xf,validatorTabName:ih,setCssEditorValue:gf,tabChanged:Af,renameTab:Lf,posts:Gd,currentPostIndex:Vd,addPost:Qd,renamePost:mf,delPost:Yd,isOpenPostSlider:Hd}}),useDisplayStore=defineStore("display",()=>{const Ra=ref$1(!1),qa=useToggle(Ra),nd=ref$1(!1),od=useToggle(nd),ld=ref$1(!1),ud=useToggle(ld);return{isShowCssEditor:Ra,toggleShowCssEditor:qa,isShowInsertFormDialog:nd,toggleShowInsertFormDialog:od,isShowUploadImgDialog:ld,toggleShowUploadImgDialog:ud}}),_hoisted_1$a={class:"cssEditor-wrapper order-1 h-full flex flex-col border-l-1"},_sfc_main$$=defineComponent({__name:"CssEditor",setup(Ra){const qa=useStore(),nd=useDisplayStore(),od=ref$1(!1),ld=ref$1(""),ud=ref$1(["",qa.cssContentConfig.active]);function cd(Fd){ld.value=Fd,od.value=!0}function dd(){if(!ld.value.trim()){Ke$1.error("新建失败,方案名不可为空");return}if(!qa.validatorTabName(ld.value)){Ke$1.error("不能与现有方案重名");return}qa
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P(Ra){return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(qa){return typeof qa}:function(qa){return qa&&typeof Symbol=="function"&&qa.constructor===Symbol&&qa!==Symbol.prototype?"symbol":typeof qa},P(Ra)}function j(Ra,qa,nd,od,ld,ud,cd){try{var dd=Ra[ud](cd),pd=dd.value}catch(fd){return void nd(fd)}dd.done?qa(pd):Promise.resolve(pd).then(od,ld)}function L(Ra){return function(){var qa=this,nd=arguments;return new Promise(function(od,ld){var ud=Ra.apply(qa,nd);function cd(pd){j(ud,od,ld,cd,dd,"next",pd)}function dd(pd){j(ud,od,ld,cd,dd,"throw",pd)}cd(void 0)})}}var B={exports:{}},R$1={exports:{}};(function(Ra){function qa(nd){return Ra.exports=qa=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},Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports,qa(nd)}Ra.exports=qa,Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports})(R$1),function(Ra){var qa=R$1.exports.default;function nd(){Ra.exports=nd=function(){return ld},Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports;var od,ld={},ud=Object.prototype,cd=ud.hasOwnProperty,dd=Object.defineProperty||function(Xf,ih,Zf){Xf[ih]=Zf.value},pd=typeof Symbol=="function"?Symbol:{},fd=pd.iterator||"@@iterator",md=pd.asyncIterator||"@@asyncIterator",vd=pd.toStringTag||"@@toStringTag";function Ad(Xf,ih,Zf){return Object.defineProperty(Xf,ih,{value:Zf,enumerable:!0,configurable:!0,writable:!0}),Xf[ih]}try{Ad({},"")}catch{Ad=function(ih,Zf,jf){return ih[Zf]=jf}}function Nd(Xf,ih,Zf,jf){var If=ih&&ih.prototype instanceof Hd?ih:Hd,Uf=Object.create(If.prototype),qf=new Af(jf||[]);return dd(Uf,"_invoke",{value:gf(Xf,Zf,qf)}),Uf}function Id(Xf,ih,Zf){try{return{type:"normal",arg:Xf.call(ih,Zf)}}catch(jf){return{type:"throw",arg:jf}}}ld.wrap=Nd;var kd="suspendedStart",jd="suspendedYield",Fd="executing",Md="completed",Ld={};function Hd(){}function Gd(){}function Vd(){}var Qd={};Ad(Qd,fd,function(){return this});var mf=Object.getPrototypeOf,Yd=mf&&mf(mf(Lf([])));Yd&&Yd!==ud&&cd.call(Yd,fd)&&(Qd=Yd);var Zd=Vd.prototype=Hd.prototype=Object.create(Qd);function Kd(Xf){["next","throw","return"].forEach(function(ih){Ad(Xf,ih,function(Zf){return this._invoke(ih,Zf)})})}function bf(Xf,ih){function Zf(If,Uf,qf,Kf){var Tf=Id(Xf[If],Xf,Uf);if(Tf.type!=="throw"){var vf=Tf.arg,Gf=vf.value;return Gf&&qa(Gf)=="object"&&cd.call(Gf,"__await")?ih.resolve(Gf.__await).then(function(Jf){Zf("next",Jf,qf,Kf)},function(Jf){Zf("throw",Jf,qf,Kf)}):ih.resolve(Gf).then(function(Jf){vf.value=Jf,qf(vf)},function(Jf){return Zf("throw",Jf,qf,Kf)})}Kf(Tf.arg)}var jf;dd(this,"_invoke",{value:function(If,Uf){function qf(){return new ih(function(Kf,Tf){Zf(If,Uf,Kf,Tf)})}return jf=jf?jf.then(qf,qf):qf()}})}function gf(Xf,ih,Zf){var jf=kd;return function(If,Uf){if(jf===Fd)throw Error("Generator is already running");if(jf===Md){if(If==="throw")throw Uf;return{value:od,done:!0}}for(Zf.method=If,Zf.arg=Uf;;){var qf=Zf.delegate;if(qf){var Kf=Ef(qf,Zf);if(Kf){if(Kf===Ld)continue;return Kf}}if(Zf.method==="next")Zf.sent=Zf._sent=Zf.arg;else if(Zf.method==="throw"){if(jf===kd)throw jf=Md,Zf.arg;Zf.dispatchException(Zf.arg)}else Zf.method==="return"&&Zf.abrupt("return",Zf.arg);jf=Fd;var Tf=Id(Xf,ih,Zf);if(Tf.type==="normal"){if(jf=Zf.done?Md:jd,Tf.arg===Ld)continue;return{value:Tf.arg,done:Zf.done}}Tf.type==="throw"&&(jf=Md,Zf.method="throw",Zf.arg=Tf.arg)}}}function Ef(Xf,ih){var Zf=ih.method,jf=Xf.iterator[Zf];if(jf===od)return ih.delegate=null,Zf==="throw"&&Xf.iterator.return&&(ih.method="return",ih.arg=od,Ef(Xf,ih),ih.method==="throw")||Zf!=="return"&&(ih.method="throw",ih.arg=new TypeError("The iterator does not provide a '"+Zf+"' method")),Ld;var If=Id(jf,Xf.iterator,ih.arg);if(If.type==="throw")return ih.method="throw",ih.arg=If.arg,ih.delegate=null,Ld;var Uf=If.arg;return Uf?Uf.done?(ih[Xf.resultName]=Uf.value,ih.next=Xf.nextLoc,ih.method!=="return"&&
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function T(Ra){var qa=function(nd,od){if(P(nd)!="object"||!nd)return nd;var ld=nd[Symbol.toPrimitive];if(ld!==void 0){var ud=ld.call(nd,od||"default");if(P(ud)!="object")return ud;throw new TypeError("@@toPrimitive must return a primitive value.")}return(od==="string"?String:Number)(nd)}(Ra,"string");return P(qa)=="symbol"?qa:qa+""}function H(Ra,qa,nd){return(qa=T(qa))in Ra?Object.defineProperty(Ra,qa,{value:nd,enumerable:!0,configurable:!0,writable:!0}):Ra[qa]=nd,Ra}var G=defineComponent({name:"Saturation",props:{size:{type:Number,default:160},hue:{type:Number,default:0},saturation:{type:Number,default:0},value:{type:Number,default:0}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),background:"hsl(".concat(Ra.hue,", 100%, 50%)")}});return{saturationStyle:od,sliderStyle:computed(function(){return{top:"".concat((100-Ra.value)/100*Ra.size-5,"px"),left:"".concat(Ra.saturation*Ra.size/100-5,"px"),width:"".concat(10,"px"),height:"".concat(10,"px")}}),onSelect:function(ld){var ud=ld.target.getBoundingClientRect(),cd=ud.left,dd=ud.top,pd=function(md){var vd=md.clientX,Ad=md.clientY,Nd=vd-cd,Id=Ad-dd;Nd<0&&(Nd=0),Id<0&&(Id=0),Nd>Ra.size&&(Nd=Ra.size),Id>Ra.size&&(Id=Ra.size);var kd=Nd/Ra.size*100,jd=100-Id/Ra.size*100;nd("change",kd,jd)},fd=function(){document.removeEventListener("mousemove",pd),document.removeEventListener("mouseup",fd)};pd(ld),document.addEventListener("mousemove",pd),document.addEventListener("mouseup",fd)}}}});function V(Ra,qa){qa===void 0&&(qa={});var nd=qa.insertAt;if(Ra&&typeof document<"u"){var od=document.head||document.getElementsByTagName("head")[0],ld=document.createElement("style");ld.type="text/css",nd==="top"&&od.firstChild?od.insertBefore(ld,od.firstChild):od.appendChild(ld),ld.styleSheet?ld.styleSheet.cssText=Ra:ld.appendChild(document.createTextNode(Ra))}}V(".saturation[data-v-24517fec]{position:relative}.saturation-black[data-v-24517fec],.saturation-white[data-v-24517fec]{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.saturation-white[data-v-24517fec]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-black[data-v-24517fec]{background:linear-gradient(0deg,#000,transparent)}.slider[data-v-24517fec]{border:1px solid #fff;border-radius:50%;box-shadow:0 0 1px 1px rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;top:0;z-index:1}"),G.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",{class:"saturation",style:normalizeStyle(Ra.saturationStyle),onMousedown:qa[0]||(qa[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[qa[1]||(qa[1]=createBaseVNode("div",{class:"saturation-white"},null,-1)),qa[2]||(qa[2]=createBaseVNode("div",{class:"saturation-black"},null,-1)),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],36)},G.__scopeId="data-v-24517fec",G.__file="src/picker/Saturation.vue";var Y=defineComponent({name:"Hue",props:{width:{type:Number,default:15},height:{type:Number,default:160},hue:{type:Number,default:0}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{top:"".concat((1-Ra.hue/360)*Ra.height-2,"px"),height:"".concat(4,"px")}}),ld=ref$1();return onMounted(function(){(function(){ld.value.width=Ra.width,ld.value.height=Ra.height;var ud=ld.value.getContext("2d"),cd=ud.createLinearGradient(0,0,0,Ra.height);cd.addColorStop(0,"#FF0000"),cd.addColorStop(.17,"#FF00FF"),cd.addColorStop(.34,"#0000FF"),cd.addColorStop(.51,"#00FFFF"),cd.addColorStop(.68,"#00FF00"),cd.addColorStop(.17*5,"#FFFF00"),cd.addColorStop(1,"#FF0000"),ud.fillStyle=cd,ud.fillRect(0,0,Ra.width,Ra.height)})()}),{canvas:ld,sliderStyle:od,onSelect:function(ud){var cd=ud.target.getBoundingClientRect().top,dd=function(fd){var md=fd.clientY-cd;md<0&&(md=0),md>Ra.height&&(md=Ra.height);var vd=-100*md/Ra.height+100;nd("change",360*vd/100)},pd=function(){documen
${md}
`,"end"),dd(),od()}function fd(md){md||od(!1)}return(md,vd)=>{const Ad=_sfc_main$14,Nd=_sfc_main$1j;return openBlock(),createBlock(unref(_sfc_main$1b),{open:unref(nd).isShowInsertFormDialog,"onUpdate:open":fd},{default:withCtx(()=>[createVNode(unref(_sfc_main$1a),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$17),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$16),null,{default:withCtx(()=>vd[3]||(vd[3]=[createTextVNode("插入表格")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_1$5,[createVNode(unref(_sfc_main$n),{modelValue:ld.value,"onUpdate:modelValue":vd[0]||(vd[0]=Id=>ld.value=Id),min:1,max:100},{default:withCtx(()=>[createVNode(unref(_sfc_main$x),null,{default:withCtx(()=>vd[4]||(vd[4]=[createTextVNode("行数")])),_:1}),createVNode(unref(_sfc_main$m),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$l)),createVNode(unref(_sfc_main$j)),createVNode(unref(_sfc_main$k))]),_:1})]),_:1},8,["modelValue"]),createVNode(unref(_sfc_main$n),{modelValue:ud.value,"onUpdate:modelValue":vd[1]||(vd[1]=Id=>ud.value=Id),min:1,max:100},{default:withCtx(()=>[createVNode(unref(_sfc_main$x),null,{default:withCtx(()=>vd[5]||(vd[5]=[createTextVNode("列数")])),_:1}),createVNode(unref(_sfc_main$m),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$l)),createVNode(unref(_sfc_main$j)),createVNode(unref(_sfc_main$k))]),_:1})]),_:1},8,["modelValue"])]),createBaseVNode("div",_hoisted_2$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ld.value+1,Id=>(openBlock(),createElementBlock("div",{key:Id,class:normalizeClass([{"head-style":Id===1},"space-x-2 flex"])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ud.value,kd=>(openBlock(),createBlock(Ad,{key:kd,modelValue:cd.value[`k_${Id-1}_${kd-1}`],"onUpdate:modelValue":jd=>cd.value[`k_${Id-1}_${kd-1}`]=jd,class:normalizeClass({"bg-gray-100 dark:bg-gray-900":Id===1}),placeholder:Id===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","class","placeholder"]))),128))],2))),128))]),createVNode(unref(_sfc_main$18),null,{default:withCtx(()=>[createVNode(Nd,{variant:"outline",onClick:vd[2]||(vd[2]=Id=>unref(od)(!1))},{default:withCtx(()=>vd[6]||(vd[6]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(Nd,{onClick:pd},{default:withCtx(()=>vd[7]||(vd[7]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),_sfc_main$h=defineComponent({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,cd)=>(openBlock(),createBlock(unref(ah),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$g=defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:4},align:{},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","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:cd,...dd}=nd;return dd}),ud=xe$5(ld,od);return(cd,dd)=>(openBlock(),createBlock(unref(oh),null,{default:withCtx(()=>[createVNode(unref(lh),mergeProps(unref(ud),{class:unref(cn$4)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out 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",nd.class)}),{default:withCtx(()=>[renderSlot(cd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$f=defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boole
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()),od=useTemplateRef("formCustomTextarea"),ld=ref$1(null);onMounted(()=>{ld.value=markRaw(CodeMirror.fromTextArea(od.value,{mode:"javascript",theme:qa.isDark?"darcula":"xq-light",lineNumbers:!0})),nextTick$1(()=>{nextTick$1(()=>{var cd;(cd=ld.value)==null||cd.setValue(nd.value)})})});function ud(){const cd=ld.value.getValue();localStorage.setItem("formCustomConfig",cd),Ke$1.success("保存成功")}return(cd,dd)=>{const pd=_sfc_main$1j;return openBlock(),createElementBlock("div",_hoisted_1$3,[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("textarea",{ref_key:"formCustomTextarea",ref:od,placeholder:"Your custom code here."},null,512)]),createVNode(pd,{variant:"link",class:"p-0",href:"https://github.com/doocs/md#自定义上传逻辑",target:"_blank"},{default:withCtx(()=>dd[0]||(dd[0]=[createTextVNode(" 参数详情 ")])),_:1}),createVNode(pd,{class:"block",onClick:ud},{default:withCtx(()=>dd[1]||(dd[1]=[createTextVNode(" 保存配置 ")])),_:1})])}}}),_sfc_main$b=defineComponent({__name:"FormItem",props:{label:{},required:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",null,[createVNode(unref(_sfc_main$x),{class:"flex items-center"},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(["mr-4 min-h-4 w-[150px] flex-shrink-0 text-right font-bold",{required:qa.required}])},toDisplayString(qa.label),3),renderSlot(nd.$slots,"default",{},void 0,!0)]),_:3})]))}}),FormItem=_export_sfc(_sfc_main$b,[["__scopeId","data-v-2dfc19c6"]]),_sfc_main$a=defineComponent({__name:"Switch",props:{defaultChecked:{type:Boolean},checked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{},asChild:{type:Boolean},as:{},class:{}},emits:["update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:cd,...dd}=nd;return dd}),ud=xe$5(ld,od);return(cd,dd)=>(openBlock(),createBlock(unref(cg),mergeProps(unref(ud),{class:unref(cn$4)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",nd.class)}),{default:withCtx(()=>[createVNode(unref(pg),{class:normalizeClass(unref(cn$4)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5"))},{default:withCtx(()=>[renderSlot(cd.$slots,"thumb")]),_:3},8,["class"])]),_:3},16,["class"]))}}),_hoisted_1$2={class:"space-y-4"},_hoisted_2$1={class:"space-y-4"},_hoisted_3$1={class:"space-y-4"},_hoisted_4$1={class:"space-y-4"},_hoisted_5$1={class:"space-y-4"},_hoisted_6$1={class:"space-y-4"},_hoisted_7={class:"flex flex-col items-start"},_sfc_main$9=defineComponent({__name:"UploadImgDialog",emits:["uploadImage"],setup(Ra,{emit:qa}){const nd=qa,od=useDisplayStore(),ld=ref$1({repo:"",branch:"",accessToken:""}),ud=ref$1({accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:"",useSSL:!0}),cd=ref$1({secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""}),dd=ref$1({accessKey:"",secretKey:"",bucket:"",domain:"",region:"",path:""}),pd=ref$1({endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""}),fd=ref$1({proxyOrigin:"",appID:"",appsecret:""}),md=ref$1(window.location.href.startsWith("http")),vd=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"mp",label:"公众号图床"},{value:"formCustom",label:"自定义代码"}],Ad=ref$1("default"),Nd=ref$1("upload");onBeforeMount(()=>{localStorage.getItem("githubConfig")&&(ld.value=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(ud.value=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(cd.value=JSON.parse(loc
`).forEach(function(cd){ld=cd.indexOf(":"),nd=cd.substring(0,ld).trim().toLowerCase(),od=cd.substring(ld+1).trim(),!(!nd||qa[nd]&&ignoreDuplicateOf[nd])&&(nd==="set-cookie"?qa[nd]?qa[nd].push(od):qa[nd]=[od]:qa[nd]=qa[nd]?qa[nd]+", "+od:od)}),qa},$internals=Symbol("internals");function normalizeHeader(Ra){return Ra&&String(Ra).trim().toLowerCase()}function normalizeValue(Ra){return Ra===!1||Ra==null?Ra:utils$2.isArray(Ra)?Ra.map(normalizeValue):String(Ra)}function parseTokens(Ra){const qa=Object.create(null),nd=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let od;for(;od=nd.exec(Ra);)qa[od[1]]=od[2];return qa}const isValidHeaderName=Ra=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Ra.trim());function matchHeaderValue(Ra,qa,nd,od,ld){if(utils$2.isFunction(od))return od.call(this,qa,nd);if(ld&&(qa=nd),!!utils$2.isString(qa)){if(utils$2.isString(od))return qa.indexOf(od)!==-1;if(utils$2.isRegExp(od))return od.test(qa)}}function formatHeader(Ra){return Ra.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(qa,nd,od)=>nd.toUpperCase()+od)}function buildAccessors(Ra,qa){const nd=utils$2.toCamelCase(" "+qa);["get","set","has"].forEach(od=>{Object.defineProperty(Ra,od+nd,{value:function(ld,ud,cd){return this[od].call(this,qa,ld,ud,cd)},configurable:!0})})}class AxiosHeaders{constructor(qa){qa&&this.set(qa)}set(qa,nd,od){const ld=this;function ud(dd,pd,fd){const md=normalizeHeader(pd);if(!md)throw new Error("header name must be a non-empty string");const vd=utils$2.findKey(ld,md);(!vd||ld[vd]===void 0||fd===!0||fd===void 0&&ld[vd]!==!1)&&(ld[vd||pd]=normalizeValue(dd))}const cd=(dd,pd)=>utils$2.forEach(dd,(fd,md)=>ud(fd,md,pd));if(utils$2.isPlainObject(qa)||qa instanceof this.constructor)cd(qa,nd);else if(utils$2.isString(qa)&&(qa=qa.trim())&&!isValidHeaderName(qa))cd(parseHeaders(qa),nd);else if(utils$2.isHeaders(qa))for(const[dd,pd]of qa.entries())ud(pd,dd,od);else qa!=null&&ud(nd,qa,od);return this}get(qa,nd){if(qa=normalizeHeader(qa),qa){const od=utils$2.findKey(this,qa);if(od){const ld=this[od];if(!nd)return ld;if(nd===!0)return parseTokens(ld);if(utils$2.isFunction(nd))return nd.call(this,ld,od);if(utils$2.isRegExp(nd))return nd.exec(ld);throw new TypeError("parser must be boolean|regexp|function")}}}has(qa,nd){if(qa=normalizeHeader(qa),qa){const od=utils$2.findKey(this,qa);return!!(od&&this[od]!==void 0&&(!nd||matchHeaderValue(this,this[od],od,nd)))}return!1}delete(qa,nd){const od=this;let ld=!1;function ud(cd){if(cd=normalizeHeader(cd),cd){const dd=utils$2.findKey(od,cd);dd&&(!nd||matchHeaderValue(od,od[dd],dd,nd))&&(delete od[dd],ld=!0)}}return utils$2.isArray(qa)?qa.forEach(ud):ud(qa),ld}clear(qa){const nd=Object.keys(this);let od=nd.length,ld=!1;for(;od--;){const ud=nd[od];(!qa||matchHeaderValue(this,this[ud],ud,qa,!0))&&(delete this[ud],ld=!0)}return ld}normalize(qa){const nd=this,od={};return utils$2.forEach(this,(ld,ud)=>{const cd=utils$2.findKey(od,ud);if(cd){nd[cd]=normalizeValue(ld),delete nd[ud];return}const dd=qa?formatHeader(ud):String(ud).trim();dd!==ud&&delete nd[ud],nd[dd]=normalizeValue(ld),od[dd]=!0}),this}concat(...qa){return this.constructor.concat(this,...qa)}toJSON(qa){const nd=Object.create(null);return utils$2.forEach(this,(od,ld)=>{od!=null&&od!==!1&&(nd[ld]=qa&&utils$2.isArray(od)?od.join(", "):od)}),nd}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([qa,nd])=>qa+": "+nd).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(qa){return qa instanceof this?qa:new this(qa)}static concat(qa,...nd){const od=new this(qa);return nd.forEach(ld=>od.set(ld)),od}static accessor(qa){const od=(this[$internals]=this[$internals]={accessors:{}}).accessors,ld=this.prototype;function ud(cd){const dd=normalizeHeader(cd);od[dd]||(buildAccessors(ld,cd),od[dd]=!0)}return utils$2.isArray(qa)?qa.forEach(ud):ud(qa),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$2.reduceDescriptors(AxiosHeaders.prototype,({value:Ra},qa)=>{let nd=qa[0].toUpperCase()+qa.slice(1);return{get:()=>Ra,set(od){this[nd]=od}}});utils$2.freezeMethods(AxiosHeaders);function transformData(Ra,qa){const nd=this||defaults$1,od=qa||nd,ld=AxiosHeaders.from(od.headers);let ud=od.data;return utils$2.forEach(Ra,function(dd){ud=dd.call(nd,ud,ld.normalize(),qa?qa.status:void 0)}),ld.normalize(),ud}function isCancel(Ra){return!!(Ra&&Ra.__CANCEL__)}function CanceledError(Ra,qa,nd){AxiosError.call(this,Ra??"canceled",AxiosError.ERR_CANCELED,qa,nd),this.name="CanceledError"}utils$2.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ra,qa,nd){const od=nd.config.validateStatus;!nd.status||!od||od(nd.status)?Ra(nd):qa(new AxiosError("Request failed with status code "+nd.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(nd.status/100)-4],nd.config,nd.request,nd))}function parseProtocol(Ra){const qa=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Ra);return qa&&qa[1]||""}function speedometer(Ra,qa){Ra=Ra||10;const nd=new Array(Ra),od=new Array(Ra);let ld=0,ud=0,cd;return qa=qa!==void 0?qa:1e3,function(pd){const fd=Date.now(),md=od[ud];cd||(cd=fd),nd[ld]=pd,od[ld]=fd;let vd=ud,Ad=0;for(;vd!==ld;)Ad+=nd[vd++],vd=vd%Ra;if(ld=(ld+1)%Ra,ld===ud&&(ud=(ud+1)%Ra),fd-cd<qa)return;const Nd=md&&fd-md;return Nd?Math.round(Ad*1e3/Nd):void 0}}function throttle(Ra,qa){let nd=0,od=1e3/qa,ld,ud;const cd=(fd,md=Date.now())=>{nd=md,ld=null,ud&&(clearTimeout(ud),ud=null),Ra.apply(null,fd)};return[(...fd)=>{const md=Date.now(),vd=md-nd;vd>=od?cd(fd,md):(ld=fd,ud||(ud=setTimeout(()=>{ud=null,cd(ld)},od-vd)))},()=>ld&&cd(ld)]}const progressEventReducer=(Ra,qa,nd=3)=>{let od=0;const ld=speedometer(50,250);return throttle(ud=>{const cd=ud.loaded,dd=ud.lengthComputable?ud.total:void 0,pd=cd-od,fd=ld(pd),md=cd<=dd;od=cd;const vd={loaded:cd,total:dd,progress:dd?cd/dd:void 0,bytes:pd,rate:fd||void 0,estimated:fd&&dd&&md?(dd-cd)/fd:void 0,event:ud,lengthComputable:dd!=null,[qa?"download":"upload"]:!0};Ra(vd)},nd)},progressEventDecorator=(Ra,qa)=>{const nd=Ra!=null;return[od=>qa[0]({lengthComputable:nd,total:Ra,loaded:od}),qa[1]]},asyncDecorator=Ra=>(...qa)=>utils$2.asap(()=>Ra(...qa)),isURLSameOrigin=platform.hasStandardBrowserEnv?((Ra,qa)=>nd=>(nd=new URL(nd,platform.origin),Ra.protocol===nd.protocol&&Ra.host===nd.host&&(qa||Ra.port===nd.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(Ra,qa,nd,od,ld,ud){const cd=[Ra+"="+encodeURIComponent(qa)];utils$2.isNumber(nd)&&cd.push("expires="+new Date(nd).toGMTString()),utils$2.isString(od)&&cd.push("path="+od),utils$2.isString(ld)&&cd.push("domain="+ld),ud===!0&&cd.push("secure"),document.cookie=cd.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+\-.]*:)?\/\//i.test(Ra)}function combineURLs(Ra,qa){return qa?Ra.replace(/\/?\/$/,"")+"/"+qa.replace(/^\/+/,""):Ra}function buildFullPath(Ra,qa){return Ra&&!isAbsoluteURL(qa)?combineURLs(Ra,qa):qa}const headersToObject=Ra=>Ra instanceof AxiosHeaders?{...Ra}:Ra;function mergeConfig(Ra,qa){qa=qa||{};const nd={};function od(fd,md,vd,Ad){return utils$2.isPlainObject(fd)&&utils$2.isPlainObject(md)?utils$2.merge.call({caseless:Ad},fd,md):utils$2.isPlainObject(md)?utils$2
`+ud.map(renderReason).join(`
`):" "+renderReason(ud[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+cd,"ERR_NOT_SUPPORT")}return od},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$1.adapter)(Ra).then(function(od){return throwIfCancellationRequested(Ra),od.data=transformData.call(Ra,Ra.transformResponse,od),od.headers=AxiosHeaders.from(od.headers),od},function(od){return isCancel(od)||(throwIfCancellationRequested(Ra),od&&od.response&&(od.response.data=transformData.call(Ra,Ra.transformResponse,od.response),od.response.headers=AxiosHeaders.from(od.response.headers))),Promise.reject(od)})}const VERSION="1.7.8",validators$1={};["object","boolean","number","function","string","symbol"].forEach((Ra,qa)=>{validators$1[Ra]=function(od){return typeof od===Ra||"a"+(qa<1?"n ":" ")+Ra}});const deprecatedWarnings={};validators$1.transitional=function(qa,nd,od){function ld(ud,cd){return"[Axios v"+VERSION+"] Transitional option '"+ud+"'"+cd+(od?". "+od:"")}return(ud,cd,dd)=>{if(qa===!1)throw new AxiosError(ld(cd," has been removed"+(nd?" in "+nd:"")),AxiosError.ERR_DEPRECATED);return nd&&!deprecatedWarnings[cd]&&(deprecatedWarnings[cd]=!0,console.warn(ld(cd," has been deprecated since v"+nd+" and will be removed in the near future"))),qa?qa(ud,cd,dd):!0}};validators$1.spelling=function(qa){return(nd,od)=>(console.warn(`${od} is likely a misspelling of ${qa}`),!0)};function assertOptions(Ra,qa,nd){if(typeof Ra!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const od=Object.keys(Ra);let ld=od.length;for(;ld-- >0;){const ud=od[ld],cd=qa[ud];if(cd){const dd=Ra[ud],pd=dd===void 0||cd(dd,ud,Ra);if(pd!==!0)throw new AxiosError("option "+ud+" must be "+pd,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(nd!==!0)throw new AxiosError("Unknown option "+ud,AxiosError.ERR_BAD_OPTION)}}const validator$3={assertOptions,validators:validators$1},validators=validator$3.validators;class Axios{constructor(qa){this.defaults=qa,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(qa,nd){try{return await this._request(qa,nd)}catch(od){if(od instanceof Error){let ld={};Error.captureStackTrace?Error.captureStackTrace(ld):ld=new Error;const ud=ld.stack?ld.stack.replace(/^.+\n/,""):"";try{od.stack?ud&&!String(od.stack).endsWith(ud.replace(/^.+\n.+\n/,""))&&(od.stack+=`
`+ud):od.stack=ud}catch{}}throw od}}_request(qa,nd){typeof qa=="string"?(nd=nd||{},nd.url=qa):nd=qa||{},nd=mergeConfig(this.defaults,nd);const{transitional:od,paramsSerializer:ld,headers:ud}=nd;od!==void 0&&validator$3.assertOptions(od,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ld!=null&&(utils$2.isFunction(ld)?nd.paramsSerializer={serialize:ld}:validator$3.assertOptions(ld,{encode:validators.function,serialize:validators.function},!0)),validator$3.assertOptions(nd,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),nd.method=(nd.method||this.defaults.method||"get").toLowerCase();let cd=ud&&utils$2.merge(ud.common,ud[nd.method]);ud&&utils$2.forEach(["delete","get","head","post","put","patch","common"],Id=>{delete ud[Id]}),nd.headers=AxiosHeaders.concat(cd,ud);const dd=[];let pd=!0;this.interceptors.request.forEach(function(kd){typeof kd.runWhen=="function"&&kd.runWhen(nd)===!1||(pd=pd&&kd.synchronous,dd.unshift(kd.fulfilled,kd.rejected))});const fd=[];this.interceptors.response.forEach(function(kd){fd.push(kd.fulfilled,kd.rejected)});let md,vd=0,Ad;if(!pd){const Id=[dispatchRequest.bind(this),void 0];for(Id.unshift.apply(Id,dd),Id.push.apply(Id,fd),Ad=Id.length,md=Promise.resolve(nd);vd<Ad;)md=md.then(Id[vd++],Id[vd++]);return md}Ad=dd.length;let Nd=nd;for(vd=0;vd<Ad;){const Id=dd[vd++],kd=dd[vd++];try{Nd=Id(Nd)}catch(jd){kd.call(this,jd);break}}try{md=dispatchRequest.call(this,Nd)}catch(Id){return Promise.reject(Id)}for(vd=0,Ad=fd.length;vd<Ad;)md=md.then(fd[vd++],fd[vd++]);return md}getUri(qa){qa=mergeConfig(this.defaults,qa);const nd=buildFullPath(qa.baseURL,qa.url);return buildURL(nd,qa.params,qa.paramsSerializer)}}utils$2.forEach(["delete","get","head","options"],function(qa){Axios.prototype[qa]=function(nd,od){return this.request(mergeConfig(od||{},{method:qa,url:nd,data:(od||{}).data}))}});utils$2.forEach(["post","put","patch"],function(qa){function nd(od){return function(ud,cd,dd){return this.request(mergeConfig(dd||{},{method:qa,headers:od?{"Content-Type":"multipart/form-data"}:{},url:ud,data:cd}))}}Axios.prototype[qa]=nd(),Axios.prototype[qa+"Form"]=nd(!0)});class CancelToken{constructor(qa){if(typeof qa!="function")throw new TypeError("executor must be a function.");let nd;this.promise=new Promise(function(ud){nd=ud});const od=this;this.promise.then(ld=>{if(!od._listeners)return;let ud=od._listeners.length;for(;ud-- >0;)od._listeners[ud](ld);od._listeners=null}),this.promise.then=ld=>{let ud;const cd=new Promise(dd=>{od.subscribe(dd),ud=dd}).then(ld);return cd.cancel=function(){od.unsubscribe(ud)},cd},qa(function(ud,cd,dd){od.reason||(od.reason=new CanceledError(ud,cd,dd),nd(od.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 nd=this._listeners.indexOf(qa);nd!==-1&&this._listeners.splice(nd,1)}toAbortSignal(){const qa=new AbortController,nd=od=>{qa.abort(od)};return this.subscribe(nd),qa.signal.unsubscribe=()=>this.unsubscribe(nd),qa.signal}static source(){let qa;return{token:new CancelToken(function(ld){qa=ld}),cancel:qa}}}function spread(Ra){return function(nd){return Ra.apply(null,nd)}}function isAxiosError(Ra){return utils$2.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,Len
`).forEach(function(Fd){if(Fd){var Md=Fd.indexOf(":"),Ld=Fd.substr(0,Md).trim().toLowerCase(),Hd=Fd.substr(Md+1).trim();kd[Ld]=Hd}}),{error:Ad,statusCode:Nd.status,statusMessage:Nd.statusText,headers:kd,body:Id}},fd=function(Ad,Nd){return!Nd&&Nd==="text"?Ad.responseText:Ad.response},md=function(Ad,Nd){var Id=(Ad.method||"GET").toUpperCase(),kd=Ad.url;if(Ad.qs){var jd=dd(Ad.qs);jd&&(kd+=(kd.indexOf("?")===-1?"?":"&")+jd)}var Fd=new XMLHttpRequest;if(Fd.open(Id,kd,!0),Fd.responseType=Ad.dataType||"text",Ad.xhrFields)for(var Md in Ad.xhrFields)Fd[Md]=Ad.xhrFields[Md];var Ld=Ad.headers;if(Ld)for(var Hd in Ld)Ld.hasOwnProperty(Hd)&&Hd.toLowerCase()!=="content-length"&&Hd.toLowerCase()!=="user-agent"&&Hd.toLowerCase()!=="origin"&&Hd.toLowerCase()!=="host"&&Fd.setRequestHeader(Hd,Ld[Hd]);return Ad.onProgress&&Fd.upload&&(Fd.upload.onprogress=Ad.onProgress),Ad.onDownloadProgress&&(Fd.onprogress=Ad.onDownloadProgress),Ad.timeout&&(Fd.timeout=Ad.timeout),Fd.ontimeout=function(Gd){var Vd=new Error("timeout");Nd(pd(Vd,Fd))},Fd.onload=function(){Nd(pd(null,Fd,fd(Fd,Ad.dataType)))},Fd.onerror=function(Gd){var Vd=fd(Fd,Ad.dataType);if(Vd)Nd(pd(null,Fd,Vd));else{var Qd=Fd.statusText;!Qd&&Fd.status===0&&(Qd=new Error("CORS blocked or network error")),Nd(pd(Qd,Fd,Vd))}},Fd.send(Ad.body||""),Fd};nd.exports=md},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(nd,od){function ld(ud,cd){if(!(ud instanceof cd))throw new TypeError("Cannot call a class as a function")}nd.exports=ld,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function cd(pd,fd){for(var md=0;md<fd.length;md++){var vd=fd[md];vd.enumerable=vd.enumerable||!1,vd.configurable=!0,"value"in vd&&(vd.writable=!0),Object.defineProperty(pd,ud(vd.key),vd)}}function dd(pd,fd,md){return fd&&cd(pd.prototype,fd),md&&cd(pd,md),Object.defineProperty(pd,"prototype",{writable:!1}),pd}nd.exports=dd,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/typeof.js").default;function cd(dd,pd){if(ud(dd)!=="object"||dd===null)return dd;var fd=dd[Symbol.toPrimitive];if(fd!==void 0){var md=fd.call(dd,pd||"default");if(ud(md)!=="object")return md;throw new TypeError("@@toPrimitive must return a primitive value.")}return(pd==="string"?String:Number)(dd)}nd.exports=cd,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/typeof.js").default,cd=ld("./node_modules/@babel/runtime/helpers/toPrimitive.js");function dd(pd){var fd=cd(pd,"string");return ud(fd)==="symbol"?fd:String(fd)}nd.exports=dd,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(nd,od){function ld(ud){"@babel/helpers - typeof";return nd.exports=ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(cd){return typeof cd}:function(cd){return cd&&typeof Symbol=="function"&&cd.constructor===Symbol&&cd!==Symbol.prototype?"symbol":typeof cd},nd.exports.__esModule=!0,nd.exports.default=nd.exports,ld(ud)}nd.exports=ld,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(nd,od,ld){const ud=ld("./node_modules/fast-xml-parser/src/validator.js"),cd=ld("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),dd=ld("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");nd.exports={XMLParser:cd,XMLValidator:ud,XMLBuilder:dd}},"./node_modules/fast-xml-parser/src/util.js":function(nd,od,ld){const ud=":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",cd=ud+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",dd="["+ud+"]["+cd+"]*",pd=new RegExp("^"+dd+"$"),fd=function(vd,Ad){const Nd=[];l
`&&Vd[Kd]!=="\r";Kd++)Ef+=Vd[Kd];if(Ef=Ef.trim(),Ef[Ef.length-1]==="/"&&(Ef=Ef.substring(0,Ef.length-1),Kd--),!Ld(Ef)){let Af;return Ef.trim().length===0?Af="Invalid space after '<'.":Af="Tag '"+Ef+"' is an invalid name.",Fd("InvalidTag",Af,Hd(Vd,Kd))}const yf=Ad(Vd,Kd);if(yf===!1)return Fd("InvalidAttr","Attributes for '"+Ef+"' have open quote.",Hd(Vd,Kd));let xf=yf.value;if(Kd=yf.index,xf[xf.length-1]==="/"){const Af=Kd-xf.length;xf=xf.substring(0,xf.length-1);const Lf=Id(xf,Qd);if(Lf===!0)Yd=!0;else return Fd(Lf.err.code,Lf.err.msg,Hd(Vd,Af+Lf.err.line))}else if(gf)if(yf.tagClosed){if(xf.trim().length>0)return Fd("InvalidTag","Closing tag '"+Ef+"' can't have attributes or invalid starting.",Hd(Vd,bf));if(mf.length===0)return Fd("InvalidTag","Closing tag '"+Ef+"' has not been opened.",Hd(Vd,bf));{const Af=mf.pop();if(Ef!==Af.tagName){let Lf=Hd(Vd,Af.tagStartPos);return Fd("InvalidTag","Expected closing tag '"+Af.tagName+"' (opened in line "+Lf.line+", col "+Lf.col+") instead of closing tag '"+Ef+"'.",Hd(Vd,bf))}mf.length==0&&(Zd=!0)}}else return Fd("InvalidTag","Closing tag '"+Ef+"' doesn't have proper closing.",Hd(Vd,Kd));else{const Af=Id(xf,Qd);if(Af!==!0)return Fd(Af.err.code,Af.err.msg,Hd(Vd,Kd-xf.length+Af.err.line));if(Zd===!0)return Fd("InvalidXml","Multiple possible root nodes found.",Hd(Vd,Kd));Qd.unpairedTags.indexOf(Ef)!==-1||mf.push({tagName:Ef,tagStartPos:bf}),Yd=!0}for(Kd++;Kd<Vd.length;Kd++)if(Vd[Kd]==="<")if(Vd[Kd+1]==="!"){Kd++,Kd=fd(Vd,Kd);continue}else if(Vd[Kd+1]==="?"){if(Kd=pd(Vd,++Kd),Kd.err)return Kd}else break;else if(Vd[Kd]==="&"){const Af=jd(Vd,Kd);if(Af==-1)return Fd("InvalidChar","char '&' is not expected.",Hd(Vd,Kd));Kd=Af}else if(Zd===!0&&!dd(Vd[Kd]))return Fd("InvalidXml","Extra text at the end",Hd(Vd,Kd));Vd[Kd]==="<"&&Kd--}}else{if(dd(Vd[Kd]))continue;return Fd("InvalidChar","char '"+Vd[Kd]+"' is not expected.",Hd(Vd,Kd))}if(Yd){if(mf.length==1)return Fd("InvalidTag","Unclosed tag '"+mf[0].tagName+"'.",Hd(Vd,mf[0].tagStartPos));if(mf.length>0)return Fd("InvalidXml","Invalid '"+JSON.stringify(mf.map(Kd=>Kd.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Fd("InvalidXml","Start tag expected.",1);return!0};function dd(Vd){return Vd===" "||Vd===" "||Vd===`
`||Vd==="\r"}function pd(Vd,Qd){const mf=Qd;for(;Qd<Vd.length;Qd++)if(Vd[Qd]=="?"||Vd[Qd]==" "){const Yd=Vd.substr(mf,Qd-mf);if(Qd>5&&Yd==="xml")return Fd("InvalidXml","XML declaration allowed only at the start of the document.",Hd(Vd,Qd));if(Vd[Qd]=="?"&&Vd[Qd+1]==">"){Qd++;break}else continue}return Qd}function fd(Vd,Qd){if(Vd.length>Qd+5&&Vd[Qd+1]==="-"&&Vd[Qd+2]==="-"){for(Qd+=3;Qd<Vd.length;Qd++)if(Vd[Qd]==="-"&&Vd[Qd+1]==="-"&&Vd[Qd+2]===">"){Qd+=2;break}}else if(Vd.length>Qd+8&&Vd[Qd+1]==="D"&&Vd[Qd+2]==="O"&&Vd[Qd+3]==="C"&&Vd[Qd+4]==="T"&&Vd[Qd+5]==="Y"&&Vd[Qd+6]==="P"&&Vd[Qd+7]==="E"){let mf=1;for(Qd+=8;Qd<Vd.length;Qd++)if(Vd[Qd]==="<")mf++;else if(Vd[Qd]===">"&&(mf--,mf===0))break}else if(Vd.length>Qd+9&&Vd[Qd+1]==="["&&Vd[Qd+2]==="C"&&Vd[Qd+3]==="D"&&Vd[Qd+4]==="A"&&Vd[Qd+5]==="T"&&Vd[Qd+6]==="A"&&Vd[Qd+7]==="["){for(Qd+=8;Qd<Vd.length;Qd++)if(Vd[Qd]==="]"&&Vd[Qd+1]==="]"&&Vd[Qd+2]===">"){Qd+=2;break}}return Qd}const md='"',vd="'";function Ad(Vd,Qd){let mf="",Yd="",Zd=!1;for(;Qd<Vd.length;Qd++){if(Vd[Qd]===md||Vd[Qd]===vd)Yd===""?Yd=Vd[Qd]:Yd!==Vd[Qd]||(Yd="");else if(Vd[Qd]===">"&&Yd===""){Zd=!0;break}mf+=Vd[Qd]}return Yd!==""?!1:{value:mf,index:Qd,tagClosed:Zd}}const Nd=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Id(Vd,Qd){const mf=ud.getAllMatches(Vd,Nd),Yd={};for(let Zd=0;Zd<mf.length;Zd++){if(mf[Zd][1].length===0)return Fd("InvalidAttr","Attribute '"+mf[Zd][2]+"' has no space in starting.",Gd(mf[Zd]));if(mf[Zd][3]!==void 0&&mf[Zd][4]===void 0)return Fd("InvalidAttr","Attribute '"+mf[Zd][2]+"' is without value.",Gd(mf[Zd]));if(mf[Zd][3]===void 0&&!Qd.allowBooleanAttributes)return Fd("InvalidAttr","boolean attribute '"+mf[Zd][2]+"' is not allowed.",Gd(mf[Zd]));const Kd=mf[Zd][2];if(!Md(Kd))return Fd("InvalidAttr","Attribute '"+Kd+"' is an invalid name.",Gd(mf[Zd]));if(!Yd.hasOwnProperty(Kd))Yd[Kd]=1;else return Fd("InvalidAttr","Attribute '"+Kd+"' is repeated.",Gd(mf[Zd]))}return!0}function kd(Vd,Qd){let mf=/\d/;for(Vd[Qd]==="x"&&(Qd++,mf=/[\da-fA-F]/);Qd<Vd.length;Qd++){if(Vd[Qd]===";")return Qd;if(!Vd[Qd].match(mf))break}return-1}function jd(Vd,Qd){if(Qd++,Vd[Qd]===";")return-1;if(Vd[Qd]==="#")return Qd++,kd(Vd,Qd);let mf=0;for(;Qd<Vd.length;Qd++,mf++)if(!(Vd[Qd].match(/\w/)&&mf<20)){if(Vd[Qd]===";")break;return-1}return Qd}function Fd(Vd,Qd,mf){return{err:{code:Vd,msg:Qd,line:mf.line||mf,col:mf.col}}}function Md(Vd){return ud.isName(Vd)}function Ld(Vd){return ud.isName(Vd)}function Hd(Vd,Qd){const mf=Vd.substring(0,Qd).split(/\r?\n/);return{line:mf.length,col:mf[mf.length-1].length+1}}function Gd(Vd){return Vd.startIndex+Vd[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(nd,od,ld){const ud=ld("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),cd={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(vd,Ad){return Ad},attributeValueProcessor:function(vd,Ad){return Ad},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 dd(vd){this.options=Object.assign({},cd,vd),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=md),this.processTextOrObjNode=pd,this.options.format?(this.indentate=fd,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}dd.prototype.build=function(vd){return this.options.preserveOrder?ud(vd,this.options):(Array.isArray(vd)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(vd={[this.options.arrayNodeName]:vd}),this.j2x(vd,0).val)},dd.prototype.j2x=function(vd,Ad){let Nd="",Id="";for(let kd in vd)if(Object.prototype.hasOwnProperty.call(vd,kd))if(typeof vd[kd]>"u")this.isAttribute(kd)&&(Id+="");else if(vd[kd]===null)this.isAttribute(kd)?Id+="":kd[0]==="?"?Id+=this.indentate(Ad)+"<"+kd+"?"+this.tagEndChar:Id+=this.indentate(Ad)+"<"+kd+"/"+this.tagEndChar;else if(vd[kd]instanceof Date)Id+=this.buildTextValNode(vd[kd],kd,"",Ad);else if(typeof vd[kd]!="object"){const jd=this.isAttribute(kd);if(jd)Nd+=this.buildAttrPairStr(jd,""+vd[kd]);else if(kd===this.options.textNodeName){let Fd=this.options.tagValueProcessor(kd,""+vd[kd]);Id+=this.replaceEntitiesValue(Fd)}else Id+=this.buildTextValNode(vd[kd],kd,"",Ad)}else if(Array.isArray(vd[kd])){const jd=vd[kd].length;let Fd="";for(let Md=0;Md<jd;Md++){const Ld=vd[kd][Md];typeof Ld>"u"||(Ld===null?kd[0]==="?"?Id+=this.indentate(Ad)+"<"+kd+"?"+this.tagEndChar:Id+=this.indentate(Ad)+"<"+kd+"/"+this.tagEndChar:typeof Ld=="object"?this.options.oneListGroup?Fd+=this.j2x(Ld,Ad+1).val:Fd+=this.processTextOrObjNode(Ld,kd,Ad):Fd+=this.buildTextValNode(Ld,kd,"",Ad))}this.options.oneListGroup&&(Fd=this.buildObjectNode(Fd,kd,"",Ad)),Id+=Fd}else if(this.options.attributesGroupName&&kd===this.options.attributesGroupName){const jd=Object.keys(vd[kd]),Fd=jd.length;for(let Md=0;Md<Fd;Md++)Nd+=this.buildAttrPairStr(jd[Md],""+vd[kd][jd[Md]])}else Id+=this.processTextOrObjNode(vd[kd],kd,Ad);return{attrStr:Nd,val:Id}},dd.prototype.buildAttrPairStr=function(vd,Ad){return Ad=this.options.attributeValueProcessor(vd,""+Ad),Ad=this.replaceEntitiesValue(Ad),this.options.suppressBooleanAttributes&&Ad==="true"?" "+vd:" "+vd+'="'+Ad+'"'};function pd(vd,Ad,Nd){const Id=this.j2x(vd,Nd+1);return vd[this.options.textNodeName]!==void 0&&Object.keys(vd).length===1?this.buildTextValNode(vd[this.options.textNodeName],Ad,Id.attrStr,Nd):this.buildObjectNode(Id.val,Ad,Id.attrStr,Nd)}dd.prototype.buildObjectNode=function(vd,Ad,Nd,Id){if(vd==="")return Ad[0]==="?"?this.indentate(Id)+"<"+Ad+Nd+"?"+this.tagEndChar:this.indentate(Id)+"<"+Ad+Nd+this.closeTag(Ad)+this.tagEndChar;{let kd="</"+Ad+this.tagEndChar,jd="";return Ad[0]==="?"&&(jd="?",kd=""),(Nd||Nd==="")&&vd.indexOf("<")===-1?this.indentate(Id)+"<"+Ad+Nd+jd+">"+vd+kd:this.options.commentPropName!==!1&&Ad===this.options.commentPropName&&jd.length===0?this.indentate(Id)+`<!--${vd}-->`+this.newLine:this.indentate(Id)+"<"+Ad+Nd+jd+this.tagEndChar+vd+this.indentate(Id)+kd}},dd.prototype.closeTag=function(vd){let Ad="";return this.options.unpairedTags.indexOf(vd)!==-1?this.options.suppressUnpairedNode||(Ad="/"):this.options.suppressEmptyNode?Ad="/":Ad=`></${vd}`,Ad},dd.prototype.buildTextValNode=function(vd,Ad,Nd,Id){if(this.options.cdataPropName!==!1&&Ad===this.options.cdataPropName)return this.indentate(Id)+`<![CDATA[${vd}]]>`+this.newLine;if(this.options.commentPropName!==!1&&Ad===this.options.commentPropName)return this.indentate(Id)+`<!--${vd}-->`+this.newLine;if(Ad[0]==="?")return this.indentate(Id)+"<"+Ad+Nd+"?"+this.tagEndChar;{let kd=this.options.tagValueProcessor(Ad,vd);return kd=this.replaceEntitiesValue(kd),kd===""?this.indentate(Id)+"<"+Ad+Nd+this.closeTag(Ad)+this.tagEndChar:this.indentate(Id)+"<"+Ad+Nd+">"+kd+"</"+Ad+this.tagEndChar}},dd.prototype.replaceEntitiesValue=function(vd){if(vd&&vd.length>0&&this.options.processEntities)for(let Ad=0;Ad<this.options.entities.length;Ad++){const Nd=this.options.entities[Ad];vd=vd.replace(Nd.regex,Nd.val)}return vd};function fd(vd){return this.options.indentBy.repeat(vd)}function md(vd){return vd.startsWith(this.options.attributeNamePrefix)&&vd!==this.options.textNodeName?vd.substr(this.attrPrefixLen):!1}nd.exports=dd},"./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js":function(nd,od){const ld=`
`;function ud(vd,Ad){let Nd="";return Ad.format&&Ad.indentBy.length>0&&(Nd=ld),cd(vd,Ad,"",Nd)}function cd(vd,Ad,Nd,Id){let kd="",jd=!1;for(let Fd=0;Fd<vd.length;Fd++){const Md=vd[Fd],Ld=dd(Md);if(Ld===void 0)continue;let Hd="";if(Nd.length===0?Hd=Ld:Hd=`${Nd}.${Ld}`,Ld===Ad.textNodeName){let Yd=Md[Ld];fd(Hd,Ad)||(Yd=Ad.tagValueProcessor(Ld,Yd),Yd=md(Yd,Ad)),jd&&(kd+=Id),kd+=Yd,jd=!1;continue}else if(Ld===Ad.cdataPropName){jd&&(kd+=Id),kd+=`<![CDATA[${Md[Ld][0][Ad.textNodeName]}]]>`,jd=!1;continue}else if(Ld===Ad.commentPropName){kd+=Id+`<!--${Md[Ld][0][Ad.textNodeName]}-->`,jd=!0;continue}else if(Ld[0]==="?"){const Yd=pd(Md[":@"],Ad),Zd=Ld==="?xml"?"":Id;let Kd=Md[Ld][0][Ad.textNodeName];Kd=Kd.length!==0?" "+Kd:"",kd+=Zd+`<${Ld}${Kd}${Yd}?>`,jd=!0;continue}let Gd=Id;Gd!==""&&(Gd+=Ad.indentBy);const Vd=pd(Md[":@"],Ad),Qd=Id+`<${Ld}${Vd}`,mf=cd(Md[Ld],Ad,Hd,Gd);Ad.unpairedTags.indexOf(Ld)!==-1?Ad.suppressUnpairedNode?kd+=Qd+">":kd+=Qd+"/>":(!mf||mf.length===0)&&Ad.suppressEmptyNode?kd+=Qd+"/>":mf&&mf.endsWith(">")?kd+=Qd+`>${mf}${Id}</${Ld}>`:(kd+=Qd+">",mf&&Id!==""&&(mf.includes("/>")||mf.includes("</"))?kd+=Id+Ad.indentBy+mf+Id:kd+=mf,kd+=`</${Ld}>`),jd=!0}return kd}function dd(vd){const Ad=Object.keys(vd);for(let Nd=0;Nd<Ad.length;Nd++){const Id=Ad[Nd];if(vd.hasOwnProperty(Id)&&Id!==":@")return Id}}function pd(vd,Ad){let Nd="";if(vd&&!Ad.ignoreAttributes)for(let Id in vd){if(!vd.hasOwnProperty(Id))continue;let kd=Ad.attributeValueProcessor(Id,vd[Id]);kd=md(kd,Ad),kd===!0&&Ad.suppressBooleanAttributes?Nd+=` ${Id.substr(Ad.attributeNamePrefix.length)}`:Nd+=` ${Id.substr(Ad.attributeNamePrefix.length)}="${kd}"`}return Nd}function fd(vd,Ad){vd=vd.substr(0,vd.length-Ad.textNodeName.length-1);let Nd=vd.substr(vd.lastIndexOf(".")+1);for(let Id in Ad.stopNodes)if(Ad.stopNodes[Id]===vd||Ad.stopNodes[Id]==="*."+Nd)return!0;return!1}function md(vd,Ad){if(vd&&vd.length>0&&Ad.processEntities)for(let Nd=0;Nd<Ad.entities.length;Nd++){const Id=Ad.entities[Nd];vd=vd.replace(Id.regex,Id.val)}return vd}nd.exports=ud},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(nd,od,ld){const ud=ld("./node_modules/fast-xml-parser/src/util.js");function cd(Id,kd){const jd={};if(Id[kd+3]==="O"&&Id[kd+4]==="C"&&Id[kd+5]==="T"&&Id[kd+6]==="Y"&&Id[kd+7]==="P"&&Id[kd+8]==="E"){kd=kd+9;let Fd=1,Md=!1,Ld=!1,Hd="";for(;kd<Id.length;kd++)if(Id[kd]==="<"&&!Ld){if(Md&&fd(Id,kd))kd+=7,[entityName,val,kd]=dd(Id,kd+1),val.indexOf("&")===-1&&(jd[Nd(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(Md&&md(Id,kd))kd+=8;else if(Md&&vd(Id,kd))kd+=8;else if(Md&&Ad(Id,kd))kd+=9;else if(pd)Ld=!0;else throw new Error("Invalid DOCTYPE");Fd++,Hd=""}else if(Id[kd]===">"){if(Ld?Id[kd-1]==="-"&&Id[kd-2]==="-"&&(Ld=!1,Fd--):Fd--,Fd===0)break}else Id[kd]==="["?Md=!0:Hd+=Id[kd];if(Fd!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:jd,i:kd}}function dd(Id,kd){let jd="";for(;kd<Id.length&&Id[kd]!=="'"&&Id[kd]!=='"';kd++)jd+=Id[kd];if(jd=jd.trim(),jd.indexOf(" ")!==-1)throw new Error("External entites are not supported");const Fd=Id[kd++];let Md="";for(;kd<Id.length&&Id[kd]!==Fd;kd++)Md+=Id[kd];return[jd,Md,kd]}function pd(Id,kd){return Id[kd+1]==="!"&&Id[kd+2]==="-"&&Id[kd+3]==="-"}function fd(Id,kd){return Id[kd+1]==="!"&&Id[kd+2]==="E"&&Id[kd+3]==="N"&&Id[kd+4]==="T"&&Id[kd+5]==="I"&&Id[kd+6]==="T"&&Id[kd+7]==="Y"}function md(Id,kd){return Id[kd+1]==="!"&&Id[kd+2]==="E"&&Id[kd+3]==="L"&&Id[kd+4]==="E"&&Id[kd+5]==="M"&&Id[kd+6]==="E"&&Id[kd+7]==="N"&&Id[kd+8]==="T"}function vd(Id,kd){return Id[kd+1]==="!"&&Id[kd+2]==="A"&&Id[kd+3]==="T"&&Id[kd+4]==="T"&&Id[kd+5]==="L"&&Id[kd+6]==="I"&&Id[kd+7]==="S"&&Id[kd+8]==="T"}function Ad(Id,kd){return Id[kd+1]==="!"&&Id[kd+2]==="N"&&Id[kd+3]==="O"&&Id[kd+4]==="T"&&Id[kd+5]==="A"&&Id[kd+6]==="T"&&Id[kd+7]==="I"&&Id[kd+8]==="O"&&Id[kd+9]==="N"}function Nd(Id){if(ud.isName(Id))return Id;throw new Error(`Invalid entity name ${Id}`)}nd.exports=cd},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(nd,od){const ld={preserveOrd
`);const Zd=new cd("!xml");let Kd=Zd,bf="",gf="";for(let Ef=0;Ef<Yd.length;Ef++)if(Yd[Ef]==="<")if(Yd[Ef+1]==="/"){const xf=Gd(Yd,">",Ef,"Closing Tag is not closed.");let Af=Yd.substring(Ef+2,xf).trim();if(this.options.removeNSPrefix){const ih=Af.indexOf(":");ih!==-1&&(Af=Af.substr(ih+1))}this.options.transformTagName&&(Af=this.options.transformTagName(Af)),Kd&&(bf=this.saveTextToParentTag(bf,Kd,gf));const Lf=gf.substring(gf.lastIndexOf(".")+1);if(Af&&this.options.unpairedTags.indexOf(Af)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${Af}>`);let Xf=0;Lf&&this.options.unpairedTags.indexOf(Lf)!==-1?(Xf=gf.lastIndexOf(".",gf.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Xf=gf.lastIndexOf("."),gf=gf.substring(0,Xf),Kd=this.tagsNodeStack.pop(),bf="",Ef=xf}else if(Yd[Ef+1]==="?"){let xf=Vd(Yd,Ef,!1,"?>");if(!xf)throw new Error("Pi Tag is not closed.");if(bf=this.saveTextToParentTag(bf,Kd,gf),!(this.options.ignoreDeclaration&&xf.tagName==="?xml"||this.options.ignorePiTags)){const Af=new cd(xf.tagName);Af.add(this.options.textNodeName,""),xf.tagName!==xf.tagExp&&xf.attrExpPresent&&(Af[":@"]=this.buildAttributesMap(xf.tagExp,gf,xf.tagName)),this.addChild(Kd,Af,gf)}Ef=xf.closeIndex+1}else if(Yd.substr(Ef+1,3)==="!--"){const xf=Gd(Yd,"-->",Ef+4,"Comment is not closed.");if(this.options.commentPropName){const Af=Yd.substring(Ef+4,xf-2);bf=this.saveTextToParentTag(bf,Kd,gf),Kd.add(this.options.commentPropName,[{[this.options.textNodeName]:Af}])}Ef=xf}else if(Yd.substr(Ef+1,2)==="!D"){const xf=dd(Yd,Ef);this.docTypeEntities=xf.entities,Ef=xf.i}else if(Yd.substr(Ef+1,2)==="!["){const xf=Gd(Yd,"]]>",Ef,"CDATA is not closed.")-2,Af=Yd.substring(Ef+9,xf);bf=this.saveTextToParentTag(bf,Kd,gf);let Lf=this.parseTextData(Af,Kd.tagname,gf,!0,!1,!0,!0);Lf==null&&(Lf=""),this.options.cdataPropName?Kd.add(this.options.cdataPropName,[{[this.options.textNodeName]:Af}]):Kd.add(this.options.textNodeName,Lf),Ef=xf+2}else{let xf=Vd(Yd,Ef,this.options.removeNSPrefix),Af=xf.tagName;const Lf=xf.rawTagName;let Xf=xf.tagExp,ih=xf.attrExpPresent,Zf=xf.closeIndex;this.options.transformTagName&&(Af=this.options.transformTagName(Af)),Kd&&bf&&Kd.tagname!=="!xml"&&(bf=this.saveTextToParentTag(bf,Kd,gf,!1));const jf=Kd;if(jf&&this.options.unpairedTags.indexOf(jf.tagname)!==-1&&(Kd=this.tagsNodeStack.pop(),gf=gf.substring(0,gf.lastIndexOf("."))),Af!==Zd.tagname&&(gf+=gf?"."+Af:Af),this.isItStopNode(this.options.stopNodes,gf,Af)){let If="";if(Xf.length>0&&Xf.lastIndexOf("/")===Xf.length-1)Af[Af.length-1]==="/"?(Af=Af.substr(0,Af.length-1),gf=gf.substr(0,gf.length-1),Xf=Af):Xf=Xf.substr(0,Xf.length-1),Ef=xf.closeIndex;else if(this.options.unpairedTags.indexOf(Af)!==-1)Ef=xf.closeIndex;else{const qf=this.readStopNodeData(Yd,Lf,Zf+1);if(!qf)throw new Error(`Unexpected end of ${Lf}`);Ef=qf.i,If=qf.tagContent}const Uf=new cd(Af);Af!==Xf&&ih&&(Uf[":@"]=this.buildAttributesMap(Xf,gf,Af)),If&&(If=this.parseTextData(If,Af,gf,!0,ih,!0,!0)),gf=gf.substr(0,gf.lastIndexOf(".")),Uf.add(this.options.textNodeName,If),this.addChild(Kd,Uf,gf)}else{if(Xf.length>0&&Xf.lastIndexOf("/")===Xf.length-1){Af[Af.length-1]==="/"?(Af=Af.substr(0,Af.length-1),gf=gf.substr(0,gf.length-1),Xf=Af):Xf=Xf.substr(0,Xf.length-1),this.options.transformTagName&&(Af=this.options.transformTagName(Af));const If=new cd(Af);Af!==Xf&&ih&&(If[":@"]=this.buildAttributesMap(Xf,gf,Af)),this.addChild(Kd,If,gf),gf=gf.substr(0,gf.lastIndexOf("."))}else{const If=new cd(Af);this.tagsNodeStack.push(Kd),Af!==Xf&&ih&&(If[":@"]=this.buildAttributesMap(Xf,gf,Af)),this.addChild(Kd,If,gf),Kd=If}bf="",Ef=Zf}}else bf+=Yd[Ef];return Zd.child};function jd(Yd,Zd,Kd){const bf=this.options.updateTag(Zd.tagname,Kd,Zd[":@"]);bf===!1||(typeof bf=="string"&&(Zd.tagname=bf),Yd.addChild(Zd))}const Fd=function(Yd){if(this.options.processEntities){for(let Zd in this.docTypeEntities){const Kd=this.docTypeEntities[Zd];Yd=Yd.replace(Kd.regx,Kd.val)}for(let Zd in this.lastEntities){const Kd=this.lastEntities[Zd];Yd=Yd.replace(Kd.regex,Kd.val)}if(this.options.htmlEntities)for(let Zd in this.htmlEntities){const Kd=this.htm
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Zh=!0,_m=!1,Um;return{s:function(){ch=ch.call(Rf)},n:function(){var r_=ch.next();return Zh=r_.done,r_},e:function(r_){_m=!0,Um=r_},f:function(){try{!Zh&&ch.return!=null&&ch.return()}finally{if(_m)throw Um}}}}function pd(Rf,wf){if(Rf){if(typeof Rf=="string")return fd(Rf,wf);var ch=Object.prototype.toString.call(Rf).slice(8,-1);if(ch==="Object"&&Rf.constructor&&(ch=Rf.constructor.name),ch==="Map"||ch==="Set")return Array.from(Rf);if(ch==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ch))return fd(Rf,wf)}}function fd(Rf,wf){(wf==null||wf>Rf.length)&&(wf=Rf.length);for(var ch=0,yh=new Array(wf);ch<wf;ch++)yh[ch]=Rf[ch];return yh}var md=ld("./lib/md5.js"),vd=ld("./lib/crypto.js"),Ad=ld("./node_modules/fast-xml-parser/src/fxp.js"),Nd=Ad.XMLParser,Id=Ad.XMLBuilder,kd=new Nd({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),jd=new Id,Fd=ld("./lib/base64.js"),Md=ld("./src/tracker.js"),Ld=function(wf){var ch=kd.parse(wf);return ch},Hd=function(wf){var ch=jd.build(wf);return ch};function Gd(Rf){return encodeURIComponent(Rf).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function Vd(Rf,wf){var ch=[];for(var yh in Rf)Rf.hasOwnProperty(yh)&&ch.push(wf?Gd(yh).toLowerCase():yh);return ch.sort(function(Uh,Zh){return Uh=Uh.toLowerCase(),Zh=Zh.toLowerCase(),Uh===Zh?0:Uh>Zh?1:-1})}var Qd=function(wf,ch){var yh,Uh,Zh,_m=[],Um=Vd(wf);for(yh=0;yh<Um.length;yh++)Uh=Um[yh],Zh=wf[Uh]===void 0||wf[Uh]===null?"":""+wf[Uh],Uh=ch?Gd(Uh).toLowerCase():Gd(Uh),Zh=Gd(Zh)||"",_m.push(Uh+"="+Zh);return _m.join("&")},mf=["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"],Yd=function(wf){var ch={};for(var yh in wf){var Uh=yh.toLowerCase();(Uh.indexOf("x-cos-")>-1||mf.indexOf(Uh)>-1)&&(ch[yh]=wf[yh])}return ch},Zd=function(wf){wf=wf||{};var ch=wf.SecretId,yh=wf.SecretKey,Uh=wf.KeyTime,Zh=(wf.method||wf.Method||"get").toLowerCase(),_m=If(wf.Query||wf.params||{}),Um=Yd(If(wf.Headers||wf.headers||{})),Om=wf.Key||"",r_;wf.UseRawKey?r_=wf.Pathname||wf.pathname||"/"+Om:(r_=wf.Pathname||wf.pathname||Om,r_.indexOf("/")!==0&&(r_="/"+r_));var Xm=wf.ForceSignHost!==!1;if(!Um.Host&&!Um.host&&wf.Bucket&&wf.Region&&Xm&&(Um.Host=wf.Bucket+".cos."+wf.Region+".myqcloud.com"),!ch)throw new Error("missing param SecretId");if(!yh)throw new Error("missing param SecretKey");var s_=Math.round(Wf(wf.SystemClockOffset)/1e3)-1,b_=s_,H_=wf.Expires||wf.expires;H_===void 0?b_+=900:b_+=H_*1||0;var x_="sha1",M_=ch,h_=Uh||s_+";"+b_,tg=Uh||s_+";"+b_,L_=Vd(Um,!0).join(";").toLowerCase(),dg=Vd(_m,!0).join(";").toLowerCase(),yg=vd.HmacSHA1(tg,yh).toString(),q_=[Zh,r_,ph.obj2str(_m,!0),ph.obj2str(Um,!0),""].join(`
`),Y_=["sha1",h_,vd.SHA1(q_).toString(),""].join(`
`),Qm=vd.HmacSHA1(Y_,yg).toString(),Zg=["q-sign-algorithm="+x_,"q-ak="+M_,"q-sign-time="+h_,"q-key-time="+tg,"q-header-list="+L_,"q-url-param-list="+dg,"q-signature="+Qm].join("&");return Zg},Kd=function(wf,ch,yh){var Uh=ch/8,Zh=wf.slice(yh,yh+Uh);return new Uint8Array(Zh).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[ch](Zh)[0]},bf=function(wf,ch,yh,Uh){var Zh=wf.slice(ch,yh),_m="";return new Uint8Array(Zh).forEach(function(Um){_m+=String.fromCharCode(Um)}),Uh&&(_m=decodeURIComponent(escape(_m))),_m},gf=function(wf){for(var ch={},yh=bf(wf),Uh={records:[]};wf.byteLength;){var Zh=Kd(wf,32,0),_m=Kd(wf,32,4),Um=Zh-_m-16,Om=0,r_;for(wf=wf.slice(12);Om<_m;){var Xm=Kd(wf,8,Om),s_=bf(wf,Om+1,Om+1+Xm),b_=Kd(wf,16,Om+Xm+2),H_=bf(wf,Om+Xm+4,Om+Xm+4+b_);ch[s_]=H_,Om+=Xm+4+b_}if(ch[":event-type"]==="Records")r_=bf(wf,Om,Om+Um,!0),Uh.records.push(r_);else if(ch[":event-type"]==="Stats")r_=bf(wf,Om,Om+Um,!0),Uh.stats=ph.xml2json(r_).Stats;else if(ch[":event-type"]==="error"){var x_=ch[":error-code"],M_=ch[":error-message"],h_=new Error(M_);h_.message=M_,h_.name=h_.code=x_,Uh.error=h_}wf=wf.slice(Om+Um+4)}return{payload:Uh.records.join(""),body:yh}},Ef=function(wf){var ch=this.options.CopySourceParser;if(ch)return ch(wf);var yh=wf.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return yh?{Bucket:yh[1],Region:yh[3],Key:yh[7]}:null},yf=function(){},xf=function(wf){var ch={};for(var yh in wf)wf.hasOwnProperty(yh)&&wf[yh]!==void 0&&wf[yh]!==null&&(ch[yh]=wf[yh]);return ch},Af=function(wf,ch){var yh,Uh=new FileReader;FileReader.prototype.readAsBinaryString?(yh=FileReader.prototype.readAsBinaryString,Uh.onload=function(){ch(this.result)}):FileReader.prototype.readAsArrayBuffer?yh=function(_m){var Um="",Om=new FileReader;Om.onload=function(r_){for(var Xm=new Uint8Array(Om.result),s_=Xm.byteLength,b_=0;b_<s_;b_++)Um+=String.fromCharCode(Xm[b_]);ch(Um)},Om.readAsArrayBuffer(_m)}:console.error("FileReader not support readAsBinaryString"),yh.call(Uh,wf)},Lf=function(){var Rf=function(yh,Uh){yh=yh.split("."),Uh=Uh.split(".");for(var Zh=0;Zh<Uh.length;Zh++)if(yh[Zh]!==Uh[Zh])return parseInt(yh[Zh])>parseInt(Uh[Zh])?1:-1;return 0},wf=function(yh){if(!yh)return!1;var Uh=(yh.match(/Chrome\/([.\d]+)/)||[])[1],Zh=(yh.match(/QBCore\/([.\d]+)/)||[])[1],_m=(yh.match(/QQBrowser\/([.\d]+)/)||[])[1],Um=Uh&&Rf(Uh,"53.0.2785.116")<0&&Zh&&Rf(Zh,"3.53.991.400")<0&&_m&&Rf(_m,"9.0.2524.400")<=0||!1;return Um};return wf(typeof navigator<"u"&&navigator.userAgent)}(),Xf=function(wf,ch,yh,Uh,Zh){var _m;if(wf.slice?_m=wf.slice(ch,yh):wf.mozSlice?_m=wf.mozSlice(ch,yh):wf.webkitSlice&&(_m=wf.webkitSlice(ch,yh)),Uh&&Lf){var Um=new FileReader;Um.onload=function(Om){_m=null,Zh(new Blob([Um.result]))},Um.readAsArrayBuffer(_m)}else Zh(_m)},ih=function(wf,ch,yh,Uh){yh=yh||yf,wf?typeof ch=="string"?yh(ph.md5(ch,!0)):Blob&&ch instanceof Blob?ph.getFileMd5(ch,function(Zh,_m){yh(_m)},Uh):yh():yh()},Zf=1024*1024,jf=function(wf,ch,yh){var Uh=wf.size,Zh=0,_m=md.getCtx(),Um=function Om(r_){if(r_>=Uh){var Xm=_m.digest("hex");ch(null,Xm);return}var s_=Math.min(Uh,r_+Zf);ph.fileSlice(wf,r_,s_,!1,function(b_){Af(b_,function(H_){b_=null,_m=_m.update(H_,!0),Zh+=H_.length,H_=null,yh&&yh({loaded:Zh,total:Uh,percent:Math.round(Zh/Uh*1e4)/1e4}),Om(r_+Zf)})})};Um(0)};function If(Rf){return Jf(Rf,function(wf){return cd(wf)==="object"&&wf!==null?If(wf):wf})}function Uf(Rf,wf,ch){return Rf&&wf in Rf?Rf[wf]:ch}function qf(Rf,wf){return Gf(wf,function(ch,yh){Rf[yh]=wf[yh]}),Rf}function Kf(Rf){return Rf instanceof Array}function Tf(Rf,wf){for(var ch=!1,yh=0;yh<Rf.length;yh++)if(wf===Rf[yh]){ch=!0;break}return ch}function vf(Rf){return Kf(Rf)?Rf:[Rf]}function Gf(Rf,wf){for(var ch in Rf)Rf.hasOwnProperty(ch)&&wf(Rf[ch],ch)}function Jf(Rf,wf){var ch=Kf(Rf)?[]:{};for(var yh in Rf)Rf.hasOwnProperty(yh)&&(ch[yh]=wf(Rf[yh],yh));return ch}function gh(Rf,wf){var ch=Kf(Rf),yh=ch?[]:{};for(var Uh in Rf)Rf.hasOwnProperty(Uh)&&wf(Rf[Uh],Uh)&&(ch?yh.push(Rf[Uh]):yh[Uh]=Rf[Uh]);return yh}var th=function(wf){var ch,yh,Uh,Zh="";for(ch=0,yh=wf.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(od){var ld=nd,ud=ld.lib,cd=ud.WordArray,dd=ud.Hasher,pd=ld.algo,fd=cd.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]),md=cd.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]),vd=cd.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]),Ad=cd.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]),Nd=cd.create([0,1518500249,1859775393,2400959708,2840853838]),Id=cd.create([1352829926,1548603684,1836072691,2053994217,0]),kd=pd.RIPEMD160=dd.extend({_doReset:function(){this._hash=cd.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Vd,Qd){for(var mf=0;mf<16;mf++){var Yd=Qd+mf,Zd=Vd[Yd];Vd[Yd]=(Zd<<8|Zd>>>24)&16711935|(Zd<<24|Zd>>>8)&4278255360}var Kd=this._hash.words,bf=Nd.words,gf=Id.words,Ef=fd.words,yf=md.words,xf=vd.words,Af=Ad.words,Lf,Xf,ih,Zf,jf,If,Uf,qf,Kf,Tf;If=Lf=Kd[0],Uf=Xf=Kd[1],qf=ih=Kd[2],Kf=Zf=Kd[3],Tf=jf=Kd[4];for(var vf,mf=0;mf<80;mf+=1)vf=Lf+Vd[Qd+Ef[mf]]|0,mf<16?vf+=jd(Xf,ih,Zf)+bf[0]:mf<32?vf+=Fd(Xf,ih,Zf)+bf[1]:mf<48?vf+=Md(Xf,ih,Zf)+bf[2]:mf<64?vf+=Ld(Xf,ih,Zf)+bf[3]:vf+=Hd(Xf,ih,Zf)+bf[4],vf=vf|0,vf=Gd(vf,xf[mf]),vf=vf+jf|0,Lf=jf,jf=Zf,Zf=Gd(ih,10),ih=Xf,Xf=vf,vf=If+Vd[Qd+yf[mf]]|0,mf<16?vf+=Hd(Uf,qf,Kf)+gf[0]:mf<32?vf+=Ld(Uf,qf,Kf)+gf[1]:mf<48?vf+=Md(Uf,qf,Kf)+gf[2]:mf<64?vf+=Fd(Uf,qf,Kf)+gf[3]:vf+=jd(Uf,qf,Kf)+gf[4],vf=vf|0,vf=Gd(vf,Af[mf]),vf=vf+Tf|0,If=Tf,Tf=Kf,Kf=Gd(qf,10),qf=Uf,Uf=vf;vf=Kd[1]+ih+Kf|0,Kd[1]=Kd[2]+Zf+Tf|0,Kd[2]=Kd[3]+jf+If|0,Kd[3]=Kd[4]+Lf+Uf|0,Kd[4]=Kd[0]+Xf+qf|0,Kd[0]=vf},_doFinalize:function(){var Vd=this._data,Qd=Vd.words,mf=this._nDataBytes*8,Yd=Vd.sigBytes*8;Qd[Yd>>>5]|=128<<24-Yd%32,Qd[(Yd+64>>>9<<4)+14]=(mf<<8|mf>>>24)&16711935|(mf<<24|mf>>>8)&4278255360,Vd.sigBytes=(Qd.length+1)*4,this._process();for(var Zd=this._hash,Kd=Zd.words,bf=0;bf<5;bf++){var gf=Kd[bf];Kd[bf]=(gf<<8|gf>>>24)&16711935|(gf<<24|gf>>>8)&4278255360}return Zd},clone:function(){var Vd=dd.clone.call(this);return Vd._hash=this._hash.clone(),Vd}});function jd(Vd,Qd,mf){return Vd^Qd^mf}function Fd(Vd,Qd,mf){return Vd&Qd|~Vd&mf}function Md(Vd,Qd,mf){return(Vd|~Qd)^mf}function Ld(Vd,Qd,mf){return Vd&mf|Qd&~mf}function Hd(Vd,Qd,mf){return Vd^(Qd|~mf)}function Gd(Vd,Qd){return Vd<<Qd|Vd>>>32-Qd}ld.RIPEMD160=dd._createHelper(kd),ld.HmacRIPEMD160=dd._createHmacHelper(kd)}(),nd.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){(function(){var od=nd,ld=od.lib,ud=ld.Base,cd=od.enc,dd=cd.Utf8,pd=od.algo;pd.HMAC=ud.extend({init:function(fd,md){fd=this._hasher=new fd.init,typeof md=="string"&&(md=dd.parse(md));var vd=fd.blockSize,Ad=vd*4;md.sigBytes>Ad&&(md=fd.finalize(md)),md.clamp();for(var Nd=this._oKey=md.clone(),Id=this._iKey=md.clone(),kd=Nd.words,jd=Id.words,Fd=0;Fd<vd;Fd++)kd[Fd]^=1549556828,jd[Fd]^=909522486;Nd.sigBytes=Id.sigBytes=Ad,this.reset()},reset:function(){var fd=this._hasher;fd.reset(),fd.update(this._iKey)},update:function(fd){return this._hasher.update(fd),this},finalize:function(fd){var md=this._hasher,vd=md.finalize(fd);md.reset();var Ad=md.finalize(this._oKey.clone().concat(vd));return Ad}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireSha256(),requireHmac())})(commonjsGlobal,function(nd){retu
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return nd.mode.CTRGladman=function(){var od=nd.lib.BlockCipherMode.extend();function ld(dd){if((dd>>24&255)===255){var pd=dd>>16&255,fd=dd>>8&255,md=dd&255;pd===255?(pd=0,fd===255?(fd=0,md===255?md=0:++md):++fd):++pd,dd=0,dd+=pd<<16,dd+=fd<<8,dd+=md}else dd+=1<<24;return dd}function ud(dd){return(dd[0]=ld(dd[0]))===0&&(dd[1]=ld(dd[1])),dd}var cd=od.Encryptor=od.extend({processBlock:function(dd,pd){var fd=this._cipher,md=fd.blockSize,vd=this._iv,Ad=this._counter;vd&&(Ad=this._counter=vd.slice(0),this._iv=void 0),ud(Ad);var Nd=Ad.slice(0);fd.encryptBlock(Nd,0);for(var Id=0;Id<md;Id++)dd[pd+Id]^=Nd[Id]}});return od.Decryptor=cd,od}(),nd.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.mode.OFB=function(){var od=nd.lib.BlockCipherMode.extend(),ld=od.Encryptor=od.extend({processBlock:function(ud,cd){var dd=this._cipher,pd=dd.blockSize,fd=this._iv,md=this._keystream;fd&&(md=this._keystream=fd.slice(0),this._iv=void 0),dd.encryptBlock(md,0);for(var vd=0;vd<pd;vd++)ud[cd+vd]^=md[vd]}});return od.Decryptor=ld,od}(),nd.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.mode.ECB=function(){var od=nd.lib.BlockCipherMode.extend();return od.Encryptor=od.extend({processBlock:function(ld,ud){this._cipher.encryptBlock(ld,ud)}}),od.Decryptor=od.extend({processBlock:function(ld,ud){this._cipher.decryptBlock(ld,ud)}}),od}(),nd.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.AnsiX923={pad:function(od,ld){var ud=od.sigBytes,cd=ld*4,dd=cd-ud%cd,pd=ud+dd-1;od.clamp(),od.words[pd>>>2]|=dd<<24-pd%4*8,od.sigBytes+=dd},unpad:function(od){var ld=od.words[od.sigBytes-1>>>2]&255;od.sigBytes-=ld}},nd.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.Iso10126={pad:function(od,ld){var ud=ld*4,cd=ud-od.sigBytes%ud;od.concat(nd.lib.WordArray.random(cd-1)).concat(nd.lib.WordArray.create([cd<<24],1))},unpad:function(od){var ld=od.words[od.sigBytes-1>>>2]&255;od.sigBytes-=ld}},nd.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.Iso97971={pad:function(od,ld){od.concat(nd.lib.WordArray.create([2147483648],1)),nd.pad.ZeroPadding.pad(od,ld)},unpad:function(od){nd.pad.ZeroPadding.unpad(od),od.sigBytes--}},nd.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.ZeroPadding={pad:function(od,ld){var ud=ld*4;od.clamp(),od.sigBytes+=ud-(od.sigBytes%ud||ud)},unpad:function(od){for(var ld=od.words,ud=od.sigBytes-1,ud=od.sigBytes-1;ud>=0;ud--)if(ld[ud>>>2]>>>24-ud%4*8&255){od.sigBytes=ud+1;break}}},nd.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(),nd=ieee754,od=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=dd,Ra.SlowBuffer=Md,Ra.INSPECT_MAX_BYTES=50;var ld=2147483647;Ra.kMaxLength=ld,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{var Qf=new Uint8Array(1),Nf={foo:function(){return 42}};return Object.setPrototypeOf(Nf,Uint8Array.prototype),Object.setPrototypeOf(Qf,Nf),Qf.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(Qf){if(Qf>ld)throw new RangeError('The value "'+Qf+'" is invalid for option "size"');var Nf=new Uint8Array(Qf);return Object.setPrototypeOf(Nf,dd.prototype),Nf}function dd(Qf,Nf,$f){if(typeof Qf=="number"){if(typeof Nf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vd(Qf)}return pd(Qf,Nf,$f)}dd.poolSize=8192;function pd(Qf,Nf,$f){if(typeof Qf=="string")return Ad(Qf,Nf);if(ArrayBuffer.isView(Qf))return Id(Qf);if(Qf==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Qf);if(Pf(Qf,ArrayBuffer)||Qf&&Pf(Qf.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pf(Qf,SharedArrayBuffer)||Qf&&Pf(Qf.buffer,SharedArrayBuffer)))return kd(Qf,Nf,$f);if(typeof Qf=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Wf=Qf.valueOf&&Qf.valueOf();if(Wf!=null&&Wf!==Qf)return dd.from(Wf,Nf,$f);var vh=jd(Qf);if(vh)return vh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Qf[Symbol.toPrimitive]=="function")return dd.from(Qf[Symbol.toPrimitive]("string"),Nf,$f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Qf)}dd.from=function(Qf,Nf,$f){return pd(Qf,Nf,$f)},Object.setPrototypeOf(dd.prototype,Uint8Array.prototype),Object.setPrototypeOf(dd,Uint8Array);function fd(Qf){if(typeof Qf!="number")throw new TypeError('"size" argument must be of type number');if(Qf<0)throw new RangeError('The value "'+Qf+'" is invalid for option "size"')}function md(Qf,Nf,$f){return fd(Qf),Qf<=0?cd(Qf):Nf!==void 0?typeof $f=="string"?cd(Qf).fill(Nf,$f):cd(Qf).fill(Nf):cd(Qf)}dd.alloc=function(Qf,Nf,$f){return md(Qf,Nf,$f)};function vd(Qf){return fd(Qf),cd(Qf<0?0:Fd(Qf)|0)}dd.allocUnsafe=function(Qf){return vd(Qf)},dd.allocUnsafeSlow=function(Qf){return vd(Qf)};function Ad(Qf,Nf){if((typeof Nf!="string"||Nf==="")&&(Nf="utf8"),!dd.isEncoding(Nf))throw new TypeError("Unknown encoding: "+Nf);var $f=Ld(Qf,Nf)|0,Wf=cd($f),vh=Wf.write(Qf,Nf);return vh!==$f&&(Wf=Wf.slice(0,vh)),Wf}function Nd(Qf){for(var Nf=Qf.length<0?0:Fd(Qf.length)|0,$f=cd(Nf),Wf=0;Wf<Nf;Wf+=1)$f[Wf]=Qf[Wf]&255;return $f}function Id(Qf){if(Pf(Qf,Uint8Array)){var Nf=new Uint8Array(Qf);return kd(Nf.buffer,Nf.byteOffset,Nf.byteLength)}return Nd(Qf)}function kd(Qf,Nf,$f){if(Nf<0||Qf.byteLength<Nf)throw new RangeError('"offset" is outside of buffer bounds');if(Qf.byteLength<Nf+($f||0))throw new RangeError('"length" is outside of buffer bounds');var Wf;return Nf===void 0&&$f===void 0?Wf=new Uint8Array(Qf):$f===void 0?Wf=new Uint8Array(Qf,Nf):Wf=new Uint8Array(Qf,Nf,$f),Object.setPrototypeOf(Wf,dd.prototype),Wf}function jd(Qf){if(dd.isBuffer(Qf)){var Nf=Fd(Qf.length)|0,$f=cd(Nf);return $f.length===0||Qf.copy($f,0,0,Nf),$f}if(Qf.length!==void 0)return typeof Qf.length!="number"||uh(Qf.length)?cd(0):Nd(Qf);if(Qf.type==="Buffer"&&Array.isArray(Qf.data))return Nd(Qf.data)}function Fd(Qf){if(Qf>=ld)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ld.toStri
`)>-1&&(Gf?gh=gh.split(`
`).map(function(Pf){return" "+Pf}).join(`
`).slice(2):gh=`
`+gh.split(`
`).map(function(Pf){return" "+Pf}).join(`
`))):gh=Uf.stylize("[Circular]","special")),Yd(Jf)){if(Gf&&vf.match(/^\d+$/))return gh;Jf=JSON.stringify(""+vf),Jf.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Jf=Jf.slice(1,-1),Jf=Uf.stylize(Jf,"name")):(Jf=Jf.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Jf=Uf.stylize(Jf,"string"))}return Jf+": "+gh}function Fd(Uf,qf,Kf){var Tf=Uf.reduce(function(vf,Gf){return Gf.indexOf(`
`)>=0,vf+Gf.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Tf>60?Kf[0]+(qf===""?"":qf+`
`)+" "+Uf.join(`,
`)+" "+Kf[1]:Kf[0]+qf+" "+Uf.join(", ")+" "+Kf[1]}Ra.types=types;function Md(Uf){return Array.isArray(Uf)}Ra.isArray=Md;function Ld(Uf){return typeof Uf=="boolean"}Ra.isBoolean=Ld;function Hd(Uf){return Uf===null}Ra.isNull=Hd;function Gd(Uf){return Uf==null}Ra.isNullOrUndefined=Gd;function Vd(Uf){return typeof Uf=="number"}Ra.isNumber=Vd;function Qd(Uf){return typeof Uf=="string"}Ra.isString=Qd;function mf(Uf){return typeof Uf=="symbol"}Ra.isSymbol=mf;function Yd(Uf){return Uf===void 0}Ra.isUndefined=Yd;function Zd(Uf){return Kd(Uf)&&xf(Uf)==="[object RegExp]"}Ra.isRegExp=Zd,Ra.types.isRegExp=Zd;function Kd(Uf){return typeof Uf=="object"&&Uf!==null}Ra.isObject=Kd;function bf(Uf){return Kd(Uf)&&xf(Uf)==="[object Date]"}Ra.isDate=bf,Ra.types.isDate=bf;function gf(Uf){return Kd(Uf)&&(xf(Uf)==="[object Error]"||Uf instanceof Error)}Ra.isError=gf,Ra.types.isNativeError=gf;function Ef(Uf){return typeof Uf=="function"}Ra.isFunction=Ef;function yf(Uf){return Uf===null||typeof Uf=="boolean"||typeof Uf=="number"||typeof Uf=="string"||typeof Uf=="symbol"||typeof Uf>"u"}Ra.isPrimitive=yf,Ra.isBuffer=isBufferBrowser;function xf(Uf){return Object.prototype.toString.call(Uf)}function Af(Uf){return Uf<10?"0"+Uf.toString(10):Uf.toString(10)}var Lf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Xf(){var Uf=new Date,qf=[Af(Uf.getHours()),Af(Uf.getMinutes()),Af(Uf.getSeconds())].join(":");return[Uf.getDate(),Lf[Uf.getMonth()],qf].join(" ")}Ra.log=function(){console.log("%s - %s",Xf(),Ra.format.apply(Ra,arguments))},Ra.inherits=inherits_browserExports,Ra._extend=function(Uf,qf){if(!qf||!Kd(qf))return Uf;for(var Kf=Object.keys(qf),Tf=Kf.length;Tf--;)Uf[Kf[Tf]]=qf[Kf[Tf]];return Uf};function ih(Uf,qf){return Object.prototype.hasOwnProperty.call(Uf,qf)}var Zf=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(Zf&&qf[Zf]){var Kf=qf[Zf];if(typeof Kf!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Kf,Zf,{value:Kf,enumerable:!1,writable:!1,configurable:!0}),Kf}function Kf(){for(var Tf,vf,Gf=new Promise(function(th,Pf){Tf=th,vf=Pf}),Jf=[],gh=0;gh<arguments.length;gh++)Jf.push(arguments[gh]);Jf.push(function(th,Pf){th?vf(th):Tf(Pf)});try{qf.apply(this,Jf)}catch(th){vf(th)}return Gf}return Object.setPrototypeOf(Kf,Object.getPrototypeOf(qf)),Zf&&Object.defineProperty(Kf,Zf,{value:Kf,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Kf,od(qf))},Ra.promisify.custom=Zf;function jf(Uf,qf){if(!Uf){var Kf=new Error("Promise was rejected with a falsy value");Kf.reason=Uf,Uf=Kf}return qf(Uf)}function If(Uf){if(typeof Uf!="function")throw new TypeError('The "original" argument must be of type Function');function qf(){for(var Kf=[],Tf=0;Tf<arguments.length;Tf++)Kf.push(arguments[Tf]);var vf=Kf.pop();if(typeof vf!="function")throw new TypeError("The last argument must be of type Function");var Gf=this,Jf=function(){return vf.apply(Gf,arguments)};Uf.apply(this,Kf).then(function(gh){qa.nextTick(Jf.bind(null,null,gh))},function(gh){qa.nextTick(jf.bind(null,gh,Jf))})}return Object.setPrototypeOf(qf,Object.getPrototypeOf(Uf)),Object.defineProperties(qf,od(Uf)),qf}Ra.callbackify=If})(util$5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function Ra(Id,kd){var jd=Object.keys(Id);if(Object.getOwnPropertySymbols){var Fd=Object.getOwnPropertySymbols(Id);kd&&(Fd=Fd.filter(function(Md){return Object.getOwnPropertyDescriptor(Id,Md).enumerable})),jd.push.apply(jd,Fd)}return jd}function qa(Id){for(var kd=1;kd<arguments.length;kd++){var jd=arguments[kd]!=null?arguments[kd]:{};kd%2?Ra(Object(jd),!0).forEach(function(Fd){nd(Id,Fd,jd[Fd])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Id,Object.getOwnPropertyDescriptors(jd)):Ra(Object(jd)).forEach(function(Fd){Object.defineProperty(Id,Fd,Object.getOwnPropertyDescript
`,nd);nd=ld===-1?Ra.length:ld}else if(od!==-1&&Ra[nd]==="/"&&Ra[nd+1]==="*"){let ld=Ra.indexOf("*/",nd);ld!==-1?(nd=ld+2,od=Ra.indexOf("*/",nd)):(qa+=Ra[nd],nd++)}else qa+=Ra[nd],nd++;return qa}function parseParams(Ra){const qa=stripComments(Ra.toString());let nd=qa.match(FN_ARGS);if(nd||(nd=qa.match(ARROW_FN_ARGS)),!nd)throw new Error(`could not parse args in autoInject
Source:
`+qa);let[,od]=nd;return od.replace(/\s/g,"").split(FN_ARG_SPLIT).map(ld=>ld.replace(FN_ARG,"").trim())}function autoInject(Ra,qa){var nd={};return Object.keys(Ra).forEach(od=>{var ld=Ra[od],ud,cd=isAsync(ld),dd=!cd&&ld.length===1||cd&&ld.length===0;if(Array.isArray(ld))ud=[...ld],ld=ud.pop(),nd[od]=ud.concat(ud.length>0?pd:ld);else if(dd)nd[od]=ld;else{if(ud=parseParams(ld),ld.length===0&&!cd&&ud.length===0)throw new Error("autoInject task functions require explicit parameters.");cd||ud.pop(),nd[od]=ud.concat(pd)}function pd(fd,md){var vd=ud.map(Ad=>fd[Ad]);vd.push(md),wrapAsync(ld)(...vd)}}),auto(nd,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,nd){nd.prev=qa,nd.next=qa.next,qa.next?qa.next.prev=nd:this.tail=nd,qa.next=nd,this.length+=1}insertBefore(qa,nd){nd.prev=qa.prev,nd.next=qa,qa.prev?qa.prev.next=nd:this.head=nd,qa.prev=nd,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 nd=this.head;nd;){var{next:od}=nd;qa(nd)&&this.removeLink(nd),nd=od}return this}}function setInitial(Ra,qa){Ra.length=1,Ra.head=Ra.tail=qa}function queue$1(Ra,qa,nd){if(qa==null)qa=1;else if(qa===0)throw new RangeError("Concurrency must not be zero");var od=wrapAsync(Ra),ld=0,ud=[];const cd={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function dd(Md,Ld){cd[Md].push(Ld)}function pd(Md,Ld){const Hd=(...Gd)=>{fd(Md,Hd),Ld(...Gd)};cd[Md].push(Hd)}function fd(Md,Ld){if(!Md)return Object.keys(cd).forEach(Hd=>cd[Hd]=[]);if(!Ld)return cd[Md]=[];cd[Md]=cd[Md].filter(Hd=>Hd!==Ld)}function md(Md,...Ld){cd[Md].forEach(Hd=>Hd(...Ld))}var vd=!1;function Ad(Md,Ld,Hd,Gd){if(Gd!=null&&typeof Gd!="function")throw new Error("task callback must be a function");Fd.started=!0;var Vd,Qd;function mf(Zd,...Kd){if(Zd)return Hd?Qd(Zd):Vd();if(Kd.length<=1)return Vd(Kd[0]);Vd(Kd)}var Yd=Fd._createTaskItem(Md,Hd?mf:Gd||mf);if(Ld?Fd._tasks.unshift(Yd):Fd._tasks.push(Yd),vd||(vd=!0,setImmediate$1$1(()=>{vd=!1,Fd.process()})),Hd||!Gd)return new Promise((Zd,Kd)=>{Vd=Zd,Qd=Kd})}function Nd(Md){return function(Ld,...Hd){ld-=1;for(var Gd=0,Vd=Md.length;Gd<Vd;Gd++){var Qd=Md[Gd],mf=ud.indexOf(Qd);mf===0?ud.shift():mf>0&&ud.splice(mf,1),Qd.callback(Ld,...Hd),Ld!=null&&md("error",Ld,Qd.data)}ld<=Fd.concurrency-Fd.buffer&&md("unsaturated"),Fd.idle()&&md("drain"),Fd.process()}}function Id(Md){return Md.length===0&&Fd.idle()?(setImmediate$1$1(()=>md("drain")),!0):!1}const kd=Md=>Ld=>{if(!Ld)return new Promise((Hd,Gd)=>{pd(Md,(Vd,Qd)=>{if(Vd)return Gd(Vd);Hd(Qd)})});fd(Md),dd(Md,Ld)};var jd=!1,Fd={_tasks:new DLL,_createTaskItem(Md,Ld){return{data:Md,callback:Ld}},*[Symbol.iterator](){yield*Fd._tasks[Symbol.iterator]()},concurrency:qa,payload:nd,buffer:qa/4,started:!1,paused:!1,push(Md,Ld){return Array.isArray(Md)?Id(Md)?void 0:Md.map(Hd=>Ad(Hd,!1,!1,Ld)):Ad(Md,!1,!1,Ld)},pushAsync(Md,Ld){return Array.isArray(Md)?Id(Md)?void 0:Md.map(Hd=>Ad(Hd,!1,!0,Ld)):Ad(Md,!1,!0,Ld)},kill(){fd(),Fd._tasks.empty()},unshift(Md,Ld){return Array.isArray(Md)?Id(Md)?void 0:Md.map(Hd=>Ad(Hd,!0,!1,Ld)):Ad(Md,!0,!1,Ld)},unshiftAsync(Md,Ld){return Array.isArray(Md)?Id(Md)?void 0:Md.map(Hd=>Ad(Hd,!0,!0,Ld)):Ad(Md,!0,!0,Ld)},remove(Md){Fd._tasks.remove(Md)},process(){if(!jd){for(jd=!0;!Fd.paused&&ld<Fd.concurrency&&Fd._tasks.length;){var Md=[],Ld=[],Hd=Fd._tasks.length;Fd.payload&&(Hd=Math.min(Hd,Fd.payload));for(var Gd=0;Gd<Hd;Gd++){var Vd=Fd._tasks.shift();Md.push(Vd),ud.push(Vd),Ld.push(Vd.data)}ld+=1,Fd._tasks.length===0&&md("empty"),ld===Fd.concurrency&&md("saturated");var Qd=onlyOnce(Nd(Md));od(Ld,Qd)}jd=!1}},length(){return Fd._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 nd,od="4.17.21",ld=200,ud="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",cd="Expected a function",dd="Invalid `variable` option passed into `_.template`",pd="__lodash_hash_undefined__",fd=500,md="__lodash_placeholder__",vd=1,Ad=2,Nd=4,Id=1,kd=2,jd=1,Fd=2,Md=4,Ld=8,Hd=16,Gd=32,Vd=64,Qd=128,mf=256,Yd=512,Zd=30,Kd="...",bf=800,gf=16,Ef=1,yf=2,xf=3,Af=1/0,Lf=9007199254740991,Xf=17976931348623157e292,ih=NaN,Zf=4294967295,jf=Zf-1,If=Zf>>>1,Uf=[["ary",Qd],["bind",jd],["bindKey",Fd],["curry",Ld],["curryRight",Hd],["flip",Yd],["partial",Gd],["partialRight",Vd],["rearg",mf]],qf="[object Arguments]",Kf="[object Array]",Tf="[object AsyncFunction]",vf="[object Boolean]",Gf="[object Date]",Jf="[object DOMException]",gh="[object Error]",th="[object Function]",Pf="[object GeneratorFunction]",uh="[object Map]",xh="[object Number]",Qf="[object Null]",Nf="[object Object]",$f="[object Promise]",Wf="[object Proxy]",vh="[object RegExp]",Th="[object Set]",dh="[object String]",Vh="[object Symbol]",wh="[object Undefined]",fm="[object WeakMap]",Nm="[object WeakSet]",cm="[object ArrayBuffer]",Sm="[object DataView]",$m="[object Float32Array]",ph="[object Float64Array]",Rf="[object Int8Array]",wf="[object Int16Array]",ch="[object Int32Array]",yh="[object Uint8Array]",Uh="[object Uint8ClampedArray]",Zh="[object Uint16Array]",_m="[object Uint32Array]",Um=/\b__p \+= '';/g,Om=/\b(__p \+=) '' \+/g,r_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xm=/&(?:amp|lt|gt|quot|#39);/g,s_=/[&<>"']/g,b_=RegExp(Xm.source),H_=RegExp(s_.source),x_=/<%-([\s\S]+?)%>/g,M_=/<%([\s\S]+?)%>/g,h_=/<%=([\s\S]+?)%>/g,tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L_=/^\w*$/,dg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yg=/[\\^$.*+?()[\]{}|]/g,q_=RegExp(yg.source),Y_=/^\s+/,Qm=/\s/,Zg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,db=/\{\n\/\* \[wrapped with (.+)\] \*/,$g=/,? & /,Of=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ch=/[()=,{}\[\]\/\s]/,mh=/\\(\\)?/g,Sh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wh=/\w*$/,Fh=/^[-+]0x[0-9a-f]+$/i,om=/^0b[01]+$/i,im=/^\[object .+?Constructor\]$/,Rh=/^0o[0-7]+$/i,Im=/^(?:0|[1-9]\d*)$/,Pm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i_=/($^)/,Hm=/['\n\r\u2028\u2029\\]/g,o_="\\ud800-\\udfff",j_="\\u0300-\\u036f",B_="\\ufe20-\\ufe2f",C_="\\u20d0-\\u20ff",Km=j_+B_+C_,ig="\\u2700-\\u27bf",N_="a-z\\xdf-\\xf6\\xf8-\\xff",y_="\\xac\\xb1\\xd7\\xf7",fh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bh="\\u2000-\\u206f",Mm=" \\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",zm="A-Z\\xc0-\\xd6\\xd8-\\xde",Tm="\\ufe0e\\ufe0f",e_=y_+fh+Bh+Mm,O_="[']",og="["+o_+"]",Cg="["+e_+"]",rb="["+Km+"]",Eb="\\d+",E_="["+ig+"]",nb="["+N_+"]",lg="[^"+o_+e_+Eb+ig+N_+zm+"]",jg="\\ud83c[\\udffb-\\udfff]",wg="(?:"+rb+"|"+jg+")",Tb="[^"+o_+"]",Jb="(?:\\ud83c[\\udde6-\\uddff]){2}",Ug="[\\ud800-\\udbff][\\udc00-\\udfff]",Sb="["+zm+"]",V0="\\u200d",x0="(?:"+nb+"|"+lg+")",__="(?:"+Sb+"|"+lg+")",C0="(?:"+O_+"(?:d|ll|m|re|s|t|ve))?",d0="(?:"+O_+"(?:D|LL|M|RE|S|T|VE))?",z0=wg+"?",Hy="["+Tm+"]?",Wy="(?:"+V0+"(?:"+[Tb,Jb,Ug].join("|")+")"+Hy+z0+")*",p0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ig="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pb=Hy+z0+Wy,$b="(?:"+[E_,Jb,Ug].join("|")+")"+pb,f0="(?:"+[Tb+rb+"?",rb,Jb,Ug,og].join("|")+")",A0=RegExp(O_,"g"),bE=RegExp(rb,"g"),Lv=RegExp(jg+"(?="+jg+")|"+f0+pb,"g"),yE=RegExp([Sb+"?"+nb+"+"+C0+"(?="+[Cg,Sb,"$"].join("|")+")",__+"+"+d0+"(?="+[Cg,Sb+x0,"$"].join("|")+")",Sb+"?"+x0+"+"+C0,Sb+"+"+d0,Ig,p0,Eb,$b].join("|"),"g"),hT=RegExp("["+V0+o_+Km+Tm+"]"),Fv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vE=["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 `+df+`] */
`)}function Ud(qd){return k_(qd)||_E(qd)||!!(oS&&qd&&qd[oS])}function Jd(qd,df){var Sf=typeof qd;return df=df??Lf,!!df&&(Sf=="number"||Sf!="symbol"&&Im.test(qd))&&qd>-1&&qd%1==0&&qd<df}function Xd(qd,df,Sf){if(!Mg(Sf))return!1;var zf=typeof df;return(zf=="number"?Rb(Sf)&&Jd(df,Sf.length):zf=="string"&&df in Sf)?T0(Sf[df],qd):!1}function pf(qd,df){if(k_(qd))return!1;var Sf=typeof qd;return Sf=="number"||Sf=="symbol"||Sf=="boolean"||qd==null||Kb(qd)?!0:L_.test(qd)||!tg.test(qd)||df!=null&&qd in ag(df)}function Cf(qd){var df=typeof qd;return df=="string"||df=="number"||df=="symbol"||df=="boolean"?qd!=="__proto__":qd===null}function Bf(qd){var df=hE(qd),Sf=Ah[df];if(typeof Sf!="function"||!(df in S_.prototype))return!1;if(qd===Sf)return!0;var zf=fE(Sf);return!!zf&&qd===zf[0]}function Yf(qd){return!!kE&&kE in qd}var sh=_0?$y:W1;function hh(qd){var df=qd&&qd.constructor,Sf=typeof df=="function"&&df.prototype||Fb;return qd===Sf}function Mh(qd){return qd===qd&&!Mg(qd)}function Jh(qd,df){return function(Sf){return Sf==null?!1:Sf[qd]===df&&(df!==nd||qd in ag(Sf))}}function hm(qd){var df=JS(qd,function(zf){return Sf.size===fd&&Sf.clear(),zf}),Sf=df.cache;return df}function pm(qd,df){var Sf=qd[1],zf=df[1],_h=Sf|zf,Oh=_h<(jd|Fd|Qd),um=zf==Qd&&Sf==Ld||zf==Qd&&Sf==mf&&qd[7].length<=df[8]||zf==(Qd|mf)&&df[7].length<=df[8]&&Sf==Ld;if(!(Oh||um))return qd;zf&jd&&(qd[2]=df[2],_h|=Sf&jd?0:Md);var dm=df[3];if(dm){var gm=qd[3];qd[3]=gm?KE(gm,dm,df[4]):dm,qd[4]=gm?mb(qd[3],md):df[4]}return dm=df[5],dm&&(gm=qd[5],qd[5]=gm?VT(gm,dm,df[6]):dm,qd[6]=gm?mb(qd[5],md):df[6]),dm=df[7],dm&&(qd[7]=dm),zf&Qd&&(qd[8]=qd[8]==null?df[8]:Lg(qd[8],df[8])),qd[9]==null&&(qd[9]=df[9]),qd[0]=df[0],qd[1]=_h,qd}function Rm(qd){var df=[];if(qd!=null)for(var Sf in ag(qd))df.push(Sf);return df}function jm(qd){return t0.call(qd)}function Ym(qd,df,Sf){return df=bg(df===nd?qd.length-1:df,0),function(){for(var zf=arguments,_h=-1,Oh=bg(zf.length-df,0),um=Dm(Oh);++_h<Oh;)um[_h]=zf[df+_h];_h=-1;for(var dm=Dm(df+1);++_h<df;)dm[_h]=zf[_h];return dm[df]=Sf(um),lb(qd,this,dm)}}function n_(qd,df){return df.length<2?qd:P0(qd,Vg(df,0,-1))}function a_(qd,df){for(var Sf=qd.length,zf=Lg(df.length,Sf),_h=hb(qd);zf--;){var Oh=df[zf];qd[zf]=Jd(Oh,Sf)?_h[Oh]:nd}return qd}function t_(qd,df){if(!(df==="constructor"&&typeof qd[df]=="function")&&df!="__proto__")return qd[df]}var u_=ng($S),g_=PE||function(qd,df){return Z_.setTimeout(qd,df)},m_=ng(T1);function R_(qd,df,Sf){var zf=df+"";return m_(qd,Od(zf,Rg(Dg(zf),Sf)))}function ng(qd){var df=0,Sf=0;return function(){var zf=o1(),_h=gf-(zf-Sf);if(Sf=zf,_h>0){if(++df>=bf)return arguments[0]}else df=0;return qd.apply(nd,arguments)}}function Ng(qd,df){var Sf=-1,zf=qd.length,_h=zf-1;for(df=df===nd?zf:df;++Sf<df;){var Oh=zE(Sf,_h),um=qd[Oh];qd[Oh]=qd[Sf],qd[Sf]=um}return qd.length=df,qd}var gg=hm(function(qd){var df=[];return qd.charCodeAt(0)===46&&df.push(""),qd.replace(dg,function(Sf,zf,_h,Oh){df.push(_h?Oh.replace(mh,"$1"):zf||Sf)}),df});function Sg(qd){if(typeof qd=="string"||Kb(qd))return qd;var df=qd+"";return df=="0"&&1/qd==-Af?"-0":df}function Og(qd){if(qd!=null){try{return iv.call(qd)}catch{}try{return qd+""}catch{}}return""}function Rg(qd,df){return fb(Uf,function(Sf){var zf="_."+Sf[0];df&Sf[1]&&!Zy(qd,zf)&&qd.push(zf)}),qd.sort()}function ab(qd){if(qd instanceof S_)return qd.clone();var df=new eg(qd.__wrapped__,qd.__chain__);return df.__actions__=hb(qd.__actions__),df.__index__=qd.__index__,df.__values__=qd.__values__,df}function Jg(qd,df,Sf){(Sf?Xd(qd,df,Sf):df===nd)?df=1:df=bg(P_(df),0);var zf=qd==null?0:qd.length;if(!zf||df<1)return[];for(var _h=0,Oh=0,um=Dm(Wv(zf/df));_h<zf;)um[Oh++]=Vg(qd,_h,_h+=df);return um}function Bg(qd){for(var df=-1,Sf=qd==null?0:qd.length,zf=0,_h=[];++df<Sf;){var Oh=qd[df];Oh&&(_h[zf++]=Oh)}return _h}function kg(){var qd=arguments.length;if(!qd)return[];for(var df=Dm(qd-1),Sf=arguments[0],zf=qd;zf--;)df[zf-1]=arguments[zf];return Lb(k_(Sf)?hb(Sf):[Sf],qg(df,1))}var xg=$_(function(qd,df){return Yg(qd)?Zv(qd,qg(df,1,Yg,!0)):[]}),cb=$_(function(qd,df){var Sf=u0(df);return Yg(Sf)&&(Sf=nd),Yg(qd)?Zv(qd,qg(df,1,Yg,!0
`;qd.replace(c_,function(D_,G_,W_,Xb,vb,Qb){return W_||(W_=Xb),Wm+=qd.slice(Gm,Qb).replace(Hm,J0),G_&&(dm=!0,Wm+=`' +
__e(`+G_+`) +
'`),vb&&(gm=!0,Wm+=`';
`+vb+`;
__p += '`),W_&&(Wm+=`' +
((__t = (`+W_+`)) == null ? '' : __t) +
'`),Gm=Qb+D_.length,D_}),Wm+=`';
`;var A_=J_.call(df,"variable")&&df.variable;if(!A_)Wm=`with (obj) {
`+Wm+`
}
`;else if(Ch.test(A_))throw new I_(dd);Wm=(gm?Wm.replace(Um,""):Wm).replace(Om,"$1").replace(r_,"$1;"),Wm="function("+(A_||"obj")+`) {
`+(A_?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(dm?", __e = _.escape":"")+(gm?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Wm+`return __p
}`;var F_=Dx(function(){return V_(Oh,v_+"return "+Wm).apply(nd,um)});if(F_.source=Wm,L1(F_))throw F_;return F_}function qD(qd){return sg(qd).toLowerCase()}function VD(qd){return sg(qd).toUpperCase()}function zD(qd,df,Sf){if(qd=sg(qd),qd&&(Sf||df===nd))return d_(qd);if(!qd||!(df=bb(df)))return qd;var zf=Bb(qd),_h=Bb(df),Oh=K_(zf,_h),um=Hg(zf,_h)+1;return E0(zf,Oh,um).join("")}function WD(qd,df,Sf){if(qd=sg(qd),qd&&(Sf||df===nd))return qd.slice(0,gT(qd)+1);if(!qd||!(df=bb(df)))return qd;var zf=Bb(qd),_h=Hg(zf,Bb(df))+1;return E0(zf,0,_h).join("")}function YD(qd,df,Sf){if(qd=sg(qd),qd&&(Sf||df===nd))return qd.replace(Y_,"");if(!qd||!(df=bb(df)))return qd;var zf=Bb(qd),_h=K_(zf,Bb(df));return E0(zf,_h).join("")}function KD(qd,df){var Sf=Zd,zf=Kd;if(Mg(df)){var _h="separator"in df?df.separator:_h;Sf="length"in df?P_(df.length):Sf,zf="omission"in df?bb(df.omission):zf}qd=sg(qd);var Oh=qd.length;if(rv(qd)){var um=Bb(qd);Oh=um.length}if(Sf>=Oh)return qd;var dm=Sf-nv(zf);if(dm<1)return zf;var gm=um?E0(um,0,dm).join(""):qd.slice(0,dm);if(_h===nd)return gm+zf;if(um&&(dm+=gm.length-dm),B1(_h)){if(qd.slice(dm).search(_h)){var Gm,Vm=gm;for(_h.global||(_h=zv(_h.source,sg(Wh.exec(_h))+"g")),_h.lastIndex=0;Gm=_h.exec(Vm);)var Wm=Gm.index;gm=gm.slice(0,Wm===nd?dm:Wm)}}else if(qd.indexOf(bb(_h),dm)!=dm){var c_=gm.lastIndexOf(_h);c_>-1&&(gm=gm.slice(0,c_))}return gm+zf}function XD(qd){return qd=sg(qd),qd&&b_.test(qd)?qd.replace(Xm,nS):qd}var QD=Av(function(qd,df,Sf){return qd+(Sf?" ":"")+df.toUpperCase()}),U1=US("toUpperCase");function Ax(qd,df,Sf){return qd=sg(qd),df=Sf?nd:df,df===nd?eS(qd)?aS(qd):mT(qd):qd.match(df)||[]}var Dx=$_(function(qd,df){try{return lb(qd,nd,df)}catch(Sf){return L1(Sf)?Sf:new I_(Sf)}}),JD=s0(function(qd,df){return fb(df,function(Sf){Sf=Sg(Sf),y0(qd,Sf,$1(qd[Sf],qd))}),qd});function ZD(qd){var df=qd==null?0:qd.length,Sf=T_();return qd=df?ug(qd,function(zf){if(typeof zf[1]!="function")throw new Db(cd);return[Sf(zf[0]),zf[1]]}):[],$_(function(zf){for(var _h=-1;++_h<df;){var Oh=qd[_h];if(lb(Oh[0],this,zf))return lb(Oh[1],this,zf)}})}function eN(qd){return b1(gb(qd,vd))}function H1(qd){return function(){return qd}}function tN(qd,df){return qd==null||qd!==qd?df:qd}var rN=HS(),nN=HS(!0);function Mb(qd){return qd}function G1(qd){return _v(typeof qd=="function"?qd:gb(qd,vd))}function iN(qd){return wS(gb(qd,vd))}function aN(qd,df){return BT(qd,gb(df,vd))}var sN=$_(function(qd,df){return function(Sf){return hv(Sf,qd,df)}}),oN=$_(function(qd,df){return function(Sf){return hv(qd,Sf,df)}});function q1(qd,df,Sf){var zf=ob(df),_h=qE(df,zf);Sf==null&&!(Mg(df)&&(_h.length||!zf.length))&&(Sf=df,df=qd,qd=this,_h=qE(df,ob(df)));var Oh=!(Mg(Sf)&&"chain"in Sf)||!!Sf.chain,um=$y(qd);return fb(_h,function(dm){var gm=df[dm];qd[dm]=gm,um&&(qd.prototype[dm]=function(){var Gm=this.__chain__;if(Oh||Gm){var Vm=qd(this.__wrapped__),Wm=Vm.__actions__=hb(this.__actions__);return Wm.push({func:gm,args:arguments,thisArg:qd}),Vm.__chain__=Gm,Vm}return gm.apply(qd,Lb([this.value()],arguments))})}),qd}function lN(){return Z_._===this&&(Z_._=ub),this}function V1(){}function uN(qd){return qd=P_(qd),$_(function(df){return bv(df,qd)})}var cN=QE(ug),dN=QE(X0),pN=QE(N0);function Nx(qd){return pf(qd)?bh(Sg(qd)):v1(qd)}function fN(qd){return function(df){return qd==null?nd:P0(qd,df)}}var hN=Ry(),mN=Ry(!0);function z1(){return[]}function W1(){return!1}function _N(){return{}}function gN(){return""}function bN(){return!0}function yN(qd,df){if(qd=P_(qd),qd<1||qd>Lf)return[];var Sf=Zf,zf=Lg(qd,Zf);df=T_(df),qd-=Zf;for(var _h=Zm(zf,df);++Sf<qd;)df(Sf);return _h}function vN(qd){return k_(qd)?ug(qd,Sg):Kb(qd)?[qd]:hb(gg(sg(qd)))}function EN(qd){var df=++sS;return sg(qd)+df}var TN=Nv(function(qd,df){return qd+df},0),SN=YT("ceil"),xN=Nv(function(qd,df){return qd/df},1),CN=YT("floor");function AN(qd){return qd&&qd.length?HE(qd,Mb,VE):nd}function DN(qd,df){return qd&&qd.length?HE(qd,T_(df,2),VE):nd}function NN(qd){return eh(qd,Mb)}function wN(qd,df){return eh(qd,T_(df,2))}function IN(qd){return qd&&qd.length?HE(qd,Mb,Ny):nd}function ON(qd,df){return qd&&qd.length?HE(qd,T_
`:"")),nd&&nd()}function ud(cd){return cd.interrupt?(cd.interrupt.append=Ra,cd.interrupt.end=ld,cd.interrupt=!1,Ra(!0),!0):!1}if(Ra(!1,qa.indents+(qa.name?"<"+qa.name:"")+(qa.attributes.length?" "+qa.attributes.join(" "):"")+(od?qa.name?">":"":qa.name?"/>":"")+(qa.indent&&od>1?`
`:"")),!od)return Ra(!1,qa.indent?`
`:"");ud(qa)||ld()}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={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults.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}var builder={},lib$2={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var Ra,qa,nd,od,ld,ud,cd,dd=[].slice,pd={}.hasOwnProperty;Ra=function(){var fd,md,vd,Ad,Nd,Id;if(Id=arguments[0],Nd=2<=arguments.length?dd.call(arguments,1):[],ld(Object.assign))Object.assign.apply(null,arguments);else for(fd=0,vd=Nd.length;fd<vd;fd++)if(Ad=Nd[fd],Ad!=null)for(md in Ad)pd.call(Ad,md)&&(Id[md]=Ad[md]);return Id},ld=function(fd){return!!fd&&Object.prototype.toString.call(fd)==="[object Function]"},ud=function(fd){var md;return!!fd&&((md=typeof fd)=="function"||md==="object")},nd=function(fd){return ld(Array.isArray)?Array.isArray(fd):Object.prototype.toString.call(fd)==="[object Array]"},od=function(fd){var md;if(nd(fd))return!fd.length;for(md in fd)if(pd.call(fd,md))return!1;return!0},cd=function(fd){var md,vd;return ud(fd)&&(vd=Object.getPrototypeOf(fd))&&(md=vd.constructor)&&typeof md=="function"&&md instanceof md&&Function.prototype.toString.call(md)===Function.prototype.toString.call(Object)},qa=function(fd){return ld(fd.valueOf)?fd.valueOf():fd},Utility.assign=Ra,Utility.isFunction=ld,Utility.isObject=ud,Utility.isArray=nd,Utility.isEmpty=od,Utility.isPlainObject=cd,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,nd){return!0},Ra.prototype.createDocumentType=function(qa,nd,od){throw new Error("This DOM method is not implemented.")},Ra.prototype.createDocument=function(qa,nd,od){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,nd){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 nd(){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(nd.prototype,"parameterNames",{get:function(){return new qa(Object.keys(this.defaultParams))}}),nd.prototype.getParameter=function(od){return this.params.hasOwnProperty(od)?this.params[od]:null},nd.prototype.canSetParameter=function(od,ld){return!0},nd.prototype.setParameter=func
`,cd.offset=(fd=ud.offset)!=null?fd:0,cd.dontPrettyTextNodes=(md=(vd=ud.dontPrettyTextNodes)!=null?vd:ud.dontprettytextnodes)!=null?md:0,cd.spaceBeforeSlash=(Ad=(Nd=ud.spaceBeforeSlash)!=null?Nd:ud.spacebeforeslash)!=null?Ad:"",cd.spaceBeforeSlash===!0&&(cd.spaceBeforeSlash=" "),cd.suppressPrettyCount=0,cd.user={},cd.state=qa.None,cd},ld.prototype.indent=function(ud,cd,dd){var pd;return!cd.pretty||cd.suppressPrettyCount?"":cd.pretty&&(pd=(dd||0)+cd.offset+1,pd>0)?new Array(pd).join(cd.indent):""},ld.prototype.endline=function(ud,cd,dd){return!cd.pretty||cd.suppressPrettyCount?"":cd.newline},ld.prototype.attribute=function(ud,cd,dd){var pd;return this.openAttribute(ud,cd,dd),pd=" "+ud.name+'="'+ud.value+'"',this.closeAttribute(ud,cd,dd),pd},ld.prototype.cdata=function(ud,cd,dd){var pd;return this.openNode(ud,cd,dd),cd.state=qa.OpenTag,pd=this.indent(ud,cd,dd)+"<![CDATA[",cd.state=qa.InsideTag,pd+=ud.value,cd.state=qa.CloseTag,pd+="]]>"+this.endline(ud,cd,dd),cd.state=qa.None,this.closeNode(ud,cd,dd),pd},ld.prototype.comment=function(ud,cd,dd){var pd;return this.openNode(ud,cd,dd),cd.state=qa.OpenTag,pd=this.indent(ud,cd,dd)+"<!-- ",cd.state=qa.InsideTag,pd+=ud.value,cd.state=qa.CloseTag,pd+=" -->"+this.endline(ud,cd,dd),cd.state=qa.None,this.closeNode(ud,cd,dd),pd},ld.prototype.declaration=function(ud,cd,dd){var pd;return this.openNode(ud,cd,dd),cd.state=qa.OpenTag,pd=this.indent(ud,cd,dd)+"<?xml",cd.state=qa.InsideTag,pd+=' version="'+ud.version+'"',ud.encoding!=null&&(pd+=' encoding="'+ud.encoding+'"'),ud.standalone!=null&&(pd+=' standalone="'+ud.standalone+'"'),cd.state=qa.CloseTag,pd+=cd.spaceBeforeSlash+"?>",pd+=this.endline(ud,cd,dd),cd.state=qa.None,this.closeNode(ud,cd,dd),pd},ld.prototype.docType=function(ud,cd,dd){var pd,fd,md,vd,Ad;if(dd||(dd=0),this.openNode(ud,cd,dd),cd.state=qa.OpenTag,vd=this.indent(ud,cd,dd),vd+="<!DOCTYPE "+ud.root().name,ud.pubID&&ud.sysID?vd+=' PUBLIC "'+ud.pubID+'" "'+ud.sysID+'"':ud.sysID&&(vd+=' SYSTEM "'+ud.sysID+'"'),ud.children.length>0){for(vd+=" [",vd+=this.endline(ud,cd,dd),cd.state=qa.InsideTag,Ad=ud.children,fd=0,md=Ad.length;fd<md;fd++)pd=Ad[fd],vd+=this.writeChildNode(pd,cd,dd+1);cd.state=qa.CloseTag,vd+="]"}return cd.state=qa.CloseTag,vd+=cd.spaceBeforeSlash+">",vd+=this.endline(ud,cd,dd),cd.state=qa.None,this.closeNode(ud,cd,dd),vd},ld.prototype.element=function(ud,cd,dd){var pd,fd,md,vd,Ad,Nd,Id,kd,jd,Fd,Md,Ld,Hd,Gd;dd||(dd=0),Fd=!1,Md="",this.openNode(ud,cd,dd),cd.state=qa.OpenTag,Md+=this.indent(ud,cd,dd)+"<"+ud.name,Ld=ud.attribs;for(jd in Ld)od.call(Ld,jd)&&(pd=Ld[jd],Md+=this.attribute(pd,cd,dd));if(md=ud.children.length,vd=md===0?null:ud.children[0],md===0||ud.children.every(function(Vd){return(Vd.type===Ra.Text||Vd.type===Ra.Raw)&&Vd.value===""}))cd.allowEmpty?(Md+=">",cd.state=qa.CloseTag,Md+="</"+ud.name+">"+this.endline(ud,cd,dd)):(cd.state=qa.CloseTag,Md+=cd.spaceBeforeSlash+"/>"+this.endline(ud,cd,dd));else if(cd.pretty&&md===1&&(vd.type===Ra.Text||vd.type===Ra.Raw)&&vd.value!=null)Md+=">",cd.state=qa.InsideTag,cd.suppressPrettyCount++,Fd=!0,Md+=this.writeChildNode(vd,cd,dd+1),cd.suppressPrettyCount--,Fd=!1,cd.state=qa.CloseTag,Md+="</"+ud.name+">"+this.endline(ud,cd,dd);else{if(cd.dontPrettyTextNodes){for(Hd=ud.children,Ad=0,Id=Hd.length;Ad<Id;Ad++)if(fd=Hd[Ad],(fd.type===Ra.Text||fd.type===Ra.Raw)&&fd.value!=null){cd.suppressPrettyCount++,Fd=!0;break}}for(Md+=">"+this.endline(ud,cd,dd),cd.state=qa.InsideTag,Gd=ud.children,Nd=0,kd=Gd.length;Nd<kd;Nd++)fd=Gd[Nd],Md+=this.writeChildNode(fd,cd,dd+1);cd.state=qa.CloseTag,Md+=this.indent(ud,cd,dd)+"</"+ud.name+">",Fd&&cd.suppressPrettyCount--,Md+=this.endline(ud,cd,dd),cd.state=qa.None}return this.closeNode(ud,cd,dd),Md},ld.prototype.writeChildNode=function(ud,cd,dd){switch(ud.type){case Ra.CData:return this.cdata(ud,cd,dd);case Ra.Comment:return this.comment(ud,cd,dd);case Ra.Element:return this.element(ud,cd,dd);case Ra.Raw:return this.raw(ud,cd,dd);case Ra.Text:return this.text(ud,cd,dd);case Ra.ProcessingInstruction:return this.processingInstruction(ud,cd,dd);case Ra.Dummy:return"";case Ra.Declaration:return
`||Tf==="\r"||Tf===" "}function Gd(Tf){return Tf==='"'||Tf==="'"}function Vd(Tf){return Tf===">"||Hd(Tf)}function Qd(Tf,vf){return Tf.test(vf)}function mf(Tf,vf){return!Qd(Tf,vf)}var Yd=0;qa.STATE={BEGIN:Yd++,BEGIN_WHITESPACE:Yd++,TEXT:Yd++,TEXT_ENTITY:Yd++,OPEN_WAKA:Yd++,SGML_DECL:Yd++,SGML_DECL_QUOTED:Yd++,DOCTYPE:Yd++,DOCTYPE_QUOTED:Yd++,DOCTYPE_DTD:Yd++,DOCTYPE_DTD_QUOTED:Yd++,COMMENT_STARTING:Yd++,COMMENT:Yd++,COMMENT_ENDING:Yd++,COMMENT_ENDED:Yd++,CDATA:Yd++,CDATA_ENDING:Yd++,CDATA_ENDING_2:Yd++,PROC_INST:Yd++,PROC_INST_BODY:Yd++,PROC_INST_ENDING:Yd++,OPEN_TAG:Yd++,OPEN_TAG_SLASH:Yd++,ATTRIB:Yd++,ATTRIB_NAME:Yd++,ATTRIB_NAME_SAW_WHITE:Yd++,ATTRIB_VALUE:Yd++,ATTRIB_VALUE_QUOTED:Yd++,ATTRIB_VALUE_CLOSED:Yd++,ATTRIB_VALUE_UNQUOTED:Yd++,ATTRIB_VALUE_ENTITY_Q:Yd++,ATTRIB_VALUE_ENTITY_U:Yd++,CLOSE_TAG:Yd++,CLOSE_TAG_SAW_WHITE:Yd++,SCRIPT:Yd++,SCRIPT_ENDING:Yd++},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(Tf){var vf=qa.ENTITIES[Tf],Gf=typeof vf=="number"?String.fromCharCode(vf):vf;qa.ENTITIES[Tf]=Gf});for(var Zd in qa.STATE)qa.STATE[qa.STATE[Zd]]=Zd;Yd=qa.STATE;function Kd(Tf,vf,Gf){Tf[vf]&&Tf[vf](Gf)}function bf(Tf,vf,Gf){Tf.textNode&&gf(Tf),Kd(Tf,vf,Gf)}function gf(Tf){Tf.textNode=Ef(Tf.opt,Tf.textNode),Tf.textNode&&Kd(Tf,"ontext",Tf.textNode),Tf.textNode=""}function Ef(Tf,vf){return Tf.trim&&(vf=vf.trim()),Tf.normalize&&(vf=vf.replace(/\s+/g," ")),vf}function yf(Tf,vf){return gf(Tf),Tf.trackPosition&&(vf+=`
Line: `+Tf.line+`
Column: `+Tf.column+`
Char: `+Tf.c),vf=new Error(vf),Tf.error=vf,Kd(Tf,"onerror",vf),Tf}function xf(Tf){return Tf.sawRoot&&!Tf.closedRoot&&Af(Tf,"Unclosed root tag"),Tf.state!==Yd.BEGIN&&Tf.state!==Yd.BEGIN_WHITESPACE&&Tf.state!==Yd.TEXT&&yf(Tf,"Unexpected end"),gf(Tf),Tf.c="",Tf.closed=!0,Kd(Tf,"onend"),od.call(Tf,Tf.strict,Tf.opt),Tf}function Af(Tf,vf){if(typeof Tf!="object"||!(Tf instanceof od))throw new Error("bad call to strictFail");Tf.strict&&yf(Tf,vf)}function Lf(Tf){Tf.strict||(Tf.tagName=Tf.tagName[Tf.looseCase]());var vf=Tf.tags[Tf.tags.length-1]||Tf,Gf=Tf.tag={name:Tf.tagName,attributes:{}};Tf.opt.xmlns&&(Gf.ns=vf.ns),Tf.attribList.length=0,bf(Tf,"onopentagstart",Gf)}function Xf(Tf,vf){var Gf=Tf.indexOf(":"),Jf=Gf<0?["",Tf]:Tf.split(":"),gh=Jf[0],th=Jf[1];return vf&&Tf==="xmlns"&&(gh="xmlns",th=""),{prefix:gh,local:th}}function ih(Tf){if(Tf.strict||(Tf.attribName=Tf.attribName[Tf.looseCase]()),Tf.attribList.indexOf(Tf.attribName)!==-1||Tf.tag.attributes.hasOwnProperty(Tf.attribName)){Tf.attribName=Tf.attribValue="";return}if(Tf.opt.xmlns){var vf=Xf(Tf.attribName,!0),Gf=vf.prefix,Jf=vf.local;if(Gf==="xmlns")if(Jf==="xml"&&Tf.attribValue!==Nd)Af(Tf,"xml: prefix must be bound to "+Nd+`
Actual: `+Tf.attribValue);else if(Jf==="xmlns"&&Tf.attribValue!==Id)Af(Tf,"xmlns: prefix must be bound to "+Id+`
Actual: `+Tf.attribValue);else{var gh=Tf.tag,th=Tf.tags[Tf.tags.length-1]||Tf;gh.ns===th.ns&&(gh.ns=Object.create(th.ns)),gh.ns[Jf]=Tf.attribValue}Tf.attribList.push([Tf.attribName,Tf.attribValue])}else Tf.tag.attributes[Tf.attribName]=Tf.attribValue,bf(Tf,"onattribute",{name:Tf.attribName,value:Tf.attribValue});Tf.attribName=Tf.attribValue=""}function Zf(Tf,vf){if(Tf.opt.xmlns){var Gf=Tf.tag,Jf=Xf(Tf.tagName);Gf.prefix=Jf.prefix,Gf.local=Jf.local,Gf.uri=Gf.ns[Jf.prefix]||"",Gf.prefix&&!Gf.uri&&(Af(Tf,"Unbound namespace prefix: "+JSON.stringify(Tf.tagName)),Gf.uri=Jf.prefix);var gh=Tf.tags[Tf.tags.length-1]||Tf;Gf.ns&&gh.ns!==Gf.ns&&Object.keys(Gf.ns).forEach(function(dh){bf(Tf,"onopennamespace",{prefix:dh,uri:Gf.ns[dh]})});for(var th=0,Pf=Tf.attribList.length;th<Pf;th++){var uh=Tf.attribList[th],xh=uh[0],Qf=uh[1],Nf=Xf(xh,!0),$f=Nf.prefix,Wf=Nf.local,vh=$f===""?"":Gf.ns[$f]||"",Th={name:xh,value:Qf,prefix:$f,local:Wf,uri:vh};$f&&$f!=="xmlns"&&!vh&&(Af(Tf,"Unbound namespace prefix: "+JSON.stringify($f)),Th.uri=$f),Tf.tag.attributes[xh]=Th,bf(Tf,"onattribute",Th)}Tf.attribList.length=0}Tf.tag.isSelfClosing=!!vf,Tf.sawRoot=!0,Tf.tags.push(Tf.tag),bf(Tf,"onopentag",Tf.tag),vf||(!Tf.noscript&&Tf.tagName.toLowerCase()==="script"?Tf.state=Yd.SCRIPT:Tf.state=Yd.TEXT,Tf.tag=null,Tf.tagName=""),Tf.attribName=Tf.attribValue="",Tf.attribList.length=0}function jf(Tf){if(!Tf.tagName){Af(Tf,"Weird empty close tag."),Tf.textNode+="</>",Tf.state=Yd.TEXT;return}if(Tf.script){if(Tf.tagName!=="script"){Tf.script+="</"+Tf.tagName+">",Tf.tagName="",Tf.state=Yd.SCRIPT;return}bf(Tf,"onscript",Tf.script),Tf.script=""}var vf=Tf.tags.length,Gf=Tf.tagName;Tf.strict||(Gf=Gf[Tf.looseCase]());for(var Jf=Gf;vf--;){var gh=Tf.tags[vf];if(gh.name!==Jf)Af(Tf,"Unexpected close tag");else break}if(vf<0){Af(Tf,"Unmatched closing tag: "+Tf.tagName),Tf.textNode+="</"+Tf.tagName+">",Tf.state=Yd.TEXT;return}Tf.tagName=Gf;for(var th=Tf.tags.length;th-- >vf;){var Pf=Tf.tag=Tf.tags.pop();Tf.tagName=Tf.tag.name,bf(Tf,"onclosetag",Tf.tagName);var uh={};for(var xh in Pf.ns)uh[xh]=Pf.ns[xh];var Qf=Tf.tags[Tf.tags.length-1]||Tf;Tf.opt.xmlns&&Pf.ns!==Qf.ns&&Object.keys(Pf.ns).forEach(function(Nf){var $f=Pf.ns[Nf];bf(Tf,"onclosenamespace",{prefix:Nf,uri:$f})})}vf===0&&(Tf.closedRoot=!0),Tf.tagName=Tf.attribValue=Tf.attribName="",Tf.attribList.length=0,Tf.state=Yd.TEXT}function If(Tf){var vf=Tf.entity,Gf=vf.toLowerCase(),Jf,gh="";return Tf.ENTITIES[vf]?Tf.ENTITIES[vf]:Tf.ENTITIES[Gf]?Tf.ENTITIES[Gf]:(vf=Gf,vf.charAt(0)==="#"&&(vf.charAt(1)==="x"?(vf=vf.slice(2),Jf=parseInt(vf,16),gh=Jf.toString(16)):(vf=vf.slice(1),Jf=parseInt(vf,10),gh=Jf.toString(10))),vf=vf.replace(/^0+/,""),isNaN(Jf)||gh.toLowerCase()!==vf?(Af(Tf,"Invalid character entity"),"&"+Tf.entity+";"):String.fromCodePoint(Jf))}function Uf(Tf,vf){vf==="<"?(Tf.state=Yd.OPEN_WAKA,Tf.startTagPosition=Tf.position):Hd(vf)||(Af(Tf,"Non-whitespace before first tag."),Tf.textNode=vf,Tf.state=Yd.TEXT)}function qf(Tf,vf){var Gf="";return vf<Tf.length&&(Gf=Tf.charAt(vf)),Gf}function Kf(Tf){var vf=this;if(this.error)throw this.error;if(vf.closed)return yf(vf,"Cannot write after close. Assign an onready handler.");if(Tf===null)return xf(vf);typeof Tf=="object"&&(Tf=Tf.toString());for(var Gf=0,Jf="";Jf=qf(Tf,Gf++),vf.c=Jf,!!Jf;)switch(vf.trackPosition&&(vf.position++,Jf===`
`?(vf.line++,vf.column=0):vf.column++),vf.state){case Yd.BEGIN:if(vf.state=Yd.BEGIN_WHITESPACE,Jf==="\uFEFF")continue;Uf(vf,Jf);continue;case Yd.BEGIN_WHITESPACE:Uf(vf,Jf);continue;case Yd.TEXT:if(vf.sawRoot&&!vf.closedRoot){for(var gh=Gf-1;Jf&&Jf!=="<"&&Jf!=="&";)Jf=qf(Tf,Gf++),Jf&&vf.trackPosition&&(vf.position++,Jf===`
`?(vf.line++,vf.column=0):vf.column++);vf.textNode+=Tf.substring(gh,Gf-1)}Jf==="<"&&!(vf.sawRoot&&vf.closedRoot&&!vf.strict)?(vf.state=Yd.OPEN_WAKA,vf.startTagPosition=vf.position):(!Hd(Jf)&&(!vf.sawRoot||vf.closedRoot)&&Af(vf,"Text data outside of root node."),Jf==="&"?vf.state=Yd.TEXT_ENTITY:vf.textNode+=Jf);continue;case Yd.SCRIPT:Jf==="<"?vf.state=Yd.SCRIPT_ENDING:vf.script+=Jf;continue;case Yd.SCRIPT_ENDING:Jf==="/"?vf.state=Yd.CLOSE_TAG:(vf.script+="<"+Jf,vf.state=Yd.SCRIPT);continue;case Yd.OPEN_WAKA:if(Jf==="!")vf.state=Yd.SGML_DECL,vf.sgmlDecl="";else if(!Hd(Jf))if(Qd(jd,Jf))vf.state=Yd.OPEN_TAG,vf.tagName=Jf;else if(Jf==="/")vf.state=Yd.CLOSE_TAG,vf.tagName="";else if(Jf==="?")vf.state=Yd.PROC_INST,vf.procInstName=vf.procInstBody="";else{if(Af(vf,"Unencoded <"),vf.startTagPosition+1<vf.position){var th=vf.position-vf.startTagPosition;Jf=new Array(th).join(" ")+Jf}vf.textNode+="<"+Jf,vf.state=Yd.TEXT}continue;case Yd.SGML_DECL:if(vf.sgmlDecl+Jf==="--"){vf.state=Yd.COMMENT,vf.comment="",vf.sgmlDecl="";continue}vf.doctype&&vf.doctype!==!0&&vf.sgmlDecl?(vf.state=Yd.DOCTYPE_DTD,vf.doctype+="<!"+vf.sgmlDecl+Jf,vf.sgmlDecl=""):(vf.sgmlDecl+Jf).toUpperCase()===vd?(bf(vf,"onopencdata"),vf.state=Yd.CDATA,vf.sgmlDecl="",vf.cdata=""):(vf.sgmlDecl+Jf).toUpperCase()===Ad?(vf.state=Yd.DOCTYPE,(vf.doctype||vf.sawRoot)&&Af(vf,"Inappropriately located doctype declaration"),vf.doctype="",vf.sgmlDecl=""):Jf===">"?(bf(vf,"onsgmldeclaration",vf.sgmlDecl),vf.sgmlDecl="",vf.state=Yd.TEXT):(Gd(Jf)&&(vf.state=Yd.SGML_DECL_QUOTED),vf.sgmlDecl+=Jf);continue;case Yd.SGML_DECL_QUOTED:Jf===vf.q&&(vf.state=Yd.SGML_DECL,vf.q=""),vf.sgmlDecl+=Jf;continue;case Yd.DOCTYPE:Jf===">"?(vf.state=Yd.TEXT,bf(vf,"ondoctype",vf.doctype),vf.doctype=!0):(vf.doctype+=Jf,Jf==="["?vf.state=Yd.DOCTYPE_DTD:Gd(Jf)&&(vf.state=Yd.DOCTYPE_QUOTED,vf.q=Jf));continue;case Yd.DOCTYPE_QUOTED:vf.doctype+=Jf,Jf===vf.q&&(vf.q="",vf.state=Yd.DOCTYPE);continue;case Yd.DOCTYPE_DTD:Jf==="]"?(vf.doctype+=Jf,vf.state=Yd.DOCTYPE):Jf==="<"?(vf.state=Yd.OPEN_WAKA,vf.startTagPosition=vf.position):Gd(Jf)?(vf.doctype+=Jf,vf.state=Yd.DOCTYPE_DTD_QUOTED,vf.q=Jf):vf.doctype+=Jf;continue;case Yd.DOCTYPE_DTD_QUOTED:vf.doctype+=Jf,Jf===vf.q&&(vf.state=Yd.DOCTYPE_DTD,vf.q="");continue;case Yd.COMMENT:Jf==="-"?vf.state=Yd.COMMENT_ENDING:vf.comment+=Jf;continue;case Yd.COMMENT_ENDING:Jf==="-"?(vf.state=Yd.COMMENT_ENDED,vf.comment=Ef(vf.opt,vf.comment),vf.comment&&bf(vf,"oncomment",vf.comment),vf.comment=""):(vf.comment+="-"+Jf,vf.state=Yd.COMMENT);continue;case Yd.COMMENT_ENDED:Jf!==">"?(Af(vf,"Malformed comment"),vf.comment+="--"+Jf,vf.state=Yd.COMMENT):vf.doctype&&vf.doctype!==!0?vf.state=Yd.DOCTYPE_DTD:vf.state=Yd.TEXT;continue;case Yd.CDATA:Jf==="]"?vf.state=Yd.CDATA_ENDING:vf.cdata+=Jf;continue;case Yd.CDATA_ENDING:Jf==="]"?vf.state=Yd.CDATA_ENDING_2:(vf.cdata+="]"+Jf,vf.state=Yd.CDATA);continue;case Yd.CDATA_ENDING_2:Jf===">"?(vf.cdata&&bf(vf,"oncdata",vf.cdata),bf(vf,"onclosecdata"),vf.cdata="",vf.state=Yd.TEXT):Jf==="]"?vf.cdata+="]":(vf.cdata+="]]"+Jf,vf.state=Yd.CDATA);continue;case Yd.PROC_INST:Jf==="?"?vf.state=Yd.PROC_INST_ENDING:Hd(Jf)?vf.state=Yd.PROC_INST_BODY:vf.procInstName+=Jf;continue;case Yd.PROC_INST_BODY:if(!vf.procInstBody&&Hd(Jf))continue;Jf==="?"?vf.state=Yd.PROC_INST_ENDING:vf.procInstBody+=Jf;continue;case Yd.PROC_INST_ENDING:Jf===">"?(bf(vf,"onprocessinginstruction",{name:vf.procInstName,body:vf.procInstBody}),vf.procInstName=vf.procInstBody="",vf.state=Yd.TEXT):(vf.procInstBody+="?"+Jf,vf.state=Yd.PROC_INST_BODY);continue;case Yd.OPEN_TAG:Qd(Fd,Jf)?vf.tagName+=Jf:(Lf(vf),Jf===">"?Zf(vf):Jf==="/"?vf.state=Yd.OPEN_TAG_SLASH:(Hd(Jf)||Af(vf,"Invalid character in tag name"),vf.state=Yd.ATTRIB));continue;case Yd.OPEN_TAG_SLASH:Jf===">"?(Zf(vf,!0),jf(vf)):(Af(vf,"Forward-slash in opening tag not followed by >"),vf.state=Yd.ATTRIB);continue;case Yd.ATTRIB:if(Hd(Jf))continue;Jf===">"?Zf(vf):Jf==="/"?vf.state=Yd.OPEN_TAG_SLASH:Qd(jd,Jf)?(vf.attribName=Jf,vf.attribValue="",vf.state=Yd.ATTRIB_NAME):Af(vf,"Invalid attribute name");continue;case Yd.ATTRIB_NAME:Jf==="="?vf.state
`&&Ra[ud]!=="\r";ud++)pd+=Ra[ud];if(pd=pd.trim(),pd[pd.length-1]==="/"&&(pd=pd.substring(0,pd.length-1),ud--),!validateTagName(pd)){let vd;return pd.trim().length===0?vd="Invalid space after '<'.":vd="Tag '"+pd+"' is an invalid name.",getErrorObject("InvalidTag",vd,getLineNumberForPosition(Ra,ud))}const fd=readAttributeStr(Ra,ud);if(fd===!1)return getErrorObject("InvalidAttr","Attributes for '"+pd+"' have open quote.",getLineNumberForPosition(Ra,ud));let md=fd.value;if(ud=fd.index,md[md.length-1]==="/"){const vd=ud-md.length;md=md.substring(0,md.length-1);const Ad=validateAttributeString(md,qa);if(Ad===!0)od=!0;else return getErrorObject(Ad.err.code,Ad.err.msg,getLineNumberForPosition(Ra,vd+Ad.err.line))}else if(dd)if(fd.tagClosed){if(md.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+pd+"' can't have attributes or invalid starting.",getLineNumberForPosition(Ra,cd));if(nd.length===0)return getErrorObject("InvalidTag","Closing tag '"+pd+"' has not been opened.",getLineNumberForPosition(Ra,cd));{const vd=nd.pop();if(pd!==vd.tagName){let Ad=getLineNumberForPosition(Ra,vd.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+vd.tagName+"' (opened in line "+Ad.line+", col "+Ad.col+") instead of closing tag '"+pd+"'.",getLineNumberForPosition(Ra,cd))}nd.length==0&&(ld=!0)}}else return getErrorObject("InvalidTag","Closing tag '"+pd+"' doesn't have proper closing.",getLineNumberForPosition(Ra,ud));else{const vd=validateAttributeString(md,qa);if(vd!==!0)return getErrorObject(vd.err.code,vd.err.msg,getLineNumberForPosition(Ra,ud-md.length+vd.err.line));if(ld===!0)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(Ra,ud));qa.unpairedTags.indexOf(pd)!==-1||nd.push({tagName:pd,tagStartPos:cd}),od=!0}for(ud++;ud<Ra.length;ud++)if(Ra[ud]==="<")if(Ra[ud+1]==="!"){ud++,ud=readCommentAndCDATA(Ra,ud);continue}else if(Ra[ud+1]==="?"){if(ud=readPI(Ra,++ud),ud.err)return ud}else break;else if(Ra[ud]==="&"){const vd=validateAmpersand(Ra,ud);if(vd==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(Ra,ud));ud=vd}else if(ld===!0&&!isWhiteSpace(Ra[ud]))return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(Ra,ud));Ra[ud]==="<"&&ud--}}else{if(isWhiteSpace(Ra[ud]))continue;return getErrorObject("InvalidChar","char '"+Ra[ud]+"' is not expected.",getLineNumberForPosition(Ra,ud))}if(od){if(nd.length==1)return getErrorObject("InvalidTag","Unclosed tag '"+nd[0].tagName+"'.",getLineNumberForPosition(Ra,nd[0].tagStartPos));if(nd.length>0)return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(nd.map(ud=>ud.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 nd=qa;for(;qa<Ra.length;qa++)if(Ra[qa]=="?"||Ra[qa]==" "){const od=Ra.substr(nd,qa-nd);if(qa>5&&od==="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 nd=1;for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="<")nd++;else if(Ra[qa]===">"&&(nd--,nd===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 nd="",od="",ld=!1;for(;qa<Ra.length;qa++){if(Ra[qa]===doubleQuote||Ra[qa]===singleQuote)od===""?od=Ra[qa]:od!==Ra[qa]||(od="");else if(Ra[qa]===">"&&od===""){ld=!0;break}nd+=Ra[qa]}return od!==""?!1:{value:nd,index:qa,tagClosed:ld}}const validAttrStrRegxp=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString(Ra,qa){const nd=util$3.getAllMatches(Ra,validAttrStrRegxp),od={};for(let ld=0;ld<nd.length;ld++){if(nd[ld][1].length===0)return getErrorObject("InvalidAttr","Attribute '"+nd[ld][2]+"' has no space in starting.",getPositionFromMatch(nd[ld]));if(nd[ld][3]!==void 0&&nd[ld][4]===void 0)return getErrorObject("InvalidAttr","Attribute '"+nd[ld][2]+"' is without value.",getPositionFromMatch(nd[ld]));if(nd[ld][3]===void 0&&!qa.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute '"+nd[ld][2]+"' is not allowed.",getPositionFromMatch(nd[ld]));const ud=nd[ld][2];if(!validateAttrName(ud))return getErrorObject("InvalidAttr","Attribute '"+ud+"' is an invalid name.",getPositionFromMatch(nd[ld]));if(!od.hasOwnProperty(ud))od[ud]=1;else return getErrorObject("InvalidAttr","Attribute '"+ud+"' is repeated.",getPositionFromMatch(nd[ld]))}return!0}function validateNumberAmpersand(Ra,qa){let nd=/\d/;for(Ra[qa]==="x"&&(qa++,nd=/[\da-fA-F]/);qa<Ra.length;qa++){if(Ra[qa]===";")return qa;if(!Ra[qa].match(nd))break}return-1}function validateAmpersand(Ra,qa){if(qa++,Ra[qa]===";")return-1;if(Ra[qa]==="#")return qa++,validateNumberAmpersand(Ra,qa);let nd=0;for(;qa<Ra.length;qa++,nd++)if(!(Ra[qa].match(/\w/)&&nd<20)){if(Ra[qa]===";")break;return-1}return qa}function getErrorObject(Ra,qa,nd){return{err:{code:Ra,msg:qa,line:nd.line||nd,col:nd.col}}}function validateAttrName(Ra){return util$3.isName(Ra)}function validateTagName(Ra){return util$3.isName(Ra)}function getLineNumberForPosition(Ra,qa){const nd=Ra.substring(0,qa).split(/\r?\n/);return{line:nd.length,col:nd[nd.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,nd){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,nd){qa==="__proto__"&&(qa="#__proto__"),this.child.push({[qa]:nd})}addChild(qa)
`);const qa=new xmlNode("!xml");let nd=qa,od="",ld="";for(let ud=0;ud<Ra.length;ud++)if(Ra[ud]==="<")if(Ra[ud+1]==="/"){const dd=findClosingIndex(Ra,">",ud,"Closing Tag is not closed.");let pd=Ra.substring(ud+2,dd).trim();if(this.options.removeNSPrefix){const vd=pd.indexOf(":");vd!==-1&&(pd=pd.substr(vd+1))}this.options.transformTagName&&(pd=this.options.transformTagName(pd)),nd&&(od=this.saveTextToParentTag(od,nd,ld));const fd=ld.substring(ld.lastIndexOf(".")+1);if(pd&&this.options.unpairedTags.indexOf(pd)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${pd}>`);let md=0;fd&&this.options.unpairedTags.indexOf(fd)!==-1?(md=ld.lastIndexOf(".",ld.lastIndexOf(".")-1),this.tagsNodeStack.pop()):md=ld.lastIndexOf("."),ld=ld.substring(0,md),nd=this.tagsNodeStack.pop(),od="",ud=dd}else if(Ra[ud+1]==="?"){let dd=readTagExp(Ra,ud,!1,"?>");if(!dd)throw new Error("Pi Tag is not closed.");if(od=this.saveTextToParentTag(od,nd,ld),!(this.options.ignoreDeclaration&&dd.tagName==="?xml"||this.options.ignorePiTags)){const pd=new xmlNode(dd.tagName);pd.add(this.options.textNodeName,""),dd.tagName!==dd.tagExp&&dd.attrExpPresent&&(pd[":@"]=this.buildAttributesMap(dd.tagExp,ld,dd.tagName)),this.addChild(nd,pd,ld)}ud=dd.closeIndex+1}else if(Ra.substr(ud+1,3)==="!--"){const dd=findClosingIndex(Ra,"-->",ud+4,"Comment is not closed.");if(this.options.commentPropName){const pd=Ra.substring(ud+4,dd-2);od=this.saveTextToParentTag(od,nd,ld),nd.add(this.options.commentPropName,[{[this.options.textNodeName]:pd}])}ud=dd}else if(Ra.substr(ud+1,2)==="!D"){const dd=readDocType(Ra,ud);this.docTypeEntities=dd.entities,ud=dd.i}else if(Ra.substr(ud+1,2)==="!["){const dd=findClosingIndex(Ra,"]]>",ud,"CDATA is not closed.")-2,pd=Ra.substring(ud+9,dd);od=this.saveTextToParentTag(od,nd,ld);let fd=this.parseTextData(pd,nd.tagname,ld,!0,!1,!0,!0);fd==null&&(fd=""),this.options.cdataPropName?nd.add(this.options.cdataPropName,[{[this.options.textNodeName]:pd}]):nd.add(this.options.textNodeName,fd),ud=dd+2}else{let dd=readTagExp(Ra,ud,this.options.removeNSPrefix),pd=dd.tagName;const fd=dd.rawTagName;let md=dd.tagExp,vd=dd.attrExpPresent,Ad=dd.closeIndex;this.options.transformTagName&&(pd=this.options.transformTagName(pd)),nd&&od&&nd.tagname!=="!xml"&&(od=this.saveTextToParentTag(od,nd,ld,!1));const Nd=nd;if(Nd&&this.options.unpairedTags.indexOf(Nd.tagname)!==-1&&(nd=this.tagsNodeStack.pop(),ld=ld.substring(0,ld.lastIndexOf("."))),pd!==qa.tagname&&(ld+=ld?"."+pd:pd),this.isItStopNode(this.options.stopNodes,ld,pd)){let Id="";if(md.length>0&&md.lastIndexOf("/")===md.length-1)pd[pd.length-1]==="/"?(pd=pd.substr(0,pd.length-1),ld=ld.substr(0,ld.length-1),md=pd):md=md.substr(0,md.length-1),ud=dd.closeIndex;else if(this.options.unpairedTags.indexOf(pd)!==-1)ud=dd.closeIndex;else{const jd=this.readStopNodeData(Ra,fd,Ad+1);if(!jd)throw new Error(`Unexpected end of ${fd}`);ud=jd.i,Id=jd.tagContent}const kd=new xmlNode(pd);pd!==md&&vd&&(kd[":@"]=this.buildAttributesMap(md,ld,pd)),Id&&(Id=this.parseTextData(Id,pd,ld,!0,vd,!0,!0)),ld=ld.substr(0,ld.lastIndexOf(".")),kd.add(this.options.textNodeName,Id),this.addChild(nd,kd,ld)}else{if(md.length>0&&md.lastIndexOf("/")===md.length-1){pd[pd.length-1]==="/"?(pd=pd.substr(0,pd.length-1),ld=ld.substr(0,ld.length-1),md=pd):md=md.substr(0,md.length-1),this.options.transformTagName&&(pd=this.options.transformTagName(pd));const Id=new xmlNode(pd);pd!==md&&vd&&(Id[":@"]=this.buildAttributesMap(md,ld,pd)),this.addChild(nd,Id,ld),ld=ld.substr(0,ld.lastIndexOf("."))}else{const Id=new xmlNode(pd);this.tagsNodeStack.push(nd),pd!==md&&vd&&(Id[":@"]=this.buildAttributesMap(md,ld,pd)),this.addChild(nd,Id,ld),nd=Id}od="",ud=Ad}}else od+=Ra[ud];return qa.child};function addChild(Ra,qa,nd){const od=this.options.updateTag(qa.tagname,nd,qa[":@"]);od===!1||(typeof od=="string"&&(qa.tagname=od),Ra.addChild(qa))}const replaceEntitiesValue$1=function(Ra){if(this.options.processEntities){for(let qa in this.docTypeEntities){const nd=this.docTypeEntities[qa];Ra=Ra.replace(nd.regx,nd.val)}for(let qa in this.lastEntities){const nd=this.lastEntit
`;function toXml(Ra,qa){let nd="";return qa.format&&qa.indentBy.length>0&&(nd=EOL),arrToStr(Ra,qa,"",nd)}function arrToStr(Ra,qa,nd,od){let ld="",ud=!1;for(let cd=0;cd<Ra.length;cd++){const dd=Ra[cd],pd=propName(dd);if(pd===void 0)continue;let fd="";if(nd.length===0?fd=pd:fd=`${nd}.${pd}`,pd===qa.textNodeName){let Id=dd[pd];isStopNode(fd,qa)||(Id=qa.tagValueProcessor(pd,Id),Id=replaceEntitiesValue(Id,qa)),ud&&(ld+=od),ld+=Id,ud=!1;continue}else if(pd===qa.cdataPropName){ud&&(ld+=od),ld+=`<![CDATA[${dd[pd][0][qa.textNodeName]}]]>`,ud=!1;continue}else if(pd===qa.commentPropName){ld+=od+`<!--${dd[pd][0][qa.textNodeName]}-->`,ud=!0;continue}else if(pd[0]==="?"){const Id=attr_to_str(dd[":@"],qa),kd=pd==="?xml"?"":od;let jd=dd[pd][0][qa.textNodeName];jd=jd.length!==0?" "+jd:"",ld+=kd+`<${pd}${jd}${Id}?>`,ud=!0;continue}let md=od;md!==""&&(md+=qa.indentBy);const vd=attr_to_str(dd[":@"],qa),Ad=od+`<${pd}${vd}`,Nd=arrToStr(dd[pd],qa,fd,md);qa.unpairedTags.indexOf(pd)!==-1?qa.suppressUnpairedNode?ld+=Ad+">":ld+=Ad+"/>":(!Nd||Nd.length===0)&&qa.suppressEmptyNode?ld+=Ad+"/>":Nd&&Nd.endsWith(">")?ld+=Ad+`>${Nd}${od}</${pd}>`:(ld+=Ad+">",Nd&&od!==""&&(Nd.includes("/>")||Nd.includes("</"))?ld+=od+qa.indentBy+Nd+od:ld+=Nd,ld+=`</${pd}>`),ud=!0}return ld}function propName(Ra){const qa=Object.keys(Ra);for(let nd=0;nd<qa.length;nd++){const od=qa[nd];if(Ra.hasOwnProperty(od)&&od!==":@")return od}}function attr_to_str(Ra,qa){let nd="";if(Ra&&!qa.ignoreAttributes)for(let od in Ra){if(!Ra.hasOwnProperty(od))continue;let ld=qa.attributeValueProcessor(od,Ra[od]);ld=replaceEntitiesValue(ld,qa),ld===!0&&qa.suppressBooleanAttributes?nd+=` ${od.substr(qa.attributeNamePrefix.length)}`:nd+=` ${od.substr(qa.attributeNamePrefix.length)}="${ld}"`}return nd}function isStopNode(Ra,qa){Ra=Ra.substr(0,Ra.length-qa.textNodeName.length-1);let nd=Ra.substr(Ra.lastIndexOf(".")+1);for(let od in qa.stopNodes)if(qa.stopNodes[od]===Ra||qa.stopNodes[od]==="*."+nd)return!0;return!1}function replaceEntitiesValue(Ra,qa){if(Ra&&Ra.length>0&&qa.processEntities)for(let nd=0;nd<qa.entities.length;nd++){const od=qa.entities[nd];Ra=Ra.replace(od.regex,od.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,nd){let od="",ld="";const ud=nd.join(".");for(let cd in Ra)if(Object.prototype.hasOwnProperty.call(Ra,cd))if(typeof Ra[cd]>"u")this.isAttribute(cd)&&(ld+="");else if(Ra[cd]===null)this.isAttribute(cd)?ld+="":cd[0]==="?"?ld+=this.indentate(qa)+"<"+cd+"?"+this.tagEndChar:ld+=this.indentate(qa)+"<"+cd+"/"+this.tagEndChar;else if(Ra[cd]instanceof Date)ld+=this.buildTextValNode(Ra[cd],cd,"",qa);else if(typeof Ra[cd]!="object"){const dd=this.isAttribute(cd);if(dd&&!this.ignoreAttributesFn(dd,ud))od+=this.buildAttrPairStr(dd,""+Ra[cd]);else if(!dd)if(cd===this.options.textNodeName){let pd=this.options.tagValueProcessor(cd,""+Ra[cd]);ld+=this.replaceEntitiesValue(pd)}else ld+=this.buildTextValNode(Ra[cd],cd,"",qa)}else if(Array.isArray(Ra[cd])){const dd=Ra[cd].length;let pd="",fd="";for(let md=0;md<dd;md++){const vd=Ra[cd][md];if(!(typeof vd>"u"))if(vd===null)cd[0]==="?"?ld+=this.indentate(qa)+"<"+cd+"?"+this.tagEndChar:ld+=this.indentate(qa)+"<"+cd+"/"+this.tagEndChar;else if(typeof vd=="object")if(this.options.oneListGroup){const Ad=this.j2x(vd,qa+1,nd.concat(cd));pd+=Ad.val,this.options.attributesGroupName&&vd.hasOwnProperty(this.options.attributesGroupName)&&(fd+=Ad.attrStr)}else pd+=this.processTextOrObjNode(vd,cd,qa,nd);else if(this.options.oneListGroup){let Ad=this.options.tagValueProcessor(cd,vd);Ad=this.replaceEntitiesValue(Ad),pd+=Ad}else pd+=this.buildTextValNode(vd,cd,"",qa)}this.options.oneListGroup&&(pd=this.buildObjectNode(pd,cd,fd,qa)),ld+=pd}else if(this.options.attributesGroupName&&cd===this.options.attributesGroupName){const dd=Object.keys(Ra[cd]),pd=dd.length;for(let fd=0;fd<pd;fd++)od+=this.buildAttrPairStr(dd[fd],""+Ra[cd][dd[fd]])}else ld+=this.processTextOrObjNode(Ra[cd],cd,qa,nd);return{attrStr:od,val:ld}};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,nd,od){const ld=this.j2x(Ra,nd+1,od.concat(qa));return Ra[this.options.textNodeName]!==void 0&&Object.keys(Ra).length===1?this.buildTextValNode(Ra[this.options.textNodeName],qa,ld.attrStr,nd):this.buildObjectNode(ld.val,qa,ld.attrStr,nd)}Builder.prototype.buildObjectNode=function(Ra,qa,nd,od){if(Ra==="")return qa[0]==="?"?this.indentate(od)+"<"+qa+nd+"?"+this.tagEndChar:this.indentate(od)+"<"+qa+nd+this.closeTag(qa)+this.tagEndChar;{let ld="</"+qa+this.tagEndChar,ud="";return qa[0]==="?"&&(ud="?",ld=""),(nd||nd==="")&&Ra.indexOf("<")===-1?this.indentate(od)+"<"+qa+nd+ud+">"+Ra+ld:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&ud.length===0?this.indentate(od)+`<!--${Ra}-->`+this.newLine:this.indentate(od)+"<"+qa+nd+ud+this.tagEndChar+Ra+this.indentate(od)+ld}};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,nd,od){if(this.options.cdataPropName!==!1&&qa===this.options.cdataPropName)return this.indentate(od)+`<![CDATA[${Ra}]]>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(od)+`<!--${Ra}-->`+this.newLine;if(qa[0]==="?")return this.indentate(od)+"<"+qa+nd+"?"+this.tagEndChar;{let ld=this.options.tagValueProcessor(qa,Ra);return ld=this.replaceEntitiesValue(ld),ld===""?this.indentate(od)+"<"+qa+nd+this.closeTag(qa)+this.tagEndChar:this.indentate(od)+"<"+qa+nd+">"+ld+"</"+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,nd=pathBrowserify.extname,od=/^\s*([^;\s]*)(?:;|\s|$)/,ld=/^text\//i;Ra.charset=ud,Ra.charsets={lookup:ud},Ra.contentType=cd,Ra.extension=dd,Ra.extensions=Object.create(null),Ra.lookup=pd,Ra.types=Object.create(null),fd(Ra.extensions,Ra.types);function ud(md){if(!md||typeof md!="string")return!1;var vd=od.exec(md),Ad=vd&&qa[vd[1].toLowerCase()];return Ad&&Ad.charset?Ad.charset:vd&&ld.test(vd[1])?"UTF-8":!1}function cd(md){if(!md||typeof md!="string")return!1;var vd=md.indexOf("/")===-1?Ra.lookup(md):md;if(!vd)return!1;if(vd.indexOf("charset")===-1){var Ad=Ra.charset(vd);Ad&&(vd+="; charset="+Ad.toLowerCase())}return vd}function dd(md){if(!md||typeof md!="string")return!1;var vd=od.exec(md),Ad=vd&&Ra.extensions[vd[1].toLowerCase()];return!Ad||!Ad.length?!1:Ad[0]}function pd(md){if(!md||typeof md!="string")return!1;var vd=nd("x."+md).toLowerCase().substr(1);return vd&&Ra.types[vd]||!1}function fd(md,vd){var Ad=["nginx","apache",void 0,"iana"];Object.keys(qa).forEach(function(Id){var kd=qa[Id],jd=kd.extensions;if(!(!jd||!jd.length)){md[Id]=jd;for(var Fd=0;Fd<jd.length;Fd++){var Md=jd[Fd];if(vd[Md]){var Ld=Ad.indexOf(qa[vd[Md]].source),Hd=Ad.indexOf(kd.source);if(vd[Md]!=="application/octet-stream"&&(Ld>Hd||Ld===Hd&&vd[Md].substr(0,12)==="application/"))continue}vd[Md]=Id}}})}})(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,nd)=>{const od=Buffer$4.from(nd);if(od.length===1&&("A"<=nd&&nd<="Z"||"a"<=nd&&nd<="z"||"0"<=nd&&nd<="9"||nd==="_"||nd==="."||nd==="~"||nd==="-"))return qa=qa+nd,qa;for(const ld of od)qa=qa+"%"+ld.toString(16).toUpperCase();return qa},"")}function uriResourceEscape(Ra){return uriEscape(Ra).replace(/%2F/g,"/")}function getScope(Ra,qa,nd="s3"){return`${makeDateShort(qa)}/${Ra}/${nd}/aws4_request`}function isAmazonEndpoint(Ra){return Ra==="s3.amazonaws.com"||Ra==="s3.cn-north-1.amazonaws.com.cn"}function isVirtualHostStyle(Ra,qa,nd,od){return qa==="https:"&&nd.includes(".")?!1:isAmazonEndpoint(Ra)||!od}function isValidIP(Ra){return ipaddr.isValid(Ra)}function isValidEndpoint(Ra){return isValidDomain(Ra)||isValidIP(Ra)}function isValidDomain(Ra){if(!isString(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 nd of qa)if(Ra.includes(nd))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(Ra)?0<=Ra&&Ra<=65535:!1}function isValidBucketName(Ra){return!isString(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(Ra)||Ra.length>1024)}function isNumber(Ra){return typeof Ra=="number"}function isFunction(Ra){return typeof Ra=="function"}function isString(Ra){return typeof Ra=="string"}function isObject(Ra){return typeof Ra=="object"&&Ra!==null}function isReadableStream(Ra){return isObject(Ra)&&isFunction(Ra._read)}function isBoolean(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.slice(5,7)+qa.slice(8,10)}
`)+`
`,od.join(";").toLowerCase(),ld].join(`
`)}function getCredential(Ra,qa,nd,od="s3"){if(!isString(Ra))throw new TypeError('accessKey should be of type "string"');if(!isString(qa))throw new TypeError('region should be of type "string"');if(!isObject(nd))throw new TypeError('requestDate should be of type "object"');return`${Ra}/${getScope(qa,nd,od)}`}function getSignedHeaders(Ra){if(!isObject(Ra))throw new TypeError('request should be of type "object"');const qa=["authorization","content-length","content-type","user-agent"];return Object.keys(Ra).filter(nd=>!qa.includes(nd)).sort()}function getSigningKey(Ra,qa,nd,od="s3"){if(!isObject(Ra))throw new TypeError('date should be of type "object"');if(!isString(qa))throw new TypeError('region should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');const ld=makeDateShort(Ra);return(void 0)("sha256",(void 0)("sha256",(void 0)("sha256",(void 0)("sha256","AWS4"+nd).update(ld).digest()).update(qa).digest()).update(od).digest()).update("aws4_request").digest()}function getStringToSign(Ra,qa,nd,od="s3"){if(!isString(Ra))throw new TypeError('canonicalRequest should be of type "string"');if(!isObject(qa))throw new TypeError('requestDate should be of type "object"');if(!isString(nd))throw new TypeError('region should be of type "string"');const ld=(void 0)("sha256").update(Ra).digest("hex"),ud=getScope(nd,qa,od);return[signV4Algorithm,makeDateLong(qa),ud,ld].join(`
`)}function postPresignSignatureV4(Ra,qa,nd,od){if(!isString(Ra))throw new TypeError('region should be of type "string"');if(!isObject(qa))throw new TypeError('date should be of type "object"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(od))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(qa,Ra,nd)).update(od).digest("hex").toLowerCase()}function signV4(Ra,qa,nd,od,ld,ud,cd="s3"){if(!isObject(Ra))throw new TypeError('request should be of type "object"');if(!isString(qa))throw new TypeError('accessKey should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(od))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for signing");if(!nd)throw new SecretKeyRequiredError("secretKey is required for signing");const dd=getSignedHeaders(Ra.headers),pd=getCanonicalRequest(Ra.method,Ra.path,Ra.headers,dd,ud),fd=cd||"s3",md=getStringToSign(pd,ld,od,fd),vd=getSigningKey(ld,od,nd,fd),Ad=getCredential(qa,od,ld,fd),Nd=(void 0)("sha256",vd).update(md).digest("hex").toLowerCase();return`${signV4Algorithm} Credential=${Ad}, SignedHeaders=${dd.join(";").toLowerCase()}, Signature=${Nd}`}function presignSignatureV4(Ra,qa,nd,od,ld,ud,cd){if(!isObject(Ra))throw new TypeError('request should be of type "object"');if(!isString(qa))throw new TypeError('accessKey should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(ld))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!nd)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber(cd))throw new TypeError('expires should be of type "number"');if(cd<1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if(cd>604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const dd=makeDateLong(ud),pd=getSignedHeaders(Ra.headers),fd=getCredential(qa,ld,ud),md="UNSIGNED-PAYLOAD",vd=[];vd.push(`X-Amz-Algorithm=${signV4Algorithm}`),vd.push(`X-Amz-Credential=${uriEscape(fd)}`),vd.push(`X-Amz-Date=${dd}`),vd.push(`X-Amz-Expires=${cd}`),vd.push(`X-Amz-SignedHeaders=${uriEscape(pd.join(";").toLowerCase())}`),od&&vd.push(`X-Amz-Security-Token=${uriEscape(od)}`);const Ad=Ra.path.split("?")[0];let Nd=Ra.path.split("?")[1];Nd?Nd=Nd+"&"+vd.join("&"):Nd=vd.join("&");const Id=Ad+"?"+Nd,kd=getCanonicalRequest(Ra.method,Id,Ra.headers,pd,md),jd=getStringToSign(kd,ud,ld),Md=(void 0)("sha256",getSigningKey(ud,ld,nd)).update(jd).digest("hex").toLowerCase();return Ra.protocol+"//"+Ra.headers.host+Id+`&X-Amz-Signature=${Md}`}async function readAsBuffer(Ra){return new Promise((qa,nd)=>{const od=[];Ra.on("data",ld=>od.push(ld)).on("error",ld=>nd(ld)).on("end",()=>qa(Buffer$4.concat(od)))})}async function readAsString(Ra){return(await readAsBuffer(Ra)).toString()}async function drainResponse(Ra){return new Promise((qa,nd)=>{Ra.on("data",()=>{}).on("error",od=>nd(od)).on("end",()=>qa())})}function parseBucketRegion(Ra){return parseXml(Ra).LocationConstraint}const fxp=new fxp$2.XMLParser;function parseError(Ra,qa){let nd={};const od=fxp.parse(Ra);od.Error&&(nd=od.Error);const ld=new S3Error;return Object.entries(nd).forEach(([ud,cd])=>{ld[ud.toLowerCase()]=cd}),Object.entries(qa).forEach(([ud,cd])=>{ld[ud]=cd}),ld}async function parseResponseError(Ra){const qa=Ra.statusCode;let nd,od;qa===301?(nd="MovedPermanently",od="Moved Permanently"):qa===307?(nd="TemporaryRedirect",od="Are you using the correct endpoint URL?"):qa===403?(nd="AccessDenied",od="Valid and authorized credentials required"):qa===404?(nd="NotFound",od="Not Found"):qa===405||qa===501?(nd="MethodNotAllowed",od="Method Not Allowed"):(nd="UnknownError",od=`${qa}`);const ld={};ld.amzRequestid=Ra.headers["x-amz-request-id"],ld.amzId2=Ra.headers["x-amz-id-2"],ld.amzBucketRegion=Ra.headers["x-amz-bucket-region"];const ud=await r
`)}),ld.write(`
`)};if(ld.write(`REQUEST: ${qa.method} ${qa.path}
`),ud(qa.headers),nd&&(this.logStream.write(`RESPONSE: ${nd.statusCode}
`),ud(nd.headers)),od){ld.write(`ERROR BODY:
`);const cd=JSON.stringify(od,null," ");ld.write(`${cd}
`)}}traceOn(qa){qa||(qa=define_process_default$2.stdout),this.logStream=qa}traceOff(){this.logStream=void 0}async makeRequestAsync(qa,nd="",od=[200],ld=""){if(!isObject(qa))throw new TypeError('options should be of type "object"');if(!isString(nd)&&!isObject(nd))throw new TypeError('payload should be of type "string" or "Buffer"');if(od.forEach(cd=>{if(!isNumber(cd))throw new TypeError('statusCode should be of type "number"')}),!isString(ld))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"]=nd.length.toString());const ud=this.enableSHA256?toSha256(nd):"";return this.makeRequestStreamAsync(qa,nd,ud,od,ld)}async makeRequestAsyncOmit(qa,nd="",od=[200],ld=""){const ud=await this.makeRequestAsync(qa,nd,od,ld);return await drainResponse(ud),ud}async makeRequestStreamAsync(qa,nd,od,ld,ud){if(!isObject(qa))throw new TypeError('options should be of type "object"');if(!(Buffer$4.isBuffer(nd)||typeof nd=="string"||isReadableStream(nd)))throw new InvalidArgumentError(`stream should be a Buffer, string or readable Stream, got ${typeof nd} instead`);if(!isString(od))throw new TypeError('sha256sum should be of type "string"');if(ld.forEach(pd=>{if(!isNumber(pd))throw new TypeError('statusCode should be of type "number"')}),!isString(ud))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&od.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&od.length!==64)throw new InvalidArgumentError(`Invalid sha256sum : ${od}`);await this.checkAndRefreshCreds(),ud=ud||await this.getBucketRegionAsync(qa.bucketName);const cd=this.getRequestOptions({...qa,region:ud});if(!this.anonymous){this.enableSHA256||(od="UNSIGNED-PAYLOAD");const pd=new Date;cd.headers["x-amz-date"]=makeDateLong(pd),cd.headers["x-amz-content-sha256"]=od,this.sessionToken&&(cd.headers["x-amz-security-token"]=this.sessionToken),cd.headers.authorization=signV4(cd,this.accessKey,this.secretKey,ud,pd,od)}const dd=await request$1(this.transport,cd,nd);if(!dd.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!ld.includes(dd.statusCode)){delete this.regionMap[qa.bucketName];const pd=await parseResponseError(dd);throw this.logHTTP(cd,dd,pd),pd}return this.logHTTP(cd,dd),dd}async getBucketRegionAsync(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name : ${qa}`);if(this.region)return this.region;const nd=this.regionMap[qa];if(nd)return nd;const od=async fd=>{const md=await readAsString(fd),vd=parseBucketRegion(md)||DEFAULT_REGION;return this.regionMap[qa]=vd,vd},ld="GET",ud="location",cd=this.pathStyle&&!isBrowser_1;let dd;try{const fd=await this.makeRequestAsync({method:ld,bucketName:qa,query:ud,pathStyle:cd},"",[200],DEFAULT_REGION);return od(fd)}catch(fd){if(fd.name!=="AuthorizationHeaderMalformed"||(dd=fd.Region,!dd))throw fd}const pd=await this.makeRequestAsync({method:ld,bucketName:qa,query:ud,pathStyle:cd},"",[200],dd);return await od(pd)}makeRequest(qa,nd="",od=[200],ld="",ud,cd){let dd;ud?dd=this.makeRequestAsync(qa,nd,od,ld):dd=this.makeRequestAsyncOmit(qa,nd,od,ld),dd.then(pd=>cd(null,pd),pd=>{cd(pd)})}makeRequestStream(qa,nd,od,ld,ud,cd,dd){(async()=>{const fd=await this.makeRequestStreamAsync(qa,nd,od,ld,ud);return cd||await drainResponse(fd),fd})().then(fd=>dd(null,fd),fd=>dd(fd))}getBucketRegion(qa,nd){return this.getBucketRegionAsync(qa).then(od=>nd(null,od),od=>nd(od))}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,nd,od={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isObject(od))throw new InvalidArgumentError('statOpts should be of type "object"');const ld=queryString.string
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,nd=Object.prototype.propertyIsEnumerable;function od(ud){if(ud==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ud)}function ld(){try{if(!Object.assign)return!1;var ud=new String("abc");if(ud[5]="de",Object.getOwnPropertyNames(ud)[0]==="5")return!1;for(var cd={},dd=0;dd<10;dd++)cd["_"+String.fromCharCode(dd)]=dd;var pd=Object.getOwnPropertyNames(cd).map(function(md){return cd[md]});if(pd.join("")!=="0123456789")return!1;var fd={};return"abcdefghijklmnopqrst".split("").forEach(function(md){fd[md]=md}),Object.keys(Object.assign({},fd)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=ld()?Object.assign:function(ud,cd){for(var dd,pd=od(ud),fd,md=1;md<arguments.length;md++){dd=Object(arguments[md]);for(var vd in dd)qa.call(dd,vd)&&(pd[vd]=dd[vd]);if(Ra){fd=Ra(dd);for(var Ad=0;Ad<fd.length;Ad++)nd.call(dd,fd[Ad])&&(pd[fd[Ad]]=dd[fd[Ad]])}}return pd},objectAssign}var ajax={},hasRequiredAjax;function requireAjax(){return hasRequiredAjax||(hasRequiredAjax=1,function(Ra){Ra.__esModule=!0,Ra.default=qa;function qa(nd,od){return od===void 0&&(od={}),new Promise(function(ld,ud){var cd=od,dd=cd.async,pd=dd===void 0?!0:dd,fd=cd.data,md=fd===void 0?null:fd,vd=cd.headers,Ad=vd===void 0?{}:vd,Nd=cd.method,Id=Nd===void 0?"get":Nd,kd=cd.timeout,jd=kd===void 0?0:kd,Fd=cd.onprogress,Md=new XMLHttpRequest,Ld;jd&&(Ld=setTimeout(function(){ud(new Error("the request timeout "+jd+"ms"))},jd)),Md.onerror=function(){ud(new Error("unknown error"))},Md.upload&&(Md.upload.onprogress=Fd),Md.onreadystatechange=function(){if(Md.readyState===4)if(jd&&clearTimeout(Ld),Md.status>=200&&Md.status<300)ld(Md.response,Md);else{var Hd=new Error("the request is error");ud(Hd)}},Md.open(Id,nd,pd),Object.keys(Ad).forEach(function(Hd){Md.setRequestHeader(Hd,Ad[Hd])});try{Md.send(md)}catch(Hd){ud(Hd)}})}}(ajax)),ajax}var utils={},md5={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,function(){var Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qa={rotl:function(nd,od){return nd<<od|nd>>>32-od},rotr:function(nd,od){return nd<<32-od|nd>>>od},endian:function(nd){if(nd.constructor==Number)return qa.rotl(nd,8)&16711935|qa.rotl(nd,24)&4278255360;for(var od=0;od<nd.length;od++)nd[od]=qa.endian(nd[od]);return nd},randomBytes:function(nd){for(var od=[];nd>0;nd--)od.push(Math.floor(Math.random()*256));return od},bytesToWords:function(nd){for(var od=[],ld=0,ud=0;ld<nd.length;ld++,ud+=8)od[ud>>>5]|=nd[ld]<<24-ud%32;return od},wordsToBytes:function(nd){for(var od=[],ld=0;ld<nd.length*32;ld+=8)od.push(nd[ld>>>5]>>>24-ld%32&255);return od},bytesToHex:function(nd){for(var od=[],ld=0;ld<nd.length;ld++)od.push((nd[ld]>>>4).toString(16)),od.push((nd[ld]&15).toString(16));return od.join("")},hexToBytes:function(nd){for(var od=[],ld=0;ld<nd.length;ld+=2)od.push(parseInt(nd.substr(ld,2),16));return od},bytesToBase64:function(nd){for(var od=[],ld=0;ld<nd.length;ld+=3)for(var ud=nd[ld]<<16|nd[ld+1]<<8|nd[ld+2],cd=0;cd<4;cd++)ld*8+cd*6<=nd.length*8?od.push(Ra.charAt(ud>>>6*(3-cd)&63)):od.push("=");return od.join("")},base64ToBytes:function(nd){nd=nd.replace(/[^A-Z0-9+\/]/ig,"");for(var od=[],ld=0,ud=0;ld<nd.length;ud=++ld%4)ud!=0&&od.push((Ra.indexOf(nd.charAt(ld-1))&Math.pow(2,-2*ud+8)-1)<<ud*2|Ra.indexOf(nd.charAt(ld))>>>6-ud*2);return od}};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 nd=[],od=0;od<qa.length;od++)nd.push(qa.charCodeAt(od)&255);return nd},bytesToString:function(qa){fo
* 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(nd){return nd!=null&&(Ra(nd)||qa(nd)||!!nd._isBuffer)};function Ra(nd){return!!nd.constructor&&typeof nd.constructor.isBuffer=="function"&&nd.constructor.isBuffer(nd)}function qa(nd){return typeof nd.readFloatLE=="function"&&typeof nd.slice=="function"&&Ra(nd.slice(0,0))}return isBuffer_1}var hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(){var Ra=requireCrypt(),qa=requireCharenc().utf8,nd=requireIsBuffer(),od=requireCharenc().bin,ld=function(ud,cd){ud.constructor==String?cd&&cd.encoding==="binary"?ud=od.stringToBytes(ud):ud=qa.stringToBytes(ud):nd(ud)?ud=Array.prototype.slice.call(ud,0):!Array.isArray(ud)&&ud.constructor!==Uint8Array&&(ud=ud.toString());for(var dd=Ra.bytesToWords(ud),pd=ud.length*8,fd=1732584193,md=-271733879,vd=-1732584194,Ad=271733878,Nd=0;Nd<dd.length;Nd++)dd[Nd]=(dd[Nd]<<8|dd[Nd]>>>24)&16711935|(dd[Nd]<<24|dd[Nd]>>>8)&4278255360;dd[pd>>>5]|=128<<pd%32,dd[(pd+64>>>9<<4)+14]=pd;for(var Id=ld._ff,kd=ld._gg,jd=ld._hh,Fd=ld._ii,Nd=0;Nd<dd.length;Nd+=16){var Md=fd,Ld=md,Hd=vd,Gd=Ad;fd=Id(fd,md,vd,Ad,dd[Nd+0],7,-680876936),Ad=Id(Ad,fd,md,vd,dd[Nd+1],12,-389564586),vd=Id(vd,Ad,fd,md,dd[Nd+2],17,606105819),md=Id(md,vd,Ad,fd,dd[Nd+3],22,-1044525330),fd=Id(fd,md,vd,Ad,dd[Nd+4],7,-176418897),Ad=Id(Ad,fd,md,vd,dd[Nd+5],12,1200080426),vd=Id(vd,Ad,fd,md,dd[Nd+6],17,-1473231341),md=Id(md,vd,Ad,fd,dd[Nd+7],22,-45705983),fd=Id(fd,md,vd,Ad,dd[Nd+8],7,1770035416),Ad=Id(Ad,fd,md,vd,dd[Nd+9],12,-1958414417),vd=Id(vd,Ad,fd,md,dd[Nd+10],17,-42063),md=Id(md,vd,Ad,fd,dd[Nd+11],22,-1990404162),fd=Id(fd,md,vd,Ad,dd[Nd+12],7,1804603682),Ad=Id(Ad,fd,md,vd,dd[Nd+13],12,-40341101),vd=Id(vd,Ad,fd,md,dd[Nd+14],17,-1502002290),md=Id(md,vd,Ad,fd,dd[Nd+15],22,1236535329),fd=kd(fd,md,vd,Ad,dd[Nd+1],5,-165796510),Ad=kd(Ad,fd,md,vd,dd[Nd+6],9,-1069501632),vd=kd(vd,Ad,fd,md,dd[Nd+11],14,643717713),md=kd(md,vd,Ad,fd,dd[Nd+0],20,-373897302),fd=kd(fd,md,vd,Ad,dd[Nd+5],5,-701558691),Ad=kd(Ad,fd,md,vd,dd[Nd+10],9,38016083),vd=kd(vd,Ad,fd,md,dd[Nd+15],14,-660478335),md=kd(md,vd,Ad,fd,dd[Nd+4],20,-405537848),fd=kd(fd,md,vd,Ad,dd[Nd+9],5,568446438),Ad=kd(Ad,fd,md,vd,dd[Nd+14],9,-1019803690),vd=kd(vd,Ad,fd,md,dd[Nd+3],14,-187363961),md=kd(md,vd,Ad,fd,dd[Nd+8],20,1163531501),fd=kd(fd,md,vd,Ad,dd[Nd+13],5,-1444681467),Ad=kd(Ad,fd,md,vd,dd[Nd+2],9,-51403784),vd=kd(vd,Ad,fd,md,dd[Nd+7],14,1735328473),md=kd(md,vd,Ad,fd,dd[Nd+12],20,-1926607734),fd=jd(fd,md,vd,Ad,dd[Nd+5],4,-378558),Ad=jd(Ad,fd,md,vd,dd[Nd+8],11,-2022574463),vd=jd(vd,Ad,fd,md,dd[Nd+11],16,1839030562),md=jd(md,vd,Ad,fd,dd[Nd+14],23,-35309556),fd=jd(fd,md,vd,Ad,dd[Nd+1],4,-1530992060),Ad=jd(Ad,fd,md,vd,dd[Nd+4],11,1272893353),vd=jd(vd,Ad,fd,md,dd[Nd+7],16,-155497632),md=jd(md,vd,Ad,fd,dd[Nd+10],23,-1094730640),fd=jd(fd,md,vd,Ad,dd[Nd+13],4,681279174),Ad=jd(Ad,fd,md,vd,dd[Nd+0],11,-358537222),vd=jd(vd,Ad,fd,md,dd[Nd+3],16,-722521979),md=jd(md,vd,Ad,fd,dd[Nd+6],23,76029189),fd=jd(fd,md,vd,Ad,dd[Nd+9],4,-640364487),Ad=jd(Ad,fd,md,vd,dd[Nd+12],11,-421815835),vd=jd(vd,Ad,fd,md,dd[Nd+15],16,530742520),md=jd(md,vd,Ad,fd,dd[Nd+2],23,-995338651),fd=Fd(fd,md,vd,Ad,dd[Nd+0],6,-198630844),Ad=Fd(Ad,fd,md,vd,dd[Nd+7],10,1126891415),vd=Fd(vd,Ad,fd,md,dd[Nd+14],15,-1416354905),md=Fd(md,vd,Ad,fd,dd[Nd+5],21,-57434055),fd=Fd(fd,md,vd,Ad,dd[Nd+12],6,1700485571),Ad=Fd(Ad,fd,md,vd,dd[Nd+3],10,-1894986606),vd=Fd(vd,Ad,fd,md,dd[Nd+10],15,-1051523),md=Fd(md,vd,Ad,fd,dd[Nd+1],21,-2054922799),fd=Fd(fd,md,vd,Ad,dd[Nd+8],6,1873313359),Ad=Fd(Ad,fd,md,vd,dd[Nd+15],10,-30611744),vd=Fd(vd,Ad,fd,md,dd[Nd+6],15,-1560198380),md=Fd(md,vd,Ad,fd,dd[Nd+13],21,1309151649),fd=Fd(fd,md,vd,Ad,dd[Nd+4],6,-145523070),Ad=Fd(Ad,fd,md,vd,dd[Nd+11],10,-1120210379),vd=Fd(vd,Ad,fd,md,dd[Nd+2],15,718787259),md=Fd(md,vd,Ad,fd,dd[Nd+9],21,-343485551),fd=fd+Md>>>0,md=md+Ld>>>0,vd=vd+Hd>>>0,Ad=Ad+Gd>>>0}return Ra.endian([fd,md,vd,Ad])};ld._ff=function(ud,cd,dd,pd,fd,md,vd){var Ad=ud+(cd&dd|~cd&pd)+(fd>>>0)+vd;return(Ad<<md|Ad>>>32-md)+cd},ld._gg=function(ud,c
*!
*! 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(nd,od){var ld,ud=new Uint8Array(this);od===void 0&&(od=ud.length);var cd=new ArrayBuffer(od-nd),dd=new Uint8Array(cd);for(ld=0;ld<dd.length;ld++)dd[ld]=ud[ld+nd];return cd})})(),function(nd){function od(){}od.prototype.processBlock=function(md){var vd=this.current[0],Ad=this.current[1],Nd=this.current[2],Id=this.current[3],kd=this.current[4],jd=[md[0]<<24|md[1]<<16|md[2]<<8|md[3],md[4]<<24|md[5]<<16|md[6]<<8|md[7],md[8]<<24|md[9]<<16|md[10]<<8|md[11],md[12]<<24|md[13]<<16|md[14]<<8|md[15],md[16]<<24|md[17]<<16|md[18]<<8|md[19],md[20]<<24|md[21]<<16|md[22]<<8|md[23],md[24]<<24|md[25]<<16|md[26]<<8|md[27],md[28]<<24|md[29]<<16|md[30]<<8|md[31],md[32]<<24|md[33]<<16|md[34]<<8|md[35],md[36]<<24|md[37]<<16|md[38]<<8|md[39],md[40]<<24|md[41]<<16|md[42]<<8|md[43],md[44]<<24|md[45]<<16|md[46]<<8|md[47],md[48]<<24|md[49]<<16|md[50]<<8|md[51],md[52]<<24|md[53]<<16|md[54]<<8|md[55],md[56]<<24|md[57]<<16|md[58]<<8|md[59],md[60]<<24|md[61]<<16|md[62]<<8|md[63]],Fd,Md;for(Md=16;Md<80;Md++)jd.push((jd[Md-3]^jd[Md-8]^jd[Md-14]^jd[Md-16])<<1|(jd[Md-3]^jd[Md-8]^jd[Md-14]^jd[Md-16])>>>31);for(Md=0;Md<80;Md++)Fd=(vd<<5|vd>>>27)+kd+jd[Md],Md<20?Fd+=(Ad&Nd|~Ad&Id)+1518500249|0:Md<40?Fd+=(Ad^Nd^Id)+1859775393|0:Md<60?Fd+=(Ad&Nd|Ad&Id|Nd&Id)+2400959708|0:Fd+=(Ad^Nd^Id)+3395469782|0,kd=Id,Id=Nd,Nd=Ad<<30|Ad>>>2,Ad=vd,vd=Fd;this.current[0]+=vd,this.current[1]+=Ad,this.current[2]+=Nd,this.current[3]+=Id,this.current[4]+=kd,this.currentLen+=64},od.prototype.doPadding=function(){var md=(this.inLen+this.currentLen)*8,vd=0,Ad=md&4294967295,Nd=this.inLen<=55?55-this.inLen:119-this.inLen,Id=new Uint8Array(new ArrayBuffer(Nd+1+8));return Id[0]=128,Id[Id.length-1]=Ad&255,Id[Id.length-2]=Ad>>>8&255,Id[Id.length-3]=Ad>>>16&255,Id[Id.length-4]=Ad>>>24&255,Id[Id.length-5]=vd&255,Id[Id.length-6]=vd>>>8&255,Id[Id.length-7]=vd>>>16&255,Id[Id.length-8]=vd>>>24&255,Id},od.prototype.getDigest=function(){var md=new Uint8Array(new ArrayBuffer(20));return md[3]=this.current[0]&255,md[2]=this.current[0]>>>8&255,md[1]=this.current[0]>>>16&255,md[0]=this.current[0]>>>24&255,md[7]=this.current[1]&255,md[6]=this.current[1]>>>8&255,md[5]=this.current[1]>>>16&255,md[4]=this.current[1]>>>24&255,md[11]=this.current[2]&255,md[10]=this.current[2]>>>8&255,md[9]=this.current[2]>>>16&255,md[8]=this.current[2]>>>24&255,md[15]=this.current[3]&255,md[14]=this.current[3]>>>8&255,md[13]=this.current[3]>>>16&255,md[12]=this.current[3]>>>24&255,md[19]=this.current[4]&255,md[18]=this.current[4]>>>8&255,md[17]=this.current[4]>>>16&255,md[16]=this.current[4]>>>24&255,md.buffer},od.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},od.prototype.blockLen=64,od.prototype.digestLen=20;var ld=function(md){var vd=new ArrayBuffer(md.length),Ad=new Uint8Array(vd),Nd;for(Nd=0;Nd<md.length;Nd++)Ad[Nd]=md.charCodeAt(Nd);return Ad},ud=function(md){var vd=new ArrayBuffer(1),Ad=new Uint8Array(vd);return Ad[0]=md,Ad},cd=function(md){if(md.constructor===Uint8Array)return md;if(md.constructor===ArrayBuffer)return new Uint8Array(md);if(md.constructor===String)return ld(md);if(md.constructor===Number){if(md>255)throw"For more than one byte, use an array buffer";if(md<0)throw"Input value must be positive";return ud(md)}else throw"Unsupported type"},dd=function(md){var vd=function(Id){for(var kd=Id.length,jd=0;kd>0;){var Fd=this.blockLen-this.inLen;Fd>kd&&(Fd=kd);var Md=Id.subarray(jd,jd+Fd);this.inbuf.set(Md,this.inLen),jd+=Fd,kd-=Fd,this.inLen+=Fd,this.inLen===this.blockLen&&(this.processBlock(this.inbuf),this.inLen=0)}},Ad=function(){var Id=this.doPadding();this.update(Id);var kd=this.getDigest();return this.reset(),kd},Nd=function(){if(!md)throw"Unsupported algorithm: "+md.toString();md.prototype.
`)}),Id}function vd(Nd,Id,kd){Nd===void 0&&(Nd=""),Id===void 0&&(Id="");var jd="";Nd&&(jd+="/"+Nd),Id&&(Id.charAt(0)!=="/"&&(jd+="/"),jd+=Id);var Fd=""+jd,Md="?";if(kd){var Ld=function(Vd,Qd){return Vd[0]>Qd[0]?1:Vd[0]<Qd[0]?-1:0},Hd=function(Vd){Fd+=Md+Vd,kd[Vd]&&(Fd+="="+kd[Vd]),Md="&"};Object.keys(kd).sort(Ld).forEach(Hd)}return Fd}function Ad(Nd){Nd===void 0&&(Nd={});var Id=Nd,kd=Id.type,jd=kd===void 0?"header":kd,Fd=Id.verb,Md=Fd===void 0?"":Fd,Ld=Id.contentMd5,Hd=Ld===void 0?"":Ld,Gd=Id.expires,Vd=Gd===void 0?ud()+3600:Gd,Qd=Id.bucket,mf=Id.objectName,Yd=Id.accessKeySecret,Zd=Id.headers,Kd=Zd===void 0?{}:Zd,bf=Id.subResource,gf=Kd["x-oss-date"]||"",Ef=Kd["Content-Type"]||"",yf=[Md,Hd,Ef];jd==="header"?yf.push(gf):yf.push(Vd);var xf=md(Kd),Af=vd(Qd,mf,bf);yf.push(""+xf+Af);var Lf=yf.join(`
`),Xf=new od.default.HMAC_SHA1;Xf.setKey(Yd),Xf.update(Lf);var ih=new Uint8Array(Xf.finalize()),Zf=nd.default.fromByteArray(ih);return Zf}return utils}(function(Ra){var qa=interopRequireDefaultExports;Ra.__esModule=!0,Ra.default=void 0;var nd=qa(requireObjectAssign()),od=qa(requireAjax()),ld=requireUtils(),ud=function(){function cd(pd){pd===void 0&&(pd={}),(0,ld.assertOptions)(pd),this.opts=(0,nd.default)({region:"oss-cn-hangzhou",internal:!1,cname:!1,secure:!1,timeout:6e4},pd);var fd=this.opts,md=fd.bucket,vd=fd.region,Ad=fd.endpoint,Nd=fd.internal;if(this.host="",Ad)this.host=Ad;else{var Id=md;Nd&&(Id+="-internal"),Id+="."+vd+".aliyuncs.com",this.host=Id}}var dd=cd.prototype;return dd.put=function(fd,md,vd){var Ad=this;return vd===void 0&&(vd={}),new Promise(function(Nd,Id){(0,ld.blobToBuffer)(md).then(function(kd){var jd=Ad.opts,Fd=jd.accessKeyId,Md=jd.accessKeySecret,Ld=jd.stsToken,Hd=jd.bucket,Gd="PUT",Vd=(0,ld.getContentMd5)(kd),Qd=md.type,mf={"Content-Md5":Vd,"Content-Type":Qd,"x-oss-date":new Date().toGMTString()};Ld&&(mf["x-oss-security-token"]=Ld);var Yd=(0,ld.getSignature)({verb:Gd,contentMd5:Vd,headers:mf,bucket:Hd,objectName:fd,accessKeyId:Fd,accessKeySecret:Md});mf.Authorization="OSS "+Fd+":"+Yd;var Zd=Ad.opts.secure?"https":"http",Kd=Zd+"://"+Ad.host+"/"+fd;return(0,od.default)(Kd,{method:Gd,headers:mf,data:md,timeout:Ad.opts.timeout,onprogress:vd.onprogress})}).then(Nd).catch(Id)})},dd.putSymlink=function(fd,md){var vd=this.opts,Ad=vd.accessKeyId,Nd=vd.accessKeySecret,Id=vd.stsToken,kd=vd.bucket,jd="PUT",Fd={"x-oss-date":new Date().toGMTString(),"x-oss-symlink-target":encodeURI(md)};Id&&(Fd["x-oss-security-token"]=Id);var Md=(0,ld.getSignature)({verb:jd,headers:Fd,bucket:kd,objectName:fd,accessKeyId:Ad,accessKeySecret:Nd,subResource:{symlink:""}});Fd.Authorization="OSS "+Ad+":"+Md;var Ld=this.opts.secure?"https":"http",Hd=Ld+"://"+this.host+"/"+fd+"?symlink";return(0,od.default)(Hd,{method:jd,headers:Fd,timeout:this.opts.timeout})},dd.signatureUrl=function(fd,md){md===void 0&&(md={});var vd=md,Ad=vd.expires,Nd=Ad===void 0?1800:Ad,Id=vd.method,kd=vd.process,jd=vd.response,Fd=this.opts,Md=Fd.accessKeyId,Ld=Fd.accessKeySecret,Hd=Fd.stsToken,Gd=Fd.bucket,Vd={},Qd={};if(kd){var mf="x-oss-process";Qd[mf]=kd}jd&&Object.keys(jd).forEach(function(Ef){var yf="response-"+Ef.toLowerCase();Qd[yf]=jd[Ef]}),Object.keys(md).forEach(function(Ef){var yf=Ef.toLowerCase(),xf=md[Ef];yf.indexOf("x-oss-")===0?Vd[yf]=xf:yf.indexOf("content-md5")===0||yf.indexOf("content-type")===0?Vd[Ef]=xf:yf!=="expires"&&yf!=="response"&&yf!=="process"&&yf!=="method"&&(Qd[yf]=xf)});var Yd=md["security-token"]||Hd;Yd&&(Qd["security-token"]=Yd);var Zd=(0,ld.unix)()+Nd,Kd=(0,ld.getSignature)({type:"url",verb:Id||"GET",accessKeyId:Md,accessKeySecret:Ld,bucket:Gd,objectName:fd,headers:Vd,subResource:Qd,expires:Zd}),bf=this.opts.secure?"https":"http",gf=bf+"://"+this.host+"/"+fd;return gf+="?OSSAccessKeyId="+Md,gf+="&Expires="+Zd,gf+="&Signature="+encodeURIComponent(Kd),Object.keys(Qd).forEach(function(Ef){gf+="&"+Ef+"="+encodeURIComponent(Qd[Ef])}),gf},cd}();Ra.default=ud})(TinyOSS);var lib=TinyOSS.default;const OSS=getDefaultExportFromCjs(lib),byteToHex=[];for(let Ra=0;Ra<256;++Ra)byteToHex.push((Ra+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()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={rand
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 nd=localStorage.getItem("imgHost");switch(nd||localStorage.setItem("imgHost","default"),nd){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"mp":return mpFileUpload(qa);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:"container-main-section h-full flex border-1"},_hoisted_3=["span"],_hoisted_4={class:"preview border shadow-xl"},_hoisted_5=["innerHTML"],_hoisted_6={key:0,class:"loading-mask"},_sfc_main$1=defineComponent({__name:"CodemirrorEditor",setup(Ra){const qa=useStore(),nd=useDisplayStore(),{isDark:od,output:ld,editor:ud}=storeToRefs(qa),{isShowCssEditor:cd}=storeToRefs(nd),{editorRefresh:dd,exportEditorContent2HTML:pd,exportEditorContent2MD:fd,formatContent:md,importMarkdownContent:vd,resetStyleConfirm:Ad}=qa,{toggleShowInsertFormDialog:Nd,toggleShowUploadImgDialog:Id}=nd,kd=ref$1(!1),jd=ref$1(),Fd=ref$1(null);function Md(){const Af=ih=>{let Zf,jf;clearTimeout(jd.value),ih==="preview"?(Zf=Fd.value,jf=document.querySelector(".CodeMirror-scroll"),ud.value.off("scroll",Lf),jd.value=setTimeout(()=>{ud.value.on("scroll",Lf)},300)):(Zf=document.querySelector(".CodeMirror-scroll"),jf=Fd.value,jf.removeEventListener("scroll",Xf,!1),jd.value=setTimeout(()=>{jf.addEventListener("scroll",Xf,!1)},300));const Uf=Zf.scrollTop/(Zf.scrollHeight-Zf.offsetHeight)*(jf.scrollHeight-jf.offsetHeight);jf.scrollTo(0,Uf)};function Lf(){Af("editor")}function Xf(){Af("preview")}Fd.value.addEventListener("scroll",Xf,!1),ud.value.on("scroll",Lf)}onMounted(()=>{setTimeout(()=>{Md()},300)});function Ld(){dd()}const Hd=ref$1(!1),Gd=ref$1(!1);function Vd(){Gd.value=!0,Hd.value=!0}function Qd(){Hd.value=!1,setTimeout(()=>{Gd.value=!1},800)}function mf(Af){const Lf=checkImage(Af);if(!Lf.ok)return Ke$1.error(Lf.msg),!1;const Xf=localStorage.getItem("imgHost")||"default";localStorage.setItem("imgHost",Xf);const ih=localStorage.getItem(`${Xf}Config`);return Xf==="default"||ih?!0:(Ke$1.error(`请先配置 ${Xf} 图床参数`),!1)}function Yd(Af){if(!Af){Ke$1.error("上传图片未知异常");return}Id(!1);const Lf=ud.value.getCursor(),Xf=`![](${Af})`;toRaw(qa.editor).replaceSelection(`
${Xf}
`,Lf),Ke$1.success("图片上传成功")}function Zd(Af,Lf){kd.value=!0,toBase64$1(Af).then(Xf=>fileApi.fileUpload(Xf,Af)).then(Xf=>{Lf?Lf(Xf):Yd(Xf)}).catch(Xf=>{Ke$1.error(Xf.message)}).finally(()=>{kd.value=!1})}const Kd=ref$1();watch(od,()=>{var Lf,Xf;const Af=od.value?"darcula":"xq-light";(Xf=(Lf=toRaw(ud.value))==null?void 0:Lf.setOption)==null||Xf.call(Lf,"theme",Af)});function bf(){const Af=document.querySelector("#editor");Af.value||(Af.value=qa.posts[qa.currentPostIndex].content),ud.value=CodeMirror.fromTextArea(Af,{mode:"text/x-markdown",theme:od.value?"darcula":"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Xf){formatDoc(Xf.getValue()).then(ih=>{Xf.setValue(ih)})},[`${ctrlKey}-B`]:function(Xf){const ih=Xf.getSelection();Xf.replaceSelection(`**${ih}**`)},[`${ctrlKey}-I`]:function(Xf){const ih=Xf.getSelection();Xf.replaceSelection(`*${ih}*`)},[`${ctrlKey}-D`]:function(Xf){const ih=Xf.getSelection();Xf.replaceSelection(`~~${ih}~~`)},[`${ctrlKey}-K`]:function(Xf){const ih=Xf.getSelection();Xf.replaceSelection(`[${ih}]()`)},[`${ctrlKey}-E`]:function(Xf){const ih=Xf.getSelection();Xf.replaceSelection(`\`${ih}\``)},[`${ctrlKey}-L`]:function(Xf){const ih=Xf.getSelection();Xf.replaceSelection(`\`${ih}\``)}}}),ud.value.on("change",Lf=>{clearTimeout(Kd.value),Kd.value=setTimeout(()=>{Ld(),qa.posts[qa.currentPostIndex].content=Lf.getValue()},300)}),ud.value.on("paste",(Lf,Xf)=>{if(!(!(Xf.clipboardData&&Xf.clipboardData.items)||kd.value))for(let ih=0,Zf=Xf.clipboardData.items.length;ih<Zf;++ih){const jf=Xf.clipboardData.items[ih];if(jf.kind==="file"){const If=jf.getAsFile();if(!mf(If))continue;Zd(If)}}})}const gf=ref$1(null);function Ef(Af){ud.value.options.extraKeys[Af](ud.value)}const yf=ref$1(null);function xf(){const Af=yf.value,Lf=async({md:Zf,list:jf})=>{const If=[...Zf.str.matchAll(/!\[(.*?)\]\((.*?)\)/g)||[]].filter(Kf=>Kf),Uf=Zf.path.match(/.+?\//)[0];(await Promise.all(If.map(Kf=>new Promise(Tf=>{let[,,vf]=Kf;vf=vf.replace(/^.\//,"");const{file:Gf}=jf.find(Jf=>Jf.path===`${Uf}${vf}`)||{};Zd(Gf,Jf=>{Tf({matchStr:vf,url:Jf})})})))).forEach(Kf=>{Zf.str=Zf.str.replace(`](./${Kf.matchStr})`,`](${Kf.url})`).replace(`](${Kf.matchStr})`,`](${Kf.url})`)}),ud.value.setValue(Zf.str)};Af.ondragover=Zf=>Zf.preventDefault(),Af.ondrop=async Zf=>{Zf.preventDefault();for(const jf of Zf.dataTransfer.items)jf.getAsFileSystemHandle().then(async If=>{if(If.kind==="directory"){const Uf=await ih(If),qf=await Xf({list:Uf});Lf({md:qf,list:Uf})}else{const Uf=await If.getFile();console.log("file",Uf)}})};async function Xf({list:Zf}){return new Promise(jf=>{const{path:If,file:Uf}=Zf.find(Kf=>Kf.path.match(/\.md$/)),qf=new FileReader;qf.readAsText(Uf,"UTF-8"),qf.onload=Kf=>{jf({str:Kf.target.result,file:Uf,path:If})}})}async function ih(Zf){const jf=[];let If="";try{const Uf=[Zf];for(const qf of Uf){If+=`${qf.name}/`;for await(const[,Kf]of qf)Kf.kind==="file"?jf.push({path:If+Kf.name,file:await Kf.getFile()}):(jf.push({path:`${If+Kf.name}/`}),Uf.push(Kf))}}catch(Uf){console.error(Uf)}return jf}}return onMounted(()=>{bf(),Ld(),xf()}),(Af,Lf)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:gf,class:"container flex flex-col"},[createVNode(EditorHeader,{onAddFormat:Ef,onFormatContent:unref(md),onStartCopy:Vd,onEndCopy:Qd},null,8,["onFormatContent"]),createBaseVNode("main",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createVNode(_sfc_main$d),createBaseVNode("div",{ref_key:"codeMirrorWrapper",ref:yf,class:normalizeClass(["codeMirror-wrapper flex-1 border-r-1",{"order-1":!unref(qa).isEditOnLeft}])},[createVNode(unref(_sfc_main$7),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$2),null,{default:withCtx(()=>Lf[9]||(Lf[9]=[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:Lf[0]||(Lf[0]=Xf=>unref(Id)())},{default:withCtx(()=>Lf[10]||(Lf[10]=[createTextVNode(" 上传<EFBFBD><EFBFBD>
`;Fd.replaceSelection(Qd+Qd,null),Ad(Fd,-1),Hd=Fd.listSelections();for(var mf=0;mf<Hd.length;mf++){var Yd=Hd[mf].head.line;Fd.indentLine(Yd,null,!0),Fd.indentLine(Yd+1,null,!0)}})}function Ad(Fd,Md){for(var Ld=[],Hd=Fd.listSelections(),Gd=0,Vd=0;Vd<Hd.length;Vd++){var Qd=Hd[Vd];Qd.head==Fd.getCursor()&&(Gd=Vd);var mf=Qd.head.ch||Md>0?{line:Qd.head.line,ch:Qd.head.ch+Md}:{line:Qd.head.line-1};Ld.push({anchor:mf,head:mf})}Fd.setSelections(Ld,Gd)}function Nd(Fd){var Md=nd.cmpPos(Fd.anchor,Fd.head)>0;return{anchor:new ld(Fd.anchor.line,Fd.anchor.ch+(Md?-1:1)),head:new ld(Fd.head.line,Fd.head.ch+(Md?1:-1))}}function Id(Fd,Md){var Ld=fd(Fd);if(!Ld||Fd.getOption("disableInput"))return nd.Pass;var Hd=ud(Ld,"pairs"),Gd=Hd.indexOf(Md);if(Gd==-1)return nd.Pass;for(var Vd=ud(Ld,"closeBefore"),Qd=ud(Ld,"triples"),mf=Hd.charAt(Gd+1)==Md,Yd=Fd.listSelections(),Zd=Gd%2==0,Kd,bf=0;bf<Yd.length;bf++){var gf=Yd[bf],Ef=gf.head,yf,xf=Fd.getRange(Ef,ld(Ef.line,Ef.ch+1));if(Zd&&!gf.empty())yf="surround";else if((mf||!Zd)&&xf==Md)mf&&jd(Fd,Ef)?yf="both":Qd.indexOf(Md)>=0&&Fd.getRange(Ef,ld(Ef.line,Ef.ch+3))==Md+Md+Md?yf="skipThree":yf="skip";else if(mf&&Ef.ch>1&&Qd.indexOf(Md)>=0&&Fd.getRange(ld(Ef.line,Ef.ch-2),Ef)==Md+Md){if(Ef.ch>2&&/\bstring/.test(Fd.getTokenTypeAt(ld(Ef.line,Ef.ch-2))))return nd.Pass;yf="addFour"}else if(mf){var Af=Ef.ch==0?" ":Fd.getRange(ld(Ef.line,Ef.ch-1),Ef);if(!nd.isWordChar(xf)&&Af!=Md&&!nd.isWordChar(Af))yf="both";else return nd.Pass}else if(Zd&&(xf.length===0||/\s/.test(xf)||Vd.indexOf(xf)>-1))yf="both";else return nd.Pass;if(!Kd)Kd=yf;else if(Kd!=yf)return nd.Pass}var Lf=Gd%2?Hd.charAt(Gd-1):Md,Xf=Gd%2?Md:Hd.charAt(Gd+1);Fd.operation(function(){if(Kd=="skip")Ad(Fd,1);else if(Kd=="skipThree")Ad(Fd,3);else if(Kd=="surround"){for(var ih=Fd.getSelections(),Zf=0;Zf<ih.length;Zf++)ih[Zf]=Lf+ih[Zf]+Xf;Fd.replaceSelections(ih,"around"),ih=Fd.listSelections().slice();for(var Zf=0;Zf<ih.length;Zf++)ih[Zf]=Nd(ih[Zf]);Fd.setSelections(ih)}else Kd=="both"?(Fd.replaceSelection(Lf+Xf,null),Fd.triggerElectric(Lf+Xf),Ad(Fd,-1)):Kd=="addFour"&&(Fd.replaceSelection(Lf+Lf+Lf+Lf,"before"),Ad(Fd,1))})}function kd(Fd,Md){var Ld=Fd.getRange(ld(Md.line,Md.ch-1),ld(Md.line,Md.ch+1));return Ld.length==2?Ld:null}function jd(Fd,Md){var Ld=Fd.getTokenAt(ld(Md.line,Md.ch+1));return/\bstring/.test(Ld.type)&&Ld.start==Md.ch&&(Md.ch==0||!/\bstring/.test(Fd.getTokenTypeAt(Md)))}})})();(function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){var od=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),ld=nd.Pos,ud={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function cd(Ad){return Ad&&Ad.bracketRegex||/[(){}[\]]/}function dd(Ad,Nd,Id){var kd=Ad.getLineHandle(Nd.line),jd=Nd.ch-1,Fd=Id&&Id.afterCursor;Fd==null&&(Fd=/(^| )cm-fat-cursor($| )/.test(Ad.getWrapperElement().className));var Md=cd(Id),Ld=!Fd&&jd>=0&&Md.test(kd.text.charAt(jd))&&ud[kd.text.charAt(jd)]||Md.test(kd.text.charAt(jd+1))&&ud[kd.text.charAt(++jd)];if(!Ld)return null;var Hd=Ld.charAt(1)==">"?1:-1;if(Id&&Id.strict&&Hd>0!=(jd==Nd.ch))return null;var Gd=Ad.getTokenTypeAt(ld(Nd.line,jd+1)),Vd=pd(Ad,ld(Nd.line,jd+(Hd>0?1:0)),Hd,Gd,Id);return Vd==null?null:{from:ld(Nd.line,jd),to:Vd&&Vd.pos,match:Vd&&Vd.ch==Ld.charAt(0),forward:Hd>0}}function pd(Ad,Nd,Id,kd,jd){for(var Fd=jd&&jd.maxScanLineLength||1e4,Md=jd&&jd.maxScanLines||1e3,Ld=[],Hd=cd(jd),Gd=Id>0?Math.min(Nd.line+Md,Ad.lastLine()+1):Math.max(Ad.firstLine()-1,Nd.line-Md),Vd=Nd.line;Vd!=Gd;Vd+=Id){var Qd=Ad.getLine(Vd);if(Qd){var mf=Id>0?0:Qd.length-1,Yd=Id>0?Qd.length:-1;if(!(Qd.length>Fd))for(Vd==Nd.line&&(mf=Nd.ch-(Id<0?1:0));mf!=Yd;mf+=Id){var Zd=Qd.charAt(mf);if(Hd.test(Zd)&&(kd===void 0||(Ad.getTokenTypeAt(ld(Vd,mf+1))||"")==(kd||""))){var Kd=ud[Zd];if(Kd&&Kd.charAt(1)==">"==Id>0)Ld.push(Zd);else if(Ld.length)Ld.pop();else return{pos:ld(Vd,mf),ch:Zd}}}}}return Vd-Id==(Id>0?Ad.lastLine():Ad.firstLine())?!1:null}function fd(Ad,Nd,Id){for(var kd=Ad.state.matchBrackets.maxHighlightLineLength||1e3,jd=Id&&Id.highlightNonMatching,Fd=[],Md=Ad.listSelections(